Oracle 12C 单实例数据库静默安装

配置响应文件:
[oracle@Oracle12C01 response]$ more db_install.rsp
oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v12.1.0
oracle.install.option=INSTALL_DB_SWONLY
ORACLE_HOSTNAME=Oracle12C01
UNIX_GROUP_NAME=dba
INVENTORY_LOCATION=/oracle/app/oraInventory
SELECTED_LANGUAGES=en
ORACLE_HOME=/oracle/app/oracle/product/12.1.0/db_1
ORACLE_BASE=/oracle/app/oracle
oracle.install.db.InstallEdition=EE
oracle.install.db.DBA_GROUP=dba
oracle.install.db.OPER_GROUP=dba
oracle.install.db.BACKUPDBA_GROUP=dba
oracle.install.db.DGDBA_GROUP=dba
oracle.install.db.KMDBA_GROUP=dba
oracle.install.db.isRACOneInstall=false
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
DECLINE_SECURITY_UPDATES=true
oracle.installer.autoupdates.option=SKIP_UPDATES
[oracle@Oracle12C01 response]$ 

开始安装:
[oracle@Oracle12C01 database]$ ./runInstaller -silent -ignoreSysPrereqs -ignorePrereq -responseFile /oracle/database/resp.file              
Starting Oracle Universal Installer...


Checking Temp space: must be greater than 500 MB.   Actual 3265 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 3375 MB    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2015-05-24_11-37-09AM. Please wait ...[oracle@Oracle12C01 database]$ [FATAL] [INS-10106] The format of the given response file is not supported.
   CAUSE: The response file format was incorrect or not supported.
   ACTION: Use response files of type rsp.
A log of this session is currently saved as: /tmp/OraInstall2015-05-24_11-37-09AM/installActions2015-05-24_11-37-09AM.log. Oracle recommends that if you want to keep this log, you should move it from the temporary location.


[oracle@Oracle12C01 database]$ ./runInstaller -silent -ignoreSysPrereqs -ignorePrereq -responseFile /oracle/database/response/db_install.rsp
Starting Oracle Universal Installer...


Checking Temp space: must be greater than 500 MB.   Actual 3265 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 3375 MB    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2015-05-24_11-39-45AM. Please wait ...[oracle@Oracle12C01 database]$ You can find the log of this install session at:
 /oracle/app/oraInventory/logs/installActions2015-05-24_11-39-45AM.log
The installation of Oracle Database 12c was successful.
Please check '/oracle/app/oraInventory/logs/silentInstall2015-05-24_11-39-45AM.log' for more details.


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






Successfully Setup Software.
执行脚本:
[root@Oracle12C01 app]# sh /oracle/app/oraInventory/orainstRoot.sh
Changing permissions of /oracle/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.


Changing groupname of /oracle/app/oraInventory to dba.
The execution of the script is complete.
[root@Oracle12C01 app]# sh sh /oracle/app/oracle/product/12.1.0/db_1/root.sh
/bin/sh: /bin/sh: cannot execute binary file
[root@Oracle12C01 app]# sh /oracle/app/oracle/product/12.1.0/db_1/root.sh
Check /oracle/app/oracle/product/12.1.0/db_1/install/root_Oracle12C01_2015-05-24_11-58-56.log for the output of root script
结束db软件的安装。


配置Net Listener:
此处我们直接使用默认响应文件不做修改:
[oracle@Oracle12C01 ~]$ netca -silent -responseFile /oracle/database/response/netca.rsp


Parsing command line arguments:
    Parameter "silent" = true
    Parameter "responsefile" = /oracle/database/response/netca.rsp
Done parsing command line arguments.
Oracle Net Services Configuration:
Profile configuration complete.
Oracle Net Listener Startup:
    Running Listener Control: 
      /oracle/app/oracle/product/12.1.0/db_1/bin/lsnrctl start LISTENER
    Listener Control complete.
    Listener started successfully.
Listener configuration complete.
Oracle Net Services configuration successful. The exit code is 0
[oracle@Oracle12C01 ~]$ lsnrctl status


LSNRCTL for Linux: Version 12.1.0.2.0 - Production on 24-MAY-2015 12:07:40


Copyright (c) 1991, 2014, Oracle.  All rights reserved.


Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 12.1.0.2.0 - Production
Start Date                24-MAY-2015 12:07:25
Uptime                    0 days 0 hr. 0 min. 16 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /oracle/app/oracle/product/12.1.0/db_1/network/admin/listener.ora
Listener Log File         /oracle/app/oracle/diag/tnslsnr/Oracle12C01/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
The listener supports no services
The command completed successfully
dbca创建数据库:
dbca -silent -createDatabase -responseFile /oracle/database/response/dbca.rsp

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/28612416/viewspace-1669298/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/28612416/viewspace-1669298/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值