How to programatically change schema name for an application ? JDev10g

I am using JDeveloper 10g 10.1.3.4
What I am trying to do is: while connecting to the database instace with login/passwd credentials for a specific schema, being able to take in
schema as a separate paramter and connect to that schema.
Connecting to a database instace ORCL to the hr schema say with hr/hr
supply a paramter schema_name: scott. and connect to the scott schema as the hr schema user.
In SQL Plus* all you do is
connect as hr/hr
and then
alter session set current_schema = scott.
While developing an application that autheticates against database username/pwd credentials I was using the methodology
as described on http://www.oracle.com/technology/products/jdev/howtos/10g/dynamicjdbchowto.html
and http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.htmlexample 14.*[Dynamic JDBC Credentials for Model 1 and Model 2|http://otn.oracle.com/products/jdev/tips/muench/dynamiccredentials/DynamicCredentials1013.zip]* [10.1.3.3] 2006, Upd: 17-MAY-2007 by Steve Muench
In the DynamicJDBCBindingFilter that in the doFilter() method, I was trying to find a way to be able to specify the schema name
as in sessoion.setAttribute(Configuration.<SomeProperty>, schema);
is there any property/parameter that can be set to change the schema within the context of the application?
because in all the code that i see there are attributes of 'Configuration' that are being set.
So I don't think there is way for me to just write straight up jdbc code to
create a connection and run the statement "alter session set current_schema = scott"
and be able to pass the login credentials
and connect to the schema I want to.
Any help would be appreciated.

Hi,
I am not sure if JDBC really supports this. I found
JDBC alter session set ...
but this never got a success/failure statement.
If you want to use a singe connection but different schema for users then you may want to have a look at proxy user authentication, which is exatly doing what you want - use a single user to get into the database and then have him mapped to his own schema to work in
Frank

Similar Messages

  • How do you change user name for Icloud

    We were having problems when I changed a password in Itunes and found user name on my Ipad and Iphone were old email addresses. We changed user name on Ipad and Iphone and Icloud woks fine, howerver we also have a Iac that had the old email address as the user name and now it will not sync with the Imac. How do I change user name on the Imac so it will agree with the other 2 devices?

    There is no application. Go to System Preferences>iCloud, click 'Sign out'.

  • How can I Change Asset names for swapped images in duplicated symbols?

    I have what seems to be a bug in edge animate cc2014 in following circumstances:
    1. Duplicate a symbol
    2. Drag duplicate symbol onto stage.4
    3. Rename symbol
    4. Click to edit symbol
    5. Select an image inside the symbol
    6. In properties panel change path to swap the image to be used in this instance of the  duplicated symbol ( I need to reuse this symbol many times and not being able to change asset names is a real problem!).
    7. The names for the asset in both the timeline and the elements were auto generated at the time of duplication when try to change the names they revert back to the auto generated  names.
    How can I overcome this problem which is clearly a bug or a poorly thought through bit of programming by an otherwise highly competent adobe edge animate tesm
    Thank in advance
    David.

    Again, incorrect. It's not about how I can address a specific symbol with code - no problems there - it's what the composition loads into the symbol. Try it with some complex component or sub- symbols.
    Work-Around for using Duplicated and Revised symbols (symbol variants) in the SAME document. Solution.
    Tedious, but easy. Low risk. Edge Animate 2014.1.1
    When you duplicate a symbol comprised of symbols itself ("sub-symbols"), only the outermost symbol gets a unique name, not it's component inner symbols. Upon import of additional variants, a unique name is created in the Library/Symbols panel for the inner symbols, yet the references in the outer symbol can't update to use those unique inner-symbol names. Therefore, the composition loads the symbol with the matching name. This will be the first variant to be imported.
    Make the Duplicate
    Duplicate the symbol in the Library/Symbol Panel. Rename. Export.
    Prepping the Symbol
    Open a new document, import and place the new symbol.
    Select the asset to be switched/replaced. Make the switch in the property panel. Properties/Images/Swap button. (I revised my base or source symbol to have different colored background images. This is how I created 4 color variants.)
    Save the new document, of course. "Example1.an"
    Export the revised symbol from the Library/Symbol Panel for safe keeping.
    Return to Example1.an
    Elements Panel: Work through the nested symbols, adding a preceding identifier to all symbols in the heirarchy.
    *KEEP IT SIMPLE so you can easily and quickly move through the .js files in the following steps.*
    Save Example1.an.
    Library/Symbols Panel: Go down the list, renaming all the symbols with the same preceding identifier as was used in the Elements Panel. *I advise to stay parallel with the Elements panel. Change as little as possible.*
    Disregard any odd appearance you may see on the stage for now.
    Save Example1.an
    Revising the Code
    In Edge Code, also part of the Creative Cloud suite, or any code editor, open the two .js files for "Example1.an." found in the same folder...Edge.js and ...EdgeActions.js
    ...Edge.js
    find  "symbolName" - prepend with the identifier whatever is not already prepended.
    at the same time, look for "id" nearby - prepend with the identifier whatever is not already prepended.
    Save
    ...EdgeActions.js
    First read the grey comments about not degrading the //Edge Comments.
    Search the document for "//Edge symbol" - prepend whatever is not already prepended.
    Carefully check all the orange text, prepending the symbol names you find. This same code can be seen in your Code Panel with the "Full Code" button.
    Save
    Return to Edge Animate
    When prompted to Reload, say yes.
    Save Example1.an
    EXPORT your new top level symbol - now a fully separated asset.Now you have created a fully unique symbol, which can be used in conjunction with other variants in the same document.
    Import your new, unique symbol variant it into your real document.
    This is the solution if your Symptoms are:
    I duplicated symbols to make different variations, but now I can't use the duplicated symbol variants together.
    When I try to swap images in a duplicated symbol, it succeeds when used alone, but reverts when used with the original symbol.
    My duplicated symbol works properly alone, but not when it is used with the original symbol.
    My symbol seems to revert to the original source symbol.

  • How do I change the name for my new iPhone in iTunes?

    I just activated my new iPhone 6 plus, but it has the SAME name as my old one.
    How do I change this so it differs from my now iPod?

    TY

  • How do I change screen name for AppStore??

    I'm really confused. I have disabled ping on my iPod, and when I try editing my account under iTunes/AppStore it won't let me change my nickname, only my email. This is my 2nd account, and when I try posting a review It just says "This nickname is taken, please choose another." Please help and thanks in advance!

    If you mean you created the iCloud account example and now want it to be called new-example you can't. Your only choice would be to create a new iCloud account. You can, however, log onto iCloud.com, select Mail, click on the gear in the upper left corner and select preferences. From there you can create an alias email account called new-example. It doesn't change your icloud account name but you can give out that email address instead of your account name.

  • How to track changes in name who are enrolled in a benifit plan

    hi,
    can any1 help me
    how to track changes in name for an employee enrolled in a benifit plan.this report is to run monthly.
    should use change pointers or should use aedtm field..
    can any1 help..
    thanx in advance

    Pl take a look at the Std Report RPUAUD00 used for Infotype Logging. The Report Documnentation details the steps needed to turn the logging for the PA infotypes, which in your case could be 0167,0168,0169 etc..
    ~Suresh

  • For those who have problems RE: My iPhone 4 on connecting to my pc shows my friends name in the DIGITAL camera Drive..It dsiplays my correct name when I`m on iTunes..PLEASE HELP ME HOW DO I CHANGE THE NAME IN THE DIGITAL CAMERA DRIVE??

    For those who have problems RE: My iPhone 4 connecting to my pc shows my friends name in the DIGITAL camera Drive..It dsiplays my correct name when I`m on iTunes..PLEASE HELP ME HOW DO I CHANGE THE NAME IN THE DIGITAL CAMERA DRIVE??
    SOLUTION:
    Iam pointing t0 windows7 os.
    1) go to control panel
    2) open hardware and sound
    3) In that open Devices and printers
    4)In that u can find Apple Iphone.
    5) now right click on this --> Hardware --> Properties --> General --> Uninstall --> ok.
    6) now unplug and plug in ur iphone again.There u go u iphone name changes to its original name.

    I am having this problem.  At first with the new iPhone 5, and then with the iPad 2.  I am not sure why this is happening. 
    My gut feeling is this is an iO6 issue and here's why -
    The problem mainly occurs with apps.  I have about 150 apps, and when I plugged in the phone, iTunes went to sync all of them.  The process would hang up after about 20 - 30 apps were loaded onto the phone. I could tell where about the process hung up because the apps on the phone showed up as "waiting".
    Then on the iPad 2 I plugged in to sync and saw there was a huge "Other" component in my storage.  It required me to restore the iPad 2 from backup.  With this restore the same issues occurred - putting the apps back on the iPad would hang up.  The videos on the iPad also got stuck - maybe after about 10 hours of videos transfered iTunes crashed.
    My solution has been to soft reset the device, restart Windows, and continue the process until it's complete.  This is remarkably inefficient and time-intensive but everything works with patience.
    I have been wondering if others have had these same problems. 

  • Iphone 4s - how do I change the name in the contacts for the owner of the phone - it is coming up as the other person who uses the laptop - so when ringing or texting anyone 2 names are being used as the caller id on the screen

    Iphone 4s - how do I change the name in the contacts for the owner of the phone - it is coming up as the other person who uses the laptop - so when ringing or texting anyone 2 names are being used as the caller id on the screen

    *Ralph Johns* writes:
    "Your options are:
    Get a trial account form @mac which will work as an iChat name after the 60 days run out but not be a email account that is valid (And is free)"
    Do you mean a trial account from .Mac? (DotMac)
    "Get an AIM Screen name and set it to Display what you want as you set it up.
    The Screen name can be whatever yu want but you can also set it to display something else as well."
    I had thought about this, but it seems other people have already chosen the screen name "pinksharkmark" and virtually every variation of it I can think of. So that isn't an option for me. As for getting it to display something else as well, do you mean that if I were to get an AIM screen name like "CromulentCat" I could somehow log in to iChat under the AIM account "CromulentCat" yet get iChat to represent me to my Buddies as "PinkSharkMark"? Because I have to admit I don't see how that can be done. It appears as if iChat displays to anyone chatting with you precisely the account name you logged in under and nothing else. So if you logged in using a .Mac account, then you are displayed as "[email protected]" while if you logged in under an AIM account, you are displayed as "CromulentCat". But that's it that's all... there is no way to change CromulentCat to PinkSharkMark.
    Thanks very much for taking the time to reply, though.

  • How do you change the name of the device that shows in Find My iPhone for Imac

    How do you change the name of an iMac that shows up when you use Find My iPhone for an iMac running Yosemite
    Thanks
    TS

    Hi TXShwartz,
    I see that you wish to change the name of your computer that is running OS X Yosemite. Here is an article that will help you accomplish this:
    OS X Yosemite: Find your computer’s name and address
    http://support.apple.com/kb/PH18720
    Take care, and thanks for visiting the Apple Support Communities.
    Cheers,
    Braden

  • I followed the directions for changing the name of my iPad and it did so in iTunes but the old name remains on the actual iPad. How can I change the name on the iPad itself?

    I followed the directions posted in questions/answers for changing the name of my iPad and it changed the name in iTunes but not on the actual iPad. How can I change the name on the iPad too?

    On your iPad, go to settings, general, about and click on name then change it.
    I did it on my iPad with iOS 5, i dont know if it works on iOS 4.3.2

  • HT1202 How do i change the computer for my iphone? it says iphone will syn automatically once it is plugged into "DUCH..." (not my computer name) . what should i do to change that?

    How do i change the computer for my iphone? it says iphone will syn automatically once it is plugged into "DUCH..." (not my computer name) . what should i do to change that?

    Connect your phone to iTunes and in the Summary pane, hit the "Sync with this iOS device over Wi-Fi"
    http://support.apple.com/kb/PH2560

  • Same question for the "2 iPhones in one account".....How do I change the name.  My iPhone is showing my wife's iPhone name when I am syncing it.  Why is that?  I know about using one iTunes account....But how do you change the name w/o erasing your data?

    Hi....How do you change the name?  When I sync my iPhone, it shows my wife's name on it?

    Unfortunately it is not doing it....
    Let me give more details..We have 3 iPods and 2 iPhone4....I recently purchased the iPhone4 and when we connected it..It was already reading my wife's iPhone4..We went to the Apple Store at the Grove today and was told to de-authorize the system and connect my iPhone4 back and I should be able to change the name.
    Nothing happened..Right now, I clicked on RESTORE settings...and it is uploading a new iPhone update. 

  • How do I change the name of my iPhone? I bought one for wife and it defaulted to same name

    How do I change the name of my iPhone?
    I bought my wife a phone and it defaulted to the same name as my iPhone.

    Double click the name under devices on the left side of itunes and type whatever you like.

  • How to parameterize the schema name in APEX

    Hi,
    How to parameterize the schema name in APEX , in order to access different tables from the respective schema.
    For example:-
    select NAME display_value, CODE return_value
    from paramSchema.DESC_LIST WHERE SELECTION_FLG = 'Y'
    order by 1
    in the above code, paramSchema will be replaced with the actual schema name duing runtime. I tried doing so by some hidden fields on page, but it didn't worked out.
    I took the schema name from the respective server as per the IPof the server.
    stored in a hidden field named as schema.
    And replaced the same in place of schema name. But no luck.
    select NAME display_value, CODE return_value
    from :schema.DESC_LIST WHERE SELECTION_FLG = 'Y'
    order by 1
    Please help me in shorting it out.
    Thanks,
    Anuradha

    Hi
    In order to do that, you would need to use dynamic SQL by changing the report type to PL/SQL Function Body Returning SQL Query and have code along the lines of
    DECLARE
    l_sql VARCHAR2(32767);
    BEGIN
    l_sql := 'select NAME display_value, CODE return_value
    from '||:schema||'.DESC_LIST WHERE SELECTION_FLG = 'Y'
    order by 1';
    RETURN l_sql;
    END;However, by doing this, you lose alot of flexibility. The other options would be...
    To have seperate report regions that are conditional on the value of the variable.
    To use a WITH clause at the tope of the query like...
    WITH src_data AS
    (SELECT * FROM schema1.my_table
    WHERE :schema = 'schema1'
    UNION ALL
    SELECT * FROM schema2.my_table
    WHERE :schema = 'schema2')
    SELECT *
    FROM src_dataOther than that you could look at using synonyms and doing something similar.
    Hope this helps.
    Cheers
    Ben

  • How can I change the names of catagories that have been added to my music library?  Is it possible to change names or artists or gendre and how to do it?

    How do I change the names of artists or gendre in the itunes list after importing an album?  Is it posssible to change that information?

    Yes. Select one or more tracks (use ctrl or shift clicks to add/remove or extend a selection) then right-click or press CTRL-I to Get Info. Use the different tabs of the dialog to make changes.
    For general advice on getting things neat & tidy see my article on Grouping tracks into albums.
    tt2

Maybe you are looking for

  • Adobe Send - Direct Download link to share

    I want to send a file (ppt) and have a Direct Download link to share. Currently, there is only the preview link that I can share, but this does not help me because you can't see the ppt notes in this mode. Thanks!

  • {solved}Can see the file list of a tool that is not installed? ??

    I know the -Ql list the installed tool files. thanks. Last edited by jinleileiking (2011-11-29 15:53:33)

  • AWM    OLAP-DML Expression to large?

    Hello all! I have a problem with my AW or with my AW -Manager. I used OLAP-DML Expressions ,and when I write longer Expressions, I got: oracle.express.idl.util.OlapiException: java.sql.SQLException: Keine weiteren Daten aus Socket zu lesen. So no mor

  • IPod basically unusable. No memory no matter what I do.

    Hi, I bought my iPod around late December, In the past few weeks, the memory has ran out preventing me from buying any more apps or songs, or taking photos. App use was difficult as well. Now, no matter what I delete, the thing still does nothing. I'

  • Extend/Change the Standard Fiori App code

    Hi, We have implemented FIORI App in our SAP landscape.After implementation app is running fine.I want the change the standard FIORI App code for a specific app like change the label,change the Background Image,Change the Font style etc.I googled and