se connecter à une autre base dans un script plsql
Bonjour les amis ,
est ce que je peux me connecter à une base de données distante dans le même script ?
comme par exemple :
Code:
1 2 3 4 5 6 7 8 9 10
| select count(*) into i from sectiontype where sectiontypeid_pk not in (select sectiontypeid_pk from sectiontype@BDPROD );
if i > 0 then
Execute Immediate 'connect BDPROD/BDPROD@BDDPREP ' ; ??????
Execute Immediate ' ALTER TRIGGER BDPROD.SECTIONTYPE_INSERT DISABLE ';
Execute Immediate 'disc ';
insert into SECTIONTYPE@BDPROD
select * from sectiontype where sectiontypeid_pk
not in (select sectiontypeid_pk from sectiontype@BDPROD );
End IF ; |