TNS Name

I installed Application Server and
While trying to follow the instructions installing the Virtual Shopping Mall from the Tutorial
I am told to run the VSM-BC4J/config/webstore.sql script - I am told to enter the Password and TNS Name - when it runs it asks for:
systempassword:
tnsname:
No matter what I enter I seem to get
ERROR:
ORA-12154: TNS:could not resolve the connect identifier specified
Can someone give me some good example(s) of TNS Names - - - I know I have the proper password, but maybe I am not understanding the request for TNS Name
Thanks,
Paul

Hi Paul,
You can check if your Net Services is able to reach the Listener for a Database, by using the TNSPING utility.
Service Name or TNS Name are synonyms for the Global Database Name; It is usually a unique name within your domain. E.g; My Database has a Service Name : Sandeep.idc.com.
You can use TNSPING like this:-
TNSPING your_database_service_name
If everything is fine, you will see something like this:-
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = sseshan.idc.com)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = SANDEEP.idc.com)))
OK (30 msec)
You can then use the Service Name in your Scripts.
Good Luck !
Regards,
Sandeep

Similar Messages

  • TNS names can't be resolved

    Hi All!
    I try to connect to a database and the error message that TNS names can't be resolved. tnsnames.ora is copied from the PC where the connection works. Only one instance of Oracle client (9.2) is installed. I tried to add a TNS names in Net Assistent. It worked and the test within the assistent was successfull. The tnsnames.ora was also adjusted. But! I don't see the service in NetManager and I can't add any service there. The NT user is a member of the administrator group. I also try to connect using SQL plus, Excel, Enterprice manager - it doesn't work. Any ideas?
    Is there any Windows service for the TNS? How it calls? I tried to check it with lsnrctl status but the command is not exist. Only client is installed on the PC.
    Thanks,
    Andrej

    If you copied it from another PC then check that you have the correct entries in sqlnet.ora
    For instance, in sqlnet.ora, if the parameter NAMES.DEFAULT_DOMAIN=yourserver_name.domain_name is not in use (commented out) and your net service name in[b] tnsnames.ora is mydb.yourserver_name.domain_name , when you try connecting with mydb as the connect string, you will get that error.
    To resolve that, you either enter the connect string as mydb.yourserver_name.domain_name or uncomment NAMES.DEFAULT_DOMAIN in sqlnet.ora(add it if it does not exist) or change the net service name intnsnames.ora to mydb

  • Local Database, TNS Names & ORA-12541: No Listener

    I am trying to get IFS working on our new Windows 7 machine and the entire department is scratching it's head right now.
    I have gotten Oracle 11.2.0.1 installed and finally being seen by the ODBC thanks to the past threads on the forum mentioning the System Environment Variable. However, now I need to be able to get the program to sync the information that I can pull from "MPRDSP6", the one working ODBC connection right now.
    In the past with Oracle XE we had the following in our TNS Names file:
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = COMPUTER.company.local)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    The XE was created whenever Oracle XE was installed and we just added in our MPRDSP6 at the end of the TNS Names file. This was what we used when making the local copy for our personell that would travel and need access to the database.
    However, with Oracle 11.2.0.1, there was no TNS Names file whenever it installs and I had to create it --> Inputting our XE entry and the other, MPRDSP6.
    Upon trying to 'Test Connection' in the ODBC screen I get:
    Unable to Connect
    SQLState=S1000
    [Oracle][ODBC][Ora] ORA-12541: TNS:no listener
    Whenever I try to sync the MPRDSP6 with the local copy of it (named local_db), I am getting an error from the program saying:
    Could not find the Local Oracle Data Folder. Please make sure your Local Oracle is running and that you have set the Local Database Creator.
    I am assuming this is simply because there is actually no database in existance: it is just in the TNS Names.
    I am Running Windows 7 x64
    Forgive me if this is a very simple fix as I am completely new to the world of Oracle.
    Thanks in advance for any help!

    Having the same issue, trying to connect IFS Sales and Marketing. In my case, I am using Oracle Express 10g, Windows 7 32-bit. My ODBC DSN can find the "host" server, but does not seem to find the local Oracle Express instance.

  • Error Could not connect to the database - ora-12545: tns:name lookup failure

    Hi,
    I am a tech at a failing company. Unfortuneatly some users still need ADI installed and working with very limited resources to troubleshoot oracle. I am getting the error - ( Could not connect to the database - ora-12545: tns:name lookup failure )when the user tries to log on to ADI. Any suggestions? I would really appreciate it. We are on Windows NT on an NT network. Oracle 8.05 client installed and ADI 6.0.
    Thanks, Mary

    Copy the tnsname.ora file from Oracle Database serve onto the client PC.
    Path: %Oracle_home%\net80\admin\
    Send me a mail if there is any other issues
    Regards
    Oluseyi Funmi Oduberu
    Oracle Consultant
    Email:[email protected]
    Hi,
    I am a tech at a failing company. Unfortuneatly some users still need ADI installed and working with very limited resources to troubleshoot oracle. I am getting the error - ( Could not connect to the database - ora-12545: tns:name lookup failure )when the user tries to log on to ADI. Any suggestions? I would really appreciate it. We are on Windows NT on an NT network. Oracle 8.05 client installed and ADI 6.0.
    Thanks, Mary

  • Multiple TNS Names files cause duplicates in TNS Alias drop down

    SQL Developer 1.5 EA3, JDK 1.6.0_04, Win XP SP 2
    In EA3 we are still getting duplicates in the TNS Network Alias drop down box where there are multiple files starting with TNSNAMES. in the first location SQL Developer finds TNS Names files. I know it has been discussed before (ie 1.2.0 reads TNSNAMES.ORA file multiple times and duplicates values in Alias but can anyone explain why we need to look for more than one file starting with TNSNAMES. or indicate any other product that uses similar logic to find the correct TNS Names file?
    theFurryOne

    I have multiple versions of oracle clients and a tns_names file in each directory.
    I agree with the last comment about a preference option of which tnsnames file to use.
    Right now my problem is not seeing duplicates, but not seeing all of the SID's listed in my tnsnames file, and because of the above I can't tell which tns_names file it is using. So instead I am editing them all.
    Message was edited by:
    user468179

  • Configure TNS Name Service

    How configure TNS Name Service in Server and Client?
    Thanks.

    On the server you may not need that, on the client.... neither...
    On the server you need the listener (which you should already have), on the client you can use the easy connect method, which does not require any configuration :
    sqlplus username/password@<servername or IP address>:<port>/<sid>
    for example
    sqlplus scott/[email protected]:1521/orcl
    the port is not mandatory if it's 1521.
    Of course you can configure TNS aliases within tnsnames.ora, both on client and server, here an example :
    XE =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
        (CONNECT_DATA =
          (SERVICE_NAME = XE)
      )See http://download.oracle.com/docs/cd/B19306_01/network.102/b14212/naming.htm#i507143

  • TNS Name problem on install

    I'm doing an install on Win2k, Oracle 8.1.6.
    I can't log in to anything. TNS name error etc. How can I solve this?
    -Mark

    (Sorry,I speak English a little.)
    On the plathome Windows NT/2000,Oracle816 supports Ne8 Advanced Security,called "NTS".
    And OUI create Default "sqlnet.ora" file when installing,
    [sqlnet.ora]
    sqlnet.Authentication_service=(NTS)
    But,Many Networks hasn't create CA for NTS,
    when installing ORACLE 816.
    So,Many Errors occurs.
    check below sqlnet.ora sample and modify any relayed files,such as tnsnames.ora,listener.ora.
    [sqlnet.ora]exsample
    names.default_domain=world
    names.directory_path=(TNSNAMES)
    #sqlnet.Authentication_service=(NTS)
    I recommend, "You don't creating Database when install."
    After finishing Install,modify Net8 Files,
    then start creating database.
    --I think this is best way.
    null

  • ORA-12545: TNS:name lookup failure ????

    Hello.
    I installed Oracle805, setup 2 patches.
    Now I got such problems:
    1. I could login as internal, sys,system via svrmgr. But couldn't
    loggin like scott/tiger :((
    All this I do logging to linux like Oracle( owner of Oracle :) )
    2. Connecting (afteer startup, lsnr start) to Oracle instance
    either internal, sys, system or scott shows such error:
    SQL*Plus: Release 3.3.2.0.2 - Production on Fri Apr 02 14:25:51
    1999
    Copyright (c) Oracle Corporation 1979, 1994. All rights
    reserved.
    ERROR: ORA-12545: TNS:name lookup failure
    Enter user-name: scott/tiger@805
    ERROR: ORA-12545: TNS:name lookup failure
    HELP PLS.
    null

    ANdrey (guest) wrote:
    1. I could login as internal, sys,system via svrmgr. But
    couldn't loggin like scott/tiger :((
    All this I do logging to linux like Oracle( owner of Oracle :)
    2. Connecting (after startup, lsnr start) to Oracle instance
    like scott only (no any users exist, new DB.)shows such error
    ERROR: ORA-01017: invalid username/password; logon denied
    HELP PLS.
    P.S. In
    LSNRCTL> status
    extproc
    DEDICATED server established:0 refused:0
    LOCAL SERVER
    DISPATCHER established......
    D))) <machine: ..., pid: ...>
    (ADDRESS=(PROTOCOL=ipc)(DEV=16)(KEY=#16229.1))
    the command coml. successfully
    null

  • Multilple TNS names files used in Connection Network Alias Dropdown

    My network's TNS names directory has the latest tnsnames.ora file and also has several older versions named "tnsnames.ora.<date>". In SQL Developer Connections it appears all of them are read to create the Network Alias dropdown list. You can test this by making a copy of your tnsnames.ors file called tnsnames.ora.old1, etc. My guess is that SQL Developer is reading "tnsnames.ora*", not "tnsname.ora".
    But I'm just a user, not a DBA admin. Is this a feature or a bug?
    Its also possible that keeping the renamed old versions in the TNS names folder instead of a subfolder is just bad form and I need to get that behavior changed internally.
    I'm running 1.5.4.59.40. I just installed patch 2 and the behavior is the same.
    Edited by: user3457425 on May 26, 2009 5:15 PM

    It's a feature. I think I remember some guys asking for support for this because some setups use various tnsnames.* files, but eventually a lot more users are complaining about this. Sqldev 2.0 will probably have changes in this area, so let's hope we will finally be able to choose our location manually...
    Regards,
    K.

  • Can't Connect to Database - TNS Names Trouble

    Hi all, this is my first posting, so bear with me as I struggle
    through trying to word it in a logical manner that you can
    understand! I'm definitely not an Oracle guru, but some of my
    job duties require me to interact with several databases -- so I
    know enough to get by. After the battle with the Nimda virus, my
    system could not find the files to start SQL Plus and the icon
    had turned to generic. In an attempt to try and resolve this, I
    downloaded and installed the 8.17 client. I set up several
    connections through Net 8 config asst, but some of them would
    not work. Here's additional background info: we are moving to a
    new clustered DB configuration. The old config was numerous
    individual databases, but the new DB incorporates all the old
    ones (just separate accounts). The funny thing is I have no
    problem setting up connections to the old databases, but have
    had zero luck connecting to any account on the new DB. I have
    coworkers that are using an older version of SQL PLus and SQL
    Net Easy Config and they don't have any problems connecting to
    the new DB. We double checked there TNS names against mine and
    found no differences. Also, I still have the old version of
    Oracle loaded, because it wouldn't let me uninstall it -- I
    loaded the 8.17 in a new home. I'm desparate, so any help at
    all will be very appreciated. Sorry for such a long post.
    Thanks,
    SS

    Steve,
    This sounds like a job for Oracle Support. There are so many
    factors here, and if the tnsnames.ora files are the same, it
    will need some industrial strength investigation.
    Alison
    iSQL*Plus Team

  • Tns name error.

    tns name error . unable to login to presnetation services. Any idea on how to restore original tns name and how to get the original tns name?

    hi BI,
    Have u uninstalled the DB ?
    . unable to login to presnetation servicesIS bi server fine ? If yes are u able to view the data from tables?
    Thanks,
    Saichand.v

  • TNS Name issue while installing the Peoplesoft 9.1 and peopletools 8.52

    Hi All,
    I have been installing the peoplesoft 9.1, tools 8.52, OS: Windows 7, 64-bit, oracle 11g release 2.
    I have been following the installation guide given by Peoplesoft. So far so good. but i am having problem at TASK 6A-14.
    It is asking me to login to app designer in bootstrap mode. So i invoked the data mover and gave both the username and password same "sysadm".
    I have got the following error
    "File: SQL Access ManagerSQL Error. stmt#2 Error Position: 0 Return 12154 - ORA-12154: TNS:could not resolve the connect identified specified."
    So i went to C:\app\windows7\product\11.2.0\dbhome_1\NETWORK\ADMIN\tnsnames.ora and added the following.
    FSDMO91 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = FSDMO91)
    but again, i got the same error.
    My Configuration manager has "Datbase Driver DBBIN" has the path as "C:\app\windows7\product\11.2.0\dbhome_1\BIN".
    Please help me solve this problem.

    Hi Nicolas, thanks for the prompt reply.
    when i did the TNSPING FSDMO91 here is the output.
    C:\Users\windows7>TNSPING FSDMO91
    TNS Ping Utility for 64-bit Windows: Version 11.2.0.1.0 - Production on 15-DEC-2
    +011 10:40:55+
    Copyright (c) 1997, 2010, Oracle.  All rights reserved.
    Used parameter files:
    C:\app\windows7\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhos
    t)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = FSDMO91)))
    OK (0 msec)
    C:\Users\windows7>
    when i do try login using the SQL Plus
    SQL*Plus: Release 11.2.0.1.0 Production on Thu Dec 15 10:43:27 2011
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    Enter user-name: sysadm/sysadm@FSDMO91
    ERROR:
    ORA-12514: TNS:listener does not currently know of service requested in connect
    descriptor
    Enter user-name: system/manager@FSDMO91
    ERROR:
    ORA-12514: TNS:listener does not currently know of service requested in connect
    descriptor
    Enter user-name:
    but when i do only system/manager (no @FSDMO91)
    SQL*Plus: Release 11.2.0.1.0 Production on Thu Dec 15 10:46:08 2011
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    Enter user-name: system/manager
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL>
    when i do lsnrctl start
    C:\Users\windows7>lsnrctl start
    LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 15-DEC-2011 10:47
    +:52+
    Copyright (c) 1991, 2010, Oracle.  All rights reserved.
    TNS-01106: Listener using listener name LISTENER has already been started
    C:\Users\windows7>

  • TNS name resolution mystery - has anyone seen this one???

    'Afternoon everyone,
    Has anyone seen a problem like this? I'm trying to access a (remote) database from a PC. I can successfully test the connection to the DB via the Net8 Assistant, but when I try to get there via sqlplus (with the same service name), I'm getting an "ORA-12154 - TNS: could not resolve service name" error.
    Huh?
    Thanks,
    Len DiMaggio
    [email protected]

    It seems you have multiple tnsnames.ora files. You can set TNS_ADMIN to point to the oracleDB home and it should be ok.

  • SQL Developer 2.1.0.63 duplicate TNS names displayed in the Connection Type

    I'm running SQL Developer 2.1.0.63. The New Connection window displays duplicate Alias names when you select the Connection Type of TNS. I've made sure that the TNS_ADMIN variable name is all in upper case in the Environment Settings but I haven't had any luck eliminating the duplicates. I've tried filling in the TNSNames directory on the preferences setting but this didn't help either. I've also checked my system and I don't have multiple version of TNSNAMES (we keep a public copy on a network share). Does anybody have any suggestions?
    We also have SQL Developer 1.5.5 and we don't have this duplicate problem in that version.

    I found the problem, it was in the TNSNames file. SQL Developer 2.1 is more sensitive to a messy TNSNames file. This past fall we reworked our environment with new hardware and OS software, during the multiple rounds of testing we created various temporary test databases. The entries that were added to the TNSNames file never got cleaned up and in some cases were added in a random fashion. After I went in and cleaned up some of the old, dead entries I noticed that there were duplicate entries for one of our Development databases. After I removed the duplicate entry in the TNSNAMES file all of the duplicates displayed on the Connection Type screen disappeared. Problem solved.

  • JDBC 10g - Support for TNS name entries

    Hello,
    I found the following statement:
    JDBC-Thin support for TNSNAMES.ORA Lookup: similar to JDBC-OCI, both client-side and server-side JDBC-Thin can now read the local TNSNAMES.ORA file to resolve service name or TNS alias. Consequently Java in the database will also be in position to reference external Oracle database, using service name. See the JDBC documentation for more details.
    in the Oracle white paper "What’s New for Java DB, JDBC, and Database Web Services in Oracle Database 10g". However, I have found several statments/notes in the accompanying 10g JDBC documentation that appear to directly contradict the statement above. For example, the following note:
    Note:
    Because the JDBC Thin driver can be used in applets that do not depend on an Oracle client installation, you cannot use a TNSNAMES entry to set up a Thin driver connection.
    Does anybody know if the JDBC Thin driver supports connection via a TNSNAMES entry? If so, can you direct me to the documentation on how to use it.
    FYI, I have managed to establish a connection using a TNS alias and JDBC-OCI as follows:
    OracleDataSource ods = new OracleDataSource();
    ods.setTNSEntryName("MyTNSAlias");
    ods.setUser("scott");
    ods.setPassword("tiger");
    ods.setDriverType("oci8");
    Connection conn = ods.getConnection();
    However, if I set driver type to "thin" instead of "oci8", I get the following error:
    Exception in thread "main" java.sql.SQLException: Io exception: SO Exception was generated
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:333)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:404)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:468)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)
    at java.sql.DriverManager.getConnection(DriverManager.java:525)
    at java.sql.DriverManager.getConnection(DriverManager.java:140)
    at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:169)
    at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:108)
    at prototype.TNSTest.main(TNSTest.java:36)
    Thanks in advance.

    Hi,
    I wrote the white paper in question and am in position to confirm that in 10.2, JDBC-Thin does indeed support tnsnames.ora; you need to specify the location (i.e., directory) of the tnsnames.ora file in the oracle.net.tns.admin system property
    java -Doracle.net.tns_admin=$ORACLE_HOME/network/admini have working examples in my book.
    I'll have it fixed in the online doc, our printed doc is sometimes out of sync.
    Kuassi http://db360.blogspot.com

Maybe you are looking for

  • How to reset my login password for macbook air

    How can I reset my login password for my laptop? For some weird reason, my login password no longer works. I now have to get on by logging into guest and then clicking on my username.

  • Reg: root.sh script in grid instillation

    Hi, Oracle Version : 11.2.0.1 Operating system : CentOS Here i am installing 11gR2 rac with 4-nodes every thing went fine but when i execute the below script /u01/11.2.0/grid/root.sh I am getting this below error. [root@drc3s5 bin]# /u01/11.2.0/grid/

  • Choosing External Display

    Hi, I'm new here and hope you will forgive me for posting a question that I am sure has been discussed before. I'm in a real hurry though... I have an iBook G4 1.2Mhz, 12", running OS 10.3.9 Since I started with photography as a serious hobby, the di

  • AD authentication for routed local subnet

    Good day, I'm testing the addition of a routed local subnet to existing network and seem to be experiencing trouble with AD authentication. Primary network: Subnet: 192.168.0.0/24 Default GW: 192.168.0.1 PDC/DHCP/DNS1: 192.168.0.2 BDC/DNS2: 192.168.0

  • Product Locker corruption Ref No. E61233659

    My product locker is corrupted showing duplicated items and items with black box with sony displayed in the black  with duplicated registered dates.  Some items I can delete but at the bottom of the list it just adds back another duplicated item.  Ot