/app/oracle/oraInventory/orainstRoot.sh
/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.sh
$ su root
#/app/oracle/product/11.2.0/db_1/root.sh
5.静默配置网络(oracle用户下)
$ $ORACLE_HOME/bin/netca /silent /responseFile /opt/database/response/netca.rsp
Parsing command line arguments:
Parameter "silent" = true
Parameter "responsefile" = /opt/database/response/netca.rsp
Done parsing command line arguments.
Oracle Net Services Configuration:
Profile configuration complete.
Listener "LISTENER" already exists.
Oracle Net Services configuration successful. The exit code is 0
6.修改脚本dbca.rsp(root用户下)
#vim /opt/database/response/dbca.rsp
7.静默安装数据库(oracle用户下)
$ $ORACLE_HOME/bin/dbca -silent -responseFile /opt/database/response/dbca.rsp
Copying database files
1% complete
3% complete
11% complete
18% complete
26% complete
37% complete
Creating and starting Oracle instance
40% complete
45% complete
50% complete
55% complete
56% complete
57% complete
60% complete
62% complete
Completing Database Creation
66% complete
70% complete
73% complete
74% complete
85% complete
96% complete
100% complete
Look at the log file "/app/oracle/cfgtoollogs/dbca/ora11g/ora11g.log" for further details.
安装完成...
8.修改oracle配置(root用户下)
#vim $ORACLE_HOME/bin/dbstart
ORACLE_HOME_LISTNER=$ORACLE_HOME
#vim $ORACLE_HOME/bin/dbshut
ORACLE_HOME_LISTNER=$ORACLE_HOME
9.Linux启动时自动启动Oracle监听和实例(root用户下)
#vim /etc/oratab
ORCL:/app/oracle/product/11.2.0/db_1:Y
#vim /etc/rc.d/rc.local
su - oracle -c "lsnrctl start"
su - oracle -c dbstart
10.基本命令
登录数据库: sqlplus / as sysdba
启动监听:lsnrctl start 或 $ORACLE_HOME/bin/lsnrctl start
查看监听:lsnrctl status 或 $ORACLE_HOME/bin/lsnrctl status
停止监听:lsnrctl stop