问题描述:如果启动数据库,出现如下问题。
[root@localhost ~]# su - oraarp
[oraarp@localhost ~]$ sqlplus "/as sysdba"
sql*plus: release 11.2.0.4.0 production on fri jan 26 15:18:18 2018
凯发app官方网站 copyright (c) 1982, 2013, oracle. all rights reserved.
connected.
sql> select * from v$instance
2 ;
select * from v$instance
*
error at line 1:
ora-01034: oracle not available
process id: 0
session id: 0 serial number: 0
没有出现:
[oraarp@arpdb ~]$ sqlplus "/as sysdba"
sql*plus: release 11.2.0.4.0 production on fri jan 26 15:20:59 2018
凯发app官方网站 copyright (c) 1982, 2013, oracle. all rights reserved.
connected to an idle instance.
一般来说,除了修改/etc/hostname文件之外。
还需要修改 /etc/sysconfig/network
[root@localhost ~]# vi /etc/sysconfig/network
networking=yes
hostname=arpdb
临时生效的命令:
hostname arpdb
阅读(2052) | 评论(0) | 转发(0) |