Excute setWLSEnv.sh before running this command:
$ java -classpath /home/soa/Oracle/Middleware/wlserver_10.3/server/lib/weblogic.jar utils.dbping ORACLE_THIN db_user db_pwd db_host:db_port:SID
**** Success!!! ****
You can connect to the database in your app using:
java.util.Properties props = new java.util.Properties();
props.put("user", "xxxxx");
props.put("password", "xxxxxx");
java.sql.Driver d =
Class.forName("oracle.jdbc.OracleDriver").newInstance();
java.sql.Connection conn =
Driver.connect("jdbc:oracle:thin:@db_host:db_port:SID", props);
Or use telnet:
telnet db_host db_port
本文指导如何在运行特定命令前执行WLSEnv.sh脚本,并配置Oracle数据库连接,包括使用java代码和telnet进行连接。

被折叠的 条评论
为什么被折叠?



