求救weblogic 与oracle连接

xwlym 2002-03-12 04:58:31
我写个连接oracle数据库的代码

Properties props = new Properties();
props.put("user", "sront");
props.put("password", "sront");
Driver myDriver =(Driver)Class.forName
("weblogic.jdbc.oci.Driver").newInstance();
Connection conn =myDriver.connect("jdbc:weblogic:oracle", props);

编译没问题,可是执行的时候老是有错误
Missing license file for: WebLogic Server 6.1
java.sql.SQLException: Fail to load jDriver/Oracle due to license checking failed!


求各位帮帮我呀!!!
...全文
146 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
xwlym 2002-03-13
  • 打赏
  • 举报
回复
对不起?我在6.1的管理界面中,还是没找到properties项,在命令行有办法设置吗?
ChDw 2002-03-12
  • 打赏
  • 举报
回复
在管理界面种的properties种加入
weblogic.codeset=GB2312
xwlym 2002-03-12
  • 打赏
  • 举报
回复
我在weblogic6.1管理界面中没有使用weblogic的jdbc driver,因为使用的时候老是说
<JDBC> <Cannot startup connection pool "oraclePool" weblogic.common.ResourceException:
Could not create pool connection. The DBMS driver exception was:
java.sql.SQLException: Unsupported Oracle codeset: zhs16gbk.
Set weblogic.codeset in your connection Properties
to a valid JDK codeset which is compatible with the Oracle
codeset defined in your NLS_LANG setting
xwlym 2002-03-12
  • 打赏
  • 举报
回复
我在weblogic6.1管理界面中没有使用weblogic的jdbc driver,因为使用的时候老是说
<JDBC> <Cannot startup connection pool "oraclePool" weblogic.common.ResourceException:
Could not create pool connection. The DBMS driver exception was:
java.sql.SQLException: Unsupported Oracle codeset: zhs16gbk.
Set weblogic.codeset in your connection Properties
to a valid JDK codeset which is compatible with the Oracle
codeset defined in your NLS_LANG setting

xwlym 2002-03-12
  • 打赏
  • 举报
回复
我在weblogic6.1管理界面中没有使用weblogic的jdbc driver,因为使用的时候老是说
<JDBC> <Cannot startup connection pool "oraclePool" weblogic.common.ResourceException:
Could not create pool connection. The DBMS driver exception was:
java.sql.SQLException: Unsupported Oracle codeset: zhs16gbk.
Set weblogic.codeset in your connection Properties
to a valid JDK codeset which is compatible with the Oracle
codeset defined in your NLS_LANG setting

ldgs 2002-03-12
  • 打赏
  • 举报
回复
weblogic6.1可以在管理界面测试jdbc driver有没有设对?
ldgs 2002-03-12
  • 打赏
  • 举报
回复
有没有把WebLogic Server 6.1 配置正确?
xwlym 2002-03-12
  • 打赏
  • 举报
回复
kkk

23,404

社区成员

发帖
与我相关
我的任务
社区描述
Java 非技术区
社区管理员
  • 非技术区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧