I'm assuming you already have the Oracle JDBC drivers.
If you have an application server, you can create an entity bean through the wizard: new->enterprise->EJB Entity Bean Modeler. Fill in the connection information, and everything else should be a cakewalk. No manual tweaks are necessary once you're through the wizard.
Then, to add a row, get yourself an instance of the home interface and perform a create:
<code>
import javax.naming.*;
import javax.rmi.PortableRemoteObject;
public insert()
{
//The values we want to put in the DB
String myField1 = "Wee";
String myField2 = "Hooray";
//Get an instance of the home interface
Context ctx = new InitialContext();
Object ref = ctx.lookup("MyClassJNDIName"

;
MyHome home = (MyHome)(PortableRemoteObject.narrow(ref, MyHome.class));
//Insert the row
home.create(myField1, myField2);
}
</code>
If you don't have an appserver, you'll have to use regular JDBC, with a simple query like "insert into myTable values(myField1, myField2);". I haven't done this myself, only in VB with ADODB objects which are very simple to use, so if this is the case someone else will have to help you out.