How to change DataSource runtime in Oracle ADF.

Hi All,
In my requirement,Its seems to selecting dynamic data-source.let me explain my requirement i have a table in database username,passwords and schema name. from the login page i ll pass username,password and as drop-down I ll select schema.once i successfully logged-in can i access (execute, display data from ) selected schema from UI.in all sachems tables remain same but data is different.
how to execute/change selected data-sources at run time if i am using Bc4J.
please give me some solution.
regards
Siva

Check Jobineshs blog http://jobinesh.blogspot.de/2011/04/modifying-application-modules-jdbc.html and Andrejus blog http://andrejusb.blogspot.de/2012/08/sample-application-for-switching.html
Timo

Similar Messages

  • How to change DataSource dinamically in Oracle ADF.

    Hi All,
    I have some requirement.to deal with different Database schemes. Here I am creating one ADF application which will accept username and password after validation Its need to redirect other page where I can perform CRUD operations.yes i can able to execute this same.here I have three there schemes(inside schema tables are same.) name as dev,test,prod respectively.
    thing is that i need to dynamically select the data source based on the selected environment(from UI I am selecting username,password and environment).let me know how to maintain variables in memory and how to create Appmodule for to achieve this requirements.
    please give me solution.

    http://www.oracle.com/technetwork/developer-tools/jdev/dynamicjdbchowto-101755.html

  • How to change datasource viewobject main query in .jsp

    Hi i have datasource DataSource viewobject="test"
    now in .jsp page i need to change it main query and after some things again back to default how i can doo it ?
    Thanks for tips!
    ID.
    Jdeveloper Studio Edition Version 11.1.1.6.0
    ADF Business Components
    11.1.1.61.92

    if you want to change where clause or modify the whole query look here
    Changing the WHERE clause or VO Query at runtime in Oracle ADF | Techartifact

  • How to change datasource name based on the partition in configplan

    Hi
    Can any one please give me some solutions regarding how to change datasource name based on the partition in
    configplan.
    can't we do this in configuration plan?

    If you want to change template based on parameter. you have to use below syntax
    v_layout boolean
    V_LAYOUT:= FND_SUBMIT.add_layout(template_appl_name => 'SQLAP' -- application short name
    ,template_code => 'HUBAPAPN' -- template name
    ,template_language => 'en'
    ,template_territory => '00'
    ,output_format => 'PDF');
    Above can be used in plsql stored procedure before submitting Concurrent Program (Bi Publisher report) or may be you can try to add this code in Oracle reports after report or before report trigger
    Thanks
    Kamalakar

  • How to change autocommit property in Oracle 8.1.6 server

    Can anybody tell me how to change autocommit property in Oracle 8.1.6 server?
    Thanks in advance.
    Matthew
    null

    Hi,
    SET AUTOCOMMIT OFF
    thanks,
    Boby Jose Thekkanath,
    Consultant,CWO,
    NSW-AUS.

  • How can I control updating in Oracle ADF

    I have been using Oracle Forms for many years and am trying to learn Jdeveloper and Oracle ADF. In Oracle Forms, we base all of out blocks on views and control all updating in on-insert, on-update, and on-delete triggers. How can I control updating in Oracle ADF in a similar manner?

    Hi,
    Hope following will helpful
    http://www.pitssamerica.com/files/101102_WP%20FormsToADF.pdf
    http://www.exploreoracle.com/2010/08/24/oracle-application-development-framework-adf-and-oracle-forms-developers/
    http://www.google.lk/url?sa=t&rct=j&q=adf%20sample%20for%20oracle%20form%20developer&source=web&cd=7&ved=0CEAQFjAG&url=http%3A%2F%2Forclsamples.googlecode.com%2Ffiles%2FThe%2520Challenges%2520Oracle%2520forms%2520Migration%2520to%2520ADF.pdf&ei=0FzWToaUI4_JrQe0oommDg&usg=AFQjCNEdpho2uVqhSCEugw1svza6zc9iSg&cad=rja

  • How execute pl/sql command from Oracle ADF Business Components

    can't find examples for how execute pl/sql command from Oracle ADF Business Components and how call pl/sql package procedure from ADF Business Components.
    insert,update,delete rows in view object instance cache is good but if i must do some complex operations while insert,update,delete rows..it's more better for me to call
    pl/sql procedure from oracle db.Am i wrong ????

    Roman,
    this should be similar to how it worked in JDeveloper 9.0.3. hava a look at <JDev903 Home>\BC4J\samples\StoredProc for a code example.
    Frank

  • How to change the Schema (DB2, Oracle) in CommandTable at run time

    Dear all,
    I have a problem as below:
    I have created report with CommandTable, then I am using Java and CRJ 12 to export data. So how to change the SCHEMA in CommandTable? 
    Please help me on this.
    Ex: CommandTable is SELECT * from SCHEMA.TableA, SCHEMA.TableB
    Thanks,
    Nha

    Dear Ted,
    I want to change DataSource, it means the report will be load and change connection at run time (using CRJ SDK) and i want to change the SCHEMA.Tablename in CommandTable in report.
    I also use the parameter to do it, but it can not be at run time, just correct when designing.
    Could you please help me on this. You can post the code if any.
    Thanks,
    Nha

  • How to do search with LOV+oracle adf

    Hi,
    I m using jdeveloper 11g with oracle adf .As i know that input text with LOV has default search facility. Plz tell me how to make search by using LOV .so that when i click on input text with LOV data should come in form.

    hi
    check this
    http://andrejusb.blogspot.in/2008/02/list-of-values-component-in-search-and.html
    Regards

  • How to store Custom principal in Oracle ADF security Framework

    Hi guys, hope somebody will help me out.
    I am facing the following issue, i need to have a custom principal instance after oracle adf security frame work does authenticate and authorize user.
    My custom principal instance should have per say addition attribute, say clientId. I am using Jdeveloper 11.1.2.4 and i setup weblogic to use ReadOnlySQLAuthenticator(it does most of desired functionality).
    As far as i get it, i would have to implement a custom provider to have a chance to implement a custom LoginModule, so i can set it up to use my custom principal, am i right ? and i am not sure how ReadOnlySQLAuthenticatorImpl that i chose in weblogic is bound to
    DBMSAtnLoginModuleImpl (i mean how does it knows what LoginModule should it use) and if i can , how can i make  ReadOnlySQLAuthenticatorImpl  use my custom LoginModule.
    Sorry if i violated forum rules.

    and i am not sure how ReadOnlySQLAuthenticatorImpl that i chose in weblogic is bound to
    DBMSAtnLoginModuleImpl (i mean how does it knows what LoginModule should it use)
    This info is returned by getLoginModuleConfiguration(): AuthenticationProvider (BEA WebLogic Server 10.0 API Reference)
    Dario

  • How to change the Program in Oracle Session

    When I create or use a JDBC connection, I want to set the value of something 'in' the connection so that it shows when I do a query like:
    select SID, Program, Machine, Module, client_info
    from v$session
    For example, how do I set the 'Client_Info' column of v$session? Or the, 'Program' column?
    Or can you do this in JDBC?
    I am using the thing 8.1.x driver ( where x = 6, I think).
    My server, is 8.1.7.4 on Solaris...
    Thanks

    Thanks a lot for your answer.
    Do you know how to implement that when using the Oracle ADF framework?
    JClient dynamic credentials and Struts/ADF => Application module with configuration file.
    see thread (JDeveloper forum)
    JClient 2Tiers/JDBC Security question
    Regards
    Fred

  • How to change datasource location in CR V10

    How to change the datasource location in CR10, I need to use same table in different database. I tried in "Set Datasource Location" but it is not updating to the new one which i have selected. please help me on this.
    Thanks,
    S Aravind.

    Hi Try like this,
    Go to the Database option on the top > Select Set data source option.
    The top portion of the Set Data source Location window shows the current connection and part at the bottom is where you would make a connection to the new database
    Once the connection has been made, select 'one' table from the current connection and then select a matching table in the new connection and click on the 'Update' button. Do this for all the tables one by one.

  • Jdeveloper 11g: how to change the extension library Oracle JDBC

    Hello
    We use JDeveloper 11g for our desktop (swing) projects. When I debug the project in IDE, the classpath includes this jar: C:\Oracle\jdevstudio1117\oracle_common\modules\oracle.jdbc_11.1.1\ojdbc6dms.jar
    The ojdbc6dms.jar is in Oracle JDBC extension library. We actually want to use ojdbc14dms.jar as our jdbc library jar. I exclude the ojdbc6dms.jar in the project classpath setting and add a user library for ojdbc14dms.jar. When I run the project, the IDE still use ojdbc6dms.jar in the classpath. I try to use "Manage Libraries" under "Tools" menu to change the jar file in Oracle JDBC extension library, but it cannot be changed.
    Can I ask how to change ojdbc6dms.jar to ojdbc14dms.jar in Oracle JDBC? Or, how can I let the IDE not use ojdbc6dms.jar when I run the project? Thank you
    Leaf

    Replace the ojdbc6dms.jar with ojdbc14dms.jar in C:\Oracle\jdevstudio1117\oracle_common\modules\oracle.jdbc_11.1.1
    The ojdbc14dms.jar may be required to be renamed to ojdbc6dms.jar in the C:\Oracle\jdevstudio1117\oracle_common\modules\oracle.jdbc_11.1.1 as the pre-configured settings are for ojdbc6dms.jar.
    Edited by: dvohra21 on Jun 3, 2013 5:47 AM

  • How to change the name of Oracle Intractive Dashboard and my Dashboard

    Hi,
    can any body help me out. how to change Oracle Intractive Dashboard whis is top left on the dashboard page.
    and also please tell me how to remove my dashboard page.
    Thanking you
    Phani Babu

    Have a look here :
    http://obiee101.blogspot.com/2009/06/obiee-new-portal-banner.html
    regards
    John
    http://obiee101.blogspot.com

  • How to Edit Word Document in Oracle ADF Application - Apache POI

    Hi All
    I was wondering if there is a way to edit and save word documents in Oracle ADF without loosing the Formatting.
    I was able to edit and save the word document however the Formatting was lost.
    Please let me know if there are any pointers or open source Java APIs that we can use to achieve this.

    Refer the Text Formatting section
    Apache POI - HWPF - Java API to Handle Microsoft Word Files
    HWPF Reads in a Word document with minimum formatting (no lists, tables, footnotes, endnotes, headers, footers)
    Apache POI - HWPF - Java API to Handle Microsoft Word Files
    The _cbt field in class HWPFDocumentCore contains formatting information.
    HWPFDocumentCore (POI API Documentation)
    For more advanced text extraction needs, including Rich Text extraction (such as formatting and styling), along with XML and HTML output, Apache POI works closely with Apache Tika to deliver POI-powered Tika Parsers for all the project supported file formats.
    Apache POI - Text Extraction
    Use Apache Tikka for formatting.
    Apache Tika - Supported Document Formats

Maybe you are looking for

  • First time MacBook pro user - Why is my MacBook very slow??!

    HELP !!!. Got my first MacBook - and I am really dissapointed by the performance. My Toshiba Ultrabook is 20 times faster for these task's!!!! Running the below MacBook, with a PhotoBook application named Hofmann - response time from moving the point

  • Sorry posted in wrong place

    sorry posted in wrong place Edited by: user636526 on Oct 28, 2008 11:49 AM

  • Internal error ORA-3135 and huge udump

    I don't know if this should be addressed here in this forum rather then metalink, but anyway I will try. I get an internal error and a huge udump trace-file (2 Gb), the situation is that I created a view with a reference to a package function in the

  • Azure + Sync Framework + Error: Value was either too large or too small for a UInt64

    Hi, We have an in-house developed syncronisation service built on the Sync Framework v2.1 which has been running well for over 2 years. It pushes data from a local SQLServer 2005 database to one hosted on Azure with some added encryption. The service

  • Tinker Tool

    Hello! I downloaded the following: http://www.chip.de/downloads/TinkerTool_31872502.html Now I have the problem that I cannot open or download any PDF-files in SAFARI or in FireFox. What shall I do? I deleted already the downloaded „Tinker"Programme,