ORA-12578: TNS:wallet open failed

今天在自己的电脑上面启动数据库的时候把下面的错误,

 

   
   
   
   
  1. # su - oracle 
  2. Oracle Corporation      SunOS 5.10      Generic Patch   January 2005 
  3. $ sqlplus / as sysdba 
  4.  
  5. SQL*Plus: Release 11.2.0.3.0 Production on Thu Aug 30 20:09:44 2012 
  6.  
  7. Copyright (c) 1982, 2011, Oracle.  All rights reserved. 
  8.  
  9. ERROR: 
  10. ORA-12578: TNS:wallet open failed 
  11. Enter user-name:  
  12. ERROR: 
  13. ORA-01017: invalid username/password; logon denied 
  14. Enter user-name:  
  15. ERROR: 
  16. ORA-01017: invalid username/password; logon denied 
  17. SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus 
  18.  

 

可以是wallet出了问题,记得原来做过wallet实验,但是后面mkstore删除了,不知道为什么还报错误。

查看下面文件

  
  
  
  
  1. $ vi sqlnet.ora 
  2. "sqlnet.ora" 7 lines, 315 characters  
  3. # sqlnet.ora Network Configuration File: /u01/app/oracle/product/11.2.0/db_1/network/admin/sqlnet.ora 
  4. # Generated by Oracle configuration tools. 
  5.  
  6. ADR_BASE = /u01/app/oracle 
  7. WALLET_LOCATION=(SOURCE=(METHOD=FILE)(METHOD_DATA=(DIRECTORY=/u01/app/oracle/product/11.2.0/db_1/wallet/htzdg))) 
  8. SQLNET.WALLET_OVERRIDE=TRUE 

 

查看wallet目录是否存在。

  
  
  
  
  1. $ ls -l /u01/app/oracle/product/11.2.0/db_1/wallet/htzdg 
  2. /u01/app/oracle/product/11.2.0/db_1/wallet/htzdg: No such file or directory 
  3. $  

由于目录不存在,注视掉wallet相关的参数。启动数据库正常。

  
  
  
  
  1. $ vi sqlnet.ora 
  2. "sqlnet.ora" 7 lines, 315 characters  
  3. # sqlnet.ora Network Configuration File: /u01/app/oracle/product/11.2.0/db_1/network/admin/sqlnet.ora 
  4. # Generated by Oracle configuration tools. 
  5.  
  6. ADR_BASE = /u01/app/oracle 
  7. #WALLET_LOCATION=(SOURCE=(METHOD=FILE)(METHOD_DATA=(DIRECTORY=/u01/app/oracle/product/11.2.0/db_1/wallet/htzdg))) 
  8. #SQLNET.WALLET_OVERRIDE=TRUE 
  9.  
  10. $ sqlplus / as sysdba 
  11.  
  12. SQL*Plus: Release 11.2.0.3.0 Production on Thu Aug 30 20:14:31 2012 
  13.  
  14. Copyright (c) 1982, 2011, Oracle.  All rights reserved. 
  15.  
  16. Connected to an idle instance. 
  17.  
  18. SQL> startup 
  19. ORACLE instance started. 
  20.  
  21. Total System Global Area  521936896 bytes 
  22. Fixed Size                  2227576 bytes 
  23. Variable Size             352322184 bytes 
  24. Database Buffers          163577856 bytes 
  25. Redo Buffers                3809280 bytes 
  26. Database mounted. 
  27. Database opened. 
  28. SQL>  
  29. SQL> exit 
  30. Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production 
  31. With the Partitioning, OLAP, Data Mining and Real Application Testing options 

启动数据库正常。

你可能感兴趣的:(failed,open,TNS:wallet,ORA-12578)