日期:2014-05-17  浏览次数:20708 次

oracle用户不同的连接身份创建存储过程
我在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存储过程,我想问一下这是为什么?另外这两个存储过程分别存放在什么地方?

------解决方案--------------------
select owner, text from all_source where name='PRINTLINE'
看看owner分别是谁?
我的异常网推荐解决方案:oracle存储过程,http://www.aiyiweb.com/oracle-develop/177537.html