I've two databases with the same schema, I need to select data from two tables having same schema (same name, same column) using DATABASE LINK in Oracle ?
SQL> select * from TEST1;
ID NAME
---------- ----------
2 Two
4 Foor
SQL> select * from TEST1@link22;
ID NAME
---------- ----------
1 One
3 Three
SQL> select * from TEST1, TEST1@link22;
select * from TEST1, TEST1@link22
*
ERROR at line 1:
ORA-00918: column ambiguously defined
I want to get the following result:
ID NAME
---------- ----------
2 Two
4 Foor
1 One
3 Three
Regards,