再次检查结果:
# 20130521_170131: Info: Action swReqCheck of installManager with ONE WARNING
剩下一个可忽略的警告。说明环境已经满足Oracle安装了。
5. 编译安装rlwrap(增强SQLPLUS功能)
| rlwrap is a wrapper that uses the GNU readline library to allow the editing of keyboard input for any other command. Input history is kept between invocations, separately for each command; history completion and search work as in bash and completion word lists can be specified on the command line. 来自 <http://utopia.knoware.nl/~hlub/uck/rlwrap/> |
OTK集成了rlwrap工具
rlwrap增强了SQLPLUS的执行命令历史记录和自动完成功能
编译安装rlwrap
| # cd /opt/oracle/otk/current/tools/rlwrap/ # ./configure # make # make install # rlwrap -v |
rlwrap 0.30
6. 使用OTK工具installManager安装osSetup
| On the one hand it does what is required from Oracle documentation and on the other hand it setups also the environment for OTK. The next bullet list shows a summary. 来自 <https://www.oratoolkit.ch/tutorials/gettingStartedV.php> # /opt/oracle/otk/current/bin/installManager osSetup osSetup11gR2.cfg |
7. 把Oracle安装文件移入资源目录
OTK默认读取oracle安装文件的目录是/var/opt/oracle/repository;
OTK的swInst实例安装命令会读取这个目录:
| # cd /media/oracle # chown oracle:oinstall * # mv linux.x64_11gR2_database_1of2.zip linux.x64_11gR2_database_2of2.zip /var/opt/oracle/repository/ |
8. 登录Oracle用户,修改配置文件
| # su - oracle ------------------------------------------------------ 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 ------------------------------------------------------ # vi .profile.custom.interactive |
修改文件中的SITE值。
9. 安装Oracle数据库
OTK是用swInst安装数据库的,swInst的工作原理:
| The main purpose of swInst action is to execute OUI in silent mode in order to install the software. However, before it can be executed it is required to unzip the file containing the software. OTK starts here and takes care also about the extraction before launching runInstaller script. 来自 <https://www.oratoolkit.ch/tutorials/gettingStartedVII.php> |
用一个Shell脚本来安装数据库:









