RAC启动报ORA-00119 ORA-00132

简介:

今天在启动自己测试环境中的RAC其中一个实例,然而启动了几分后数据库仍不能连接,查看CRS资源,发现INSTANCE为UNKNOWN状态。如下:

 

 
  1. [oracle@oracle10grac1 ~]$ crs_stat.sh 
  2. Name                                               Target     State      Host      
  3. ------------------------------                     ---------- ---------  -------   
  4. ora.oracle10grac1.ASM1.asm                         ONLINE     ONLINE     oracle10grac1 
  5. ora.oracle10grac1.LISTENER_ORACLE10GRAC1.lsnr      ONLINE     ONLINE     oracle10grac1 
  6. ora.oracle10grac1.gsd                              ONLINE     ONLINE     oracle10grac1 
  7. ora.oracle10grac1.ons                              ONLINE     ONLINE     oracle10grac1 
  8. ora.oracle10grac1.vip                              ONLINE     ONLINE     oracle10grac1 
  9. ora.oracle10grac2.ASM2.asm                         ONLINE     OFFLINE              
  10. ora.oracle10grac2.LISTENER_ORACLE10GRAC2.lsnr      ONLINE     OFFLINE              
  11. ora.oracle10grac2.gsd                              ONLINE     OFFLINE              
  12. ora.oracle10grac2.ons                              ONLINE     OFFLINE              
  13. ora.oracle10grac2.vip                              ONLINE     ONLINE     oracle10grac1 
  14. ora.orcl.db                                        ONLINE     UNKNOWN    oracle10grac1 
  15. ora.orcl.orcl1.inst                                ONLINE     UNKNOWN    oracle10grac1 
  16. ora.orcl.orcl2.inst                                ONLINE     OFFLINE 

 

由于手动启动数据库:

 

 
  1. [oracle@oracle10grac1 ~]$ sqlplus / as sysdba 
  2.  
  3. SQL*Plus: Release 10.2.0.4.0 - Production on Wed May 30 22:10:36 2012 
  4.  
  5. Copyright (c) 1982, 2007, Oracle.  All Rights Reserved. 
  6.  
  7. Connected to an idle instance. 
  8.  
  9. SQL> startup 
  10. ORA-00119: invalid specification for system parameter REMOTE_LISTENER 
  11. ORA-00132: syntax error or unresolved network name 'LISTENERS_ORCL' 

ORA-00119报错,还有可能是下面的提示,如果遇到,请查看连接:http://luoping.blog.51cto.com/534596/273241环境是单机+文件系统

 
  1. SQL> startup    
  2.  
  3. ORA-00119: invalid specification for system parameter LOCAL_LISTENER    
  4.  
  5. ORA-00132: syntax error or unresolved network name 'LISTENER_ORCL' 
  6.  

奇怪了,报REMOTE_LISTENER错误。

查看TNSNAMES.ORA文件,是正常的。如下:

 

 
  1. LISTENERS_ORCL = 
  2.   (ADDRESS_LIST = 
  3.     (ADDRESS = (PROTOCOL = TCP)(HOST = oracle10grac1-vip)(PORT = 1521)) 
  4.     (ADDRESS = (PROTOCOL = TCP)(HOST = oracle10grac2-vip)(PORT = 1521)) 
  5.   )   

导出SPFILE文件,

 

 
  1. SQL> create pfile='/tmp/pfile.ora' from spfile='+cata/orcl/spfileorcl.ora'
  2. create pfile='/tmp/pfile.ora' from spfile='+cata/orcl/spfileorcl.ora' 
  3. ERROR at line 1: 
  4. ORA-07392: sftcls: fclose error, unable to close text file. 

又报错了,

查看ORA-07392报错

 

 
  1. [oracle@oracle10grac1 ~]$ oerr ora 07392 
  2. 07392, 00000, "sftcls: fclose error, unable to close text file." 
  3. // *Cause:  Fclose library routine returned an error. 
  4. // *Action: Possible internal oracle error. 

没有看懂。由于修改pfileorcl1.ora文件把数据库启动起来。

 

 
  1. [oracle@oracle10grac1 ~]$ cd $ORACLE_HOME/dbs/ 
  2.  
  3. [oracle@oracle10grac1 dbs]$ cp initorcl1.ora initorcl1.ora.back 
  4.  
  5. [oracle@oracle10grac1 dbs]$ cat initorcl1.ora 
  6. spfile=+cata/orcl/spfileorcl.ora 
  7.  
  8. remote_listener='' 

再次手动启动数据库

 

 
  1. SQL> startup 
  2. ORACLE instance started. 
  3.  
  4. Total System Global Area  314572800 bytes 
  5. Fixed Size                  2083592 bytes 
  6. Variable Size             155190520 bytes 
  7. Database Buffers          150994944 bytes 
  8. Redo Buffers                6303744 bytes 
  9. Database mounted. 
  10. Database opened. 

查看监听状态:

 

 
  1. [oracle@oracle10grac1 dbs]$ lsnrctl status 
  2.  
  3. LSNRCTL for Linux: Version 10.2.0.4.0 - Production on 30-MAY-2012 23:06:02 
  4.  
  5. Copyright (c) 1991, 2007, Oracle.  All rights reserved. 
  6.  
  7. Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521)) 
  8. STATUS of the LISTENER 
  9. ------------------------ 
  10. Alias                     LISTENER_ORACLE10GRAC1 
  11. Version                   TNSLSNR for Linux: Version 10.2.0.4.0 - Production 
  12. Start Date                30-MAY-2012 21:49:36 
  13. Uptime                    0 days 1 hr. 16 min. 25 sec 
  14. Trace Level               off 
  15. Security                  ONLocal OS Authentication 
  16. SNMP                      OFF 
  17. Listener Parameter File   /app/oracle/product/10.2.0/db_1/network/admin/listener.ora 
  18. Listener Log File         /app/oracle/product/10.2.0/db_1/network/log/listener_oracle10grac1.log 
  19. Listening Endpoints Summary... 
  20.   (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.232.41)(PORT=1521))) 
  21.   (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.232.31)(PORT=1521))) 
  22.   (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oracle10grac1)(PORT=8800))(Presentation=HTTP)(Session=RAW)) 
  23.   (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oracle10grac1)(PORT=7788))(Presentation=FTP)(Session=RAW)) 
  24. Services Summary... 
  25. Service "+ASM" has 1 instance(s). 
  26.   Instance "+ASM1", status BLOCKED, has 1 handler(s) for this service... 
  27. Service "+ASM_XPT" has 1 instance(s). 
  28.   Instance "+ASM1", status BLOCKED, has 1 handler(s) for this service... 
  29. Service "PLSExtProc" has 1 instance(s). 
  30.   Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service... 
  31. Service "orcl" has 1 instance(s). 
  32.   Instance "orcl1", status READY, has 2 handler(s) for this service... 
  33. Service "orclXDB" has 1 instance(s). 
  34.   Instance "orcl1", status READY, has 1 handler(s) for this service... 
  35. Service "orcl_XPT" has 1 instance(s). 
  36.   Instance "orcl1", status READY, has 2 handler(s) for this service... 
  37. The command completed successfully 

查看tnsnames.ora文件的权限

 

 
  1. [oracle@oracle10grac1 dbs]$ cd $ORACLE_HOME/network/admin 
  2. [oracle@oracle10grac1 admin]$ ls 
  3. afiedt.buf  listener1105176AM2105.bak  listener.ora  OCRDUMPFILE  samples  shrept.lst  sqlnet.ora  tnsnames1105176AM2105.bak  tnsnames.ora 
  4. [oracle@oracle10grac1 admin]$ ls -l * 
  5. -rw-r--r-- 1 oracle oinstall    43 Apr  3 13:35 afiedt.buf 
  6. -rw-r--r-- 1 oracle oinstall   566 May 17  2011 listener1105176AM2105.bak 
  7. -rw-r----- 1 oracle oinstall   578 May  4 15:35 listener.ora 
  8. -rw-r--r-- 1 oracle oinstall 38254 Jul 16  2011 OCRDUMPFILE 
  9. -rw-r----- 1 oracle oinstall   172 Dec 26  2003 shrept.lst 
  10. -rw-r--r-- 1 oracle oinstall   233 May  4 15:35 sqlnet.ora 
  11. -rw-r--r-- 1 oracle oinstall  1440 May 17  2011 tnsnames1105176AM2105.bak 
  12. -rw-r----- 1 oracle oinstall  1743 May  4 15:35 tnsnames.ora 
  13.  
  14. samples: 
  15. total 40 
  16. -rw-r----- 1 oracle oinstall  3867 Sep  9  1997 listener.ora 
  17. -rw-r----- 1 oracle oinstall 31023 Sep  9  2003 sqlnet.ora 
  18. -rw-r----- 1 oracle oinstall  2939 Feb 13  1997 tnsnames.ora 

 

看了上面这些都配置正确,没有办法了,由于手动修改tnsnames.ora文件的权限

 

 
  1. [oracle@oracle10grac1 admin]$ chmod 777 tnsnames.ora 
  2. [oracle@oracle10grac1 admin]$ ls -l 
  3. total 72 
  4. -rw-r--r-- 1 oracle oinstall    43 Apr  3 13:35 afiedt.buf 
  5. -rw-r--r-- 1 oracle oinstall   566 May 17  2011 listener1105176AM2105.bak 
  6. -rw-r----- 1 oracle oinstall   578 May  4 15:35 listener.ora 
  7. -rw-r--r-- 1 oracle oinstall 38254 Jul 16  2011 OCRDUMPFILE 
  8. drwxr-x--- 2 oracle oinstall  4096 May 17  2011 samples 
  9. -rw-r----- 1 oracle oinstall   172 Dec 26  2003 shrept.lst 
  10. -rw-r--r-- 1 oracle oinstall   233 May  4 15:35 sqlnet.ora 
  11. -rw-r--r-- 1 oracle oinstall  1440 May 17  2011 tnsnames1105176AM2105.bak 
  12. -rwxrwxrwx 1 oracle oinstall  1743 May  4 15:35 tnsnames.ora 

把数据库关闭,再次重启正常:

 

 
  1. SQL> shutdown immediate 
  2. Database closed. 
  3. Database dismounted. 
  4. ORACLE instance shut down. 
  5. SQL> startup 
  6. ORACLE instance started. 
  7.  
  8. Total System Global Area  314572800 bytes 
  9. Fixed Size                  2083592 bytes 
  10. Variable Size             155190520 bytes 
  11. Database Buffers          150994944 bytes 
  12. Redo Buffers                6303744 bytes 
  13. Database mounted. 
  14. Database opened. 

还是觉得奇怪,由于我手动把tnsnames.ora文件的权限分别改成了640于000,改成640后数据库仍启动正常,改成000后,报上面相同的报错。为什么之前权限为640就报错呢?想不通


  本文转自7343696 51CTO博客,原文链接:http://blog.51cto.com/luoping/964475,如需转载请自行联系原作者

相关文章
|
11月前
rac中连接pdb时遇到ORA-01033:
sqlplus system/dingjia@192.168.82.139:1528/third
|
关系型数据库 数据库
连接RAC出现的问题--ORA-12514
场景:新建的RAC数据库,通过TNS,无法连接Oracle数据库。 原因:新建的RAC数据库的SID和GLOBAL_DBNAME不一致。 这个情况需要:tnsnames.ora中的SERVICE_NAME要和服务器的监听器listener.ora中的GLOBAL_DBNAME一样才可以 否则就会报ORA-12514错误。
1970 0
|
Oracle 关系型数据库 测试技术
|
SQL 关系型数据库 Oracle
|
Oracle 关系型数据库 数据库
Oracle 11gR2 RAC DBCA无法识别ASM磁盘组(ORA-19504,ORA-15045,ORA-17502,ORA-15081)
ORA-19504: failed to create file "+DATA" ORA-15045: ASM file name '+DATA' is not in reference form ORA-17502: ksfdcre:5 Failed to create file +DATA ...
2114 0
|
SQL 存储 Oracle
ORACLE startup报错之ORA-01261&&ORA-01263&&ORA-00202&&ORA-00205
    系统环境:windows server 2008R2    数据库环境:oracle 11.2.0.1    问题描述:一测试数据库oradb启动时报错ORA-01261&&ORA-00202,报错日志如下: C:\Users\localadmin>sqlplus / as sysdba SQL*Plus: Release 11.
1367 0
|
SQL 监控 Oracle
ORACLE startup报错之ORA-01154&&ORA-01155&&ORA-01033&&ORA-03113
    今天,一实施同事求助,说一地市oracle数据库无法通过远程连接,连接报错如图: 操作系统:windows server2008 R2  数据库版本:oracle 11.2.0.1 初看报错貌似数据库正处在打开或关闭的过程中。
1592 0

热门文章

最新文章