Subscribe to Posts by Email

Subscriber Count

    699

Disclaimer

All information is offered in good faith and in the hope that it may be of use for educational purpose and for Database community purpose, but is not guaranteed to be correct, up to date or suitable for any particular purpose. db.geeksinsight.com accepts no liability in respect of this information or its use. This site is independent of and does not represent Oracle Corporation in any way. Oracle does not officially sponsor, approve, or endorse this site or its content and if notify any such I am happy to remove. Product and company names mentioned in this website may be the trademarks of their respective owners and published here for informational purpose only. This is my personal blog. The views expressed on these pages are mine and learnt from other blogs and bloggers and to enhance and support the DBA community and this web blog does not represent the thoughts, intentions, plans or strategies of my current employer nor the Oracle and its affiliates or any other companies. And this website does not offer or take profit for providing these content and this is purely non-profit and for educational purpose only. If you see any issues with Content and copy write issues, I am happy to remove if you notify me. Contact Geek DBA Team, via geeksinsights@gmail.com

Pages

12c Database : Silent installation & creation of database

Silent Installation using RunInstaller to install 12c Software, this will be useful when you do not have the X base system running on the machines (of course in real world they do not), either you need VNC or humming bird tools to install the oracle software if you want to use Oracle Universal Installer in GUI mode.

Oracle provides you the ability to run the installer with silent option which is a command line parameters and installs silent and you do not need the GUI.

Have a look at steps

1) Create a oracle_home directory

mkdir -p /u01/app/oracle/product/12.1.0/db_1

#Create inventory directory

[root@Geek DBA11g ~]# mkdir -p /u02/app/oraInventory
[root@Geek DBA11g ~]# chown -R oracle:oinstall /u02/app/oraInventory

2) Extract the 12c Software

unzip V38500-01_2of2.zip
unzip V38500-01_1of2.zip

3) Complete Oracle Pre-requisites' – Written here

4) Modify the response file especially below parameters. Navigate to the database/response/ directory and edit the db_install.rsp for the following parameters only

oracle.install.option=INSTALL_DB_SWONLY
ORACLE_HOSTNAME=Geek DBA11g
UNIX_GROUP_NAME=oinstall
INVENTORY_LOCATION=/u02/app/oraInventory
ORACLE_HOME=/u01/app/oracle/product/12.1.0/db_1
ORACLE_BASE=/u01/app/oracle
oracle.install.db.InstallEdition=EE
oracle.install.db.DBA_GROUP=dba
oracle.install.db.OPER_GROUP=oper
oracle.install.db.BACKUPDBA_GROUP=dba
oracle.install.db.DGDBA_GROUP=asmadmin
oracle.install.db.KMDBA_GROUP=dba
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
DECLINE_SECURITY_UPDATES=true

5) Run the runInstaller with options

[oracle@Geek DBA11g database]$ ./runInstaller -silent -ignoresysprereqs -responsefile /home/oracle/database/response/db_install.rsp

Starting Oracle Universal Installer...

Checking Temp space: must be greater than 500 MB.   Actual 57706 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 1983 MB    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2013-11-20_10-16-24AM. Please wait ...[oracle@Geek DBA11g database]$ [WARNING] [INS-13014] Target environment does not meet some optional requirements.
   CAUSE: Some of the optional prerequisites are not met. See logs for details. /u02/app/oraInventory/logs/installActions2013-11-20_10-16-24AM.log
   ACTION: Identify the list of failed prerequisite checks from the log: /u02/app/oraInventory/logs/installActions2013-11-20_10-16-24AM.log. Then either from the log file or from installation manual find the appropriate configuration to meet the prerequisites and fix it manually.
You can find the log of this install session at:
/u02/app/oraInventory/logs/installActions2013-11-20_10-16-24AM.log
The installation of Oracle Database 12c was successful.
Please check '/u02/app/oraInventory/logs/silentInstall2013-11-20_10-16-24AM.log' for more details.

As a root user, execute the following script(s):
        1. /u01/app/oracle/product/12.1.0/db_1/root.sh

Successfully Setup Software.

6) Create Database using DBCA with silent options

Create Directory structure

mkdir –p /u01/app/oracle/flash_recover_area/db12c

mkdir –p /u01/app/oracle/fast_recovery_area/db12c

mkdir –p /u01/oradata/db12c

 

	./dbca -silent \
	 -createDatabase \
	 -templateName General_Purpose.dbc \
	 -gdbName db12c \
	 -sid db12c     \
	 -SysPassword oracle123 \
	 -createAsContainerDatabase true \
	    -numberofPDBs 1 \
	    -pdbName PDB1 \
	 -SystemPassword oracle123 \
	 -emConfiguration DBEXPRESS  \
	 -redoLogFileSize 100   \
	 -recoveryAreaDestination FRA \
	 -storageType FS       \
	 -listeners LISTENER12c   \
	 -registerWithDirService false \
	 -characterSet AL32UTF8 \
	 -nationalCharacterSet AL16UTF16 \
	 -databaseType MULTIPURPOSE \
	  -initparams audit_file_dest='/u01/app/oracle/admin/db12c/adump' \
	     -initparams compatible='12.1.0.0' \
	     -initparams db_create_file_dest='/u01/oradata/db12c' \
	     -initparams db_create_online_log_dest_1='/u01/oradata/db12c' \
	     -initparams db_recovery_file_dest='/u01/app/oracle/flash_recovery_area' \
	     -initparams pga_aggregate_target=100M \
	     -initparams diagnostic_dest='/u01/app/oracle' \
	     -initparams parallel_max_servers=8 \
	     -initparams processes=400 \
	     -initparams sga_target=524288000 \
	     -initparams db_recovery_file_dest_size=4322230272

Log:-

4% complete

Copying database files

5% complete

6% complete

12% complete

17% complete

22% complete

30% complete

Creating and starting Oracle instance

32% complete

35% complete

36% complete

37% complete

41% complete

44% complete

45% complete

48% complete

Completing Database Creation

50% complete

53% complete

55% complete

63% complete

66% complete

74% complete

Creating Pluggable Databases

79% complete

100% complete

Look at the log file "/u01/app/oracle/cfgtoollogs/dbca/db12c/db12c2.log" for further details.

[oracle@Geek DBA11g bin]$

For RAC Silent Options:-

	./dbca -silent \
	 -createDatabase \
	 -templateName General_Purpose.dbc \
	 -gdbName db12c \
	 -sid db12c     \
	 -SysPassword oracle123 \
	 -createAsContainerDatabase true \
	    -numberofPDBs 1 \
	    -pdbName PDB1 \
	 -SystemPassword oracle123 \
	 -emConfiguration DBEXPRESS  \
	 -redoLogFileSize 100   \
	 -recoveryAreaDestination FRA \
	 -storageType ASM             \
	   -asmsnmpPassword oracle123 \
	   -asmSysPassword oracle123  \
	   -diskGroupName DATA \
	 -listeners LISTENER   \
	 -registerWithDirService false \
	 -characterSet AL32UTF8 \
	 -nationalCharacterSet AL16UTF16 \
	 -databaseType MULTIPURPOSE \
	 -nodelist Geek DBA-rac1,Geek DBA-rac2 \
	 -initparams audit_file_dest='/u01/app/oracle/admin/db12c/adump' \
	     -initparams compatible='12.1.0.0' \
	     -initparams db_create_file_dest='+DATA' \
	     -initparams db_create_online_log_dest_1='+DATA' \
	     -initparams db_create_online_log_dest_2='+FRA' \
	     -initparams db_recovery_file_dest='+FRA' \
	     -initparams pga_aggregate_target=100M \
	     -initparams diagnostic_dest='/u01/app/oracle' \
	     -initparams parallel_max_servers=8 \
	     -initparams processes=400 \
	     -initparams sga_target=524288000 \
	     -initparams db_recovery_file_dest_size=4322230272

Next : Upgrade 11.2.0.1 to 12.1.0.1

-Thanks

Geek DBA

Comments are closed.