I'm working in postgresql database with jsp/servlets, I need to connect the external jdbc such as MySQL,MS SQL,PostgreSQL and migrate all the datas to my Postgresql database.
Can any one please point me in the right direction?
I believe there is no simple solution for your task, unless its a fairly basic project. In real world sometimes we're forced to use db specific definitions like indices, transaction management, sequences, etc. I'm not telling about db specific queries or things like PL/SQL or Transact SQL that simply are not supported by all the data bases.
If you're using Hibernate/JPA, and in particular schema generation from your entities, you can try to connect to the old schema, fetch all the entities and serialize them on your hard drive, than configure datasource with the new db address and try to deploy the entities there but in general I wouldn't expect that all will be clear and work out of the box
Disclamer, I'm a Java guy, so I share my thoughts from the perspective of java developer and not a DBA :)
Hope this helps
As RC said in the comments, try using Talend they have a open studio Here is the link. Free version is absolutely fine with your case. You can write (or design) a job and export it as a jar and use it part of your application or run it as cron scheduler based on your requirement.
They have some tutorials over the web and some on youtube also. They should be helpful.
This explains how to connect to PostgreSQL with JDBC. Does that help?
CREATE TABLEstatements, etc? If so, you're going to have a huge job ahead of you. If all you need to do is copy data between one database and another where the schemas are basically the same, that's a very different and much simpler question.