How to configure JDBC

How to configure JDBC

Hi Yong,
You need JDBC driver(classes12.zip and nls_charset12.jar) and jdk to run JDBC. If you have Oracle database installed on your system then the JDBC driver will be preset at <ORACLE_HOME>/jdbc/lib where <ORACLE_HOME> is d:\oracle\and if you have OC4J installed the it will be preset at <OC4J_HOME>/jdbc/lib where <OC4J_HOME> is d:\oc4j
There are huge set of samples in OTN for JDBC at the following location.
http://otn.oracle.com/sample_code/tech/java/sqlj_jdbc/content.html
This collection of samples consists of basic samples to advanced samples.
Have a look at them.
Regards,
Anupama Majety
OTN @ IDC team.

Similar Messages

  • How to configure JDBC Adapter(Sender & Receiver)

    How to configure JDBC Adapter(Sender & Receiver)
    Rgds
    Ruchitha

    Hi ruchitha thakur ,
    These r the following web-sites which give u detailed information about configuring of JDBC Adapter(Sender & Receiver)
    JDBC is a technical Adapter provided by SAP.
    Configuring the Sender JDBC Adapter
    http://help.sap.com/saphelp_nw04/helpdata/en/7e/5df96381ec72468a00815dd80f8b63/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/1d/756b3c0d592c7fe10000000a11405a/content.htm
    Configuring the Receiver JDBC Adapter
    http://help.sap.com/saphelp_nw2004s/helpdata/en/b0/676b3c255b1475e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/64/ce4e886334ec4ea7c2712e11cc567c/content.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/6d36d51d-0b01-0010-b3aa-9cb313b63cf4
    SAP XI Utilize SAP Adapters to connect to heterogenous systems
    https://wwwn.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3fc4bd90-0201-0010-68bd-ab931b06f9c2
    cheers!
    gyanaraj
    ***Pls reward points if u find this useful

  • How to configure JDBC connection in oracle BI publisher with teradata datab

    Hi,
    I am going to use Oracle BI publisher to create report.
    Our database is Teradata.
    How to create database connection for Teradata in BI publisher.
    How to create JDBC connection.
    What should be the Database Driver Class?
    What should be the connection string format?
    Please provide me the suggetion.
    Thanks,
    Santanu Manna

    Hi;
    I suggest please refer below which could be helpful on your issue:
    How To Generate XML Output (Excel, HTML, PDF) for FSG Reports [ID 804913.1]
    E-XMLP: BI Publisher Report RTF Template to Excel output is not same as PDF,RTF or HTML format.[Article ID 1515711.1]
    BI Publisher Enterprise Excel Output File Size is Too Large [ID 1271544.1]
    Regard
    Helios

  • How to configure jdbc/jndi connection in crystal report 10

    Post Author: effy
    CA Forum: Data Connectivity and SQL
    i have tried to configure jdbc/jndi connection , i have both
    drivers  data base side and  crystal report side but i
    can't  configure it.  so please help if u know
    something. 

    Sorry, but I'm not on a home pc, I'm working on a virtualized pc with a long chain of permissions ... so I cannot simply download and run an utility...
    Instead... I think (I WAS thinking) someone from SAP can tell me this info ... Probably I'll buy a paid assistance ticket... But really it's a strange thing that a simply connection from a (so) paid software need a so difficult problem solving routine..
    I edited my environment variales: JAVA, PATH; CLASSPATH; JAVA_DIR, and a long list of others ... to ALL point to ALL of directory containing used jars...
    .. I asked my SysAdmin to edit CrConfig.xml and it's done ... classpath are rights, jdbc infos are also ok, ...
    .. but none ...

  • Junit : how to create JDBC URL connection

    hi folks,
    I am implementing JUnit in my application , for that I have seen srdemo application every thing is fine but i havent get how to configure JDBC URL connection 'SRServiceLocalTesting' ? can any body tell me how to do it.
    Thanks in advance
    Regards
    Pravin

    Hi,
    Have a look,
    http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/odi/odi_11g/odi_project_xml-to-table/odi_project_xml-to-table.htm
    Thanks,
    Guru

  • BI JDBC - How to configure Helper.jdbc.properties?

    Hi,
    I am little bit confused regarding where to configure
    Helpers.jdbc.properties.
    In a new project I have placed the Helpers.java and
    exported it as a par.And from the .PAR i extracted the 
    jar file and included it in my JDBC project.
    Pl. suggest how to configure the Helper.jdbc.properties.
    regards
    Mrutyunjay

    Friends,
    Would be thankful for any hints.
    Thanks & Regards
    Mrutyunjay

  • How to configure ONS on JDBC client?

    I have configured JDBC client through OracleDataSource to enable implicit cache, fast connection failover and ONS like:
    OracleDataSource ods = new OracleDataSource();
    ods.setURL( theURL );
    ods.setUser( theUser );
    ods.setPassword( thePassword );
    ods.setConnectionCacheName("foo");
    ods.setConnectionCachingEnabled(true);
    ods.setFastConnectionFailoverEnabled(true);
    ods.setONSConfiguration("nodes=server1.com:6350,server2.com:6350";
    // set connection cache properties
    ods.setConnectionCacheProperties(cacheProps);
    The connection cache works, but following document says:
    "Oracle Notification Service (ONS) is configured and available on the node where JDBC is running. JDBC depends on ONS to propagate database events and notify JDBC of them."
    http://download.oracle.com/docs/cd/B13789_01/java.101/b10979/fastconnfail.htm
    I'm a bit confused. The machine that runs JDBC client, i.e. Java app server, doesn't have oracle db or oracle client installed, and no ORACLE_HOME. Does this indicate the machine that has JDBC client needs to install Oracle client or copy the whole ORACLE_HOME package?
    Thanks in advance!

    As a side note, I made an interesting discovery last week: the SNMP Service is deprecated in Windows Server 2012. Why would you want to use SNMP on an actual Windows OS though? There are far better ways available to monitor Windows. I'm sure that lines
    up with why they deprecated it.
    Jason | http://blog.configmgrftw.com

  • How to set JDBC Data Sources in Oracle MapViewer for Oracle database 12c Release 1 (12.1.0.1)

    How to set JDBC Data Sources in Oracle MapViewer for Oracle database 12c Release 1 (12.1.0.1)?
    The following is my configuration in the conf\mapViewerConfig.xml:
    <map_data_source name="mvdemo12"
    jdbc_host="127.0.0.1"
    jdbc_sid="orcl12c1"
    jdbc_port="1522"
    jdbc_user="mvdemo"
    jdbc_password="7OVl2rJ+hOYxG5T3vKJQb+hW4NPgy9EN"
    jdbc_mode="thin"
    number_of_mappers="3"
    allow_jdbc_theme_based_foi="true"
    editable="true"/>
    <!--  ****  -->
    But it does not work.
    After use "sqlplus mvdemo/[email protected]:1522/pdborcl", it connected to the Oracle database 12c.
    Does anyone know it?
    Thanks,

    For 11.1.1.7.1 use the syntax for jdbc_sid, i.e.
    //mypdb1.foo.com as described in the README,
    - MapViewer native (non-container) data sources can now use database service name in place of SID. To supply a db service name, you will use the same jdbc_sid attribute, but specify the service name with double slashes in front, such as follows:
      <map_data_source name="myds"
        jdbc_host="foo.com"
        jdbc_sid="//mypdb1.foo.com"
        jdbc_port="1522"
      />
    For 11.1.1.7.0 use a container_ds instead.
    i.e. instead of using
    <map_data_source name="my_12c_test"
                       jdbc_host="mydbinstance"
                       jdbc_sid="pdborcl12c"
                       jdbc_port="1522"
                       jdbc_user="mytestuser"
                       jdbc_password="m2E7T48U3LfRjKwR0YFETQcjNb4gCMLG8/X0KWjO00Q="
                       jdbc_mode="thin"
                       number_of_mappers="6"
                       allow_jdbc_theme_based_foi="false"
                       editable="false"
       />
    use
      <map_data_source name="my_12c_test"
                       container_ds="jdbc/db12c"
                       number_of_mappers="6"
                       allow_jdbc_theme_based_foi="false"
                       editable="false"
       />
    In my case the Glassfish 3.1.2.2 JDBC connection pool definition was
    Property
    url  jdbc:oracle:thin:@mydbinstance:1522/pdborcl12c.rest_of.service.name
    Uncheck the Wrap JDBC Objects option in Advanced panel, i.e. the Edit JDBC Connection Pool Advanced properties page.
    Add a JDBC resource for that newly created pool
    Use that in mapviewerconfig.xml as above

  • How to configure informix connection pool in sun-one appserver 7

    Hello,
    Anybody knows , How to configure informix connection pool properties in sun-one appserver 7?
    Thanks in advance.

    Actually,it couldn't get some advice in here.But now,I known how to configure it,I expended 2 days to search and test it.Follow :
    jdbc class:com.informix.jdbcx.IfxDataSource
    serverName=(INFORMIXSERVER)
    portNumber=1526(default)
    IfxIFXHOST=(host ip)
    databaseName=(your dbname)
    user=(your username)
    password=(your pwd)
    attention:configure right transaction and userthreads in your informix sever
    Hope helpful to someone!

  • How to use JDBC Positional Binding Style & ExecuteWithParams?

    Can anyone provide any help here including any documentation on how to configure this (I've checked online help and the developer guide.)
    When defining multiple Bind Position variables on a View Object (using sql statement binding style: JDBC Positional), should I defined multiple bind variable names? Otherwise, if I don't, when I use ExecuteWithParams operation to create the data control, only one input variable field is displayed. I can get a single bind position variable to work, but am struggling on how to configure / get multiple bind position variables to work with ExecuteWithParams.
    Here's my current configuration:
    1. Define View Object with two JDBC Positional Binding Parameters
    -- Bind Variables: name=parm1 (???should I define a second bind variable name???)
    -- Bind Positions = 0,1
    -- SQL Statement add another position var in where clause: "match (zip) against (CONCAT(?,'*') IN BOOLEAN MODE) and "match (name) against (CONCAT(?,'*') IN BOOLEAN MODE)
    2. On a JSF page, drag ExecuteWithParams operation from data control onto the JSF page. If I have defined only one bind variable name, only one input field is displayed (and one field label that I defined for that bind variable), but I need two input fields - one for each bind position variable. How do I set this up?
    Back-end Database is MySQL 5.0.1 which is why I am using binding stye JDBC positional.
    Thanks, Tom
    Message was edited by:
    javaX

    I did some more testing and the problem is that the queries work with one bind position variable but not with two. I created two simple view objects off of the same entity object to test:
    #1 - ViewObject with one bind position variable - where clause: where id > ?
    #2 - ViewObject with two bind position variables - where clause: where id > ? and id < ?
    I created two separate .jspx pages, view1.jspx (one input field) and view2.jspx (two input fields), for each view object by dragging ExecuteWithParams operation onto the JSF page.
    The .jspx page with one input field works (returns result sets.) The view2.jspx page with two input fields does not work - the query does not return any result sets (no errors produced, it just does not return any rows) - I've tested my query outside of jdeveloper and it works fine. I also tried switching my inputs to make sure I did not have an illogical query (i.e., id >100 and id< 1).
    Is there anything different / extra I need to do to use two bind position variables?
    I'm STUCK HERE.
    Everything in this simple test was identical except for using 2 input variables versus 1.
    Technology stack is: jdeveloper 10.1.3, jsf/ADF BC, mySQL 5.01
    Since I now understand what the problem is better, I'm going to re-post this as a new topic that more appropriately describes the problem, "Queries not working with multiple bind position variables?"
    Message was edited by:
    javaX

  • How to make JDBC and SAP connectivity with VC 6.0

    can anyone help me.....how to make JDBC system and SAP system visible in the System drop-down list in Data Task Panel of Visual Composer 6......i mean how to make connectivity with JDBC and SAP system......so that i can use any table in the back-end database as well as any BAPI in the R/3 system.........
    Thank you very much.....

    Hi Deep,
    There is a how-to posted on SDN regarding how to connect and configure the BI JDBC Connector.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/6209b52e-0401-0010-6a9f-d40ec3a09424
    This document describes the jdbc driver to use etc.
    Hope this helps,
    Cheers,
    Scott

  • How to configure crystal report xml file as data source in BOE in Solaris?

    Hi,
    How to configure crystal reports from xml file as data source in Solaris? I didn't find any suitable driver for xml / excel files for sun solaris.
    Which driver i have to use to connect xml file to crystal report to view my crystal report in solaris BOE?
    And the same way excel file as data source for crystal report.
    Thanks

    Hi Don thanks for the reply,
    In windows environment I donot have any problem when creating crystal report from Xml file and Excel file. After creating reports when I publish those into boe server in solaris, getting connection failed error.
    My solaris BOE server doent have any network connection with windows machines. So i have to place the files in solaris server.
    Below the steps what I tried:
    1. Created crystal reports from cr designer in windows using ADO.Net(xml) and in another try with Xml webservices drivers. Reports works well as it should.
    2. Saved in BOE repository in Solaris server from crystal reports and changed database configuration settings as:
        -Used custom database logon information and specified cr_xml as custom driver.
        -Chnaged database path to file directory path according to solaris server file path </app/../../>
        -tried table prefix also
        - Selected radio button use same database logon as when report is run saved.
    My environment :
    SAP BOXI3.1 sp3
    crystal reports 2008 sp3
    SunOS
    Cr developing in windows 7.
    For Excel I tried with ODBC in windows but I can't find any ODBC or JDBC drivers for Excel in solaris.
    Any help to solve my issues
    Thanks
    Nagalla

  • PLEASE : How to configure a QueueConnectionFactory

    I need to know how to configure a QueueConnectionFactory in jms.xml. I tried :
         <queue name="Queue proc" location="jms/movProcQueue">
              <description>A dummy queue</description>
         </queue>     
         <queue-connection-factory name="Queue Conn Factory" location="jms/movProcQueueConnectionFactory">
              <description>A dummy topic</description>
         </queue-connection-factory>
    but when i try to get it :
    QueueConnectionFactory conFactory =(QueueConnectionFactory) ctx.lookup("java:comp/env/jms/movProcQueueConnectionFactory");
    I get the following message:
    javax.naming.NameNotFoundException: jms/movProcQueueConnectionFactory not found in Application Client
    java.lang.Object com.evermind.naming.MapContext.lookup(java.lang.String) MapContext.java:49
    Please, I really need to know...

    Hi Marcelo,
    Obviously I can't speak for any one else on this forum -- but I'm not
    a mind reader. The lookup string you use depends on whether your queue
    client is also deployed to the OC4J container or not -- which you fail
    to mention (in fact you don't mention anything about your environment,
    this always helps -- me, at least :-)it's in the same machine (client and OC4J)
    Also, the type of InitialContext object you create also depends on your client type and how you deploy it.it'd the com.evermind.server.ApplicationClientInitialContextFactory
    So perhaps it would help you obtain an answer if you supplied the following:
    1. Platform (SUN, intel, etc.)Intel
    2. Operating system (UNIX, WinNT, linux, etc.)WinNT
    3. OC4J version (1.0.2.2.1?)R2
    4. Your JMS provider (OC4J, Swift, etc.)OC4J
    5. Your deployment descriptors (XML files).I really need to reference the QueueConnectionFactory and the QUeue itself int he application-client.xml file?
    mine:
    <?xml version="1.0"?>
    <!DOCTYPE application-client PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application Client 1.2//EN" "http://java.sun.com/j2ee/dtds/application-client_1_2.dtd">
    <application-client>
         <resource-ref>
              <res-ref-name>jdbc/OracleDS</res-ref-name>
              <res-type>javax.sql.DataSource</res-type>
              <res-auth>Container</res-auth>
         </resource-ref>
         <resource-ref>
              <res-ref-name>jms/QueueConnectionFactory</res-ref-name>
              <res-type>jms.javax.jms.QueueConnectionFactory</res-type>
              <res-auth>Container</res-auth>
              <resource-env-ref-type>jms.javax.jms.Queue</resource-env-ref-type>     
         </resource-ref>     
         <resource-env-ref>
              <resource-env-ref-name>jms/Queue</resource-env-ref-name>
              <resource-env-ref-type>jms.javax.jms.Queue</resource-env-ref-type>
         </resource-env-ref>
    </application-client>
    6. Code showing how you are creating your "Context" object.InitialContext ctx=new InitialContext();
    // Lookup a JMS connection factory
    QueueConnectionFactory conFactory =(QueueConnectionFactory) ctx.lookup("java:comp/env/jms/QueueConnectionFactory");
    // Create a JMS connection
    QueueConnection connection = conFactory.createQueueConnection();
    // Create a JMS session object
    QueueSession session = connection.createQueueSession(true,0);
    // Lookup a JMS queue
    Queue queue= (Queue) ctx.lookup("java:comp/env/jms/Queue");
    // Create a JMS sender
    QueueSender sender = session.createSender(queue);
    Enumeration enum=vetor.elements();
    ObjectMessage message=null;
    while(enum.hasMoreElements())
    Movimento mov=(Movimento) enum.nextElement();
    message=session.createObjectMessage(mov);
    sender.send(message);
    //enviar mensagem de fim de processamento
    connection.close();
    Cheers,
    Avi.

  • How to configure DSN in linux?

    hi everyone,
    i had install tomcat in linux os, i wonder how to configure DSN in order to access in database, im' only know how to configure in MSWindows but not linux, could anybody help
    thanks in advance

    It would probably be better to post this question in the JDBC forum, but what database and driver are you using?

  • Configure JDBC component schema - manually edit the property

    Hello,
    I need help you manually editing one of the "configure JDBC component schema" under "Fusion Middleware configuration wizard" .
    I have done some mistake and due to which I am not able to start my server and since I am working from a remote machine, I am not able to get the UI appearance of wizard properly. I am looking for file where I can edit those values manally.
    Could someone please advice me how I can go and manually edit the properly file where these values are stores.

    Hi,
    The files are in $DOMAIN_HOME/config/jdbc
    Each file is a data source, the name pattern is [data-source-name]-[number]-jdbc.xml
    Cheers,
    Vlad

Maybe you are looking for

  • Playlists not synching to iphone 6 plus

    I'm using iTunes v. 12.1 I create a playlist in itunes, connect my iphone, but the new created playlist does not show up in the music section of my phone. I've deleted the playlist and recreated it but still doesn't show up as a selection when trying

  • Document numbering for User Define Object

    Hi, Anyone know how to use numbering series in UDO? I've created 3 doc series for the object. one off the series is the default. When i select other doc series on my form, after I add the doc, the series code is captured but the the number is wrong.

  • Cannot upgrade from Solaris 10 U5 to Solaris 10 U8

    I have a V490 which has Solaris 10 U5 running on it, and has OBP 4.15.6. I also installed 2 qlc fiber channel HBA. Now, I want to upgrade it to Solaris 10 U8. However, I experienced some problem. When you boot from the internal hard drive, the OS rec

  • How to access the SAP MDM destinations using mdm java api in 7.1

    hi, I have SAP MDM 7.1 SP11 and SAP Portal 7.3 and developing the custom webdynpro application using the  JAVA MDM API. I want configure the SAP MDM destinations in SAP Portal . How to access the MDM destinations in java code using API? and how to cr

  • Mountain os x lion?

    i already submit my request for the mountain os x lion cause i bought my MB air this month... how much time do i have to wait for them to accept my request??