运维联盟俱乐部

 找回密码
 立即注册
查看: 2221|回复: 0

[日常管理] dbca duplicate standby database

[复制链接]
  • TA的每日心情
    开心
    2023-8-9 11:05
  • 发表于 2023-3-9 17:14:58 | 显示全部楼层 |阅读模式
    1. dbca -silent -createDuplicateDB \
    2. -gdbName chicago \
    3. -sid boston \
    4. -sysPassword welcome1 \
    5. -primaryDBConnectionString exa503:1521/chicago \
    6. -createAsStandby \
    7. -dbUniqueName boston \
    8. –initParams \
    9. db_create_file_dest=+DATAC1,\
    10. db_recovery_file_dest=+RECOC1,\
    11. local_listener=”boston_local_listener”
    复制代码
    1. [oracle@vm2 dbs]$ dbca -silent -createDuplicateDB -gdbName ora19 -sid ora19 -sysPassword oracle -primaryDBConnectionString vm1:1519/ora19 -createAsStandby -dbUniqueName ora19b
    2. Prepare for db operation
    3. 22% complete
    4. Listener config step
    5. 44% complete
    6. Auxiliary instance creation
    7. 67% complete
    8. RMAN duplicate
    9. 89% complete
    10. Post duplicate database operations
    11. 100% complete

    12. Look at the log file "/app/oracle/db/cfgtoollogs/dbca/ora19b/ora19b.log" for further details.
    复制代码
    1. $ dbca -silent -help
    2. Usage: dbca [<flag>] [<command> <option>]
    3. Following are the possible flags:
    4. -help
    5. -contextId <RAC | SI>
    6. -ignorePreReqs - Ignore prerequisite checks for current operation.
    7. -ignorePrereqFailure - Ignore all prerequisites failures.
    8. -silent - This flag allows you to carry on configuration in silent mode.
    9. -<command>

    10. Following are the possible commands:
    11. -addInstance - Command to Add an instance to an admin managed cluster database.
    12. -configureDatabase - Command to Configure a database.
    13. -configurePluggableDatabase - Command to Configure a pluggable database.
    14. -createCloneTemplate - Command to Create a clone template from an existing database.
    15. -createDatabase - Command to Create a database.
    16. -createDuplicateDB - Command to Duplicate a database.
    17. -createPluggableDatabase - Command to Create a pluggable database.
    18. -createTemplateFromDB - Command to Create a template from an existing database.
    19. -createTemplateFromTemplate - Command to Create a template from an existing template.
    20. -deleteDatabase - Command to Delete a database.
    21. -deleteInstance - Command to Delete an instance from an admin managed cluster database.
    22. -deletePluggableDatabase - Command to Delete a pluggable database.
    23. -deleteTemplate - Command to delete a template.
    24. -executePrereqs - Command to execute prerequisite checks.
    25. -generateScripts - Command to Generate scripts which can be used to create database.
    26. -relocatePDB - Command to Relocate a pluggable database.
    27. -unplugDatabase - Command to Unplug a pluggable database.

    28. $ dbca -help -silent
    29. Usage: dbca [<flag>] [<command> <option>]
    30. Following are the possible flags:
    31. -help
    32. -contextId <RAC | SI>
    33. -ignorePreReqs - Ignore prerequisite checks for current operation.
    34. -ignorePrereqFailure - Ignore all prerequisites failures.
    35. -silent - This flag allows you to carry on configuration in silent mode.
    36. -<command>

    37. Following are the possible commands:
    38. -addInstance - Command to Add an instance to an admin managed cluster database.
    39. -configureDatabase - Command to Configure a database.
    40. -configurePluggableDatabase - Command to Configure a pluggable database.
    41. -createCloneTemplate - Command to Create a clone template from an existing database.
    42. -createDatabase - Command to Create a database.
    43. -createDuplicateDB - Command to Duplicate a database.
    44. -createPluggableDatabase - Command to Create a pluggable database.
    45. -createTemplateFromDB - Command to Create a template from an existing database.
    46. -createTemplateFromTemplate - Command to Create a template from an existing template.
    47. -deleteDatabase - Command to Delete a database.
    48. -deleteInstance - Command to Delete an instance from an admin managed cluster database.
    49. -deletePluggableDatabase - Command to Delete a pluggable database.
    50. -deleteTemplate - Command to delete a template.
    51. -executePrereqs - Command to execute prerequisite checks.
    52. -generateScripts - Command to Generate scripts which can be used to create database.
    53. -relocatePDB - Command to Relocate a pluggable database.
    54. -unplugDatabase - Command to Unplug a pluggable database.

    55. $ dbca -help -addInstance
    56. -addInstance - Command to Add an instance to an admin managed cluster database.
    57. -gdbName <Global database name>
    58. -nodeName <Node name of the new instance that has to be added or existing instance that has to be removed>
    59. [-updateDirService <true | false>]
    60. -dirServicePassword <Password for directory service>
    61. -dirServiceUserName <User name for directory service>
    62. [-useWalletForDBCredentials <true | false> Specify true to load database credentials from wallet]
    63. -dbCredentialsWalletLocation <Path of the directory containing the wallet files>
    64. [-dbCredentialsWalletPassword <Password to open wallet with auto login disabled>]
    65. [-instanceName <Name of an Instance to add or delete>]
    66. [-sysDBAUserName <User name with SYSDBA privileges>]
    67. [-sysDBAPassword <Password for sysDBAUserName user name>]

    68. $ dbca -help -configureDatabase
    69. -configureDatabase - Command to Configure a database.
    70. -sourceDB <Database unique name for RAC database or SID for Single Instance database>
    71. [-useWalletForDBCredentials <true | false> Specify true to load database credentials from wallet]
    72. -dbCredentialsWalletLocation <Path of the directory containing the wallet files>
    73. [-dbCredentialsWalletPassword <Password to open wallet with auto login disabled>]
    74. [-olsConfiguration <true | false> Specify true to configure and enable Oracle Label Security.]
    75. [-configureWithOID This flag configures Oracle Label Security with OID.]
    76. [-moveDatabaseFiles <Move database files from one storage location to other. For example ASM to FS, FS to ASM>]
    77. -datafileDestination <Destination directory for all database files>
    78. -sourceDB <Database unique name for RAC database or SID for Single Instance database>
    79. [-initParams <Comma separated list of name=value pairs>]
    80. [-initParamsEscapeChar <Specify escape character for comma when a specific initParam has multiple values.If the escape character is not specified backslash is the default escape character>]
    81. [-recoveryAreaDestination <Destination directory for all recovery files. Specify "NONE" for disabling Fast Recovery Area>]
    82. [-recoveryAreaSize <Fast Recovery Area Size in MB>]
    83. [-useOMF <true | false> Specify true to use Oracle-Managed Files.]
    84. [-recoveryAreaSize <Fast Recovery Area Size in MB>]
    85. [-configureOracleR <Configure Oracle R in the database.>]
    86. [-oracleRConfigTablespace <Specify the tablespace to be used for Oracle R configuration. For example SYSAUX>]
    87. [-dvConfiguration <true | false> Specify true to configure and enable database vault.]
    88. -dvUserName <Specify database vault owner user name>
    89. -dvUserPassword <Specify database vault owner password>
    90. [-dvAccountManagerPassword <Specify database vault account manager password>]
    91. [-dvAccountManagerName <Specify separate database vault account manager>]
    92. [-registerWithDirService | -unregisterWithDirService | -regenerateDBPassword]
    93. [-registerWithDirService <true | false>]
    94. -dirServiceUserName <User name for directory service>
    95. [-databaseCN <Database common name>]
    96. [-dirServiceCertificatePath <Path to the certificate file to use when configuring SSL between database and directory service>]
    97. [-dirServicePassword <Password for directory service>]
    98. [-dirServiceUser <SamAccountName in case of configuring Active Directory>]
    99. [-ldapDirectoryAccessType <PASSWORD | SSL>]
    100. [-useSYSAuthForLDAPAccess <true | false>]
    101. [-walletPassword <Password for database wallet>]
    102. [-unregisterWithDirService <true | false>]
    103. -dirServiceUserName <User name for directory service>
    104. [-dirServicePassword <Password for directory service>]
    105. [-walletPassword <Password for database wallet>]
    106. [-regenerateDBPassword <true | false>]
    107. [-addDBOption <Specify any of the following DB Options as a comma separated list: JSERVER | ORACLE_TEXT | IMEDIA | CWMLITE | SPATIAL | OMS | APEX | DV>]
    108. [-sysDBAUserName <User name with SYSDBA privileges>]
    109. [-sysDBAPassword <Password for sysDBAUserName user name>]

    110. $ dbca -help -configurePluggableDatabase
    111. -configurePluggableDatabase - Command to Configure a pluggable database.
    112. -pdbName <Pluggable database name>
    113. -sourceDB <Database unique name for RAC database or SID for Single Instance database>
    114. [-useWalletForDBCredentials <true | false> Specify true to load database credentials from wallet]
    115. -dbCredentialsWalletLocation <Path of the directory containing the wallet files>
    116. [-dbCredentialsWalletPassword <Password to open wallet with auto login disabled>]
    117. [-olsConfiguration <true | false> Specify true to configure and enable Oracle Label Security.]
    118. [-configureWithOID This flag configures Oracle Label Security with OID.]
    119. [-lbacsysPassword <LBACSYS user Password is required for configuring OLS with directory service>]
    120. [-configureOracleR <Configure Oracle R in the database.>]
    121. [-oracleRConfigTablespace <Specify the tablespace to be used for Oracle R configuration. For example SYSAUX>]
    122. [-dvConfiguration <true | false> Specify true to configure and enable database vault.]
    123. -dvUserName <Specify database vault owner user name>
    124. -dvUserPassword <Specify database vault owner password>
    125. [-dvAccountManagerPassword <Specify database vault account manager password>]
    126. [-dvAccountManagerName <Specify separate database vault account manager>]
    127. [-registerWithDirService | -unregisterWithDirService | -regenerateDBPassword]
    128. [-registerWithDirService <true | false>]
    129. -dirServiceUserName <User name for directory service>
    130. [-dirServiceUser <SamAccountName in case of configuring Active Directory>]
    131. [-dirServicePassword <Password for directory service>]
    132. [-databaseCN <Database common name>]
    133. [-dirServiceCertificatePath <Path to the certificate file to use when configuring SSL between database and directory service>]
    134. [-walletPassword <Password for database wallet>]
    135. [-unregisterWithDirService <true | false>]
    136. -dirServiceUserName <User name for directory service>
    137. [-dirServicePassword <Password for directory service>]
    138. [-walletPassword <Password for database wallet>]
    139. [-regenerateDBPassword <true | false>]

    140. $ dbca -help -createCloneTemplate
    141. -createCloneTemplate - Command to Create a clone template from an existing database.
    142. -sourceSID | -sourceDB
    143. -sourceSID <Database unique name for RAC database and SID for Single Instance database>
    144. -sourceDB <Database unique name for RAC database or SID for Single Instance database>
    145. -templateName <Specify an existing template in default location or the complete template path for DB Creation or provide a new template name for template creation>
    146. [-promptForWalletPassword - Prompt for wallet password.]
    147. [-rmanParallelism <Parallelism value>]
    148. [-useWalletForDBCredentials <true | false> Specify true to load database credentials from wallet]
    149. -dbCredentialsWalletLocation <Path of the directory containing the wallet files>
    150. [-dbCredentialsWalletPassword <Password to open wallet with auto login disabled>]
    151. [-maxBackupSetSizeInMB <Maximum backup set size in MB>]
    152. [-compressBackup <true | false> Specify true to compress the backup.]
    153. [-dataFileBackup <true | false> When "false" is passed create clone template without data file backup. Default value is true.]
    154. [-datafileJarLocation <For database creation, pass the absolute path of the datafile backup and for template creation, pass the directory to place the datafile backup>]
    155. [-sysDBAUserName <User name with SYSDBA privileges>]
    156. [-maintainFileLocations <true | false>]
    157. [-sysDBAPassword <Password for sysDBAUserName user name>]
    158. [-walletPassword <Password for database wallet>]

    159. $ dbca -help -createDatabase
    160. -createDatabase - Command to Create a database.
    161. -responseFile | (-gdbName,-templateName)
    162. -responseFile - <Fully qualified path for a response file>
    163. -gdbName <Global database name>
    164. -templateName <Specify an existing template in default location or the complete template path for DB Creation or provide a new template name for template creation>
    165. [-useWalletForDBCredentials <true | false> Specify true to load database credentials from wallet]
    166. -dbCredentialsWalletLocation <Path of the directory containing the wallet files>
    167. [-dbCredentialsWalletPassword <Password to open wallet with auto login disabled>]
    168. [-characterSet <Character set for the database>]
    169. [-dvConfiguration <true | false> Specify true to configure and enable database vault.]
    170. -dvUserName <Specify database vault owner user name>
    171. -dvUserPassword <Specify database vault owner password>
    172. [-dvAccountManagerPassword <Specify database vault account manager password>]
    173. [-dvAccountManagerName <Specify separate database vault account manager>]
    174. [-datafileDestination <Destination directory for all database files>]
    175. [-datafileJarLocation <For database creation, pass the absolute path of the datafile backup and for template creation, pass the directory to place the datafile backup>]
    176. [-runCVUChecks <Specify "true" in order to run Cluster Verification Utility checks periodically for RAC databases.>]
    177. [-sid <Database system identifier>]
    178. [-redoLogFileSize <Size of each redo log file in MB>]
    179. [-registerWithDirService <true | false>]
    180. -dirServiceUserName <User name for directory service>
    181. [-databaseCN <Database common name>]
    182. [-dirServiceCertificatePath <Path to the certificate file to use when configuring SSL between database and directory service>]
    183. [-dirServicePassword <Password for directory service>]
    184. [-dirServiceUser <SamAccountName in case of configuring Active Directory>]
    185. [-ldapDirectoryAccessType <PASSWORD | SSL>]
    186. [-useSYSAuthForLDAPAccess <true | false>]
    187. [-walletPassword <Password for database wallet>]
    188. [-systemPassword <SYSTEM user password>]
    189. [-nodelist <Node names separated by comma for the database>]
    190. [-oracleHomeUserPassword <Specify Oracle Home User Password>]
    191. [-sysPassword <SYS user password>]
    192. [-enableArchive <true | false> Specify true to enable archive>]
    193. [-archiveLogMode <AUTO|MANUAL , the default is Automatic archiving>]
    194. [-archiveLogDest <Specify archive log destinations separated by comma. If archive log destination is not specified, fast recovery area location will be used for archive log files.>]
    195. [-memoryMgmtType <AUTO|AUTO_SGA|CUSTOM_SGA>]
    196. [-variables <Comma separated list of name=value pairs of location variables>]
    197. [-listeners <A comma separated list of listeners that the database can be configured with>]
    198. [-olsConfiguration <true | false> Specify true to configure and enable Oracle Label Security.]
    199. [-configureWithOID This flag configures Oracle Label Security with OID.]
    200. [-createAsContainerDatabase <true | false>]
    201. [-pdbName <Pluggable database name>]
    202. [-numberOfPDBs <Number of pluggable databases to be created, default is 0>]
    203. [-pdbStorageMAXSizeInMB <value>]
    204. [-pdbStorageMAXTempSizeInMB <value>]
    205. [-useLocalUndoForPDBs <true | false> Specify false to disable local undo tablespace for PDBs.]
    206. [-pdbAdminPassword <PDB Administrator user Password, required only while creating new PDB>]
    207. [-pdbOptions <A comma separated list of name:value pairs with database options to enable/disable. For example JSERVER:true,DV:false>]
    208. [-recoveryAreaDestination <Destination directory for all recovery files. Specify "NONE" for disabling Fast Recovery Area>]
    209. [-recoveryAreaSize <Fast Recovery Area Size in MB>]
    210. [-createListener <Create a new listener to register your database. Specify in format, LISTENER_NAME:PORT>]
    211. [-useOMF <true | false> Specify true to use Oracle-Managed Files.]
    212. [-memoryPercentage | -totalMemory]
    213. [-memoryPercentage <Percentage of physical memory for oracle database>]
    214. [-totalMemory <Memory allocated for Oracle in MB>]
    215. [-dbOptions <A comma separated list of name:value pairs with database options to enable/disable. For example JSERVER:true,DV:false>]
    216. [-sampleSchema <true | false>]
    217. [-variablesFile <File name of the name=value pairs for location variables in the template>]
    218. [-customScripts <A comma separated list of SQL scripts which needs to be run post db creation.The scripts are run in order they are listed>]
    219. [-databaseType <MULTIPURPOSE | DATA_WAREHOUSING | OLTP>]
    220. [-oracleHomeUserName <Specify Oracle Home User Name>]
    221. [-initParams <Comma separated list of name=value pairs>]
    222. [-initParamsEscapeChar <Specify escape character for comma when a specific initParam has multiple values.If the escape character is not specified backslash is the default escape character>]
    223. [-policyManaged | -adminManaged]
    224. [-policyManaged <Policy managed database, default option is Admin managed database>]
    225. -serverPoolName <Specify the single server pool name in case of create server pool or comma separated list in case of existing server pools>
    226. [-pqPoolName <value>]
    227. [-createServerPool <Create a new server pool, which will be used by the database>]
    228. [-pqPoolName <value>]
    229. [-forceServerPoolCreation <To create server pool by force when adequate free servers are not available. This may affect the database which is already in running mode>]
    230. [-pqCardinality <value>]
    231. [-cardinality <Specify the cardinality of the new server pool that is to be created, default is the number of qualified nodes>]
    232. [-adminManaged <Admin managed database, this is default option>]
    233. [-nationalCharacterSet <National character set for the database>]
    234. [-storageType < FS | ASM >]
    235. -datafileDestination <Destination directory for all database files>
    236. [-asmsnmpPassword <ASMSNMP password for ASM monitoring>]
    237. [-databaseConfigType <SINGLE | RAC | RACONENODE>]
    238. [-RACOneNodeServiceName <Service name for the service to be created for RAC One Node database. This option is mandatory when the databaseConfigType is RACONENODE>]
    239. [-emConfiguration <DBEXPRESS | CENTRAL | BOTH | NONE>]
    240. [-dbsnmpPassword <DBSNMP user password>]
    241. [-emPassword <EM Admin user password>]
    242. [-emUser <EM Admin username to add or modify targets>]
    243. [-emExpressPort <EM database express port number. Generally used during createDatabase>]
    244. [-omsHost <EM management server host name>]
    245. [-omsPort <EM management server port number>]
    246. [-emExpressPortAsGlobalPort <value>]

    247. $ dbca -help -createDuplicateDB
    248. -createDuplicateDB - Command to Duplicate a database.
    249. -gdbName <Global database name>
    250. -primaryDBConnectionString <EZCONNECT string to connect to primary database for example "host:port/servicename">
    251. -sid <Database system identifier>
    252. [-useWalletForDBCredentials <true | false> Specify true to load database credentials from wallet]
    253. -dbCredentialsWalletLocation <Path of the directory containing the wallet files>
    254. [-dbCredentialsWalletPassword <Password to open wallet with auto login disabled>]
    255. [-initParams <Comma separated list of name=value pairs>]
    256. [-initParamsEscapeChar <Specify escape character for comma when a specific initParam has multiple values.If the escape character is not specified backslash is the default escape character>]
    257. [-policyManaged | -adminManaged]
    258. [-policyManaged <Policy managed database, default option is Admin managed database>]
    259. -serverPoolName <Specify the single server pool name in case of create server pool or comma separated list in case of existing server pools>
    260. [-pqPoolName <value>]
    261. [-createServerPool <Create a new server pool, which will be used by the database>]
    262. [-pqPoolName <value>]
    263. [-forceServerPoolCreation <To create server pool by force when adequate free servers are not available. This may affect the database which is already in running mode>]
    264. [-pqCardinality <value>]
    265. [-cardinality <Specify the cardinality of the new server pool that is to be created, default is the number of qualified nodes>]
    266. [-adminManaged <Admin managed database, this is default option>]
    267. [-datafileDestination <Destination directory for all database files>]
    268. [-nodelist <Node names separated by comma for the database>]
    269. [-databaseConfigType <SINGLE | RAC | RACONENODE>]
    270. [-RACOneNodeServiceName <Service name for the service to be created for RAC One Node database. This option is mandatory when the databaseConfigType is RACONENODE>]
    271. [-createAsStandby <Option to create a standby database>]
    272. [-dbUniqueName <db_unique_name for standby db>]
    273. [-customScripts <A comma separated list of SQL scripts which needs to be run post db creation.The scripts are run in order they are listed>]

    274. $ dbca -help -createPluggableDatabase
    275. -createPluggableDatabase - Command to Create a pluggable database.
    276. -pdbName <Pluggable database name>
    277. -sourceDB <Database unique name for RAC database or SID for Single Instance database>
    278. [-useWalletForDBCredentials <true | false> Specify true to load database credentials from wallet]
    279. -dbCredentialsWalletLocation <Path of the directory containing the wallet files>
    280. [-dbCredentialsWalletPassword <Password to open wallet with auto login disabled>]
    281. [-pdbStorageMAXSizeInMB <value>]
    282. [-useMetaDataFileLocation <true | false> Specify true if datafile path defined in metadata file within PDB archive file is to be used while extracting datafiles.]
    283. [-dvConfiguration <true | false> Specify true to configure and enable database vault.]
    284. -dvUserName <Specify database vault owner user name>
    285. -dvUserPassword <Specify database vault owner password>
    286. [-dvAccountManagerPassword <Specify database vault account manager password>]
    287. [-dvAccountManagerName <Specify separate database vault account manager>]
    288. [-pdbStorageMAXTempSizeInMB <value>]
    289. [-createAsClone <true | false> Create PDB as clone. When "true" is passed a new PDB GUID is generated for the plugged PDB]
    290. [-createUserTableSpace <true | false> Specify true if a default user tablespace need to be created in new PDB.]
    291. [-pdbUseMultipleBackup <value>]
    292. [-customScripts <A comma separated list of SQL scripts which needs to be run post db creation.The scripts are run in order they are listed>]
    293. [-createPDBFrom <DEFAULT | FILEARCHIVE | RMANBACKUP | USINGXML | PDB>]
    294. [-createNewPDBAdminUser <Specify this argument if a new PDB Administrator user needs to be created after plugging in PDB from Archive or File Set>]
    295. [-fileNameConvert <This clause specifies how to generate names of files>]
    296. [-pdbAdminUserName <PDB Administrator user name, required only while creating new PDB>]
    297. [-sourceFileNameConvert <This clause specifies how to locate files listed in PDB XML metadata file>]
    298. [-pdbStorageMAXSizeInMB <value>]
    299. [-pdbStorageMAXTempSizeInMB <value>]
    300. [-workArea <Specify a location which can be used to unzip PDB archive files (required when createPDBFrom is FILEARCHIVE)>]
    301. [-sourcePDB <value>]
    302. [-copyPDBFiles <true | false> Specify true if PDB datafiles need to be copied]
    303. [-pdbArchiveFile <Absolute file path and name for PDB Archive file. Optional field during CreatePluggableDatabase/UnplugDatabase>]
    304. [-pdbBackUpfile <Absolute file path and name for PDB backup file, required when archive type is RMAN (specify comma separated paths if there are multiple backups when creating PDB).>]
    305. [-pdbMetadataFile <Absolute file path and name for PDB metadata file, required when archive type is RMAN or NONE. Optional field during CreatePluggableDatabase/UnplugDatabase>]
    306. [-pdbAdminPassword <PDB Administrator user Password, required only while creating new PDB>]
    307. [-registerWithDirService <true | false>]
    308. -dirServiceUserName <User name for directory service>
    309. [-dirServiceUser <SamAccountName in case of configuring Active Directory>]
    310. [-dirServicePassword <Password for directory service>]
    311. [-databaseCN <Database common name>]
    312. [-dirServiceCertificatePath <Path to the certificate file to use when configuring SSL between database and directory service>]
    313. [-walletPassword <Password for database wallet>]
    314. [-lbacsysPassword <LBACSYS user Password is required for configuring OLS with directory service>]
    315. [-createFromRemotePDB <Create a pluggable database from Remote PDB clone operation.>]
    316. -remotePDBName <Name of the pluggable database to clone/relocate>
    317. -dbLinkUsername <Common user of a remote CDB, used by database link to connect to remote CDB.>
    318. -remoteDBConnString <EZCONNECT string to connect to Source database for example "host:port/servicename">
    319. [-remoteDBSYSDBAUserName <User name with SYSDBA privileges of remote database>]
    320. [-dbLinkUserPassword <Common user password of a remote CDB, used by database link to connect to remote CDB.>]
    321. [-remoteDBSYSDBAUserPassword <Password for remoteDBSYSDBAUserName user of remote database.>]
    322. [-sysDBAUserName <User name with SYSDBA privileges>]
    323. [-sysDBAPassword <Password for sysDBAUserName user name>]
    324. [-pdbDatafileDestination <PDB datafile area>]

    325. $ dbca -help -createTemplateFromDB
    326. -createTemplateFromDB - Command to Create a template from an existing database.
    327. -templateName <Specify an existing template in default location or the complete template path for DB Creation or provide a new template name for template creation>
    328. -sourceDB <Database unique name for RAC database or SID for Single Instance database>
    329. [-connectionString <EZCONNECT string to connect to remote database for example "host:port/servicename">]
    330. [-useWalletForDBCredentials <true | false> Specify true to load database credentials from wallet]
    331. -dbCredentialsWalletLocation <Path of the directory containing the wallet files>
    332. [-dbCredentialsWalletPassword <Password to open wallet with auto login disabled>]
    333. [-sysDBAUserName <User name with SYSDBA privileges>]
    334. [-maintainFileLocations <true | false>]
    335. [-sysDBAPassword <Password for sysDBAUserName user name>]

    336. $ dbca -help -createTemplateFromTemplate
    337. -createTemplateFromTemplate - Command to Create a template from an existing template.
    338. -sourceTemplateName <Name of an existing template in default location or the complete template path>
    339. -templateName <Specify an existing template in default location or the complete template path for DB Creation or provide a new template name for template creation>
    340. [-variables <Comma separated list of name=value pairs of location variables>]
    341. [-characterSet <Character set for the database>]
    342. [-recoveryAreaDestination <Destination directory for all recovery files. Specify "NONE" for disabling Fast Recovery Area>]
    343. [-recoveryAreaSize <Fast Recovery Area Size in MB>]
    344. [-datafileDestination <Destination directory for all database files>]
    345. [-useOMF <true | false> Specify true to use Oracle-Managed Files.]
    346. [-datafileJarLocation <For database creation, pass the absolute path of the datafile backup and for template creation, pass the directory to place the datafile backup>]
    347. [-memoryPercentage | -totalMemory]
    348. [-memoryPercentage <Percentage of physical memory for oracle database>]
    349. [-totalMemory <Memory allocated for Oracle in MB>]
    350. [-dbOptions <A comma separated list of name:value pairs with database options to enable/disable. For example JSERVER:true,DV:false>]
    351. [-variablesFile <File name of the name=value pairs for location variables in the template>]
    352. [-redoLogFileSize <Size of each redo log file in MB>]
    353. [-initParams <Comma separated list of name=value pairs>]
    354. [-initParamsEscapeChar <Specify escape character for comma when a specific initParam has multiple values.If the escape character is not specified backslash is the default escape character>]
    355. [-nationalCharacterSet <National character set for the database>]
    356. [-storageType < FS | ASM >]
    357. -datafileDestination <Destination directory for all database files>
    358. [-asmsnmpPassword <ASMSNMP password for ASM monitoring>]
    359. [-enableArchive <true | false> Specify true to enable archive>]
    360. [-archiveLogMode <AUTO|MANUAL , the default is Automatic archiving>]
    361. [-archiveLogDest <Specify archive log destinations separated by comma. If archive log destination is not specified, fast recovery area location will be used for archive log files.>]
    362. [-memoryMgmtType <AUTO|AUTO_SGA|CUSTOM_SGA>]

    363. $ dbca -help -deleteDatabase
    364. -deleteDatabase - Command to Delete a database.
    365. -sourceDB <Database unique name for RAC database or SID for Single Instance database>
    366. [-useWalletForDBCredentials <true | false> Specify true to load database credentials from wallet]
    367. -dbCredentialsWalletLocation <Path of the directory containing the wallet files>
    368. [-dbCredentialsWalletPassword <Password to open wallet with auto login disabled>]
    369. [-unregisterWithDirService <true | false>]
    370. -dirServiceUserName <User name for directory service>
    371. [-dirServicePassword <Password for directory service>]
    372. [-walletPassword <Password for database wallet>]
    373. [-deRegisterEMCloudControl ]
    374. -emUser <EM Admin username to add or modify targets>
    375. -omsHost <EM management server host name>
    376. -omsPort <EM management server port number>
    377. [-emPassword <EM Admin user password>]
    378. [-sysDBAUserName <User name with SYSDBA privileges>]
    379. [-forceArchiveLogDeletion <To delete archive logs of a database>]
    380. [-sysDBAPassword <Password for sysDBAUserName user name>]
    381. [-sid <Database system identifier>]

    382. $ dbca -help -deleteInstance
    383. -deleteInstance - Command to Delete an instance from an admin managed cluster database.
    384. -gdbName <Global database name>
    385. -instanceName <Name of an Instance to add or delete>
    386. [-nodeName <Node name of the new instance that has to be added or existing instance that has to be removed>]
    387. [-updateDirService <true | false>]
    388. -dirServicePassword <Password for directory service>
    389. -dirServiceUserName <User name for directory service>
    390. [-useWalletForDBCredentials <true | false> Specify true to load database credentials from wallet]
    391. -dbCredentialsWalletLocation <Path of the directory containing the wallet files>
    392. [-dbCredentialsWalletPassword <Password to open wallet with auto login disabled>]
    393. [-sysDBAUserName <User name with SYSDBA privileges>]
    394. [-sysDBAPassword <Password for sysDBAUserName user name>]

    395. $ dbca -silent -deletePluggableDatabase
    396. [INS-04008] Invalid combination of arguments passed from command line. One or more mandatory dependent arguments are not passed for the argument: -deletePluggableDatabase
    397. -deletePluggableDatabase - Command to Delete a pluggable database.
    398. -pdbName <Pluggable database name>
    399. -sourceDB <Database unique name for RAC database or SID for Single Instance database>
    400. [-useWalletForDBCredentials <true | false> Specify true to load database credentials from wallet]
    401. -dbCredentialsWalletLocation <Path of the directory containing the wallet files>
    402. [-dbCredentialsWalletPassword <Password to open wallet with auto login disabled>]
    403. [-sysDBAUserName <User name with SYSDBA privileges>]
    404. [-sysDBAPassword <Password for sysDBAUserName user name>]

    405. $ dbca -help -deletePluggableDatabase
    406. -deletePluggableDatabase - Command to Delete a pluggable database.
    407. -pdbName <Pluggable database name>
    408. -sourceDB <Database unique name for RAC database or SID for Single Instance database>
    409. [-useWalletForDBCredentials <true | false> Specify true to load database credentials from wallet]
    410. -dbCredentialsWalletLocation <Path of the directory containing the wallet files>
    411. [-dbCredentialsWalletPassword <Password to open wallet with auto login disabled>]
    412. [-sysDBAUserName <User name with SYSDBA privileges>]
    413. [-sysDBAPassword <Password for sysDBAUserName user name>]

    414. $ dbca -help -deleteTemplate
    415. -deleteTemplate - Command to delete a template.
    416. -templateName <Specify an existing template in default location or the complete template path for DB Creation or provide a new template name for template creation>

    417. $ dbca -help -executePrereqs
    418. -executePrereqs - Command to execute prerequisite checks.
    419. -databaseConfigType <SINGLE | RAC | RACONENODE>
    420. [-RACOneNodeServiceName <Service name for the service to be created for RAC One Node database. This option is mandatory when the databaseConfigType is RACONENODE>]
    421. [-nodelist <Node names separated by comma for the database>]

    422. $ dbca -help -generateScripts
    423. -generateScripts - Command to Generate scripts which can be used to create database.
    424. -gdbName <Global database name>
    425. -templateName <Specify an existing template in default location or the complete template path for DB Creation or provide a new template name for template creation>
    426. [-useWalletForDBCredentials <true | false> Specify true to load database credentials from wallet]
    427. -dbCredentialsWalletLocation <Path of the directory containing the wallet files>
    428. [-dbCredentialsWalletPassword <Password to open wallet with auto login disabled>]
    429. [-characterSet <Character set for the database>]
    430. [-dvConfiguration <true | false> Specify true to configure and enable database vault.]
    431. -dvUserName <Specify database vault owner user name>
    432. -dvUserPassword <Specify database vault owner password>
    433. [-dvAccountManagerPassword <Specify database vault account manager password>]
    434. [-dvAccountManagerName <Specify separate database vault account manager>]
    435. [-scriptDest <Destination for all the scriptfiles>]
    436. [-datafileDestination <Destination directory for all database files>]
    437. [-datafileJarLocation <For database creation, pass the absolute path of the datafile backup and for template creation, pass the directory to place the datafile backup>]
    438. [-runCVUChecks <Specify "true" in order to run Cluster Verification Utility checks periodically for RAC databases.>]
    439. [-sid <Database system identifier>]
    440. [-redoLogFileSize <Size of each redo log file in MB>]
    441. [-registerWithDirService <true | false>]
    442. -dirServiceUserName <User name for directory service>
    443. [-databaseCN <Database common name>]
    444. [-dirServiceCertificatePath <Path to the certificate file to use when configuring SSL between database and directory service>]
    445. [-dirServicePassword <Password for directory service>]
    446. [-dirServiceUser <SamAccountName in case of configuring Active Directory>]
    447. [-ldapDirectoryAccessType <PASSWORD | SSL>]
    448. [-useSYSAuthForLDAPAccess <true | false>]
    449. [-walletPassword <Password for database wallet>]
    450. [-systemPassword <SYSTEM user password>]
    451. [-nodelist <Node names separated by comma for the database>]
    452. [-sysPassword <SYS user password>]
    453. [-enableArchive <true | false> Specify true to enable archive>]
    454. [-archiveLogMode <AUTO|MANUAL , the default is Automatic archiving>]
    455. [-archiveLogDest <Specify archive log destinations separated by comma. If archive log destination is not specified, fast recovery area location will be used for archive log files.>]
    456. [-memoryMgmtType <AUTO|AUTO_SGA|CUSTOM_SGA>]
    457. [-responseFile - <Fully qualified path for a response file>]
    458. [-variables <Comma separated list of name=value pairs of location variables>]
    459. [-listeners <A comma separated list of listeners that the database can be configured with>]
    460. [-olsConfiguration <true | false> Specify true to configure and enable Oracle Label Security.]
    461. [-configureWithOID This flag configures Oracle Label Security with OID.]
    462. [-createAsContainerDatabase <true | false>]
    463. [-pdbName <Pluggable database name>]
    464. [-numberOfPDBs <Number of pluggable databases to be created, default is 0>]
    465. [-pdbStorageMAXSizeInMB <value>]
    466. [-pdbStorageMAXTempSizeInMB <value>]
    467. [-useLocalUndoForPDBs <true | false> Specify false to disable local undo tablespace for PDBs.]
    468. [-pdbAdminPassword <PDB Administrator user Password, required only while creating new PDB>]
    469. [-pdbOptions <A comma separated list of name:value pairs with database options to enable/disable. For example JSERVER:true,DV:false>]
    470. [-recoveryAreaDestination <Destination directory for all recovery files. Specify "NONE" for disabling Fast Recovery Area>]
    471. [-recoveryAreaSize <Fast Recovery Area Size in MB>]
    472. [-createListener <Create a new listener to register your database. Specify in format, LISTENER_NAME:PORT>]
    473. [-useOMF <true | false> Specify true to use Oracle-Managed Files.]
    474. [-memoryPercentage | -totalMemory]
    475. [-memoryPercentage <Percentage of physical memory for oracle database>]
    476. [-totalMemory <Memory allocated for Oracle in MB>]
    477. [-sampleSchema <true | false>]
    478. [-variablesFile <File name of the name=value pairs for location variables in the template>]
    479. [-customScripts <A comma separated list of SQL scripts which needs to be run post db creation.The scripts are run in order they are listed>]
    480. [-databaseType <MULTIPURPOSE | DATA_WAREHOUSING | OLTP>]
    481. [-initParams <Comma separated list of name=value pairs>]
    482. [-initParamsEscapeChar <Specify escape character for comma when a specific initParam has multiple values.If the escape character is not specified backslash is the default escape character>]
    483. [-policyManaged | -adminManaged]
    484. [-policyManaged <Policy managed database, default option is Admin managed database>]
    485. -serverPoolName <Specify the single server pool name in case of create server pool or comma separated list in case of existing server pools>
    486. [-pqPoolName <value>]
    487. [-createServerPool <Create a new server pool, which will be used by the database>]
    488. [-pqPoolName <value>]
    489. [-forceServerPoolCreation <To create server pool by force when adequate free servers are not available. This may affect the database which is already in running mode>]
    490. [-pqCardinality <value>]
    491. [-cardinality <Specify the cardinality of the new server pool that is to be created, default is the number of qualified nodes>]
    492. [-adminManaged <Admin managed database, this is default option>]
    493. [-nationalCharacterSet <National character set for the database>]
    494. [-storageType < FS | ASM >]
    495. -datafileDestination <Destination directory for all database files>
    496. [-asmsnmpPassword <ASMSNMP password for ASM monitoring>]
    497. [-databaseConfigType <SINGLE | RAC | RACONENODE>]
    498. [-RACOneNodeServiceName <Service name for the service to be created for RAC One Node database. This option is mandatory when the databaseConfigType is RACONENODE>]
    499. [-emConfiguration <DBEXPRESS | CENTRAL | BOTH | NONE>]
    500. [-dbsnmpPassword <DBSNMP user password>]
    501. [-emPassword <EM Admin user password>]
    502. [-emUser <EM Admin username to add or modify targets>]
    503. [-emExpressPort <EM database express port number. Generally used during createDatabase>]
    504. [-omsHost <EM management server host name>]
    505. [-omsPort <EM management server port number>]
    506. [-emExpressPortAsGlobalPort <value>]

    507. $ dbca -help -relocatePDB
    508. -relocatePDB - Command to Relocate a pluggable database.
    509. -remotePDBName <Name of the pluggable database to clone/relocate>
    510. -pdbName <Pluggable database name>
    511. -dbLinkUsername <Common user of a remote CDB, used by database link to connect to remote CDB.>
    512. -remoteDBConnString <EZCONNECT string to connect to Source database for example "host:port/servicename">
    513. -sourceDB <Database unique name for RAC database or SID for Single Instance database>
    514. [-remoteDBSYSDBAUserName <User name with SYSDBA privileges of remote database>]
    515. [-dbLinkUserPassword <Common user password of a remote CDB, used by database link to connect to remote CDB.>]
    516. [-useWalletForDBCredentials <true | false> Specify true to load database credentials from wallet]
    517. -dbCredentialsWalletLocation <Path of the directory containing the wallet files>
    518. [-dbCredentialsWalletPassword <Password to open wallet with auto login disabled>]
    519. [-remoteDBSYSDBAUserPassword <Password for remoteDBSYSDBAUserName user of remote database.>]
    520. [-sysDBAUserName <User name with SYSDBA privileges>]
    521. [-sysDBAPassword <Password for sysDBAUserName user name>]

    522. $ dbca -help -unplugDatabase
    523. -unplugDatabase - Command to Unplug a pluggable database.
    524. -archiveType <TAR | RMAN | NONE> Optional field during UnplugDatabase.
    525. [-rmanParallelism <Parallelism value>]
    526. [-maxBackupSetSizeInMB <Maximum backup set size in MB>]
    527. [-pdbArchiveFile <Absolute file path and name for PDB Archive file. Optional field during CreatePluggableDatabase/UnplugDatabase>]
    528. [-pdbBackUpfile <Absolute file path and name for PDB backup file, required when archive type is RMAN (specify comma separated paths if there are multiple backups when creating PDB).>]
    529. [-pdbMetadataFile <Absolute file path and name for PDB metadata file, required when archive type is RMAN or NONE. Optional field during CreatePluggableDatabase/UnplugDatabase>]
    530. -sourceDB <Database unique name for RAC database or SID for Single Instance database>
    531. -pdbName <Pluggable database name>
    532. [-useWalletForDBCredentials <true | false> Specify true to load database credentials from wallet]
    533. -dbCredentialsWalletLocation <Path of the directory containing the wallet files>
    534. [-dbCredentialsWalletPassword <Password to open wallet with auto login disabled>]
    535. [-unregisterWithDirService <true | false>]
    536. -dirServiceUserName <User name for directory service>
    537. [-dirServicePassword <Password for directory service>]
    538. [-walletPassword <Password for database wallet>]
    复制代码






    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    运维联盟俱乐部 ( 冀ICP备19036648号 )

    GMT+8, 2024-5-17 15:09 , Processed in 0.051373 second(s), 21 queries , Gzip On.

    Powered by Discuz! X3.4

    © 2001-2023 Discuz! Team.

    快速回复 返回顶部 返回列表