Unix Technical Forum

which difference inside file tnsnames.ora

This is a discussion on which difference inside file tnsnames.ora within the Oracle Database forums, part of the Database Server Software category; --> Hi, I have installed Oracle Server since few time, so I think I'll make an obvious question. I would ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-24-2008, 12:23 PM
Ale
 
Posts: n/a
Default which difference inside file tnsnames.ora

Hi,
I have installed Oracle Server since few time, so I think I'll make an
obvious question.

I would like to know the difference between this two services declared into
my tnsnames.ora file:

FIRST =

(DESCRIPTION =

(ADDRESS_LIST =

(ADDRESS = (PROTOCOL = TCP)(HOST = test1)(PORT = 1526))

)

(CONNECT_DATA =

(SERVER = DEDICATED)

(SERVICE_NAME = SMSTEST)

)

)

SECOND =


(DESCRIPTION =

(ADDRESS_LIST =

(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))

)

(CONNECT_DATA =

(SID = mitico)

(SERVER = DEDICATED)

)

)



The second one is the classic service with a SID, i.e. a DB, but I don't
understand the first one, it's a DB too but without SID and with a
service_name ? That's the same ?



thanx all

Ale


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-24-2008, 12:24 PM
DA Morgan
 
Posts: n/a
Default Re: which difference inside file tnsnames.ora

Ale wrote:

> Hi,
> I have installed Oracle Server since few time, so I think I'll make an
> obvious question.
>
> I would like to know the difference between this two services declared into
> my tnsnames.ora file:
>
> FIRST =
>
> (DESCRIPTION =
>
> (ADDRESS_LIST =
>
> (ADDRESS = (PROTOCOL = TCP)(HOST = test1)(PORT = 1526))
>
> )
>
> (CONNECT_DATA =
>
> (SERVER = DEDICATED)
>
> (SERVICE_NAME = SMSTEST)
>
> )
>
> )
>
> SECOND =
>
>
> (DESCRIPTION =
>
> (ADDRESS_LIST =
>
> (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
>
> )
>
> (CONNECT_DATA =
>
> (SID = mitico)
>
> (SERVER = DEDICATED)
>
> )
>
> )
>
>
>
> The second one is the classic service with a SID, i.e. a DB, but I don't
> understand the first one, it's a DB too but without SID and with a
> service_name ? That's the same ?
>
>
>
> thanx all
>
> Ale


A change Oracle instituted somewhere between 8 and 9i.
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace 'x' with 'u' to respond)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-24-2008, 12:24 PM
Mark Bole
 
Posts: n/a
Default Re: which difference inside file tnsnames.ora

DA Morgan wrote:
> Ale wrote:
>

[...]
>> I would like to know the difference between this two services declared
>> into my tnsnames.ora file:
>>
>> FIRST =
>>
>> (ADDRESS = (PROTOCOL = TCP)(HOST = test1)(PORT = 1526))

[...]
>> (SERVICE_NAME = SMSTEST)

[...]
>> SECOND =
>>

[...]
>>
>> (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))

[...]
>> (SID = mitico)
>>

[...]
>>
>> The second one is the classic service with a SID, i.e. a DB, but I
>> don't understand the first one, it's a DB too but without SID and with
>> a service_name ? That's the same ?
>> thanx all
>>
>> Ale

>
>
> A change Oracle instituted somewhere between 8 and 9i.


http://download-west.oracle.com/docs...dstpr.htm#7853

The other differences are the non-standard port number in the first
example, which requires LOCAL_LISTENER parameter to be set in the
database for auto-registration to work, and the use of "localhost" in
the second, which is unusual.

-Mark Bole



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-24-2008, 12:24 PM
Randy Harris
 
Posts: n/a
Default Re: which difference inside file tnsnames.ora

"DA Morgan" <damorgan@x.washington.edu> wrote in message
news:1109298539.979997@yasure...
> Ale wrote:
>
> > Hi,
> > I have installed Oracle Server since few time, so I think I'll make an
> > obvious question.
> >
> > I would like to know the difference between this two services declared

into
> > my tnsnames.ora file:
> >
> > FIRST =
> >
> > (DESCRIPTION =
> >
> > (ADDRESS_LIST =
> >
> > (ADDRESS = (PROTOCOL = TCP)(HOST = test1)(PORT = 1526))
> >
> > )
> >
> > (CONNECT_DATA =
> >
> > (SERVER = DEDICATED)
> >
> > (SERVICE_NAME = SMSTEST)
> >
> > )
> >
> > )
> >
> > SECOND =
> >
> >
> > (DESCRIPTION =
> >
> > (ADDRESS_LIST =
> >
> > (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
> >
> > )
> >
> > (CONNECT_DATA =
> >
> > (SID = mitico)
> >
> > (SERVER = DEDICATED)
> >
> > )
> >
> > )
> >
> >
> >
> > The second one is the classic service with a SID, i.e. a DB, but I don't
> > understand the first one, it's a DB too but without SID and with a
> > service_name ? That's the same ?
> >
> >
> >
> > thanx all
> >
> > Ale

>
> A change Oracle instituted somewhere between 8 and 9i.



The OP didn't specify a version. As I recall, 8 required the use of SID in
tnsnames.ora. In 8i, use of SERVICE_NAME was the default, but SID would
still work just fine. The two, of course, aren't necessarily the same. When
the entry was created with the Net8 Configuration Assistant, the choice was
offered - 8 or 8i, that was the difference.

--
Randy Harris
(tech at promail dot com)



> Daniel A. Morgan
> University of Washington
> damorgan@x.washington.edu
> (replace 'x' with 'u' to respond)



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:39 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com