Database Link
Database Link
--===================================
--==========================
Instance:- 1
--==========================
create table XX_EMP_TEST_TL AS
select * from scott.emp
where deptno = 30
select * from XX_EMP_TEST_TL
--==========================
Instance:- 2
--==========================
select * from XX_EMP_TEST_TL
select * from XX_EMP_TEST_TL@TESTDB
required instance 1 :-
1. user :- APPS
2. Password:- ######
3. TNS details:- ( )
create database link (NAME_OF_DB_LINK:- testdb) connect to (USER_NAME:- apps) identified by (PASSWORD:- welcome123) using 'TNS_Details'
create database link TESTDB connect to apps identified by welcome123
using '(DESCRIPTION= (ADDRESS = (PROTOCOL=TCP) (HOST=192.168.101.100) (PORT=1576) ) (CONNECT_DATA= (SID=DEV) ) )'
--===================================
--==========================
Instance:- 1
--==========================
create table XX_EMP_TEST_TL AS
select * from scott.emp
where deptno = 30
select * from XX_EMP_TEST_TL
--==========================
Instance:- 2
--==========================
select * from XX_EMP_TEST_TL
select * from XX_EMP_TEST_TL@TESTDB
required instance 1 :-
1. user :- APPS
2. Password:- ######
3. TNS details:- ( )
create database link (NAME_OF_DB_LINK:- testdb) connect to (USER_NAME:- apps) identified by (PASSWORD:- welcome123) using 'TNS_Details'
create database link TESTDB connect to apps identified by welcome123
using '(DESCRIPTION= (ADDRESS = (PROTOCOL=TCP) (HOST=192.168.101.100) (PORT=1576) ) (CONNECT_DATA= (SID=DEV) ) )'
Comments
Post a Comment