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 

启动数据库正常。



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



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值