Access Data Source form  Application Client

Hi All
i try to access oracle application server r3 emilated XA data source using aplication client.But it fails.if some one know how to do that ples let me know.
Note :- this works in other application servers (weblogic and websphere)
Thanks
Asanka Priyanjith

HI Avi
It is stand-alone java class that is outside of OC4J Package as JAR file. i Add application application-client.xml and orion-application-client.xml in to META-INF and add resource-ref element to XMLs as well. but it does not work. i am using oracle thin dirver in application server side.
relavent code is ..
DataSource ds = null;
Connection db;
try {
Context initCtx = getInitialContext();
ds = (DataSource) initCtx.lookup(name);
catch (javax.naming.NamingException e) {
if (!ignoreNamingException) {
throw new javax.ejb.CreateException(e.toString());
catch (Exception e) {
throw new javax.ejb.CreateException(e.toString());
db = ds.getConnection(); // This line does not works.
lookup works, But after that i can not get a connection.
java.lang.NoSuchMethodError: oracle.sql.CharacterSet.stringToASCII(Ljava/lang/St
ring;)[B
at oracle.jdbc.driver.DBConversion.stringToDriverCharBytes(DBConversion.
java:386)
at oracle.jdbc.driver.DBConversion.StringToCharBytes(DBConversion.java:4
52)
at oracle.jdbc.driver.T4CTTIoauthenticate.<init>(T4CTTIoauthenticate.jav
a:152)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:294)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:
430)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:151)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtensio
n.java:32)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:608)
at oracle.oc4j.sql.DriverDataSource.getConnection(DriverDataSource.java:
116)
at oracle.oc4j.sql.DriverDataSource.getConnection(DriverDataSource.java:
75)
at oracle.oc4j.sql.DataSourceConnectionPoolDataSource.getPooledConnectio
n(DataSourceConnectionPoolDataSource.java:57)
at oracle.oc4j.sql.xa.EmulatedXADataSource.getXAConnection(EmulatedXADat
aSource.java:55)
at oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl.createXAConnection(M
anagedConnectionFactoryImpl.java:239)
at oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl.createManagedConnect
ion(ManagedConnectionFactoryImpl.java:198)
at com.evermind.server.connector.ApplicationConnectionManager.createMana
gedConnection(ApplicationConnectionManager.java:1333)
at oracle.j2ee.connector.ConnectionPoolImpl.createManagedConnectionFromF
actory(ConnectionPoolImpl.java:324)
at oracle.j2ee.connector.ConnectionPoolImpl.access$800(ConnectionPoolImp
l.java:95)
at oracle.j2ee.connector.ConnectionPoolImpl$NonePoolingScheme.getManaged
Connection(ConnectionPoolImpl.java:1209)
at oracle.j2ee.connector.ConnectionPoolImpl.getManagedConnection(Connect
ionPoolImpl.java:782)
at com.evermind.server.connector.ApplicationConnectionManager.getConnect
ionFromPool(ApplicationConnectionManager.java:1532)
at com.evermind.server.connector.ApplicationConnectionManager.acquireCon
nectionContext(ApplicationConnectionManager.java:1477)
at com.evermind.server.connector.ApplicationConnectionManager.allocateCo
nnection(ApplicationConnectionManager.java:1423)
at oracle.j2ee.connector.OracleConnectionManager.unprivileged_allocateCo
nnection(OracleConnectionManager.java:244)
at oracle.j2ee.connector.OracleConnectionManager.allocateConnection(Orac
leConnectionManager.java:198)
at oracle.oc4j.sql.ManagedDataSource.getConnection(ManagedDataSource.jav
a:197)
at oracle.oc4j.sql.ManagedDataSource.getConnection(ManagedDataSource.jav
a:142)
at oracle.oc4j.sql.ManagedDataSource.getConnection(ManagedDataSource.java
Thanks
Asanka

Similar Messages

  • Problem while displaying all the table names from a MS Access Data Source.

    I started preparing a small Database application. I want to display all the Table Names which are in the 'MS Access' Data Source.
    I started to executing by "Select * from Tab" as if in SQL.
    But i got an error saying that "Not able to resolve Symbol 'Tab' in the query".
    Please let me know how can i display all the table Names in the MS Access Dats Source.

    Here i am developing the application in Swing using JDBC for accessing the database.
    I want to display all the Table names from the data source in a ListBox for easy selection of tables to view their details.

  • Access data source from plugin

    I have a recorded webtest. I added a csv file as data source in WebAndLoadTestProject. Now I added a PlugIn which containing several class for pre/post request override method. I want to access that added csv file as source of data and want to assign value
    to context parameter or URL parameter created under request. From msdn blogs I did not find any solution. 
    What I want to know...
    1. Is it possible to access data source files which is in WebAndLoadTestProject from PlugIn? How??
    2. How can I assign context parameter with data from data source?
    Thanks to every one...
    R

    Thanks for Adrian's help.
    Hi SCRana,
    Based on your issue, I know that it is possible to access data source files which is in WebAndLoadTestProject from PlugIn.
    I find a similar thread about your issue, please refer the following thread to check this issue.
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/a22708ec-77de-4851-84d3-f0096683c009/data-from-the-datasource-in-plugin?forum=vstswebtest
    Best Regards,
    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.

  • How do I enable "Access data sources across domains" in firefox?

    Couple of links do not work on my firefox however they work fine on IE. This is because the "Access data sources across domains" is enabled in IE and i am not sure on how to make this setting enable on Firefox as well.
    Please provide the steps to enable "Access data sources across domains" setting in Firefox.
    Please help!

    This should add the permanent exception:
    [https://support.mozilla.org/en-US/kb/connection-untrusted-error-message#w_bypassing-the-warning Connection Untrusted Error Message: Bypassing the Warning]
    However if it is not staying until the next time that the user opens up Firefox, is it possible that they are in permanent private browsing? [[Private Browsing - Browse the web without saving information about the sites you visit]] - that should have instructions to get in and out of it.

  • CF 10 - IIS 7 - Set up an Access Data Source

    How do we set up an Access data source with CF10 and IIS 7 in a 64 bit environment.  
    I have been away from CF for several years and things are a little different now.
    I keep getting     
    Unable to update the NT registry.  Variable DRIVERPATH is undefined.
    -thx

    ColdFusion doesn't support MSAccess in 64bit. Additionally, Windows doesn't currently ship with a MSAccess .accdb driver.
    Please refer to http://blogs.coldfusion.com/post.cfm/coldfusion-10-64bit-and-msaccess

  • Do not Extract from PSA but Access Data Source (for Small Amounts of Data)

    Hi Experts,
    In the DTP, the above option is available for Full Loads for certain extractors but not for others, particularly, certain HR extractors?
    Is there a way to make it available for HR extractors?  Is there a setting that needs to be updated in ECC or in BI?
    Thank you for your help!

    Hi,
    There is no special setting for this, Please see the detail description:
    Data is not extracted from the PSA for the DataSource; it is requested from the data source directly at DTP runtime.
    Use
    You use this mode for small data sets and full uploads, for example, small sets of master data. With file source systems, note that the file has to be available on the application server.
    Dependencies
    You do not have to create an InfoPackage in order to extract data from the source.
    Data in the data source is accessed in "direct access mode". This has certain consequences, especially if you are extracting data from SAPI systems:
    Data is extracted synchronously. This places a particular demand on the main memory, especially in remote systems.
    The SAPI extractors may respond differently than during asynchronous load since they receive information by direct access.
    SAPI customer enhancements are not processed. Fields that have been added using the append technology of the DataSource remain empty. The exits RSAP0001, exit_saplrsap_001, exit_saplrsap_002, exit_saplrsap_004 do not run.
    If errors occur during processing in BI, you have to extract the data again since the PSA is not available as a buffer. This means that deltas are not possible.
    In the DTP, the filter only contains fields that the DataSource allows as selection fields. With an intermediary PSA, you can filter in the DTP by any field.
    Regards,
    Kams

  • Problem in accessing Data Source Deployed in JBoss using JNDI

    Hi everybody!
    I need your help in the next question:
    I have created a data source to connect to my MySql data base using the following entry in mysql-ds.xml (JBOSS 3.2.5)
    <datasources>
        <local-tx-datasource>
            <jndi-name>MySqlDS</jndi-name>
            <connection-url>jdbc:mysql://localhost:3306/mytest</connection-url>
            <driver-class>com.mysql.jdbc.Driver</driver-class>
            <user-name>root</user-name>
            <password>1</password>
        </local-tx-datasource>
    </datasources> in Eclipse SDK 3.1.2 i trying get access to the datasource
    InitialContext initialContext = new InitialContext();
    DataSource  ds = (DataSource)initialContext.lookup("java:/MySqlDS");
    if (ds != null) {
        result = ds.getConnection();
                       System.out.println("OK");
        else {
             System.out.println("Failed to lookup datasource.");
        } http://localhost:8080/jmx-console service = JNDI name equal "java:/MySqlDS"
    I have error "Cannot get connection: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial"
    Error happen in
    DataSource  ds = (DataSource)initialContext.lookup("java:/MySqlDS");I trying
    DataSource  ds = (DataSource)initialContext.lookup("MySqlDS");and i had such error.
    Can anybody help me?

    hi,
    please check is your error corrected
    public class DBConnection {
         static DataSource dataSource = null;
         * To get the datsource
         public static DataSource getDatasource() {
              InitialContext ctx=null;
         if (dataSource == null){
         try {
              ctx=new InitialContext();
    dataSource = (DataSource) ctx.lookup("java:/MySqlDS");
         } catch (Exception e) {
         System.out.println("eror in DataSource class"+e);
         try {
         ctx.close();
         } catch (Exception e) {
              System.out.println("eror in DataSource class context closing"+e);
         return dataSource;
         * To get connection from Database.
         public static Connection getConnection() {
                   Connection con = null;
                   DataSource dataSource = null;
                   try {
                        dataSource =getDatasource();
                        con = dataSource.getConnection();
                   } catch (SQLException e) {
                        e.printStackTrace();
                   } catch (Exception e) {
                        e.printStackTrace();
                   return con;
    if you want a connetion then call Connection con=DBConnection .getConnection()
    hope this helps you

  • How can I delete an ODBC data source after 10g client has been uninstalled?

    I uninstalled the 10g client and now when I attempt to delete the ODBC data source, I get an error: "The setup routines for the Oracle in Oraclient10g_home2 ODBC driver could not be found. Please reinstall the driver. I re-installed the client and I get the same error, but I had to specify a new home. I still get the error. Anyone have an answer or a workaround to deleting the ODBC entry so that I can re-create with the same name later under the 9i client?

    I have the same problem... and nobody gots the point:
    1st. the ODBC and the client/home exists on the machine...
    2nd. the client/home is unistalled and so...
    3rd. tada! Now we have a impossible-to-unistall ODBC entry!
    That is happening on a Windows, at last to me...
    Please, help us if someone knows how to remove this ODBC entry... if know how to DO the stuff (permissions, system, all that things is answered above).
    Best regards,
    Bruno Araujo

  • OBIEE 11.1.1.6.2 BP1 64-Bit - Define MS Access Data Source

    Hi
    On our 11.1.1.6.2 BP1 64-Bit OBIEE installation I'd like to define an ms access db as data source. We had that in OBIEE 10G too but there it was an 32-Bit ODBC-Source.
    It seems that OBIEE 11G only accepts 64-Bit ODBC-sources. But for 64-ODBC there aren't any existing ms access drivers.
    Did anybody deal with the same problem and found a solution for it?
    Regards

    Hi,
    you download AccessDatabaseEngine_x64.exe and install it then you can able to find it excel data source in 64bit version. (we too faced this issues few years back and test with windows server 2008) working fine.
    you can download from below link
    http://www.microsoft.com/en-us/download/details.aspx?id=13255
    Thanks
    Deva

  • Data Source and Application Component

    Dear Experts,
    I am a beginner of BI and I create a Data Source but I forgot to create an "Application Component" beforehand.
    Now I create an "Application Component" individually and trying to drug my "Data Source" to the "Application Component", but failed. It is said that a drug and drop will be ok but  I found it is not working.
    So my question is:
    How to put the Data Source under the "Application Component" ?
    Regards,
    Sophie Que

    Hi,
    After assigning to new application component you need to replicate the application component in target system (BW).
    Thanks,
    S

  • Data source for application using both pooled and non pooled connections

    Hi guys.
    I am integrating Oracle's connection pooling into an existing application that had formerly used dbConnectionBroker. It looks like this task should be quite straightforward. However, for consistency, I would also like to replace other Connection logic within the application to use Oracle classes. This will involve using OracleDataSource to obtain a Connection object. ( without pooling ).
    So in this case, the application will use both pooled and non pooled Oracle connections. They will be connecting to the same database. The question I have is in regard to the use of data-sources.xml.
    Are there any special considerations for the required attribute values within data-sources.xml under this scenario ?
    Help will be greatly appreciated.
    Regards.
    Steve.

    Hi Steve -
    It should be feasible for you to define a single datasource using multiple location entries to indicate what sort of pooling behaviour you wish to use.
    If you lookup and use the "location" attribute, you will receive a javax.sql.DataSource object which will not provide connection pooling.
    If you lookup and use the "ejb-location" attribute you will receive a DataSource object that will support connection pooling operations.
    Note that this is using the emulated datasource approach, and transaction support is limited to a single resource (one database) for these datasources - you won't get 2PC support for transactions.
    If you need a transaction to span two separate resources (ie two databases in same tx) then you will need to use the non-emulated datasource approach.
    There is a chapter in the J2EE Services Guide which describes the datasource model we have with OC4J. This might provide you with some more useful information. See Chapter 11 - http://otn.oracle.com/docs/products/ias/doc_library/903doc_otn/generic.903/a97690/ds3.htm#1004903
    cheers
    -steve-

  • Access data sources supporting Tuxedo

    WLS 5.1 states that it does not support two-phase commit.
    In fact, if I try to establish two connections to different Oracle
    databases within the same entity bean or session bean within a
    transactional context then an exception is thrown.
    I need to perform updates to two different resources, the first is an
    Oracle database and the second is a Clarify CRM database.
    The problem is getting the updates to both resources done atomically.
    The Oracle database has a layer of EJB's and will run inside WebLogic.
    The Clarify system only comes with a Java Bean interface (not an EJB
    interface).
    Obviously, at some point a connection needs to be established to the
    underlying Oracle Clarify database and I suspect that the Java Bean
    interface that Clarify provides will perform any transactional stuff per
    method call. Although we may be able to detect Clarify problems through
    exceptions thrown from the Java Bean methods, presumably for each
    successful Java Bean method call the underlying data source changes
    associated with it will be committed. Any subsequent Java Bean method
    call that fails can too be detected but we have no way to roll back the
    changes made in the previous method calls. This is obviously a typically
    transaction based problem.
    So, Clarify supports BEA Tuxedo, presumably for this purpose. Perhaps
    someone can confirm, but I think that BEA Jolt provides a Java API to
    BEA Tuxedo. Is this the currently recommended way to communicate with
    Tuxedo? And does Jolt simply provide the equivalent XA methods such as
    transaction start, prepare, commit methods etc?
    I mentioned at the start that an exception will be thrown if an attempt
    is made to open more than one database connection. Presumably, the
    container will not be able to detect this if the connection is retrieved
    in an independent Java class that is not part of the EJB? this is
    important as BEA Jolt or the underlying Java Bean classes must at some
    point establish a connection.
    If Jolt provides this type of interface then presumable I could have a
    stateless session bean that updates the first Oracle data source through
    the EJB's and then simply starts a transaction using Jolt, then applies
    the clarify changes using the Java Beans and then can use the two-phase
    commit capabilities of Tuxedo to 'prepare' the Clarify changes. If the
    prepare fails then a system exception will be thrown to rollback the
    changes to the first data source, otherwise Jolt will be used to tell
    Tuxedo to commit the changes and then the first data source will be
    committed when the session bean method completes.
    One drawback that I can see is that the transactional calls to Jolt will
    be hardcoded in the beans and not controlled by transactional
    demaraction in the deployment descriptors so we would need to be careful
    when the transactional boundaries changes in the deployment descriptor.
    I can't see how Weblogic 6.0 can assist us here as we don't have an EJB
    intterface to Clarify.
    How does the J2EE Connector stuff fit into this?
    Anyone interfaced with Clarify through Jolt/Tuxedo - is the perfromance
    adequate?
    Many thanks in advance

    Hi,
    You can also have a look at Metalink Note:150766.1 :- Subject:      How to Access a JDBC Data Source From OC4J Using a JNDI Lookup
    Regards,
    Sandeep

  • Report fails on CE usin stored proc as data source and Native Client driver

    Iu2019m using Crystal Reports 10. I have a report with a stored procedure as data source. All my other reports using views as data source. Weu2019re upgrading db from SQL Server 2000 to 2008 and start using Native Client driver.
    Thereu2019s no problem to generate this report from .rpt on my local PC. But got the following error message when generate from Crystal Enterprise:
    Error Message: The table could not be found. File D:\Program Files\Crystal Decisions\Enterprise 10\Data\procSched\......reportjobserver\~tmp12c06c5641c4d50.rpt.
    It looks like sth related to Native Client driver. It works if I change to use old native driver in DSN on CE server.
    Any ideas/advises? Appreciated to your help!

    Hello,
    CR 10 does not support the MS SQL Native Driver, if you want to use OLE DB then use the MS OLE DB Provider for SQL Server up to SQL 2005. SQL 2008 does not support the MDAC version so you have to install the SQL 2008 Client tools to use the SQL Native 10 driver. CR 10 does not support that Native 10 Driver.
    See this MS Kbase: http://msdn.microsoft.com/en-us/library/ms131035.aspx
    Convert back to the old driver for 2005 and then use ODBC if using SQL 2008, it should work...
    Don

  • EP5: Access Data Source (System Conf) properties

    Hi ,
    I am using EP5.0.In my portal , I have a tab called "System Configuration" and in that I have a sub tab called "DataSources" . I am putting in details such as URL , Username argument (say UName ) (not the username itself) and the password argument (say Pwd) (not the password - the argument like PWD ). these arguments are like -
    used in the URL to check like UName = '..' and Pwd ='...' and these arguments may be different for differnet datasources... I want to get these details in the iview program ...
    like
    for datasource
    'sdn'--- username argument = UName
             password argument = Pwd
    'sap'--- username argument = UserName
         --- password argument = Pass
    I want these details in the program ......
    I should be able to pass the data source name and then it should give me these details ...so that i can use these arguments in my user mapping for other users...
    what api should i use? what should i use....
    please reply as soon as possbile...
    avinash...

    Hi all ,
    Can anyone help me out with the above mentioned problem please ? Its urgent....
    Thank you,
    Avi

  • U0094Generate Export data Source" form multi provider.

    Hi,
    If  we give the context menu to the multi provider we get an option that ”Generate Export data Source”. That means is it possible to generate the data source from multi provider. If  yes , then we will load data from one multi provider to another data target.
    How can we see the data in Multiprovider.
    Regards,
    Venkata Sharma

    A Multiprovider has no storage of data.
    But you use a query build on top of it, and see the data from the Datatargets that are used on that Multiprovider (can be cubes, info-objects, info-sets).
    I am working in BI 7.0 and I don't have the option of generating the export datasource!
    Hope it's clear now.

Maybe you are looking for

  • My iPod is dead and won't work

    So, 1 week ago I posted the same question but no replies. My iPod won't work because when i boot up my iPod, it displays the apple logo like normally, but after a few seconds, it dissapears with a white flash. A few seconds later, the apple logo pops

  • Re:Role of an Abaper in support projects

    Hi, What can be the role of an abaper in support projects and moreover what is production support and development support.How do we handle issues in production supoort i.e., we directly login to the production server and solve or we copy the code in

  • How to put effects on multiple linked clips simultaneously

    I want to dynamically link all of the vocal clips at the same time, if possible, from a Premiere Pro CS4 Project to Soundbooth CS4 and "warm" them up a bit in a sort of batch process. Can this be done, kind of like precomposing in AE or using an adju

  • Number of calls per user in Query!!!!

    Hi , Is there any way that i could determine the list of users with number of calls they made to the queries?? I had like to have users and their calls to the queries---- Raj

  • Drill down from a line graph? Make the entire graph click-able?

    Guys, i can drill down from other types of charts except a line chart. Is there anything that is special about the line chart? Also, can i make the entire graph click-able? So, instead of clicking on a bar to trigger a linked report, can the whole ch