| Database Tour |
![]() |
Opening Oracle Databases |
Before trying to connect an Oracle database in Database Tour, make sure your local tnsnames.ora file contains the entry of this database. Usually, this file is located in ORACLE HOME\NETWORK\ADMIN directory. ORACLE HOME is the directory into which all Oracle software is installed; it is referenced in the application as Vendor homepath parameter (see below). Each database entry in the tnsnames.ora file has the following basic format:
database_name =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(Host = hostname)(Port = port))
)
(CONNECT_DATA =
(SERVICE_NAME = service_name)
)
)
hostname, port, service_name are your Oracle database attributes you need to know in order to connect to it. database_name is a custom name for the database entry; you use it in Database Tour and other database tools.
Here is an example of a database entry in the tnsnames.ora:
main_db =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(Host = 192.168.100.100)(Port = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = DWH_MAIN)
)
)
Note: There can be multiple Oracle homes on one computer and thus several files tnsnames.ora. Make sure you are using the correct one.
So, there are several ways to connect to Oracle databases in Database Tour:
Oracle database connection parameters:
(required parameters are highlighted)
| Parameter | Description | Value example |
|---|---|---|
| Vendor homepath | The root folder of the Oracle client installation | C:\app\product\12.1.0\client_1 |
| Database | Name of the database from tnsnames.ora file | main_db |
| OS authentication | Specify whether to use OS authentication instead of the db authentication | No |
| Authentication mode | Oracle authentication mode:
| Normal |
| Charset | The character set for the connection | WE8MSWIN1252 |
| Application name | Application name to show in database sessions | Database Tour Pro |
| User name | Database user name | dexter |
| Password | Database user password | ******** |
| SQL command separator | Command separator in multi-command SQL scripts | <sqlplus> |
Provider=msdaora;Data Source=MyOracleDB;User Id=myUsername;Password=myPassword; (Microsoft OLE DB Provider for Oracle must be installed)
Provider=OraOLEDB.Oracle;Data Source=MyOracleDB;User Id=myUsername;Password=myPassword; (Oracle Provider for OLE DB must be installed)
Driver={Microsoft ODBC Driver for Oracle};ConnectString=OracleServer.world;Uid=myUsername;Pwd=myPassword; (Microsoft ODBC Driver for Oracle must be installed)
Provider=MSDASQL.1;Extended Properties="DSN=ORACLE_DB;UID=MyUsername;PWD=MyPassword"
- Select FD interface, click ODBC, then point the Data source parameter to the ODBC DSN by selecting it from the drop-down list.
or
- Select ADO or BDE interface, then choose ODBC data source option and then select the needed ODBC DSN from the drop-down list.
Notes
Hints
See also