Wednesday, March 11, 2020

Oracle 19c silent installation



[oracle@db19c stage]$ ./wget.sh
SSO User Name: user@domain.com <-- enter="" font="" oracle="" sso="" username="">
<-- enter="" font="" oracle="" password="" sso="">

[oracle@db19c stage]$ unzip V982063-01.zip -d /u01/db19/dbhome_1


[opc@db19c stage]$ sudo /bin/chown -HRf oracle:oinstall /u01/db19/dbhome_1


[oracle@db19c bin]$ cp $ORACLE_HOME/install/response/db_install.rsp /u01/stage/db_install.rsp

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
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/app/oraInventory
ORACLE_HOME=/u01/db19/dbhome_1
ORACLE_BASE=/u01/app/oracle
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
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>


# Install Oracle software binary
[oracle@db19c bin]$ /u01/db19/dbhome_1/runInstaller -silent -responseFile /u01/stage/db_install.rsp

# Run scripts which need root privileges
[opc@db19c stage]$ sudo /u01/app/oraInventory/orainstRoot.sh
[opc@db19c stage]$ sudo /u01/db19/dbhome_1/root.sh

# Create listener
[oracle@db19c bin]$ export ORACLE_BASE=/u01/app/oracle; export ORACLE_HOME=/u01/db19/dbhome_1; /u01/db19/dbhome_1/bin/netca /orahome /u01/db19/dbhome_1 /instype typical /inscomp client,oraclenet,javavm,server,ano /insprtcl tcp /cfg local /authadp NO_VALUE /responseFile /u01/db19/dbhome_1/network/install/netca_typ.rsp /lisport 1521 /silent /orahnam OraDB19Home1

# Create database (CDB+PDB)
[oracle@db19c bin]$ export ORACLE_HOME=/u01/db19/dbhome_1; export ORACLE_BASE=/u01/app/oracle; /u01/db19/dbhome_1/bin/dbca -silent -createDatabase  -emConfiguration NONE  -templateName 'General_Purpose.dbc' -storageType FS -datafileDestination '/u01/app/oracle/oradata' -datafileJarLocation '/u01/db19/dbhome_1/assistants/dbca/templates' -sampleSchema false -oratabLocation /etc/oratab  -runCVUChecks false -continueOnNonFatalErrors true -createAsContainerDatabase true -numberOfPDBs 1 -pdbName orclpdb1 -gdbName 'ORCL' -sid 'ORCL' -initParams filesystemio_options=setall -ignorePrereqs                                          
Enter SYS user password:
<-- enter="" font="" password="">
Enter SYSTEM user password:
<-- enter="" font="" password="">
Enter PDBADMIN User Password:
<-- enter="" font="" password="">
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/app/oracle/cfgtoollogs/dbca/ORCL.
Database Information:
Global Database Name:ORCL
System Identifier(SID):ORCL
Look at the log file "/u01/app/oracle/cfgtoollogs/dbca/ORCL/ORCL.log" for further details.


# Below software installation command only work if ORACLE_HOME is /u01/app/oracle/product/19.0.0/dbhome_1
[oracle@db19c stage]$ /u01/db19/dbhome_1/oui/bin/runInstaller -silent -ignoreSysPrereqs -waitforcompletion -attachHome INVENTORY_LOCATION='/u01/app/oraInventory' ORACLE_HOME='/u01/db19/dbhome_1' ORACLE_HOME_NAME='OraDB19Home1' ORACLE_BASE='/u01/app/oracle'   -local

No comments:

Post a Comment