A)
->there are 2 types of connectivity from java application to database server.
1) JDBC-ODBC approach
2) JDBC approach
JDBC-ODBC approach:
->in this kind of connectivity sun Microsystems provided driver is used.
->in this kind of connectivity sun Microsystems provided driver is used.
->this driver class is”sun.jdbc.odbc.JdbcOdbcDriver”.
->this driver translates JDBC method calls into ODBC function calls. It can’t translate them into ODBC understandable (SQL) calls.
->In order to associate sun driver with ODBC driver we need to externally make some configuration and give some name to that configuration which is known as DSN ( Data Source Name).
Note:
->DNS is a user defined name given to a configuration in which ODBC driver and underlying database are involved.
->Using ODBC data source Administrator which is a graphical tool. We configure the DNS.
Start->settings->control panel->Administrator tools->data sources(ODBC)->ODBC data source administrator graphical tool is displayed-> click ”add” button ->select the DB-> then oracle ODBC driver manager dialogue box is displayed->give the DNS name->click ok.
Comments
Post a Comment