DBPing :
The dbping command-line utility tests the connection between a DBMS and your client machine via a JDBC driver.
Syntax :
$ java utils.dbping ORACLE_THIN <USERNAME> <PASSWORD> <IP:PORT:SID>
Example
Source the environment using setDomainEnv.sh
[oracle@oracle basedomain]$ java utils.dbping ORACLE_THIN mani oracle 172.24.146.88:1581/mani
OUTPUT :
**** Success!!! ****
You can connect to the database in your app using:
java.util.Properties props = new java.util.Properties();
props.put("user", "mani");
props.put("password", "oracle");
java.sql.Driver d =
Class.forName("oracle.jdbc.OracleDriver").newInstance();
java.sql.Connection conn =
Driver.connect("jdbc:oracle:thin:@172.24.146.88:1581/mani", props);
The dbping command-line utility tests the connection between a DBMS and your client machine via a JDBC driver.
Syntax :
$ java utils.dbping ORACLE_THIN <USERNAME> <PASSWORD> <IP:PORT:SID>
Example
Source the environment using setDomainEnv.sh
[oracle@oracle basedomain]$ java utils.dbping ORACLE_THIN mani oracle 172.24.146.88:1581/mani
OUTPUT :
**** Success!!! ****
You can connect to the database in your app using:
java.util.Properties props = new java.util.Properties();
props.put("user", "mani");
props.put("password", "oracle");
java.sql.Driver d =
Class.forName("oracle.jdbc.OracleDriver").newInstance();
java.sql.Connection conn =
Driver.connect("jdbc:oracle:thin:@172.24.146.88:1581/mani", props);
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.