0

我在一个过程中创建了一个 db 链接,但它抛出一个错误 PLS - 00103 在期待以下之一时遇到符号“(”。你能帮忙吗?

 create or replace procedure procedure1
 (fname IN emp.firstname%TYPE,
 lname IN emp.lastname%TYPE, 
 number IN emp.deptno.value%TYPE,
 date IN emp.joineddate%TYPE,
 ) IS

begin

execute immediate('CREATE DATABASE LINK link1 CONNECT TO system IDENTIFIED BY "tiger" USING
   '(DESCRIPTION=
    (ADDRESS=
    (PROTOCOL=TCP)
    (HOST=171.54.65.11)
    (PORT=1521))
    (CONNECT_DATA=(SID=ADD)))'');
    insert into system.test@ADD values(fname, lname, number, date); 
    end;
4

0 回答 0