RAC 靜默安裝 11g---database靜默安裝
阿新 • • 發佈:2018-11-28
Gi 靜默安裝:
https://yq.aliyun.com/articles/673616
本次安裝grid叢集軟體已經安裝完成:
配置ssh
https://yq.aliyun.com/articles/673572
建立目錄
mkdir /u01/app/oracle/product/11.2.0/db_1
chown oracle:oinstall -R /u01/app/oracle
配置響應檔案
[[email protected] response]# cat 11204_db.rsp oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v11_2_0 oracle.install.option=INSTALL_DB_SWONLY ORACLE_HOSTNAME= UNIX_GROUP_NAME=oinstall INVENTORY_LOCATION=/u01/app/oraInventory SELECTED_LANGUAGES=en,zh_CN ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1 ORACLE_BASE=/u01/app/oracle oracle.install.db.InstallEdition=EE oracle.install.db.EEOptionsSelection=false oracle.install.db.optionalComponents=oracle.rdbms.partitioning:11.2.0.4.0,oracle.oraolap:11.2.0.4.0,oracle.rdbms.dm:11.2.0.4.0,oracle.rdbms.dv:11.2.0.4.0,oracle.rdbms.lbac:11.2.0.4.0,oracle.rdbms.rat:11.2.0.4.0 oracle.install.db.DBA_GROUP=dba oracle.install.db.OPER_GROUP=oper oracle.install.db.CLUSTER_NODES=prod01,prod02 oracle.install.db.isRACOneInstall= oracle.install.db.racOneServiceName= oracle.install.db.config.starterdb.type= oracle.install.db.config.starterdb.globalDBName= oracle.install.db.config.starterdb.SID= oracle.install.db.config.starterdb.characterSet=AL32UTF8 oracle.install.db.config.starterdb.memoryOption=true oracle.install.db.config.starterdb.memoryLimit= oracle.install.db.config.starterdb.installExampleSchemas=false oracle.install.db.config.starterdb.enableSecuritySettings=true oracle.install.db.config.starterdb.password.ALL= oracle.install.db.config.starterdb.password.SYS= oracle.install.db.config.starterdb.password.SYSTEM= oracle.install.db.config.starterdb.password.SYSMAN= oracle.install.db.config.starterdb.password.DBSNMP= oracle.install.db.config.starterdb.control=DB_CONTROL oracle.install.db.config.starterdb.gridcontrol.gridControlServiceURL= oracle.install.db.config.starterdb.automatedBackup.enable=false oracle.install.db.config.starterdb.automatedBackup.osuid= oracle.install.db.config.starterdb.automatedBackup.ospwd= oracle.install.db.config.starterdb.storageType= oracle.install.db.config.starterdb.fileSystemStorage.dataLocation= oracle.install.db.config.starterdb.fileSystemStorage.recoveryLocation= oracle.install.db.config.asm.diskGroup= oracle.install.db.config.asm.ASMSNMPPassword= MYORACLESUPPORT_USERNAME= MYORACLESUPPORT_PASSWORD= SECURITY_UPDATES_VIA_MYORACLESUPPORT= DECLINE_SECURITY_UPDATES=true PROXY_HOST= PROXY_PORT= PROXY_USER= PROXY_PWD= PROXY_REALM= COLLECTOR_SUPPORTHUB_URL= oracle.installer.autoupdates.option= oracle.installer.autoupdates.downloadUpdatesLoc= AUTOUPDATES_MYORACLESUPPORT_USERNAME= AUTOUPDATES_MYORACLESUPPORT_PASSWORD=
執行靜默安裝
[[email protected] database]$ ./runInstaller -silent -ignoreSysPrereqs -ignorePrereq -responseFile /soft/database/response/11204_db.rsp -showprogress
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 120 MB. Actual 21888 MB Passed
Checking swap space: must be greater than 150 MB. Actual 1023 MB Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2018-11-28_02-03-37PM. Please wait ...[ [email protected] database]$
[[email protected] database]$
[[email protected] database]$
[[email protected] database]$
[[email protected] database]$ You can find the log of this install session at:
/u01/app/oraInventory/logs/installActions2018-11-28_02-03-37PM.log
Prepare in progress.
.................................................. 9% Done.
Prepare successful.
Copy files in progress.
.................................................. 14% Done.
.................................................. 19% Done.
.................................................. 25% Done.
.................................................. 30% Done.
.................................................. 36% Done.
.................................................. 41% Done.
.................................................. 46% Done.
.................................................. 51% Done.
.................................................. 56% Done.
Copy files successful.
..........
Link binaries in progress.
Link binaries successful.
.................................................. 77% Done.
Setup files in progress.
.................................................. 94% Done.
Setup files successful.
[ [email protected] database]$ The installation of Oracle Database 11g was successful.
Please check '/u01/app/oraInventory/logs/silentInstall2018-11-28_02-03-37PM.log' for more details.
Execute Root Scripts in progress.
As a root user, execute the following script(s):
1. /u01/app/oracle/product/11.2.0/db_1/root.sh
Execute /u01/app/oracle/product/11.2.0/db_1/root.sh on the following nodes:
[prod01, prod02]
.................................................. 100% Done.
Execute Root Scripts successful.
Successfully Setup Software.
執行指令碼,2個節點
/u01/app/oracle/product/11.2.0/db_1/root.sh
驗證資料庫軟體
prod1:
[[email protected] response]# cd /u01/app/oracle/product/11.2.0/db_1/
[[email protected] db_1]# ls
apex clone ctx demo has inventory jdk md oc4j oracore perl relnotes sqlj timingframework wwg
assistants config cv diagnostics hs j2ee jlib mesg odbc ord plsql root.sh sqlplus ucp xdk
bin crs dbs dv ide javavm ldap mgw olap oui precomp scheduler srvm uix
ccr csmig dc_ocm emcli install jdbc lib network OPatch owb racg slax suptools usm
cdata css deinstall EMStage instantclient jdev log nls opmn owm rdbms sqldeveloper sysman utl
[[email protected] db_1]#
prod02:
[[email protected] app]# cd /u01/app/oracle/product/11.2.0/db_1/
[[email protected] db_1]# ls
apex cfgtoollogs css deinstall EMStage instantclient jdev log nls opmn owm rdbms sqlj timingframework wwg
assistants clone ctx demo has inventory jdk md oc4j oracore perl relnotes sqlplus ucp xdk
bin config cv diagnostics hs j2ee jlib mesg odbc ord plsql scheduler srvm uix
ccr crs dbs dv ide javavm ldap mgw olap oui precomp slax suptools usm
cdata csmig dc_ocm emcli install jdbc lib network OPatch owb racg sqldeveloper sysman utl
[[email protected] db_1]#
靜默建立資料庫
#磁碟組名稱crs。
dbca -silent -createDatabase -templateName General_Purpose.dbc -gdbname orcl -sid orcl -sysPassword oracle -systemPassword oracle -datafileDestination 'crs' -redoLogFileSize 50 -recoveryAreaDestination 'crs' -storageType ASM -asmsnmpPassword oracle -diskGroupName 'crs' -responseFile NO_VALUE -characterset ZHS16GBK -nationalCharacterSet AL16UTF16 -sampleSchema true -automaticMemoryManagement true -totalMemory 500 -nodeinfo prod01,prod02
[[email protected] bin]$ ./dbca -silent -createDatabase -templateName General_Purpose.dbc -gdbname orcl -sid orcl -sysPassword oracle -systemPassword oracle -datafileDestination 'crs' -redoLogFileSize 50 -recoveryAreaDestination 'crs' -storageType ASM -asmsnmpPassword oracle -diskGroupName 'crs' -responseFile NO_VALUE -characterset ZHS16GBK -nationalCharacterSet AL16UTF16 -sampleSchema true -automaticMemoryManagement true -totalMemory 500 -nodeinfo prod01,prod02
Copying database files
1% complete
3% complete
9% complete
15% complete
21% complete
27% complete
30% complete
Creating and starting Oracle instance
32% complete
36% complete
40% complete
44% complete
45% complete
48% complete
50% complete
Creating cluster database views
52% complete
70% complete
Completing Database Creation
73% complete
76% complete
85% complete
94% complete
100% complete
Look at the log file "/u01/app/oracle/cfgtoollogs/dbca/orcl/orcl.log" for further details.