我在sql*plus中以system登录并创建了一个存储过程,
create or replace procedure printLine( width in integer default 40,chr in char default '-',amount out integer) is
j integer:=0;
begin
FOR i in 1.. width loop
dbms_output.put(chr);
j:=j+1;
end loop;
amount:=j;
dbms_output.put_line('');
end printLine;
然后在plsql developer中也以system用户登录但是连接身份是normal,然后也创建了一个相同的存储过程。我通过查询 select text from all_source where name='PRINTLINE'的时候,出现了两个printLine存储过程,我想问一下这是为什么?另外这两个存储过程分别存放在什么地方?
create or replace procedure printLine( width in integer default 40,chr in char default '-',amount out integer) is
j integer:=0;
begin
FOR i in 1.. width loop
dbms_output.put(chr);
j:=j+1;
end loop;
amount:=j;
dbms_output.put_line('');
end printLine;
然后在plsql developer中也以system用户登录但是连接身份是normal,然后也创建了一个相同的存储过程。我通过查询 select text from all_source where name='PRINTLINE'的时候,出现了两个printLine存储过程,我想问一下这是为什么?另外这两个存储过程分别存放在什么地方?
是 sqlplus / as sysdba 登录的吗?
如果是这样,用户是sys,还有sys只能以sysdba登陆的。
所以猜测两个过程分别在sys和system下面。
看看owner分别是谁?