oracle 19c dbca静默安装non cdb数据库实例

oracle 19c dbca静默安装non cdb数据库实例

$ dbca -silent -ignorePreReqs  -ignorePrereqFailure  -createDatabase -templateName General_Purpose.dbc -responseFile NO_VALUE \
> -gdbname sjztncdb  -sid sjztncdb \
> -createAsContainerDatabase FALSE \
> -sysPassword q1w2e3r4 -systemPassword q1w2e3r4 -dbsnmpPassword q1w2e3r4 \
> -datafileDestination '/OSdata/oradata_ncdb/SJZTNCDB/' \
> -storageType FS \
> -characterset AL32UTF8
[WARNING] [DBT-06208] The 'SYS' password entered does not conform to the Oracle recommended standards.
   CAUSE:
a. Oracle recommends that the password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9].
b.The password entered is a keyword that Oracle does not recommend to be used as password
   ACTION: Specify a strong password. If required refer Oracle documentation for guidelines.
[WARNING] [DBT-06208] The 'SYSTEM' password entered does not conform to the Oracle recommended standards.
   CAUSE:
a. Oracle recommends that the password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9].
b.The password entered is a keyword that Oracle does not recommend to be used as password
   ACTION: Specify a strong password. If required refer Oracle documentation for guidelines.
Prepare for db operation
10% complete
Copying database files
40% complete
Creating and starting Oracle instance
42% complete
46% complete
50% complete
54% complete
60% complete
Completing Database Creation
66% complete
69% complete
70% complete
Executing Post Configuration Actions
100% complete
Database creation complete. For details check the logfiles at:
 /OSdata/app/oracle/cfgtoollogs/dbca/sjztncdb.
Database Information:
Global Database Name:sjztncdb
System Identifier(SID):sjztncdb
Look at the log file "/OSdata/app/oracle/cfgtoollogs/dbca/sjztncdb/sjztncdb.log" for further details.
You have new mail in /var/spool/mail/oracle

$ export ORACLE_SID=sjztncdb
$ sqlplus / as sysdba

SQL*Plus: Release 19.0.0.0.0 - Production on Sun May 4 23:37:07 2025
Version 19.3.0.0.0

Copyright (c) 1982, 2019, Oracle.  All rights reserved.


Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.3.0.0.0

SQL> show pdbs;
SQL>
SQL> alter profile default limit PASSWORD_LIFE_TIME UNLIMITED;


静默安装cdb数据库

dbca -silent -createDatabase -templateName General_Purpose.dbc -responseFile NO_VALUE \
-gdbname sjztncdb  -sid sjztncdb \
-createAsContainerDatabase TRUE \
-numberOfPDBs 1 \
-pdbName sjzttest \
-pdbAdminPassword q1w2e3r4 \
-sysPassword q1w2e3r4 -systemPassword q1w2e3r4 \
-datafileDestination '/u01/app/oracle/oradata' \
-recoveryAreaDestination '/u01/app/oracle/flash_recovery_area' \
-redoLogFileSize 50 \
-storageType FS \
-characterset AL32UTF8 -nationalCharacterSet AL16UTF16 \
-sampleSchema true \
-totalMemory 1024 \
-databaseType OLTP  \
-emConfiguration NONE

你可能感兴趣的:(数据库运维案例分享,数据库,oracle,OGG,dbca,silent,静默)