DBAsupport.com Forums - Powered by vBulletin
Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Domain name in tnsnames

  1. #1
    Join Date
    Apr 2002
    Location
    France
    Posts
    118

    Domain name in tnsnames

    Hi,

    I am using Oracle 9.2 on Win2000 and everytime I add a new alias, my domain's name gets appended to the alias' name.

    Basically I will have an entry like that :

    TEST.MYDOMAIN =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = server)(PORT = 1521))
    )
    (CONNECT_DATA =
    (SERVICE_NAME = sid)
    )
    )

    So what I do : I manually delete the mydomain, in order to have :
    TEST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = server)(PORT = 1521))
    )
    (CONNECT_DATA =
    (SERVICE_NAME = sid)
    )
    )

    Does anybody know why my domain gets added and how to change this behaviour ?

    Remark : the NAMES.DEFAULT_DOMAIN parameter is commented in my sqlnet.ora.

    Thanks.
    If there is no solution, it is because there is no problem - Shadok -

  2. #2
    Join Date
    Nov 2000
    Location
    Birmingham, UK
    Posts
    360
    Not sure I totally understand your problem - but have a look at this Metalink Note - it may help
    http://metalink.oracle.com/metalink/...&p_id=201316.1

  3. #3
    Join Date
    Nov 2000
    Location
    Birmingham, UK
    Posts
    360
    Not sure I totally understand your problem - but have a look at this Metalink Note - it may help
    http://metalink.oracle.com/metalink/...&p_id=201316.1

  4. #4
    Join Date
    Apr 2002
    Location
    France
    Posts
    118
    Thanks but the link did not help me.

    However I have found something else :

    IF I create a new alias - giving it the name TEST - with Net Manager, I will get that in my tnsnames (which is just perfect and what I want) :

    TEST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = server)(PORT = 1521))
    )
    (CONNECT_DATA =
    (SERVICE_NAME = sid)
    )
    )


    Now, If I create the new alias - still giving it the name TEST - using Net Config Assistant I will get :

    TEST.MYDOMAIN =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = server)(PORT = 1521))
    )
    (CONNECT_DATA =
    (SERVICE_NAME = sid)
    )
    )

    The ONLY difference is that my alias is now called TEST.MYDOMAIN instead of TEST while I did not named it TEST.MYDOMAIN but only TEST.

    Not a big deal, but strange.
    If you have any idea...
    If there is no solution, it is because there is no problem - Shadok -

  5. #5
    Join Date
    Jan 2001
    Posts
    3,134
    Do you have multiple sqlnet.ora files?
    It would appear that the information is getting pulled from different locations.
    Multiple Oracle homes?

    MH
    I remember when this place was cool.

  6. #6
    Join Date
    Apr 2002
    Location
    France
    Posts
    118
    I have only one sqlnet.ora and only one Oracle home.

    Also I have not set tns_admin, so Oracle searches for the tnsnames.ora ( and others ) in the standard directory network\admin\

    BTW this happens on different workstations (maybe all?).
    If there is no solution, it is because there is no problem - Shadok -

  7. #7
    Join Date
    Nov 2002
    Location
    Geneva Switzerland
    Posts
    3,142
    Originally posted by yanban
    IF I create a new alias - giving it the name TEST - with Net Manager, I will get that in my tnsnames (which is just perfect and what I want) :
    . . . . . .
    Now, If I create the new alias - still giving it the name TEST - using Net Config Assistant I will get : . . . .
    Which confirms my opinion that using Net Config Assistant is like driving with your eyes shut. Net Manager (Net8 Assistant in versions before 9) does what you tell it to do, lets you see what you are doing and shows you what you have done!

  8. #8
    Join Date
    Jan 2001
    Posts
    3,134
    HEY!!

    I do my best sleeping while driving to work, so don't knock driving with your eyes closed.

    MH
    I remember when this place was cool.

  9. #9
    Join Date
    Aug 2002
    Location
    Colorado Springs
    Posts
    5,253
    Originally posted by DaPi
    Which confirms my opinion that using Net Config Assistant is like driving with your eyes shut. Net Manager (Net8 Assistant in versions before 9) does what you tell it to do, lets you see what you are doing and shows you what you have done!
    Oh, you can't beat manual editing, i always say.
    David Aldridge,
    "The Oracle Sponge"

    Senior Manager, Business Intelligence Development
    XM Satellite Radio
    Washington, DC

    Oracle ACE

  10. #10
    Join Date
    Nov 2002
    Location
    Geneva Switzerland
    Posts
    3,142
    Originally posted by Mr.Hanky
    I do my best sleeping while driving to work, so don't knock driving with your eyes closed.
    Great when it works, painful when it doesn't.

    Of course the Config Assistant is in the best traditions of GUI's, which are intended to hide the details from the end user, increasing the chance of a consultant being called in to sort out the mess.

    Originally posted by slimdave
    Oh, you can't beat manual editing, i always say.
    Provi)ding you c)(an get the) par(atheses in the rig)(ht pl(a)ces. (I usually can)t

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width