Link to home
Start Free TrialLog in
Avatar of JustinW
JustinWFlag for United States of America

asked on

Connecting to Oracle with ODBC info

Not sure if this is possible or not,
but I'm trying to connect to an Oracle Database
using 3rd party software (Navicat).

I've been given instructions on how to get access to the
database through Access using an OBDC connection, but
would rather use Navicat to perform queries. I've tested the connection
in the ODBC manager, and it appears to work.

Thanks,
-JW
Avatar of JustinW
JustinW
Flag of United States of America image

ASKER

Oh,
and in the ODBC Data Source Administrator,
the Driver is listed as "Oracle in OraClient 11g_home1"
What is the question?

Thanks
Avatar of JustinW

ASKER

How do I connect to the database?
As per Navicat website, it will use TNS files, so you dont need ODBC.
TNS is the entry in  <ORACLE_HOME>/network/admin location.

Please read the following link
http://www.navicat.com/en/products/navicat_oracle/oracle_detail_win.html

Avatar of JustinW

ASKER

Thanks,

The Default Settings for Navicat's ORACLE - NEW CONNECTION are:

Connection Name: BLANK
Connection Type: Basic
Host Name/IP Address: BLANK
Port: 1521
Service Name/SID: ORCL
User Name: BLANK
Password: BLANK

Other than the Username and Password (which I have), What do I need to put in the blanks?
Is the rest of this configuration correct for what I want?
You can type anything in connection name,
However you can select TNS in Connection Type.
Then provide SCOTT as username and TIGER as password OR you can test with other users as well.
In host name you can enter your computer name or assign your computer some IP address and use that one.
Avatar of JustinW

ASKER

When I change the connection type From BASIC to TNS,
the form changes; giving me these options to complete:

Net Service Name: BLANK (dropdown)
User Name: BLANK
Password: BLANK

The Net Service Name Field doesn't have any prepopulated options
to chose from.

If I type in the DataBase I want to connect to (CPSPROD),
and click Test Connection, it throws
ORA-12154: TNS:could not resolve the connect identifier specified

Open in new window


The Oracle ODBC Driver Configuration form,
There's a Dropdown called **TNS Service Name**
that is prepopulated, and has the Database I want to connect to (CPSPROD).

When I test the connection on that; it says that the test was successful


Avatar of JustinW

ASKER

I've never installed anything oracle on my computer before,
could I be missing a driver?

ASKER CERTIFIED SOLUTION
Avatar of Devinder Singh Virdi
Devinder Singh Virdi
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of JustinW

ASKER

Just copied the info from the ORA File into Navicat.
Lit right up!
Thx!