你好,游客 登录 注册 搜索
背景:
阅读新闻

Linux上修改主机名对Oracle启动关闭的影响

[日期:2014-04-10] 来源:Linux社区  作者:Linux [字体:大 中 小]

+++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))'

linux
相关资讯       Linux上启动Oracle 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款