Hi all,
I need to compare two databases that are in the same schemas and compare databases that are in different schmas.
I need to check the table structure and well as the data in them.
I ran this query for the database that is in the same schema:
select table_name
from DBA_tables where owner = 'database_one'
MINUS SELECT TABLE_NAME FROM DBA_TABLES WHERE OWNER = 'database_two';
Result: It compared the number of tables in database_one and database_two and returned me that tables that are not in database_one. How can I do the same thing when the database in different schema and check the tables structure at the same time?
Thank you for all your help
mkey
I need to compare two databases that are in the same schemas and compare databases that are in different schmas.
I need to check the table structure and well as the data in them.
I ran this query for the database that is in the same schema:
select table_name
from DBA_tables where owner = 'database_one'
MINUS SELECT TABLE_NAME FROM DBA_TABLES WHERE OWNER = 'database_two';
Result: It compared the number of tables in database_one and database_two and returned me that tables that are not in database_one. How can I do the same thing when the database in different schema and check the tables structure at the same time?
Thank you for all your help
mkey