centos7安装oracle11g(7)

2019-02-14 22:33

再次报错,修改

/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


centos7安装oracle11g(7).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:2013年省委党校在职研究生考试(管理学原理)

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: