Tnsnames file

Can anyone explain why some entries in my tnsnames file I have to actually
specify SID = %Database Name%
and for others I have to specify Service_Name = %Database Name%
For 1 of them, if i use Service_Name = %Database Name%, I won't be able to connect to the Database via any means!
However, if I use SID = %Database Name%, I will be able to connect via Enterprise Manager, applications etc.

So should I use SID as the standard?Not necessarily, both 8i and 9i support dynamic registration, but it depends on how they are configured. As I said before, with "lsnrctl services" you can see the situation of your DBs with the listener : you should see something like the following :
Service "db102.world" has 1 instance(s).
  Instance "db102", status READY, has 1 handler(s) for this service...
    Handler(s):
      "DEDICATED" established:0 refused:0 state:ready
         LOCAL SERVERIn this case tnsnames.ora entry should have SERVICE_NAME=db102.world or SID=db102, that is SERVICE_NAME must match Service name, and SID must match Instance name.

Similar Messages

  • SQL Developer 1.1.3 refuses to acknowledge TNSNAMES file

    I can't figure out what I'm missing.
    I've created the system variable TNS_ADMIN and pointed it to "C:\orant\NET80\ADMIN".
    I've created the folder "C:\orant\NETWORK\ADMIN" (which should correspond to "$ORACLE_HOME\NETWORK\ADMIN") and placed a duplicate copy of my TNSNAMES.ORA file there.
    My other tools (Benthic's Golden Retriever, SQL*Plus, Oracle Reports 6i, etc.) can all see that my TNSNAMES file is in the right place and can use the connection data it contains, but SQL Developer refuses to acknowlegde its existence.
    What more can I do?
    I'm using Windows XP Pro with SQL Developer 1.1.3. Our database is Oracle 10g.

    I just had the very same problem on linux.
    I had these exports:
    declare -x ORACLE_HOME="/usr/lib/oracle/xe/app/oracle/product/10.2.0/client"
    declare -x TNS_ADMIN="/usr/lib/oracle/xe/app/oracle/product/10.2.0/client/network/admin"
    declare -x TWO_TASK="ORACLEXE"
    My tnsnames.ora file was in the TNS_ADMIN directory.
    After reading your tip I copied the tnsnames.ora-file to /etc and now SQL-Developer suddenly reads the file. I'm happy that I now have a workaround, but this sure is irritating.

  • TNSNames file problems....

    Hi,
    We have Oracle 9i running on a Win NT network. There is a tnsnames.ora file in the default directory with the other Oracle program files. However, we would like to have OEM pointing to a different local tnsnames file (so that we can automatically see all our local databases listed, instead of seeing all the existing databases on the network). We have tried several methods to get this to work (added tns_admin values to the registry; added tns_admin environmental variable), but we cannot get the local values to show up as selectable values in OEM. Can anyone help?
    Thanks!

    Justin:
    <quote>
    But that's where the global tnsnames.ora file is located. Can't have two files named the same thing in the same directory.
    </quote>
    I meant put a tnsnames.ora file in $ORACLE_HOME\bin … I was hoping OEM would pick the file from the directory where it got started rather than from $ORACLE_HOME\network\admin
    I was hoping it will behave like SQL*Plus … if you start SQL*Plus from a directory having a tnsnames.ora file then this file will take precedence over the tnsnames.ora from $ORACLE_HOME\network\admin
    Meanwhile, I did get access to an OEM installation and tried it … doesn’t work for OEM. OEM starting connected to a Management Server will get the database list from the OEM repository; when starting OEM as a Standalone Console one can use “Add Database To Tree” to get service names from the local tnsnames.ora file or to manually enter them … but it will always go to $ORACLE_HOME\network\admin (or maybe to whatever some environment variable points to).
    Now, going back to 422328:
    <quote>
    But I would like to be able to get to my local databases without having to type in the names (in the fields at the top of the "Add Database" screen) every day.
    </quote>
    The thing is, with a Standalone Console, once you manually add a database, the entry goes into $ORACLE_HOME\network\admin\tnsnames.ora … so I don’t see why it would have to be entered every day … unless the file is somewhere in the network and refreshed/replaced daily by the DBAs (which is what happens in lots of places). My question to you is … once you manually add a new database, verify you can connect with SQL*Plus Worksheet … than get out of OEM and connect back right away … do you still see the database you have just added?

  • Can multiple tnsname file exist in a server?

    hi guys,
    not too sure about this. the apps mentioning they have a problem connecting to our database. So i requested him to send me the server tnsname.ora it is using. He sent me 2 file which i am questioning can a server actually use more then 1 tnsname files? In that case how do i know which one the application is using?
    Edited by: flaskvacuum on Mar 19, 2012 11:05 AM

    flaskvacuum wrote:
    hi guys,
    not too sure about this. the apps mentioning they have a problem connecting to our database. So i requested him to send me the server tnsname.ora it is using. He sent me 2 file which i am questioning can a server actually use more then 1 tnsname files? In that case how do i know which one the application is using?
    I shall ask the same question which Rp asked-what do you mean by server tnsnanmes.ora file and why did you ask for it? If the client was not able to connect, isn't it that you should ask for the client-side tnsnames.ora? About multiple files being present, yes its possible.
    Aman....

  • Linux instant client  tnsnames file

    My db is on a windows box (don't ask why, please), I'm trying to connect to it from a RH9.0 machine with the Linux InstantClient SQLPLUS. I keep getting:
    "ORA-12162: TNS:net service name is incorrectly specified"
    I do have a TNS_ADMIN set to my tnsnames file.
    Any suggestions?
    Thanks

    at Linux machine go into network configuration menu then go host tab and add host name and IP address of your windown server . it will solve your problem Inshallah.

  • Configuring tnsnames file to conenct to the remote srever

    I have forms 6i installed in my windows(XP) machine.
    I have oracle 9i installed in my linux machine.
    I have to connect to the database from forms6i.
    This is the tnsnames.ora file of forms 6i
    Beq-local.world =
      (DESCRIPTION =
        (ADDRESS_LIST =
            (ADDRESS =
              (COMMUNITY = beq.world)
              (PROTOCOL = BEQ)
              (PROGRAM = oracle80)
              (ARGV0 = oracle80ORCL)
              (ARGS = '(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))')
        (CONNECT_DATA = (SID = ORCL)
    Tcp-loopback.world =
      (DESCRIPTION =
        (ADDRESS_LIST =
            (ADDRESS =
              (COMMUNITY = tcp.world)
              (PROTOCOL = TCP)
              (Host = 127.0.0.1)
              (Port = 1521)
        (CONNECT_DATA = (SID = ORCL)
    tftp.world =
      (DESCRIPTION =
        (ADDRESS_LIST =
            (ADDRESS =
              (COMMUNITY = tcp.world)
              (PROTOCOL = TCP)
              (Host = hostname)
              (Port = 1521)
        (CONNECT_DATA = (SID = tftp)
    sfinger.world =
      (DESCRIPTION =
        (ADDRESS_LIST =
            (ADDRESS =
              (COMMUNITY = tcp.world)
              (PROTOCOL = TCP)
              (Host = hostname)
              (Port = 1521)
        (CONNECT_DATA = (SID = sfinger)
      )I don't know how to configure it to make the connection to the database from windows.
    The service name of oracle database is orcl and host name is linux7.
    Thanks

    Yes i was missing one right parenthesis.
    BUt even then its not working.
    The listener is started.The port is the default one.
    How could i know whether the connection is making use of tnsnames file.?
    This is the modified tnsnames.ora file
    orcl=
        (description=
          (address_list=
                (address=
                    (protocol=tcp)
                    (host=10.129.11.119)
                    (port=1521)
       (connect_data=(sid=orcl)
    Beq-local.world =
      (DESCRIPTION =
        (ADDRESS_LIST =
            (ADDRESS =
              (COMMUNITY = beq.world)
              (PROTOCOL = BEQ)
              (PROGRAM = oracle80)
              (ARGV0 = oracle80ORCL)
              (ARGS = '(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))')
        (CONNECT_DATA = (SID = ORCL)
    Tcp-loopback.world =
      (DESCRIPTION =
        (ADDRESS_LIST =
            (ADDRESS =
              (COMMUNITY = tcp.world)
              (PROTOCOL = TCP)
              (Host = 127.0.0.1)
              (Port = 1521)
        (CONNECT_DATA = (SID = ORCL)
    tftp.world =
      (DESCRIPTION =
        (ADDRESS_LIST =
            (ADDRESS =
              (COMMUNITY = tcp.world)
              (PROTOCOL = TCP)
              (Host = hostname)
              (Port = 1521)
        (CONNECT_DATA = (SID = tftp)
    sfinger.world =
      (DESCRIPTION =
        (ADDRESS_LIST =
            (ADDRESS =
              (COMMUNITY = tcp.world)
              (PROTOCOL = TCP)
              (Host = hostname)
              (Port = 1521)
        (CONNECT_DATA = (SID = sfinger)
      )

  • Strange problem with TNSNAMES file

    We just rebaselined a new machine with Windows XP sp2, and installed SQL Plus Release 9.0.1.4.0. We configured the sqlnet.ora file and tnsnames.ora file and placed them in the <orahome>\network\admin\ directory.
    But when we try to connect to the 8i database, we get the following error message:
    ORA-112154: TNS:could not resolve service name.
    Now, I know that this usually means that there's something wrong with the tnsnames.ora file. So I double-checked it and it was fine. So I replaced it with tnsnames.ora files from three other working clients. But it still gave the same error message.
    Next, I replaced the sqlnet.ora file from working clients, but it still wouldn't work.
    Next I added a TNS_ADMIN environment variable pointing to the <orahome>\network\admin\ directory, but still no go.
    Next added an ORACLE_HOME environment variable, but no success.
    I had another pair of eyes look at this, and they couldn't find anything wrong.
    All the clients are on the same network, the database is up and running, and the other clients can connect without a problem. The client that is not working can ping the server where the 8i database resides.
    Help! What am I overlooking? Something in the registry? Can this error message appear for something wrong in the database even though the other 3 clients can connect?

    Mark,
    I don't think there's something wrong with your database.
    This seems more of a communication error between the client and the database, are the other clients the same version?
    From what I know 10g clients are not compatible with 8i databases.
    It's an SID issue I think, can';t remember now.
    will lookup and feed back.
    regards,
    Tony
    PS: Try creating the LOCAL entry in the registry and use the SID you are trying to connect, MIGHT help
    Message was edited by:
    Tony Garabedian

  • Adcfgclone.pl dbTechStack on Target DB removes listener and tnsnames files

    Hello:
    I am doing a first-time clone from my PRD to my TST instance, and have undergone the following steps:
    1. perl adpreclone.pl dbTier on Source DB
    2. perl adpreclone.pl appsTier on Source AppTier
    3. Copy APPL_TOP, COMMON_TOP, ORACLE_HOME, IAS_ORACLE_HOME from Source AppTier to Target AppTier.
    4. Run perl adcfgclone.pl dbTechStack on Target DB.
    At this point is where I start running into issues. The dbTechStack deletes/recreates the tnsnames.ora, sqlnet.ora, and listener.ora files, and the DB can no longer startup. The below is in the logfiles. Am I doing something wrong? I guess the issue is not so much with it deleting/recreating the files, as it is with the values it puts into the files (i.e. DB port = 3001)
    Executing Technology Stack Configuration...
    Executing runAutoConfig...
    Deleting files of type INSTALL
    Checking for file: /u01/oracle/WMSTST/db/tech_st/11.1.0/network/admin/WMSTST_x07tst00/sqlnet.ora
    File exists
    File deleted
    Processing driver file: /u01/oracle/WMSTST/db/tech_st/11.1.0/appsutil/template/addbtmpl.drv
    Checking for file: /u01/oracle/WMSTST/db/tech_st/11.1.0/appsutil/install/WMSTST_x07tst00/txkConfigDbOcm.pl
    File exists
    File deleted
    Checking for file: /u01/oracle/WMSTST/db/tech_st/11.1.0/dbs/initWMSTST.ora
    File exists
    File deleted
    Checking for file: /u01/oracle/WMSTST/db/tech_st/11.1.0/network/admin/WMSTST_x07tst00/listener.ora
    File exists
    File deleted
    Checking for file: /u01/oracle/WMSTST/db/tech_st/11.1.0/network/admin/WMSTST_x07tst00/tnsnames.ora
    File exists
    File deleted
    Testing for RAC specific parameters before running autoconfig
    No RAC specific parameters were found, running with CVM
    Starting CVM in INSTE8_SETUP mode
         Using Context file : /u01/oracle/WMSTST/db/tech_st/11.1.0/appsutil/WMSTST_x07tst00.xml
    Attempting to create a back up of the Context file
    Created back up file of name :
    /u01/oracle/WMSTST/db/tech_st/11.1.0/appsutil/out/WMSTST_x07tst00/12111155/WMSTST_x07tst00.xml
    ===========================================================================
    Starting synchronization of file system Context file and its templates with those in the database
    Database connection : Failed
    OAM Context editing support feature: Unverified
    OAM Customization support feature : Unverified
    File system template : /u01/oracle/WMSTST/db/tech_st/11.1.0/appsutil/template/adxdbctx.tmp
    Checking for customizations to Context template
    Warning: Unable to connect to Database.
    If the system is OAM enabled, this may result in loss of customizations.
    Looking for custom template at : /u01/oracle/WMSTST/db/tech_st/11.1.0/appsutil/template/custom/adxdbctx.tmp
    Custom template : Not available
    Customizations found : None
    File system Context file :/u01/oracle/WMSTST/db/tech_st/11.1.0/appsutil/WMSTST_x07tst00.xml
    Checking the Context file for possible updates from the Database
    Warning: Unable to connect to Database.
    If the system is OAM enabled, this may result in loss of customizations and the Context files in DataBase and in the file system may be unsynchronized
    Thanks!
    Edited by: user4434301 on Dec 11, 2012 12:39 PM

    Excellent. I copied the template file from another instance and the following messages were at the end of the logfile:
    Skipping Profile Phase
    Skipping Apply Phase
    Completed runAutoConfig...
    ApplyDBTechStack Completed Successfully.
    However I'm not completely certain this is entirely correct preclone. Can you tell me why the Profile and Apply Phases were skipped and why the following was displayed upon the screen on completion?
    Completed Apply...
    Tue Dec 18 11:25:39 2012
    Starting database listener for WMSTST:
    Running:
    /u01/oracle/WMSTST/db/tech_st/11.1.0/appsutil/scripts/WMSTST_x07tst00/addlnctl.sh start WMSTST
    Logfile: /u01/oracle/WMSTST/db/tech_st/11.1.0/appsutil/log/WMSTST_x07tst00/addlnctl.txt
    You are running addlnctl.sh version 120.1.12010000.4
    Starting listener process WMSTST ...
    LSNRCTL for Linux: Version 11.1.0.7.0 - Production on 18-DEC-2012 11:25:39
    Copyright (c) 1991, 2008, Oracle. All rights reserved.
    Starting /u01/oracle/WMSTST/db/tech_st/11.1.0/bin/tnslsnr: please wait...
    TNSLSNR for Linux: Version 11.1.0.7.0 - Production
    System parameter file is /u01/oracle/WMSTST/db/tech_st/11.1.0/network/admin/WMSTST_x07tst00/listener.ora
    Log messages written to /u01/oracle/WMSTST/db/tech_st/11.1.0/log/diag/tnslsnr/x07tst00/wmstst/alert/log.xml
    TNS-01151: Missing listener name, WMSTST, in LISTENER.ORA
    Listener failed to start. See the error message(s) above...
    addlnctl.sh: exiting with status 1
    addlnctl.sh: check the logfile /u01/oracle/WMSTST/db/tech_st/11.1.0/appsutil/log/WMSTST_x07tst00/addlnctl.txt for more information ...
    That file shows the following:
    Starting database listener for WMSTST:
    Running:
    /u01/oracle/WMSTST/db/tech_st/11.1.0/appsutil/scripts/WMSTST_x07tst00/addlnctl.sh start WMSTST
    Logfile: /u01/oracle/WMSTST/db/tech_st/11.1.0/appsutil/log/WMSTST_x07tst00/addlnctl.txt
    You are running addlnctl.sh version 120.1.12010000.4
    Starting listener process WMSTST ...
    LSNRCTL for Linux: Version 11.1.0.7.0 - Production on 18-DEC-2012 11:25:39
    Copyright (c) 1991, 2008, Oracle. All rights reserved.
    Starting /u01/oracle/WMSTST/db/tech_st/11.1.0/bin/tnslsnr: please wait...
    TNSLSNR for Linux: Version 11.1.0.7.0 - Production
    System parameter file is /u01/oracle/WMSTST/db/tech_st/11.1.0/network/admin/WMSTST_x07tst00/listener.ora
    Log messages written to /u01/oracle/WMSTST/db/tech_st/11.1.0/log/diag/tnslsnr/x07tst00/wmstst/alert/log.xml
    TNS-01151: Missing listener name, WMSTST, in LISTENER.ORA
    Listener failed to start. See the error message(s) above...
    addlnctl.sh: exiting with status 1
    addlnctl.sh: check the logfile /u01/oracle/WMSTST/db/tech_st/11.1.0/appsutil/log/WMSTST_x07tst00/addlnctl.txt for more information ...
    Should I have stopped the DB or listener before running the script?
    Edited by: user4434301 on Dec 18, 2012 9:18 AM

  • Install/Uninstall of Oracle10g client deletes TNSNAMES file

    I'm not sure if this is the correct forum to put this in... but...
    We have an Oracle 9i database and are using the Oracle 10g client. Our TNSNAMES.ORA file is located on a shared folders so that our customers can all access it from one point (by setting their TNS_ADMIN environment variable to point to this share area).
    However, it seems that whenever one of the clients installs or deinstalls the Oracle client (for maintenance or whatever) that it DELETES the tnsnames.ora file from the network share! Is there a reason why it is doing this, and any way that we can turn off this behavior? Just because someone deinstalls the client should by no means cause the shared tnsnames.ora file to be deleted.
    Any ideas appreciated. Thanks.
    Tom

    In such a configuration you should allow only read access to the net files. When TNS_ADMIN is set to a specific location and the deinstallation process has write privileges , it removes the net configuration files just as the other parts of the software. It does simply not know these files are used by others, too.
    Werner

  • NetCA fail to create TNSNAME file

    I installed Oracle11gR2 GRID and RAC on two nodes(windows2008R2): I did some modification for supporting TAF failover.
    when I do "tnsping" I got an error like:
    C:\Users\administrator.QAPF2>tnsping NLQA
    TNS Ping Utility for 64-bit Windows: Version 11.2.0.3.0 - Production on 16-APR-2
    012 17:04:37
    Copyright (c) 1997, 2011, Oracle. All rights reserved.
    Used parameter files:
    C:\app\11.2.0\grid\NETWORK\ADMIN\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION =
    TNS-12533: TNS:illegal ADDRESS parameters
    From oracle forum, there were many discussions on this error: due to some bad characters in tnsnames.ora file.
    They suggest to use NetCA to create it, I tried as follow but I got another(maybe same) error:
    Connecting...ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    The test did not succeed.
    Current node1 status:
    C:\Users\administrator.QAPF2>srvctl config service -d ORCL -s NLQA
    Service name: NLQA
    Service is enabled
    Server pool: ORCL_NLQA
    Cardinality: 2
    Disconnect: false
    Service role: PRIMARY
    Management policy: AUTOMATIC
    DTP transaction: false
    AQ HA notifications: true
    Failover type: SELECT
    Failover method: BASIC
    TAF failover retries: 180
    TAF failover delay: 5
    Connection Load Balancing Goal: LONG
    Runtime Load Balancing Goal: NONE
    TAF policy specification: BASIC
    Edition:
    Preferred instances: orcl2,orcl1
    Available instances:
    C:\Users\administrator.QAPF2>srvctl status service -d ORCL -s NLQA
    Service NLQA is running on instance(s) orcl1
    My TNSNAME.ora file:
    NLQA =
    (DESCRIPTION =
    (LOAD_BALANCE = ON)
    (FAILOVER = ON)
    (ADDRESS = (PROTOCOL = TCP)(HOST = ORARAC1-vip)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = ORARAC2-vip)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = NLQA)
    (FAILOVER_MODE = (TYPE = SELECT)(METHOD = BASIC)(RETRIES = 180)(DELAY = 5))
    listener.ora file:
    LISTENER=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER))))          # line added by Agent
    LISTENER_SCAN3=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN3))))          # line added by Agent
    LISTENER_SCAN2=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN2))))          # line added by Agent
    LISTENER_SCAN1=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1))))          # line added by Agent
    ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN1=ON          # line added by Agent
    ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN2=ON          # line added by Agent
    ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN3=ON          # line added by Agent
    ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER=ON          # line added by Agent
    I can not connect to the OracleRAC server from client. Please help me.
    Thanks

    I started the database. still have the same problem on tnsping.
    I am not clear what is the correct procedure to configure TAF on client side or server.
    I added a service for TAF on the server node1:
    >srvctl add service -d ORCL -s NLQA -q TRUE -m BASIC –P BASIC -e SELECT -r orcl1 -z 180 -w 5 -j LONG
    >srvctl add service -d ORCL -s NLQA –u -r orcl2
    >srvctl start service -d ORCL -s NLQA
    Also, I modified the tnsnames.ora file on server and client(both are same copy) as shown on my first question page.
    question1: I want to support client side failover with TAF, DO I need both as shown above? any more change or addition?
    question2: To support server side failover, shouldn't I modify tnsnames.ora on server side then copy it to the client side?
    Also, what should I add or provide more?
    question3: My client application could not handle FAN(any failover feature: we do not want to change on any client code),
    Could we support the client side TAF with JDBC-OCI and tnsnames.ora? we have been using JDBC thin driver.
    Here are new information after I started the database:
    C:\Users\administrator.QAPF2>lsnrctl status
    LSNRCTL for 64-bit Windows: Version 11.2.0.3.0 - Production on 17-APR-2012 10:14
    :00
    Copyright (c) 1991, 2011, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 64-bit Windows: Version 11.2.0.3.0 - Produ
    ction
    Start Date 16-APR-2012 16:59:19
    Uptime 0 days 17 hr. 14 min. 41 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File C:\app\11.2.0\grid\network\admin\listener.ora
    Listener Log File C:\app\11.2.0\grid\log\diag\tnslsnr\orarac1\listener\a
    lert\log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\LISTENERipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.23.57.31)(PORT=1521)))
    Services Summary...
    Service "NLQA.qapf2.qalab01.nextlabs.com" has 1 instance(s).
    Instance "orcl1", status READY, has 1 handler(s) for this service...
    Service "orcl.qapf2.qalab01.nextlabs.com" has 1 instance(s).
    Instance "orcl1", status READY, has 1 handler(s) for this service...
    Service "orclXDB.qapf2.qalab01.nextlabs.com" has 1 instance(s).
    Instance "orcl1", status READY, has 1 handler(s) for this service...
    The command completed successfully
    C:\Users\administrator.QAPF2>lsnrctl service
    LSNRCTL for 64-bit Windows: Version 11.2.0.3.0 - Production on 17-APR-2012 10:16
    :40
    Copyright (c) 1991, 2011, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))
    Services Summary...
    Service "NLQA.qapf2.qalab01.nextlabs.com" has 1 instance(s).
    Instance "orcl1", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:22 refused:0 state:ready
    LOCAL SERVER
    Service "orcl.qapf2.qalab01.nextlabs.com" has 1 instance(s).
    Instance "orcl1", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:22 refused:0 state:ready
    LOCAL SERVER
    Service "orclXDB.qapf2.qalab01.nextlabs.com" has 1 instance(s).
    Instance "orcl1", status READY, has 1 handler(s) for this service...
    Handler(s):
    "D000" established:0 refused:0 current:0 max:1022 state:ready
    DISPATCHER <machine: ORARAC1, pid: 5724>
    (ADDRESS=(PROTOCOL=tcp)(HOST=orarac1.qapf2.qalab01.nextlabs.com)(PORT=6
    4895))
    The command completed successfully

  • Tnsnames.ora file does not seem to load in SQL Developer

    I've really tried my best to figure this out on my own ... through the Help, this forum, and Internet in general. I apoligize in advance for having to ask this, since I'm sure this is a common issue. This particular form entry was really close:
    Database Connections will not load tnsnames.ora
    But, I just can seem to figure out why, or where entries from my tnsnames.ora file are loading into SQL Developer.
    - I have the TNS_ADMIN system environment variable defined to the directory where tnsnames.ora is stored - C:\oracle\product\10.2.0\client_1\NETWORK\ADMIN.
    - I do not see a TNS tab as the forum entry above indicates anywhere in SQL Developer - This may be my problem.
    It seems that this issue could be cleared up with better directions on how to import tnsnames.ora entries into SQL Developer. Is there any specific direction on how to get your tnsnames.ora file setup correctly with SQL Developer running on Windows XP - Besides the Help which mentions the setup of TNS_ADMIN, but doesn't really tell you what the expected result is, or where the entries will be, or how to verify this is working?
    Any help would be most appreciated.
    Thanks,
    Dave
    Below is the export from the About box in SQL Developer:
    About
    Oracle SQL Developer 1.5.1
    Version 1.5.1
    Build MAIN-5440
    Copyright © 2005,2008 Oracle. All Rights Reserved.
    IDE Version: 11.1.1.0.22.49.42
    Product ID: oracle.sqldeveloper
    Product Version: 11.1.1.54.40
    Version
    Component Version
    ========= =======
    CVS Version Internal to Oracle SQL Developer (client-only)
    Java(TM) Platform 1.6.0_07
    Oracle IDE 1.5.1.54.40
    Versioning Support 1.5.1.54.40
    Properties
    Name Value
    ==== =====
    apple.laf.useScreenMenuBar true
    awt.toolkit sun.awt.windows.WToolkit
    class.load.environment oracle.ide.boot.IdeClassLoadEnvironment
    class.load.log.level CONFIG
    class.transfer delegate
    com.apple.macos.smallTabs true
    com.apple.mrj.application.apple.menu.about.name "SQL_Developer"
    com.apple.mrj.application.growbox.intrudes false
    file.encoding Cp1252
    file.encoding.pkg sun.io
    file.separator \
    http.agent Mozilla/5.0 (Java 1.6.0_07; Windows XP 5.1 x86; en_US) ICEbrowser/v6_1_3
    ice.browser.forcegc false
    ice.pilots.html4.ignoreNonGenericFonts true
    ice.pilots.html4.tileOptThreshold 0
    ide.AssertTracingDisabled true
    ide.bootstrap.start 1628689279134099
    ide.build MAIN-5440
    ide.conf C:\sqldeveloper\sqldeveloper\bin\sqldeveloper.conf
    ide.config_pathname C:\sqldeveloper\sqldeveloper\bin\sqldeveloper.conf
    ide.debugbuild false
    ide.devbuild false
    ide.extension.search.path sqldeveloper/extensions:jdev/extensions:ide/extensions
    ide.firstrun true
    ide.java.minversion 1.5.0
    ide.launcherProcessId 5580
    ide.main.class oracle.ide.boot.IdeLauncher
    ide.patches.dir ide/lib/patches
    ide.pref.dir C:\Documents and Settings\X626730\Application Data\SQL Developer
    ide.pref.dir.base C:\Documents and Settings\X626730\Application Data
    ide.product oracle.sqldeveloper
    ide.shell.enableFileTypeAssociation C:\sqldeveloper\sqldeveloper.exe
    ide.splash.screen splash.gif
    ide.startingArg0 C:\sqldeveloper\sqldeveloper.exe
    ide.startingcwd C:\sqldeveloper\sqldeveloper\bin
    ide.user.dir C:\Documents and Settings\X626730\Application Data\SQL Developer
    ide.user.dir.var IDE_USER_DIR
    ide.work.dir C:\Documents and Settings\X626730\My Documents\SQL Developer
    ide.work.dir.base C:\Documents and Settings\X626730\My Documents
    java.awt.graphicsenv sun.awt.Win32GraphicsEnvironment
    java.awt.printerjob sun.awt.windows.WPrinterJob
    java.class.path ..\..\ide\lib\ide-boot.jar
    java.class.version 50.0
    java.endorsed.dirs C:\Program Files\Java\jdk1.6.0_07\jre\lib\endorsed
    java.ext.dirs C:\Program Files\Java\jdk1.6.0_07\jre\lib\ext;C:\WINDOWS\Sun\Java\lib\ext
    java.home C:\Program Files\Java\jdk1.6.0_07\jre
    java.io.tmpdir C:\DOCUME~1\X626730\LOCALS~1\Temp\
    java.library.path C:\sqldeveloper;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\PROGRA~1\IBM\WEBSPH~2\BIN\DB2;C:\PROGRA~1\IBM\WEBSPH~2\BIN\MQClient;C:\PROGRA~1\IBM\WEBSPH~2\BIN;C:\IBM\WebSphere MQ Client\Java\lib;C:\Program Files\CA\SharedComponents\PEC\bin;C:\oracle\product\10.2.0\client_1\bin;C:\oracle\ora92\bin;C:\oracle\product\10.2.0\client_2\bin;C:\Perl\bin\;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\Program Files\CA\PEC\bin;C:\Reuters\Plus;C:\Reuters\Plus\COMLOGIN;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Compuware\Common;C:\Program Files\Common Files\Compuware;C:\Program Files\CA\AllFusion Harvest Change Manager;C:\Program Files\SecureCRT\;C:\PROGRA~1\F-Secure\Ssh;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;c:\Program files\1E\SMSNomad\;C:\j2sdk1.4.2_06\jre\bin;C:\Program Files\IDM Computer Solutions\UltraEdit-32;C:\Program Files\IBM\Installation Manager\eclipse\lib;C:\Program Files\CA\Cryptography\;C:\Program Files\CA\R71\AllFusion Harvest Change Manager;C:\IBM\WebSphere MQ Client\bin;C:\IBM\WebSphere MQ Client\tools\c\samples\bin;C:\PROGRA~1\IBM\SQLLIB\BIN;C:\PROGRA~1\IBM\SQLLIB\FUNCTION;C:\PROGRA~1\IBM\SQLLIB\SAMPLES\REPL
    java.naming.factory.initial oracle.javatools.jndi.LocalInitialContextFactory
    java.runtime.name Java(TM) SE Runtime Environment
    java.runtime.version 1.6.0_07-b06
    java.specification.name Java Platform API Specification
    java.specification.vendor Sun Microsystems Inc.
    java.specification.version 1.6
    java.util.logging.config.file logging.conf
    java.vendor Sun Microsystems Inc.
    java.vendor.url http://java.sun.com/
    java.vendor.url.bug http://java.sun.com/cgi-bin/bugreport.cgi
    java.version 1.6.0_07
    java.vm.info mixed mode
    java.vm.name Java HotSpot(TM) Client VM
    java.vm.specification.name Java Virtual Machine Specification
    java.vm.specification.vendor Sun Microsystems Inc.
    java.vm.specification.version 1.0
    java.vm.vendor Sun Microsystems Inc.
    java.vm.version 10.0-b23
    jdbc.driver.home /C:/oracle/product/10.2.0/client_1/
    jdbc.library /C:/oracle/product/10.2.0/client_1/jdbc/lib/ojdbc14.jar
    line.separator \r\n
    oracle.home C:\sqldeveloper
    oracle.ide.util.AddinPolicyUtils.OVERRIDE_FLAG true
    oracle.translated.locales de,es,fr,it,ja,ko,pt_BR,zh_CN,zh_TW
    oracle.xdkjava.compatibility.version 9.0.4
    orai18n.library /C:/oracle/product/10.2.0/client_1/jlib/orai18n.jar
    os.arch x86
    os.name Windows XP
    os.version 5.1
    path.separator ;
    reserved_filenames con,aux,prn,lpt1,lpt2,lpt3,lpt4,lpt5,lpt6,lpt7,lpt8,lpt9,com1,com2,com3,com4,com5,com6,com7,com8,com9,conin$,conout,conout$
    sun.arch.data.model 32
    sun.boot.class.path C:\Program Files\Java\jdk1.6.0_07\jre\lib\resources.jar;C:\Program Files\Java\jdk1.6.0_07\jre\lib\rt.jar;C:\Program Files\Java\jdk1.6.0_07\jre\lib\sunrsasign.jar;C:\Program Files\Java\jdk1.6.0_07\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.6.0_07\jre\lib\jce.jar;C:\Program Files\Java\jdk1.6.0_07\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.6.0_07\jre\classes
    sun.boot.library.path C:\Program Files\Java\jdk1.6.0_07\jre\bin
    sun.cpu.endian little
    sun.cpu.isalist
    sun.desktop windows
    sun.io.unicode.encoding UnicodeLittle
    sun.java2d.ddoffscreen false
    sun.jnu.encoding Cp1252
    sun.management.compiler HotSpot Client Compiler
    sun.os.patch.level Service Pack 2
    user.country US
    user.dir C:\sqldeveloper\sqldeveloper\bin
    user.home C:\Documents and Settings\X626730
    user.language en
    user.name a641421
    user.timezone America/New_York
    user.variant
    windows.shell.font.languages
    Extensions
    Name Identifier Version Status
    ==== ========== ======= ======
    Check For Updates oracle.ide.webupdate 11.1.1.0.22.49.42 Loaded
    Code Editor oracle.ide.ceditor 11.1.1.0.22.49.42 Loaded
    Database Connection Support oracle.jdeveloper.db.connection 11.1.1.0.22.49.42 Loaded
    Database Object Explorers oracle.ide.db.explorer 11.1.1.0.22.49.42 Loaded
    Database UI oracle.ide.db 11.1.1.0.22.49.42 Loaded
    Diff/Merge oracle.ide.diffmerge 11.1.1.0.22.49.42 Loaded
    Extended IDE Platform oracle.javacore 11.1.1.0.22.49.42 Loaded
    External Tools oracle.ide.externaltools 11.1.1.0.22.49.42 Loaded
    Feedback oracle.ide.feedback 11.1.1.0.22.49.42 Loaded
    File Support oracle.ide.files 11.1.1.0.22.49.42 Loaded
    File System Navigator oracle.sqldeveloper.filenavigator 11.1.1.54.40 Loaded
    Help System oracle.ide.help 11.1.1.0.22.49.42 Loaded
    History Support oracle.jdeveloper.history 11.1.1.0.22.49.42 Loaded
    Import/Export Support oracle.ide.importexport 11.1.1.0.22.49.42 Loaded
    Log Window oracle.ide.log 11.1.1.0.22.49.42 Loaded
    Mac OS X Adapter oracle.ideimpl.apple 11.1.1.0.22.49.42 Loaded
    Navigator oracle.ide.navigator 11.1.1.0.22.49.42 Loaded
    Object Gallery oracle.ide.gallery 11.1.1.0.22.49.42 Loaded
    Object Viewer oracle.sqldeveloper.oviewer 11.1.1.54.40 Loaded
    Oracle IDE oracle.ide 11.1.1.0.22.49.42 Loaded
    Oracle Microsoft Access Browser oracle.sqldeveloper.thirdparty.access 11.1.1.54.40 Loaded
    Oracle Migration Workbench oracle.sqldeveloper.migration 11.1.1.54.40 Loaded
    Oracle Migration Workbench - MS Access oracle.sqldeveloper.migration.msaccess 11.1.1.54.40 Loaded
    Oracle Migration Workbench - MySQL oracle.sqldeveloper.migration.mysql5 11.1.1.54.40 Loaded
    Oracle Migration Workbench - SQLServer oracle.sqldeveloper.migration.sqlserver2005 11.1.1.54.40 Loaded
    Oracle Migration Workbench - Translation Core oracle.sqldeveloper.migration.translation.core 11.1.1.54.40 Loaded
    Oracle Migration Workbench - Translation MS Access oracle.sqldeveloper.migration.translation.msaccess 11.1.1.54.40 Loaded
    Oracle Migration Workbench - Translation MS SQL Server oracle.sqldeveloper.migration.translation.sqlserver 11.1.1.54.40 Loaded
    Oracle Migration Workbench - Translation MySQL oracle.sqldeveloper.migration.translation.mysql 11.1.1.54.40 Loaded
    Oracle Migration Workbench - Translation Sybase oracle.sqldeveloper.migration.translation.sybase 11.1.1.54.40 Loaded
    Oracle Migration Workbench - Translation UI oracle.sqldeveloper.migration.translation.gui 11.1.1.54.40 Loaded
    Oracle MySQL Browser oracle.sqldeveloper.thirdparty.mysql 11.1.1.54.40 Loaded
    Oracle SQL Developer oracle.sqldeveloper 11.1.1.54.40 Loaded
    Oracle SQL Developer Extras oracle.sqldeveloper.extras 11.1.1.54.40 Loaded
    Oracle SQL Developer Reports oracle.sqldeveloper.report 11.1.1.54.40 Loaded
    Oracle SQL Developer SearchBar oracle.sqldeveloper.searchbar 11.1.1.54.40 Loaded
    Oracle SQL Developer TimesTen oracle.sqldeveloper.timesten 1.5.1.1.2 Loaded
    Oracle SQL Server Browser oracle.sqldeveloper.thirdparty.sqlserver 11.1.1.54.40 Loaded
    Oracle Sybase Browser oracle.sqldeveloper.thirdparty.sybase 1.2.1.54.40 Loaded
    Oracle XML Schema Support oracle.sqldeveloper.xmlschema 11.1.1.54.40 Loaded
    PROBE Debugger oracle.jdeveloper.db.debug.probe 11.1.1.0.22.49.42 Loaded
    Peek oracle.ide.peek 1.0 Loaded
    Replace With oracle.ide.replace 11.1.1.0.22.49.42 Loaded
    Runner oracle.ide.runner 11.1.1.0.22.49.42 Loaded
    SQL Worksheet Window oracle.sqldeveloper.sqlworksheet 11.1.1.54.40 Loaded
    Search Bar oracle.ide.searchbar 11.1.1.0.0 Loaded
    Snippet Window oracle.sqldeveloper.snippet 11.1.1.54.40 Loaded
    Sybase 12 oracle.sqldeveloper.migration.sybase12 11.1.1.54.40 Loaded
    Sybase 15 oracle.sqldeveloper.migration.sybase15 11.1.1.54.40 Loaded
    Tuning oracle.sqldeveloper.tuning 11.1.1.54.40 Loaded
    VHV oracle.ide.vhv 11.1.1.0.22.49.42 Loaded
    Versioning Support oracle.jdeveloper.vcs 11.1.1.0.22.49.42 Loaded
    Versioning Support for CVS oracle.jdeveloper.cvs 11.1.1.0.22.49.42 Loaded
    Versioning Support for Subversion oracle.jdeveloper.subversion 11.1.1.0.22.49.42 Loaded
    Web Browser and Proxy oracle.ide.webbrowser 11.1.1.0.22.49.42 Loaded
    oracle.ide.dependency oracle.ide.dependency 11.1.1.0.22.49.42 Loaded
    oracle.ide.indexing oracle.ide.indexing 11.1.1.0.22.49.42 Loaded

    Using Windows XP/Vista...
    After testing in our environment, it appears that SQL Developer 1.5.1 (5440) does in fact ignore the TNS_ADMIN environment variable and ONLY looks in the Oracle Home directory (network/admin). We define a central network location for our tnsnames file and have the tns_admin setup to point there instead of locally for our users.
    When selecting to add a new connection (in 1.5.1, it works in previously releases... meaning 1.2.something) and selecting TNS, the drop-down remains empty. However, if I exit SQL Developer and then copy the tnsnames file to the local network/admin directory I can then re-launch SQL Developer and the drop-down is populated. Exiting SQL Developer again, deleting the local copy of tnsnames, and then launching SQL Developer yet again results in the drop-down being empty.
    All other Oracle-related applications function as expected (as they have for years) using the TNS_ADMIN environment variable.
    Any suggestions/ideas?

  • How to deactivate an entry in tnsnames.ora file

    Hi all,
    I am working with Oracle 10g enterprise edition. I have a data source named with DEVDATA which should not be affected while I am working on my project. Usually, I will add DEVDATA entry in tnsname.ora file if I want to use it and I will remove that entry from tnsnames.ora file in order to protect that data source. It is very laborious process each time when I want to add or remove that entry. Do we have any mean such a way that I can switch between the two options. Currently, I have a desktop shortcut to tnsnames.ora file so that I can add or remove that entry when ever I want. Can we comment out that entry. Please suggest me.
    I hope this is the right place to fire this question. If not, direct me. Thanks in advance.
    Regards,
    Kumar.

    [email protected] wrote:
    Hi all,
    Thanks for your replays. As you said we can comment out lines with '#'. But, I am looking for commenting whole entry at a time. Can any one tell me how to comment out whole entry/paragraph. Is there any oracle utility by which we can deactivate the data source. Please suggest. Thank you.
    Regards,
    Kumar.As others have said, either comment out each line of the entry, or have two tnsnames files that you rename as needed. But really, how often do you make the swap that commenting/uncommenting about five lines of code is such a burden?

  • SQL Dev 3.0.04 cannot locate TNSNAMES.ora file after Oracle11g XE Beta

    Hello,
    I had Oracle Developer Suite (Reports, Forms) installed on Windows 7 32 bit along with SQL Developer 3.0.04 (latest prod. build) and everything was working just fine.
    Then, I installed Oracle 11g XE Beta database and now, all the existing Connections in SQL Developer give an error "Invalid connection information specified. Verify the URL format for the specified driver."
    I thought since 11gXE was the latest Oracle software installed, the Path environment variable in Windows will have the Oracle 11gXE as the leading path string. So, I cut this leading string : C:\Oracle\Oracle11gXE\product\11.1.0\db_1\bin and appended it at the very end.
    This means that the Path that existed prior to the 11gXE install is now the leading and hence SQL Developer should be reading the TNSNAMES.ora file from the very first Oracle Home encountered which is for the developer suite. But this does not seem to work.
    Any ideas how to fix this? How does SQL Developer determine which tnsnames file to use?
    Thanks,
    Manish

    Hi Manish,
    One place to control this is Tools|Preferences|Database|Advanced|Tnsnames Directory.
    Otherwise read the documentation in Help|Table of Contents|SQL Developer Concepts and Usage|Database Connections. The third paragraph contains a description of the various alternatives.
    Regards,
    Gary Graham
    SQL Developer Team
    Edited by: gggraham on Jul 18, 2011 2:52 PM

  • SQL Developer is not able to identify the Tnsnames.ora file

    Hi,
    I have installed the following in the laptop having Win XP:
    1) Oracle 10gR2 Client software in the D: drive of laptop. Tnsnames.ora is located in this clients Network\Admin path. This client is used to access the databases on the other servers.
    2) Oracle 10gR2 Database software in the E: drive of laptop. Right now there is not Tnsnames.ora file in this softwares Network\Admin path. This db software has been installed to create local databases in the laptop.
    3) Oracle SQL Developer Version 2.1.1.64 is also installed in C: drive of laptop.
    The problem which now I'm facing is that the SQL Developer is not able to identify the Tnsnames.ora file mentioned in the above point-1 which contains entries of databases on the different servers. Could you please help me out in solving this problem?
    Thanks in advance.
    MAK

    I forget what version I was using at the time, but when I had an ORACLE_HOME defined for the environment and TNSNAMES file defined in SQL Developer (different one than was in ORACLE_HOME), that I would see results from both tns files. I don't know if that is still the case. I have since dropped my ORACLE_HOME environmental variable.

  • "tnsnames.ora" file & ODBC driver

    It seems ODBC drivers do not need TNS listeners!
    I need to find out how ODBC drivers determine the path of "tnsnames.ora" file!
    (I have many Oracle installations on my machine.)
    null

    I believe that the ODBC driver will use the tnsnames file in the primary Oracle home. You can use the Oracle home selector to select your primary home.
    Note that, at the moment, the Oracle ODBC driver is supported only when installed in a single Oracle home on a machine.
    Justin Cave

Maybe you are looking for

  • WLAN keeps disconnecting on N8

    I now have a new problem with my Nokia N8. When i'm connected to my WLAN netwrok, it keeps disconnecting and reconnecting. I've reset my router several times. but it keeps doing it. It happends when i use the Dukto App and when I download files onto

  • Hi! pls help date functions

    hi! i have problem in date functions in java! 1. if i give input date format is dd/mm/yyyyy (or) yyyy/mm/dd (or) mm/dd/yyyy? the result must be display dd/mm/yyyy only? pls help me! thanks and regadrs senthilraj

  • REUSE ALV -- To make a row grey out (disable/non-editable) dynamically!!!

    Hello All, Well again a quick question... Am using REUSE ALV method to display the ALV report. There are few fields which i've made editable while building the field catalog! Now by, Dynamically by selecting a row in the list (using the checkbox) and

  • Fixing audio sync without re-compressing

    I wasn't sure which forum to post this in since this isn't really an iMovie question, but I figured this would be the best place. I have an .avi file where the audio is a little bit out of sync. What I want to do is sync the audio back up and save th

  • Groupwise 8.02 hp1 post office not startin

    We have a problem after rebooting groupwise the post office agent is not starting. Is there something I can look at to trouble shoot why. we are running on suse 10 sp2 oes 2 sp1 thanks!