How to set OracleDataSource to a different owner.

I have a Java(JSP) page which reads off an oracle DB table using a OracleDataSource object.
Code sample
OracleDataSource ods;
ods = new OracleDataSource();
ods.setUser("Username");
ods.setPassword("Password");
ods.setURL".............");
Connection conn = ods.getConnection();
Statement stmt = conncreateStatement();
ResultSet rs = stmt.executeQuery("select * from Table_a");
My problem now is that Table_a has been moved to a different owner so now I have to append the owner name to the table name. Now my query will have to be changed to "select * from New_Owner.Table_a".
Question:
Is there a way so that I do not have to append the owner name to all table names in my query. Like maybe set my OracleDataSource object to a different owner.

Rup wrote:
ALTER SESSION SET NLS_LANGUAGE=US7ASCII
ORA-12705: Cannot access NLS data files or invalid environment specified
Please suggestORA-12705 invalid or unknown NLS parameter value specified
Cause: There are two possible causes: Either an attempt was made to issue an ALTER SESSION statement with an invalid NLS parameter or value; or the NLS_LANG environment variable contains an invalid language, territory, or character set.
Action: Check the syntax of the ALTER SESSION statement and the NLS parameter, correct the syntax and retry the statement, or specify correct values in the NLS_LANG environment variable. For more information about the syntax of the ALTER SESSION statement,>
HTH
Aman....

Similar Messages

  • How to set up two iPads, different locations, one account.

    How do I set up two iPads in two different States with one account.  My 89 year old father can not do the details of setting up an account but I want him to have apps and have even gifted him a bird guide.  Now it sits in his in box because we don't know how to download it without an account.  

    Obviously your father will not be able to sync with iTunes, but somehow I don't think that is going to be an issue.
    You can set up the account on your iPad, or computer, whatever, and then have your father sign into your Apple ID on his iPad. Settings>Store>Sign in. He will need your ID and password in order to download apps or other paid content.
    However, he does not - nor do you need to set up the account on his iPad. He just needs to sign in to the account.
    This is not really ideal - separate ID's would be the way to go, but if you are essentially maintaining the device and springing for the apps - it will work - if you want to share an ID.

  • How to set up multiple NLS_LANG or update the NLS_LANG in windows registry

    Hi!
    In our server machine, we have installed the Oracle Net Manager Version 10.2.0.0.0, which is used to connect to different oracle databases in different NLS_LANG settings (i.e., JA16SJIS, KO16KSC5601, WE8ISO8859P1). Currently, our NLS_LANG is set to "AMERICAN_AMERICA.UTF8". In order not to convert the character set to UTF-8 format, could anyone tell me:
    1. how to set multiple NLS_LANG for different databases in registry
    2. how to switch the NLS_LANG setting in registry programmatically in order to retrieve/view the data in the corresponding character set (same as the setting in Oracle DB) for the dedicated oracle database
    Please advise. Thanks a lot
    Best Regards
    Pinga

    1. how to set multiple NLS_LANG for different databases in registryBy default NLS_LANG registry settings is linked to the Oracle home and not to the database. I don't think that you can set a NLS_LANG setting for each database (unless you are using a command line tool and in this case you can set the NLS_LANG environment variable).
    See also OTN NLS_LANG FAQ.

  • How to set restrictions and what they mean

    How to set restrictions one the different oracle users and what can they do within the set restrictions, their limitations.

    What cardinality means

  • How can I share between 2 different accounts.  we have a clinic that serves pediatics and unfortunately, they set up two different accounts within our agency.

    How can we share between two different accounts on the same iPad?  We have a therapy clinic with 2 devices and want to share apps. I did not set up the second one, but how can we fix this ?

         Hi Rosdy, to get the most out of iCloud it is recommended that you use the same account between devices. Thus whenever you buy something on your phone it becomes accessible from your laptop regardless of whether your synced it over usb or not. *
         For more information on iCloud usage please click here.
    * This feature requires that both devices be on the same WiFi network.

  • I bought my wife an iPad, iTV and iPhone and everything works great. But now I'm getting an iPhone and I'm not sure how to set it up. So far all our iTunes purchases have been under her account. So how do we share everything, but have different accounts?

    Things have just kind of escalated. We started with the ipad and she really liked it. Then we were given an itv and it worked so nicely with the ipad, that we decided to get her an iphone. We've been buying music, tv shows, movies, taking photos, looking at them on the tv using photostream. But now I'm getting an iphone and plan to by a macbook or mac mini some time soon, and I'm wondering how I can setup my own account but still have all this really nice seamless sharing across devices. If I buy an album on my phone, I'd like to be able to play it on the itv (which is setup with my wifes account). And so forth.
    I hope I've explained my concern and someone can point out how to set things up so that things remain as seamless and easy as they are now.
    Thanks.

    Have a look here...
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
    SHARING iTunes MUSIC
    http://macmost.com/five-ways-to-share-music-in-itunes.html
    Also... Create your Own Apple ID for Your iPhone...
    It should be Noted that anything Downloaded with a Particular Apple ID is tied to that Apple ID and Cannot be Merged or Transferred to a Different Apple ID
    Apple ID FAQs  >  http://support.apple.com/kb/HT5622
    And... Have a read here...
    https://discussions.apple.com/message/18409815?ac_cid=ha
    See Here for  >  How to Use Multiple iDevices with One Computer
    Have a read here...
    https://discussions.apple.com/message/18409815?ac_cid=ha

  • How do I uninstall the software from my computer to start the iPhone set up over again, as I have managed to set everything to several different email accounts, and want it all to operate from one?

    I Have managed to set my software to different email accounts as I already had an apple acount to one email address because of my iPod, so I set it so my old email which is full of spam, making it impossible to organise. Therefore I created a new email which I can use efficiently, but how do I reset my account on my iPhone and the software on my computer so it can all operate as one? Please HELP!

    iPhone User Guide (For iOS 4.2 and 4.3 Software)

  • My Apple TV was set up with a different Apple ID than I have for my ITunes Account.  In other words I have multiple Apple ID's.  How can get these accounts to sync up?

    My Apple TV was set up with a different Apple ID than I have for my ITunes Account.  In other words I have multiple Apple ID's.  How can get these accounts to sync up?

    If you wish to use home sharing then you need to setup the Apple TV under your ID.

  • How to set-up my home intranet using 2 different ISP's ?

    I have had so much trouble recently with my main (8 years now!) internet provider "ABC" (not the real name) Cable Modem here in Belgium that I made the decision to pay another bunch each month to have a second ISP for my home and home office. "XYZ" (also not the real name) will start on Monday 26 July. It is a DSL line, linked to my TV and fixed telephone. Great, except I'm not really sure how to set-up this 2nd ISP.
    First, I want this 2nd ISP to (at least for now) be an emergency backup. So if ABC shuts down again (as it has done a lot recently, but no technician can come until 30 July- poor service there!) - I want to immediately be able to use the XYZ server.
    OK the XYZ has a kinda built-in router in that the DSL Modem has built-in WiFi and also 2 cable to computer out ports. I believe I can first just configure the WiFi: Apparently I have to attach my MBP-13" via cable in order to change / add a security code; maybe change the name of the WiFi from its default "XYZ-WiFi" (not the real name) to something I want like SteveXYZ and then add a security protection code.
    But how to configure my eMail using MAIL? And can I still keep getting my eMail from my main "[email protected]" (not the real address) even when connected via XYZ? And what about SENDING from ABC when connected via the server XYZ?
    Also: I currently have my ABC Modem going to a 4-port D-Link DI604 Router. From there, one cable goes to my MacBook Pro-13"; one to the Apple LaserWriter 12/640PS (great printer- 13 years old and still super); one to my Canon MP640 and one upstairs to another router: D-Link DIR-635 wired and wireless. From there, one cable goes to my wife's eMac; and another is available for guests; another unused and then the WiFi for when I compute in the garden and of course for my iTouch.
    So now let's say that on 28 July the ABC is down. Ideally I'd like to pull the cable from the ABC Modem that goes into the DI604 Router and plug-in a cable going to the XYZ DSL Modem and voilà have internet back via my backup XYZ. BUT can I print? Do I have to reboot the Router since it will have to reassign those 192.168.0.123 type numbers, won't it? (I believe those numbers are called the "IP Addresses").
    Thanks for any comments or references here.
    Best regards,
    Steve Schulte
    Wednesday 21 July 2010

    In your Network Preferences you can set up more than one method of connecting - i.e., Airport, Ethernet, Dial-up (heaven forbid). If, for example, you place Ethernet at the top of the list, then Airport, your Mac will try to connect to Ethernet first. If it can't, it will fall back to Airport.
    So if you can have Airport connected to one ISP and Ethernet connected to another, you will be able to pick one or the other by imply pulling the Ethernet cord. What you can't do is set up two Ethernet connections (or Airport connections) each with a different ISP (though if I read you aright this isn't what you want anyway).
    Another method is to set up 'Locations'. You could set up one with Airport only, and one with Ethernet only, and switch between them using Apple Menu>Locations: this would save you physically pulling cables and is just as quick, it takes only a few seconds.
    As to mail, it depends on your ISP. Some ISPs demand that you are connected directly to them to send mail, and possibly also to receive mail: some rely entirely on the password. In the latter case you can use the same settings in both locations or methods: in the former you can't get round that - if you're not connected you can't send/receive as relevant.

  • I have an airport express and want to know how to set up two different wireless networks. One with 5GHZ and one with 2.4GHZ so different devices can connect to either.

    I have an airport express and want to know how to set up two different wireless networks. One with 5GHZ and one with 2.4GHZ so different devices can connect to either. I have an iphone 4 that will not connect to 5ghz.
    thank you!

    Your AirPort Express is already providing two separate 2.4 GHz and 5 GHz bands, but each band is using the same wireless network name.
    This is the default setup for the AirPort Express, which is recommended for most users. The theory here is that devices will automatically connect to the best quality signal based on their capabilities and distance in relation to the AirPort Express.
    It is possible to assign a different name to the 5 GHz band, and then "point" devices at that network to connect. Some users swear by this option.....(I am not one of them).... but you might want to give it a try to see how it works for you.
    Open Macintosh HD > Applications > Utilities > AirPort Utility
    Click on the AirPort Express
    Click Edit in the smaller window that appears
    Click the Wireless tab at the top of the next window
    Click Wireless Options near the bottom of the next window
    Enter a check mark next to 5 GHz Name.....which will automatically add "5 GHz" to the network name....so you can identify it
    Click Save, then click Update and wait a full minute for the Express to restart
    Now you will need to "point" your 5 GHz capable devices at the 5 GHz network name.  2.4 GHz devices will connect to your "other" network name.

  • How to set up different virtual LANs (using the E3200)?

    Hi.
    I would like to set up different virtual LANs (using the E3200) so that I can have two different networks that can't access each other.
    The E3200 is connected to a modem for internet access.
    I would like both networks to have access to the internet.
    Does the E3200 alone support creating virtual LANs?
    If not, is there another way I can meet the requirement using the E3200 alone (using something other than virtual LANs)?
    I'm ultimately thinking that I would need at least one other router.
    So for example,
    Router A (E3200) is connected to the modem and setup for DHCP using a LAN IP range 192.168.1.1/24.
    Router B is connected to Router A and setup for DHCP using a LAN IP range 192.168.2.1/24.
    In this way devices connected to Router A should not have access to devices connected to Router B and visa-versa, correct?  For example, Device X connected to Router A cannot ping or browse files on Device Y connected to Router B and visa-versa, correct?
    Would I need to setup anything else on Router B?  For example, do I need to setup DNS settings so that devices connected to Router B can connect to the internet without issue?  Would I need to specify that these virtual LANs are not bridged, and on which router, or both?
    I already know how to set up a static IP, DHCP, LAN IP ranges, and static DNS settings on a router, etc.
    In regards to wireless devices, I am thinking they would follow the same pattern; so wireless devices connected to Router A (E3200) have access to other wired and wireless devices connected to Router A but not to wired or wireless devices connected to Router B and visa-versa.  However, if wireless devices currently don't have access to wired devices also connected to Router A, then that is fine for now.
    Thank you very much!
    -Rami
    Solved!
    Go to Solution.

    The E3200 has no VLAN support according to the manual. There's no way to configure two separate networks with this router alone.
    You will need to add network electronics.
    Ex:
    Managed Switch with VLAN
    Another wireless router with VLAN
    If your modem supplies multiple public or private IP addresses then you could put a switch after the modem and two wireless routers attached to the switch.
    Please remember to Kudo those that help you.
    Linksys
    Communities Technical Support

  • ITunes i have downloaded some movies.  i have an apple tv set up under a different account.  how can i stream the movies from my pc to someone else's apple tv?

    i have a windows based pc and on iTunes i have downloaded some movies.  i have an apple tv set up under a different account.  how can i stream the movies from my pc to someone else's apple tv?

    If you wish to use home sharing then you need to setup the Apple TV under your ID.

  • How to create a Platinum,Gold and Silver Customer and how to set different price for a single material based on customer?

    Hi All,
    How to create a Platinum,Gold and Silver Customer and how to set different price for a single material based on customer?
    Assume Material is Pen.
    While creating Sales Order in VA01 how to bring different price for the same material for Platinum,Gold and Silver Customers.
    Kindly help me out.
    Thanks,
    Renjith Jose

    A good place to start is http://www.javaworld.com/javaworld/javatips/jw-javatip34.html
    Also, do a search in this forum on HttpURLConnection. That class allows you to use POST method to send form data to a web server.
    "Hidden" variables are only hidden in HTML. The HTTP that gets POSTed to the web server doesn't distinguish between hidden and not hidden. That is, the content you would write to the HttpURLConnection.getOutputStream() would be something like:
    hidden=1&submit=ok(Of course, the variable names would depend on what the web server was expecting from the form.)
    Also, be sure to set the Content-Type request parameter to "application/x-www-form-urlencoded"

  • How to set different renderers to different cells in same column of JTable?

    Hello Friends,
    I need your help again...
    Does any body knows, how to set different renderer's for different cells of same column in JTable..??
    For ex.
    Col1 Col2 Col3 Col4
    A       A       A      A
    A       A       A      B
    A       A       A      C
    A       A      A       D
    Where A B C D would be different Renderers.  I want set exactly same ,,, ie. one column with different renderer at different cell positions..
    Right now i m setting renderer using statement bellow :
    table.getColumnModel().getColumn(int).setCellRenderer(rederer_Instance);But with this, effect in the last renderer is applicable whole column....
    Can any body help me out ?????????
    please refer this thread for similar kind of discussion...
    http://forums.sun.com/thread.jspa?forumID=57&threadID=571445Thanks
    Suyog

    Please refer to the first reply of [this thread|http://forums.sun.com/thread.jspa?forumID=57&threadID=571445] for the answer. If you have a specific problem implementing it, post you code with a specific question.

  • How to set different font for a particular row in jtables?

    How to set different font size and font type for a particular row in jtable?

    More than enough sample code here:
    [http://java.sun.com/docs/books/tutorial/uiswing/components/table.html]
    db

Maybe you are looking for

  • XOrg is maxxing out my CPU for several minutes after start [UNSOLVED]

    Since the last update, XOrg has been using 99% of my CPU power for about three minutes after it is started. This happens whether I am using Slim, console login, whatever; I checked with top and it is definitely X that is using up the CPU power. This

  • My Airport Express is not detected in airport radar on iBook

    Hi, I am hoping that someone can help me with this. I am at loss as to what to do next! My Airport Express has been working fine since I returned from holiday a week ago. However, I tried to select my airport express network from my airport radar on

  • How i can connect php and oracle9i ?

    hello am new to php.i have oracle 9i and php and apache.oracle is installed at one system and php inother one at network .when i have at same pc's i connect it.but now it's at different systems how i can connect.plzz tell me complete steps of apache

  • Multiple PK, one from joined column

    Hi all, I have this situation: 2 entities, country and state country has code and name as fields, code is PK state has code, name and country_code (linked to country code field) as fields, code is PK and country_code should too. @Entity @Table(name="

  • Need guidance for  abap

    i am new to sap i wanted to know which institute is good for certification in abap for fresher. Also from placement point of view......