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
    评论
Oracle 12c中,创建数据库需要执行以下步骤: 1. 安装Oracle 12c软件。 2. 以管理员身份登录操作系统。 3. 打开命令行界面,并使用以下命令连接到Oracle 12c实例: sqlplus / as sysdba 注意,“/ as sysdba”表示使用管理员权限登录。 4. 创建新数据库。可以使用以下命令创建名为“new_database”的数据库: CREATE DATABASE new_database MAXINSTANCES 8 MAXLOGHISTORY 1 MAXLOGFILES 16 MAXLOGMEMBERS 3 MAXDATAFILES 100 DATAFILE 'C:\path\to\new_database.dbf' SIZE 100M SYSAUX DATAFILE 'C:\path\to\new_database_sysaux.dbf' SIZE 100M UNDO TABLESPACE undo_ts LOGFILE GROUP 1 ('C:\path\to\new_database_redo1.log') SIZE 50M, GROUP 2 ('C:\path\to\new_database_redo2.log') SIZE 50M, GROUP 3 ('C:\path\to\new_database_redo3.log') SIZE 50M; 注意替换“new_database”为您要创建的数据库名称,“C:\path\to\new_database.dbf”和“C:\path\to\new_database_sysaux.dbf”为数据文件和系统辅助表空间文件的路径和文件名,“undo_ts”为撤消表空间的名称,以及“C:\path\to\new_database_redo1.log”、“C:\path\to\new_database_redo2.log”和“C:\path\to\new_database_redo3.log”为重做日志文件的路径和文件名。 5. 启动新数据库。可以使用以下命令启动新数据库: STARTUP; 6. 验证数据库已成功创建。可以使用以下命令查看数据库版本和状态: SELECT * FROM v$version; SELECT status FROM v$instance; 如果数据库已成功创建并已启动,则应该看到版本号和状态信息。 这些步骤将创建一个新的Oracle 12c数据库。请注意,这只是一个简的例子,实际上可能需要更多的步骤和更复杂的命令来创建和配置数据库。此外,创建数据库需要一定的专业知识和技能,建议由有经验的DBA或数据库管理员来完成。

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值