Oracle 9i client connect to Oracle 8i server

Posted on 2005-04-06
Last Modified: 2012-05-05
I have two servers entropy and nds.  Entropy is a linux machine with Oracle server + client, Apache, and PHP.  NDS is a linux machine with an Oracle 8.1.5 server.  On entropy I am creating a PHP application that uses the data in the oracle 9i server on entropy.  I also need to pull information from the oracle 8i server on nds.  Whenever I try to connect to the nds oracle 8i server with the entropy oracle 9i client, the listener on nds dies.  I have been told that this is a bug in oracle 8.1.5, but  I cannot make any patches to the oracle 8i server on nds, because doing so will break the client application that uses the data (not the php application I am writing).  If this is true is there any other way of connecting to the oracle 8i server with the oracle 9i client?  ODBC maybe?  Could I run two clients on the entropy machine, oracle 9i client  and oracle 8i client?  Any help is appreciated.  Thanks.
Question by:mcqueena
    LVL 25

    Expert Comment

    Could you use a database link to read the 8i data from the 9i database?  That way you would only have to make 9i connections.

    Author Comment

    Can I do this from the oracle 9i database without making any changes to the oracle 8i database?
    LVL 25

    Expert Comment

    Yes.  You create the link:

    create database link linkname connect to userid identified by password
    using 'connect string';

    Then from the 9i database, you can select from 8itable_name@linkname.
    LVL 11

    Accepted Solution

    In your TNSNAMES.ORA change "SERVICE_NAME" to "SID" for the connection string. It will do.

    Author Comment

    Linking didn't fix the problem, becuase that still uses tnsnames.ora and the oracle 8i server listener.  

    The problem was in fact the tnsnames file as sujit_kumar said.  Pretty amazing that an error in that configuration file on a client can kill the listener on the server.  Kind of scary.  Once I got my network admin to actually change the tnsnames.ora file everything worked perfect.  Thanks, sujit_kumar.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    I guess that all of us know that caching the data usually increase the performance, but I worried if all of us are aware about the risk that caching the data provides and how to minimize this.  That’s the reason why I decided to write this short art…
    This article describes some very basic things about SQL Server filegroups.
    Video by: Steve
    Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    761 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

    Need Help in Real-Time?

    Connect with top rated Experts

    6 Experts available now in Live!

    Get 1:1 Help Now