重启服务器后重启数据库

一、251服务器验证,生产环境可用
[root@localhost ~]# su - oracle //切换数据库oracle用户
[oracle@localhost /]$ export ORACLE_SID=ats //切换数据库实例
[oracle@localhost /]$ lsnrctl start //启动监听程序
//关闭命令:[oracle@localhost /]$ lsnrctl stop
[oracle@localhost /]$ lsnrctl status //查看监听程序状态,可以看到“ats”实例
Services Summary...
Service "ats" has 1 instance(s).
Instance "ats", status READY, has 1 handler(s) for this service...
Service "atsXDB" has 1 instance(s).
Instance "ats", status READY, has 1 handler(s) for this service...
The command completed successfully
[oracle@localhost /]$ sqlplus /nolog
SQL> conn /as sysdba //用sys用户登录
SQL> startup //启动实例 实例错误时,会提示:
      ORA-01078: failure in processing system parameters
      LRM-00109: could not open parameter file '/oracle/product/10.2.0/db_1/dbs/initorcl.ora'
      //SQL> shutdown //不出问题不要关闭
      //SQL> quit

提示:关闭防火墙,要不然客户端无法连接
禁用防火墙 systemctl disable firewalld
关闭防火墙 systemctl stop firewalld

转载于:https://www.cnblogs.com/ygkeke/p/10874357.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值