DBAsupport.com Forums - Powered by vBulletin
Results 1 to 4 of 4

Thread: Oracle Name

  1. #1
    Join Date
    Sep 2000
    Posts
    56
    whenever I am connecting to oracle thry sqlplus i need to type the full qualifier name ie user/pwd@test.xxxxx.com
    I wanted to have only user/pwd@test.So in sql plus i should type in user in user name
    pwd in password & onlt test in host string instead of test.xxx.com.How to have the test alone.The version of Oracle is 8.1.6 & it is running in N/T
    Thanks
    Suresh

  2. #2
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    Lets see your TNSNAMES.ORA entry.

    You may also want to put a DEFAULT_DOMAIN =xxx.com in your sqlnet.ora file. (See [url]http://technet.oracle.com/docs/products/oracle8i/doc_library/817_doc/network.817/a76933/params.htm#421916[/url] )
    Jeff Hunter

  3. #3
    Join Date
    Dec 2000
    Location
    Washington DC
    Posts
    42

    Thumbs up How to do it!!

    --SQLNET.ORA
    NAME.DEFAULT_ZONE = rkv.datainteraction.com
    NAMES.DEFAULT_DOMAIN = rkv.datainteraction.com

    -- TNSNAMES.ORA
    BADDB.rkv.datainteraction.com =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = Production1)(PORT = 1521))
    (CONNECT_DATA = (SID = ORCL))
    )

    BADDB1.myworld.com =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = Production1)(PORT = 1521))
    (CONNECT_DATA = (SID = ORCL))
    )


    sqlplus usr/pwd@BADDB
    OR
    sqlplus usr/pwd@BADDB.rkv.datainteraction.com
    OR
    sqlplus usr/pwd@BADDB.myworld.com

    The secret is in the sqlnet.ora domain......





    Ken Hinerman
    Data Interaction
    DBASupport@datainteraction.com

  4. #4
    Join Date
    Sep 2000
    Posts
    56
    so in sqlnet.ora file we should put
    NAMES.DEFAULT_DOMAIN = xxxxxx.com
    in tnsnames.ora file we can put
    TEST.xxxxxx.COM =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = xx.xxx.xxx.xx)(PORT = 1521))
    )
    (CONNECT_DATA = (SERVICE_NAME = test))
    )
    so we can test in sqlplus using
    username----user
    password----pwd
    host string---we need to put test alone Ami I rght.I tried & it worked.If I am wrong please correct me
    Thanks
    Suresh

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