JDBC - How to connect to Oracle? Connection conn =

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
Mehdi Azarmi
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Your default shell? (Bash or Tcsh) %echo $SHELL You may change your default shell %chsh USERNAME /bin/bash More in the CS help page http://www.cs.purdue.edu/resources/facilities/oracle/cs.sxhtml Note : When you login into sqlplus, enter your username with this domain: your_oracle_id@csora …Now you can use oracle from CS machines!
Background image of page 2
Download the Driver Just use @csora with these parameters: Hostname: claros.cs.purdue.edu Port: 1524 SID: strep
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 4
Background image of page 5
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: How to connect to Oracle? Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@claros.cs.purd ue.edu:1524:strep","login","password"); Tutorial on JDBC http://www.cbcb.umd.edu/confcour/CMSC424/Simple%20tutorial%20for%20using %20JDBC.pdf Working with Eclipse What is DriverManager? static { try { java.sql.DriverManager.registerDriver(new Driver()); } catch (SQLException E) { throw new RuntimeException("Can't register driver!"); }...
View Full Document

This note was uploaded on 02/23/2012 for the course CS 348 taught by Professor Staff during the Fall '08 term at Purdue University-West Lafayette.

Page1 / 5

JDBC - How to connect to Oracle? Connection conn =

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online