所涉及业务为核心业务,无法提供环境的相关截图,这里使用scott用户进行问题的重现。
create or replace procedure scott.insert_emp(no number,name varchar2,dep number)
is
begin
insert into scott.emp(empno,ename,deptno) values(no,name,dep);
commit;
end;
/
create or replace procedure scott.delete_emp(no number)
is
begin
delete scott.emp where empno=no;
commit;
end;
/
SQL> exec scott.insert_emp(7001,'Mr.W',10);
PL/SQL procedure successfully completed.
SQL> exec scott.insert_emp(7002,'Mr.W',20);
PL/SQL procedure successfully completed.
SQL> exec scott.insert_emp(7003,'Mr.W',30);
PL/SQL procedure successfully completed.
SQL> exec scott.delete_emp(7001);
PL/SQL procedure successfully completed.
SQL> exec scott.delete_emp(7002);
PL/SQL procedure successfully completed.
SQL> exec scott.delete_emp(7003);
PL/SQL procedure successfully completed.
SQL> exec scott.insert_emp(7001,'Mr.W',10);
BEGIN scott.insert_emp(7001,'Mr.W',10); END
*
ERROR at line 1:
ORA-06550: line 1, column 7:
PLS-00905: object SCOTT.SCOTT is invalid
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
SQL> exec scott.insert_emp(7002,'Mr.W',20);
BEGIN scott.insert_emp(7002,'Mr.W',20); END;
*
ERROR at line 1:
ORA-06550: line 1, column 7:
PLS-00905: object SCOTT.SCOTT is invalid
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
SQL> exec scott.insert_emp(7003,'Mr.W',30);
BEGIN scott.insert_emp(7003,'Mr.W',30); END;
*
ERROR at line 1:
ORA-06550: line 1, column 7:
PLS-00905: object SCOTT.SCOTT is invalid
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
SQL> exec scott.insert_emp(7001,'Mr.W',10);
BEGIN scott.insert_emp(7001,'Mr.W',10); END;
*
ERROR at line 1:
ORA-06550: line 1, column 7:
PLS-00905: object SCOTT.SCOTT is invalid
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
OWNER OBJECT_NAME OBJECT_TYPE STATUS
--------------- --------------- --------------- -------
SCOTT SCOTT PROCEDURE INVALID

本文作者:王亚奇(上海新炬中北团队)
本文来源:“IT那活儿”公众号

文章转载自IT那活儿,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




