Connecting to 2 different DB's on different servers

I am trying to find out if it is possible to connect to 2 different databases on different servers so that I can use both DB's in the same query. If it is possible, how do you do it? Can you have 2 connections open at the same time for one object?

Sorry. jverd. I was just trying to make sense from
what the OP had posted. In the process, I might have
said something stupid.
jc4bud
If they are on different servers, they are on
different database instances. So you can never write a
query like the one you wrote.
It does not make sense in SQL either.
You should get two seperate connections to both the
databases, query data seperately and then try to do
whatever you are doing.Basically get the data from both the databases in your servlet. Do your processing in the servlet to get the appropriate data. If they have to be on different Oracle DB instances, that is the only solution I can think of.
If you can keep them in a single instance the story changes.
You cannot have the same connection to two different
database instances.

Similar Messages

  • What do I do if I have one Apple ID for my phone and a different one for my mac. I have tried to sync garageband to my mac from my phone but it won't connect. Is it because of the different ID's? If so what can I do to fix it?

    What do I do if I have one Apple ID for my phone and a different one for my mac. I have tried to sync garageband to my mac from my phone but it won't connect. Is it because of the different ID's? If so what can I do to fix it?

    You can use one account with iTunes on your Mac, and different account(s) with the Mac App Store (for buying/downloads apps or OS updates for your Mac), iCloud (System Preferences > iCloud) and Messages (Messages > Preferences, or command-comma)

  • How to make a connection between two wireless sensor networks of different groups through gateway?did any external device or coding is needed?

    my objective is to make a connection between two wireless sensor networks....i am using two nodes and one gateway for each wireless sensor network.....what is the procedure for connecting these two wireless sensor networks of different groups

    my objective is to make a connection between two wireless sensor networks....i am using two nodes and one gateway for each wireless sensor network.....what is the procedure for connecting these two wireless sensor networks of different groups

  • Unable to connect to Server at servername . enter a different URL and try again (only on client machine)

    Hello All,
    We are getting "Unable to connect to Server at <<servername>>. enter a different URL and try again" error, if we are trying to connect to report server in report builder.
    This issue is appearing only on 2-3 client machines only. Rest on other client machines and server URL is working fine.
    Please suggest
    Thanks in Advanace
    -Regards
    -Kumud Vaish

    I would suggest looking at what might be different between those clients and the others that work.  Do they run the same antivirus version?  Did they receive any recent updates (windows or AV)?  Are they potentially on a different network
    (sometimes a wireless network is configured to be different from the wired)?  Are they getting any different group policies?
    We've seen the antivirus web control block access before in my environment.

  • Why cant i log into my icloud accout, keeps saying having trouble connecting to server. I have tried on two different computers in two different locations. I am new to this and just learning, getting very frustrated with the whole smart phone thing!

    why am i having so much trouble trying to log into my icloud account. I have been trying for 2 days now on two different computers in 2 different locations. I can get to the log in screen, type in my apple id and password, then keep getting screen saying icloud showed an error connecting to server. I am very new at all this smart phone stuff and just want to check my icloud account to make sure my back ups are working and to import some photos off my phone to make some more room? Getting very frustratied, HELP am I doing something wrong?

    Hello wolfpupmp,
    Thank you for using Apple Support Communities.
    For more information, take a look at:
    iCloud: Troubleshooting web browser issues with iCloud.com
    http://support.apple.com/kb/TS4050
    Have a nice day,
    Mario

  • How can I use different calendars associated with different emails to see appointmen​ts separately​?

    I have 3 emails accounts on my Blackberry curve. I want to use different calendars for different type of reminders/appointments. How can I do that? In calendar I pressed menu key and then clicked on select calendar, choose one email address (email 1) then entered an alarm but now if I go to a different calendar associated with different email ( email 2), it also shows me that alarm which I entered in email 1 calendar. Thanks for help

    Don't have LV handy to open the old code, but I did read through the thread you referenced.  It sounds like the example configured 2 counters to create the variable-freq finite pulse train and configured a 3rd counter to count the # steps generated as verification.   That 3rd counter would be a problem for you as there is no internal timing signal connection between your 2 USB devices.  You would need to run a physical wire connection and change some of the config code to match.  Alternately, you could just delete all the code associated with the 3rd counter for now because it isn't strictly necessary.
    Further advice/questions:  Are you planning on a pure sine wave of frequency such that you oscillate with both positive and negative velocity (example: varying from -1000 to +1000 Hz clockwise)?  Or is there a nominal average frequency with a small sine wave superimposed (example: nominal of 1000 Hz clockwise, variation of +/- 50 Hz)?
    I *think* you may be dealing with more of a continuous pulsetrain situation, which is actually much simpler.  You would only need 1 counter/timer, though you would still perform the freq changes in a timed loop which uses the pulsetrain as its timing source.  You'd just need to keep track of your total elapsed time so you could figure out the right sinusoidal freq value at the moment you're ready to update it.
    Another subtlety to watch out for if you're oscillating about 0 velocity  -- don't try to create a frequency that is lower than the rate at which you need to update.  Also, with steppers you may have mechanical stability issues at low freqs like 10's to low 100's of Hz.    These kinds of things may need to be managed as special cases which force you to deviate from a "pure" sine wave.
    -Kevin P.

  • How do I set up different network locations with different wifi?

    I am having an issue setting up different network locations with different wifi profiles on each. I want to do this to enable fast switching of wireless networks. In my house I have two wireless networks, my own personal one and one that is created by using a wifi modem supplied by my company. If I use the company wifi network then I can get into all my work applications without having to enable VPN access separately. It is also faster. However, they also block many applications including sending email from my personal email account, dropbox, etc. So throughout the day I need to switch wireless networks back and forth.
    I was looking for a faster way to switch and thought I would try network locations. Was able to set up a new network location without issue. However it seems that whatever wireless preferences, changes, or wifi network order I put into my "Work" location it carries over to my other location which is the standard "Automatic".
    What I would like it to have my "Work" location only to be able to connect to my work wifi and my other network (Automatic) to just connect to my home wifi only. That way I can enable faster wifi switching and can even use my launcher program (Alfred) to provide shortcuts.
    Anyway to do this?
    Thanks in advance for any help or advice.

    Just thought I would bump this up in the conversation. Doing a further search I came across this discussion which is similar: Connecting to a wireless network via applescript?
    However, I tried to build the Automator application as discussed and cannot get it to work. Very much a novice at Applescript and Shell Script but have created customized Automator services before. All I get now is "Shell Script command encountered an error". No more detail. I copied and pasted the script as shown in the email thread. Is there any other line or command I need to place in front of it?
    Thanks again for any help

  • Can i stream different music/songs to different rooms/speakers using Apple TV

    can i stream different music/songs to different rooms/speakers using Apple TV

    I want to play different music in different rooms on wireless speakers, across a single wireless network.
    Can I hook-up wireless speakers in 2 different rooms and have person #1 connect to the speaker #1 through thier Macbook Air and person #2 connect to speaker #2 from thier iphone.
    If so what is the best way to accomplish this?

  • Catalog vendor having different vendor number in different R/3 system

    Hello Experts,
    We are in SRM 7.0 classic scenario and we are facing an issue as described below:-
    We are using a punched out catalog which has different venor number in different backend system.We have 2 R/3 backend system say R/3 sys1 & R/3 sys2.
    Vendor No for the Catalog vendor is say:-
    Vendor No     R/3 sys
    V123              R/3 sys1
    V567              R/3 sys2
    We have connected the R/3 sys2 just a week back.We have replicated the catalog vendor number V567 from R/3 sys2 into SRM system and we are able to successfully create a Shopping cart in R/3 sys2 using catalog.
    However,we are facing a problem and the problem is that,
    When we create a shopping cart in R/3 sys2 using catalog,by  default we get a message that "Vendor V123 is not intended for plant"
    We are able to change the vendor from V123 to V567  in the portal,but we are unable to understand why the vendor V123 is picked up as a default catalog vendor.
    Can you all experts,plz help us understand why this vendor V123 is picked up as default vendor and how we can ensure that Vendor V123 is picked up when we are creating SHC is system R/3 sys1 & vendor V567 is picked up as default vendor when we are creating SHC in system R/3 sys2?
    Any pointers will be highly appreciated.
    Thanks & Regards,
    RKS

    Hello RKS,
    >
    RKS_Jsr wrote:
    > (...)
    > Can you all experts,plz help us understand why this vendor V123 is picked up as default vendor and how we can ensure that Vendor V123 is picked up when we are creating SHC is system R/3 sys1 & vendor V567 is picked up as default vendor when we are creating SHC in system R/3 sys2?
    >(...)
    This means for same Product Category (and same material ID) coming from your Punch-Out catalog, you can create a Purchase Requisition in R/3 sys1 OR R/3 sys2 ?
    If i am correct, how can you manage in your catalog two vendor numbers for same Product Category (and material ID) ?
    I guess only one vendor number (V123) is maintained in your catalog. That's why, even if your management rule is to send your SC to R/3 sys2, you will have always vendor V123 as the default one, as it is the only one in your catalog...
    Regards.
    Laurent.

  • Different APC value for different ledgers

    Hi,
    we maintain two ledgers, one for IFRS, the other for local accounting. Considering some type of assets, we need to post different APC values to the IFRS ledger and the local ledger. How can this be done?
    thanks in advance,
    Zbynek

    Hi Arup,
    Yes, absoutely - you can use different RD for the same VRF on different PEs. In fact, if you have chosen to use the PE_IP_Address:Customer format of the RD then logically, the same VRF on different PEs will have different RDs because the PE addresses themselves are different.
    There is no obvious advantage or disadvantage to having the same or a different RD per the same VRF on different PEs. The RD is a tool that allows BGP to differentiate between identical prefixes from different VRFs on a single router. However, the value of RD has no influence on how the prefix will be assigned to a particular VRF on the destination PE. For this, route targets are always used.
    There is one specific use of different RDs: Advertising multiple paths to a single multihomed VRF site. Because to BGP, the entire value of <RD><Prefix><Netmask> is used in the best path selection algorithm, if two PEs connected to the same VRF site used the same RD, destination PEs and route reflectors would choose and advertise only one of them (remember: BGP always selects and advertises only a single best path). With different RDs, destination PEs and route reflectors see formally different NLRIs, and they perform the best path selection for each of them individually even though the actual <Prefix><Netmask> is the same.
    However, for simple VRF deployments, having a unique or identical RD on two PEs for the same VRF makes no significant difference.
    I hope other friends here will add their own thoughts about this.
    Best regards,
    Peter

  • Different sync settings for different podcasts?

    Here's a dilemma: From what I can figure so far, if you choose a Sync option (from the Podcast tab for your iPod when it's connected to iTunes), that option will apply to ALL of the podcasts you are sync-ing to your iPod - whether that's one, several, or all your podcasts. Well, what if you want different sync instructions for different podcasts?
    For example, is there a way to have iTunes do the following, all at once, on the same iPod:
    Sync only the "1 most recent" episode from Podcasts A, B, and C,
    ...AND...
    Sync "all" episodes from Podcast D.
    Because, seems to me, to keep all of the episodes of show D on iPod, you have to either have every episode of shows A, B and C loaded (which you don't want), or else have ONLY show D load (with not even the latest episodes from shows A B and C, which you WOULD like to have).
    Would this require setting up a Smart Playlist for each show, or am I overlooking some other (obvious?) way of achieving separate sync instructions? Anxious for your insights.
    - Bob
      Windows XP Pro  

    josh,
    i came on here looking for the same answer...this is probably the single most lame setting (or lack thereof) in itunes...I love apple and i'm a mac enthusiast who has converted 2 friends in the past 3 months, and i think they've done this for simplicity's sake, but it drives me up a wall to have a universal "keep" setting. The "Do Not Delete" is not enough, i'd love to have different keep settings for my podcasts.

  • Apply different firewall controls on different adapters

    Hi Mac Folks
    As Mac Pro got three network adapters (2 x Gigabit Ethernet + 1 x Wi-Fi), and I prefer using the wireless connection to access the Internet and leaving the two wired connections for private file sharing and VM communciation.
    Therefore, for the wireless connection, the firewall policy should be to disable all incoming traffic and allowing all outgoing access, while the wired connections should be firewall free or allowing specifc application protocols. But it seems the Firewall options under System Preferences have no such a detailed control.
    Is it possible to apply different firewall controls on different adapters?
    Any comments are welcome.
    Thanks,
    B

    Bad news on ipfw -- DEPRECATED:
    IPFW(8)                   BSD System Manager's Manual                  IPFW(8)  NAME ipfw -- IP firewall and traffic shaper control program (DEPRECATED)  SYNOPSIS
    ipfw [-cq] add rule ipfw [-acdefnNStT] {list | show} [rule | first-last ...] ipfw [-f | -q] flush ipfw [-q] {delete | zero | resetlog} [set] [number ...] ipfw enable {firewall | one_pass | debug | verbose | dyn_keepalive} ipfw disable {firewall | one_pass | debug | verbose | dyn_keepalive}  ipfw set [disable number ...] [enable number ...] ipfw set move [rule] number to number ipfw set swap number number ipfw set show  ipfw {pipe | queue} number config config-options ipfw [-s [field]] {pipe | queue} {delete | list | show} [number ...]  ipfw [-cnNqS] [-p preproc [preproc-flags]] pathname 
    DESCRIPTION Note that use of this utility is DEPRECATED. Please use pfctl(8) instead.

  • Hi I have two questions. I am using NAS 4.1 and was wondering is it possible to set a different session timeout for different users? How is the session timeout set? Thanks, YS

     

    <i>I am using NAS 4.1 and was wondering is it possible to set a different session timeout for different users?</i>
    Um, there is no such thing as NAS4.1.
    I'm assuming that you mean NAS4.0 (maybe NAS4.0sp1?). If so, then the session timeouts are specified in the session section of the NTV configuration files.
    AFAIK, you can specify session timeouts on a per user basis.

  • Print 2 different forms to 2 different printers 1 ABAP program

    Is it possible to print 2 different forms to 2 different printers from one program?
    Example: a Shipping invoice and a Shipping Label (mailing sticky label)
    Could they be a combination for form types? SAP Script and SMARTFORMS, SAP Script and PDF, SMARTFORMS and PDF
    I have a need to print a Shipping Invoice and Label from a single program. I need to beable to print multiple copies of the label at the same time for multiple shipping packages. i.e. 1 of 4, 2 of 4 etc.
    The users want to select print a single invoice and the neccessary labels from a single transaction request.
    Ken

    Hi,
    Could you please see the program RLVSDR40.
    Thanks,
    Abhijit

  • Can two people share the same Apple ID on two different iPhones and maintain different passwords?  Yes, there is more to the story.

    I have an iMac, and iPhone.  I've had my Apple ID for a few years. 
    My wife got an iPhone 4S a few months back and the salesperson at Verizon set her Apple ID the same as mine, but gave her a different password.  I don't know if this was ok, but that is what happened.
    So, yesterday, we both upgraded to IOS6 and I had no problem logging in to my iPhone with my Apple ID.  When my wife went to log in, she was told that she was entering the wrong password. We entered the password over and over again and still was wrong.
    The question is... can two people share the same Apple ID on two different iPhones and maintain different passwords?  (I have the feeling her iPhone is thinking that since it's my Apple ID, it wants my password.)
    If not, can I still set up a new Apple ID for her even through she's had the iPhone for a few months?
    Thanks.

    Hi
    You shold follow your feelings, its probably right most of the time.
    You can have 5 different devices hucked upp to one Apple ID. What I have done is that my wife and I have one Apple ID, when I bye a new app on my phone, She gets it to. Thats nice.
    You can allways set upp a new Apple ID for your wife.

  • Can 2 different users with 2 different Iphones use the same itunes to backup each phone separately? if not how can I have a backup for 2 different iphones on the same laptop?

    can 2 different users with 2 different Iphones use the same itune program to backup each phone separately? if not how can I have a backup for 2 different iphones on the same laptop?

    Here is your answer:
    http://support.apple.com/kb/HT1495

Maybe you are looking for

  • Error in basic web dynpro application

    i went through the following link https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/cb243c45-0801-0010-eb9c-88669007f130 and it has a tutorial to creating a web dynpro application i have done all the steps,but when the explorer

  • Calculated Item in Pivot failed to be entered

    Hello There, I'm sorry that I ask again, but I haven't found an answer to the following issue: Calculated Item in Pivot is not apearing in Chart While trying to add a calculated item to a Pivot table to display the growth, we receive the error: the s

  • Fireworks CS6 not editing .fw files

    Hello, My friend made 2 templates and send their editable PNG that is .fw file to me, After he send me that templates he deleted them by mistake, now I'm only able to open and edit only one of them and second one is not editable, Its in PNG format bu

  • Why are the iWork apps not free FOR ME?

    This might be a pretty old question, but lately I came to know that iWork apps were/are free for iOS 7 running devices, and my iPhone 4s which runs on iOS 7.1.2 and I activated it JUST 4 DAYS BEFORE SEPTEMBER 2013 (And many say, those who activated t

  • Wxpython - CFURLCreateWithFileSystemPath

    I'm writing a simple python gui (just a frame at this point) but when I run the app immediately crashes with the following error: /Library/Frameworks/Python.framework/Versions/2.7/bin/python /Users/eric/Documents/ARA/IC2CSV/src/IC2CSV.py 2011-10-12 0