Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Procedure XXX IS
TYPE CUST_TYPE IS REF CURSOR;
CUST_REC OUTFITTER_TYPE;
L_DBLINK VARCHAR2(100):=<NAME OF DBLINK>;
V_ID NUMBER(10):=NULL;
BEGIN
OPEN CUST_REC FOR 'SELECT CUST_ID FROM CUST_TABLE@'||L_DBLINK;
LOOP
Fetch CUST_REC into V_ID;
EXIT WHEN CUST_REC%NOTFOUND;
END LOOP;
EXCEPTION
.............
END;
CREATE or REPLACE Procedure XXX IS
TYPE CUST_TYPE IS REF CURSOR;
CUST_REC CUST_TYPE;
L_DBLINK VARCHAR2(100):='dbn005';
V_ID NUMBER(10):=NULL;
BEGIN
OPEN CUST_REC FOR 'SELECT CUST_ID FROM <SCHEMANAME>.CUST_TABLE@'||L_DBLINK;
LOOP
Fetch CUST_REC into V_ID;
EXIT WHEN CUST_REC%NOTFOUND;
END LOOP;
EXCEPTION
WHEN OTHERS THEN
dbms_output.put_line(SQLERRM);
END;