az oracle-database autonomous-database
Note
此引用是 Azure CLI 的 oracle-database 扩展的一部分(版本 2.75.0 或更高版本)。 该扩展将在首次运行 az oracle-database autonomous-database 命令时自动安装。 了解更多关于扩展的信息。
Oracle 自治数据库。
命令
az oracle-database autonomous-database action
对自治数据库执行生命周期管理作。
az oracle-database autonomous-database action --action {Restart, Start, Stop}
[--acquire-policy-token]
[--autonomousdatabasename]
[--change-reference]
[--ids]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--resource-group]
[--subscription]
示例
AutonomousDatabases_Action
az oracle-database autonomous-database action --resource-group rgopenapi --autonomousdatabasename databasedb1 --action Start
必需参数
自治数据库生命周期作。
| 属性 | 值 |
|---|---|
| 参数组: | Body Arguments |
| 接受的值: | Restart, Start, Stop |
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
为此资源操作自动获取Azure Policy令牌。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
数据库名称。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
此资源操作的相关更改引用 ID。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az oracle-database autonomous-database change-disaster-recovery-configuration
更改跨区域灾难恢复对等数据库灾难恢复配置。
az oracle-database autonomous-database change-disaster-recovery-configuration [--acquire-policy-token]
[--autonomousdatabasename]
[--change-reference]
[--disaster-recovery-type {Adg, BackupBased}]
[--ids]
[--is-replicate-automatic-backups {0, 1, f, false, n, no, t, true, y, yes}]
[--is-snapshot-standby {0, 1, f, false, n, no, t, true, y, yes}]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--resource-group]
[--subscription]
[--time-snapshot-standby-enabled-till]
示例
更改跨区域灾难恢复对等方的灾难恢复配置
az oracle-database autonomous-database change-disaster-recovery-configuration --resource-group MyResourceGroup --autonomousdatabasename MyCrossRegionPeerDB --disaster-recovery-type Adg --is-replicate-automatic-backups false
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
为此资源操作自动获取Azure Policy令牌。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
现有跨区域灾难恢复关联的对等自治数据库名称。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
此资源操作的相关更改引用 ID。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
指示自治无服务器实例的灾难恢复(DR)类型。 自治数据防护 (ADG) DR 类型在故障转移或切换期间为业务关键 DR 提供更快的恢复时间目标(RTO)。 基于备份的 DR 类型在故障转移或切换期间提供更低的 RTO 成本 DR。
| 属性 | 值 |
|---|---|
| 参数组: | Body Arguments |
| 接受的值: | Adg, BackupBased |
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
如果为 true,则跨区域 ADB 复制 7 天的备份,或在主数据库和备用服务器之间 Backup-Based DR。 如果为 false,则主数据库上执行的备份不会复制到备用数据库。
| 属性 | 值 |
|---|---|
| 参数组: | Body Arguments |
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
指示用户是否要转换为快照待机状态。 例如,true 会将备用数据库设置为快照备用数据库。 False 会将快照备用数据库设置回常规备用数据库。
| 属性 | 值 |
|---|---|
| 参数组: | Body Arguments |
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
存储为 RFC 3339 格式时间戳字符串的时间和日期。 例如,2022-01-01T12:00:00.000Z 将设置快照备用数据库转换为跨区域备用数据库的限制。
| 属性 | 值 |
|---|---|
| 参数组: | Body Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az oracle-database autonomous-database create
创建自治数据库。
每个请求使用一个创建模式选项。 数据库类型是从 --regular、-clone、--clone、-clone-from-backup-timestamp 或 --cross-region-disaster-recovery 推断的。 不要直接传递 dataBaseType。 克隆和灾难恢复字段必须嵌套在匹配的创建模式选项内。
az oracle-database autonomous-database create --autonomousdatabasename --name
--resource-group
[--acquire-policy-token]
[--admin-password]
[--autonomous-database-id]
[--autonomous-maintenance-schedule-type --schedule-type {Early, Regular}]
[--backup-destination {AZURE, OCI}]
[--backup-retention-period-in-days --retention-days]
[--change-reference]
[--character-set]
[--clone]
[--clone-from-backup-timestamp]
[--compute-count]
[--compute-model {ECPU, OCPU}]
[--cpu-auto-scaling --is-auto-scaling-enabled {0, 1, f, false, n, no, t, true, y, yes}]
[--cpu-core-count]
[--cross-region-disaster-recovery]
[--customer-contacts]
[--data-storage-size-in-gbs --storage-gbs]
[--data-storage-size-in-tbs --storage-tbs]
[--database-edition {EnterpriseEdition, StandardEdition}]
[--db-version]
[--db-workload {AJD, APEX, DW, LH, OLTP}]
[--display-name]
[--is-auto-scaling-for-storage-enabled --store-auto-scaling {0, 1, f, false, n, no, t, true, y, yes}]
[--is-local-data-guard-enabled --local-data-guard {0, 1, f, false, n, no, t, true, y, yes}]
[--is-mtls-connection-required --mtls-reqd {0, 1, f, false, n, no, t, true, y, yes}]
[--is-preview-version-with-service-terms-accepted --preview-accepted {0, 1, f, false, n, no, t, true, y, yes}]
[--license-model {BringYourOwnLicense, LicenseIncluded}]
[--location]
[--ncharacter-set]
[--network-anchor-id]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--private-endpoint-ip]
[--private-endpoint-label]
[--regular]
[--resource-anchor-id]
[--scheduled-operations-list]
[--subnet-id]
[--tags]
[--vnet-id]
[--whitelisted-ips]
[--zone]
示例
创建自治数据库
az oracle-database autonomous-database create --location <location> --autonomousdatabasename <name> --resource-group <resource_group> --subnet-id <subnet_id> --display-name <display_name> --compute-model ECPU --compute-count <compute_count> --data-storage-size-in-gbs <storage_size> --license-model <BringYourOwnLicense/LicenseIncluded> --db-workload OLTP --admin-password <password> --db-version 19c --character-set AL32UTF8 --ncharacter-set AL16UTF16 --vnet-id <vnet_id> --regular
使用资源和网络定位点创建自治数据库
az oracle-database autonomous-database create --location eastus --autonomousdatabasename MyAutoDB --resource-group MyResourceGroup --display-name MyAutoDB --resource-anchor-id <resource_anchor_id> --network-anchor-id <network_anchor_id> --compute-model ECPU --compute-count 2 --data-storage-size-in-gbs 1024 --license-model LicenseIncluded --db-workload OLTP --admin-password <password> --db-version 19c --character-set AL32UTF8 --ncharacter-set AL16UTF16 --regular
从现有自治数据库克隆
az oracle-database autonomous-database create --resource-group MyResourceGroup --location eastus --autonomousdatabasename MyCloneDB --display-name MyCloneDB --db-version 19c --admin-password <password> --compute-model ECPU --compute-count 2 --data-storage-size-in-gbs 1024 --license-model LicenseIncluded --db-workload OLTP --character-set AL32UTF8 --ncharacter-set AL16UTF16 --vnet-id <vnet_id> --subnet-id <subnet_id> --clone clone-type=Full source=Database source-id=<source_autonomous_database_id>
从备份时间戳克隆
az oracle-database autonomous-database create --resource-group MyResourceGroup --location eastus --autonomousdatabasename MyBackupCloneDB --display-name MyBackupCloneDB --db-version 19c --admin-password <password> --compute-model ECPU --compute-count 2 --data-storage-size-in-gbs 32 --license-model BringYourOwnLicense --db-workload OLTP --character-set AL32UTF8 --ncharacter-set AL16UTF16 --vnet-id <vnet_id> --subnet-id <subnet_id> --clone-from-backup-timestamp clone-type=Full source=BackupFromTimestamp source-id=<source_autonomous_database_id> timestamp=2026-06-03T15:45:11.000Z use-latest-available-backup-time-stamp=false
创建跨区域灾难恢复对等方
az oracle-database autonomous-database create --resource-group MyResourceGroup --location germanywestcentral --autonomousdatabasename MyCrossRegionPeerDB --display-name MyCrossRegionPeerDB --db-version 19c --compute-model ECPU --compute-count 2 --data-storage-size-in-gbs 1024 --license-model LicenseIncluded --character-set AL32UTF8 --ncharacter-set AL16UTF16 --vnet-id <destination_vnet_id> --subnet-id <destination_subnet_id> --cross-region-disaster-recovery remote-disaster-recovery-type=Adg source=CrossRegionDisasterRecovery source-id=<source_autonomous_database_id> source-location=eastus is-replicate-automatic-backups=true
必需参数
数据库名称。
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
为此资源操作自动获取Azure Policy令牌。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
管理员密码。 如果值为空,则从 tty 中询问该值。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
自治数据库 ID。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
自治无服务器数据库的维护计划类型。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
| 接受的值: | Early, Regular |
自动备份和长期备份的目的地。 当这个值发生变化时,现有备份会保持在原来的目的地。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
| 接受的值: | AZURE, OCI |
长期备份的保留期(以天为单位)。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
此资源操作的相关更改引用 ID。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
自治数据库的字符集。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
数据库可用的计算量(CPU)。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
自治数据库的计算模型。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
| 接受的值: | ECPU, OCPU |
指示是否为自治数据库 CPU 核心计数启用了自动缩放。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
要提供给数据库的 CPU 内核数。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
客户联系人。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
将创建并附加到数据库的数据卷的大小(以 GB 为单位)。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
数据库中的数据量(以 TB 为单位)。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
适用于自治数据库的 Oracle 数据库版本。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
| 接受的值: | EnterpriseEdition, StandardEdition |
适用于自治数据库的有效 Oracle 数据库版本。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
自治数据库工作负荷类型。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
| 接受的值: | AJD, APEX, DW, LH, OLTP |
自治数据库的用户友好名称。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
指示是否为自治数据库存储启用了自动缩放。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
指示自治数据库是启用了本地数据库还是启用了区域内 Data Guard。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
指定自治数据库是否需要 mTLS 连接。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
指定是否预配自治数据库预览版。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
适用于 Oracle 自治数据库的 Oracle 许可证模型。 默认值为LICENSE_INCLUDED。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
| 接受的值: | BringYourOwnLicense, LicenseIncluded |
未指定资源所在的地理位置,将使用资源组的位置。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Arguments |
自治数据库的字符集。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
Azure网络定位点 ID。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
资源的专用终结点 IP 地址。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
资源的专用终结点标签。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
Azure资源定位点 ID。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
计划操作的列表。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
客户端子网。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
资源标记。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Arguments |
用于网络连接的 VNET。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
客户端 IP 访问控制列表(ACL)。 这是 CIDR 表示法和/或 IP 地址的数组。 值应是单独的字符串,用逗号分隔。 示例:['1.1.1.1','1.1.1.0/24','1.1.2.25'] 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
自治数据库配置的逻辑区域。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az oracle-database autonomous-database delete
删除 AutonomousDatabase。
az oracle-database autonomous-database delete [--acquire-policy-token]
[--autonomousdatabasename --name]
[--change-reference]
[--ids]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--resource-group]
[--subscription]
[--yes]
示例
删除自治数据库
az oracle-database autonomous-database delete --name <ADBS name> --resource-group <resource_group>
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
为此资源操作自动获取Azure Policy令牌。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
数据库名称。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
此资源操作的相关更改引用 ID。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
不要提示确认。
| 属性 | 值 |
|---|---|
| 默认值: | False |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az oracle-database autonomous-database failover
对自治数据库执行故障转移作。
az oracle-database autonomous-database failover [--acquire-policy-token]
[--autonomousdatabasename]
[--change-reference]
[--ids]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--peer-db-id]
[--peer-db-location]
[--peer-db-ocid]
[--resource-group]
[--subscription]
示例
Failover
az oracle-database autonomous-database failover --autonomousdatabasename <ADBS name> --resource-group <resource_group> --peer-db-id <id>
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
为此资源操作自动获取Azure Policy令牌。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
数据库名称。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
此资源操作的相关更改引用 ID。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
灾难恢复对等数据库的 Azure 资源 ID,该数据库位于与当前对等数据库不同的区域中。 对等数据库 OCID 使用 --peer-db-ocid。
| 属性 | 值 |
|---|---|
| 参数组: | Body Arguments |
灾难恢复对等数据库的位置。
| 属性 | 值 |
|---|---|
| 参数组: | Body Arguments |
灾难恢复对等数据库的 OCI 数据库 OCID,该数据库位于与当前对等数据库不同的区域中。
| 属性 | 值 |
|---|---|
| 参数组: | Body Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az oracle-database autonomous-database generate-wallet
在自治数据库上生成钱包作。
az oracle-database autonomous-database generate-wallet --password
[--acquire-policy-token]
[--autonomousdatabasename]
[--change-reference]
[--file]
[--generate-type {All, Single}]
[--ids]
[--is-regional {0, 1, f, false, n, no, t, true, y, yes}]
[--resource-group]
[--subscription]
示例
生成钱包
az oracle-database autonomous-database generate-wallet --autonomousdatabasename <ADBS name> --resource-group <resource_group> --password <password> --is-regional True --file wallet-<ADBS name>.zip
必需参数
用于加密钱包内密钥的密码(如果值为空)从 tty 中询问。
| 属性 | 值 |
|---|---|
| 参数组: | Body Arguments |
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
为此资源操作自动获取Azure Policy令牌。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
数据库名称。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
此资源操作的相关更改引用 ID。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
用于保存生成的钱包 zip 的本地文件路径。 默认为 wallet-{autonomousdatabasename}.zip。
要生成的钱包类型。
| 属性 | 值 |
|---|---|
| 参数组: | Body Arguments |
| 接受的值: | All, Single |
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
在 PDB 连接信息中请求区域连接字符串时为 True,仅适用于跨区域 DG。
| 属性 | 值 |
|---|---|
| 参数组: | Body Arguments |
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az oracle-database autonomous-database list
按订阅 ID 列出 AutonomousDatabase 资源。
az oracle-database autonomous-database list [--max-items]
[--next-token]
[--resource-group]
示例
列出自治数据库
az oracle-database autonomous-database list --resource-group <resource_group>
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
命令输出中要返回的项总数。 如果可用的项总数大于指定的值,则会在命令的输出中提供令牌。 若要恢复分页,请在后续命令的 --next-token 参数中提供令牌值。
| 属性 | 值 |
|---|---|
| 参数组: | Pagination Arguments |
用于指定开始分页的位置的令牌。 这是先前截断的响应中的令牌值。
| 属性 | 值 |
|---|---|
| 参数组: | Pagination Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az oracle-database autonomous-database restore
将自治数据库还原到某个时间点。
az oracle-database autonomous-database restore --timestamp
[--acquire-policy-token]
[--autonomousdatabasename]
[--change-reference]
[--ids]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--resource-group]
[--subscription]
示例
还原自治数据库
az oracle-database autonomous-database restore --autonomousdatabasename <ADBS name> --resource-group <resource_group> --timestamp 2026-06-03T15:45:11.000Z
必需参数
将数据库还原到的时间点。 使用 RFC3339 UTC 格式,例如 2026-06-03T15:45:11.000Z。
| 属性 | 值 |
|---|---|
| 参数组: | Body Arguments |
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
为此资源操作自动获取Azure Policy令牌。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
数据库名称。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
此资源操作的相关更改引用 ID。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az oracle-database autonomous-database show
获取 AutonomousDatabase。
az oracle-database autonomous-database show [--autonomousdatabasename --name]
[--ids]
[--resource-group]
[--subscription]
示例
获取自治数据库
az oracle-database autonomous-database show --autonomousdatabasename <ADBS name> --resource-group <resource_group>
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
数据库名称。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az oracle-database autonomous-database shrink
此操作会将当前分配的存储缩小到当前实际使用的数据存储。
az oracle-database autonomous-database shrink [--acquire-policy-token]
[--autonomousdatabasename]
[--change-reference]
[--ids]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--resource-group]
[--subscription]
示例
Shrink
az oracle-database autonomous-database shrink --autonomousdatabasename <ADBS name> --resource-group <resource_group>
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
为此资源操作自动获取Azure Policy令牌。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
数据库名称。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
此资源操作的相关更改引用 ID。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az oracle-database autonomous-database switchover
对自治数据库执行切换作。
az oracle-database autonomous-database switchover [--acquire-policy-token]
[--autonomousdatabasename]
[--change-reference]
[--ids]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--peer-db-id]
[--peer-db-location]
[--peer-db-ocid]
[--resource-group]
[--subscription]
示例
Switchover
az oracle-database autonomous-database switchover --autonomousdatabasename <ADBS name> --resource-group <resource_group> --peer-db-id <id>
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
为此资源操作自动获取Azure Policy令牌。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
数据库名称。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
此资源操作的相关更改引用 ID。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
灾难恢复对等数据库的 Azure 资源 ID,该数据库位于与当前对等数据库不同的区域中。 对等数据库 OCID 使用 --peer-db-ocid。
| 属性 | 值 |
|---|---|
| 参数组: | Body Arguments |
灾难恢复对等数据库的位置。
| 属性 | 值 |
|---|---|
| 参数组: | Body Arguments |
灾难恢复对等数据库的 OCI 数据库 OCID,该数据库位于与当前对等数据库不同的区域中。
| 属性 | 值 |
|---|---|
| 参数组: | Body Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az oracle-database autonomous-database update
更新 AutonomousDatabase。
az oracle-database autonomous-database update [--acquire-policy-token]
[--add]
[--admin-password]
[--autonomous-maintenance-schedule-type --schedule-type {Early, Regular}]
[--autonomousdatabasename --name]
[--backup-destination {AZURE, OCI}]
[--backup-retention-period-in-days --retention-days]
[--backup-schedule --long-term-backup-schedule]
[--change-reference]
[--clone]
[--clone-from-backup-timestamp]
[--compute-count]
[--cpu-auto-scaling --is-auto-scaling-enabled {0, 1, f, false, n, no, t, true, y, yes}]
[--cpu-core-count]
[--cross-region-disaster-recovery]
[--customer-contacts]
[--data-storage-size-in-gbs --storage-gbs]
[--data-storage-size-in-tbs --storage-tbs]
[--database-edition {EnterpriseEdition, StandardEdition}]
[--display-name]
[--failover-limit --local-adg-auto-failover-max-data-loss-limit]
[--force-string {0, 1, f, false, n, no, t, true, y, yes}]
[--ids]
[--is-auto-scaling-for-storage-enabled --store-auto-scaling {0, 1, f, false, n, no, t, true, y, yes}]
[--is-local-data-guard-enabled --local-data-guard {0, 1, f, false, n, no, t, true, y, yes}]
[--is-mtls-connection-required --mtls-reqd {0, 1, f, false, n, no, t, true, y, yes}]
[--is-schedule-az-update-to-earliest {0, 1, f, false, n, no, t, true, y, yes}]
[--license-model {BringYourOwnLicense, LicenseIncluded}]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--open-mode {ReadOnly, ReadWrite}]
[--peer-db-id]
[--permission-level {Restricted, Unrestricted}]
[--regular]
[--remove]
[--resource-group]
[--role {BackupCopy, DisabledStandby, Primary, SnapshotStandby, Standby}]
[--scheduled-operations-list]
[--set]
[--subscription]
[--tags]
[--time-scheduled-az-update]
[--whitelisted-ips]
[--zone]
示例
更新自治数据库
az oracle-database autonomous-database update --autonomousdatabasename <ADBS name> --resource-group <resource_group> --tags {Tagkey:TagValue}
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
为此资源操作自动获取Azure Policy令牌。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
通过指定路径和键值对将对象添加到对象列表。 示例:--add property.listProperty <key=value, string or JSON string>。
| 属性 | 值 |
|---|---|
| 参数组: | Generic Update Arguments |
管理员密码。 如果值为空,则从 tty 中询问该值。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
自治无服务器数据库的维护计划类型。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
| 接受的值: | Early, Regular |
数据库名称。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
自动备份和长期备份的目的地。 当这个值发生变化时,现有备份会保持在原来的目的地。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
| 接受的值: | AZURE, OCI |
长期备份的保留期(以天为单位)。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
长期备份计划的详细信息。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
此资源操作的相关更改引用 ID。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
数据库可用的计算量(CPU)。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
指示是否为自治数据库 CPU 核心计数启用了自动缩放。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
要提供给数据库的 CPU 内核数。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
客户联系人。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
将创建并附加到数据库的数据卷的大小(以 GB 为单位)。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
数据库中的数据量(以 TB 为单位)。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
适用于自治数据库的 Oracle 数据库版本。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
| 接受的值: | EnterpriseEdition, StandardEdition |
自治数据库的用户友好名称。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
允许用户选择可接受的最大数据丢失限制(以秒为单位),最多会在本地自治数据防护需要时触发自动故障转移。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
使用“set”或“add”时,保留字符串文本,而不是尝试转换为 JSON。
| 属性 | 值 |
|---|---|
| 参数组: | Generic Update Arguments |
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
指示是否为自治数据库存储启用了自动缩放。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
指示自治数据库是启用了本地数据库还是启用了区域内 Data Guard。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
指定自治数据库是否需要 mTLS 连接。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
尽早更新 AZ。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
适用于 Oracle 自治数据库的 Oracle 许可证模型。 默认值为LICENSE_INCLUDED。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
| 接受的值: | BringYourOwnLicense, LicenseIncluded |
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
指示自治数据库模式。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
| 接受的值: | ReadOnly, ReadWrite |
灾难恢复对等数据库的数据库 OCID,该数据库位于与当前对等数据库不同的区域中。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
自治数据库权限级别。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
| 接受的值: | Restricted, Unrestricted |
支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
从列表中删除属性或元素。 示例: --remove property.list <indexToRemove> OR --remove propertyToRemove.
| 属性 | 值 |
|---|---|
| 参数组: | Generic Update Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
如果启用了自治数据防护,则自治容器数据库或自治数据库的数据防护角色。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
| 接受的值: | BackupCopy, DisabledStandby, Primary, SnapshotStandby, Standby |
计划操作的列表。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
通过指定要设置的属性路径和值来更新对象。 示例:--set property1.property2=<value>。
| 属性 | 值 |
|---|---|
| 参数组: | Generic Update Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
资源标记。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Arguments |
自治数据库可用性区更新的日期和时间。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
客户端 IP 访问控制列表(ACL)。 这是 CIDR 表示法和/或 IP 地址的数组。 值应是单独的字符串,用逗号分隔。 示例:['1.1.1.1','1.1.1.0/24','1.1.2.25'] 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
自治数据库配置的逻辑区域。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az oracle-database autonomous-database wait
将 CLI 置于等待状态,直到满足条件。
az oracle-database autonomous-database wait [--acquire-policy-token]
[--autonomousdatabasename --name]
[--change-reference]
[--created]
[--custom]
[--deleted]
[--exists]
[--ids]
[--interval]
[--resource-group]
[--subscription]
[--timeout]
[--updated]
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
为此资源操作自动获取Azure Policy令牌。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
数据库名称。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
此资源操作的相关更改引用 ID。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
等待在“Succeeded”中使用“provisioningState”创建。
| 属性 | 值 |
|---|---|
| 参数组: | Wait Condition Arguments |
| 默认值: | False |
等待条件满足自定义 JMESPath 查询。 例如 provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running']。
| 属性 | 值 |
|---|---|
| 参数组: | Wait Condition Arguments |
等到删除为止。
| 属性 | 值 |
|---|---|
| 参数组: | Wait Condition Arguments |
| 默认值: | False |
等待资源存在。
| 属性 | 值 |
|---|---|
| 参数组: | Wait Condition Arguments |
| 默认值: | False |
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
轮询间隔(以秒为单位)。
| 属性 | 值 |
|---|---|
| 参数组: | Wait Condition Arguments |
| 默认值: | 30 |
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
最大等待(以秒为单位)。
| 属性 | 值 |
|---|---|
| 参数组: | Wait Condition Arguments |
| 默认值: | 3600 |
等到 provisioningState 更新为“Succeeded”。
| 属性 | 值 |
|---|---|
| 参数组: | Wait Condition Arguments |
| 默认值: | False |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |