Hello,
Here is my problem:
I have a function sf_test1:
CREATE OR REPLACE FUNCTION scott.sf_test1(
id number)
return number
as
cnt number(15, 2) := 0;
begin
select count(*) into cnt from emp_exp
where emp_id = id;
return cnt;
end;
the status of this function is valid. This function is referenced by 5 other functions. and all of them are valid.
User_a has execute privilege on sf_test1
When I drop user user_a, I got this problem:
drop user user_a
*
ERROR at line 1:
ORA-04021: timeout occurred while waiting to lock object
scott.SF_TEST1
When I drop function scott.SF_TEST1, I got this error:
ERROR at line 1:
ORA-04021: timeout occurred while waiting to lock object
scott.SF_test1
How can I drop this object?
Thank you.
Here is my problem:
I have a function sf_test1:
CREATE OR REPLACE FUNCTION scott.sf_test1(
id number)
return number
as
cnt number(15, 2) := 0;
begin
select count(*) into cnt from emp_exp
where emp_id = id;
return cnt;
end;
the status of this function is valid. This function is referenced by 5 other functions. and all of them are valid.
User_a has execute privilege on sf_test1
When I drop user user_a, I got this problem:
drop user user_a
*
ERROR at line 1:
ORA-04021: timeout occurred while waiting to lock object
scott.SF_TEST1
When I drop function scott.SF_TEST1, I got this error:
ERROR at line 1:
ORA-04021: timeout occurred while waiting to lock object
scott.SF_test1
How can I drop this object?
Thank you.