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,如需转载请自行联系原作者



相关文章
|
关系型数据库 数据库
ORA-12154: TNS:could not resolve the connect identifier specified
在安装ORACLE安装的时候,报如下错误:ORA-12154: TNS:could not resolve the connect identifier specified。如下图所示: 折腾了很久才找到罪魁祸首:原来在安装数据库时,设置用户密码的时候里面包含了@符号,引起了这个错误,这个错误倒是有点诡异,应该是ORACLE连接DB时就把口令@后面的串当连接字用了。
2924 0
|
Oracle 关系型数据库 数据库
Oracle中Error while performing database login with the XXXdriver; Listener refused the connection with the following error; ORA-12505,TNS:listener does
一次连接数据库怎么也连接不上,查了多方面资料,终于找到答案,总结 首先应该保证数据库的服务启动 在myeclipse的数据库视图中点 右键->new 弹出database driver的窗口, Driver template选择oracle(thin driver), Driver name 输入...
1101 0