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

Tags: Database

Similar Questions

  • Need help bridge database for MS SQL Server, error ORA-28546 configuration problems

    Dear all,

    I'm trying to configure Oracle to MS SQL Server(I don't have admin access to the MS SQL Server) database gateway.  When I try to test the dblink connection, I get the following error.

    I published select * from dual@xyz;

    ORA-28546: initialization of the connection failed, probable Net8 admin error

    ORA-28511: interruption of the RPC connection to heterogeneous remote agent using SID = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST=localhost) (PORT = 1521)) (CONNECT_DATA = (SID = dg4msql)))

    ORA-02063: preceding 2 lines of xyz

    28546 0000 - ' failed to initialize connection, unlikely Net8 admin error.

    My setup is as follows.

    1 oracle 11 GR 2 under Oracle Linux 6, the same gateway version is installed on the same server but different base directory.

    2 oracle DB base directory is u01/app/oracle/product/11.2.0/dbhome_1, gateway home directory is/u01/gateway.

    3. I use the same file listener.ora for db and the entry door.

    4. the content of my listener.ora, tnsnames.ora and the initdg4msql.ora is below.

    /U01/app/Oracle/product/11.2.0/dbhome_1/network/admin/listener.ora

    LISTENER =

    (DESCRIPTION_LIST =

    (DESCRIPTION =

    #(ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1522))

    (ADDRESS = (PROTOCOL = TCP (PORT = 1522))(HOST = db.abc.com.tw))

    )

    )

    MSSQL =

    (DESCRIPTION_LIST =

    (DESCRIPTION =

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

    )

    )

    SID_LIST_LISTENER =

    (SID_LIST =

    (SID_DESC =

    (GLOBAL_DBNAME = db.abc.com.tw)

    (ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1)

    (SID_NAME = orcl)

    )

    )

    SID_LIST_mssql =

    (SID_LIST =

    (SID_DESC =

    (SID_NAME = dg4msql)

    (ENVS = LD_LIBRARY_PATH = / u01/gateway/dg4msql/pilot/lib: / u01/gateway/lib)

    (Program name = / u01/gateway/bin/dg4msql)

    )

    )

    /U01/app/Oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora

    LISTENER_ORCL =

    (ADDRESS = (PROTOCOL = TCP (PORT = 1522))(HOST = db.abc.com.tw))

    ORCL =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP (PORT = 1522))(HOST = db.abc.com.tw))

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = orcl.abc.com.tw)

    )

    )

    dg4msql =

    (DESCRIPTION =

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

    (CONNECT_DATA = (SID = dg4msql))

    (HS = OK)

    )

    /U01/gateway/dg4msql/Admin/initdg4msql.ora

    HS_FDS_CONNECT_INFO=[192.168.0.1]:1433//XIETEST

    # replacement connect format is the name of host/serverinstance/databasename

    HS_FDS_TRACE_LEVEL = 255

    HS_FDS_RECOVERY_ACCOUNT = RECOVERY

    HS_FDS_RECOVERY_PWD = RECOVERY

    the dblink is created with the following statement.

    CREATE DATABASE LINK "xyz.abc.COM.TW".

    CONNECT TO ITS IDENTIFIED BY

    With the HELP of "dg4msql";

    Couple of other things I did to check the above works.

    [oracle@db admin] $ ping 192.168.0.1

    PING 192.168.0.1 (192.168.0.1) 56 (84) bytes of data.

    64 bytes from 192.168.0.1: icmp_seq = 1 ttl = 61 time = 7.61 ms

    64 bytes from 192.168.0.1: icmp_seq = 2 ttl = 61 time = 7,41 ms

    ^ C

    -ping 192.168.0.1 - statistics

    2 packets transmitted, 2 received, 0% packet loss, time 1818ms

    RTT min/avg/max/leg = 7.417/7.516/7.615/0.099 ms

    [oracle@db admin] $ tnsping dg4msql

    AMT Ping utility for Linux: Version 11.2.0.1.0 - Production on 2013-SEPT-11 10:53:11

    Copyright (c) 1997, 2009, Oracle.  All rights reserved.

    Use settings files:

    /U01/app/Oracle/product/11.2.0/dbhome_1/network/admin/SQLNET.ora

    TNSNAMES adapter used to resolve the alias

    Try to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = localhost)(PORT = 1521)) (CONNECT_DATA = (SID = dg4msql)) (HS = OK))

    OK (0 msec)

    [oracle@db admin] $ lsnrctl status mssql

    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 2013-SEPT-11 10:54:23

    Copyright (c) 1991, 2009, Oracle.  All rights reserved.

    Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST=localhost) (PORT = 1521)))

    STATUS of the LISTENER

    ------------------------

    Alias mssql

    Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production

    11-SEP-2013 start date 10:09:46

    Uptime 0 days 0 h 44 min 37 sec

    Draw level off

    Security ON: OS Local Authentication

    SNMP OFF

    Parameter Listener of the /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora file

    The listener log file /U01/app/Oracle/diag/tnslsnr/DB/MSSQL/alert/log.XML

    Summary of endpoints listening...

    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=127.0.0.1) (PORT = 1521)))

    Summary of services...

    Service 'dg4msql' has 1 instance (s).

    Instance of 'dg4msql', status UNKNOWN, has 1 operation for this service...

    The command completed successfully

    Obviously, I'd like to get this configuration to work, but I have also a couple other questions about this configuration.

    1. for the installation of the bridge, he wants to run the root.sh script.  the script root.sh as to what follows.

    Enter the full path of the local bin directory: [/ usr/local/bin]:

    The 'dbhome' file already exists in the usr.  Overwrite it? (y/n)

    [n]: n

    The 'oraenv' file already exists in the usr.  Overwrite it? (y/n)

    [n]: n

    The 'coraenv' file already exists in the usr.  Overwrite it? (y/n)

    [n]: n

    the above answer is correct?

    Thanks for reading.

    The strace shows:

    2796 open ("/ u01/app/oracle/diag/tnslsnr/db/mssql/trace/mssql.log", O_WRONLY |) O_CREAT | O_APPEND, 0660) = 12

    9564 access ("/ u01/app/oracle/product/11.2.0/dbhome_1/dg4msql/admin/initdg4msql.ora", F_OK)

    2796 write (12, "2013-SEPT-11 15:02:44 * (CONNECT_"..., 175 ")")

    9564 <... access="" resumed="">) =-1 ENOENT (no such file or directory)

    2796 <... write="" resumed="">) = 175

    2796 close (12

    9564 brk (0x14a3000) = 0x14a3000

    2796 <... close="" resumed="">) = 0

    2796 poll ([{fd = 8, events = POLLIN |}]) POLLRDNORM}, {fd = 11, events = POLLIN |} [POLLRDNORM}, {fd-=-1}, {fd = - 1}]-1, 4

    9564 access ("/ u01/app/oracle/product/11.2.0/dbhome_1/dg4msql/log/dg4msql_agt_9564.trc", F_OK) =-1 ENOENT (no such file or directory)

    9564 access ("/ u01/app/oracle/product/11.2.0/dbhome_1/dg4msql/log/dg4msql_agt_9564.trc", F_OK) =-1 ENOENT (no such file or directory)

    9564 statfs ("/ u01/app/oracle/product/11.2.0/dbhome_1/dg4msql/log/", 0x7fff91f005b8) =-1 ENOENT (no such file or directory)

    9564 open ("/ u01/app/oracle/product/11.2.0/dbhome_1/dg4msql/log/dg4msql_agt_9564.trc", O_WRONLY |) O_CREAT | O_TRUNC, 0666) =-1 ENOENT (no such file or directory)

    => so that it always uses the database as Oracle_home House

    With this info, I rechecked the listener and saw that you are missing the ORACLE_HOME setting in the dg4msql section of SID. Please correct your entry to mssql_sid to:

    SID_LIST_LISTENER =

    (SID_LIST =

    (SID_DESC =

    (GLOBAL_DBNAME = db.abc.com.tw)

    (ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1)

    (SID_NAME = orcl)

    )

    )

    SID_LIST_mssql =

    (SID_LIST =

    (SID_DESC =

      (ORACLE_HOME = / u01/bridge)

    (SID_NAME = dg4msql)

    (ENVS = LD_LIBRARY_PATH = / u01/gateway/dg4msql/pilot/lib: / u01/gateway/lib)

    (Program name = / u01/gateway/bin/dg4msql)

    )

    )

    Then please stop and restart the mssql listener and check again.

    -Klaus

  • 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)

  • Directives IFILE in tnsnames.ora give seemingly harmless errors

    I have a tnsnames.ora file on my local machine that contains a number of directives IFILE, that seems to cause a lot of errors in logging in SQL Developer Page (I use 1.5.4, but the behavior has been consistent since the beta releases).

    My tnsnames.ora file is just a pointer to other files tnsnames.ora, i.e.
    # tnsnames.ora Network Configuration File: c:\oracle\product\11.1.0\client_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    
    IFILE = c:\oracle\product\11.1.0\client_1\Network\Admin\tnsnames.ora.project1
    IFILE = c:\oracle\product\11.1.0\client_1\Network\Admin\tnsnames.ora.clientFoo
    This makes it easier for me to have the client or project specific TNSNames.ora files can I share (or borrow) to other people without having to manually edit a giant single file which combines information from several clients.

    Everytime I open SQL Developer, I get an error in the Page log at the bottom of the screen for each entry IFILE where

    Level = SEVERE
    Sequence = 53
    Elapsed = 63
    Source = oracle.dbtools.raptor.utils.TNSHelper
    Ifile = message not found c:\oracle\product\11.1.0\client_1\Network\Admin\tnsnames.ora.project1

    As far as I know, this is no problem for me - I can connect with happiness to all databases. Of course, I'd like to be able to avoid generating all these errors every time.

    Justin

    Hi Justin,

    I see the error when it is unable to load the file because space.

    It looks like a problem with trim white space:
    works for me (no space after the =): IFILE = / home/turlochcurrent/separation/tmp/testtnsnames/dontfindme
    does not work for me (extra space after the =): IFILE = / home/turlochcurrent/separation/tmp/testtnsnames/dontfindme

    which is buggy/fixed easily if you can confirm that this workaround works around your question.

    -Turloch

  • Error in tnsnames.ora

    Hello

    I installed Oracle 10.2.0.1 and then created my listener and tnsnames using NETCA. I get the following error for tnsnames.ora.

    Try to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.1.102))(PORT = 1521)) (CONNECT_DATA = (SID = ora10g))
    TNS-12533: ADDRESS TNS:illegal settings

    Listener does not error. I am including the files tnsnames.ora and listener.ora for your referral link. I would be grateful if someone can help to report 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 = CIP)(KEY = EXTPROC0))
    )
    )

    SID_LIST_LISTENER10G =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = F:\oracle)
    (= Extproc PROGRAM)
    )
    )

    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 = CIP)(KEY = EXTPROC0))
    )
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    )
    )

    where ORA10G is the name of my base and LISTENER10G is the name of listener 10g.

    Kind regards
    Somd

    Hello..

    Instead your TNSNAMES.ora, this article has only, save, and run tnsping ora10g. Also paste the entry in the sqlnet.ora file.

    ORA10G =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.102)(PORT = 1521))
        )
        (CONNECT_DATA =
          (SID = ora10g)
          (SERVER = DEDICATED)
        )
      )
    

    You are missing in your entry for the ora10g tns * (ADDRESS_LIST = * line.)

    HTH
    Anand

    Published by: Anand... on March 17, 2009 05:15

  • Where to insert HOST = hostname.domain in tnsnames.ora

    Hello

    I want to install an environment of training in accordance with the installation instructions OR...
    All well past, loopback installed Microsoft, Oracle DB 10.2.0.1, adapter installed and Patch 10.2 . installed 0.2.
    Using the configuration. and Migration > database configuration. I created a database of XPTO.
    Using the configuration. and Migration > Net Config the LISTENER was config. port 1521.

    Now the instructions tell me to edit tnsnames.ora BLAH c:\oracle\product\10.2.0\db_1\NETWORK\Admin and include HOST = hostname.domain.

    I do not know where to include the HOST... I tried a few options but tnsping XPTO always fail.

    This is my original tnsnames.ora and I would be grateful if someone could put it that the good
    tnsnames.Ora should look to...

    tnsnames.ora # Network Configuration file: C:\oracle\product\10.2.0\db_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.

    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP) (HOST = sr-14. BEXPERT.local) (PORT = 1521))
    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC0))
    )
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    )

    TXS for your help.
    Antonio

    Try to add this line to the sqlnet.ora file, then restart receiver, wait some time and try tnsping

    NAMES. DIRECTORY_PATH = (TNSNAMES)

  • problem with tnsnames.ora

    my oracle 11g on GNU / linux.
    I have 10 entries in my tnsnames.ora
    I recently added a new entry.
    With regard to my knowledge everything is correct.
    But, I get the error TNS-12533.

    The other good thing is that it works well on Win machine.

    Can one can fix it. Please guys...

    the entry is:

    xxx =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP) (HOST = xxx.xxx .net)(PORT=1521))

    (CONNECT_DATA =

    (SERVER = SHARED)

    (SID = xxx111)

    )

    )

    Published by: user6476691 on November 6, 2008 13:52

    Published by: user6476691 on November 6, 2008 13:58

    12533, 00000, "settings of ADDRESS TNS:illegal.
    * Cause: An illegal game of the protocol adaptor parameters has been specified. In
    some cases, this error is returned when a connection cannot be made to the
    Transport Protocol.
    * Action: Verify that the destination is accessible using the specified
    Protocol. Check that the settings in the section ADDRESS
    TNSNAMES. ORA. Legal ADDRESS formats of parameter can be found in the
    Oracle operating system specific for your platform documentation.
    Protocols to resolve names to the transport layer (for example the object DECnet
    the names) are vulnerable to this error if it is not correctly configured or names are
    misspelled.

    Looks like there are a few problems with the entry of tns way is defined in the tnsnames.ora file. Maybe it can be due to new lines.

    Remove line breaks or add the following entry

    RAC = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = xxx.xxx .net)(PORT=1521)) (CONNECT_DATA = (SERVER = SHARED) (SID = xxx111)))

  • 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.

  • 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

  • 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

  • ORA-12162: TNS service name: net is incorrectly specified

    Dear all

    Hello

    I am facing problem when starting linux 4 64-bit version of oracle 11 g Recovery Manager

    Database works fine and when I try to start giving rman

    I put all the good setting and able to start the database data, but problem when you try to start rman target /.

    [oracle@std ~] target rman $ /.

    Recovery Manager: release 11.2.0.1.0 - Production on Mon Sep 9 00:12:46 2013

    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

    RMAN-00571: ===========================================================

    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.

    RMAN-00571: ===========================================================

    RMAN-00554: initialization of the package manager internal collection failed

    RMAN-04005: target database error:

    ORA-12162: TNS service name: net is incorrectly specified

    Thanks and greetings

    Thibaut Lacroix

    Hi Thibaut Lacroix,.

    You have the database entry in the tnsnames.ora file? If this isn't the case, you must set.

    And then you export the sid before calling the rman target /.

    Please check and let us know the status

    Kind regards

    Pradeep. V

  • SQLNET.ora Network Configuration file "missing parameters".

    Hello gurus;

    Earlier I create sqlnet, ora by NETCA
    My SQLNET.ora contains following information only...


    sqlnet.ora # Network Configuration file: /u01/app/oracle/product/10.2.0/db_1/network/admin/sqlnet.ora
    # Generated by Oracle configuration tools.

    NAMES. DIRECTORY_PATH = (TNSNAMES)


    * > > Help > > *.
    why he did not show all parameters? Here is something wrong?
    I need to set SQLNET. AUTHENTICATION_SERVICES = NONE

    952909 wrote:
    Hi EdStevens

    Not able to connect to the database without entering a user name and password.

    Yes, we know. You said, in almost all positions, you did on this subject. We got that. Believe me, we understand that. Can we move on to solve your problem?

    [oracle@localhost ~] $ sqlplus /.

    SQL * more: Release 10.2.0.1.0 - Production on sat 22 dec 19:12:30 2012
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    ERROR:
    ORA-01017: name of user and password invalid. connection refused

    Because everything counts OS logged as that doesn't have an account AUTHENTIFIE of BONES in the database.

    but I can connect like this,

    [oracle@localhost ~] $ sqlplus

    SQL * more: Release 10.2.0.1.0 - Production on sat 22 dec 19:12:17 2012
    Copyright (c) 1982, 2005, Oracle. All rights reserved.

    Enter the user name: ops Sham $
    Enter the password:
    Connected to:

    Because, despite the "ops$"... ops$ feint isn't an authenticated OS account. This is a database of authenticated account. It's only a database of authenticated account because you gave it a password. From your previous post to Justin:

    -quote from the previous post to start-

    SQL > CREATE USER ops$ sham IDENTIFIED EXTERNALLY.
    Created by the user.
    -suspend - quote

    OK, at this point, you have an authenticated os account "$ops Sham".

    -quote to continue-
    SQL > GRANT CONNECT TO the Sham ops$;
    Grant succeeded.
    -suspend - quote

    Now, the operating system account 'sham' should be able to connect with a simple "sqlplus / '.

    -quote to continue-
    SQL > grant dba to simulacrum of ops$;
    Grant succeeded.
    -suspend - quote

    Now, anyone who uses the operating system account 'sham' can connect without a password and have all the privileges listed in the role of "dba".

    -quote to continue-
    SQL > alter the simulacrum of $ ops user identified by shamos.
    Modified user.
    -end quote-

    But now change you your account "$ops Sham" and gave it a password. OPS$ feint is therefore more than a bone authenticated account. It is now a database authenticate the account, but with a rather misleading name. At this point, if you are trying to connect as "sham of the ops$", you will need to provide a password.

    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With partitioning, OLAP and Data Mining options

    Note: most web links either saying, we can choose to connect with DB.
    I want to know the difference why this sqlplus command / error display

    Because you're tying to use authentication with an operating system account that is not an operating system os authenticated account in the database. Put "ops$" on the name of the account is NOT what makes an authenticated os account. What makes authenticated os sets the account as "identified on the outside. If you create as 'identified by somepassword', OR if you CHANGE to 'identified by somepassword' then it is NOT authenticated os.

  • 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,

  • TNSNAMES.ora in Linux OS

    I installed oracle using the database. / Linux dbca.

    When I connect to oracle...

    1 sys as sysdba
    ORA - service 12162:TNS name: net is incorrectly specified

    2 sys@soni as sysdba
    ORA-12154: TNS: could not resolve the connect identifier specified

    There is not any TNSNAMES.ora file in the NETWORK folder.

    Can someone tell me to solve this problem in Linux? (I am new to the Linux operating system)

    Hello
    You see that your PATH variable does not contain the path to the bin of the Oracle home directory.

    Oh, after changes in the .bash_profile, you disconnected and connected again, so that changes in .bash_profile may take effect?

    Disconnect then reconnect and then check sqlplus from the terminal.

    Also if the problem persists, then paste the above values again.

    concerning

Maybe you are looking for

  • How can I turn off auto update?

    I had FF never check the value. On its own, this parameter was changed to "Check for updates but let me choose". However, the parameter is actually, "install automatically". How can I fix it? I can decide on updates all by myself. The change was 28 V

  • OneKey vs System Restore

    Hi, reading some POSTS, I know I'm not the only one that is a problem with OneKey and assume that we will have a fix one of these days, I also believe that I'm probably not the only one who doesn't understand the difference between Lenovo OneKey and

  • iPhone got 6s rattling sound when shaken!

    Hello Apple! I just bought the apple from the Apple Store iphone6s not more than a week. Until today, I noticed that when I shook my iPhone, I heard noise came close to the camera or the apple logo. I do not know! The noise sounded like something ins

  • Download the "Marvell 91xx Config ATA Device"

    We do not find a download for the 'Marvell 91xx Config ATA Device"I sent Marvell help and tried many listed sites, but simply to don't download. I'm so frustrarted as it has to do with a disk SATA 6 Gbps 3 I want to use RAID - 0-. so I can capture 10

  • Turbo c ++ error: NTVDM CPU has encountered an invalid statement

    every time I try to run TC in the bin folder, an error message appears: NTVDM CPU has encountered an invalid statement Click on close to terminate the program I, ve tried to reinstall TC. system configuration: windows XP SP3, 512 MB ram, 80 GB HDD, P