Switch To Different Schema Connection With Existing Application

Hi,
Currently, i want to connect my existing application to a different schema, how should i do it?
The situation is that i have two schema(call Database Connection in JDeveloper) that have exactly the same structure, as one is duplicated from anothe. My purpose of doing this is to use one of the schema for daily operation, while the other for testing.
I have tried with this method:
1. Right click on the Business Component project node and select Edit Business Component Project.
2. In the Connection Tab, i change the Connection Name to the new schema(which used for testing).
3. Then i open my .jsp page and sad to see the it's still retrieving data from the old schema.
Am i hitting it with the wrong tactic? Please lemme know if there's any way that i can solve my problem.
Thanks,
Sin Leng

Hi,
The code snippet provided above must be executed whenever an ApplicationModule is first used by a new session but only after
that ApplicationModule has been connected (otherwise the connection will not be available). Depending upon the type of client that
you are developing (Swing vs. servlet for example) the right place to put this code could vary. Further, if your ApplicationModule
and/or connection is pooled you must also be careful to reset this information whenever an ApplicationModule is serially reused
by different clients.
As of 9.0.3, the BC4J framework has provided a single hookpoint for all clients to manage session context on the middle tier. The
method is oracle.jbo.server.ApplicationModuleImpl.prepareSession(Session). This method is invoked whenever a session
(represented by a SessionCookie in the BC4J framework) uses an ApplicationModule which it had not referenced from a previous
request. The Session parameter is the ApplicationModule session context which BC4J will automatically update with the
userData context of the client side SessionCookie before prepareSession(Session) is invoked. This makes custom, client
side context available to the midtier. Further this method is invoked after BC4J has connected the ApplicationModule, so it is a safe
hookpoint for initializing custom DB session context as well as MT session context.
In order for BC4J to make the client side SessionCookie userData context availabe in prepareSession
the SessionCookie userData context must have been set before SessionCookie.useApplicationModule has been invoked. Please see
the javadoc for SessionCookie.getUserData() and or the pooling sample ($JDEV_HOME/BC4J/samples/Pooling) for more information
about acquiring a SessionCookie reference programmatically (so that you can initialize the SessionCookie userData). Other options
may be to set up the userData in a custom SessionCookieFactory. Please see the pooling sample for a sample custom
SessionCookieFactory implementation.
Hope this helps.
JR

Similar Messages

  • How can i import tables from a different schema into the existing relational model... to add these tables in the existing model? plss help

    how can i import tables from a different schema into the existing relational model... to add these tables in the existing relational/logical model? plss help
    note; I already have the relational/logical model ready from one schema... and I need to add few more tables to this relational/logical model
    can I import the same way as I did previously??
    but even if I do the same how can I add it in the model?? as the logical model has already been engineered..
    please help ...
    thanks

    Hi,
    Before you start, you should probably take a backup copy of your design (the .dmd file and associated folder), in case the update does not work out as you had hoped.
    You need to use Import > Data Dictionary again, to start the Data Dictionary Import Wizard.
    In step 1 use a suitable database connection that can access the relevant table definitions.
    In step 2 select the schema (or schemas) to import.  The "Import to" field in the lower left part of the main panel allows you to select which existing Relational Model to import into (or to specify that a new Relational Model is to be created).
    In step 3 select the tables to import.  (Note that if there are an Foreign Key constraints between the new tables and any tables you had previously imported, you should also include the previous tables, otherwise the Foreign Key constraints will not be imported.)
    After the import itself has completed, the "Compare Models" dialog is displayed.  This shows the differences between the model being imported and the previous state of the model, and allows you to select which changes are to be applied.
    Just selecting the Merge button should apply all the additions and changes in the new import.
    Having updated your Relational Model, you can then update your Logical Model.  To do this you repeat the "Engineer to Logical Model".  This displays the "Engineer to Logical Model" dialog, which shows the changes which will be applied to the Logical Model, and allows you to select which changes are to be applied.
    Just selecting the Engineer button should apply all the additions and changes.
    I hope this helps you achieve what you want.
    David

  • After Redirected Restore with different schema problems with db13

    Hello, we made a redirected restore. We have different schema between production and quality system.
    According to note 713524 we made the following changes:
    create db connect user from the source system in the target system (unix user, sap<sid>)
    set parameter dbs/db6/schema=sap<sid> in the instance profile
    set dbs_db6_schema = sap<sid> in the environment for <sid>adm and db2<sid> (dbenv...)
    add user sap<sid> into /sapmnt/<SID>/global/dscdb6.conf and set password with dscdb6up sap<sid> <password>
    The system is now up and running. But transaction db13 is not working
    SQL0443N  Routine "*SHOT_DBM" (specific name "")
    has returned an error SQLSTATE with diagnostic
    text "SQL1092  Reason code or token: SAPR3
                   ".  SQLSTATE=38553
    Regards,
    Alexander

    Hi Alexander
    sorry , forget the grants , they should come from the source system .
    If you have multiple App-Servers , did you perform the above mentioned action in all affected profiles and environments of your Q-System ?
    Please check , if you can limit this issue to an separate App-Server or to all App-Servers .
    Best regards
    dirk

  • WLPI: integrating organizations and roles with existing application

    Hi,
    how do I integrate WLPI's organizations and roles with an existing application's
    data structure? It looks like WLPI expects organizations and roles to be groups
    with a particular naming convention (i.e. an org is defined by a group 'WLPIOrg@MyOrg'
    and a null member). If I am integrating with an application that stores organizations
    and roles in (for example) separate database tables, how do I get WLPI to recognize
    these? Or do I have to maintain the organizations and roles in 2 places, one for
    the application and one for WLPI in the format described above?
    THanks,
    Martin

    Hi Martin,
    We're in the middle of a prototyping exercise of getting WLS, JMS,
    WLP, WLPI integrated accross one security realm. What its looking like
    is this (bear in mind I think this hasn't been tried before judging by
    newsgroups + BEA Docs)
    1)WLP has a bug that you cannot get user details from LDAP(exception
    is thrown)
    2)WLPI does need a certain structure -
    http://e-docs.bea.com/wlpi/wlpi121/install/cfigrun.htm#1246656
    and
    http://developer.bea.com/ftp_bin/Using_LDAP_with_WLPI.zip
    A) To solve your problem maybe you could write a custom realm to
    translate the roles + orgs back (no writing from WLPI ie read only )
    to WLPI.
    B) Maybe you caould have a META-DIRECTORY set up that synchronises the
    RDBMSRealm with something else maybe LDAP or another RDBMSRealm
    We are also looking into a unified security solution by Netegrity
    called siteminder. They are about to release a version for WLS 6 but
    they seem to be laggin behind. This provides a single signon over and
    enterprise system.
    This is a bit vague Martin, I will hopefully have more concrete info
    in a week or 2. If you have any other info you can mail me on -
    [email protected]
    BTW this wouldn't be Martin Van Vilet from the Netherlands that worked
    on the Intelligent Finance Product?
    "Martin van Vliet" <[email protected]> wrote in message news:<3b17ece8$[email protected]>...
    Hi,
    how do I integrate WLPI's organizations and roles with an existing application's
    data structure? It looks like WLPI expects organizations and roles to be groups
    with a particular naming convention (i.e. an org is defined by a group 'WLPIOrg@MyOrg'
    and a null member). If I am integrating with an application that stores organizations
    and roles in (for example) separate database tables, how do I get WLPI to recognize
    these? Or do I have to maintain the organizations and roles in 2 places, one for
    the application and one for WLPI in the format described above?
    THanks,
    Martin

  • ITunes store no connect with apple application support 2.0.1

    I have found that my store wont connect when I installed the latest Quicktime.  After several trial an errors i pinpointed it down to the latest apple application support.  Store works fine with the old version of 1.5.2.  Just wondering if anyone else has experienced a loss of store loading all of a sudden.  It might be this problem.

    7 september 2010
    For some reason (Firewall / Internet security programs?) the Apple iTunes installation program doesn't install all the necessary components.
    There is a way to manually unpack the installation program to it's 6 different components and install each component one by one.
    (Advantage: you don't need to uninstall or deactivate your security programs)
    Best thing to do is:
    1) Download the iTunes installation program (directly from the Apple website
    http://www.apple.com )to your desktop,
    WITHOUT INSTALLING the iTunes application.
    2) Download he WinRAR decompression/unpack utility (for example from:
    http://download.cnet.com/WinRAR-32-bit/3000-2250_4-10007677.html?tag=recommended Downloads )
    and install it on your desktop for easy use.
    3) Unpack the iTunes installation program, using WinRAR by rightclicking the
    iTunes installation program and choose 'Open with WinRAR'.
    Don't bother with the message from WinRAR about files beïng corrupt
    (these are probably the unreadable 'Apple Mac' files).
    4) You'l see that the original iTunes installation program consists of 6
    different installation programs.
    4 utility programs (necessary for iTunes to work correctly)
    - Apple Application Support (Version: 1.3.2)
    - Apple Software Update (Version: 2.1.2.120)
    - Apple Mobile Device Support (Version: 3.2.0.47)
    - Bonjour (Version: 2.0.3.0)
    and 2 main programs
    - Quicktime
    - iTunes
    Copy these 6 programs to your desktop with WinRAR,
    where they will appear unpacked.
    5) Install each program one by one IN CORRECT ORDER:
    - First the 4 utility programs, one by one.
    - Following this, install QuickTime.
    - Install iTunes as last.
    6) Check the Windows installed programs list to see if they're all installed.
    You can check the versions of te programs by clicking the information toolbar
    for each program.
    Good Luck..!

  • Security socket connection with the Applications Database Table

    Friends,
    As the security of connection when it is the integration of Oracle Identity Manager and a Oracle database through the database connector (Database Applications Table).
    With the following versions:
    - Oracle Identity Manager 9.1.0.2
    - Oracle WebLogic Server 10.3.5
    - Oracle Database 11.2.0.2
    - Oracle Solaris 10
    Thanks

    I have already posted on the Progress talk forum. Just wanted to know if anyone in this forum had the same problem if so i can get the solution.

  • Cannot establish mysql database connection with j2ee application

    Hello All,
    I started studying J2EE technology about a month back. I have this simple application involving a couple of servlets and jsps. The code is from a reliable source , so I know that there is nothing wrong with the prog code. Now the code uses a simple database, where I am stuck! I just can't connect to the database Mysql.
    I downloaded Mysql database from the mysql site.
    I downloaded JDBC driver for mysql from the same site.
    Can somebody please tell me which files(from the driver that I downloaded) have to be unzipped to jar files to be set in the class location?
    Any help is highly appreciated.
    Thanks
    Starting WithJ2EE

    Hello All,
    I started studying J2EE technology about a month back. I have this simple application involving a couple of servlets and jsps. The code is from a reliable source , so I know that there is nothing wrong with the prog code. Now the code uses a simple database, where I am stuck! I just can't connect to the database Mysql.
    I downloaded Mysql database from the mysql site.
    I downloaded JDBC driver for mysql from the same site.
    Can somebody please tell me which files(from the driver that I downloaded) have to be unzipped to jar files to be set in the class location?
    Any help is highly appreciated.
    Thanks
    Starting WithJ2EE

  • How to use time capsule as hard drive and connect with existing net gear router

    I have a netgear D6300 router, which i use to connect to internet - which is excellent so far for my downloads and games etc for my PS4 and hence am keen to continue using it. I bought the Airport time capsule for wireless storage, and when i set it up, I was advised on setup to connect the TC to my router, and it did what it needed to do.
    Now, in order to connect to internet, i need to connect wifi to net gear router, but to access time capsule, i need to change wifi connection to my newly created wifi network with TC.
    I want to use TC as a backup storage for my mac (its a 3TB TC), but also, my laptop has only 500gb hard drive which is now half full from downloads, so i want to transfer all my downloads to my TC and use it as an external hard drive, and future downloads to TC - but when i connect to wifi of TC, i can copy my folder on my mac, but not paste it to TC in finder. (the only thing in TC is an image of tmg of my macbook from first backup.).
    How do i use TC as an external HD - there wasn't much difference in price of external wifi/wireless HD between non-TC and TC at 3gb, so i just thought i'd go for the airport TC option.
    And is it possible to keep connected to wifi internet via net gear router, AND wifi TC - the whole point i bought it (from US shipped to australia on eBay, therefore not able to send back) was to use TC as external large HD via wifi, but keep my net gear router going.
    Surely there is a way to not having to flick between wifi connections of TC and net gear internet.
    When i'm connected to TC, i can't access internet, only TC.
    And I don't really want to connect TC to my router via ethernet cable, as too many cables.
    This can't be a difficult situation to manage, but i'm not sure how to do it.
    Thanks

    And I don't really want to connect TC to my router via ethernet cable, as too many cables.
    Sorry but you have very little choice.
    The TC can join to a wireless network.. but it is flakey, poor, slow and highly NOT recommended way to do things.
    Nevertheless if you want to give it a try .. here is the method.
    How do I setup my time capsule with wireless internet?
    You SHOULD, plug the TC into the Netgear and run it in bridge mode.. you set the wireless to create a wireless network.. then when you connect to the TC it will be also connected to the internet and fast.
    (if you don't do that you may as well have used a USB drive plugged into the Netgear, as it would be just as good).
    TC is not actually designed for mixing Time Machine backups and files.. but if you are just storing downloads that is ok.. but I strongly recommend you use a DMG or sparsebundle to prevent the TM and the data from messing each other.
    See Pondini instructions here.
    Q http://pondini.org/TM/Time_Capsule.html

  • HOT Problem connecting with Exporting application!

    When I try to export my ApEx application I receive an error:
    ORA-04030: out of process memory when trying to allocate num 16396 bytes (koh-kghu sessi,pl/sql vc2)
    Error exporting flow 101. ORA-04030: out of process memory when trying to allocate num 16396 bytes (koh-kghu sessi,pl/sql vc2)
    Best Regards

    Hi,
    If you haven't already contacted your DBA about this, you really should.
    If you are the DBA, then you should be taking a look at your memory parameters to see if they're suitable for your situation. If you're unsure then either seek the assitance of another DBA or file a support request with Oracle.

  • Why do I have two different speed connections with my express?

    I have my Airport Express setup. On my MacBook Pro using speedtest, the download connection shows 15.0 mbps, but downloads are only 0.15 mbps...10 times too slow. When I run speedtest on my iPhone 4S attached to same wifi, the download speed only shows 1.5 mbps (Which is a connection speed that I Could expect 0.15 mbps downloads off of). Is there a reason it would give faster connections to some devices?

    One general rule is that no two devices will perform exactly the same, regardless of similar network conditions.
    Speedtest attempts to give you an instantaneous average speed between one of their servers and your network device. This calculation is based on data traveling over multiple media paths. In almost all cases, the download/upload speeds (provided by your ISP) is far slower than the speeds possible on your local network.
    The Internet speed is basically controlled by two factors: 1) The current condition of the Internet, and 2) What your ISP is providing you ... and unless you are getting business-grade service, what your ISP provides you is not guarenteed.
    You local network speed is something that you have more control of. For example, your MBP is most likely capable of connecting to 802.11n wireless networks on either the 2.4 or 5 GHz radio bands. The latter offers bandwidth speeds in excess of 400 Mbps. Your iPhone, on the other hand, can access 802.11n networks, but only on the 2.4 GHz band. Typical bandwidth for this band is 130 Mbps.

  • SAP R3 CONNECTION WITH JSF APPLICATION

    Hi Experts,
    i want to integrate my JSF application to the SAP R3 using java class. I searched a lot of blogs and docs where they have given a proxy class approach.But i am not able to use it.
    If you have any experience or knowledge , please reply .
    Thanks in Advance
    Ankur Goyal

    Hi,
    I am using NWDS 7.2.If you have any sort of information about a java apllications integration wiith SAP R3 then please reply back to me.
    Ankur Goyal.

  • How to host one application using different database connection on OAS?

    Hi,
    Jdeveloper - 10.1.3.4
    Application - ADF/BC
    Oracle Application Server - 10.1.3
    Above our the specifications for our application,
    We have two database schemas different for development and production therfore we have different databse connections for the two,
    we have one application which is in production and enhacements on the same application are done by the development team.
    Since we have two different schemas for developement and prduction we use different database connections for the application on development and production.
    The problem is our Model and View Controller project are same, only the database connection file changes that's why we are able to host only on application at a time on our OAS. This is probably because the URL generated by OAS for developemnt and prodyction application is same.
    Is there a way we can host two instances of the same application with two different database connections on the a single OAS.
    Thanks & Regards,
    Raksha

    Use different deployment profiles each with a different context root for your application?
    See: http://one-size-doesnt-fit-all.blogspot.com/2009/02/configuring-separate-dev-test-prod-urls.html

  • FR Studio - Is there a workaround for the issue with referencing data from a grid with a different DB connection and different # of dimensions?

    Hi,
    I am trying to reference a column in a different grid with a different database connection. I did some research in the forums, and it seems like this is a known issue with FR Studio. The issue is that if the 2 different database connections have different # of dimensions, then the reference will throw an error.
    For example, what I'm trying to do is below:
    In grid2.column[A], I have the following formula:
    grid1.column[A]
    The result is an error.
    The ultimate goal is to have a basic variance formula in the grid between grid1 and grid2, which have different database connections with a different # of dimensions. Is there a workaround at all to this bug? The example of the basic formula is below:
    grid1.column[A] - grid2.column[A] 
    Any help is much appreciated!
    Thanks,
    Tiffany

    Thanks for the detailed response Mike.
    The issue with trying it in Grid1 vs Grid2 is that Grid1's DB connection has more dimensions than Grid2's DB connection. I can't change the DB connection to a database with more dimensions because you have to be able to map all dimensions from the existing DB connection  (Grid1) to the new DB connection (Grid2). This isn't possible, so instead I have to map Grid2 (less dimensions) to Grid1 (more dimensions). It just ignores the extra dimensions from Grid1. Does that make sense?
    Thanks again for your responses. It's very much appreciated.
    Tiffany

  • How can I create a mobile application to connect with my php system

    II have few question to ask all expert here :
    1. Im using Netbeans IDE, how can I compile the .java file to .jar ?
    2. Currently, I have created a point of sales application using php and I hope to create a Mobile application to connect with tis system. So, anyone can let me know what I need to start ?
    3. Im using postgresql database, anyone here know how to connect with mobile application?

    !. When you build java application in NetBeans (standard one) you just click 'Build' or 'Clean and Build' and your jar file is waiting for you inside 'dist' directory of your project
    2. Connecting MIDP application to the server running PHP scripts is not a problem, just connect using simple HTTP with GET or POST and you are done, google on it!
    3. You can connect to the database using some kind of PHP/JSP/ASP or whatever application you want and then using method from point 2 to send and retrive values, you can do it with web services as well, possibilities are endless
    Hope this helps!
    Kris

  • Dw cs5 with existing wordpress site hosted on yahoo need help connecting to existing remote database

    I am having trouble establishing a database connection.  I can  connect with test databases but am having trouble using dreamweaver wtih  my existing wordpress website.  Am I able to use dreamweaver to edit  and live view my changes before uploading the changed files to my live  site?  Am I able to access my existing wordpress database with  dreaweaver?  I have imported it to my testing server/database but still  seem to be having trouble establishing a connection with it (think maybe  my folder hierarchy might be off).
    macintosh HD/Applications/MAMP/htdocs/nwm/wp/index.php
    "nwm" is the name of the folder that I have copied all of my site  files to and the folder I have dreamweaver pointing to.  "wp" is what I  have all of the wordpress files in (the ones I copied from my yahoo  server - including all my current theme files etc.)
    I am trying to put the info into the mysql connection dialog box:
    Connection Name: Testing (i am assuming this name is for my benefit only and doesn't actually matter)
    MySQL Server: mysql
    User Name: *****
    Password: *****
    Database: wp
    and am getting this message
    MySQL Error#: 2013
    Lost connection to MySQL server at 'reading initial communication packet', system error 61
    did some google seaches of the error.  Tried turning off the  firewall, and the advance tab allow mysql incoming  (there were 2 one  was allow one was not allow.  I changed both to allow)
    Cant really find anything on yahoo to help me out.  Looked in  phpmyadmin database named wp: wp_users to get the username and password  (which due to previous look for help - I think the password was  encrypted cuz it looked like a bunch of mumbo jumbo and am fairly  certain I know the correct password).
    Any help would be greatly appreciated!! I spent $50 on live chat  last night trying to resolve the issue only to find out at the end that  the guy really didn't understand my problem and doesn't have  dreamweaver.  I have also watched countless videos on Lynda.com and have  been thru forum after forum.  While this problem is only a couple weeks  old since I just got CS5.  I have been having trouble making any  headway learning php since I cant seem to make it past the set up  parts.  I have done the php / mysql essential training on lynda.com with  relative success except that I really dont want to work with any more  exercise files so I didn't go on to the beyond the basics. I recently  went thru most of the Dreamweaver CS5 and Wordpress 3. Also did the  first 4 chapters of Dreamweaver CS5 with PHP and MySQL. I need to start  integrating things into my live sites.  I am also trying to work my way  thru the learning php, mysql, javascript book by o'reily media by robin  nixon (as fun as reading a math text book) can't get thru it since I  can't relate any of it to my current sites/needs
    I am on MacBookPro OSX 10.6.6
    Installed MAMP to specification on all 20 tutorials I have tried including lynda.com
    Tested the testing server and is working
    Just installed dreamweaver cs5
    have been using wordpress online to create and edit posts (recently  upgraded to 3.? whatever the latest update was online which I believe  update the files on my yahoo server?)
    Have also installed wordpress on my computer (several times thru each tutorial trying to get this right.)
    Am I expecting the impossible?

    If wordpress controls it's own connection why am I unable to use the live view. I have synced the remote site to my local computer so all the files should be just as they are online with the exception of the DB which contains most of the content.
    I have done all of those steps.  I have even exported the database from inside internet phpmyadmin and imported into computer phpmyadmin.  When I hit live view I get one of couple of errors.
    1.  "One is that the dynamic related files could not be displayed due to an internal server error"
    At some point I was able to view some sample files inside dreamweaver.  But I would like to be able to view my real site files.  I was able to "connect" to the local databases (not the copy of my real one - I think that maybe that was because it is somehow nested inside another db an am going try to reimport to new location).  And then I changed the host/username/password trying to deal with the internal server error. Now instead I get the cannot connect to the database Error 2016 or whatever from the origianl post. Also, I am using yahoo if that matters and all I can find about what their server name is: mysql - is that correct?
    I have been thru this so many times with so many different tutorials I am losing track of what is what.
    2.  Can I access my remote database within dreamweaver? I do not want to create dummy files (seems to be a waste of time).  And while if it had worked exporting/importing a duplicate on to my computer would have satisfied me for a little while it also seems some what counter productive.  Since every post and page is different if I were doing a daily updates etc how would I be able to change the formating or design of them if I can't access the remote files.  Would I re- import everytime I want to work on it to get current database?
    I am trying to be clear.  I listed all the specs I could think as listed  in your "how to get help fast post" (yes I read that at least twice  too) of all of the steps and possible reasons for my problems.  I also  thought that the forum was on a seperate site so I didn't think it would  count as a duplicate.  I am frustrated to tears and am feeling  incredibly stupid that after all this time and all these tutorials yes  you are right I obviously am not understanding what is going on which is  why I am on this forum.

Maybe you are looking for

  • Moving itunes to a new pc, can somebody please give me the simple?

    just purchased a new laptop, went from XP to 7. I have read multiple postings and am comp literate, but I cannot get anything I purchased from itunes over to the new laptop. The titles, art and info go over, but I keep getting "original not found....

  • Get Sales order from Billing document number

    Given Billing document number from VBRK-VBELN, how to get the Sales order number VBAK-VBELN?

  • Receiver file with 2 extensions

    Hi, I had once come across a blog for placing the file in the FTP folder with 2 extensions (say .txt and .xml). Not able to find it now, can any one help me in finding the same? or say how can it be done. PS: I do not need michael's blog of sender an

  • OOP's ALV Report

    Hi All, Could anyone send me simple OOPs ALV report. Mail ID : [email protected] Regards, Parvez.

  • Update flash player for adnroid

    Hello! Ask me, please: is there new version of flash player (11.6) for android? Many sites say: "Your flash player is old, update it". But Adobe offers new player for Windows, Mac and Linux only...