Connect to data base

I want to connect to database Using JDBC with out using Top link so on.
i want to get the data thru java bean and show or valid the data in JSF or ADF Faces.
How can i do above sample program, Any pointer please help me out.

You can create a simple Java class that does the database access with JDBC and exposes methods that return and set values.
Then you right click this class and choose "Create Data Control".
Then you can drag and drop this into a JSF page.

Similar Messages

  • Connect to Data Base from Form Builder

    I have installed Oracle Developer V.6 in the same machine with data base 8i . From Form Builder I can not connect to Data base with scott/tiger with the db_name in Data base 8i.
    What should I do to connect it ?
    Thanks ,
    Nguyen

    you need to define a sqlnet connection using the sqlnet easy configuration tool that comes with forms.

  • JAVA ENGINE is not connected to Data Base using JDBC in XI 3.0?

    Hi,
       I am copying the DATA BASE from a old DATABASE.
    Then i got an error like
    Error: java.io.FileNotFoundException: JdbcCon.log (Permission denied)
    J2EE Database is not available via test
    i.e while  i try to connect to the Java Visual Administrator by Command Prompt it shows the above error.
    Can anyone suggest me to solve this problem.

    Hi,
    Your Java engine is not up.
    Check the log files under work directory.
    Paste the log file here std_bootstrap and jvm_bootstrap files.
    Regards
    Tajinder

  • How to connect to data base in web dynpro development?

    hi,
       I am a green man in web dynpro development.I don't know how to create a connection to database in web dynpro development.I don't know wether we must create a DC to commit the mission.Hope to hear from you.Thank you!

    Hi ,
    For information on this ,look at these loops.
    Webdynpro and Oracle
    Re: Oracle Packages
    Re: BW connection to ORACLE
    Re: WebDynpro vs Oracle
    Regards,
    Praveen

  • Unable to connect the data base 10g

    Hi
    I have installed 10g on server 2003. Initially I have tried with user names & pwds (system , system) . It was working fine. Later I changed my computer name and tried, it's not working. I also modfied TNSnames.ora file. but still not able conect. Pls suggest me.

    I have a similar problem, but it appears to be caused by a missing log file. Is there any way to correct this situation? The console output is listed below.
    Regards,
    Ed
    Console output:
    C:\oraclexe\app\oracle\product\10.2.0\server\BIN>sqlplus /nolog
    SQL*Plus: Release 10.2.0.1.0 - Production on Thu Jul 3 09:44:10 2008
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    SQL> connect / as sysdba
    Connected.
    SQL> shutdown
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup
    ORACLE instance started.
    Total System Global Area 599785472 bytes
    Fixed Size 1288820 bytes
    Variable Size 171967884 bytes
    Database Buffers 423624704 bytes
    Redo Buffers 2904064 bytes
    Database mounted.
    ORA-00313: open failed for members of log group 1 of thread 1
    ORA-00312: online log 1 thread 1:
    'C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ONLINELOG\O1_MF_1_25NF9FMO_.LOG'
    ORA-27041: unable to open file
    OSD-04002: unable to open file
    O/S-Error: (OS 2) The system cannot find the file specified.

  • Error connecting to Data base.

    Hi,
    I am working on HTTP-JDBC scenario. Iam getting an error while connecting to Database.
    Iam using Oracle DB.
    I tried using the Url "oracle.jdbc.OracleDriver" and "oracle.jdbc.driver.OracleDriver" but the result is same.
    The error in the JDBC adapter is as follows:-
    Error during database connection to the database URL 'jdbc:oracle:thin:@<IPADDRESS>:MCQ' using the JDBC driver 'oracle.jdbc.OracleDriver': 'com.sap.aii.adapter.jdbc.sql.DriverManagerException: Cannot establish connection to URL 'jdbc:oracle:thin:@<IPADDRESS>:MCQ': SQLException: Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=153093376)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))'
    Could some one help me on this?
    Regards
    Praveen

    HI,
    Check the DB is ruuning or not and Listner is running or not ,
    or
    increase the  number of retries" in the JDBC adapter configuration.
    See the below links
    /thread/208634 [original link is broken]
    Exception:'NetworkAdapter fails'when connecting with oracle from web dynpro
    Socket closed exception
    simple JDBC - File scenario -- jdbc adapter error
    Regards
    Chilla

  • Auto Reconnection of Oracle Tuxedo 11.1.1.2.0, 64-bit to Oracle Data Base

    Hi Dear,
    We have Recently Migrated to Oracle Tuxedo 11.1.1.2.0 Running on RHEL 6.3 and connecting Oracle Data Base 11.0.2.0.
    We are informed by the Oracle Tuxedo Support that This tuxedo version Automatically re-connects to the oracle database once the Data base is rebooted.
    Because of the above impression we removed all our reconnection code from our applications.
    But unfortunately the servers are not automatically re-connecting to Oracle DB.
    Can you Please let us know, whether really this version automatically re-connects to Oracle DB??
    If Yes, How?? I mean is there any specific configuration to be done on Tuxedo??
    Thanks in Advance .... :)
    Rgds,
    Plaban

    Plaban,
    There are two ways to manage connections to Oracle Database (or any other XA compliant resource manager) with Tuxedo.
    One way is to use the XA interface. This involves spcifying information about the resource manager in $TUXDIR/udataobj/RM, building TMS servers linked with the resource manager, using the "-r rmname" option on buildserver, and specifying the TMS server names and an OPENINFO string *GROUPS section of the UBBCONFIG file.  When this option is chosen, application servers will not contain any logic to connect to or disconnect from the database and appllication servers will not contain any SQL statments to COMMIT WORK or ROLLBACK WORK.  All of this will be managed by Tuxedo.  If an XA call indicates that the resource manager is unavailable, Tuxedo will try to reconnect to the resource manager when subsequent tranasctional requests are received.  (Note that if a server in an XA-associated group receives requests outside of transaction mode, then Tuxedo will not issue any XA calls and will not know if there are any problems with the database.  You can specify AUTOTRAN=Y if you want to ensure that requests to certain services are processed in transaction mode.)
    In releases prior to Tuxedo 11.1.1.2.0, it was necessary to set the TUXWA4ORACLE environment variable for this automatic reconnection to work when using Tuxedo with Oracle Database. (This was due to different interpretations of the XA standard back when BEA and Oracle were separate companies.) Starting with Release 11.1.1.2.0, it is no longer necessary to set TUXWA4ORACLE when using Oracle Database with Tuxedo.
    There are also special considerations when using Tuxedo with Oracle Real Application Clusters, as described at http://docs.oracle.com/cd/E35855_01/tuxedo/docs12c/ads/adorac.html .
    The other way to use Tuxedo with a database is to not use the XA interface and to manage connections to the database in the application. If this is done, then the application needs code to connect, disconnect, and reconnect to the database and to commit or rollback work where appropriate. If the XA interface is not used, then Tuxedo will not have any involvement with connection or reconnection to the database.
    Regards,
    Ed

  • PLEASE REPLY ASAP.Unbale to connect to oracle data base using JSP.

    hi,
    I am not able to connect to oracle data base using JSP. PFB the code and out put.
    <html>
    <!--Importing the Packages-->
    <%@ page import = "java.sql.*" %>
    <body>
    <%
    try
         out.println("hi<br>");
    Connection conn = DriverManager.getConnection("jdbc:oracle:oci:@xxx.xxx.xx.xxx:xxxx:flstr800","user","paswordd");
         out.println("connected<br>");
    catch (SQLException e)
    out.println("ERROR: failed to connect!");
    out.println("ERROR: " + e.getMessage());
    e.printStackTrace();
    return;
    %>
    </body>
    </html>
    OUTPUT:
    hi
    ERROR: failed to connect! ERROR: No suitable driver found for jdbc:oracle:oci:@host:port
    Please guide me on this issue.
    Edited by: user10997061 on Apr 10, 2009 4:27 AM

    I definitely do not know much about JSP but
    http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq.html
    indicates
    <quote>
    This URL connects to the same database using the the OCI driver and the SID inst1 without specifying the username or password.
    jdbc:oracle:oci:@myhost:1521:inst1
    <quote>
    I do not see the port information in your connect string. Is that an issue?

  • How to change the Data base connection Dynamically

    Hi
    Hi create a crystal reports using crystal report 12.0 in this i use the standard wizard and local data base connection and create a dotnet programme for this .Now i want to  change the database because because i want to instal it in client they use a different connection so i need to change the connection .How is it possible . PLzzzzz tell me it is urgen t
    Addvance thnks

    Hi
    To change the database you can use DataSource  Option that is present in the Menu Bar.
    Go to Database
    ->Set Datasource Location
    ->Replace the current Data Source with the new Datasource.
    Hope this helps
    Shraddha

  • One application module with 3 differente data base connections

    I have 3 different servers for data base connections. The main is "sys", the second "stanby" and the third: "bdbatch". In the old application,that i m re programating, uses a properties to read the connection. If the main is not available then goes to the stanby an then to the third. With this new application with adf i have to do the same. So how can i configure the application module to do this? do i have to make extra code? or just configure an xml file??

    i faced this problem before in Dynamic JDBC Credentials topic solution provided by Steve Muench (to make your AM Databse Connection to be dynamic as you need).
    http://smuenchadf.samplecode.oracle.com/samples/11gDynamicCredentials.zip
    Note : Example Contains the Full JDBC Connection String in dynamic way
    i finished this solution in my App and Successed.
    Thanks

  • Error while connecting to oracle 10g data base

    Following is the code we used to connect to oracle 10g data base using symbian 7.1 series 80 SDK
    int CTest_S80AppUi::SetupODBC(void)
    RETCODE rc;
    char *DataSource = OD_DATA_SOURCE;
    char UserId = "system", Password = "manager";
    rc=SQLAllocEnv(&Henv);
    //if (TEST_CHECK_ERR(SQL_NULL_HSTMT, rc, "SQLAllocEnv", FALSE) < 0) return(-1);
    rc=SQLAllocConnect(Henv, &Hdbc);
    //if (TEST_CHECK_ERR(SQL_NULL_HSTMT, rc, "SQLAllocConnect", FALSE) < 0)
         //return(-1);
    rc = SQLConnect(Hdbc, (unsigned char *)DataSource, SQL_NTS,
              (unsigned char *)UserId, SQL_NTS,
              (unsigned char *)Password, SQL_NTS);
    bConnected = TRUE;
    //if (TEST_CHECK_ERR(SQL_NULL_HSTMT, rc, "SQLConnect", FALSE) < 0) return(-1);
    SQLAllocStmt(Hdbc, &Hstmt);
    //if (TEST_CHECK_ERR(SQL_NULL_HSTMT, rc, "SQLAllocStmt", FALSE) < 0) return(-1);
    return (1);
    } /* SetupODBC */
    iam getting the return code for SQLConnect as -1.
    Thanks in advance.

    Thanks for the reply.
    //syntax means comments.
    chk the following code.
    int SetupODBC(void)
    char *DataSource = "polite";
    char UserId = "system", Password = "manager";
    if ( SQLAllocEnv(&Henv) < 0 )
    return -1;
    if ( SQLAllocConnect(Henv, &Hdbc) < 0 )
    return -1;
    if ( SQLConnect(Hdbc, (unsigned char *)DataSource, SQL_NTS,
    (unsigned char *)UserId, SQL_NTS,
    (unsigned char *)Password, SQL_NTS) < 0 )
    return -1;
    if (SQLAllocStmt(Hdbc, &Hstmt) < 0 )
    return -1;
    return (0);
    As said earlier there is a problem in SQLConnect. It is returning -1.
    But the code should return 0 if successfully connected.
    The info regarding the arguments used in the above methods:
    HENV Henv; /* Handle to ODBC Environment object */
    HDBC Hdbc; /* Handle to ODBC Connection object */
    HSTMT Hstmt; /* Handle to ODBC Statement object */

  • I want to connect oracle 10g developer run time forms to oractle data base

    Hey,
    Would any body want to tell me, how come i can connect oracle dev 10g from its forms with oracle 10g data bases
    I am waiting
    bye

    Try asking this on the Oracle Forms forum:
    http://forums.oracle.com/forums/category.jspa?categoryID=19
    In any case you need to set-up a sqlnet connection from your client to your server. Use the Network Configuration Utility that comes with the Oracle Forms installation.

  • Error in data base connection - Help me

    Hi,
    In our application we are using jdbc:odbc:driver to connect with MSAccess database (.mdb), The data base is password protected,, when I run the application and access the database the user name, application path and the password is stored in the system registry automatically . The path where the details are stored is
    I don&rsquo;t know the reason behind this update in the registry, how can I remove the entry from the registry using java code.
    Requirement:
    The password should not be updated in the registry , how can I avoid this?
    The sample code is
    String database1 = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=";
    database1+=sample.mdb+";PWD="+&rdquo;sample&rdquo;;
    con = DriverManager.getConnection(database1 ,&rdquo;admin&rdquo;,&rdquo;sample&rdquo;);

    Hello Jschell,
    Thank you for your message.
    Our application's feature set is defined by what we store in a table in the DB. Eg: 1 means premium version, 2 means basic version etc. The app is written and tested, and prior to shipment we only change this value.
    It would take us too long to change the basic logic. One alternate we thought is to encrypt this number by multiplying it with a large prime.
    Is there some other way in which we can protect the user name / password ?
    Thanks
    Sivan

  • 9i can't connect to a data base, even when I use another user's tnanames.or

    I can't connect to a data base, even using tnsping with a tnanames.ora file that I copied from a user's PC that was able to connect. It's a new install of 9i on my PC. What did I miss? I'm on a Win 2000 box and Oracle is on a UNIX server.
    Here's the description from the tnsnames.ora file:
    HISTA02A =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = bkodv1)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = HISTA02)
    The file is from the previous version 8.1.7, should that matter? 9.2.0.1 is the server now.

    Yes, I even pinged it to make sure. When I do a tnsping HISTA02 I get :
    C:\>tnsping HISTA02
    TNS Ping Utility for 32-bit Windows: Version 9.2.0.1.0 - Production on 28-FEB-2007 14:25:53
    Copyright (c) 1997 Oracle Corporation. All rights reserved.
    Used parameter files:
    C:\Local\network\ADMIN\sqlnet.ora
    TNS-03505: Failed to resolve name
    My SQLNT.ora looks like this:
    # SQLNET.ORA Network Configuration File: C:\orant\network\admin\sqlnet.ora
    # Generated by Oracle configuration tools.
    NAMES.DEFAULT_DOMAIN = cboent.cboe.com
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES, HOSTNAME)

  • Looking for a class to connect to MySQL data base

    Hi,
    I'm looking for a class to connect to MySQL data base.
    And i want to know how to access to my data base MySQL under linux ( i've already the driver for mysql-java).
    Can you help me ?
    Thank u.

    I'm looking for a class to connect to MySQL data
    base.Do you mean driver class or ready-made code?
    And i want to know how to access to my data base
    MySQL under linux ( i've already the driver for
    mysql-java).Search for the JDBC tutorial.

Maybe you are looking for

  • What are the differences between oracle adf 10g and adf 11g

    Could you please let me know what are the diff b/w oracle adf 10g and 11g, i tried in many user guides but i could not find it. Thanks in advance, Poli Reddy P

  • Video iPod has now crashed twice

    I've been using my video iPod for just under two weeks now, and it has frozen on me twice. The first time, it froze when I docked it with iTunes, and today it froze when I went to start a video. In the first instance, I couldn't do anything with it u

  • HP 309 a HP Photosmart Essential error message

    Spoiler (Highlight to read) Everytime I reboot, I get a continuing message that it can't locate the HPPhotosmartEssential installation.  I have removed the HP software, and reloaded off the disc now twice, and it does not fix the problem.  I am opera

  • Lightroom Edit in Photoshop (Not Found)... solutions didnt work...,

    Lightroom Version 2.2 (523352) Photoshop Elements 6 MacBook 2.16GHz Intel Core 2 Duo, Memory 2GB Max OS X Version 10.5.6 I have Testversions of both products installed, and i intend to purchase both products. The only reason, that prevents me from se

  • Open Specific Panel From Remote Page

    http://labs.adobe.com/technologies/spry/samples/collapsiblepanel/collapsible_panel_sample. htm Example 4 from the above link. The 'Open Panel' text link. How can I take this link and place it on a page [which contains no Collaspible Panels] so that w