再次报错,修改
/ora01/app/oracle/product/11.2.0/db_1/sysman/lib/ins_emagent.mk文件中的配置,将文件中的 $(SYSMANBIN)emdctl:
$(MK_EMAGENT_NMECTL) 修改为
$(SYSMANBIN)emdctl:
$(MK_EMAGENT_NMECTL) -lnnz11 点击图形安装界面的继续按钮
31
开始安装数据库实例
32
安装完成后按照提示,手动执行对应脚本
安装完成
Step7 启动关闭和自启动 先打开监听:lsnrctl start
再启动:方法1:sqlplus /nolog ;SQL> startup ;SQL> shutdown immediate
方法2:dbstart和dbshut。要修改3个文件
dbstart和dbshut脚本文件中ORACLE_HOME_LISTNER=$1,修改为 ORACLE_HOME_LISTNER=$ORACLE_HOME
/etc/oratab中orcl:/home/oracle/oracle11g/product/11.2.0/dbhoume_1:N最后字母改为Y
然后用dbstart启动,dbshut关闭
33
自启动:
在 /etc/init.d/ 下创建文件/etc/init.d/oracle
改变文件权限 chmod 755 /etc/init.d/oracle 添加服务 chkconfig --level 35 oracle on
需要在关机或重启机器之前停止数据库,做一下操作 ln -s /etc/init.d/oracle /etc/rc0.d/K01oracle //关机 ln -s /etc/init.d/oracle /etc/rc6.d/K01oracle //重启 使用方法
service oracle start //启动oracle service oracle stop //关闭oracle service oracle restart //重启oracle
oralce自启动文件如下: #!/bin/sh
# chkconfig: 35 80 10
# description: Oracle auto start-stop script. #
# Set ORA_HOME to be equivalent to the $ORACLE_HOME # from which you wish to execute dbstart and dbshut; #
# Set ORA_OWNER to the user id of the owner of the # Oracle database in ORA_HOME.
ORA_HOME=/home/oracle/oracle11g/product/11.2.0/dbhome_1 ORA_OWNER=oracle
if [ ! -f $ORA_HOME/bin/dbstart ] then
echo \
34
oracle,然后chown oracle:oinstall
exit fi
case \'start')
# Start the Oracle databases: echo \
echo \\
date +\bases as part of system up.\ echo \\ su - $ORA_OWNER -c \ echo \
# Start the Listener:
echo \
echo \----\
date +\\\
su - $ORA_OWNER -c \ echo \
echo \\date +\
echo \\ ;; 'stop')
# Stop the Oracle Listener:
echo \
echo \\
date +\stener as part of system down.\
35