Parameters of tnsnames.ora

hello. i am new in oracle 10g and i want to take advice. i see the setting parameters of tnsnames.ora on Oracle Net Manager and i set the tnsnames.ora with it.
i developed a client application working with remote oracle 10g database on windows platforms. i developet it on VisualStudio, this application can work with both ms sql and oracle 10g. the user chooses it. when the user chooses Oracle i must create connection string and connect to the remote db.
i can implement it with two way
1. i want only connection name which is defined in tnsnames.ora and connect over it.
2. i make an interface user set the simple and advanced settings of connection parameters and i can insert them into connection string.
which way should i use. i think that it is better to set all of parameters in my application because it will be easier for user. but i think about the future versions of oracle . there may be problems on them.
what do you advice me?
thanks.

Hello user "user518019":
I'm also new in the Oracle world but I have programming since a lot of years. I would recommend to you following a simple rule:
if your applicattion is very simple you must follow the simple way to connect to DB.
By using a "tnsnames.ora" you only need to know a DB name to connect to it. In the other hand, if your are using non-default ports o also like this (per example, a more complicated enviroment) you would need a more detailed box to especify address, port number, service name, etc, etc...
I suppose Oracle will continue using "tnsnames.ora" a lot of years, but this is only a impression. I hope send you some help with this.

Similar Messages

  • Tnsping can't read tnsnames.ora  TNS-12533: TNS:illegal ADDRESS parameters

    Here's my tnsnames.ora. tnsping thinks it's illegal:
    acsplan =
    (DESCRIPTION=ACSPLAN
    (ADDRESS_LIST =
              (ADDRESS=(PROTOCOL=tcp)(HOST=10.101.205.166)(PORT=1521))
    (CONNECT_DATA=(SID=ACSPLAN))
    Why does tnsping think this is illegal?
    Thanks.
    Dean

    Dean Schulze wrote:
    Here's my tnsnames.ora. tnsping thinks it's illegal:
    acsplan =
    (DESCRIPTION=ACSPLAN
    (ADDRESS_LIST =
              (ADDRESS=(PROTOCOL=tcp)(HOST=10.101.205.166)(PORT=1521))
    (CONNECT_DATA=(SID=ACSPLAN))
    Why does tnsping think this is illegal?Does this work?
    acsplan  =
       (DESCRIPTION=
         (ADDRESS_LIST =
              (ADDRESS=(PROTOCOL=tcp)(HOST=10.101.205.166)(PORT=1521))
         (CONNECT_DATA=(SID=ACSPLAN))
       )

  • How to configure the client tnsnames.ora parameters with a MTS Server

    i have modified init.ora and start my oracle
    as a MTS instance.
    my client tnsnames.ora is the dedicate server
    model.
    how can i modify it and my clent can use
    MTS server.
    null

    Hi,
    I dont think u will have to configure anything seperatley on the tnsnames.ora file to connect to a MTS Database.
    I Hope i am right.
    Regards,
    Ganesh R

  • EM doesn't allow creation of tnsnames.ora entry with service name orcl11gr2

    Dear all,
    I'm trying to create a net service name with EM Database Control, via Net Services Administration link. On the service name field, under the 'Edit Net Service Name' screen, I key in orcl11gr2, and it throws the the following error:
    Validation Error
    Examine and correct the following errors, then retry the operation:
    Service Name - Specify a valid service name.
    I wonder what is the extra validation that EM is checking. I assume it's checking the number of characters to be 8 characters or less.
    Also, because of this extra validation that is in EM, all tnsnames.ora entry that have service name = orcl11gr2, I will not be able to use EM to modify them, as I will get the same above error.
    But why does Oracle implements this extra validation, when the same validation is not implemented on other Oracle tools? For instance:
    1. dbca allows me to create a database with instance_name greater than 8 characters, and the outcome of initialization parameters will be as follow:
    db_name=orcl11gr -- truncated to 8 characters
    instance_name=orcl11gr2
    db_unique_name=orcl11gr2
    service_names=orcl11gr2
    2. Oracle Net Manager supports service name of orcl11gr2. The created Net Service Name, I have no problem connecting to the database.
    3. Listener support orcl11gr2 service name
    I'm using Oracle 11g R2 (11.2.0.1.0) for Microsoft Windows (x64), running on Windows 7.

    For your reference, here is the bug numbner: 10278345.
    -Mughees

  • ORA-12545 error after changing the host name as IP address in Tnsnames.ora

    HI,
    I tried to connect PHP and oracle in Red Hat linux. I got error ORA-12545 after changing the host name as IPAddress in Tnsnames.ora file. In sqlnet.ora file also i have entry for tnsnames in Directory_Path. I struggled so much but i couldnt solve that. Please give me ur valuable suggestions....

    12545, 00000, "Connect failed because target host or object does not exist"
    // *Cause: The address specified is not valid, or the program being
    // connected to does not exist.
    // *Action: Ensure the ADDRESS parameters have been entered correctly; the
    // most likely incorrect parameter is the node name. Ensure that the
    // executable for the server exists (perhaps "oracle" is missing.)
    // If the protocol is TCP/IP, edit the TNSNAMES.ORA file to change the
    // host name to a numeric IP address and try again.
    Seems you specified wrong IP address.

  • How to define a DSN without using a tnsnames.ora on the PC client machine

    Hi,
    Client : Windows XP with Oracle9i ODBC driver
    Server : Oracle 10 on Solaris
    I need to define a DSN which does not rely on tnsnames.ora on the client machine.
    I tried to use a file dsn, but without success, because I don't know the parameters to use.
    I used these params in the file.dsn :
    [ODBC]
    DRIVER=Oracle9i ODBC Driver
    UID=testuser
    PWD=testpw
    SERVER=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=myhost)(PORT=9999))(CONNECT_DATA=(SERVICE_NAME=testSID)))
    It does not work ....

    Hrm, interesting. It always used to be DBQ but it seems it might have changed to SERVER at some point.
    Anyway, I tried this and it worked fine for me (using 10204)
    TESTFILE.DSN
    ================
    [ODBC]
    DRIVER=Oracle in OraDb10g_home1
    server=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=gdarling-pc2)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl)))
    TEST.VBS
    ==========
    set con = createobject("adodb.connection")
    con.open "filedsn=testfile;uid=scott;pwd=tiger;"
    set rs = createobject("adodb.recordset")
    rs.open "select user from dual",con
    msgbox rs.fields(0).value
    Note also that unless you really want to create a file dsn, you could also just use a dsnless connection string and pass that directly too:
    set con = createobject("adodb.connection")
    con.open "driver={Oracle in OraDb10g_home1};uid=scott;pwd=tiger;server=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=gdarling-pc2)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl)))"
    set rs = createobject("adodb.recordset")
    rs.open "select user from dual",con
    msgbox rs.fields(0).value
    Hope it helps,
    Greg

  • Basic questions about tnsnames.ora

    I think I am quite confused about tnsnames.ora file (this is about release 9.2).
    - I was told that a tnsnames.ora file is only necessary in the server side when you need to connect to a different remote database, but if I do not have any entry in my server tnsnames.ora then, how can the listener know which services it has to listen to?
    - I do not understand what "Dynamic service registration" is and how it can be used.
    Sorry if the level of these questions is too low for this forum, but I have not found clear answers for them.

    - The listener knows which services it has to listen
    for by
    static registration --> the database definition is in
    listener.ora
    dynamic registration --> the PMON process of the
    database registers itself with the listener,
    submitting the service_name parameter from the spfile
    | init.ora
    Tnsnames.ora is a client thingy, when connecting to
    a remote database, the local database is a client
    for the remote database.
    Hth
    Sybrand Bakker
    Senior Oracle DBAThank you for the answer.
    I made a wrong conclusion, my situation is this (there are 2 database instances in one server and the listener.ora has no list of services, so I must assume both instances are registered dynamically, am I wrong?):
    I wrongly thought that the tnsnames.ora played some role in the server side because after restarting the listener I commented the entries in the server tnsnames.ora and the listener had no service registered, then I uncommented those entries and I saw that then the listener had those services registered. I guess that what it actually happened is that it takes a little time for the listener to register dynamically after it is restarted, can it be the case?
    I have read both init.ora files but I cannot see what parameter is set to register dynamically, maybe it is only defined at spfile level. Can someone tell me what parameters must I look for?
    One more question. I have been asked if a database must be restarted to work ok when the server ip is changed (I suppose it is done without shutting the server down). Does someone know? Should the listener also be rebooted?
    Thanks again.

  • Odd issue in tnsnames.ora

    Hi guys,
    In my tnsnames.ora, there's a section as below:
    # Production
    QDBSP =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = qdb.lipt.com)(PORT = 1521))
        (CONNECT_DATA =
          (SERVICE_NAME = qdb.amers.ime.tes.com)
          (SERVER = DEDICATED)
      )it works perfect, but after i changed local name QDBSP to QDBSP2, when I try to connect to it via sqlplus, I get this:
    ORA-12545: Connect failed because target host or object does not existwhen i change it back to QDBSP, it works, change to QDBSP2, fail again....
    has anyone been in the same situation? or any clues?
    many thanks.

    Hi,
    ORA-12545: Connect failed because target host or object does not existplease post the below output
    ping qdb.lipt.comit seems mentioned hostname is unreachable.
    ORA-12545:
         Connect failed because target host or object does not exist
    Cause:      The address specified is not valid, or the program being connected to does not exist.
    Action:      Ensure the ADDRESS parameters have been entered correctly; the most likely incorrect parameter is the node name. Ensure that the executable for the server exists (perhaps "oracle" is missing.) If the protocol is TCP/IP, edit the TNSNAMES.ORA file to change the host name to a numeric IP address and try again.

  • How to recover TNSNAMES.ORA file

    Hi, im using Oracle 8i 8.16 database running on win2k server. Im getting a an error whenever i try to connect to the databese using the DBA Studio program - the error was "ORA-12154:TNS:Could Not resolve service name". I noticed that the TNSNAMES.ORA file is blank in the home directory of Oracle8i, anyone knows how to recover the file?.
    Thanks
    regards
    Muraly

    Hi Friend,
    Thanks alot for ur reply, i tried the solution u gave in ur reply and i manage to get some parameters setting in my tnsnames.ora file - the content of it was
    as follows :
    # TNSNAMES.ORA Network Configuration File: C:\Oracle\Ora81\NETWORK\ADMIN\tnsnames.ora
    # Generated by Oracle configuration tools.
    COGENT =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = cogent-w2ksvr)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = cogent)
    but then i keep getting the same error message.
    I notice that the Oracle service (undet the NT services) OracleOraHome81ManagementServer does not get started - when i try to manually start it up - NT return error saying its not startable due to windows error or application error.
    The following is my setting from net8 assistant.
    Service Naming
    ---- Service Identification ----
    Service name = cogent
    SID = ""
    connection type = Database Default
    Address Config
    Protocol = TCP/IP
    Hostname = cogent-w2ksvr
    Port Number = 1521
    My domain name is cogentconsulting.com
    My Full computer name is cogent-w2ksvr.cogentconsulting.com
    I really appreciate your help in this.
    thanks and regards
    Muraly
    null

  • Tnsnames.ora error when installing oracle 9i developer suite

    Hi,
    Can anyone answer this question: I recently installed
    oracle 9i and i'm getting a tnsnames.ora error when connecting to the database. Can anyone tell me what parameters to modify in the tnsnames.ora and sqlnet.ora files and what values to put in these parameters. Also,
    i'm trying to create a net_service_name in oracle net manager(in configuration/management tools) and I can't figure out the service name for versions of Oracle 8i or later. Can someone tell me what this is because the program is asking for a service name. I need this info
    for connecting to the database by username/password@net_service_name. Please respond soon.
    Thank you.
    T. Patel

    Go Net8Assistant. Follow the tree Net8Config ->Local -> Service Naming. In this node you will find all instances set (SIDs) and by clicking on them you will see in the right hand part of the screen if they were set or not in tnsnames.ora.
    Another way: Usually the database service name is OracleServiceSID. Go Control Panel -> Administrative Tools -> Services and check out the Oracle Service name. Take the SID from there to tnsnames.ora.
    You should have write down the name you was asked for while you were installing Oracle (or the default name that the installer put for you).
    Hope this will help you
    Alexandra

  • What should have in equal tnsnames,ora and listener.ora?

    Hi forum members again I'm very new in oracle, and I'm trying to create a sucessfull net service name, using oracle net configuration assitant, but when I try to test it I got this error, .***"""ORA-12514: TNS:listener does not currently know of service requested in connect descriptor."""*** And I have read that tnsnames.ora and listener.ora should have some parameters in common, but exactly I don't know, Do you know what parameters should be? or The ORA-12514 problem , doesn't have relation with the tnsnames.ora and listener files?, If doesn't wich is the reason of this message?
    By the way I put what contain these files:
    ---------------------------------------------------------------------------listener.ora
    # listener.ora Network Configuration File: /opt/oracle/product/10.1.0.3/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = oracle.gentoo)
    (ORACLE_HOME = /opt/oracle/product/10.1.0.3)
    (SID_NAME = oracle)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    SAVE_CONFIG_ON_STOP_LISTENER = TRUE
    TRACE_LEVEL_LISTENER = USER
    /////////////////////////////////////////////////////////////////////////////tnsnames.ora
    # tnsnames.ora Network Configuration File: /opt/oracle/product/10.1.0.3/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    NORACLE =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = tux)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = noracle)
    By the way what must be the username and the pasword that ask the ORACLE CONFIGURATION ASSINTANT to test the net service name? Must be the user name and password of the system user?
    Thanks in advance

    OK, here we go ... extra long as I intend to bookmark this and make reference, as this is a very common question ... skip to the bottom if you want my guess to the solution.
    Oracle Net Services (formerly SQL*Net, Net8, Oracle Networking) has two parts - the client and the server side. I'll discuss the server first, then the client.
    1) Server, and specifically Listener:
    The Oracle Listener is a monitor that listens for Oracle service requests on one or more ports. Usually this is on TCP/IP port 1521. When it gets an Oracle request from any network client, it checks whether it's in the list of Oracle Services for which it is monitoring. If found, it will contact that service, request a connection for the client, tell the service and client where and how to connect, and get itself out of the loop.
    Notes:
    a) It can listen on behalf of any number of services;
    b) A service can be a database instance, an EPG service (the DBMS_EPG is the replacement for Apache in the database in 10gR2), an external job, etc;
    c) One listener can listen on behalf of multiple database instances;
    d) The services can be listed in the LISTENER.ORA or they can self-register;
    e) If databases self-register, they use the initialization parameter LOCAL_LISTENER
    f) If self-registering, the listener should be up before the database
    g) Shutting down the listener will stop future connections, but has no impact on existing ones.
    One frequent point of confusion - a connection request on the local machine may loop out to the network and contact the listener, or it may bypass the listener entirely and use a bequeath adapter. The 'beq' connection is the 'normal' connection by "sqlplus / as sysdba" or "sqlplus system/manager" on the local machine (note that no @instance was used ... in *nix, that is derived from the $ORACLE_SID environment variable)
    In your listener.ora, you specify global_dbname=oracle.gentoo and sid_name=oracle. I assume therefore you can find an initoracle.ora or spfileoracle.ora somewhere on your system.
    2) Client:
    A client that wants to connect to an Oracle service uses the client side of the Oracle Net Services. The definition of client includes: any Oracle client utiltiy (SQLPlus, SQLLoad, Forms, Reports, etc.); an Oracle database instance that wants to make a external procedure call or a dblink; third party tools such as ODBC and JDBC.
    In SQL*Net version 1 the connection was made by specifying the target in the connect string ("user/password@host:listener_port:sid") and that is also used these days by many JDBC drivers, especially the Oracle Thin JDBC driver. Oracle's Easy connection mechanism uses a similar variant.
    Since SQL*Net Version 2, Oracle has supported the concept of alias translation. Basically it's very similar in concept to DNS - give it the name of the service and tell it where to find the translation table. The translation tables include TNSNAMES.ORA, ONAMES servers (deprecated in 10g), LDAP usng Oracle's OiD. The choice of translation table, and alternate order if the lookup fails in one, is stored in the SQLNET.ORA (if one exists).
    Assuming TNSNAMES.ORA, the chain of events is:
    - get the alias to look up (in your case NORACLE);
    - if the SQLNET.ORA has a DEFAULT_DOMAIN setting, (often =WORLD) append a dot and that value to the alias;
    - go to the TNANSMES.ORA file pointed by the TNS_ADMIN variable (environment or registry), or (if not set) the one in the $ORACLE_HOME/network/admin directory;
    - look up the first occurance of the alias;
    - if found, use the protocol specified to request a connection to the host, usin DNS to unravel the host to an IP address if necessary (in your case TCP/IP, to TUX) ;
    - if host connection if made, connect to the listener that is configured for that port (in your case 1521);
    - if listener is there, ask it for connection to the service (in your case, you are asking for instance 'noracle');
    i if the listener knowwss about the service, it will hand off the request.
    Your problem appears to be asking for instance 'noracle' in the tnsnames but listeneing for 'oracle' at the listener. Of course, I can not see any auto-registered instances which you would get from "lsnrctl status" on the server.

  • Description for tnsnames.ora

    hi..
    can you please tell me the meanings of the different parameters in a tnsnames.ora file...
    <Service_name> =
    ( DESCRIPTION =
    ( ADDRESS_LIST =
    ( ADDRESS = ( COMMUNITY = <community_name>)( PROTOCOL = TCP)(Host = <host_ip>)(Port = <port_no>))
    ( CONNECT_DATA =
    (SID = <sid name>)
    (SERVER = DEDICATED)
    I want to know the meaning s of the bold parameters...
    description, address_list, address, community, protocol, connect_data
    i am new in this line...please help..I have searched the net but didnt get any satisfied answer..
    Thanks a lot in advance..

    Hi ,
    Check the below link also:
    http://stackoverflow.com/questions/43866/how-sid-is-different-from-service-name-in-oracle-tnsnames-ora
    Best regards,
    Rafi.

  • Tnsnames.ora and listener.ora

    I am studying oracle and came accross
    tnsnames.ora and listener.ora file.
    Can any one tell me in simplified terms about these 2 files. what are they and what exactly they do?

    When you are accessing Oracle over network you need a listerner service (usually on server box) and SQLNet or Net8 client on client machine. Listener.ora specifies the parameters for listener process and tnsnames.ora contains the SQLNet or Net8 connection informations about database server(s)

  • Error in tnsnames.ora

    Hi,
    I have installed Oracle 10.2.0.1 and then created my listener and tnsnames using NETCA.I am getting the following error for tnsnames.ora.
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.102))(PORT = 1521)) (CONNECT_DATA = (SID = ora10g))
    TNS-12533: TNS:illegal ADDRESS parameters
    Listener does not give any error.I am including the tnsnames.ora and listener.ora files for your referral.I would appreciate if someone can help point out the error.
    Listener.ora
    # listener.ora Network Configuration File: F:\oracle\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    LISTENER10G =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.102)(PORT = 1521))
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    SID_LIST_LISTENER10G =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = F:\oracle)
    (PROGRAM = extproc)
    tnsnames.ora
    # tnsnames.ora Network Configuration File: F:\oracle\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    ORA10G =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.102))(PORT = 1521))
    (CONNECT_DATA =
    (SID = ora10g)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    where,ORA10G is my database name and LISTENER10G is the 10g listener name.
    Regards,
    Somd

    Anand,
    Here is the output....
    LSNRCTL> status LISTENER10G
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.102)(PORT=1521)))
    STATUS of the LISTENER
    Alias LISTENER10G
    Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production
    Start Date 13-MAR-2009 02:43:43
    Uptime 3 days 16 hr. 35 min. 52 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File F:\oracle\network\admin\listener.ora
    Listener Log File F:\oracle\network\log\listener10g.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.102)(PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC0ipc)))
    Services Summary...
    Service "ora10g" has 1 instance(s).
    Instance "ora10g", status READY, has 1 handler(s) for this service...
    Service "ora10gXDB" has 1 instance(s).
    Instance "ora10g", status READY, has 1 handler(s) for this service...
    Service "ora10g_XPT" has 1 instance(s).
    Instance "ora10g", status READY, has 1 handler(s) for this service...
    Service "oracle10g" has 1 instance(s).
    Instance "oracle10g", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    LSNRCTL> start LISTENER10G
    TNS-01106: Listener using listener name LISTENER10G has already been started
    LSNRCTL> exit
    C:\Users\Somd>tnsping ORA10G
    TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 16-MAR-2
    009 19:20:05
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Used parameter files:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.
    1.102))(PORT = 1521)) (CONNECT_DATA = (SID = ora10g))
    TNS-12533: TNS:illegal ADDRESS parameters
    Regards,
    Somd

  • Tnsnames.ora  is not working

    Hello,
    In my UAT envirnment we have 3 database on IBM AIX powerPC (64-bit) all are on 10.2.0.5.0
    My listener.ora and tnsnames.ora is at default location $ORACLE_HOME/network/admin/
    my listener is up
    $ lsnrctl status
    LSNRCTL for IBM/AIX RISC System/6000: Version 10.2.0.5.0 - Production on 04-MAR-2011 11:56:08
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for IBM/AIX RISC System/6000: Version 10.2.0.5.0 - Production
    Start Date 16-FEB-2011 18:51:16
    Uptime 15 days 17 hr. 4 min. 52 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /u01/app/oracle/product/10.2.0.1/db_1/network/admin/listener.ora
    Listener Log File /u01/app/oracle/product/10.2.0.1/db_1/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=172.16.8.17)(PORT=1521)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "preprod" has 1 instance(s).
    Instance "preprod", status UNKNOWN, has 1 handler(s) for this service...
    Service "uat" has 2 instance(s).
    Instance "uat", status UNKNOWN, has 1 handler(s) for this service...
    Instance "uat", status READY, has 1 handler(s) for this service...
    Service "uat_XPT" has 1 instance(s).
    Instance "uat", status READY, has 1 handler(s) for this service...
    Service "uattest" has 2 instance(s).
    Instance "uattest", status UNKNOWN, has 1 handler(s) for this service...
    Instance "uattest", status READY, has 1 handler(s) for this service...
    Service "uattest_XPT" has 1 instance(s).
    Instance "uattest", status READY, has 1 handler(s) for this service...
    The command completed successfully
    i can remotely connected to database but on the same server tnsping is showing following error
    $ tnsping UATTEST
    TNS Ping Utility for IBM/AIX RISC System/6000: Version 10.2.0.5.0 - Production on 04-MAR-2011 11:59:09
    Copyright (c) 1997, 2010, Oracle. All rights reserved.
    Used parameter files:
    /u01/app/oracle/product/10.2.0.1/db_1/network/admin/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.8.17)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = uat)))
    TNS-12535: TNS:operation timed out
    or some time
    ORA-12547: TNS: lost contact
    remotely all the users are connected to listener but on the same server the operation is failed
    I cant connect to other database using this tnsnames.ora file
    can any one help me
    regards
    Bhushan
    Edited by: user9176407 on Mar 3, 2011 10:38 PM

    user9176407 wrote:
    Thanks for the reply
    In My server 3 database are there there a database by service name uat also present there
    I check all the configuration the entries in my tnsnames.ora is as below
    PREPROD =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.8.17)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = preprod)
    UAT =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.8.17)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = uat)
    UATTEST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.8.17)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = uattest)
    conf_uat =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS =
    (PROTOCOL = TCP)
    (HOST = 172.16.8.17)
    (PORT = 1521)
    (CONNECT_DATA =
    (SERVICE_NAME = uat)
    (SID = uat)
    also my listner file entries are
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /u01/app/oracle/product/10.2.0.1/db_1)
    (PROGRAM = extproc)
    (SID_DESC =
    (SID_NAME = uat)
    (ORACLE_HOME = /u01/app/oracle/product/10.2.0.1/db_1)
    (SID_DESC =
    (SID_NAME = uattest)
    (ORACLE_HOME = /u01/app/oracle/product/10.2.0.1/db_1)
    (SID_DESC =
    (SID_NAME = preprod)
    (ORACLE_HOME = /u01/app/oracle/product/10.2.0.1/db_1)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.8.17)(PORT = 1521))
    Ok, for your listener.ora file, above you have the SID_LIST and the LISTENER sections. But what is this that follows, below?
    >
    uat =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.8.17)(PORT = 1528))
    SID_LIST_uat =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = configdb)
    (ORACLE_HOME = /u01/app/oracle/product/10.2.0.1/db_1)
    which is working file
    but i have an problem in my tnsname.ora file

Maybe you are looking for

  • Trying to modify SaveDocsAsSVG to open and save all files within a directory automatically

    I am trying to do as the title suggests, but I can't find a way to specify the folder I want the script to look at and I can't get it to open/save/close the files without user interaction. Another way to say it is that I need this to be itterative as

  • Oim 9.1.0.1 to active directory using ssl

    Hi, I am working on OIM 9.1.0.1 and AD IS on WIN2K3 R2. I successfully installed CA certificate in AD Server as given in AD Connector Document 9.1.0.1 given below. Configuring SSL for Microsoft Active Directory To configure SSL communication between

  • No data to refresh in BPC for Ecxel

    Hello, I created an input schedule and tested it by sending the data from BPC for Excel interface. It works fine. However, if I try to distribute the schedule as an offline document, collect the same after the user modifications and try to process it

  • Flexible Grouping

    I have a crystal report to convert in Webi. Universe build in ready. Is there a way to do flexible Grouping on the objects.Please find the screen shot of the crystal reports parameters http://www.forumtopics.com/busobj/viewtopic.php?p=770073#770073 I

  • Business partner is used

    Hi Friends, How to check whether  The given business partner number is still used in other transactions in CRM. In which table I can find these detail.  Can any one give some suggestions please. Thanks Shree