Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Using two TNSNAMES.ORA or some other solution.

Re: Using two TNSNAMES.ORA or some other solution.

From: <Jared.Still_at_radisys.com>
Date: Tue, 16 Apr 2002 11:29:02 -0800
Message-ID: <F001.00445B6A.20020416112902@fatcity.com>


Create a file '.tnsnames.ora' in your home directory.

Notice that this file starts with a dot '.'

You can put your connection data in there. If you turn logging on
( you can have your own sqlnet.ora too ) you will see that the
local .tnsnames.ora is found first.

Jared

"Kumar, Dharminder" <Dharminder.Kumar_at_bmonb.com> Sent by: root_at_fatcity.com
04/16/02 10:28 AM
Please respond to ORACLE-L  

        To:     Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com>
        cc: 
        Subject:        Using two TNSNAMES.ORA or some other solution.


Hey all,
In my work place, usually I do the development of Oracle database running on
HP-UX platform. But I also have an Oracle server(PC) running on my PC running Windows NT. To connect to Oracle server running on my PC from Unix box, I do the following on Unix box.

$export
DB_LOGIN=dkumar/dkumarl@(DESCRIPTION=(ADDRESS_LIST=ADDRESS=COMMUNITY=tcp.wor ld)(PROTOCOL=TCP)(Host=10.110.1
44.73)(Port=1521)))(CONNECT_DATA=(SID=DHARM))) $ sqlplus $DB_LOGIN
and I am able to connect to sqlplus session without any problem.

The reason I do this because I do not have permission to changes the tnsnames.ora file on the Unix box.. So the access to oracle server (PC) works fine using client sqlplus from Unix box. But the problem is that if use the utilities like sqlloader, import and export and tries to connect Oracle Server (PC), this approach does not work as the following lines show
it.

$sqlldr userid=$DB_LOGIN
LRM-00116: syntax error at 'dkumar/dkumar@(D' following '='

SQL*Loader: Release 8.1.6.2.0 - Production on Tue Apr 16 12:18:24 2002

(c) Copyright 1999 Oracle Corporation. All rights reserved.

SQL*Loader-100: Syntax error on command-line

So let me know if there is a way by which I can use two tnsnames.ora on Unix
box and if that is possible then I can set description for Oracle server
(PC) in the second file because I have tested that if DB_LOGIN is set to
dkumar/dkumar_at_corpdb where corpdb is the entry in tnsnames.ora then all the
utilities work fine.

If somebody has some other ideas, let me know.

Thanks.

Dharminder Kumar

<FONT SIZE =

1>****************************************************************************
This e-mail and any attachments may contain confidential and privileged information. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this e-mail and destroy any copies. Any dissemination or use of this information by a person other than the intended recipient is unauthorized and may be illegal. Unless otherwise stated, opinions expressed in this e-mail are those of the author and are not endorsed by the author's employer.</FONT>
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Kumar, Dharminder
  INET: Dharminder.Kumar_at_bmonb.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L

(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: INET: Jared.Still_at_radisys.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).
Received on Tue Apr 16 2002 - 14:29:02 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US