Forms 11g connecting to XE database

Hello
I installed Forms 11g on my laptop (windows XP) on which an Oracle XE database is running.
In form builder 11g I am able to connect to this XE database. Therefore I changed the tns_names entry in the newly created oracle home registry variable. In my case my oracle_home was key_oh304040290 (?)
When I run a form I get ora-12154: TNS could not resolve the connect identifier.
Ok sounds logical to me. I have to change the tns_names.ora in the middleware oracle home.
I cannot find this oracle home in the registry. Therefore I changed the tns_names.ora in <OH>Middleware\asinst_1\config
I still am not able to connect (same error message)
After that I decided to add a windows environment variable: still no result
What am I missing?
Regards Erik

Hi Erik,
I think You donot need to change anything as such , except to add an entry in the tnsnames.ora for your database details , in the file present in
Oracle Instance config directory
ex:- c:\Oracle\Middleware\asinst_1\config
Forms11g runtime takes the tns values pointed with TNS_ADMIN in the default.env file.
I am not sure , waht you changed in the registry entry. the TNS_ADMIN by default will point to tnsnames.ora file in
c:\Oracle\Middleware\asinst_1\config folder.
Since you were able to connect to Builder , I dont see any reason to change it for runtime.

Similar Messages

  • Form Builder Connectivity from other database

    Could anyone please guide me in detail to connect Oracle Forms 9i/10g with MS SQL Server database?
    Also how do we connect with other databases like SQL Server, MS Access, and so on?
    Thanks in advance.
    Edited by: user10876897 on Apr 13, 2009 10:08 PM

    create an odbc for oracle and connect form to any database through odbc using
    userid/passwd and database as odbc:dsnname

  • Form Builder connecting to Oracle database

    I recently dowloaded the Personal Edition of the Oracle 10g database.
    Having done that, I installed a copy of Oracle Forms 6i which I had.
    When I used to connect to the database from the Forms Builder, I only entered username "scott" and password "tiger".
    Now, it seems I also need to enter the database name to connect.
    I tried "Oracle10g", which I think is the instance name, but I get an error about not being able to "resolve service name."
    Can someone help me with this?
    Thank you.

    Although not related to your problem, connecting Forms 6i to a 10g database isn't really a good idea. Although it is supported by Oracle, you are likely to have problems. Remember that Forms/Reports 6i is very old (and no longer supported) and was based on the Oracle 8.0.6 architecture. Additionally, be sure you are using Forms 6.0.8.22 (Patch 13) or newer if you plan to connect to 10.x.
    That said, your problem is not related to the versions you are using. It is caused by the fact that the database is considered "remote" relative to Forms. This is true even though both products are likely installed on the same machine. By having them installed in different Oracle Homes (which you must), the database might as well be on another machine.
    Short answer, you need to add the database information to the tnsnames.ora file found in the Forms Oracle Home. More specifically, it can be found in:
    %ORACLE_HOME%\NET80\ADMIN
    The other alternative is to set TNS_ADMIN in the system environment (not the Windows Registry). This will point to the database's tnsnames.ora and will allow all installed products to access the same file.

  • Runing a form without connecting to a DB

    I am trying to develop a login screen for an application. How can I please run a form without connecting to the database?
    Thank you in advance.

    Just create a on-logon trigger with no action (null in the trigger. This will disable the default logon screen from Forms.

  • Calling another database connection within a database connection

    Dear All,
    I am using an oracle form by connecting with oracle database and or runtime I have connected succesfully with ms sql server database wtih EXEC_SQL package. The syntax is as follows:
    open connection with odbc
    open cursor
    parse ddl statement in the cursor
    execute cursor
    close cursor
    close connection
    All the above steps are working except the last one. while closeing the odbc connection it's giving internal errro.
    So please show me how to disconnect succesfully through this package.
    Thansk & Regards,
    Habeeb.
    [email protected]

    Dear All,
    I am using an oracle form by connecting with oracle database and or runtime I have connected succesfully with ms sql server database wtih EXEC_SQL package. The syntax is as follows:
    open connection with odbc
    open cursor
    parse ddl statement in the cursor
    execute cursor
    close cursor
    close connection
    All the above steps are working except the last one. while closeing the odbc connection it's giving internal errro.
    So please show me how to disconnect succesfully through this package.
    Thansk & Regards,
    Habeeb.
    [email protected]

  • How to connect Oracle forms 11g to Database?

    Hi,+
    *I've been facing some issues with connecting my forms 11g to database 11g . . it is quite different from 10g*+
    can anybody help me with this, please?+
    Thank you in advance.+

    Can anybody help me, please?!
    If this section is not the right place to post my issue, could you advise me where else should I go?
    Thanks. .

  • I run Dev 6i on Windows 2008 R2 64-bit,the forms are working fine after connection to the database but the reports continue to request for username, password and database connection string every time i try to open a report.

    I receive REP-0501: Unable to connect to specified database. I run developer 6i application on windows 2008 r2. I have applied the nn60.dll and nnb60.dll files to the \BIN directory. The forms are working fine. The reports will only display after the correct user id (username, password and database connection string) is supplied. This is happening to all attempts to open already complied form. Pls, help.

    If you are connecting to an Oracle 11g database, remember that by default the passwords are case sensitive. To disable that, run
    ALTER SYSTEM SET SEC_CASE_SENSITIVE_LOGON = FALSE;

  • Connecting user Oracle 10g to oracle Forms 11g

    hi all , please i need help :
    my problem is : i have created new user and the tables with oracle database 10g express edition , my problem now is how to connect with oracle Forms 11g to connect with this user and the tables . where i should copie "tsnames.ora" ?? how to modifie tsnames.ora ?? if you have any tutorials or video send to me please . thank's all

    Be aware that the Express editions are not supported for use with Forms.
    As for the tnsnames.ora, for Forms 11, this can be found in the INSTANCE_HOME\config

  • How to set default database selection in forms 11g

    Hello,
    In the past (Forms 10g), we could set the default database by setting userid=@dbname in formsweb.cfg.
    We have migrated to Forms 11g.
    When we set this parameter, we have the message ORA-01017 Invalid Username but the dbname is well set in the connection windows.
    Unfortunately, it generates an error message.
    How can we set the default database setting in forms 11g?
    Thanks in advance for your answer.

    If the middle tier platform is Windows set LOCAL to the db name in the Forms default.env. If the platform is Unix based, set TWO_TASK to the db name in the default.env. This will not prefill the db name field, but with this in place that field can be left empty. Alternatively, you need to create your own custom logon dialog.
    Example:
    LOCAL=dbname
    Or on Unix
    TWO_TASK=dbname
    Edited by: Michael Ferrante (Oracle) on Aug 7, 2012 12:05 PM

  • Pooled Connection not supported in oracle forms 11g

    Dear all,
    I am using oracle from builder (11.1.1.4) and oracle database 11g Release 2. I can connect to the database from oracle forms 11g, when I use a dedicated or shared server connection mentioned in the tnsnames.ora file . But I want to use the oracle database 11g's new feature DRCP (Database Resident Connection Polling).
    To do this a made a another POOLED connection (SERVER=POOLED) in the tnsnames.ora.I can connect to the 11g r2 database server from sqlplus using POOLED connection. But when I try it from form builder (11.1.1.1.4) it gives error with some unknown characters.
    Then I tried it in linux frmcmp the message i got in terminal is can not *"Cannot obtain ORACLE version number"*
    I have googled and also checked in metalink. But I got nothing.Thanks in advance for your help.

    I don't think this feature is feasible for forms.
    Quoting the documentation from
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28310/manproc002.htm
    Database Resident Connection Pooling (DRCP) provides a connection pool in the database server for typical Web application usage scenarios where the application acquires a database connection, works on it for a relatively short duration, and then releases it.
    Forms keeps a permanent connection to the database, so a connection pool isn't gonna help you in any way.
    cheers

  • 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

  • Is it Possible to connect oracle 10g with oracle forms 11g?

    Hi,
       I have installed Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 and Oracle 11g forms and reports....
    My question is
    Whether i can develop application using oracle forms 11g and using oracle 10g as backend connection......
    If Possible then how to configure it......
    Thanks.

    That would depend on the exact version of Forms 11g you are referring to;
    this document: http://www.oracle.com/technetwork/developer-tools/forms/oracle-forms-111210certmatrix-1886127.xls
    is for forms 11.1.2.1 and indicates database 10.2.0.4 is certified with this version of forms. For other Forms versions this might be different (I don't know as I didn't look it up).
    You whould do the SQL*Net config like you'd do it on any other oracle client:
    Tnsnames.ora - Oracle FAQ
    Sqlnet.ora - Oracle FAQ
    except for reports where in the opmn.xml the TNS_ADMIN variable is set for the reports servers; so you'd have to place your config files under $INSTANCE_HOME/config as well.
    TNS ADMIN - Oracle FAQ
    cheers

  • Forms 6i not coneecting to database after installing forms 11g

    After installing forms 11g I am not able to connect to database from froms6i
    I am getting error ora-12222 : no such protocol adapter
    pls help

    after installation from forms 6i not able to connect to oracle 10g databaseWindows... :-)
    Forms 11g installation sets its environment, and now forms 6i points to the wrong tnsnames.ora.
    The first thing you can try is copying tnsnames.ora from forms 6i Home to forms 11g Home (after saving this one, if necessary).

  • Can forms 11g work with oracle 9i database?

    Hi all,
    Can anyone say if we can install forms 11g over WLS, using oracle 11g database for repository only, and activate/connect our forms to oracle 9i database?
    is this how it's done?
    our production database is 9.2.0.4 on sun solaris.
    Please advise,
    thanks,
    Amit

    It will work. Its just a Net 80 connection from WLS to the Oracle 9 database.
    fr_inst/config/tnsnames.ora
    Best Regards
    mseberg

  • Connect Oracle Form Builder 10g to Oracle Database 10g Express

    Hi,
    I'm new to Oracle.
    I've installed both form builder and database 10g express.
    I tried to connect form builder to HR sample database in 10g express with the following:
    user name: hr
    password: hr
    database: hr
    but I received message: ora-12154: tns could not resolve the connect identifier specified.
    Can anyone help me on that? Do I need to change the tnsnames.ora?
    If yes, what should I need to change in order to connect to the HR sample?
    Thank you.

    Yes you need to have an entry in the tnsnames.ora file for you database service name or sid. The service name or sid is usually XE unless you changed it when you installed 10g express.

Maybe you are looking for