dblink
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: dblink

  1. #1
    Join Date
    Mar 2002
    Posts
    301

    dblink

    Hi,

    Can i use dblink in a cursor in a PL/SQL procedure?
    exemple: cursor cur is select * from emp@dblink

  2. #2
    Join Date
    Apr 2002
    Posts
    291
    Sure why not.see my pl/sql code here

    CREATE OR REPLACE PROCEDURE Psr_Mig4
    ( v_clntsys NUMBER,v_facility1 NUMBER,v_facility2 NUMBER,V_FACGRPNUM1 NUMBER,V_FACGRPNUM2 NUMBER)
    IS
    c1_tname VARCHAR2(30);
    c2_tname VARCHAR2(30);
    c2_cname VARCHAR2(30);
    c2_dname VARCHAR2(30);
    sql_stmt1 VARCHAR2(3000);
    sql_stmt2 VARCHAR2(3000);
    CURSOR C1 IS SELECT table_name FROM user_tables@link_DUMMY WHERE table_name NOT IN ('D_CLAIM','D_CLAIMNOTES','D_FINTX','M_FACILITY','A_ASSIGNMENTHISTORY','M_PROJECT','TSR_PROJECTDESC' );

    thanks
    PNRDBA

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width