Cannot connect to database from a client machine (ORA-12154)

Hi,
I have installed Oracle XE Server on one of my machines and Oracle XE Client on another. When I try to connect to the server from the client using command line, error ORA-12154 is displayed. I am pasting the data of my .ora files so that you can point out the errors if any in these files.
Listener.ora
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
(PROGRAM = extproc)
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
(PROGRAM = extproc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(ADDRESS = (PROTOCOL = TCP)(HOST = abo-server.abosoftware.org)(PORT = 1521))
DEFAULT_SERVICE_LISTENER = (XE)
Sqlnet.ora
# This file is actually generated by netca. But if customers choose to
# install "Software Only", this file wont exist and without the native
# authentication, they will not be able to connect to the database on NT.
SQLNET.AUTHENTICATION_SERVICES = (NTS)
Tnsnames.ora
XE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = abo-server.abosoftware.org)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
I will be very happy if anyone can suggest me a solution.
Thanks & Regards,
Harshad

Harshad,
CONNECT system/[email protected]
This was not what I asked you to try, this cannot work ;).
I asked you to try :
connect system/[email protected]:1521/XE
I have also tried accessing the database homepage remotely using the url
http://abo-server.abosoftware.org:8080/apex
Per default only local access (from the same machine) is allowed via http.
You can change that either via the GUI (log in as SYSTEM):
Home>Administration>Manage HTTP Access
OR
connect as SYSTEM via sqlplus and run:
SQL>exec dbms_xdb.setListenerLocalAccess(false);###
It is documented at
http://download-west.oracle.com/docs/cd/B25329_01/doc/install.102/b25144/toc.htm#BABIJBHJ
And yes, you need to open both ports 1521 and 8080 to access it remotely.
~Dietmar.

Similar Messages

  • Trouble connecting to RDP from single client machine.

    I have a Server 2012 machine running remote desktop services.  Users at our branch offices connect to it over the corporate VPN.
    It has been running for over a year now with no significant issues, until this past Tuesday.
    I have exactly one client machine that immediately disconnects upon connecting to the machine.  This does not generate very helpful error codes - On the server side, just a generic 4005 - The Windows logon process has unexpectedly terminated.
    All other client machines can connect to the server without issue, including other client machines in that branch office.  Furthermore, attempting to simply remote desktop into another 2012 server produces the same results on this machine, while remote
    desktop to another windows 7 client machine seems to work just fine.
    I have seen some similar problems mentioned, but they typically involve a server that consistently fails with all clients, whereas I have a single client machine that suddenly cannot RDP to Server 2012 machines.  Any ideas?

    Hi,
    Thank you for posting in Windows Server Forum.
    Have you check with other user account on that client machine?
    Does ping response successfully to the server?
    Firstly please try to run sfc /scannow, check performance for that system, check event viewer whether can find any particular error\event id. For more information you can refer below article.
    Fix “The Windows Logon Process has Unexpectedly Terminated”
    Hope it helps!
    Thanks.
    Dharmesh Solanki

  • Cannot connect to DB from a client computer

    Hi,
    I installed 11gR2 last week and can access it from the DB server. However I cannot connect to the DB from my laptop :-(
    ==============================================================
    C:\Users\jchen>tnsping jchen_dev
    TNS Ping Utility for 32-bit Windows: Version 11.2.0.1.0 - Production on 20-MAY-2011 11:55:49
    Copyright (c) 1997, 2010, Oracle. All rights reserved.
    Used parameter files:
    C:\app\jchen\product\11.2.0\client_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP) (HOST = jchen-desktop.us.responsys.com)(PORT = 1521))) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = jchendev.us.responsys.com)))
    TNS-12535: TNS:operation timed out
    C:\Users\jchen>
    C:\Users\jchen>ping jchen-desktop.us.responsys.com
    Pinging jchen-desktop.us.responsys.com [172.19.192.132] with 32 bytes of data:
    Reply from 172.19.192.132: bytes=32 time=3ms TTL=64
    Reply from 172.19.192.132: bytes=32 time=1ms TTL=64
    Reply from 172.19.192.132: bytes=32 time=1ms TTL=64
    Reply from 172.19.192.132: bytes=32 time=1ms TTL=64
    Ping statistics for 172.19.192.132:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
    Minimum = 1ms, Maximum = 3ms, Average = 1ms
    C:\Users\jchen>
    ===========================================================
    If I do the same thing on DB server, I got:
    ========================================================
    [oracle@jchen-desktop ~]$ lsnrctl status
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 20-MAY-2011 11:49:29
    Copyright (c) 1991, 2009, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date 16-MAY-2011 10:52:05
    Uptime 4 days 0 hr. 57 min. 23 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
    Listener Log File /u01/app/oracle/diag/tnslsnr/jchen-desktop/listener/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=jchen-desktop.us.responsys.com)(PORT=1521)))
    Services Summary...
    Service "jchendev.us.responsys.com" has 1 instance(s).
    Instance "jchendev", status READY, has 1 handler(s) for this service...
    Service "jchendevXDB.us.responsys.com" has 1 instance(s).
    Instance "jchendev", status READY, has 1 handler(s) for this service...
    The command completed successfully
    [oracle@jchen-desktop ~]$
    [oracle@jchen-desktop ~]$ tnsping jchendev
    TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 20-MAY-2011 11:51:15
    Copyright (c) 1997, 2009, Oracle. All rights reserved.
    Used parameter files:
    /u01/app/oracle/product/11.2.0/db_1/network/admin/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = jchen-desktop.us.responsys.com)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = jchendev.us.responsys.com)))
    OK (40 msec)
    [oracle@jchen-desktop ~]$
    ================================================================
    I am totally lost... What is going on here?
    Any help is highly appreciated!
    James

    but I can ping the server and ssh to the server from my laptop...certain ports can be opened through FireWall while all others remain closed.
    Listener accepts initial connection request on Port #1521 & then completes request on random high port
    use of Wire Shark or similar packet sniffer can answer the mystery

  • Not able to connect to database from client

    Hi ALL.
    I have a standby database and i am trying to connect to the database from the client machine. But i am getting the below error
    C:\Documents and Settings\-adm-kuma3u-ram>sqlplus "sys/sysvgsm@vgsmstdby as sysdba"
    SQL*Plus: Release 10.2.0.3.0 - Production on Mon Aug 30 09:15:08 2010
    Copyright (c) 1982, 2006, Oracle.  All Rights Reserved.
    ERROR:
    ORA-01031: insufficient privileges
    If i use any user id to login i get the below error
    Enter user-name: dbuptime/dbuptime@vgsmstdby
    ERROR:
    ORA-01033: ORACLE initialization or shutdown in progress
    However i am able to login to the standby db from the host server and login with the above credentials. database is in mounted state.
    Please help
    Regards,
    Arun

    tns ping is working fine
    C:\Documents and Settings\-adm-kuma3u-ram>tnsping vgsmstdby
    TNS Ping Utility for 32-bit Windows: Version 10.2.0.3.0 - Production on 30-AUG-2
    Copyright (c) 1997, 2006, Oracle.  All rights reserved.
    Used parameter files:
    I:\d001\oracle\product\10.2.0\db_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
    OK (160 msec)

  • Cannot connect  remote database

    hi,
    i have my database on aix(oracle 10g rac) but i cannot access other database from my aix machine . i have entry of other database into my tns file.
    when i trying to connect
    username@sid
    i get tns problem.wt to do ?
    thxs

    ORA-12154:     TNS:could not resolve the connect identifier specified
    Cause:     A connection to a database or other service was requested using a connect identifier, and the connect identifier specified could not be resolved into a connect descriptor using one of the naming methods configured. For example, if the type of connect identifier used was a net service name then the net service name could not be found in a naming method repository, or the repository could not be located or reached.
    Action:     
    - If you are using local naming (TNSNAMES.ORA file):
    - Make sure that "TNSNAMES" is listed as one of the values of the NAMES.DIRECTORY_PATH parameter in the Oracle Net profile (SQLNET.ORA)
    - Verify that a TNSNAMES.ORA file exists and is in the proper directory and is accessible.
    - Check that the net service name used as the connect identifier exists in the TNSNAMES.ORA file.
    - Make sure there are no syntax errors anywhere in the TNSNAMES.ORA file. Look for unmatched parentheses or stray characters. Errors in a TNSNAMES.ORA file may make it unusable.
    - If you are using directory naming:
    - Verify that "LDAP" is listed as one of the values of the NAMES.DIRETORY_PATH parameter in the Oracle Net profile (SQLNET.ORA).
    - Verify that the LDAP directory server is up and that it is accessible.
    - Verify that the net service name or database name used as the connect identifier is configured in the directory.
    - Verify that the default context being used is correct by specifying a fully qualified net service name or a full LDAP DN as the connect identifier
    - If you are using easy connect naming:
    - Verify that "EZCONNECT" is listed as one of the values of the NAMES.DIRETORY_PATH parameter in the Oracle Net profile (SQLNET.ORA).
    - Make sure the host, port and service name specified are correct.
    - Try enclosing the connect identifier in quote marks. See the Oracle Net Services Administrators Guide or the Oracle operating system specific guide for more information on naming.
    If any of these is not working for you,post here your tnsname, listener and sqlnet.ora files.
    Aman....

  • Oracle command line to connect to a database directly from a client machine

    Hi,
    I need to connect from a Client machine to a database present on the Database server.
    Client: Windows 7 32 bit/ 64 bit
    Server where DB is installed: Windows 2008, Oracle 11.xg
    I need a command line option that will connect to a database say 'Test' from the command line. I want to put that command in a batch file / exe and call it from there.
    I have tools like SQL Developer and dbForge but was unable to do it. Could I have some help on this.
    I am a fresher with Oracle and I would appreciate detailed steps. Thanks very much in advance.
    Vincent

    Vincent,
    There is a few steps you want to perform, first of all tell me where is your client database server and where you want command line to use Oracle SQL command line.
    Regards,
    Hunain Khanani

  • Not able to connect RAC database from client

    Hi there
    Recently I have configured RAC in test environment. version 11.2.0.1. OS Redhat 5.9. Everything seems to be fine except not able to connect rac database from client.  Error is as under :
    C:\Documents and Settings\pbl>sqlplus test1/test1@myrac
    SQL*Plus: Release 10.2.0.1.0 - Production on Mon Nov 17 14:29:06 2014
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    ERROR:
    ORA-12545: Connect failed because target host or object does not exist
    Enter user-name:
    myrac =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = rac-scan)(PORT = 1521))
        (CONNECT_DATA =
          (SERVICE_NAME = racdb.testdb.com.bd)
    Please give me your valuable suggestion to  overcome the issue.
    Regards
    Jewel

    user13134974 wrote:
    ORA-12545: Connect failed because target host or object does not exist
    This error means that the hostname or IP address used in the TNS connection string, failed to resolve or connect.
    Your client is making two connections. The first connection is to the SCAN listener. It matches a db instance for your connection request based on service requested, available registered service handlers, load balancing, and so on. It then send a redirect to your client informing it of the handler for that service.
    Your client then does a second connection to this service (a local RAC listener that will provide you with a connection to the local RAC instance). This is what seems to be failing in your case.
    The SCAN listener's redirect uses the hostname of the server that the local listener is running on. Your client needs to resolve that hostname (of a RAC node) to an IP address. This likely fails.
    You can add the RAC node hostnames to your client platforms hosts file. The appropriate action however would be to ensure that DNS is used for name resolution instead.

  • Cannot connect to database via TNS

    Hello!
    I installed XE with default settings and have some trouble. I cannot connect to database via TNS. Two symptoms:
    1. I can connect with SQLPLUS system/pwd (locally, without tns name input), but CANNOT connect with SQLPLUS system/pwd@EX (WITH TNS NAME input).
    2. I cannot start Database Home Page.
    How to avoid this problem? Any ideas?
    DETAILS:
    PC configuration: Win2k+SP4, 512Mb, Outpost Firewall (disabled!), No another Oracle products being installed.
    TNSNAMES.ORA file:
    ************* BEGIN TNSNAMES *****************************************
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = pz)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    ************* END OF TNSNAMES *****************************************
    Listener status:
    ************* BEGIN STATUS *****************************************
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Prod
    ction
    Start Date 22-MAR-2006 17:27:15
    Uptime 0 days 1 hr. 8 min. 53 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Default Service XE
    Listener Parameter File D:\oracle\ora10xe\app\oracle\product\10.2.0\server\ne
    work\admin\listener.ora
    Listener Log File D:\oracle\ora10xe\app\oracle\product\10.2.0\server\ne
    work\log\listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=pz)(PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=8080))(Presentation
    HTTP)(Session=RAW))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
    Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "XEXDB" has 1 instance(s).
    Instance "xe", status READY, has 1 handler(s) for this service...
    Service "XE_XPT" has 1 instance(s).
    Instance "xe", status READY, has 1 handler(s) for this service...
    Service "xe" has 1 instance(s).
    Instance "xe", status READY, has 1 handler(s) for this service...
    The command completed successfully
    ************* END OF STATUS *****************************************
    NETSTAT -an results:
    ************* BEGIN NETSTAT *****************************************
    Proto Local Address Foreign Address State
    TCP 0.0.0.0:1521 0.0.0.0:0 LISTENING
    TCP 0.0.0.0:2298 0.0.0.0:0 LISTENING
    TCP 127.0.0.1:2455 127.0.0.1:8080 ESTABLISHED
    TCP 127.0.0.1:8080 0.0.0.0:0 LISTENING
    TCP 127.0.0.1:8080 127.0.0.1:2382 CLOSE_WAIT
    TCP 127.0.0.1:8080 127.0.0.1:2455 ESTABLISHED
    TCP 192.168.200.49:1521 192.168.200.49:2298 ESTABLISHED
    TCP 192.168.200.49:2298 192.168.200.49:1521 ESTABLISHED
    <truncated>
    ************* END OF NETSTAT *****************************************
    I found following error in SQLNET.LOG:
    *************** START LOG *********************************************
    Fatal NI connect error 12570, connecting to:
    (LOCAL=NO)
    VERSION INFORMATION:
         TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
         Oracle Bequeath NT Protocol Adapter for 32-bit Windows: Version 10.2.0.1.0 - Production
         Windows NT TCP/IP NT Protocol Adapter for 32-bit Windows: Version 10.2.0.1.0 - Production
    Time: 22-MAR-2006 17:28:59
    Tracing not turned on.
    Tns error struct:
    ns main err code: 12570
    TNS-12570: TNS:packet reader failure
    ns secondary err code: 12560
    nt main err code: 0
    nt secondary err code: 0
    nt OS err code: 0
    *************** END OF LOG *******************************************

    I successfully connect with XE client to another Oracle databases from LAN, including 8i and 9i databases.
    But cannot connect from another machines to my XE.

  • Error in connecting Oracle Database from JAVA application!!!

    Hi,
    I am trying to connect to the Oracle11g database server from the client machine using JAVA eclipse. I have installed the oracle client in the client machine. Once i try to execute the below code it was throwing below error:
    public class Dbconnect {
    public static void main (String[] args)throws Exception {
    try {
    Class.forName ("oracle.jdbc.driver.OracleDriver");
    String connectString = "jdbc:oracle:thin:@<IP Address>:1521:orcl";
    OracleDriver drivers = new OracleDriver();
    System.out.println(drivers);
    Connection connection = null;
    connection = (OracleConnection)DriverManager.getConnection(connectString,"ADMIN", "admin");
    System.out.println(connection);
    System.out.println("Connected to the database");
    Error:
    java.sql.SQLException: The Network Adapter could not establish the connection
         at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:412)
         at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:531)
         at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:221)
         at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:503)
         at java.sql.DriverManager.getConnection(Unknown Source)
         at java.sql.DriverManager.getConnection(Unknown Source)
         at DBConnect.main(DBConnect.java:15)
    Caused by: oracle.net.ns.NetException: The Network Adapter could not establish the connection
         at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java:359)
         at oracle.net.resolver.AddrResolution.resolveAndExecute(AddrResolution.java:422)
         at oracle.net.ns.NSProtocol.establishConnection(NSProtocol.java:672)
         at oracle.net.ns.NSProtocol.connect(NSProtocol.java:237)
         at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1042)
         at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:301)
         ... 7 more
    Caused by: java.net.ConnectException: Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(Unknown Source)
         at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
         at java.net.PlainSocketImpl.connect(Unknown Source)
         at java.net.SocksSocketImpl.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at oracle.net.nt.TcpNTAdapter.connect(TcpNTAdapter.java:141)
         at oracle.net.nt.ConnOption.connect(ConnOption.java:123)
         at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java:337)
         ... 12 more
    I am unable to connect using sqlplus as well ORA-12560: TNS:protocol adapter error
    Please advise me on how to resolve this issue..
    Thanks

    Prabhu wrote:
    We are not able to connect from SQLplus as we.. If i issue this command in Sqlplus from client machine 'sqlplus admin/admin@'(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=<Ip Adddress>)(PORT=1521)))(CONNECT_DATA=(SID=orcl)))'' it was throwing the below error.
    Error: ORA-12541: TNS:no listener
    Do i need add get any config details in the client machine..
    Could please tell me what is the general procedure to access the DB server from client machine..on DB Server issue following OS commands
    lsnrctl start
    lsnrctl status
    lsnrctl service
    COPT commands & results, then PASTE all back here

  • Sqlplus can't connect to database from within a Virtual PC

    Yes I know it's not supported but this question is for those people who want to help or have actually got it working :-)
    I have an XP machine with a 10gR2 database.
    I have a virtual machine on that XP machine which has the 10gR2 client installed on it.
    While the configuration doesn't necessarily make sense (normally you'd put the database in the VM ) it's done for testing reasons.
    All firewalls are off. The database is up and connections to is are fine from other machines.
    The virtual PC can ping the host and tnsping the listener without a problem but any attempt to connect using sqlplus gives an error
    ERROR:
    ORA-12154: TNS:could not resolve the connect identifier specified
    C:\Documents and Settings\Administrator>tnsping myc10a
    TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 06-AUG-2
    008 10:10:02
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Used parameter files:
    C:\oracle\product\10.2.0\client_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = pwrwks10
    20)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME
    = MYC10)))
    OK (20 msec)
    C:\Documents and Settings\Administrator>sqlplus cms/cms@myc10a
    SQL*Plus: Release 10.2.0.1.0 - Production on Wed Aug 6 10:10:06 2008
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    ERROR:
    ORA-12154: TNS:could not resolve the connect identifier specified
    It's quite obviously an issue with the virtual PC. Has anyone tried this and have they figured out how to get it to work?
    Regards,
    David

    ERROR:
    ORA-12154: TNS:could not resolve the connect
    identifier specified
    C:\Documents and Settings\Administrator>sqlplus
    cms/cms@myc10a
    SQL*Plus: Release 10.2.0.1.0 - Production on Wed Aug
    6 10:10:06 2008
    Copyright (c) 1982, 2005, Oracle. All rights
    reserved.
    ERROR:
    ORA-12154: TNS:could not resolve the connect
    identifier specifiedORA-12154 means "I looked in the TNSNAMES.ORA file I am trying to use (out of the potentially several on the machine) but I could not find an entry with "myc10a =", or "myc10a.{default_domain in the sqlnet.ora} ="
    All tnsnames.ora entries look like
    alias = description( ... )
    and it can not find your alias. You might have several tnsnames.ora files. Or your file is not correct. Or you also have a sqlnet.ora file that contains a default domain entry, which would be appended to any alias passed in without a '.domain'
    Suggest you post the tnsnames.ora and the sqlnet.ora
    (And yes, I have that configuration working.)
    Message was edited by:
    Hans Forbrich

  • Problem in connecting to database from webdynpro for java

    Hi
    I have a problem in connecting to database from webdynpro application
    I am using oracle 10 express edition as database and was able to connect to database from a java application.But  was unable to connect from a webdynpro for java.
    <b>I guess webdynpro for java uses open sql instead of vendor sql(I looked in the visual admin ,DB is using open sql) so unable to connect to database.Am i right.?</b>
    Do i need to make any settings in the visual admin to make it work?
    How to solve this problem.Please give me pointers
    Thanks
    Bala

    Hi,
    For connecting to Oracle, either you can use the normal JDBC connectivty code directly which is given below :
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@Oracle_server_ip:Oracle port:SID of the Database","user_name","password");
    Statement stmt = conn.createStatement();
    ResultSet rs = stmt.executeQuery("your query");
    In case you want to fetch data through ejbs, these are the steps to be followed :
    1) Open the J2EE perspective
    2) Create an EJB Module project
    3) Right click on ejbModule, create a new EJB (select your EJB type)
    4) While creating the ejb itself, you can add business methods by clicking ‘Next’ in the UI. Another option is after creating the ejb, write the method in the bean, then select the method from ejb-jar.xml -> <bean name> ->method. Right click and select ‘propogate to local & remote’.
    5) Double click on ejb-j2ee-engine.xml. select your bean and specify a Jndi name for eg: “MyJndi”.
    6) Right click on the EJB project and add ‘classes12.zip’ file (provided by Oracle) to it’s build path. (under libraries tab). Also check the same file under ‘Order & Export’.
    7) Create an Enterprise Application project.
    8) Right click on the EJB module project and select add to EAR project, then select the created EAR project.
    9) Right click on the EJB project, select ‘Build EJB Archive’
    10) Right click on the EAR project, select ‘Build Application Archive’
    11) Open the WebDynpro perspective, open a new project, right click on the project ->properties. Do the following configurations :-
    • Java Build path - select the EJB project from ‘projects’ , check the selected project under ‘Order & Export’
    • Project references – select the EAR project
    • WebDynpro references – select ‘sharing references’ tab, click add & make an entry as : <vendor>/<EAR project name without .ear extension>
    You can find the vendor name under ‘application-j2ee-engine.xml’ file of the EAR project. By default it is ‘sap.com’. So if my EAR project’s name is ABC, my entry would look like ‘sap.com/ABC’
    12) Now the configurations are over and the EJB can be invoked by writing the client code inside the webdynpro component. Like:
    InitialContext context = new InitialContext();
    Object obj = context.lookup("MyJndi");
    MyEJBHome home = MyEJBHome)PortableRemoteObject.narrow(obj,MyEJBHome.class);
    MyEJB mybean = home.create();
    int a = 0;
    a= mybean.add(10,15);
    wdContext.currentContextElement().setSum(a);
    where ‘MyEJB’ is my EJB name and ‘MyJndi’ is my JNDI name
    To connect to Oracle , you can write the usual Java code (given below) as a business methos of the ejb (similar to add() method in the example). And access it like mybean.<businessMethodName>().
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@Oracle_server_ip:Oracle port:SID of the Database","user_name","password");
    Statement stmt = conn.createStatement();
    ResultSet rs = stmt.executeQuery("your query");
    Extracted from Re: Webdynpro and Oracle
    http://help.sap.com/saphelp_webas630/helpdata/en/b0/6e62f30cbe9e44977c78dbdc7a6b27/frameset.htm
    May be of use to understand the VA Conf /people/varadharajan.krishnasamy/blog/2007/02/27/configuring-jdbc-connector-service-to-perform-database-lookups
    Regards
    Ayyapparaj

  • Cannot Connect to Database LS

    Hi, i have som problems connecting to database:
    Case 1:
    I've moved a IIS from one datacenter to another one. (installed all new)
    On VS, after install LS and all of the componets, can install good an APP, from my laptop. (using publish directly (webdeploy)) .
    And, installation creates a new database on my SQL (another machine ).
    I've installed my application on my laptop, and then when i open, application says Error Comunicating with database.
    From my VS, works fine.
    Scenario:
    My Location (one External IP)
    DataCenter (one external IP for IIS) (with NAT directly to WEB SERVER (has internal IP)) And SNAT to same IP External (NO FIREWALL )
    Datacenter (one External IP for SQL) (With NAT directly to SQL Server) And SNAT to same IP External (NO FIREWALL)
    All configuration on Web.Config calls externals IP .
    WEBSERVER AND SQLSERVER (has on the same network, with IP RANGE 192.168.10.X)
    I've tested to put in web.config internal address (and then open application directly from WEBSERVER) and works fine.
    Problem it's external connection, but... i can connect to database from VS and from SSMS from My laptop...

    HI Ivan,
    From your description above, here are some suggestions for you.
    1. Ping the external server using its IP address, and check whether it is fine;
    2. Check whether you use the correct connection string;
    If you have checked the items above, perhaps this is permission issue. You can use SQL Server authentication, and check whether it makes any difference.
    Best regards,
    Angie  
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Cannot connect to database host...

    Hello,
    First, I want to say i'm not so good in english that's why i'm apologies for this.
    I try to use Sun VDI, my computer doesn't work in 64 bits that's why i use this product in 32 bits so I'm in a product envionnement.
    I've installed A mysql 5 server in a 2003 server with php, phpmyadmin to see database, and when i install sun vdi in my solaris 10 i have this error message:
    Cannot connect to database host...ip:3306 as user root, but when i've install mysql i've just root for user and i use this he work, and i use this login to connect in my database.
    What can Have to do now? My port is really 3306 when i install mysql and the two machine is in the same network, ping work.
    Thanks for yours futur answers
    Regards,

    Select (1/2/0) : 1
    Specify an administrator password: (in my case) xxxxxxxx _(password of my sql)_ <------ This is wrong. This can be any desired admin password.
    specify a cluster signature: 7727kkkk
    again
    you can only connect to a remote MYSQL database in a 32-bit system.
    Continue? (y/n): y
    Enter the dns name of mysql server: _192.168.168.165_ <------- This is wrong. This is an IP address and not a DNS name (not sure if that is really a problem here).
    Enter the port of mysql server : 3306
    enter mysql priviliged administrator: root_ <------- This is wrong. Here you have to enter the admin user name of your database.
    enter mysql priviliged administrator password: xxxxxxxx_ <------- Here you enter the corresponding password for this user (so password of your MySQL account)
    Do you want to use a Socket secure layer (ssl) connection for '192.168.168.165'? (yn): n
    Cannot connect to database host 192.168.168.x:3306 as user 'root'
    Please make you shure connexion daitels you have provided are correct
    Where i have wrong please?

  • Cannot connect to database via JApplet

    Hi,
    I created a Java application which allows me to send information to my mysql database using the jdbc connector via a JFrame. However when i modified the file to be a JApplet the info will not sent and i cannot connect to the database? Any particular reason for this?
    I need it to be a JApplet so i can add it to a browser window.
    Code: ( java )
    private void save ()
    Connection conn = null;
    try
    Statement stmt;
    String userName = "root";
    String password = "PASSWORD";
    String url = "jdbc:mysql://localhost:3306/DATABASE";
    Class.forName ("com.mysql.jdbc.Driver").newInstance ();
    conn = DriverManager.getConnection (url, userName, password);
    System.out.println ("Database connection established");
    //Get a statement object
    stmt = conn.createStatement();
    stmt.executeUpdate( "INSERT INTO TABLE(Info i know to put in) VALUES('Values i know to put in')");
    catch (Exception e)
    System.err.println ("Cannot connect to database server");
    finally
    {if (conn != null)
              {try
                   {conn.close ();       
    System.out.println ("Database connection terminated");
    catch (Exception e) { /* ignore close errors*/  }
    As i said above it works fine as a JFrame but not as a JApplet. Any help would be great.
    Thanks G

    Your error reporting is not good. You print a meanningless message or ignore the error.
    Print the stacktrace in the catch blocks.
    Change the code, rerun it and then check the Java Console for output.
    I'm guessing you'll see a security error. Unsigned applets can't access the client file system. If so, sign the applet.

  • Cannot connect to Database attempts hang (no errors)

    hi, i have oracle 9.2 on solaris 5.8
    weirdly, today we could not connect the db anymore. even these does not work on the server:
    sqlplus /nolog
    SQL> connect /as sysdba
    sqlplus "/ as sysdba"
    sqlplus system/**
    ALL attemps just hang , no errors.
    what can i do?
    i think the only way is reboot the machine?
    any ideas?

    here is the output
    bash-2.05# vmstat 2 20
    kthr memory page disk faults cpu
    r b w swap free re mf pi po fr de sr f0 m0 m1 m2 in sy cs us sy id
    0 0 0 1940080 1012952 9 25 51 0 0 0 0 0 7 5 7 729 777 245 15 3 82
    0 0 0 1828840 855200 0 4 0 0 0 0 0 0 386 7 387 5626 62112 3614 25 40 35
    0 0 0 1828840 855200 0 0 0 0 0 0 0 0 384 7 384 5611 62299 3786 23 40 37
    0 1 0 1828840 855200 0 0 0 0 0 0 0 0 372 6 373 5582 63459 3754 24 39 37
    0 2 0 1828840 855200 0 0 0 0 0 0 0 0 391 7 391 5640 63245 3976 23 38 40
    0 0 0 1828840 855200 0 0 0 0 0 0 0 0 374 18 374 5789 61626 3760 24 37 3
    9
    0 0 0 1828840 855200 0 0 0 0 0 0 0 0 373 7 373 5536 62333 3888 20 47 34
    0 0 0 1828840 855200 0 0 0 0 0 0 0 0 376 7 376 5585 62463 3594 24 42 35
    0 0 0 1828840 855200 0 0 0 0 0 0 0 0 354 8 354 5364 61787 3396 24 41 36
    0 0 0 1828840 855200 0 0 0 0 0 0 0 0 378 7 378 5616 61667 3777 18 47 35
    0 0 0 1828840 855200 0 0 0 0 0 0 0 0 364 11 364 5494 63075 3616 24 40 3
    6
    0 2 0 1828840 855200 0 0 0 0 0 0 0 0 388 8 388 5733 62161 3947 22 39 39
    0 0 0 1828840 855200 0 0 0 0 0 0 0 0 388 8 388 5702 61873 4142 22 43 35
    0 1 0 1828840 855200 0 0 0 0 0 0 0 0 383 7 383 5584 63365 3815 28 33 40
    1 0 0 1828840 855200 0 0 0 0 0 0 0 0 387 7 387 5643 63920 3846 29 29 41
    0 0 0 1828840 855200 0 0 0 0 0 0 0 0 378 10 378 5650 61793 3914 23 40 3
    6
    0 0 0 1828840 855200 0 0 0 0 0 0 0 0 388 7 389 5644 62798 4064 24 36 40
    0 0 0 1828840 855200 0 0 0 0 0 0 0 0 377 11 377 5592 62206 3941 23 47 3
    0
    0 0 0 1828840 855200 0 0 0 0 0 0 0 0 379 8 380 5605 61121 3959 21 50 29
    kthr memory page disk faults cpu
    r b w swap free re mf pi po fr de sr f0 m0 m1 m2 in sy cs us sy id
    0 0 0 1828840 855200 0 0 0 0 0 0 0 0 379 7 379 5511 61964 3549 19 46 35
    Also, i cannot connect the database, i dont have any active connections, cannot run any sql statements..

Maybe you are looking for

  • I can't open pdf attachments sent by email.

    I have been sent pdf attachments lately to my email account but cannot open them in either my MacBook Pro or my wife's...but they open if I try in my Dell computer.  I have downloaded Acrobat Reader and java runtime...but to no avail. Is there a secr

  • Logic needed in query

    Hi all i have a table with columns SUN MON TUE WED THU FRI SAT Y................ ........Y.................. i need to selected the column SUN which is Sunday, along with this i need to select the columns MON,TUE THU is having value so i don't needed

  • Is it possible to create new shortcuts for pages esp footnote

    Hi Is it possible to create shortcuts in Pages? Hidden preferences? I'd like to have something for inserting footnotes. Via thirdparty apps? Thanks for hints Regards Martin G4 Quicksilver 800, powerbook 15'', 1,33   Mac OS X (10.4.8)   1,25 RAM and 7

  • Can I store photos and music in I cloud and relieve space on my hard drive?

    can I store photos and music in I cloud and relieve space on my hard drive?

  • Help required with an image

    Hi all, I wonder if someone can help me with the following issue. If you see the attached image in the top left hand corner their is a square box which is a different shade to the rest of the header. I need to rectify this and blend it in with the re