一次ora-12528 故障的解决办法
2010-09-28 15:03
在clinet连接数据库时为提示: 解决办法: (-):
先连接到实例t1cdp1,然后shutdown abort,接着startup nomount(忘记了接下来是否执行了alter database mount),此时就退出了登陆,再次尝试登陆的时候就报错:
SQL> conn
iat/welcome@t1cdp1
ERROR: ORA-12528: TNS:listener: all appropriate instances are blocking new connections
1. cmd下面输入lsnrctl,查看当前实例所有监听器的状态
C:\>lsnrctl
LSNRCTL for 32-bit Windows: Version 10.2.0.3.0 - Production on 20-JUN-2010 22:49:13
Copyright (c) 1991, 2006,
Oracle. All rights reserved.
Welcome to LSNRCTL, type "help" for information.
LSNRCTL> status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1))) STATUS of the LISTENER ------------------------ Alias LISTENER Version TNSLSNR for 32-bit Windows: Version 10.2.0.3.0 - Production Start Date 30-APR-2010 14:37:44 Uptime 51 days 8 hr. 11 min. 32 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Listener Parameter File C:\oracle\product\10.2.0\db_1\network\admin\listener.ora Listener Log File C:\oracle\product\10.2.0\db_1\network\log\listener.log Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=SupplyChainRel3.corp.walmart.com)(PORT=1521))) Services Summary... Service "PLSExtProc" has 1 instance(s). Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service... Service "T1CDP1_XPT" has 1 instance(s). Instance "t1cdp1", status BLOCKED, has 1 handler(s) for this service... Service "T1FMSP2XDB" has 1 instance(s). Instance "t1fmsp2", status READY, has 1 handler(s) for this service... Service "T1FMSP2_XPT" has 1 instance(s). Instance "t1fmsp2", status READY, has 1 handler(s) for this service... Service "T1PINVS1XDB" has 1 instance(s). Instance "t1pinvs1", status READY, has 1 handler(s) for this service... Service "T1PINVS1_XPT" has 1 instance(s). Instance "t1pinvs1", status READY, has 1 handler(s) for this service... Service "T1PPROD_XPT" has 1 instance(s). Instance "t1pprod", status BLOCKED, has 1 handler(s) for this service... Service "t1cdp1" has 1 instance(s). Instance "t1cdp1", status BLOCKED, has 1 handler(s) for this service... Service "t1fmsp2" has 1 instance(s). Instance "t1fmsp2", status READY, has 1 handler(s) for this service... Service "t1pinvs1" has 1 instance(s). Instance "t1pinvs1", status READY, has 1 handler(s) for this service... Service "t1pprod" has 1 instance(s). Instance "t1pprod", status BLOCKED, has 1 handler(s) for this service... The command completed successfully
可以发现instance t1cdp1是blocked的状态(不知道
T1CDP1_XPT这个后缀是什么意思),
此时可以确定是监听器出错了。
2. 以sysdba身份登录 sqlplus \ as sysdba
查看发现当前状态为nomount(找到问题根源了).接下来加载
数据库
alter dababase mount;
alter database open;
小结:其实碰到这种错误,可以直接通过sqlplus \ as sysdba进入查看instance状态,而是用lsnrctl则是为了进一步验证而已。 方法(二) 关闭数据数据库,重新启动数据库即可。重新启动监听。 |