JDBC just lets a Java program (application, applet) connect to a database and perform SQL statements against that database.
Oracle has the ability to run Java programs right in the database. Oracle comes with its own Java Virtual Machine (JVM) to run Java programs. These programs are stored in the database as stored procedures. They do not need JDBC to interact with the database. So why would one want to run Java programs in the database? Java programs let you do more things than one can do in PL/SQL programs. This just gives the application developer more power in developing database apps. Storing these Java programs in the database also leverages the power of the database, such as security control, transaction control, backing up the application when the database is backed up, etc.
For More Information
- Dozens more answers to tough Oracle questions from Brian Peasland are available.
- The Best Oracle Web Links: tips, tutorials, scripts, and more.
- Have an Oracle or SQL tip to offer your fellow DBAs and developers? The best tips submitted will receive a cool prize. Submit your tip today!
- Ask your technical Oracle and SQL questions -- or help out your peers by answering them -- in our live discussion forums.
- Ask the Experts yourself: Our SQL, database design, Oracle, SQL Server, DB2, metadata, object-oriented and data warehousing gurus are waiting to answer your toughest questions.
Dig Deeper on Oracle database design and architecture
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.