LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 976|回复: 7

RH9下用jsp连接oracle9i!

[复制链接]
发表于 2003-12-2 15:17:41 | 显示全部楼层 |阅读模式
你好!我先装了ORACLE9I支持PHP,现在我要用JSP也连接数据库,要怎么设置,
还是要安装什么软件吗!请大家帮忙吧!
     谢谢了!
发表于 2003-12-2 21:06:48 | 显示全部楼层
SDK
 楼主| 发表于 2003-12-3 15:49:23 | 显示全部楼层
楼兄,我的SDK已经好了,下一步的问题是,怎样设置才可以连接上ORCLE数据库啊!请大家帮帮忙吧!
 楼主| 发表于 2003-12-4 09:12:12 | 显示全部楼层
我噻,人好少啊!
发表于 2003-12-8 19:08:02 | 显示全部楼层
连上oracle当然是要使用jdbc了,你将你的oracle的jdbc路径加入到classpath中去,然后使用jdbc来连上oracle。
 楼主| 发表于 2003-12-18 14:56:18 | 显示全部楼层
这样对吗!
CLASSPATH="./:/usr/local/jdk/lib:/usr/local/jdk/jre/lib:/opt/oracle/product/9.2.0/jdbc/lib”
怎么还是连不上啊!
发表于 2003-12-18 14:59:38 | 显示全部楼层
给出错误提示
 楼主| 发表于 2003-12-18 15:11:09 | 显示全部楼层
type Exception report

message Internal Server Error

description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
    [javac] Compiling 1 source file

/usr/local/jakarta-tomcat-4.1.29/work/Apache/localhost:8008/examples/test/conn_ora_jsp.java:48: illegal character: \12288
銆??String url="jdbcracle:thin192.168.0.1:1521:test";
下面还有好多!我觉得关键是Unable to compile class for JSP
谢谢帮忙!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表