Multiple RDBMS Connections

Hi,
I need to connect to two different RDBMS lets say DB2 and Oracle.
Can I use Class.forName("mydriver") technique to load the database drivers
and get connection using DriverManager.getConnection(). I think its not possible.
How can I make my Swing ( desktop ) application to connect to different RDBMS, using the same JVM.
Thanks for the time.

This is possible. You need two different Database URIs when connecting to the databases. Each one contains information about the used driver in the database allowing the DriverManager to choose the right one.
We use this to connect to db2 and oracle from one applsication.
You may also use the same SQL (it must be standard of course) to read/write to the databases.

Similar Messages

  • Our home network has multiple devices connected by iCloud. Having problem with Calendar. On one iMac, all the events are duplicated. How can I correct that problem? Under the Calendar accounts, I had my Apple id listed and also just iCloud.

    Our home network has multiple devices connected by iCloud: 2 iMacs, 2 iPhone 4s, 1 MacPro Laptop, and 1 iPad 2.  When using Calendar, all the events were
    duplicated on my husbands iMac.  On his computer, under Calendar accounts, I had included iCloud and also my iCloud ID.  I thought that because I had two accounts listed that were connected to iCloud, that might be the cause of the duplication.  When I deleted ithe calendars from one of the accounts, it resulted
    in deleting all of the events on all of our network devices!
    I have since entered some new events into Calendar from my iMac and from my iPhone.  These appear correctly on all devices except my husband's iMac where they are again all duplicated.
    I have two questions: 1)  How can I eliminate the duplicated events on my husband's computer and 2) How do I retrieve the old wiped out Calendar events from
    Time Capsule.  I don't know how to find Calendar in the Time Capsule.  If I find the Calendar information in Time Capsule, how do I transfer it to my current Calendars?
    I was obtaining phone help from one of the Apple techs at Apple Support, but our call was disconnected part way through.  Didn't know how to reconnect with the tech.
    Thanks for any help.

    The warranty entitles you to complimentary phone support for the first 90 days of ownership.

  • How to provide access to multiple users connected to a Dumb switch? (multi-auth/multi-domain)

    Good morning everybody,
    I am writing on behalf of not being able to implement a desired outcome in our company network. In fact the situation is as follows:
    What I want to do is to be able to authenticate users (802.1x authentication) in our company radius server and authorize them access by having a dynamic VLAN assignment in a multi-user environment on one and the same port of a Cisco 2960 switch. So far, the authentication and authorization has been working completely smoothly (there are no problems with itself). The concept involves the configuration of both DATA and VOICE VLANs as I there is also phone authentication implemented. In order to simulate this environment I introduce a Dumb switch connected to my Cisco 2960 Catalyst.
    What I have successfully managed to get to work so far is this:
    1) On one switch port I have tried the “authentication host-mode multi-domain” and it worked perfectly for a PC behind a telephone, or with one PC connected to a the dumb switch + the telephone connected to another port of the dumb switch. Logically it is the same situation as there is a separation in two domains – DATA and VOICE. Bellow is an output from show authentication sessions for this scenario.
    Interface  MAC Address     Method   Domain   Status         Session ID          
    Fa0/23     0021.9b62.b79b  dot1x    DATA     Authz Success  C0A8FF69000000F3008E (user1)
    Fa0/23     0015.655c.b912  dot1x    VOICE    Authz Success  C0A8FF69000000F9009F (phone)
    2) On the other hand, when I try the same scenario with the “authentication host-mode multi-auth”, the switch still separates the traffic in two domains and is able to authenticate all users, AS LONG AS they are in the same VLAN.
    show authentication sessions:
    Interface  MAC Address     Method   Domain   Status         Session ID          
    Fa0/23     0021.9b62.b79b  dot1x    DATA     Authz Success  C0A8FF69000000F3008E (user1)
    Fa0/23     b888.e3eb.ebac   dot1x    DATA     Authz Success  C0A8FF69000000F8008C (user2)
    Fa0/23     0015.655c.b912  dot1x    VOICE    Authz Success  C0A8FF69000000F9009F (phone)
    However, I cannot succeed authentication of many users from DIFFERENT VLANs, neither in multi-auth nor in multi-domain modes.
    What I want to get is an output like this:
    Interface  MAC Address     Method   Domain   Status         Session ID          
    Fa0/23     0021.9b62.b79b  dot1x    DATA     Authz Success  C0A8FF69000000F3008E (user1)
    Fa0/23     b888.e3eb.ebac dot1x    DATA     Authz Success  C0A8FF69000000F8008C (user2)
    Fa0/23     0015.655c.b912  dot1x    VOICE    Authz Success  C0A8FF69000000F9009F (phone)
    I want the switch to authenticate the users anytime they connect to itself and for them to have an instant access to the network. (I tell this because I tried scenario 1) with multi-domain mode and authentication violation replace, and it worked but, two users never had access to the “Internet” simultaneously!!!
    The configuration of the interface connected to the Dumb switch is as follows.
    interface FastEthernet0/x                                                      
     description Connection to DUMBswitch                                            
     switchport mode access                                                         
     switchport voice vlan XXX                                                      
     switchport port-security maximum 10                                            
     switchport port-security                                                       
     switchport port-security violation protect                                     
     authentication host-mode multi-auth                                            
     authentication priority dot1x                                                  
     authentication port-control auto                                               
     authentication timer reauthenticate 4000                                       
     authentication violation replace                                               
     dot1x pae authenticator                                                        
     dot1x timeout tx-period 10                                                     
     spanning-tree portfast                                                         
    The way I see it is explained in the following steps:
    - PC1 connects to the Dumb switch. This causes the Cisco switch to authenticate user1. This creates an auth. session with its MAC address linked to a domain DATA.
    - When PC2 connects to the Dumb switch, this causes the violation replace which replaces the recent authenticated MAC address with the MAC of PC2. I would like it once authenticated to appear in the authentication sessions with a link to a new DATA domain linked to the VLAN assigned from the RADIUS server.
    Is this possible? I think (in theory) this is the only way to provide authenticated access to multiple users connecting through Dumb switch to the network.
    Has anybody ever succeeded in such a configuration example and if yes, I would be love to get some help in doing so?
    Thank you
    Stoimen Hristov

    Hi Stoimen,
    I have done a setup similar to yours with the only exception being VLAN assignment. When I used dACLs only, it makes things somewhat easier as the VLAN no longer matters. Remember that the switchport is in access mode and will only allow a single VLAN across it (with the exception of the voice VLAN). I think that is the real cause of your problem.
    From what I can see, you have 2 options available to you:
    1) Use dACLs instead of VLAN assignment. This means that an access list will be downloaded from the radius server straight to the authenticated user's session. I have tested this and it works perfectly. Just Google Cisco IBNS quick reference guide and look for the section that deals with Low Impact mode.
    2) Get rid of the dumb switches and use managed switches throughout your network. Dumb switches will always be a point of weakness in your network because they have no intelligence to do advanced security features like port security, 802.1x, DHCP snooping, etc.
    Hopefully someone else will chime in with another option.
    Xavier

  • Multiple DataBase Connection in a Single Form

    hi all
    Is it Possible to have Multiple Database Connection With a Single Form
    Block a : Retriving data from a database Service a/Schema A.
    Block b : Retriving data from a Remote Database Service b / Schema B.
    If yes how to do this.
    regards
    jai
    email:[email protected]

    Sure you can access a database this way,
    but can you base a block on this database connect? No you can't.
    Frank

  • Problem about financial reporting studio(assign multiple db connection)

    Hi,
    I need to assign multiple database connections to a grid in Oracle Hyperion Financial Reporting Studio
    To do this, I performed the following steps:
    - Open a report.
    - In a grid, select one column for which I want to change the database connection.
    - In the Column Properties sheet, click the Select Database Connection button, .
    - In the Select a Database Connection dialog box, select a database connection from the Database Connection drop-down list, then Click OK.
    - In the Map Dimensions Between... dialog box, map dimensions between the default database connection and the selected database connection. I do this by selecting a dimension from the pull-down list in the right column for each dimension in the left column.
    - Optional: Select an alias table for the new database connection.
    - Click OK.
    But after last step I have received next error:
    *; nested exception is:*
    java.lang.NullPointerException
    Can someone explain the source of this error?
    And help me please solve this problem because I didn’t receive figures in that column where I changed database connection.
    Thank you in advance!

    I'm sure that both DB connections has the same dimension hierarchy. I can open the repot, but in it I don't see figures in that column where I've changed database connection...

  • Does Airport Express support multiple ethernet connections via a switch?

    If I use the following configuration, with the Airport Express extending my network, will it handle multiple devices connected via a switch?
    Modem---Airport Extreme- - -802.11n- - -Airport Express---Switch---multiple devices (eg. network printer and iMac).
    Or do I need to use a second Airport Extreme instead?

    It works for me—even when the AirPort Express device is configured to extend the wireless network created by the AirPort Extreme router.

  • Multiple IDLE connections

    Hi,
    I have two IDLE enabled IMAP accounts and I'm trying to work out if everything is working properly as it doesn't feel like it is.
    When I check netstat it shows multiple established connections for each account which seems to many for it to be right.
    Any thoughts on what to check? Server is showing two connections which would be right.
    Thanks,
    Adam

    If you must have a 1-1 app user/connection to database user/connection, then using a DatabaseSession would probably be the easiest solution. The means that each user would create and connect to their own DatabaseSession when they login to the app. You could still share the same TopLink project instance to reduce some of the connecting/initialization overhead, but there would be no way to pool connections. Using a DatabaseSession would not allow for any shared caching across users.
    Do you need to be connected as the user for reading, or just for writing to the database? If you can use a shared user/connection for reading, then you could use a ServerSession and have a shared cache. Define the shared user in the ServerSession, and when each user connects acquire a ClientSession through the acquireClientSession(DatabaseLogin) API, which allows you to specify the user/password to connect as for writing.
    In TopLink 10.1.3 you may also wish to investigate the VPD and exclusive client connection support. This allows for some of your data to be read through a user/VPD secure connection, and other shared data to still be cached. It also allows for the user/VPD to be switched on a pooled connection.

  • Multiple WLAN connections

    Does anyone know of a way to get my PODCAST and Email applications to use multiple WLAN connections?
    I spend most of my day in one of two places, each with a different WLAN, and I'd the phone to have the sense to change WLAN connection as they become available.
    Thanks for your time.

    Depends, on what your phone is.
    If you're using an N97 or a 5800, or anything running on s60v5 for that matter, Go to Menu>Settings>Connectivity>Wireless LAN>Options>Settings>Show WLAN availability. Then you can also set how often it will set to scan for WLAN connections. This would allow the phone to scan for WLAN hotspots around you immediately. Be warned however that this will drain your battery faster.
    On an s60v3 phone, I am not very familiar but from what I know its in Menu>Tools>Connectivity>Wireless LAN>Options>Settings>Show WLAn availability.
    If you find my post helpful please click the green star on the left under the avatar. Thanks.

  • Multiple AWS connections

    Hi all,
    Can MCAK handle multiple AWS connections in current version?
    If not, if there is a plan let me know.
    My customer would like to use multiple AWS regions (e.g. US-East and Tokyo) because of BCP/DR.
    thanks,
    Jun Kojima         

    Yes, Multi-Cloud is designed to support multiple connections across the same or multiple platforms. You can even have multiple connections to the same AWS region using different accounts to facilitate chargeback allocation. You also have the option to specify and availability zone.
    PS. A new version of the Multi-Cloud kit will be available late February along with CIAC Enterprise Edition 3.1.1 offering full future upgradeability. For AWS, it will also support elastic IP and the management and distribution of keypairs.The current MCAK for Starter Edition is recommended for proof of concept only at this point.

  • Simulate Multiple users connecting to same session

    Hi All,
    Is there anyway we can simulate multiple users connecting to the same session in oracle using PL/SQL.
    Thanks,
    MK.

    As per the architects in our company, lots of users connect to the same session and access the database.Exactly what does this mean? A single session can service one user at a time. I would wager that the architects are envisioning (or describing) a connection pooling setup where the middle tier server maintains a relatively small number of connections to the database (each with its own session most likely) and users operate by getting a connection from the pool, making a request, and returning the connection back to the pool. At any given point, only one user can be using a connection.
    If that's the case, you would simulate this by simply executing code in a loop in PL/SQL.
    Of course, if this is the case, each connection in the connection pool would its own copy of the collection and so each connection would get its own list of order numbers. You'd have to develop some way to ensure that each session populated its collection with a different set of order numbers.
    Justin

  • Multiple db connections for one report

    Hi all,
    I am using Oracle Reports 10g R2. Could someone tell me if Oracle Reports supports multiple database connections for one rdf file, like this (using servlet)
    http://your_web_server:port_num/reports/rwservlet?server=server_name&report=myreport.rdf& userid1=username/password@my_db1&userid2=username/password@my_db2 &desformat=pdf&destype=cache
    I am asking this question because my report needs data from two separate Oracle databases.
    Edited by: user12239004 on Apr 27, 2010 2:14 AM

    No, you can only have one login.
    However, this is simple to resolve by creating a database link in one database to the other database.

  • Multiple http connection

    is it possible for me to make multiple http connection to server?
    I'm trying to send data for about 40kb, i send the data into 80 parts ( a part about 500 bytes)..
    is it possible to make about 80 thread in the same time??
    I do this way to reduce time consumption...
    Help me please..

    No, in this case, more threads will most likely slow down the data transfer:
    - more threads means more TCP connections, means more overhead
    - CPU scheduling will make it slower than using one thread, they can't work symultanious anyway
    - One thread is probably already capable of fully filling the network bandwidth with data

  • Multiple Incoming Connections to Skype

    Hi!
    When I initiated a call today, I began being bombarded by multiple incoming connection attempts from many different IPs, from many parts of the world. I couldn't deny all incoming connections, obviously, so I set it to allow all so I could finish the call without playing whack-a-mole.
    What are these connection attempts about? And, if they're malicious, what kind of rule should I set to block them?

    Hi,
    Is the customer trying to login with a single username for more than 3 times?
    If yes, and you want to change the simultaneous login then edit the group-policy and vpn-simulateously -login parameter. vpn-simulatenous-login is set to 3 by default.
    The following link gives details of the same:
    http://www.cisco.com/en/US/products/ps6120/products_tech_note09186a00807e0aca.shtml#vpnc-sol-1
    Hope this helps.
    Regards,
    Anisha
    P.S.: please mark this thread as answerd if you feel your query is resolved. Do rate helpful posts.

  • Local only connection on multiple wirelesss connections

    I've seen several posts to this affect, but no resolutions.  I have a WRT110, one wired connection which works fine and multiple wireless connections.  Only one wireless connection can be active at a time.  If connection A is active, and connection B comes on-line, connection B takes the internet connection and connection A is left as Local Access Only (but still connected to the router).  After connection B goes off-line, connection A can reestablish internet connectivity after a short period of time.
    Any thoughts? 

    I would suggest you to readjust the wireless settings of the router...On the Linksys Setup Page try doing the following settings.
    Under the Wireless tab..
    - Set the Radio Band to Standard-20MHz and change the Standard channel to 11-2.462GHz
    Under Advance Wireless tab..
    - Change the Beacon Interval to 75,Change the Fragmentation Threshold to 2304,Change the RTS Threshold to 2304.
    Now,try to connect both the laptop...

  • Multiple SharePoint Connections Appearing

    Has anyone else encountered multiple SharePoint connections appearing for the same server in Office 2013.  We are using Office 365 and I work on office across multiple devices.  This anomaly seemed to pop up when I started using Office for iPad,
    though I've no idea if its connected.  I can remove the extra account and then all works fine, but on reboot the extra account reappears and then I can't open files from the web interface - most frustrating.

    Hi,
    It could be that the cache for the account was still being stored in the registry.
    I suggest you try the method below to delete the Office profile that may still be cached:
    Important
    Follow the steps in this section carefully. Serious problems might occur if you modify the registry incorrectly. Before you modify it,
    back up the registry for restoration in
    case problems occur.
    From Registry Editor, browse to: HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Common\Identity\Identities
    Choose the Office profile that you want to delete, and then choose Delete.
    From the Identity hive, navigate to the Profiles node, choose that same identity, open the shortcut menu (right-click), and then choose
    Delete.
    The steps above are quoted from this article below, you may also learn something useful from it:
    https://technet.microsoft.com/en-us/library/jj683102.aspx?f=255&MSPPError=-2147217396
    Regards,
    Melon Chen
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

Maybe you are looking for