Cannot create PoolableConnectionFactory(违反协议)
来源:互联网 发布:美国经济数据gdp 编辑:程序博客网 时间:2024/05/01 07:26
错误原因:oracle的用户口令过期
解决办法:用plsql登录,会提示修改密码,之后重启项目即恢复正常
一劳永逸的办法:
使用sqlplus登陆oracle数据库时提示“ORA-28002: 7 天之后口令将过期” 或提示 密码过期。
确定是由于oracle11g中默认在default概要文件中设置了“PASSWORD_LIFE_TIME=180天”所导致。
查看用户的proifle是哪个,一般是default:
00001.
sql>SELECT username,PROFILE FROM dba_users;
00002.
00003.
查看指定概要文件(如default)的密码有效期设置:
00004.
sql>SELECT * FROM dba_profiles s WHERE s.profile=\'DEFAULT\' AND resource_name=\'PASSWORD_LIFE_TIME\';
00005.
00006.
00007.
3
00008.
将密码有效期由默认的180天修改成“无限制”:
00009.
sql>ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;
00010.
修改之后不需要重启动数据库,会立即生效。
00011.
00012.
00013.
4
00014.
修改后,还没有被提示ORA-28002警告的帐户不会再碰到同样的提示;
00015.
已经被提示的帐户必须再改一次密码,举例如下:
00016.
$sqlplus / as sysdba
00017.
sql> alter user smsc identified by <原来的密码> ----不用换新密码
00018.
oracle11g启动参数resource_limit无论设置为false还是true,密码有效期都是生效的,所以必须通过以上方式进行修改。以上的帐户名请根据实际使用的帐户名更改。
- Cannot create PoolableConnectionFactory(违反协议)
- web项目报Cannot create PoolableConnectionFactory(违反约束)错误
- Cannot create PoolableConnectionFactory
- Cannot create PoolableConnectionFactory
- Cannot create PoolableConnectionFactory
- Cannot create PoolableConnectionFactory
- Cannot create PoolableConnectionFactory
- cannot create poolableconnectionfactory mysqlDataSource
- Cannot create PoolableConnectionFactory
- 出现Cannot create PoolableConnectionFactory
- Cannot create PoolableConnectionFactory
- 报错Cannot create PoolableConnectionFactory
- 数据库连接失败Cannot create PoolableConnectionFactory
- 数据库连接错误Cannot create PoolableConnectionFactory
- Cannot create PoolableConnectionFactory ([Microsoft][SQLServer 2000 Driver
- tomcat 运行时出现Cannot create PoolableConnectionFactory (
- 数据库连接报错Cannot create PoolableConnectionFactory
- Cannot create PoolableConnectionFactory (Communications link failure
- 删除线性表中的重复元素
- Wireshark学习笔记——如何快速抓取HTTP数据包
- Servlet中Cookie的用法
- C++Primer第五版 第十章习题答案(41~42)
- 网络连接评分机制之NetworkAgent
- Cannot create PoolableConnectionFactory(违反协议)
- yarn中资源调度fair schedule详解
- c++上机报告
- 梆梆SDKs详细分析 – 防界面劫持SDK
- NSString的retainCount
- Qt中Udp:Send、Recv
- 如何将select出来的部分数据update到另一个表对应的列里面?
- 三、ngSanitize 模块
- Android 性能优化(一)