DROP PUBLIC DATABASE LINK linkorcl18
create database link linkorcl18
connect to mguser identified by mgpassword
using '(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.150.18)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = orcl)
)
)';
select * from dept@linkorcl18