Create data source

Dear,

How can I create a new data source (JNDI) for DB external.

I want to be able to query the DB using JDBC, but I want the data to be managed by nenucleus source.

You can create a component like this:

MyDataSource.properties

$class = atg.service.jdbc.FakeXADataSource

User = user

password = password

URL=JDBC:Oracle:thin:@localhost:1521:XE

Driver = Oracle.JDBC.Driver.OracleDriver

After that, do the injection in the other component:

OtherComponent.properties

genericDS = / your/component/MyDataSource

In Java, to get the connection:

OtherComponent.java

Private XADataSource genericDS;

getters and setters...

Take a look also at:

Configuration of Data Sources ATG for importing data

I hope it helps.

Tags: Oracle Applications

Similar Questions

  • With JNDI error when you create a new data source

    Hello:

    This weekend, when adding new applications in the production environment, we had a problem where the new managed servers JNDI tree was inaccessible.

    We have seen the error message was:

    ####
    < 1364066840022 > < BEA-149231 > < cannot create the activation state to true for the application "EOI".
    weblogic.application.ModuleException:
    at weblogic.jdbc.module.JDBCModule.activate(JDBCModule.java:349)
    at weblogic.application.internal.flow.ModuleListenerInvoker.activate(ModuleListenerInvoker.java:107)
    to weblogic.application.internal.flow.DeploymentCallbackFlow$ 2.next(DeploymentCallbackFlow.java:411)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    at weblogic.application.internal.flow.DeploymentCallbackFlow.activate(DeploymentCallbackFlow.java:74)
    at weblogic.application.internal.flow.DeploymentCallbackFlow.activate(DeploymentCallbackFlow.java:66)
    to weblogic.application.internal.BaseDeployment$ 2.next(BaseDeployment.java:635)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
    at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:16)
    at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:162)
    at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
    at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:184)
    at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:361)
    to weblogic.management.deploy.internal.DeploymentAdapter$ 1.doPrepare(DeploymentAdapter.java:42)
    at weblogic.management.deploy.internal.DeploymentAdapter.prepare(DeploymentAdapter.java:187)
    to weblogic.management.deploy.internal.AppTransition$ 1.transitionApp(AppTransition.java:21)
    at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:233)
    at weblogic.management.deploy.internal.ConfiguredDeployments.prepare(ConfiguredDeployments.java:165)
    at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:122)
    at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:173)
    at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:89)
    at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    weblogic.common.ResourceException: is already bound
    at weblogic.jdbc.common.internal.RmiDataSource.start(RmiDataSource.java:387)
    at weblogic.jdbc.common.internal.DataSourceManager.createAndStartDataSource(DataSourceManager.java:136)
    at weblogic.jdbc.common.internal.DataSourceManager.createAndStartDataSource(DataSourceManager.java:97)
    at weblogic.jdbc.module.JDBCModule.activate(JDBCModule.java:346)
    at weblogic.application.internal.flow.ModuleListenerInvoker.activate(ModuleListenerInvoker.java:107)
    to weblogic.application.internal.flow.DeploymentCallbackFlow$ 2.next(DeploymentCallbackFlow.java:411)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    at weblogic.application.internal.flow.DeploymentCallbackFlow.activate(DeploymentCallbackFlow.java:74)
    at weblogic.application.internal.flow.DeploymentCallbackFlow.activate(DeploymentCallbackFlow.java:66)
    to weblogic.application.internal.BaseDeployment$ 2.next(BaseDeployment.java:635)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
    at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:16)
    at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:162)
    at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
    at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:184)
    at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:361)
    to weblogic.management.deploy.internal.DeploymentAdapter$ 1.doPrepare(DeploymentAdapter.java:42)
    at weblogic.management.deploy.internal.DeploymentAdapter.prepare(DeploymentAdapter.java:187)
    to weblogic.management.deploy.internal.AppTransition$ 1.transitionApp(AppTransition.java:21)
    at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:233)
    at weblogic.management.deploy.internal.ConfiguredDeployments.prepare(ConfiguredDeployments.java:165)
    at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:122)
    at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:173)
    at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:89)
    at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)


    We traced the issue to a new data source that has been added were we found that along with the entry of jndi name expected in the jdbc xml file, there were two empty entries:

    < jndi name - > weblogic.jdbc.DataSource.EOI < / jndi-name >
    < jndi name - > < / jndi-name >
    < jndi name - > < / jndi-name >


    The data source has been removed, consoles restarted, the re-created data source and the problem happened again. To get through the issue, had to manually remove empty tags in the xml file.

    We have created 2 new sources of data, and it happened only on the spot. The same data source each time. In addition, this question moved not when these changes have been made in our regions of bass (development, qa).

    The version is the same in all three regions.

    WebLogic Version:
    WebLogic Server temporary fix for 9324911 Wed Feb 03 22:38:01 PST 2010
    WebLogic Server 10.3 Fri Jul 25 16:30:05 EDT 2008 1137967


    Is this a known issue? And if so, is there a way to avoid it, other than to start checking the newly created XML files permanently?

    Thank you

    Ted

    Yes, it's a common problem documented in the Oracle documentation:
    WebLogic Server: Get ' weblogic.common.ResourceException: is already bound ' exception with name JDBC JNDI (Doc ID 1154250.1)

    The only solution is to remove the empty value entries.

    Bravo!
    AJ

  • Problems connecting to JDBC data source

    We have recently upgraded to JDeveloper 11 g to 10g and flies our applications (primarily the Struts). They are compiled fine, and I am able to create data sources and successfully test the connection to open the data source through the window of Application resources. The problem comes when I try to connect through the application. In Java code, I use a DataSource object to get the connection of InitialContext.lookup ("jdbc/sun_DS1") where the JNDI name is in parentheses. We used to define this connection in JDev 10 g via the file data - sources.xml and it worked very well. Now with 11g and defines the connection to the application, I don't know if I'm missing a step between the creation of the data source and run the application.

    The error I get is: javax.naming.NameNotFoundException: while trying to search for "jdbc.sun_DS1" did not find subcontext "jdbc." Solved "; rest the name "jdbc/sun_DS1.
    at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1139)
    at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:247)
    at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.java:182)
    at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:206)
    at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:254)
    at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:411)

    I spent a lot of time reading Oracle help docs and Googling the problem without success.

    Help, please.

    Once you run your application on the WLS console launch (http://localhost:7101/console) and look to see if JDev created a data source for you in WLS.)
    You may need to add it manually.

  • Database and data source in the planning application

    Hi the Hyperion gods.
    In the process of creating, planning an application and create the data source, I'm a bit confused.
    Creating data source, it must give a name for the DATA SOURCE and a DESCRIPTION, and under the APPLICATION of DATA base, we need to specify things such as - platform DATABASE, SERVERNAME, PORT, database, USER and PASSWORD.
    I was wondering if someone could give me a good idea about the difference between the DATA source and DATABASE in this context.
    Since I am migrating the entire application and the structure of the cube from one server to another, do I need to appoint exactly the same (except for the name of the server)?
    Thanks for your comments.

    a data source is just a name for your connection information to the relational database and essbase who will use your planning application, I usually keep the data source name that is identical to the name of the application so do not become confused.
    Database platform is the type of database, for example, Oracle, SQL Server, the server name is the hostname for the relational database, data is the name of the relational database, I think the rest should be pretty obvious, but if you want more detailed information have a read of http://docs.oracle.com/cd/E17236_01/epm.1112/hp_admin_11122/app_dsc.html

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • create the SQL server programmatially data source

    Hello

    I would like to create a SQL server by programming in LabVIEW data source. The SQL server version that I used is from 2005. Can someone give some ideas? An example of code will be more favorable.

    Thank you

    Jane

    You can build the connection string you even.  The open function in the Toolbox of data base accepts a string as well (it's polymorphic) who can be the connection string.  This is the site I use to understand.  Is the most common things.  You may need to search Google more specific elements.

    http://www.ConnectionStrings.com/

    If you want to use the other option, someone has achieved a UDL editor in LabVIEW.  You can use this code to create your own UDL which can use the Open DB function:

    https://decibel.NI.com/content/docs/doc-18613

    I have used the above code, so can't comment on that.

  • How to create the data source?

    I use MapViewer V11.1.1.7 B130111 delivered with BIEE.

    On the management data source page, there are 4 buttons like refresh, edit, delete, and purge the cached metadata. No create"" button.

    So, how can I create a new data source? I saw map_data_source article in mapViewerConfig.xml. Can I change the file for this?

    Yes.

    And preferably use a data source of the container. Which is set in weblogic and add data source information in mapviewerconfig.xml as a containerDS

    for example

        
                 container_ds = "jdbc/mapperDS.
                 number_of_mappers = "20".
                 max_connections = "100".
        />
  • Cannot create the data source in console (Linux) wls XE db (windows)

    Hi all
    I use Linux5 for 11.1.1.1.4 soa deployments, I'm unable to create the data source in WLS of XE database that runs in win7, I'm getting below error.
    did I do it properly or it is not possible? When connecting with db XE which runs on Linux, I am able to connect.


    -Error connection failed test.
    -Error IO error: the network adapter could not establish the connection
    oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:443)
    oracle.jdbc.driver.PhysicalConnection. < init > (PhysicalConnection.java:670)
    oracle.jdbc.driver.T4CConnection. < init > (T4CConnection.java:230)
    oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:34)
    oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:567)
    oracle.jdbc.pool.OracleDataSource.getPhysicalConnection(OracleDataSource.java:404)
    oracle.jdbc.xa.client.OracleXADataSource.getPooledConnection(OracleXADataSource.java:694)
    oracle.jdbc.xa.client.OracleXADataSource.getXAConnection(OracleXADataSource.java:267)
    oracle.jdbc.xa.client.OracleXADataSource.getXAConnection(OracleXADataSource.java:134)
    com.bea.console.utils.jdbc.JDBCUtils.testConnection(JDBCUtils.java:745)
    com.bea.console.actions.jdbc.datasources.createjdbcdatasource.CreateJDBCDataSource.testConnectionConfiguration(CreateJDBCDataSource.java:458)
    sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:597)
    org.apache.beehive.netui.pageflow.FlowController.invokeActionMethod(FlowController.java:870)
    org.apache.beehive.netui.pageflow.FlowController.getActionMethodForward(FlowController.java:809)
    org.apache.beehive.netui.pageflow.FlowController.internalExecute(FlowController.java:478)
    org.apache.beehive.netui.pageflow.PageFlowController.internalExecute(PageFlowController.java:306)
    org.apache.beehive.netui.pageflow.FlowController.execute(FlowController.java:336)
    ...

    just please give me some resolution.

    Concerning
    Shankar

    I noticed that this is a problem with b & w of the VM communication. box of VM workstation vm.

    Thankx
    Siva

  • Cannot create the EIS data source

    When you try to create a new DSN in the ODBC Administrator get the error:
    Error "routines of installation for the ODBC driver cannot be loaded due to system 193 error code".

    can someone tell me how to handle this error

    the installation creates problems during a previous installation

    look for 5.2 drivers are available in \HyperionHome\Common\ODBC-64\Merant\5.2\Drivers.
    Run... / HyperionAnalytics/bin/RegUpdateODBC51.bat. > Open regedit>>/HKEY_LOCAL_MACHINE/Software/ODBC/ODBCINST.ini/Merant OEM 5.1 64-bit. > backup key. > export key. > edit the export file.
    If you have 5.1 replace 5.1 5.2 in all cases
    Replace the 21 22 for all DLLs
    Make sure driver = the way of the driver in step 1
    (8) save the key file.
    9) double-click a key file to update the registry.
    (10) in ODBC Data Source Administrator, you should now see the 5.2 drivers under drivers Tag.
    (11) add the ODBC connection.

    Once installed, go to the registry under:
    HKEY_LOCAL_MACHINE/Software/WOW6432Node
    Select the driver of Merant 32 bit that you plan to use, for example
    MERANT 5.2 OEM 32-BIT Oracle Wire Protocol
    and verify that the following entries have been added.

    If they are not there then add them manually:
    'Driver"="C:\\Hyperion\\Common\\ODBC\\Merant\\5.2\\Drivers\\arora22.dll '.
    'HelpRootDirectory"="C:\\Hyperion\\Common\\ODBC\\Merant\\5.2\\help '.
    'Setup"="C:\\Hyperion\\Common\\ODBC\\Merant\\5.2\\Drivers\\arora22.dll '.

    The path must point to your location of HYPERION_HOME.

    Once open the 32-bit ODBC Administrator of:
    C:\Windows\SysWOW64\odbcad32.exe

    Add a new system DSN using the correct driver and connect to the Console of IST use this DSN.

    If you are using Oracle, you MUST use the Oracle Wire Protocol driver and NOT the driver Oracle standard Merant.

    If you use the standard driver, this message may appear when you try to connect from the Console of the EIS:
    2003000 error: Specified error ODBC driver could not be loaded because of the error system 193 (5.2 Oracle 32-bit OEM Merant)

  • Creating a display with a data source object

    Hello guys,.

    Is there a way to create a View object in JDeveloper 11.1.1.4.0 using an instead of a JDBC data source connection string? When I select new-->--> view object ADF business components, it seems that the Research Assistant for a default database connection.

    I wonder if there is a way to create a display object and specify something like ' java: comp/env/jdbc/xxxxDS ' as a data source. I know that the Module of the Application can be configured to point to a JDBC data source and then WLS can be configured to use the JDBC data source, but I wonder if it's the only way to go.

    Thank you

    David
    I know that the Module of the Application can be configured to point to a JDBC data source and then WLS can be configured to use the JDBC data source, but I wonder if it's the only way to go.

    Yes, at design time you only use inside JDeveloper JDBC connections to connect to the DB and create components ADF BC - after all development is done alone without a WLS environment.
    At run time, your AM can be configured to use a data source or JDBC connection.

  • Cannot create new Data Source - Oracle ODBC doesn't show any system DSN

    On Windows 7 x 64, installed Oracle 10 g using ODBC to connect to the Oracle database, but I am not able to create a new data source as Oracle ODBC doesn't show... illustrious system DSN only SQL server etc etc...

    If you have installed the 32-bit database Client, try the 32-bit ODBC administration tool: C:\Windows\SysWOW64\odbcad32.exe

    Note that 10.2.0.5 is the oldest version of "10g" supported on Windows 7.
    http://download.Oracle.com/docs/CD/B19306_01/Relnotes.102/b15680/TOC.htm#BABEBBJF

    As an alternative, try the customer Instant 11.2.
    For 32-bit applications: http://www.oracle.com/technetwork/topics/winsoft-085727.html
    64-bit / x 64: http://www.oracle.com/technetwork/topics/winx64soft-089540.html

  • Cannot create the data source to SQL Server

    Hi people,

    I am running IIS, Windows XP SP3, SQL Express 2005, Trial Version of ColdFusion 9 (no patches).

    The administrator using ColdFusion, when I try to create a data source for SQLExpress 2005 (SQL Server Express), by using the SQL Server driver, I get the following error:

    Connection verification failed for data source: AMT
    java.sql.SQLException: [Macromedia] [SQLServer JDBC Driver] the requested instance is not valid or is not running.
    The root cause was that: java.sql.SQLException: [Macromedia] [SQLServer JDBC Driver] the requested instance is not valid or is not running.

    The "instance", which I interpret as meaning the database instance, is "machinename\SQLExpress" (it is a so-called "named instance").  That's what I enter in the "Server" field of the display (data & Services-> sources-> Microsoft SQL Server).

    However, I am able to create an ODBC data source name in Windows using the driver Microsoft SQL Server Native Client Version 09.00.3042 and the same instance, "machinename\SQLExpress".

    Does anyone have any ideas as to what is wrong?

    Try to use the domain name TCP/IP (or IP address) and port instead of the info of the connectivity of Windows style.  You may need to enable TCP/IP as a network on the DB server protocol well (I think it is disabled by default on SQL Express Ed).

    --

    Adam

  • Creating a problem of ms access data source

    Hello
    I tried to create a ms access datasource (standard ms access driver) in the CF admin, and I have this message all the time:

    "Connection verification failed for data source: dog.
    java.sql.SQLException: [Macromedia] [SequeLink JDBC Driver] [ODBC Socket] [Microsoft] [ODBC Microsoft Access driver] bad user name or password.
    The root cause was that: java.sql.SQLException: [Macromedia] [SequeLink JDBC Driver] [ODBC Socket] [Microsoft] [ODBC Microsoft Access driver] bad user name or password. »

    I tried with the username-password that I usually use to log into the CF admin, but it does not work. Someone shows me a clue, please?
    Thank you

    Try to enter only these 3 parameters

    CF data source name: dog
    Database file: c:\pathToDatabase\yourDB.mdb
    Use default username: (check this)

  • Problem of driver ODBC Oracle when trying to create a data source / Win XP

    Hi guys,.

    hope I'm here with my question.

    When I try to create or data source in Windows (regardless if user or system data source), and then click 'Test connection', I get this error:
    * [SQLAllocHandle from Microsoft] [ODBC Driver Manager] drive on SQL_Handle_ENV failed *.

    TNS name is correct, tnsname.ora is correct, the user is correct.

    I have the driver for an OraClient10g is installed on my machine.

    I'll reinstall this package? Other things to do to fix this?

    Many thanks for any help,


    Christian

    Published by: ChristianP2 on October 6, 2008 18:13

    You can read this article
    http://www.orafaq.com/Forum/m/100430/0/?srch=driver%27s+SQLAllocHandle+on+SQL_Handle_ENV+failed#msg_100430

    someone said that it fixed the problem after the correct path environment variables

    someon claimed that it is permission problem when installing.

  • Data source cannot be created: [MapperConfig] unable to add the source of card data.

    I get this error:
    * The data source cannot be created: [MapperConfig] unable to add the map data source.*

    While following step 2 of the installation Demo MapViewer tutorial.

    I have the BI server installed on a machine and to implement the demonstration on a data schema database RAC.

    I managed to configure the connection via OIC and TNS Planner,
    but now when I try to add, OracleAS MapViewer Admin, data MVDEMO source I get this error.

    I use:
    NAME mvdemo
    BASED ON: TNS is selected
    TNS name: ORCL_TAF
    User: mvdemo
    Password: mvdemo
    # Mappers: 3
    Max connections: 100

    Thank you
    Marco

    Hi Marco,.

    I had the same problem with the MapViewer and a RAC.

    You define your data source in the MapViewerConfig.xml? You will find this XML code under: j2ee/mapviewer/applications/mapviewer/web/WEB-INF/conf

    If so, you need to restart your OC4J Instance with the option "-userThreads. You can do this in the properties of the server administration/mapviewer/unter EnterpriseManager or with the opmn.

    So, I think, you have first to define your data source in the configuration file. Otherwise, it does not have with a CAR.

    I hope this helps.
    Andrea of CU

  • Create the data source NoSQL Oracle using Oracle Weblogic 11 g

    Hello

    I'm working on a VINE by which I want to connect NoSQL Oracle database with Oracle Weblogic11g as a new source of data in Oracle Database 11 g of accompaniment.

    So my question is that Oracle Weblogic 11 g support NoSQL Oracle database as a data source OR can I plug NoSQL Oracle database as the source of data with Oracle Weblogic11g?

    Thank you...

    Hello

    By 'data source' I assume you mean a JDBC data source. Is this fair?

    If so, please be aware that NoSQL DB does not support SQL or JDBC, although these features can be added in the future. Currently, to access data in the NoSQL database from your application, you must use the Java APIs in the pilot of the client which is included in the package. Please see the Starter Guide for more information.

    That answer your question?

    -mark

Maybe you are looking for