Solved

Connecting to Oracle with ODBC info

Posted on 2011-09-08
10
688 Views
Last Modified: 2012-08-13
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
0
Comment
Question by:JustinW
  • 6
  • 4
10 Comments
 
LVL 1

Author Comment

by:JustinW
ID: 36505307
Oh,
and in the ODBC Data Source Administrator,
the Driver is listed as "Oracle in OraClient 11g_home1"
0
 
LVL 15

Expert Comment

by:Devinder Singh Virdi
ID: 36506145
What is the question?

Thanks
0
 
LVL 1

Author Comment

by:JustinW
ID: 36506220
How do I connect to the database?
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 15

Expert Comment

by:Devinder Singh Virdi
ID: 36506312
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

0
 
LVL 1

Author Comment

by:JustinW
ID: 36506361
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?
0
 
LVL 15

Expert Comment

by:Devinder Singh Virdi
ID: 36506428
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.
0
 
LVL 1

Author Comment

by:JustinW
ID: 36506523
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


0
 
LVL 1

Author Comment

by:JustinW
ID: 36506550
I've never installed anything oracle on my computer before,
could I be missing a driver?

0
 
LVL 15

Accepted Solution

by:
Devinder Singh Virdi earned 500 total points
ID: 36506564
You can search for TNSNAMES.ORA file under c:\oracle...\network\admin directory

Add the following (Change YourMachineName and TypeDatabaseName accordingly)

CPSPROD=
  (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = YourMachineName)(PORT = 1512))
    (CONNECT_DATA =
     (SERVICE_NAME = TypeDatabaseName)
        (INSTANCE_NAME= CPSPROD)
    )
  )
0
 
LVL 1

Author Closing Comment

by:JustinW
ID: 36506728
Just copied the info from the ORA File into Navicat.
Lit right up!
Thx!
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question