出现类似如下提示表示安装完成:
#-------------------------------------------------------------------
...
/u01/app/oraInventory/orainstRoot.sh
/u01/app/oracle/product/11.2.0/db_1/root.sh
To execute the configuration scripts:
1. Open a terminal window
2. Log in as "root"
3. Run the scripts
4. Return to this window and hit "Enter" key to continue
Successfully Setup Software.
#-------------------------------------------------------------------
新开窗口使用root用户登陆并执行以下命令
[root@ora11g ~]# /u01/app/oraInventory/orainstRoot.sh [root@ora11g ~]# /u01/app/oracle/product/11.2.0/db_1/root.sh
Oracle软件安装完成。
2、静默安装监听,( $ORACLE_HOME/bin/netca /silent /responsefile u01/database/response/netca.rsp)
[oracle@ora11g ~]$ /u01/app/oracle/product/11.2.0/db_1/bin/netca /silent /responseFile /u01/database/response/netca.rsp
3、静默建库
1)、编辑dbca.rsp
[root@ora11g ~]# vi /u01/database/response/dbca.rsp
修改配置如下
#以下内容不要修改 RESPONSEFILE_VERSION = "11.2.0" OPERATION_TYPE = "createDatabase" #以下内容必须设置 GDBNAME = "ora11g" SID = "ora11g" TEMPLATENAME = "General_Purpose.dbc" #以下内容根据需要修改 CHARACTERSET = "ZHS16GBK"
2)、使用oracle用户执行建库命令(注意执行监听的时候是 /silent /responseFile 而执行建库则是 -silent -responseFile)
[oracle@ora11g ~]$ /u01/app/oracle/product/11.2.0/db_1/bin/dbca -silent -responseFile /u01/database/response/dbca.rsp
之后会提示输入sys和system的密码,我的都是123456,所有输入2次都是一样的。(我这里命令行会先删除界面的内容才可以输入,不知道是不是系统的原因还是别的导致的)
界面会提示安装进度
Copying database files ... 37% complete Creating and starting Oracle instance ... 62% complete Completing Database Creation ... 100% complete Look at the log file "/u01/app/oracle/cfgtoollogs/dbca/ORCL/ORCL.log" for further details.
之后就完成了数据库的安装。