connect sqlplus without tnsnames.ora

Hello

I have nothing in tnsnames.ora locally.
I don't have a local instance of the DB, I always have to connect to an instance on a server. How can I connect using sqlplus?
sqlplus [email protected]:1521/MYSID
The result is ORA-12514!

connect without tnsnames.ora. For example:

sqlplus scott/tiger @(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(Host=server_a) (Port = 1521)) (CONNECT_DATA = (SID = db_a)))

Tags: Database

Similar Questions

  • Oracle BI developer Client tools without Tnsnames.ora

    Hello gurus,


    In my local computer of the user, I installed Oracle BI developer Client Tools version 11.1.1.6
    It allows us to open a repository online/offline without installing OBIEE and Oracle database in our user, just put in ODBC connection.
    But the problem is when the user want to try to create the new repository, it seems that "the connection failed".
    There we have to copy some tnsnames.ora? In our local computer of the user, there is no tnsnames.ora since it does not install OBIEE/Oracle database on the local computer.

    Help, please


    Thanks in advance

    See you soon,.

    JOE

    Hey Joe,
    If you import data from an oracle database. You must install the Oracle database client. Then only, you can import data from Oracle database.
    In addition, you are supposed to copy file ora, TNSNAMES.

  • Sqlplus not find tnsnames.ora

    Hey guys,.

    I have a question about oracle client and the tnsnames.ora file. Basically, I have the customer put in place and it seems to work on the use of sqldeveloper such that she can see the tnsnames.ora file in the drop-down list but I don't seem to be able to connect using sql, which makes me think that it cannot find the file ora. I set the env as:
    DON@donkeyhome:/usr/lib/oracle$ echo $PATH
    .:/usr/lib/oracle/oracle_client/bin:.:/usr/lib/jvm/jdk/bin:/usr/lib/jvm/jdk/jre/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
    DON@donkeyhome:/usr/lib/oracle$ echo $ORACLE_HOME
    /usr/lib/oracle/oracle_client
    DON@donkeyhome:/usr/lib/oracle$ echo $TNS_ADMIN
    /usr/lib/oracle/network/admin
    DON@donkeyhome:/usr/lib/oracle$
    Sql developer seems to work with the tns ok but not sqlplus:

    DON@donkeyhome:/usr/lib/oracle$ sqlplus SYSADM@STUDA1
    
    SQL*Plus: Release 10.2.0.1.0 - Production on Tue Jan 6 16:26:50 2009
    
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    
    Enter password:
    ERROR:
    ORA-12154: TNS:could not resolve the connect identifier specified
    Any help with this would be greatly appreciated that I had this problem and commented on many forums for about 1 month now :(

    Dave was soon

    Published by: wheelie on January 5, 2009 22:28

    Published by: wheelie on January 7, 2009 22:32

    Wheelie,

    I understand that you have tried many options to solve and in general, this mistake is easy to correct. Bad especially as a tnsnames.ora entry, you can also try dos2unix tnsnames.ora see if it removes all special characters and it changes size.

    Concerns

  • 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

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

  • 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";
    
  • Irregular deadlines in tnsnames.ora

    Hi guys,.

    In my tnsnames.ora, there is a section like below:
    # Production
    QDBSP =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = qdb.lipt.com)(PORT = 1521))
        )
        (CONNECT_DATA =
          (SERVICE_NAME = qdb.amers.ime.tes.com)
          (SERVER = DEDICATED)
        )
      )
    It works perfectly, but after I changed the local name QDBSP to QDBSP2, when I try to connect via sqlplus, I get this:
    ORA-12545: Connect failed because target host or object does not exist
    When I change back to QDBSP, it works, change it to QDBSP2, fail again...

    If someone has been in the same situation? or clues?

    Thank you very much.

    Another idea:
    Maybe you have a sqlnet.ora in place with the entry

    NAMES. DIRECTORY_PATH = (hostname)

    and by the way, you have a host named QDBSP or QDBSP2?

    You can ping (not tnsping) QDBSP or QDBSP2

    Kind regards
    Uwe Hesse

    http://uhesse.WordPress.com

  • 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

  • Earphone & tnsnames.ora

    I'm confused verymuch is a client/server configuration.
    I need help you popular.
    I posted the two clients/server listener & tnsnames.ora,.
    that I set up.

    Server listener.ora (test1)

    SID_LIST_LISTENER =
    *(SID_LIST =*)
    *(SID_DESC =*)
    * (SID_NAME = PLSExtProc) *.
    * (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)*
    * (= Extproc program) *.
    *)*
    *(SID_DESC =*)
    * (GLOBAL_DBNAME = TEST1) *.
    * (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)*
    * (SID_NAME = TEST1) *.
    *)*
    *)*

    TEST1 =
    *(DESCRIPTION =*)
    * (ADDRESS = (PROTOCOL = TCP) (HOST = Desktop029.tvsil.com)(PORT = 1521)) *.
    *)*

    SID_LIST_ORCL =
    *(SID_LIST =*)
    *(SID_DESC =*)
    * (GLOBAL_DBNAME = TEST1) *.
    * (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)*
    * (SID_NAME = TEST1) *.
    *)*
    *)*

    LISTENER =
    *(DESCRIPTION =*)
    * (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC)) *.
    *)*

    ORCL =
    *(DESCRIPTION =*)
    * (ADDRESS = (PROTOCOL = TCP) (HOST = Desktop041.tvsil.com)(PORT = 1522)) *.
    *)*

    Server tnsnames.ora

    TEST1 =
    *(DESCRIPTION =*)
    * (ADDRESS = (PROTOCOL = TCP) (HOST = Desktop029.tvsil.com)(PORT = 1521)) *.
    *(CONNECT_DATA =*)
    * (SERVER = DEDICATED) *.
    * (SERVICE_NAME = TEST1) *.
    *)*
    *)*

    ORCL =
    *(DESCRIPTION =*)
    * (ADDRESS = (PROTOCOL = TCP) (HOST = Desktop041.tvsil.com)(PORT = 1522)) *.
    *(CONNECT_DATA =*)
    * (Service_name = ORCL). *
    *)*
    *)*

    EXTPROC_CONNECTION_DATA =
    *(DESCRIPTION =*)
    *(ADDRESS_LIST =*)
    * (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1)) *.
    *)*
    *(CONNECT_DATA =*)
    * (SID = PLSExtProc) *.
    * (PRESENTATION = RO) *.
    *)*
    *)*

    customer listener.ora (orcl)

    SID_LIST_LISTENER =
    *(SID_LIST =*)
    *(SID_DESC =*)
    * (SID_NAME = PLSExtProc) *.
    * (ORACLE_HOME = E:\Sample1oracle\product\10.2.0\db_2)*
    * (= Extproc program) *.
    *)*

    *)*

    LISTENER =
    *(DESCRIPTION_LIST =*)
    *(DESCRIPTION =*)
    * (ADDRESS = (PROTOCOL = TCP) (HOST = Desktop041.tvsil.com)(PORT = 1523)) *.
    * (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC)) *.
    *)*
    *)*

    ORCL =
    *(DESCRIPTION =*)
    * (ADDRESS = (PROTOCOL = TCP) (HOST = Desktop041.tvsil.com)(PORT = 1522)) *.
    *)*

    TEST1 =
    *(DESCRIPTION =*)
    * (ADDRESS = (PROTOCOL = TCP) (HOST = Desktop029.tvsil.com)(PORT = 1521)) *.
    *)*

    Customer tnsnames.ora

    LISTENER_TEST1 =
    * (ADDRESS = (PROTOCOL = TCP) (HOST = Desktop029.tvsil.com)(PORT = 1521)) *.


    TEST1 =
    *(DESCRIPTION =*)
    * (ADDRESS = (PROTOCOL = TCP) (HOST = Desktop029.tvsil.com)(PORT = 1521)) *.
    *(CONNECT_DATA =*)
    * (SERVER = DEDICATED) *.
    * (SERVICE_NAME = TEST1) *.
    *)*
    *)*

    ORCL =
    *(DESCRIPTION =*)
    *(ADDRESS_LIST =*)
    (* (ADDRESS = (PROTOCOL = TCP)(HOST = desktop041.tvsil.com) (PORT = 1522))) *.
    *(CONNECT_DATA =*)
    * (Service_name = ORCL). *
    *)*
    *)*

    EXTPROC_CONNECTION_DATA =
    *(DESCRIPTION =*)
    *(ADDRESS_LIST =*)
    * (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC2)) *.
    *)*
    *(CONNECT_DATA =*)
    * (SID = PLSExtProc) *.
    * (PRESENTATION = RO) *.
    *)*
    *)*

    user11345217 wrote:
    I'm confused verymuch is a client/server configuration.
    I need help you popular.
    I posted the two clients/Server Listener and tnsnames .ora,
    that I set up.

    Server listener.ora (test1)

    SID_LIST_LISTENER =
    *(SID_LIST =*)
    *(SID_DESC =*)
    * (SID_NAME = PLSExtProc) *.
    * (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)*
    * (= Extproc program) *.
    *)*
    *(SID_DESC =*)
    * (GLOBAL_DBNAME = TEST1) *.
    * (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)*
    * (SID_NAME = TEST1) *.
    *)*
    *)*

    TEST1 =
    *(DESCRIPTION =*)
    * (ADDRESS = (PROTOCOL = TCP) (HOST = Desktop029.tvsil.com)(PORT = 1521)) *.
    *)*

    SID_LIST_ORCL =
    *(SID_LIST =*)
    *(SID_DESC =*)
    * (GLOBAL_DBNAME = TEST1) *.
    * (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)*
    * (SID_NAME = TEST1) *.
    *)*
    *)*

    LISTENER =
    *(DESCRIPTION =*)
    * (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC)) *.
    *)*

    ORCL =
    *(DESCRIPTION =*)
    * (ADDRESS = (PROTOCOL = TCP) (HOST = Desktop041.tvsil.com)(PORT = 1522)) *.
    *)*

    Well, it's certainly the most, uh, listener.ora interesting I've ever seen... where did you find with this?

    Server tnsnames.ora

    TEST1 =
    *(DESCRIPTION =*)


    * (ADDRESS = (PROTOCOL = TCP) (HOST = Desktop029.tvsil.com)(PORT = 1521)) *.
    *(CONNECT_DATA =*)
    * (SERVER = DEDICATED) *.
    * (SERVICE_NAME = TEST1) *.
    *)*
    *)*

    ORCL =
    *(DESCRIPTION =*)
    * (ADDRESS = (PROTOCOL = TCP) (HOST = Desktop041.tvsil.com)(PORT = 1522)) *.
    *(CONNECT_DATA =*)
    * (Service_name = ORCL). *
    *)*
    *)*

    EXTPROC_CONNECTION_DATA =
    *(DESCRIPTION =*)
    *(ADDRESS_LIST =*)
    * (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1)) *.
    *)*
    *(CONNECT_DATA =*)
    * (SID = PLSExtProc) *.
    * (PRESENTATION = RO) *.
    *)*
    *)*

    customer listener.ora (orcl)

    A listener.ora on the client makes as much sense as a radiator on a 1965 Volkswagen. The listener is strictly a process on the server side. That's the whole reason to live is to 'listen' (where its name) for connection requests.

    Customer tnsnames.ora

    LISTENER_TEST1 =
    * (ADDRESS = (PROTOCOL = TCP) (HOST = Desktop029.tvsil.com)(PORT = 1521)) *.

    TEST1 =
    *(DESCRIPTION =*)
    * (ADDRESS = (PROTOCOL = TCP) (HOST = Desktop029.tvsil.com)(PORT = 1521)) *.
    *(CONNECT_DATA =*)
    * (SERVER = DEDICATED) *.
    * (SERVICE_NAME = TEST1) *.
    *)*
    *)*

    ORCL =
    *(DESCRIPTION =*)
    *(ADDRESS_LIST =*)
    (* (ADDRESS = (PROTOCOL = TCP)(HOST = desktop041.tvsil.com) (PORT = 1522))) *.
    *(CONNECT_DATA =*)
    * (Service_name = ORCL). *
    *)*
    *)*

    EXTPROC_CONNECTION_DATA =
    *(DESCRIPTION =*)
    *(ADDRESS_LIST =*)
    * (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC2)) *.
    *)*
    *(CONNECT_DATA =*)
    * (SID = PLSExtProc) *.
    * (PRESENTATION = RO) *.
    *)*
    *)*

    OK, let's clear up a few things.

    First of all, as mentioned, the listener is purely a process on the client side. There is therefore no use to a listener.ora on the client.

    Second, a single listener, listening on a single port, can serve several databases multiple editions in multiple oracle homes. He listens to a connection, it puts in place (on a different listening port on) and then is out of the picture for this connection. It establishes the connection, but not the support it. Your listener.ora is much more complex (dare I say convoluted) as necessary.

    On the client side (the server can also act as a client) and the tnsnames.ora is used to resolve an alias (a tns service name) to a real destination on the network.

    Suppose you have the following in your tnsnames.ora:

    larry =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = myhost)(PORT = 1521))
        )
        (CONNECT_DATA =
          (SERVICE_NAME = curley)
        )
      )
    

    Now, when you issue a connect, say like this:

    $> sqlplus scott/tiger@larry
    

    TNS will appear in your tnsnames.ora for an entry called "larry". Then, tns sends a request to (PORT = 1521) on (HOST = myhost) to aid (PROTOCOL = TCP), requesting a connection to (SERVICE_NAME = curley).

    Where's (HOST = myhost) on the network? When the request is passed to tns to the next layer in the network stack, the name "myhost" resolves to an IP address, either via a file 'hosts' local, through DNS, or possibly other mechanisms being used less. Alternatively, you can hard-code the IP (HOST = 123.456.789.101) in the tnsnames.ora.

    Then, the request arrives (port = 1521) on (HOST = myhost). If all goes well, there is a listener on myhost configured to listen on (PORT = 1521), and this listener knows (SERVICE_NAME = curley). If so, you'll be connected.

    What can go wrong?

    First, there may not be an entry for 'larry' in your tnsnames file. In this case, you get "ORA-12154: TNS: could not resolve the connect identifier specified" no need to go looking for a problem on the host, with the listener, etc.. If you cannot place a phone call because you do not know the number (can't phone your telephone book or can't find the group you're looking for it contained therein) you don't look at problems at the switchboard.

    Perhaps the entry for larry was found, but myhost could not be resolved to an IP address (for example there is no entry for myhost in the local hosts file). This will mean by "ORA-12545: Connect failed because target host or object does not exist.

    Maybe there is an entry for MyServer in the local hosts file, but it specified a bad IP address. This will mean by "ORA-12545: Connect failed because target host or object does not exist.

    Maybe the INVESTIGATION period was good, but there is no listener running: "ORA-12541: TNS:no listener.

    Maybe the INVESTIGATION period was good, there is a listener to myhost, but he is listening on a different port. "ORA-12560: TNS:protocol adapter error.

    Maybe the INVESTIGATION period was good, there is a listener to myhost, listening on the specified port, it's unknown SERVICE_NAME = curley. "ORA-12514: TNS:listener is not currently of service requested in connect descriptor.

  • 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

  • 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

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

  • .Mdb MS Access using ODBC connection failed to resolve ORA-12154 connection identifier

    Dear all,

    I am using the MS Access file .mdb as the source of my request for OWB. I need to connect to the ms access .mdb file first using odbc. This is the step that I do:

    1. define the ODBC connectifity

    Control Panel-> admin tools-> data-> system-> add DSN sources

    Select Microsoft Access Driver (*.mdb)-> Finish

    Data source name: msaccess-> database: Select-> location of the file .mdb (C:\MSAccess\att2000.. (MDB)

    2 configure the listener

    SID_LIST_LISTENER =

    (SID_LIST =

    (SID_DESC =

    (SID_NAME = CLRExtProc)

    (ORACLE_HOME = C:\app\Administrator\product\11.2.0\dbhome_1)

    (= Extproc PROGRAM)

    (ENVS = "EXTPROC_DLLS=ONLY:C:\app\Administrator\product\11.2.0\dbhome_1\bin\oraclr11.dll")

    )

    (SID_DESC =

    (SID_NAME = msaccess

    (ORACLE_HOME = C:\app\Administrator\product\11.2.0\dbhome_1)

    (PROGRAM = hsodbc)

    )

    )

    LISTENER =

    (DESCRIPTION_LIST =

    (DESCRIPTION =

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

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

    )

    (SID_DESC =

    (SID_NAME = msaccess

    (ORACLE_HOME = C:\app\Administrator\product\11.2.0\dbhome_1)

    (PROGRAM = hsodbc)

    )

    )

    ADR_BASE_LISTENER = C:\app\Administrator

    3 Configure Oracle HS

    File name Initmsaccess.ora

    #

    # HS init parameters

    #

    HS_FDS_CONNECT_INFO = msaccess

    HS_FDS_TRACE_LEVEL = 1

    #

    # Required for the non-Oracle system environment variables

    #

    #set < varenv > = < value >

    4 edit tnsnames.ora

    Msaccess =

    (DESCRIPTION =

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

    (CONNECT_DATA =

    (SID = msaccess)

    (SERVICE_NAME = msaccess)

    )

    (HS = OK)

    )

    5. create the database link

    create the link msaccess database using "msaccess";

    6 execute a query to test the connection

    SQL > select * from departments@msaccess;

    ERROR on line 1:

    ORA-12154: TNS: could not resolve the connect identifier specified

    I check the AMT using msaccess tnsping, it returns

    TNSNAMES adapter used to resolve the alias

    Try to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhos)

    (t) (PORT = 1521)) (CONNECT_DATA = (SID = msaccess) (SERVICE_NAME = msaccess)) (HS = OK)( )

    OK (120 MS)

    Any body knows how to solve this problem?

    Best regards

    Akhmad H Gumas

    Akhmad,

    just to confirm that I understood:

    You have an Oracle database and the bridge installed on your machine. The database and the bridge are all part of this Oracle_Home: C:\app\Administrator\product\11.2.0\dbhome_1

    Fix?

    When you look at your listener.ora file it lack a right bracket:

    (SID_NAME = msaccess

    => should be (SID_NAME = msaccess)

    Once done, please STOP and START the listener.

    Then open a command line window and type:

    Set ORACLE_HOME=C:\app\Administrator\product\11.2.0\dbhome_1

    Status of C:\app\Administrator\product\11.2.0\dbhome_1\bin\lsnrctl

    C:\app\Administrator\product\11.2.0\dbhome_1\bin\dg4odbc

    C:\app\Administrator\product\11.2.0\dbhome_1\bin\tnsping msaccess

    And copy and paste the output of each command.

    -Klaus

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

Maybe you are looking for