tnsnames.ora and oracle cleint

We have a duty to make an analysis of data on one of our oracle databases. We have a copy of the tnsnames.ora file with the Server DB and SID etc.

If you use something like toad or gold to query the DB, you also need to install client oracle on the machine (windows XP)? Or just the TOAD software?

Is there a device by default on XP where tnsnames.ora needs to be saved?

And if we don't need the customer what is the right version?

user599292 wrote:
We have a duty to make an analysis of data on one of our oracle databases. We have a copy of the tnsnames.ora file with the Server DB and SID etc.

If you use something like toad or gold to query the DB, you also need to install client oracle on the machine (windows XP)? Or just the TOAD software?

Is there a device by default on XP where tnsnames.ora needs to be saved?

And if we don't need the customer what is the right version?

Toad, Yes, you have the Oracle client. Cannot say on 'gold', I don't know what it is. In general, any product like that will sit on top the Oracle client, not replace it.

There is nothing magical about tnsnames.ora. It is just a file of name resolution that is used by the software oracle client. If you have a magical application which replaces the customer oracle instead of using it, then your tnsnames.ora will be without intrinsic value beyond giving you the necessary information configure magic of the application.

Published by: EdStevens on October 14, 2011 06:32

Tags: Database

Similar Questions

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

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

  • 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

  • TNSNAME.ora in dataguard

    Hello

    using oracle 10 g r2, we set up datagurad like this:

    PRIMARY SIDE
    parameters:

    Log_archive_dest_1 = ' location = / u01/app/oracle/arch/orcl.
    LOG_ARCHIVE_DEST_2 = "service = orcl_standby'"
    log_archive_dest_state_1 = enable
    LOG_ARCHIVE_DEST_STATE_2 = enable
    standby_file_management = auto
    fal_server = orcl_standby
    fal_client = orcl
    db_unique_name = "orcl".

    listener:
    SID = orcl
    (host = 192.168.0.100) (port = 1521)

    tnsnames:

    (1) orcl
    Host: 192.168.0.100
    SID: orcl
    (2) orcl_standby
    Host: 192.168.0.200
    SID: orcl_standby

    STANDBY TIME:

    parameters:

    Log_archive_dest_1 = ' location = / u01/app/oracle/arch/orcl.
    LOG_ARCHIVE_DEST_2 = "service = orcl'"
    standby_archive_dest = ' / u01/app/oracle/orcl/arch/orcl.
    standby_file_management = auto
    log_archive_dest_state_1 = enable
    LOG_ARCHIVE_DEST_STATE_2 = enable
    fal_server = orcl
    fal_client = orcl_standby
    db_unique_name = "orcl_standby".

    listener:

    SID: orcl_standby
    (host = 192.168.0.200) (port = 1521)

    tnsnames

    (1) orcl_standby
    Host: 192.168.0.200
    SID: orcl_standby
    (2) orcl
    Host: 192.168.0.100
    SID: orcl

    In this primary case can talk about Eve using orcl_standby and Eve can talk about primary using orcl. What is needed to create orcl on primary and standby in any case if orcl_standby convert us

    Vinciane wrote:
    Hello

    using oracle 10 g r2, we set up datagurad like this:

    In this primary case can talk about Eve using orcl_standby and Eve can talk about primary using orcl. What is needed to create orcl on primary and standby in any case if orcl_standby convert us

    We don't need to see the same complete configuration for questions...

    And why not just show the actual content of the files config instead of transcribing the notes which are subject to typographical errors and misinterpretation. It is not clear how to read a file tnsnames.ora and listener.ora...

    As to your question immediately, you want the two databases listed in the tnsnames on both servers, so you'll be ahead of the game in case you make a pass, where the current expectation becomes primary and vice versa. It is also why you go ahead and settle some parms init focused on standby at the primary level.

  • details about tnsnames.ora

    Hi all

    I have following tnsnames.ora and works fine

    PROD =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP) (HOST = 152.144.XXX.XXX)(PORT = 1521))
    )
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = PROD.haunting.com)
    )
    )

    now I want to change the name of the service to


    PROD =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP) (HOST = 152.144.XXX.XXX)(PORT = 1521))
    )
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = DEV.haunting.com) / / changet to DEV of PROD
    )
    )


    but I am not able to connect to oracle as hr/hr@PROD

    I put

    ALTER system set service_names is 'Scope DEV.haunting.com' scope = both;.

    editing the system registry;

    restarted the listener and the database. but still cannot connect to the database as a normal user.


    Please provide details

    It seems that this database stores services all defined in the data dictionary: If you change init service_name. parameter, it adds a new data service but remove it from those that already exist. You can check with:

    select name, network_name from dba_services;
    

    You can delete an existing dictionary of the database service with:

    exec dbms_service.delete_service('');
    

    Edited by: P. Forstmann on Dec 16. 2009 10:35

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

  • TNSNAME.ora &amp; listener.ora deleted - how to regenerate

    Hello

    I installed the 10.2.0.1.0 Oracle database on my new server, RHEL 5.1. The database is growing and running and the listener too.
    Subsequently the listener.ora & tnsnames.ora has accidentally deleted and I am not able to connect to the database through the listener.

    But if I connect as source the environment I am able to connect to the database as sysdba and oracle. But not from external clients.

    All I need is to know how to regenerate the tnsnames.ora and listener.ora under $ORACLE_HOME/network/admin on the server.

    I installed a default database.

    any help on this is much appreciated



    Poongodi

    All I need is to know how to regenerate the tnsnames.ora and listener.ora under $ORACLE_HOME/network/admin on the server.

    tnsnames.ora is a Client file on the server, you will not need to it (actually you can connect).

    Listener.ora is not required, unless you want to configure a listener not by default. Simply start the receiver (lsnrctl start) and correctly configure your Clients port 1521.

    Anyway, if necessary, netca command allows you to configure both of them.

  • DBD::Oracle and instant client - can't find tnsnames.ora

    Hi all! :-)

    Guys, please, help!

    My OS: CentOS 6.6, i386

    Installed:

    Oracle - instantclient12.1 - basic - 12.1.0.2.0 - 1.i386

    Oracle - instantclient12.1 - devel - 12.1.0.2.0 - 1.i386

    Oracle - instantclient12.1 - sqlplus - 12.1.0.2.0 - 1.i386

    Perl-DBI-1, 609 - 4.el6.i686

    and last perl-DBD-Oracle-1, 74-CPAN.

    Apache 2.2.15, mod_perl 2.0.4

    SELinux disabled.

    ORACLE_HOME = usr/lib/oracle/12.1/client, LD_LIBRARY_PATH = /usr/lib/oracle/12.1/client/lib

    tnsnames.ora exist in /usr/lib/oracle/12.1/client/network/admin

    I wrote a simple perl script to test the connection:

    use strict;
    use DBI;
    
    my $dbh = DBI ->connect("dbi:Oracle:crm", 'login', 'password',{RaiseError => 1} );
    $dbh->disconnect();
    
    

    When I try to run script command line - everything isn't ok, no errors (Yes, I can run queries, etc... )

    But!

    With apache, I get an error:

    DBI connect('crm','login',...) failed: ORA-12154: TNS: could not resolve the connect identifier specified (DBD ERROR: OCIServerAttach) in /opt/otrs/bin/cgi-bin/oratest.pl on line 9

    I am trying to add ORACLE_HOME with PerlSetEnv and script see (I checked through % ENV), but no luck.

    Probably easier to use EZconnect instead of tnsnames.ora:

    $machine = 'my.oracle.database.com';
     $port = 1521;
     $sid = 'my_sid';
     $dbh = DBI->connect("dbi:Oracle://$machine:$port/$sid", $user, $pass) ||
      die "Failed to connect: $DBI::errstr\n";
    
  • connection mysql and oracle ORA-28545: error diagnosed by Net8 when connecting to an agent

    Hi all

    I have Oracle 10.2.0.5 server and MySQL 5.3 on windows environment. all are 64-bit.

    I want to connect to MySQL. I do the following

    Configure Listner.ora

    SID_LIST_LISTENER =

    (SID_LIST =

    (SID_DESC =

    (SID_NAME = PLSExtProc)

    (ORACLE_HOME = C:\oracle\product\10.2.0\db_2)

    (= Extproc PROGRAM)

    )

    (SID_DESC =

    (GLOBAL_DBNAME = ORCL)

    (ORACLE_HOME = C:\oracle\product\10.2.0\db_2)

    (SID_NAME = ORCL)

    )

    (SID_DESC =

    (SID_NAME = mysql)

    (ORACLE_HOME = C:\oracle\product\10.2.0\db_2)

    (PROGRAM = HSODBC)

    (ENVS = LD_LIBRARY_PATH = C:\oracle\product\10.2.0\db_2\LIB)

    )

    )

    LISTENER =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP)(HOST = oradev.hct.org) (PORT = 1521))

    )

    Tnsnames.ora configuration

    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = oradev.hct.org) (PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)
    )
    )

    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC0))
    )
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    )
    )
    MySQL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST= 10.153.103.5) (PORT = 1521))
    (CONNECT_DATA =
    (SID = mysql)
    )
    (HS = OK)
    )

    create file initodbc.ora in the folder hs

    HS_FDS_CONNECT_INFO = mysql

    HS_FDS_TRACE_LEVEL = OFF

    Restart the listner

    tnsping

    C:\users\administrator > tnsping mysql

    AMT Ping Utility for 64-bit Windows: Version 10.2.0.5.0 - Production 08-NOV-2
    015 13:02:52

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

    Use settings files:
    C:\oracle\product\10.2.0\db_2\network\admin\sqlnet.ora


    TNSNAMES adapter used to resolve the alias
    Try to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = 10.153.103.5)
    (PORT = 1521)) (CONNECT_DATA = (SID = mysql)) (HS=OK))
    OK (0 msec)

    Create the connection odbc for Unicode

    the test is successful

    now, I create the dblink

    create public mysql database link to connect to cssDBTeam identified by oracle using "mysql";

    then try to select from a table inside the MySQL database

    SQL > select * from appeal@mysql;

    Select * from appeal@mysql

    *

    ERROR on line 1:

    ORA-28545: error diagnosed by Net8 when connecting to an agent

    Cannot retrieve the text of the message NETWORK/NCR 65535

    ORA-02063: preceding 2 lines of MYSQL

    How could I solve this problem?

    Thank you.

    Hello

    I realize that your problem is that 10.2 HSODBC was never focused on the Windows 64-bit platform and was only available on 32-bit Windows.  You can not install the 32-bit on WIndows 64-bit HSODBC.

    Your only option is to install 11.2 DG4ODBC on your platform Windows 64 - bit, or if you have a RDBMS 10.2 installed on another platform, then you could use HSODBC as part of this installation and connect from the RDBMS on Windows 64 - bit using the links in the database.  HSODBC 10.2 software could not be installed as a stand-alone product and was only available as part of an RDBMS install.

    Kind regards

    Mike

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

  • Links to DB, auditor and 2 tnsnames.ora

    Hello

    I would like to have some information about the following situation:

    I installed on server1 Oracle 11.2 in the patches dbhome1 Group 3 (first place) and in the Group of hotfixes dbhome2 4 (Group of patches).

    Now, the listener is always that of the patches dbhome1 Group 3 (where the tnsnames.ora y/network/admin).

    I instance1 created with dbca patches dbhome2 Group 4. Instance1 has a link to db dblink1 to server2.

    Now the strange thing, dblink1 cannot connect to the host.

    The tnsnames.ora in dbhome1 contains the correct entry (tnsping with variables env dbhome1 works flawlessly). But if I do a tnsping with dbhome2 env variables, then it does not work (in fact the tnsnames.ora to dbhome2 has a WRONG server name in the entry). After I corrected the tnsnames.ora to dbhome2, all was FINE.

    My question, I guess the listener takes the tnsnames.ora to dbhome1, why a dblink to an instance of dbhome2 not use this file, but rather the tnsnames.ora to dbhome2 (the listener runs on dbhome1)? A feedback?

    Thank you

    Martin

    The listener has nothing to do with the tnsnames.ora. The important thing is the value of the TNS_ADMIN environment variable except that the value of ORACLE_HOME for the process in question. If TNS_ADMIN is undefined, instances that are running 2 House will pick up the tnsnames of House 2.

  • Net Oracle does not read the tnsnames.ora file.

    I am running 11.2.0.3 on Solaris 10 SPARC x 64. I'm trying to configure oracle net for a new database on hold in order to be able to use rman duplicate to create. LDAP is what we mainly use for all of our connections and, possibly, what I could use very well for my goal of rman duplication. But, I fear that I do nothing seems to allow me to read the tnsnames.ora file.

    My SQLNET. ORA file is as follows:

    NAMES. DIRECTORY_PATH = (LDAP, TNSNAMES)

    NAMES. DEFAULT_DOMAIN = mydomain.com

    My TNSNAMES file. ORA file is as follows on both servers:

    WLDB_HERE =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = primary_server) (PORT = 1521))
    )
    (CONNECT_DATA = (SERVICE_NAME = wldb_here.mydomain.com))
    )

    WLDB_THERE =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = standby_server) (PORT = 1521))
    )
    (CONNECT_DATA = (SERVICE_NAME = wldb_there.mydomain.com))
    )

    I have a static entry in the remote listener.ora file so I can connect to create the instance:

    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = wldb_there.mydomain.com)
    (ORACLE_HOME = / u01/app/oracle/product/OraHome112)
    (SID_NAME = WJZI)
    )
    )

    LISTENER =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = standby_server) (PORT = 1521))
    )

    Permissions on my .ora files in $ORACLE_HOME/network/admin are

    -rw - r - r - 1 oracle dba

    The user that I am connected to who is oracle.

    I have set up several times before, but for some reason that I can't get this to work. I get

    AMT-03505: failed to resolve host

    Of

    tnsping wldb_there

    or

    tnsping wldb_here

    I have not tried to take the LDAP Protocol on my sqlnet.ora because I need, but I really want to know if anyone has had an experience like this before.

    Thank you-

    gregb wrote:

    I am running 11.2.0.3 on Solaris 10 SPARC x 64. I'm trying to configure oracle net for a new database on hold in order to be able to use rman duplicate to create. LDAP is what we mainly use for all of our connections and, possibly, what I could use very well for my goal of rman duplication. But, I fear that I do nothing seems to allow me to read the tnsnames.ora file.

    My SQLNET. ORA file is as follows:

    NAMES. DIRECTORY_PATH = (LDAP, TNSNAMES)

    NAMES. DEFAULT_DOMAIN = mydomain.com

    My TNSNAMES file. ORA file is as follows on both servers:

    WLDB_HERE =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = primary_server) (PORT = 1521))
    )
    (CONNECT_DATA = (SERVICE_NAME = wldb_here.mydomain.com))


    )

    Because you have NAMES. DEFAULT_DOMAIN = mydomain.com in your sqlnet.ora, when you try to connect to "WLDB_HERE", before tnsnames.ora is read, sqlnet will transform your application in "WLDB_HERE.mydomain.com".  And that's what he's going to get.

    You do not have an entry in your tnsnames.ora to 'WLDB_HERE.mydomain.com '.

    WLDB_THERE =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = standby_server) (PORT = 1521))
    )
    (CONNECT_DATA = (SERVICE_NAME = wldb_there.mydomain.com))
    )

    I have a static entry in the remote listener.ora file so I can connect to create the instance:

    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = wldb_there.mydomain.com)
    (ORACLE_HOME = / u01/app/oracle/product/OraHome112)
    (SID_NAME = WJZI)
    )
    )

    LISTENER =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = standby_server) (PORT = 1521))
    )

    Permissions on my .ora files in $ORACLE_HOME/network/admin are

    -rw - r - r - 1 oracle dba

    The user that I am connected to who is oracle.

    I have set up several times before, but for some reason that I can't get this to work. I get

    AMT-03505: failed to resolve host

    Of

    tnsping wldb_there

    or

    tnsping wldb_here

    I have not tried to take the LDAP Protocol on my sqlnet.ora because I need, but I really want to know if anyone has had an experience like this before.

    Thank you-

  • Oracle 32-bit Client and Oracle DB 64 ORA-12560

    Hello

    Successfully, I installed Oracle 11 g and create a database. Then, I managed to connect using SqlPlus. After the installation of the 32-bit Client (I installed the complete version - version Administration) I copy the tnsnames.ora on C:\app\Administrator\product\11.2.0\client_1\network\admin, and I can't connect using sqlplus:
    C:\users\administrator > sqlplus / as sysdba

    SQL * more: Production release 11.2.0.1.0 Wed Aug 29 12:40:16 2012

    Copyright (c) 1982, 2010, Oracle. All rights reserved.

    ERROR:
    ORA-12560: TNS:protocol adapter error


    Enter the user name:

    Hakan Biroglu says:
    ...
    Are both 64-bit and 32-bit Oracle on the same computer?

    It is where PTools 8.5 x is confusing so far. It is 64-bit capable only, but on Windows, to Oracle 32-bit libraries to run the client (Appserv, CRP, AppDesigner, DMS). It will be fixed within 8,53 PTools where we will rid us off the coast of the need for 32-bit (particularly embarrassing for Appserver/CRP on a server). So far, we will need both the server, 64-bit managed to be the server, 32-bit has managed to be the customer. Overall, it makes the image even less clear.

    In this case, make sure that the PATH variable contains the correct sequence (64-bit, 32-bit server server).

    Basically, the variables ORACLE_HOME and path must be changed before using one or the other House.
    If you want to use a connection with a server, the home64bit value, this should work:

    set ORACLE_HOME=
    set PATH=%ORACLE_HOME%\bin:%PATH%
    set ORACLE_SID=mydb
    sqlplus / as sysdba
    

    If you want to use a login as a client, the home32bit value, it should work:

    set ORACLE_HOME=
    set PATH=%ORACLE_HOME%\bin:%PATH%
    sqlplus sysadm/sysadm@mydb
    

    Nicolas.

    fixed tags
    Published by: Gasparotto N on August 29, 2012 15:20

Maybe you are looking for

  • Since the upgrade of Skype

    and I click on "sign in", all I get is a circle of white dots encircling autour and autour and arouns with signin showing, but nothing happens. Please can help me as only way to see my newborn grandson in S Africa Thank you

  • Can't send or receive Messages from group

    For some reason, I can't send / receive messages in conversations in Group (including the iphone and android users) and also, I can not send pictures or videos to people with androids. I tried to restart my phone several times and I tried the update

  • Speaker drivers

    Hello My Dell computer just died so I bought a HP Desktop running windows 8.  I want to use my old Dell, old speakers of 7 years.  I see tags service on the back of the speaker, is there no reference name.  Worse still, when I go to the Dell website

  • Update screen

    Hello I want to know how to repaint my screen on the blackberry, I used doPaint but it does not work for me is there a function like repaint() J2ME? Thks

  • HP Support Assistant has stopped responding!

    Hello, I have a... HP G62 Notebook PC, assistant # WQ841UA and product support has stopped responding. Help, please!