ITPub博客

首页 > 数据库 > Oracle > linux上修改主机名对oracle启动关闭的影响

linux上修改主机名对oracle启动关闭的影响

原创 Oracle 作者:goolen 时间:2014-05-07 14:53:31 0 删除 编辑
+++10gR2
如果修改了主机名,没有更改/etc/hosts相应的信息,则数据库在关闭和启动的时候都会报错

[oracle@oracle ~]$ sqlplus / as sysdba

SQL*Plus: Release 10.2.0.1.0 - Production on Sun Apr 6 19:19:30 2014
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
Connected.
SQL> 
SQL> 
SQL> shut immediate
ORA-24324: service handle not initialized
ORA-24323: value not allowed
ORA-00600: internal error code, arguments: [%s], [%s], [%s], [%s], [%s], [%s], [%s], [%s]

SQL> shut abort
ORA-01031: insufficient privileges

[oracle@oracle ~]$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Sun Apr 6 19:20:55 2014
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
Connected to an idle instance.

SQL> startup
ORA-00600: internal error code, arguments: [keltnfy-ldmInit], [46], [1], [], [], [], [], []
SQL> 


+++11gR2
如果修改了主机名,没有更改/etc/hosts相应的信息,则数据库可以正常关闭,但是启动的时候会报错
[oracle@oracle ~]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Sun Apr 6 11:27:27 2014
Copyright (c) 1982, 2009, Oracle.  All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> shut immediate
Database closed.
Database dismounted.
ORACLE instance shut down.

SQL> startup
ORA-00119: invalid specification for system parameter LOCAL_LISTENER
ORA-00130: invalid listener address '(ADDRESS=(PROTOCOL=TCP)(HOST=oracle)(PORT=1521))'
SQL> exit

+++12c
如果修改了主机名,没有更改/etc/hosts相应的信息,则数据库不可以正常关闭,但是可以abort关闭,启动的时候会报错
[oracle@oracle ~]$ sqlplus / as sysdba

SQL*Plus: Release 12.1.0.1.0 Production on Sun Apr 6 11:34:38 2014
Copyright (c) 1982, 2013, Oracle.  All rights reserved.
Connected.
SQL> shut immediate
ORA-00000: normal, successful completion
SQL> shut immediate
ORA-00000: normal, successful completion
SQL> shut abort
ORACLE instance shut down.
SQL> 
SQL> startup
ORA-00119: invalid specification for system parameter LOCAL_LISTENER

ORA-00130: invalid listener address '(ADDRESS=(PROTOCOL=TCP)(HOST=oracle)(PORT=1521))'

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/23249684/viewspace-1155926/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2011-10-20

  • 博文量
    121
  • 访问量
    731656