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

Home -> Community -> Usenet -> c.d.o.server -> Re: I do not want to use TNSNAMES.ORA. How ?

Re: I do not want to use TNSNAMES.ORA. How ?

From: Andy Hardy <Andy_Hardy_at_camk.demon.co.uk>
Date: 1998/01/13
Message-ID: <NX9tqBAle3u0Mw5F@camk.demon.co.uk>#1/1

In article <01bd146c$26e49520$d205a8c0_at_venus>, Oron Vexler <ovexler_at_netvision.net.il> writes
>Hi,
>Is there a way I can connect to a remote database without using alias name
>-
>I mean specify the exact location of the database.
>
>Thanx alon

You don't need to use tnsnames.ora if you specify the complete connect string within your connection i.e. the whole bit associated with the alias within tnsnames.

e.g. in the following, instead of referring to cms_oracle in your connection you'd refer to the whole (DESCRIPTION... ) string.

cms_oracle.world =
  (DESCRIPTION =

        (ADDRESS = 
          (COMMUNITY = TCP.world)
          (PROTOCOL = TCP)
          (Host = 10.1.0.4)
          (Port = 1526)
        )
      (CONNECT_DATA = 
        (SID = clk)
           (GLOBAL_NAME = cms_oracle.world)
      )

  )

Andy

-- 
Andy Hardy
Senior IT Systems Engineer
Cegelec AEG
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Opinions are mine and do not necessarily reflect those of Cegelec AEG
Received on Tue Jan 13 1998 - 00:00:00 CST

Original text of this message

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