Cannot connect Oracle Form to my Oracle 10g Database

Hi Guru,
Could you guys help me out on below? I have been running Oracle 10g personal XE edition and Sql Developer on Windows XP. I am able to connect using TNS as connect type when I am connecting from my SQL Developer to my database.
Today, I installed Oracle Forms, Form builders. I choose connect and provide these info
username: my username
password: my password
Database: XE
I received ORA- 12154 TNS: could not resolve the connect identifier specified.
Anyone I doing something wrong?

Hi,
What is your forms version (The location of tnsnames.ora is different for 11g).?
As Baig mentioned, you first need to create an alias in the tnsnames.ora file, like
mydb =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP) (HOST = <your_host_name_where_db_is_installed>)(PORT = <port_default_is_1521>))
    (CONNECT_DATA = (SID = <SID_In_your_case_i_suppose_it_is_XE>))
  )Then, from forms you connect like
username: my username
password: my password
Database: mydb <== This is the alias you've created in your tnsnames.ora as above
HTH
-Arun

Similar Messages

  • JSP Code to connect Oracle 10g Database

    Can some give the JSP code for connecting Oracle 10g database

    hi
    First u have to get ojdbc1.4.jar file ,,,, it is the driver for the oracle
    then use the following code :
    import java.sql.*;
    import java.util.*;
    public class connectionBean
         Connection con;
         Statement statement;
         connectionBean()
              try
            Class.forName("oracle.jdbc.driver.OracleDriver");
            con = DriverManager.getConnection("jdbc:oracle:thin:@127.0.0.1:1521:Xe","hr","hr");
            statement=con.createStatement();
              catch(Exception cnfe){     }
         public void testMethod()throws  SQLException{
              ResultSet rs=statement.executeQuery("select * from COUNTRIES");
              while(rs.next())
              System.out.print(rs.getString(1));
         public static void main (String args[])throws  SQLException
              connectionBean cb=new connectionBean();
              cb.testMethod();
    }hope this will help
    Good luck
    Mohammed

  • Cannot start Oracle 10g database console service

    Hello,
    I was given a machine with Oracle 10g standard edition already installed.
    I had problem with starting both the TNS and OrclDBConsole services.
    After modifying the HOST Name in both the tnsnames.ora file and the listner.ora file i was able to start the TNS service. But I am still having problem with starting the OrclDBConsole service.
    Any idea or suggestion what's wrong?
    Thanks for the help!
    Mitra

    The DBConsole may also be started as a service.
    The service for DBConsole is
    Oracle<oracle_home><SID>DBConsole

  • Cannot connect Oracle 10 with Oracle Forms 6i

    Hi,
    I am trying to connect to oracle 10g database (Release 10.1.0.5.0) from Froms 6i (Version 6.0.8.11.3) but no luck.
    As soon as I try to connect to Oracle 10, the forms builder is closing itself down. All I get is the useless windows error message saying that "Oracle Forms Designer has encountered a problem and needs to close."
    It may be that the version of forms I am using doesn't support Oracle 10. Anyone has encountered this and if so knows a workaround for this problem.
    Thanks very much.
    Huseyin

    Try to install
    Forms [32 Bit] Version 6.0.8.23.2 (Production)
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    (patch 18)
    Sorry W1zard
    Edited by: Rosario Vigilante on Jan 26, 2009 3:41 PM

  • I am trying to connect oracle develper suit form with oracle 10g database

    i am trying to connect oracle develper suit form with oracle 10g database
    but when i pass username and password
    this message apperars
    ORA-12560:TNS:protocol adapter error
    every time even i try to connect Report or Designer each time same problem
    making no connection .
    can any body help can help me to reslove this prblem
    Arshad khan

    Duplicate thread:
    Re: connection problem

  • ERROR: Install cannot verify the oracle 10g Database

    I just completed installation of the SES 10.1.8.2 version and am now trying to apply the 10.1.8.4 Service Pack. After the OUI screen asks for my sys password, I click on Next and receive a popup error message that reads,
    Install cannot verify the oracle 10g Database. Please ensure that the database and its listener are running and please verify that the information you entered is correct.
    The installer log file (installActions2010-04-15_08-56-19PM.log) shows this:
    *** Specify the SYS Password Page***
    Calling Query EmQueries4.2.2 checkUserExists
    schemaName = SYS
    schemaPassword = Protected value, not to be logged
    connectString = (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=HostNodeName_1)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=Ses01.HostNodeName_1)))
    userName = EQSYS
    Query Returned: ERROR:Exception occured while connecting to database. Please check the connection details of the database you specified and retry.
    Io exception: Got minus one from a read call
    Error:*** Alert: Install cannot verify the Oracle10g Database. Please ensure that the database and its listener are running and please verify that the information you entered is correct. ***
    User Selected: Yes/OK
    ===
    I've verified that I can login as EQSYS using sqlplus. Also tested that I can login as sys, too. I've also tested the login using the Admin console and that is fine, too.
    Any ideas on what is causing this or how to fix it is most welcome as I've not encountered this error before when installing SES or a service pack. I've even tried the OUI for Service pack 10.1.8.3 but also get the same error.
    I've checked the listener.ora and tnsnames and they are OK. I've checked and the listener is running and so is the DB.
    Right now, I have the Oracle SES instance up and running at 10.1.8.2 but need to upgrade this to the same level as the other SES search nodes.
    Edited by: user8655787 on Apr 15, 2010 2:18 PM
    My listener.log file is showing this message each time, I run the OUI and enter the sys password and click "Next"
    15-APR-2010 23:17:05 * 12502
    TNS-12502: TNS:listener received no CONNECT_DATA from client

    A couple of other things that I have tried but have had no affect. I'm still getting the same error:
    1. Tried recreating the orapwd file
    orapwd file=orapwprdses01 password=prdses01
    And make sure that the pfile or spfile has:
    remote_login_passwordfile='EXCLUSIVE'
    another OTN posting said to try this:
    1. Go to directory $ORACLE_HOME/network/admin
    2. Modify sqlnet.ora file with following parameter:
    tcp.validnode_checking = no
    3. If you don't want to disable this, you can put the machine names as follows:
    tcp.invited_nodes=(machine1, machine2)
    3. Bounce the listener.
    .... but, I'm still getting the same error when trying to run the .runInstaller OUI for the service pack for 10.1.8.4.

  • Cannot install Oracle 10g rel. 2 on Win Server 2003 SB

    Hello,
    I cannot install Oracle 10g rel. 2 on Win Server 2003 SB, because when the the configuration assistant installer try to copy the db files, it stop with the following errors:
    ORA-24324 Service Handle not Initialized
    ORA-24323 Value not authorized
    ORA-28547 Connection to Server failed probable Oracle NET ADMIN errorRegards
    Siyavuş

    You should be connected as a local administrator to perform the install process.
    Try to perfom a software only install, then once you make sure the installation was successful, launch the dbca. It is important for you to use a local account to perform the installation and db setup process, otherwise, if you have authentication problems, even if you comment the authentication line at the sqlnet.ora file you will be facing issues that will make fail the assistant, since it is designed to work assuming the user is OS authenticated.
    ~ Madrid
    http://hrivera99.blogspot.com/

  • Connect oracle(10G) to Access

    Dear Sir,
    I try to connect oracle(10G) with Access.
    First step : I created Access ODBC
    Second Step: I updated listener , tnsnames , inithsodbc files
    Third step : I am testing by the command line
    'lsnrctl start LISTENERtest'
    but it doesn'yt start and the log file shows the following:
    TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production on 20-MAY-2008 12:06:23
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    System parameter file is E:\oracle\product\10.2.0\db_2\network\admin\listener.ora
    Log messages written to E:\oracle\product\10.2.0\db_2\network\log\listenertest.log
    Trace information written to E:\oracle\product\10.2.0\db_2\network\trace\listenertest.trc
    Trace level is currently 0
    Started with pid=2328
    TNS-01150: The address of the specified listener name is incorrect
    could you help me what is the problem?
    Message was edited by:
    user630033

    please excuse, but I have no answer.
    My only hint to you is, copy the question to one of the rdbms-, or odbc-forums of the otn. Here is the forms-forum, where the guys normally didn't need an odbc connection to different databases.
    try it
    Gerd

  • Error to connect oracle 10g client and designer BO 4.0

    hello,
    I try to connect oracle 10g client and designer BO 4.0.
    I created an ODBC connection to function in the administration tools of data sources but I can not connect once in designer.
    I tried using the driver directly oracle designer 10 but I have the same error that is this:
    DBD: ORA-12154: TNS: connection identifier specified could not be resolved
    someone there had the same concerns?
    cordially

    Hi,
    so it looks like that your TNSNAMES.ORA file isn`t properly configured. Thats why you can connect with the IDT to your Oracle Database.
    Your DBA`s should sent you the correct TNSNAMES.ORA file or the entry for your DB prior. After the tnsping works, you will be able to use the IDT properly.
    Regards
    -Seb.

  • Unable to connect Oracle Application Database using Discoverer Admin 10g

    Hi,
    I have installed oracle Admin 10g on my machine and trying to connect oracle application database but every time i am getting error like "Unable to connect to: user@hostname Failed to connect to database Unable to connect to Oracle Application Database. Invalid username/password".
    Installed BI Discoverer Admin 10.1.2.1
    Discoverer Admin Client 10.1.2.48.18
    Database 9i
    I have done following steps:
    1. Selected radio button for Connect to Application EUL's.
    2.Gateway User ID (GWYUID)/Password :APPLSYSPUB/PUB
    3.FNDNAME:APPS
    I able to connect discoverer plus.
    Thanks
    Ravi

    Hi Ravi
    Glad to hear you solved this. It is very gratifying when one solves it alone, don't you think?
    Best wishes
    Michael

  • Connecting oracle 10g express edition to jdeveloper

    I am having all kinds of problems connecting oracle 10g express edition with my jdeveloper 10.1.3.3. I can query the database from my command line so I know it is set up, but for whatever reason jdeveloper will not connect with it. When I try to connect with the database through jdeveloper here is the error I keep getting:
    Listener refused the connection with the following error:
    ORA-12518, TNS:listener could not hand off client connection
    The Connection descriptor used by the client was:
    localhost:1521:ORCL
    I have been all through the google results looking for an answer and have come to the conclusion that it is something with either the listerner file or the tns file, but as of yet have been unable to locate them. here are both of those files too.
    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 = ##########)(PORT = 1521))
    DEFAULT_SERVICE_LISTENER = (XE)
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = #########)(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)
    Please any help would be appreciated I have been at this for days, thanks.

    This has to be some kind of bug with 10g express because I see lots of people having similar problems. I'm in the process of uninstalling 10g, and I will re-install it see if that makes a difference. Again if anyone has any other ideas please keep them coming because this is utter BS it shouldn't be this hard.

  • Issue with Oracle 10g database connectivity

    Hi,
    Oracle 10g Express edition is been installed in my machine at the location C:\Oracle10g.
    When i tried to connect the same from toad it is working fine.
    Visual studio-2008 is been installed in machine at loc C:\Program files(x86)\
    Problem I am facing is unable to connect Oracle 10g from vb.net application.I am connecting usig Oracle Provider for OLE DB but the program directly coming to exception block
    with out connecting to database.
    My OS is Windows7 and I am thinking oracle 10g Express will not support completely to this OS.Please suggest me to resolve this issue and comapatable Oracle DB for the same.
    Edited by: 1909 on Apr 25, 2011 12:17 AM

    Hi,
    Try uninstalling and installing VS at the path which does not include brackets. Have a look at my thread.
    Re: Database engine setup for 10.2.0.5
    Thanks,
    Jignesh

  • What is Connection in Oracle 10g Database?

    Please let me know what is connection term in Oracle 10g Database in detail?
    Thanks,
    Waheed.

    Network Connections
    Oracle Net Services is Oracle’s mechanism for interfacing with the communication
    protocols used by the networks that facilitate distributed processing and distributed
    databases.
    Connections and Sessions
    Connection and session are closely related to user process but are very different in
    meaning.
    A connection is a communication pathway between a user process and an Oracle
    instance. A communication pathway is established using available interprocess
    communication mechanisms (on a computer that runs both the user process and
    Oracle) or network software (when different computers run the database
    application and Oracle, and communicate through a network).
    Oracle® Database
    Concepts
    10g Release 1 (10.1)
    Part No. B10743-01

  • Connecting to the Oracle 10g Database through Java code

    I have a Oracle 10g database to be connected to.
    Through sql plus, I can connect to it using the following command
    sqlplus "sys@pmi as sysdba"and password is 'password'
    how do I connect to this db through my Java code?
    I tried
    _connection = DriverManager.getConnection("jdbc:oracle:thin:@10.245.4.100:1521:pmi as sysdba", "sys", "password");but it gave the exception "ExceptionIo exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=169869568)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))"
    I also tried
    _connection = DriverManager.getConnection("jdbc:oracle:thin:@10.245.4.100:1521:pmi", "sys", "password");but this gives the exception "ExceptionORA-28009: connection as SYS should be as SYSDBA or SYSOPER"
    Can anyone please help me in writing the line of code

    You need to use the getConnection syntax that requires a Properties object.
    http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq.htm#05_05
    - cafal

  • How to connect Oracle 10g from OBIEE on Linux?

    - OBIEE 10.1.3.4.0 is running on Cent 5 Linux M1 (*64* bit). My Oracle database is running another similar machine M2.
    - I installed oracle 64 bit client on M1 but could not connect to run the report, connection issue. Even nqcmd didn't helped.
    - I guess it was because OBIEE is *32* bit application and hence need 32 bit client.
    - I tried installing Oracle 32 bit Linux client on M1 but installation fails with some dependency (Not sure if we can install 32 bit client on 64 bit machine)
    Q1 - Any suggestion at this point?
    Q2 - Is there any way we could connect OBIEE to Oracle via ODBC drivers. I could not found any odbc driver/so file when I wan installed 64 bit client. Any suggestion for this?
    Thanks in Advance!

    The computer running XE server does not need a client installed.
    If you are trying to connect from another computer, install the XE client and create file C:\XEClient\NETWORK\ADMIN\TNSNAMES.ORA with the following contents (replace ip_address as appropriate):
    XE =
        (DESCRIPTION =
           (ADDRESS_LIST =
              (ADDRESS = (PROTOCOL = TCP)(HOST = ip_address)(PORT = 1521))
           (CONNECT_DATA =
              (SERVICE_NAME = XE)
    {code}Test with
    {code:java}
    sqlplus SYSTEM/password@XE
    {code}
    Regards,
    Georger
    wrote:user_7000018
    Hi ,
    i am using oracle 10g express edition. i installed oracle 10 xe server it is working fine but how can i connect oracle 10g xe client to this server becouse there is no net configuaration nad Migration tools and also net configuation Assistant . can you explain
    Regards,
    Dharmendra

  • Connect Oracle 10g client to the Oracle 10g database behind a firewall

    I need to connect an Oracle 10g client to the Oracle 10g database (windows server 2003 box) behind a firewall. I ran into this problem: Port redirection. Port redirection requires the Oracle client to connect to the database using a different port (usually a randomly selected TCP port) than the default or originally configured one. If there is no firewall between the server and the client, port redirection will not affect the actual connection. However, if port redirection does occur with the server behind a firewall, the client will be likely to suffer from a connectivity failure. The reason is simple: the newly assigned port based on port redirection is often blocked by the firewall. Such failures are not uncommon on Windows platforms.
    I don't know how to stablished an unique TCP port.
    I Enabled USE_SHARED_SOCKET on the Oracle database server, windows registry. Acording to what I read,that will force the server machine to share its port 1521 and thus all clients will stay on that port when connecting to the database. Noticeably, port redirection will not occur with USE_SHARED_SOCKET enabled, but that's true in oracle 8 or oracle 9. In oracle 10g this solution doesn't work.
    I will apreciate any help about this. Please!
    Thanks in advanced.

    Three solutions in order of preference
    1 Use Connection Manager on the server (only installed using a Custom Install). This will tunnel all traffic through a single port. It will also allow you to configure allowable nodes
    2 Set up shared server to use a fixed port. Disadvantage: shared server has overhead and the number of connections is limited
    3 Use shared_sockets. Disadvantage: when you stop the listener everyone is disconnected.
    Sybrand Bakker
    Senior Oracle DBA

Maybe you are looking for