首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > oracle >

oracle用户不同的连接身份创建存储过程,该怎么处理

2013-03-26 
oracle用户不同的连接身份创建存储过程我在sql*plus中以system登录并创建了一个存储过程,create or replac

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.myexception.cn/oracle-develop/177537.html

热点排行