What configuration must define in tnsnames.ora

Dear all,

Need your help. I have zero knowledge in oracle. Now, I need to conenct to the Oracle database from my window via SQLPlus server, which configuration should I set in my tnsnames.ora? A or B?

Set A
PNTP =
(DESCRIPTION =
(LOAD_BALANCE = on)
(FAILOVER = on)
(ADDRESS_LIST =
(SOURCE_ROUTE = yes)
(ADDRESS = (PROTOCOL = TCP) (HOST = Hostname1)(PORT = 1521))
((ADDRESS = (PROTOCOL = TCP) (HOST = Hostname2)(PORT = 1521)))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = pntp)
)
)

Series B
PNTP =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = Hostname1)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP) (HOST = Hostname2)(PORT = 1521))
(LOAD_BALANCE = yes)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = pntp)
)
)
How can i make sure the pointer are D:\oracle\ora92\network\ADMIN and not another folder? Can check from "environment variables "? WHich part?

I suggest you go back to the documentation and reading.
Please look at the following:

http://download.oracle.com/docs/cd/B19306_01/install.102/b14312/post_install.htm#CHDBIHEE

Then, on each client computer, configure either of the following settings:

    *

      Set the TNS_ADMIN environment variable to specify the location of the tnsnames.ora file and specify a service name from that file.
    *

      Place the tnsnames.ora file in the ORACLE_BASE\ORACLE_HOME\network\admin directory, and make sure that the ORACLE_HOME environment has been set to this Oracle home.

Your tnsnames.ora file should contain the following, assuming that you have (n) number of nodes:

PNTP =
(DESCRIPTION =
(LOAD_BALANCE = on)
(ADDRESS_LIST=
(ADDRESS = (PROTOCOL = TCP)(HOST = Hostname1-vip)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = Hostname2-vip)(PORT = 1521))
.
.
.
(ADDRESS = (PROTOCOL = TCP)(HOST = Hostname(n)-vip)(PORT = 1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = pntp)
)
)

Please mark as useful and correct issues and close the thread as answered.

Kind regards.

Published by: user11150436 on March 21, 2011 08:54

Tags: Database

Similar Questions

  • What configuration must be changed to allow connections secured in Firefox 40.0.2?

    The Version of Firefox: labeled 40.0.2 to date;
    OS: Windows 7/64 bit (Home Premium);
    Banking site fails to connect to a site secured with a "Secure connection required" message
    Another site that uses simple htaccess to request password fails with the message "authorization required";
    Two of these sites open properly with Google Chrome;

    I lived the configuration options, and nothing seems to make any difference. Are there
    something that has changed in this new version that must be configured for that it works? I had
    no problems with this last week, likely before and automatic 'upgrade '.
    Thank you
    Steve

    It was good to hear.
    Please report your last post as solved while others will know.

  • Firefox on Fedora 22 in VirtualBox 5.0 running on Win7 does not properly scroll wheel. What configuration must be modified/checked?

    Recently updated Fedora from 21 to 22 using the utility fedup.

    It worked perfectly fine in Fedora 21.

    Scrolling with the wheel mouse works perfectly in the terminal and other browsers and LibreOffice. This isn't a question of operating system Linux.

    When you use the wheel to scroll, the page will bounce up and down and never really scroll the target - it will scroll 3 lines, then bounce back to the original position, or in the wrong direction. In this case while scrolling upwards or downwards.

    Hi ShadowAce,
    I don't have this environment to test this, but I can infer that you might be able to disable scrolling acceleration: Firefox menu > Advanced uner navigation or about: preferences in a new url #advanced.
    Uncheck the box for accelerated scrolling.

    I also found others who have noticed this problem:

    This additional information is useful for finding a work around? If it's a bug of Firefox is maybe what version of linux use for scrolling. Mozilla only keeps the part of linux, but it might not hurt to fill out a bug report in bugzilla.mozilla.org.

  • When I need the machine tnsnames.ora and customer configurations?

    Hello

    I installed Oracle 11 g on Linux system and successfully created the databases. I can access the database (on server) Enterprise Manager and SQL * (by sqlplus SYSTEM/pass@ora). On another computer I installed the Oracle 11 g database Client (and chose the type administrator installation). Before you start the network for local configuration Setup Wizard Net Service Name, I started Enterprise Manager (the same address, what happens on the server). I was very surprised that I can access Enterprise Manager client without any additional configuration.
    I know, tnsnames.ora help with SQL * more (we can access SYSTEM/pass@ora and don't give no address ip and port).
    And my questions: can I access by Enterprise Manager of any client computer without creating tnsnames.ora and additional configurations client machine?
    Is SQL * more use only tnsnames.ora?

    Thanks awfully for help.
    Concerning

    Luk004 wrote:
    can I access by Enterprise Manager of any client computer without creating tnsnames.ora and additional configurations client machine

    Yes, because the Business Manager is an application of 3 layers: you connect to an application server that connects to the database instance.

    Luk004 wrote:
    Is SQL * more use only tnsnames.ora?

    No.: each client must connect directly to the instance of database with a base layer Oracle Call Interface (OCI) must use tnsnames.ora.
    There are a few exceptions:
    -The thin JDBC driver: http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14251/adfns_environments.htm#sthref52.
    -EZConnect connection string: http://download.oracle.com/docs/cd/B19306_01/network.102/b14212/naming.htm#ABC524382SRI12.

  • Creating a service; What must be included in tnsnames.ora and JDBC url?

    DB version: 11.2.0.2
    Operating system platform: Solaris 10

    We have a 2 RAC node.
    DB name   = mbsprd
    Instance1  = mbsprd1
    Instance2  = mbsprd2
    I want 1 Instance (mbsprd1) to use for our OLTP and Instance 2 (mbsprd2) application to use for another nature DSS request.

    According to the syntax
    srvctl add service -d <dbname> -s <ServiceName> -r <Preferred Instance> -a <Available Instance>
    I create 2 services

    -Creation of a service called OLTP
    srvctl add service -d mbsprd -s OLTP  -r mbsprd1 -a mbsprd2
    -Creation of a service called DSS
    srvctl add service -d mbsprd -s DSS  -r mbsprd2 -a mbsprd1
    -Start services
    srvctl start service -d mbsprd -s OLTP
    
    srvctl start service -d mbsprd -s DSS
    I guess the above steps are sufficient to set up a service on the side server.

    I would like to know what needs to be done on the client side.

    Currently the file tnsnames.ora and JDBC url used by our clients are listed below. What needs to be added to the file URL and jdbc tnsnames.ora to start to use the services configured above?
    -- SCAN based TNS entry 
    mbsprd =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (COMMUNITY = tcp.world)
            (PROTOCOL = TCP)(Host = p148149-scan.tpam.net) (Port = 36964))
        )
        (CONNECT_DATA =
          (SERVER       = DEDICATED)
          (SERVICE_NAME = mbsprd)
          (FAILOVER_MODE=(TYPE=SELECT)(METHOD=BASIC))
        )
      )
    
    -- TNS entry based on local listener 
    -- Instance 1
    mbsprd1 =
    (DESCRIPTION =
       (ADDRESS_LIST =
       (ADDRESS =(PROTOCOL = TCP)(HOST = hsolarp148-vip)(PORT = 36973))
       )
       (CONNECT_DATA =
             (SERVICE_NAME = mbsprd)
             (INSTANCE_NAME = mbsprd1)
           )
     )
    
    -- Instance 2
    -- TNS entry based on local listener 
    mbsprd2 =
    (DESCRIPTION =
       (ADDRESS_LIST =
       (ADDRESS =(PROTOCOL = TCP)(HOST = hsolarp149-vip)(PORT = 36973))
       )
       (CONNECT_DATA =
             (SERVICE_NAME = mbsprd)
             (INSTANCE_NAME = mbsprd2)
           )
     )
    Entry for RAC JDBC
    jdbc:oracle:thin:@p148149-scan.tpam.net:36964:mbsprd
    -Another version used by some clients, because the above had "some problems".
    jdbc:oracle:thin:@(DESCRIPTION=(LOAD_BALANCE=on)(ADDRESS=(PROTOCOL=TCP)(HOST=p148149-scan.tpam.net) (PORT=36964))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=mbsprd)(FAILOVER_MODE =(TYPE = SELECT)(METHOD = BASIC)(RETRIES = 180)(DELAY = 10))))
    OLTP =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = p148149-scan.tpam.net)(PORT = your_port_number))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = OLTP)
        )
      )
    DSS =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = p148149-scan.tpam.net)(PORT = your_port_number))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = DSS)
        )
      )
    

    Entry for RAC JDBC

    JDBC:Oracle:thin:@p148149-scan.tpam.NET:36964:SERVICE_NAME

    JDBC:Oracle:thin:@new_tns_entry_description (if you do not want to connect to the database with particular service)

    Try this and let us know about problems,

  • What configuration of VLAN requires a switch connectivity defined as an access port?

    What configuration of VLAN requires a switch connectivity defined as an access port?

    By external switch tagging

  • Tnsnames.ora (ORA-12162) Configuration problems

    Hi all

    I have a database of 10.2.0.5 on a RedHat Linux box that I can use locally. I mean, I can connect to sqlplus using "connect scott/tiger".
    * $ export ORACLE_SID = MASTER *.
    * $ sqlplus /nolog *.
    * > connect scott / tiger *.
    * > Display the service_name parameter *.
    service name string MASTER.myhost.mydomain
    * > Display the db_name parameter *.
    db_name string MASTER

    Then, I wrote a listener.ora in my $ORACLE_HOME/network/admin like this:

    LISTENER_MASTER =
    *(DESCRIPTION =*)
    (* (ADDRESS = (PROTOCOL = TCP)(HOST = myhost.mydomain) (PORT = 1522))) *.

    SID_LIST_LISTENER_MASTER =
    *(SID_LIST =*)
    *(SID_DESC =*)
    * (GLOBAL_DBNAME = Master.myhost.mydomain) *.
    * (ORACLE_HOME = /Oracle/product/10.2)*
    *(SID_NAME = MASTER))) *.

    Has successfully started lsnrctl start and netstat auditor shows me that the box is the listening port 1522, belonged to tnslsnr.

    On the same machine (for testing purposes), I wrote this tnsnames.ora in $ORACLE_HOME/network/admin like this:

    MASTER =
    *(DESCRIPTION=*)
    * (ADDRESS = (PROTOCOL = tcp (PORT = 1522))(HOST=myhost.mydomain)) *.
    * (CONNECT_DATA =(service_name=Master.myhost.mydomain))) *.

    Unfortunately, I am unable to connect to my MASTER database:
    * $ ORACLE_SID unset *.
    * $ sqlplus /nolog *.
    * > connect to scott/tiger@MASTER*
    ORA-12162: TNS service name: net is incorrectly specified

    A trace of the "sqlplus" system process shows me that it is the correct reading of the tnsnames.ora file, I have no TNS_ADMIN environment variable (I also tried to put in my $ORACLE_HOME/network/admin).

    The curious thing, is when I tried to launch netmgr, this interface allows to test a tnsnames entry. So I did, and he told me I logged successfully while I just load the configuration of my own (I mean, it uses the tnsnames.ora I wrote, and I even tried to crush him of netmgr without success)

    Another curious, tcpdump shows me no traffic on port 1522...

    I turned around many sites and checked my files .ora ten times... so if there are clues...
    Thank you!

    Salvation;

    Please see:
    ORA-12162 connecting using DOB (no alias tnsnames) [ID 312348.1]

    Respect of
    HELIOS

  • Setup multiple server... what plsql... what tnsname.ora?

    I have several copies of the installed Oracle software (multiple ORACLE_BASE and each one has several software database installed).

    When I type SQLPLUS, one of them starts.

    In Windows, I know, it depends on the PATH variable. How do I know what SQLPLUS. EXE is launched?

    Also, what TNSNAMES file. ORA file is used for a connection to SQLPlus?

    Oracle 10g R2.

    Thank you
    Smith

    You can determine what tnsnames.ora is getting used by setting the OS TNS_ADMIN environment variable to the directory where your tnsnames.ora preferred listener.ora etc. is located.

    Kind regards
    Uwe

    http://uhesse.WordPress.com

  • Instant tnsnames.ora for client Configuration procedure?

    The instant client has any tnsnames.ora or tnsping.exe. There is no 'normal' client available anywhere on the site of oracle, who needs this instant client which is completely unusable - http://download.oracle.com/docs/cd/B19306_01/server.102/b14196/network005.htm#CIHJHJGJ said to use Oracle Net Manager to set up the network for the instant client, but where to find the Oracle Net Manager? It is not available separately, but only with the Oracle sever Installer. Why does download the server in order to use just the customer?

    I created the structure of network/admin directory and copied the tnsnames.ora in it and also copied the tnsping.exe, but it does not say some 'no message file. Can someone please?

    Published by: user4928701 on 16 Sep, 2011 04:00

    user4928701 wrote:
    There is no 'normal' client available anywhere on the oracle website,

    Subsection through software downloads of database, under the see all link for your platform, you will find the Setup file of database "full" Client (e.g., win32_11gR2_client.zip).
    http://www.Oracle.com/technetwork/database/Enterprise-Edition/downloads/index.html

    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14196/network005.htm#CIHJHJGJ said to use Oracle Net Manager to set up the network for instant customer,

    Where does say instant customer?

    and also copied the tnsping.exe Moreover,

    Copy of the files at random on installations of Oracle is obviously not possible.
    Please use an appropriate installation package. If you need administrative tools, I would say this type of installation by the full Client with the "Administrator".

    However, for normal applications need connection OIC/Net base libraries and to facilitate their deployment, Instant Client agrees very well.

  • location of the file tnsnames.ora and Listener.ora

    Hello

    env: Oracle 11 g 2 - Orable Linux 6.2 64bits

    I set up a database for the client server. I installed IM and the House according to the standards of the Oracle RDBMS. Then I configured the listener to run BOF IM home. If the location of the 'ora, tnsnames' and 'listener.ora' files is $GI_HOME/network/admin.

    Customer's DBA is asking me to conform to the standard for the location of these two files. Here's what he asked for:

    / opt/oracle/owner = oracle, group = s/n (755 permissions)

    / var/opt/oracle owner = oracle, group = s/n (755 permissions)

    • -touch /var/opt/oracle/listener.ora
    • -touch /var/opt/oracle/tnsnames.ora
    • -chown oracle: dba /var/opt/oracle/listener.ora
    • -chown oracle: dba /var/opt/oracle/tnsnames.ora
    • -s /var/opt/oracle/tnsnames.ora /etc/tnsnames.ora ln
    • -s /var/opt/oracle/listener.ora /etc/listener.ora ln

    I'm completely lost here. I don't know if I'm moving these two files in the folder "/ etc", how the LISTENER know about the presence of these files in ' / etc '.

    His reason for this is to support the possibility of having several houses of Oracle's RDBMS. I don't know what he's talking about.

    Please notify.

    Best regards

    user130038 wrote:

    Thanks to you two!

    So basically this DBA do not like to follow standards of Oracle but his own.

    BINGO!

    What is the problem with the help of $ORACLE_HOME/network/admin for these two files if there were several homes of oracle on a server? Sorry I never got to work on a server with multiple oracle homes, so I have no idea.

    The 'standard' with several houses installation is to run the listener from the version the most recent House.  If all of the houses are of the same version (putting aside the question of 'why'), then just pick one that is going to be home for the listener.  If the installation program uses the Grid Infrastructure (ASM and/or Oracle Restart), you must run the listener from the House of IM, not House the database.

    There are some key things to consider here.

    1. the auditor is to receive and process applications for connecting customers.  This is why the listener has no meaning on the Server.  Similarly, its configuration file, listener.ora, only makes sense on the server.

    1a. a single listener, using the default name of the LISTENER and the unique default port of 1521 is quite capable of--indeed, we wanted to - several multiple databases editions of multiple service homes.

    2. the tnsnames.ora file provides a name resolution and address customers.  So it has the sense that on the client computer.

    2. when a database uses a db link to access a different database, the first database acts as a client to the second - as with any other LDAP client.

    Best regards

  • Change the location TNSNAMES.ora (discoverer 11g)


    Hello

    I have a requirement where I need to change the location of tnsname.ora.

    I installed Oracle Fusion Middleware install (11.1.1.7) and then set the field to the Finder only.

    Tnsnames.ora location is $DISCO_INST_HOME/config/tnsnames.ora

    Another use of symbolic link, can I change the configuration to change the location of the TNSNAMES.ora file.

    Concerning

    Sumit SALAUN

    Hi Sumit

    I have additional information for you, with the permission of a contact I within the Oracle.

    Yes, you can use the TNS_ADMIN environment variable.

    Indeed, in the [middleware_home]\[oracle_instance]\config\OPMN\opmn\opmn.xml that it points to the location that you mentioned.

    You can update the location of the file

    Run: [middleware_home]-[oracle_instance\bin\opmnctl reload (to pick up the new changes in the opmn.xml file

    the next session of discoverer (dis51ws) began to read the changes.

    If this fails, stopall opmnctl, then opmnctl startall

    I also checked on other files that I mentioned earlier. We believe that they are not necessary for the discoverer, or why they would have this environment variable defined here as the repositories of metadata of Fusion Middleware use JDBC. They must be to another generic use of Weblogic or custom java applications.

    The binary discoverer/server only read /sessions opmn.xml - so simply by changing opmn.xml should be enough

    Best wishes

    Michael

  • Ifile in tnsnames.ora/listener.ora

    Hello

    I find IFILE entered my listener.ora of applications and tnsnames.ora oracle database.

    What is the use of IFILE? I hear that the entries in IFILE are not overnwritten using autoconfig. Is this true?

    We create the tnsentries of other databses in ifile.


    Someone could give advice.


    tnsnames.ora
    ============

    IFile=/Gold/App/DB/11.2.0/Network/admin/gold_srvr315/gold_srvr315_ifile.ora


    Listener.ora
    =============
    IFile=/Gold/App/DB/11.2.0/Network/admin/gold_srvr315/listener_ifile.ora


    Thank you

    I find IFILE entered my listener.ora of applications and tnsnames.ora oracle database.

    What is the use of IFILE? I hear that the entries in IFILE are not overnwritten using autoconfig. Is this true?

    Correct, and it is the use of the IFILE (i.e. create entries that must be preserved and not affected or overwritten by the automatic configuration service.

    Thank you
    Hussein

  • SQLNET.ora and tnsnames.ora, listener.ora btwn difference

    Hi all

    What is the fundamental difference between these 3 files - sqlnet.ora, listener.ora and tnsnames.ora?

    Version may be 10 g.

    (a) Listener.ora is a SQL * Net configuration file allows you to Configure listeners (needed to accept applications for remote connection) Oracle database.

    Normally, this file resides in the ORACLE HOME\NETWORK\ADMIN directory or in the directory defined by the variable $TNS_ADMIN.

    (b) Tnsnames.ora is a file that is used by oracle client to connect to the oracle server.

    (c) Sqlnet.ora is a text file that provides SQL * Net with the basic configuration details as options vectorization, field by default, encryption, etc.. This file is located in the ORACLE HOME\NETWORK\ADMIN directory.

  • After changing the port (1521 to 1525 in listener.ora and tnsnames.ora) OEM: the database is down

    Hello

    I'm installing Oracle Database 11 g 2 (11.2.0.4) on Oracle Linux 7.1.

    In short, what I'm trying to do now is changing the default port of 1521 to 1525.

    So I stopped the listener (lsnrctl stop) and then changed my listener.ora and tnsnames.ora:

    Listener.ora

    listener.ora # Network Configuration file: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora

    # Generated by Oracle configuration tools.

    LISTENER =

    (DESCRIPTION_LIST =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1521))

    )

    (DESCRIPTION =

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

    )

    )

    ADR_BASE_LISTENER = / u01/app/oracle

    tnsnames.ora

    tnsnames.ora # Network Configuration file: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora

    # Generated by Oracle configuration tools.

    BI =

    (DESCRIPTION =

    (ADDRESS_LIST =

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

    )

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = bi)

    )

    )

    And then changed the local_listener:

    SQL > ALTER SYSTEM SET LOCAL_LISTENER = "(ADDRESS = (PROTOCOL = TCP)(HOST=localhost) (PORT = 1525))";

    SQL > ALTER the REGISTRY SYSTEM;

    Finally, I started the listener (lsnrctl start) again.

    Then I tried to connect using Oracle SQL Developer to the customer. The port of 1525 works perfectly well.

    The problem is, when I open the OEM (Oracle Enterprise Manager), it says: "the database is down. Please specify the credentials of the host to access the restart and database diagnostic tools," which is like this: http://imgur.com/oKLPW65

    So I logged on the account of the host, and it shows that the database instance, listener and the agent is all down like this: http://imgur.com/Bzr84bz

    It seems that the port used by the OEM is always 1521.

    What should I do? Can someone help me solve the problem?

    Thanks in advance.

    UPDATE:

    After changing the emoms.properties & the targets.xml (thanks to Elisabeth), you will need to reconfigure dbconsole using emca.

    So what I'm doing is decreasing the config:

    $ emca - deconfig dbcontrol db-rest drop

    and then create again:

    $ emca - create config dbcontrol db-rest

    Voila.

    Best regards

    Jerry Antonius

    Hello

    Try to change the port numbers in the following files

    Don't port no 1521 to 1525

    $ORACLE_HOME /_SID/sysman/config/emoms.properties

    oracle.sysman.eml.mntr.emdRepPort = 1525 (before 1521)

    $ORACLE_HOME /_SID/sysman/emd/targets.xml

    (Before 1521)

    (Before 1521)

  • confusions tnsnames.ora

    Hi all

    11.2.0.3

    We have the listener.ora on our prod server.

    Listener.ora

    ========

    PROD =

    (DESCRIPTION =

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

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = PROD)

    )

    )

    LISTENER_SVR =

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

    =========

    My question is, what is the usefulness of the LISTENER_SVR line? If I delete it, my tnsnames still works. Is it useless at all?

    Thank you

    pK

    Question is, why would you type this value in the tnsnames.ora? And you must confirm that after stop and restart listener, it's still operational or not. If this is the case, you don't need this entry.

    HTH

    Aman...

Maybe you are looking for