RAC 静默安装 11g---database静默安装

简介: RAC 静默安装 11g---database静默安装

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

配置响应文件

[root@prod01 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=

执行静默安装

[oracle@prod01 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 ...[oracle@prod01 database]$ 
[oracle@prod01 database]$ 
[oracle@prod01 database]$ 
[oracle@prod01 database]$ 
[oracle@prod01 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.

[oracle@prod01 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:

[root@prod01 response]# cd /u01/app/oracle/product/11.2.0/db_1/
[root@prod01 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
[root@prod01 db_1]#

prod02:

[root@prod02 app]# cd /u01/app/oracle/product/11.2.0/db_1/
[root@prod02 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
[root@prod02 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


[oracle@prod01 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.
相关文章
|
6月前
|
Oracle 关系型数据库 Linux
服务器Centos7 静默安装Oracle Database 12.2
服务器Centos7 静默安装Oracle Database 12.2
267 0
|
Oracle 关系型数据库 Linux
服务器Centos7 静默安装Oracle Database 12.2(下)
服务器Centos7 静默安装Oracle Database 12.2(下)
327 0
|
Oracle 安全 关系型数据库
服务器Centos7 静默安装Oracle Database 12.2(上)
服务器Centos7 静默安装Oracle Database 12.2(上)
128 0
|
网络协议 关系型数据库
RAC 静默安装 11g---grid静默安装
grid 静默安装,无图形化安装
2901 0
|
存储 Oracle 关系型数据库
RAC静默安装与DG搭建
1rac静默安装 2、搭建dg
4412 0
|
文字识别 Oracle 关系型数据库
Oracle 12cR1 RAC 在VMware Workstation上安装(下)—静默安装
Oracle 12cR1 RAC 在VMware Workstation上安装(下)—静默安装 1.1  静默安装 1.1.1  静默安装grid 安装之前使用脚本进行校验,确保所有的failed选项都可以忽略。
2198 0
|
6月前
|
SQL Oracle 关系型数据库
WARNING: Too Many Parse Errors With error=911 When Running a JDBC Application Connected to an Oracle 19c database
WARNING: Too Many Parse Errors With error=911 When Running a JDBC Application Connected to an Oracle 19c database (
91 2
|
6月前
|
Oracle 关系型数据库
19c 开启Oracle Database Vault
19c 开启Oracle Database Vault
162 1
|
6月前
|
SQL Oracle 关系型数据库
Connect to Autonomous Database Using Oracle Database Tools
Connect to Autonomous Database Using Oracle Database Tools
61 1