Connecting to different databases

Hi,
Is there any one JDBC driver that connects to different databases (SQL Server, Oracle, Informix, MS Access, DB2..etc)
Can anybody Pls help me for the above problem, its urgent

There are some drivers, which supports several DBs
look for them here:
http://industry.java.sun.com/products/jdbc/drivers
Paul

Similar Messages

  • Oracle 8.1.7 database connects to different database other than specified.

    Dear Experts,
    This is a mysterious problem, I had ever encountered. I had executed some scripts by having connect canvas@trn_pcd as part of the script. I had entered the password in SQL * PLUS by calling the script. The Production and Training database had the same passwords. The connection was somehow established to Production database and the changes went to Prod_pcdb8 instance rather than trn_pcdb instance. There was no local installation of any oracle tool and I had used the SQL * PLUS of installation from one of network machine. The DBA had confirmed that TNSNAMES.ora file does not point trn_pcdb to PROD_PCDB8 instance. The database the connection was made to is 8.1.7.0.0, what are the possible ways that this can happen. Any ideas or experiences in this regard will be highly appreciated.
    Thanks and regards,
    Reddy
    [email protected]

    Thanks Justin. I will try that, but I was not able to reproduce, it all happened in one SQL * PLUS session. I had that open and ran multiple scripts with each of them having connect user_id@trn_pcdb and each of the changes in the script went to PROD_PCDB. Unfortunately, I had not realised at that point that they were going to PROD_PCDB, until I opened the Training Application and to my surprise, I did not find any of the changes, we had done. Our applications are developed on Developer 2000 and use a batch file which resets the Oracle registry. So when I started the application, it goes and resets the Oracle registry on the user machine. This time, I opened a SQL * PLUS session from the ORACLE_HOME used by the application and re-ran the scripts and they rightfully went to trn_pcdb database.
    So what are all the possible ways, that the changes can go to a different database though the connect string points to the right instance. Any ideas in this direction will highly be appreciated.
    Thanks,
    Reddy

  • How to connect to different databases in hibernate and mysql

    I have a question maybe someone can help me, I need to MAKE A java Enforcement (Desktop) Using Hibernate Where can create a Database, and then allow me to open or connect to the database I want, let's say I have two databases schedules1 one call and another call Horarios2, if I give open Horario1 ps I load the records that database, if anyone can give me ideas, or some articles where I will be grateful I can hayar information, I am using Mysql

    http://hibernate.org/docs

  • OAF Page to connect two different Databases

    Hi OAF Team,
    We have a requirement to connect another instance from the source instance. That is when we login via supplier user for Supplier portal access we also need to see the planning details availble in another instance(database).
    All the pages in the Supplier portal and collaborative planning are of OAF pages.
    Also need to login once only, That is when we are into one instance and if we provide the hyper link of other instance in the home page, is that possible to connect the other database by defaulting the login/pwd from source login.
    Regards
    Vish

    Hi, I am too intersted in knowing if it is possible to use a remote database objects other than the default one. There was some guideline present for using it on SQL Server. I followed similar approach but it gave table or view does not exist error while running from JDEV.
    Apreiciate any help this.

  • Connect to different Databases like Oracle, SqlServer,Access,Db2

    Hi all,
    i'm in the process of developing an application using jsp , which should be capable of connecting to all datbases like Oracle, SQL Server,Access DB2, Sybase etc,
    How can i establish that?
    Also what all are things i need to take care,which are specific to each of these databases,like datatype differences etc?
    Any information or links with sample codes is helpfull.
    regards.
    Isaac

    Theoretically if you use just the JDBC API then you should be able to access all these databases. This will be true if you're not using 'exotic' datatypes or functionality. If you are, then you may be in for problems - for example I've had problems with clobs and Oracle that required Oracle specific code, which goes against what you're doing. If that happens, just have call outs to helper classes that use the vendor specific stuff, and only load these classes if you detect that particular JDBC driver, and abstract these vendor specific classes to a standard interface.

  • Connect to different databases

    Hi all,
    I want to read data from a table t1 in a DB1 and write it in a table t2 in another database DB2 using Oracle forms 10g.
    Thanks
    Charbel

    Create a database link for db2 in db1 and a synonym for t2 @ db2 for the db1 user.
    Steve

  • Use 2 App modules with connection to 2 databases on 1 UIX page?

    Is it possible use 2 different Application modules with connection to different databases on one UIX page?
    Thank you.

    Yes.
    Use a <bc4j:registryDef> with two <bc4j:rootAppModule>'s inside. Everything else is the same as the single root application module case.
    More documentation is available in the UIX Developer's Guide available in the JDeveloper help system and online at:
    http://helponline.oracle.com/uix/help/
    Kind Regards.

  • How can I connect to a different database schema,other than adobe?

    I'm building an application where I want to use a different database for it,for storing additional data for the users(different from "edcprincipaluserentity" table in "adobe" database stores)..How I can connect to my database schema created in MySQL from Workbench,to assign tasks to my users,using the Process Management/Assign Task service?

    You can only assign task to user that are known by the LiveCycle User Manager.
    When you configure LiveCycle, you can tell it where you want to get the users from. They can be created them locally in the local database, or synchronized from an LDAP directory in which case it'll read the users from LDAP and make a copy of some of the properties to the internal LiveCycle database.
    Bottom line, all users have an id (in the edcprincipalentity table) in the adobe database.
    If you need your users to come from a different database, then you need to customize the SPI (security provider interface) so that you can synchronize the users coming from your external database. Again, this is a customization since out of the box, we don't synchronize against external database. But it is possible, the API is there and other customers have done it.
    I hope this clarifies things a bit.
    Jasmin

  • How to add two different database connections on Model

    Hi,
    In my application, I need to create View Objects on different databases. So I need to add two different database connections on the Model.
    But it seems like Model can be connected to only one database. I tried adding another project to add the second db connection. But after I created a read-only View Object in the second project, it didn't generate corresponding data control in the Data Controls panel.
    Could anyone help me on this?
    Thanks!

    Do you mean adding the second project folder in ViewController->Project Properties->Libraries and Classpath?Yes, either that or: ViewController -> Project Properties -> Dependencies
    And I didn't see the first Model project in the ViewController classpath. Otherwise it wouldn't work. The first model project IS in 'classpath'. Here's how:
    ViewController -> Project Properties -> Dependencies
    I tried this and recreated the View Object. Still didn't generate the datacontrol. No idea why you had to recreate the VO.
    Is your VO in an application module inside the SECOND project?
    After you are sure that everything is in the ViewController's classpath, just try restarting JDeveloper.
    This is very basic. has to work.

  • 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

  • How to use more than one connection pool to 2 different databases ??? (Weblogic 5.1)

    Hello,
    In my application, I must use two different databases to retrieve
    informations...
    My application use EJB so I created two pool of connection named pool1 and
    pool2...
    But when I yet used the pool1 to connect to first database and I try to use
    the pool2 (to connect to the second database), an SQLException occurs :
    "java.sql.SQLException: Connection has already been created in this tx
    context for pool named <first pool's name>. Illegal attempt to create
    connection from another pool: <second pool's name>"
    I have found the answer in www.bea.com
    http://e-docs.bea.com/wls/docs61/faq/JTA.html#738373
    Anybody can help me and give me the more easy,quickly and the more efficient
    way to use two database with two different connection pool..
    Thanks..
    Dephi

    Hi
    You need to configure TxDataSource with XA connection pool.
    More information can be found here:
    http://e-docs.bea.com/wls/docs61/jta/thirdpartytx.html
    Regards,
    Slava Imeshev
    [email protected]
    "Philippe Da Cunha" <pdacunha@@webraska.com> wrote in message
    news:3bfcd6ee$[email protected]..
    Hello,
    In my application, I must use two different databases to retrieve
    informations...
    My application use EJB so I created two pool of connection named pool1 and
    pool2...
    But when I yet used the pool1 to connect to first database and I try touse
    the pool2 (to connect to the second database), an SQLException occurs :
    "java.sql.SQLException: Connection has already been created in this tx
    context for pool named <first pool's name>. Illegal attempt to create
    connection from another pool: <second pool's name>"
    I have found the answer in www.bea.com
    http://e-docs.bea.com/wls/docs61/faq/JTA.html#738373
    Anybody can help me and give me the more easy,quickly and the moreefficient
    way to use two database with two different connection pool..
    Thanks..
    Dephi

  • Connecting to two different database instances from a swing application.

    Hi All,
    I am developing a swing application which needs to interact with two different database instances of two different weblogic servers.
    More eloborately,
    I have some data in DB_Instance1 running on[b] Weblogic_Server1 and I need to insert the same data into DB_instance2 running on Weblogic_server2. Is it possible. Could some explain me how to do that..
    Thanks in advance...
    Sreekanth.

    Hi Rick,
    Try logging onto both Server first. You'll have to use either 2 separate ODBC DSN's or 2 separate OLE DB connections. Set them both for Trusted Authentication, you'll have to configure that on the Server also.Then try your query.
    If that doesn't work then you'll have to create a Stored Procedure or View that can link the 2 Server side.
    Thank you
    Don

  • Different database connections at runtime

    How can I change different database connections at runtime on the same Application Module ?
    I use BC4J as business layer and uiXml as presentation layer.

    Does anyone know how to do this?
    I need the same, but i couldn't find any documentation about it.
    Looking forward to hearing good news.....

  • Different database connections

    Hi,
    I have a problem in an application with two different database connections.
    I divided it into three projects one is the model project for a mysql database, one I the model project for an mssql database and one is a jsf project.
    But I only can use the first database project I add to the jsf project.
    If I use the other SessionFacade he uses the wrong database driver.
    My question is, is it possible to access two different databases out of one project?
    Thanks,
    John

    Does anyone know how to do this?
    I need the same, but i couldn't find any documentation about it.
    Looking forward to hearing good news.....

  • Problem connecting to two different databases from form

    Hi all,
    i am using 6i forms which needs to be connected to oracle 9i and 10g databases which is having different ip address(residing in different machines).i can connect to 10g database after configuring tnsnames.ora in my machine but still i cannot connect to 9i database. could anyone tell me what could be the reason.
    thanks
    mish

    Hi Paul.
    thanks for your help. i could able to solve the problem. since there was a change in the ip address (administrators do it sometimes!!) i couldn't connect. now its fine. thanks once again . have a great day.
    thanks
    mish

Maybe you are looking for

  • Autonumber doesn't work

    There is something strange with my autonumber... When we check in content and don't give a content ID we get the error that there allready exists a content with the id 000006. Although the autonumber is turned on. It's like the increment doesn't work

  • AS3 Web-services WSDL address issue (IP Port)

    Code Sample: import mx.rpc.soap.*;  var appWS = new WebService;  appWS.loadWSDL("http://xx.xx.xxx.xx:1234/test/map/service1.asmx?WSDL"); Flash ignore the port number (1234) in connection. Your help is appreciated, Thank you.

  • Apple Tv no photos. Home sharing only lasts for one session

    My Apple Tv only shares photos for a while then my computers name disappears from head list I can only access Music after subscribing to I match and using I cloud. Have tried some ideas suggested by others with similar problems; and 4 calls with Appl

  • ESS Address Screen - T.Code PZ02

    User is a contractor and uses Portal to Change her Main Work Address mobile number, But not always getting the correct screen to update. (Some Times User is Getting Correct Main Work Address Screen, Some Times Legal Address Screen). And in Address de

  • Security, on System Preferences keeps crashing.

    I cannot access it. Any ideas whats wrong?  I'm running Mac OS 10.6.8 on an iMac 2.4 GHZ Intel Core 2 Duo with 4GB of RAM.