linux上修改主機名稱對oracle啟動關閉的影響____小程式

來源:互聯網
上載者:User
+++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))'



聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.