i have oracle 10g express edition installed and i want to know how to create a system dsn for it.so that i can connect database to my java programs
A:
We've found that JDBC (more info) is the best way to connect to an Oracle database from Java, but if you prefer to use ODBC, these instructions from the Oracle website should get you there.
- Click Start > Programs > Administrative Tools > Data Sources (ODBC) to open the ODBC Data Source Administrator.
- Click the System DSN tab and click Add. The Create New Data Source dialog box opens.
- In the Create New Data Source dialog box, select the Oracle driver.
- Click Finish to open the Oracle ODBC Driver Configuration dialog box.
- In the Oracle ODBC Driver Configuration dialog box, enter a Data Source Name (this can be any name), select the appropriate TNS Service Name from the drop down list, and enter the User ID for the schema.
- Click Test Connection to open the Oracle ODBC Driver Connect dialog box.
- In the Oracle ODBC Driver Connect dialog box, enter the password for the schema and click OK.
- You should see a "Testing Connection" message indicating the connection is successful.
- Click OK to close the Testing Connection message.
- Click OK to close the Oracle ODBC Driver Configuration dialog box.
- Verify that the system data source is added in the ODBC Data Source Administrator and click OK to close the ODBC Data Source Administrator.
If you go to the original link, they have screenshots too, but also a lot more information since they are part of the setup of a different product.
Colin Pickard
2010-08-01 19:20:17