Inserting differntial data into postgresql table from db2 table trough trigger - postgresql

I am looking the differential data load from db2 tables to PostgreSQL. Is there any free tool? or how I can write the trigger to connect two databases?
will db2_fdw in PostgreSQL will help me to do this?

You can't write to nicknames in triggers in Db2.
You may use SQL Replication to a federated data source (PostgreSQL in you case) depending on your Db2 version.
11.5 Federation for PG
11.1 Federation for PG

Related

How do I merge database Oracle and Postgres into a Select?

I have DBeaver and 2 DB connections, Oracle and Postgres. I would like to know how do I use the 2 databases in my select?

Is there any way to sync on premise oracle table data to a table in Aurora postgres RDS?

I've migrated a On premise Oracle to Aurora Postgres on AWS RDS. my migration process is described in the below image.
I'm looking for an option to sync data from on prem oracle to aurora postgres (Something like, if one row inserted/updated in particular table, that data should come and update/insert in aurora postgres table).
Is it possible ?
Yes you'll want to use the DMS (Database Migration Service) which can do continuous data replication from source to target DB's
https://aws.amazon.com/dms/

Oracle vs db2 create user and table

I'm learning to use the command line db2 to create a simple table.
Oracle will perform the following steps:
CREATE USER user IDENTIFIED BY password;
GRANT ALL PRIVILEGES TO user;
and then just type CONNECT and login, and you can create tables.
All this in DB2 how? I don't understand.
DB2 has different user management than Oracle. DB2 relies on the operating system or solutions like LDAP, there is no CREATE USER command.
I recommend that you start by reading this IBM RedBook about commonalities and differences between the DB2 and Oracle and how to get started.

DB2 via IBM Client Access ODBC Driver - list all tables and columns

im connected with an DB2 database via IBM Client Access ODBC Driver.
How can i list all tables and columns?
Like in SQL-Server information_schema.columns or in Oracle all_tab_columns?
Regards,
Dennis
List all tables and columns
select * from qsys2.syscolumns

Insert records to Heroku Postgres database using a rails script

I need to update a dababase from an other database... For this I need to search in existing database if the records exists, if not add... One of the database is locally stored in my computer, and the other one is on heroku... But I don't know how to access heroku database from my computer to create the inserts and to query if I have to insert or not...
Any idea how can I do something like this?
You can connect via any DB tool, e.g. Oracle SQL Developer with Postgres JDBC connector, to a Heroku Postgres DB. The parameters are listed in the GUI of postgres.heroku.com for your instance.