Challenge in getting records present in Oracle but missing in MySQL
NickName:Joseph Ask DateTime:2011-08-26T17:06:13

Challenge in getting records present in Oracle but missing in MySQL

Our client has a system that is integrated to our Company application..the client system connects to Oracle database and our Company application connects to MySQL database.

The client side have given us a view on Oracle that has a set of 4 columns that resemble columns we have on our MySQL database.See below columns in Oracle database and their counterparts/equivalent in MySQL database.

Our client [ORACLE]    |    Our Company  [MySQL]

[ORACLE]               |    [MYSQL]

AK_NO                  |    Patient_File_Nr

BIL_NO                 |    Invoice_Nr

PAYMENT_AMT            |    Amount

VOUCHER_DATE           |    Insert_Date

I am able to generate records present to each of the databases but then I am not able to figure out a way of getting records missing in either of the databases when doing a comparison check.

How would I write PHP code that connects to both databases and does query for records in MySQL that are not present in Oracle and vice-versa.

Copyright Notice:Content Author:「Joseph」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/7202387/challenge-in-getting-records-present-in-oracle-but-missing-in-mysql

More about “Challenge in getting records present in Oracle but missing in MySQL” related questions

Challenge in getting records present in Oracle but missing in MySQL

Our client has a system that is integrated to our Company application..the client system connects to Oracle database and our Company application connects to MySQL database. The client side have gi...

Show Detail

Inserting or Updating bulk records from oracle database to Mysql database using java

I have 200 000 data in oracle db and 300 000 data in Mysql db with same columns. I want to Insert or update mysql dp comparing to data in oracle db. I am trying with JDBC,Spring boot jpa but I hav...

Show Detail

How to validate the missing records in Hive after sqooping the data from Oracle

Wanted to know how to check missing records in Hive when data is loaded from Oracle due to some issue. Suppose: Oracle no.of records : 2000 Hive no.of records : 1990 How to check the 10 missing

Show Detail

MySQL - Getting "Lock wait timeout exceeded; try restarting transaction"

I have created one table with 4 columns in Oracle MySQL DB and the version 5.7. The total records present in DB is 4 912 442. Now i am trying to insert one more 100 000 records into the MySQL DB. ...

Show Detail

Partial data missing in mysql new slave

I have setup a MySQL replication cluster which has a Primary node (master), and a Secondary node (slave). I created a table(Org.Employee) and inserted 100 records in to the master node. The slave

Show Detail

database records missing randomly in mysql

I am using joomla as CMS I have a system of creating users from the back end and give those login information to the users to log in our site we are following this system as we only serve a selected

Show Detail

org.hibernate.HibernateException: Missing table exception though MySQL table is present

I am connecting to a MySQL table using JPA Hibernate. But I am getting error in my Java code: org.hibernate.HibernateException: Missing table My table is present in MySQL database schema. I am not

Show Detail

All records not inserting into Mysql Table

Does mysql has a limit on how many records it can insert into a table? I'm pulling records from an Oracle DB/Staff Table to a MySql Datbase/Staff Table by running a php script. The total records ...

Show Detail

MySQL cluster Slave is having missing records

I have a mysql cluster with a master(m1) and a slave(s1) nodes. I have setup asynchronous replication. I am inserting data into a table in m1 using 10 threads of a data ingestion python script. Ca...

Show Detail

Select rows based on total percentage of records present MySQL

I am not sure if I have put the right title, will be happy for the moderator to change it. Here is what i want: Lets say i have a table with 3 columns Id | Name | campaignid ------------...

Show Detail