>> Do I need JDK 1.2 to use with Personal Oracle?
No, but it would be better if you used the same versions of java and jdbc. For JDK1.1, uses classes111.zip. If you are using Java 2 (1.2 or 1.3) use classes12.zip available from Oracle.
>> How do I create a database (CREATE DATABASE)?
Use a statement.
Statement s = conn.createStatement();
s.executeUpdate("CREATE DATABASE.....");
Although creating a database would be much better done directly in oracle
>> How do I create a table?
Statement s = conn.createStatement();
s.executeUpdate("CREATE TABLE.....");
>> Second and Third questions are independent of JDBC and Java.
>> In the Java Program, this is what I understand so far
>> 1. I should use import java.sql.*;
>> 2. Connection c=DriverManager.getConnection(???)
>> How do I go about it?
Wrox Press just published a book on
Oracle 8i Application Programming. Download the code for chapters 5 - 16 and then look at the examples for chapter 12. These classes in particular may help:
TestJdbc.java (check your installation)
ForNameLoader.java (how load driver and get connection)
ConnectionTest.java (various connection methods)
SimpleStatement.java (creates tables using jdbc)