Computer Science
General Computer Science articles :)
Sunday, September 28, 2008
Getting a single DB connection in Java
Connection conn = null;
Class.forName("oracle.jdbc.driver.OracleDriver");
conn = DriverManager.getConnection("jdbc:oracle:thin:@
[ip_address]
:
[port]
:
[SID]
", "
[username]
", "
[password]
");
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment