I’ve a package in Oracle 11g database to insert records as shown below:
Users table has user_id, prod-id, email, locale, created dt & modified date
exec demo.USERS_PKG.INSERT_USERS(null,1,'abc@abc.com','us',sysdate,sysdate)
I’m new to Java. Can any one provide me sample Java program to insert records using above package?
Note: I don’t want hibernate, just plain jdbc calls but not sure how to do that.
Thanks!
You have to qualify stored-proc name when you call it.
In order to work with oracle database, you have to download JDBC driver and take a look at article (sample).