Connections to NOMOUNT/MOUNTED or RESTRICTED Databases Fail
In this Document
Symptoms |
Changes |
Cause |
Solution |
References |
APPLIES TO:
Oracle Net Services - Version 11.1.0.6 to 11.2.0.4 [Release 11.1 to 11.2]Oracle Net Services - Version 12.1.0.2 to 12.1.0.2 [Release 12.1]
Information in this document applies to any platform.
***Checked for relevance on 14-OCT-2013***
SYMPTOMS
Connecting to the database via the TNS Listener fails with ORA-1033, ORA-12528, ORA-12526, ORA-12527.
SQL*Plus: Release 10.2.0.1.0 - Production on Tue Feb 19 11:54:58 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
ERROR:
ORA-01033: ORACLE initialization or shutdown in progress
SQL*Plus: Release 10.2.0.1.0 - Production on Tue Feb 19 12:44:49 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
ERROR:
ORA-12528: TNS:listener: all appropriate instances are blocking new connections
CHANGES
The database was started using the nomount, mount or restricted mode. (e.g. the DB admin executed "STARTUP NOMOUNT" or "STARTUP MOUNT" or "STARTUP RESTRICT" in an idle instance)
CAUSE
The listener service handler for an instance that is in either nomount,mount or restricted mode will be blocked or restricted, for connections for any non-privileged account.
Database Nomount
ORACLE instance started.
Total System Global Area 293601280 bytes
Fixed Size 1302432 bytes
Variable Size 157818976 bytes
Database Buffers 134217728 bytes
Redo Buffers 262144 bytes
Listener services show status blocked
LSNRCTL for Solaris: Version 10.1.0.5.0 - Production on 19-FEB-2008 11:35:05
Copyright (c) 1991, 2004, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=hal)(PORT=1525)))
Services Summary...
Service "v10g" has 1 instance(s).
Instance "v10g", status UNKNOWN, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0
LOCAL SERVER
Service "v10g.uk.oracle.com" has 1 instance(s).
Instance "v10g", status BLOCKED, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:ready
LOCAL SERVER
The command completed successfully
Database Mounted
Database altered.
Listener services shows status ready
LSNRCTL for Solaris: Version 10.1.0.5.0 - Production on 19-FEB-2008 11:39:26
Copyright (c) 1991, 2004, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=hal)(PORT=1525)))
Services Summary...
Service "v10g" has 1 instance(s).
Instance "v10g", status UNKNOWN, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:4 refused:0
LOCAL SERVER
Service "v10g.uk.oracle.com" has 1 instance(s).
Instance "v10g", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:2 refused:0 state:ready
LOCAL SERVER
The command completed successfully
Database Restricted mode
ORACLE instance started.
Total System Global Area 293601280 bytes
Fixed Size 1302432 bytes
Variable Size 157818976 bytes
Database Buffers 134217728 bytes
Redo Buffers 262144 bytes
Database mounted.
Database opened.
Listener service show status restricted
LSNRCTL for Solaris: Version 10.1.0.5.0 - Production on 19-FEB-2008 11:28:01
Copyright (c) 1991, 2004, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=hal)(PORT=1525)))
Services Summary...
Service "v10g" has 1 instance(s).
Instance "v10g", status UNKNOWN, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0
LOCAL SERVER
Service "v10g.uk.oracle.com" has 1 instance(s).
Instance "v10g", status RESTRICTED, has 2 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:ready
LOCAL SERVER
The command completed successfully
SOLUTION
Connecting to Nomounted database
1. Net service name using sysdba with (CONNECT_DATA=(SID=<SID>))
Possible due to SID_LIST entry in the LISTENER.ORA for the v10g database.
SQL*Plus: Release 10.2.0.1.0 - Production on Tue Feb 19 12:31:54 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.1.0.5.0 - 64bit Production
With the Partitioning and Data Mining options
SQL> exit
2. Use (UR=A) with (CONNECT_DATA=(SERVICE_NAME=SERVICE))
Connection using SERVICE_NAME without (UR=A) would error with ORA-12528: TNS:listener: all appropriate instances are blocking new connections
SQL*Plus: Release 10.2.0.1.0 - Production on Tue Feb 19 12:37:34 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.1.0.5.0 - 64bit Production
With the Partitioning and Data Mining options
SQL> exit
Connecting to Mounted Database
Net service names using sysdba with either (CONNECT_DATA=(SID)) or (CONNECT_DATA=(SERVICE_NAME=(SERVICE)) can be used.
Connection to Restricted Database
Without sysdba, Net service name using SID or Net service name using SERVICE_NAME with UR=A
TNSNAMES.ORA file used
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = hal)(PORT = 1525))
)
(CONNECT_DATA =
(SERVICE_NAME = v10g.uk.oracle.com)
)
)
SID =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = hal)(PORT = 1525))
)
(CONNECT_DATA =
(SID = v10g)
(SERVER = DEDICATED)
)
)
TESTUA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = hal)(PORT = 1525))
)
(CONNECT_DATA =
(SERVICE_NAME = v10g.uk.oracle.com)
(UR = A)
)
)
Please note that the (UR=A) clause is intended to work with a dynamically registered handler so the use of SERVICE_NAME versus SID is preferred.
REFERENCES
NOTE:1022414.6 - ORA-01033 DATABASE INITIALIZATION OR SHUTDOWN IN PROGRESSNOTE:444120.1 - Connections Via the Listener to the Database Fail with TNS-12526, TNS-12527 or TNS-12528
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/20747382/viewspace-2130845/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- startup nomount
- Time Series DatabasesDatabase
- diskgroup "DATADG" cannot be mounted
- 2.4.2 Connections to Containers in a CDBAI
- does not support SSL connections
- COMPUTER DATABASES AND ABSTRACTING SERVICES 2Database
- fail-fast和fail-safeAIAST
- COMP4039 DIS Databases InterfacesDatabase
- Centaur: A Framework for Hybrid CPU-FPGA DatabasesFrameworkFPGADatabase
- MySQL ERROR 1040: Too many connectionsMySqlError
- startup,startup mount,startup nomount之間的區別
- Installation failed with message INSTALL_FAILED_USER_RESTRICTED錯誤AIREST
- Fail-Fast in JavaAIASTJava
- Fail - Fast機制AIAST
- 深入理解Java中的fail-fast和fail-safeJavaAIAST
- Oracle 12.2 How to Generate AWRs in Active Data Guard Standby DatabasesOracleDatabase
- 防火牆入侵於檢測——————5、Translations and Connections防火牆
- vue中methods、mounted等的使用方法解析Vue
- 談談fail-fast與fail-safe是什麼以及工作機制AIAST
- 紅米note5安裝提示:INSTALL_FAILED_USER_RESTRICTEDAIREST
- [Java基礎]Fail-FastJavaAIAST
- Fail-fast 機制分析AIAST
- 【轉】vue mounted 呼叫兩次的解決辦法Vue
- 求助!vuex在mounted中拿不到物件裡的值Vue物件
- 關於Warning: setState(...): Can only update a mounted or mounting component. This
- How to configure SAP connections with Connection Transmitter Over air_part1MITAI
- MySQL問題處理——1040錯誤Too many connectionsMySql
- python中fail函式如何使用PythonAI函式
- fail2ban 防止暴力破AI
- 基於原始碼去理解Iterator迭代器的Fail-Fast與Fail-Safe機制原始碼AIAST
- vue元件el-dialog重新執行mounted方法的技巧Vue元件
- [AlwaysOn2017] AlwaysOn的DMV和DMF -sys.availability_databases_clusterAIDatabase
- fail2ban配合cloudflare cdn使用AICloud
- Nginx配置max_fails fail_timeoutNginxAI
- java.sql.SQLException: Fail to convert to internal representationJavaSQLExceptionAI
- Nuxt.js 應用中的 app:mounted 鉤子詳解UXJSAPP
- PMS API報錯403 client token authorization failAPIclientAI
- 《Amazon Aurora: Design Considerations for High Throughput Cloud-Native Relational Databases》論文總結IDECloudDatabase
- 包拯斷案 | create connections failed的深度剖析 還故障一個真相AI