稍等片刻,最后输出如下信息:说明安装成功。
----------------------------------------------------------------------------------------------------
| 20140419_132032: Info: Executing libinstallManager.printInfoMsg function Check in the logs if there are commands to be executed manually. -Usually /opt/oracle/sesrv/11.1.0/db1/cfgtoollogs/configToolAllCommands contains such commands -Usually /opt/oracle/sesrv/11.1.0/db1/root.sh with root privileges has to be executed in case appctl framework is not used. -Usually /opt/oracle/sesrv/11.1.0/db1/install/changePerm.sh needs to be executed when other OS users requires Oracle libraries ---------------------------------------------------------------------------------------------------- 20140419_132032: Info: Action swInst of installManager ended successfully ---------------------------------------------------------------------------------------------------- |
完成剩余配置,执行root.sh命令,安装最后需要手工执行剩余的脚本:
| # su - # /opt/oracle/eesrv/11.2.0/db1/root.sh # exit |
10. 创建数据库实例
OTK采用dbSetup来创建实例
| # cd $INSTALL_CONF # ls -l dbSetup*.cfg dbSetup-dev.cfg dbSetup-prod.cfg dbSetup-test.cfg |
我安装的是开发模式(dev),我们还看到测试模式(test)和生产模式(prod);
修改dbSetup-dev.cfg配置文件,必须修改的配置为:
ORACLE_HOME的值:
$ORACLE_BASE/sesrv/11.1.0/db1
修改为:
$ORACLE_BASE/eesrv/11.2.0/db1
执行安装命令:
# installManager dbSetup dbSetup-dev.cfg
接下来会看到在安装数据库实例,大约十几分钟,最后看到如下输出:
| ---------------------------------------------------------------------------------------------------- 20130419_013000: Info: Executing libmiscellaneous.getFooter function 20130419_013000: Info: Terminating installManager execution 20130419_013000: Info: Summary log file: /var/opt/oracle/otk/1.0/log-old/installManager/../installManager.log 20130419_013000: Info: Detailed log file: /var/opt/oracle/otk/1.0/log-old/installManager/dbsetup-20130522_012901.log 20130419_013000: Info: Action dbSetup of installManager ended successfully ---------------------------------------------------------------------------------------------------- |
Congratulations! 数据库可以使用了。
11. 登录SQLPLUS
| # su - oracle ------------------------------------------------------ Oracle database environment variables ------------------------------------------------------ $ORACLE_HOME : /opt/oracle/eesrv/11.2.0/db1 $ORACLE_SID : dev $TNS_ADMIN : /opt/oracle/network ------------------------------------------------------ ------------------------------------------------------ oraToolKit environment variables ------------------------------------------------------ Installation directory : /opt/oracle/otk Release : 1.0.2.1.5 $RUN directory : /opt/oracle/otk/1.0/bin $LOG_BASE directory : /var/opt/oracle/otk/1.0/log ------------------------------------------------------ # sqlplus / as sysdba SQL*Plus: Release 11.2.0.1.0 Production on Sat Apr 19 11:27:47 2014 Copyright (c) 1982, 2009, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options SQL> |









