21 Day @ Apex : Connectivity with Oracle

Hi Readers,
Now i now about JDBC
Lets Connect my Java project with Oracle database, you can also connect with different database systems like MySQL. But here I am using Oracle, you can choose yours process is similar

To connect java application with the oracle database, we need to follow 5 following steps. In this example, we are using Oracle 10g as the database. So we need to know following information for the oracle database:


Driver class: The driver class for the oracle database is oracle.jdbc.driver.OracleDriver.


Connection URL: The connection URL for the oracle10G database is jdbc:oracle:thin:@localhost:1521:xe where jdbc is the API, oracle is the database, thin is the driver, localhost is the server name on which oracle is running, we may also use IP address, 1521 is the port number and XE is the Oracle service name. You may get all these information from the tnsnames.ora file.


Username: The default username for the oracle database is system.


Password: It is the password given by the user at the time of installing the oracle database.


Comments

Popular posts from this blog

How to add Internet download manager extension in the Chrome browser

A Day in Noida: Learning Begins

Python Deciding factor