dbca -silent -createDatabase -templateName General_Purpose.dbc -responseFile NO_VALUE \
-gdbname lhr19c -sid lhr19c \
-createAsContainerDatabase TRUE \
-numberOfPDBs 1 \
-pdbName lhrpdb2 \
-pdbAdminPassword lhr \
-sysPassword lhr -systemPassword lhr \
-datafileDestination '/u01/app/oracle/oradata' \
-recoveryAreaDestination '/u01/app/oracle/flash_recovery_area' \
-redoLogFileSize 50 \
-storageType FS \
-characterset AL32UTF8 -nationalCharacterSet AL16UTF16 \
-sampleSchema true \
-totalMemory 2048 \
-databaseType OLTP \
-emConfiguration NONE
执行过程:
[oracle19@rac18c-n1 dbhome_1]$ /u01/u19/app/oracle/product/19.2.0/dbhome_1/runInstaller -silent -force -noconfig -ignorePrereq \
> oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v19.0.0 \
> oracle.install.option=INSTALL_DB_SWONLY \
> UNIX_GROUP_NAME=oinstall \
> INVENTORY_LOCATION=/u01/u19/app/oraInventory \
> ORACLE_BASE=/u01/u19/app/oracle \
> ORACLE_HOME=/u01/u19/app/oracle/product/19.2.0/dbhome_1 \
> oracle.install.db.InstallEdition=EE \
> oracle.install.db.OSDBA_GROUP=dba \
> oracle.install.db.OSOPER_GROUP=oper \
> oracle.install.db.OSBACKUPDBA_GROUP=backupdba \
> oracle.install.db.OSDGDBA_GROUP=dgdba \
> oracle.install.db.OSKMDBA_GROUP=kmdba \
> oracle.install.db.OSRACDBA_GROUP=racdba \
> oracle.install.db.rootconfig.executeRootScript=true \
> oracle.install.db.rootconfig.configMethod=ROOT
Launching Oracle Database Setup Wizard...
Enter password for 'root' user:
[WARNING] [INS-13014] Target environment does not meet some optional requirements.
CAUSE: Some of the optional prerequisites are not met. See logs for details. /u01/app/oraInventory/logs/InstallActions2019-03-06_01-06-54PM/installActions2019-03-06_01-06-54PM.log
ACTION: Identify the list of failed prerequisite checks from the log: /u01/app/oraInventory/logs/InstallActions2019-03-06_01-06-54PM/installActions2019-03-06_01-06-54PM.log. Then either from the log file or from installation manual find the appropriate configuration to meet the prerequisites and fix it manually.
The response file for this session can be found at:
/u01/u19/app/oracle/product/19.2.0/dbhome_1/install/response/db_2019-03-06_01-06-54PM.rsp
You can find the log of this install session at:
/u01/app/oraInventory/logs/InstallActions2019-03-06_01-06-54PM/installActions2019-03-06_01-06-54PM.log
Successfully Setup Software with warning(s).
[oracle19@rac18c-n1 dbhome_1]$ dbca -silent -createDatabase -templateName General_Purpose.dbc -responseFile NO_VALUE \
> -gdbname lhr19c -sid lhr19c \
> -createAsContainerDatabase TRUE \
> -numberOfPDBs 1 \
> -pdbName pdb2 \
> -pdbAdminPassword lhr \
> -sysPassword lhr -systemPassword lhr \
> -datafileDestination '/u01/app/oracle/oradata' \
> -recoveryAreaDestination '/u01/app/oracle/flash_recovery_area' \
> -redoLogFileSize 50 \
> -storageType FS \
> -characterset AL32UTF8 -nationalCharacterSet AL16UTF16 \
> -sampleSchema true \
> -totalMemory 2048 \
> -databaseType OLTP \
> -emConfiguration NONE
[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.
[WARNING] [DBT-06208] The 'PDBADMIN' 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
8% complete
Copying database files
31% complete
Creating and starting Oracle instance
32% complete
36% complete
40% complete
43% complete
46% complete
Completing Database Creation
51% complete
53% complete
54% complete
Creating Pluggable Databases
58% complete
77% complete
Executing Post Configuration Actions
100% complete
Database creation complete. For details check the logfiles at:
/u01/u19/app/oracle/cfgtoollogs/dbca/lhr19c.
Database Information:
Global Database Name:lhr19c
System Identifier(SID):lhr19c
Look at the log file "/u01/u19/app/oracle/cfgtoollogs/dbca/lhr19c/lhr19c1.log" for further details.
据说,19c可以这样连接数据库: