hi all,
I am new in PL/SQL and need code assistance for the following issue.
i have two same database on different locations.I want to compare the same table from these database schemas.I plan to use dblink to connect to databases and use MINUS for differences with the following format.
select * from '||:v_schema1||'.'||:v_table_name||'@':v_remote_dblink_name1''
MINUS
select * from '||:v_schema2||'.'||:v_table_name||'@':v_remote_dblink_name2''
I want to do it with a procedure with the template of :
compare_tables(
v_schema1 in varchar2,
v_schema2 in varchar2,
v_remote_dblink_name1 in varchar2,
v_remote_dblink_name1 in varchar2,
v_table_name in varchar2)
Example usage:
compare_tables(UHVKK,
U1BHHM,
DHVKK1.HVKK.TSK,
D1BHHM1.HVKK.TSK,
KKKD_PERSONNEL)
Thanks in advance.
I am new in PL/SQL and need code assistance for the following issue.
i have two same database on different locations.I want to compare the same table from these database schemas.I plan to use dblink to connect to databases and use MINUS for differences with the following format.
select * from '||:v_schema1||'.'||:v_table_name||'@':v_remote_dblink_name1''
MINUS
select * from '||:v_schema2||'.'||:v_table_name||'@':v_remote_dblink_name2''
I want to do it with a procedure with the template of :
compare_tables(
v_schema1 in varchar2,
v_schema2 in varchar2,
v_remote_dblink_name1 in varchar2,
v_remote_dblink_name1 in varchar2,
v_table_name in varchar2)
Example usage:
compare_tables(UHVKK,
U1BHHM,
DHVKK1.HVKK.TSK,
D1BHHM1.HVKK.TSK,
KKKD_PERSONNEL)
Thanks in advance.