| user schema can't create or alter job (merged 3) [message #643669] |
Thu, 15 October 2015 03:47  |
 |
agung_prw
Messages: 9 Registered: October 2015 Location: indonesia
|
Junior Member |
|
|
Dear oracle expert,
Please help me,
I have problem on our oracle server which 1 of user schema can't create or alter of Job.
with message as below
ORA-06550: line 4, column 16:
PLS-00225: subprogram or cursor 'SYS' reference is out of scope
ORA-06550: line 4, column 3:
PL/SQL: Statement ignored
the role and privilege is same with other user schema , but other users are not problem.
and i already add the privilege and role but no effect( as DBA )
any expert have experience about this case kindly to share to me.
Thank you
Best regards
agung
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Re: user schema can't create or alter job (merged 3) [message #643804 is a reply to message #643803] |
Mon, 19 October 2015 02:10   |
 |
agung_prw
Messages: 9 Registered: October 2015 Location: indonesia
|
Junior Member |
|
|
for create job , below the detail mesage
SQL> DECLARE
2 X NUMBER;
3 BEGIN
4 DBMS_JOB.SUBMIT
5 (
6 job => X
7 ,what => 'DECLARE
8 I_DATE VARCHAR2(8);
9
10 BEGIN
11 SELECT TO_CHAR(SYSDATE,''YYYYMMDD'') INTO I_DATE FROM DUAL;
12 EXEC PROC_DELTA(I_DATE);
13 END ;
14
15 '
16 ,next_date => to_date('10-19-2015 08:39:33','mm/dd/yyyy hh24:mi:ss')
17 ,interval => 'SYSDATE + 23/24'
18 ,no_parse => FALSE
19 );
20 END;
21 /
DECLARE
*
ERROR at line 1:
ORA-06550: line 6, column 9:
PLS-00103: Encountered the symbol "PROC_DELTA" when expecting one of the
following:
:= . ( @ % ;
The symbol ":=" was substituted for "PROC_DELTA" to continue.
ORA-06512: at "SYS.DBMS_JOB", line 82
ORA-06512: at "SYS.DBMS_JOB", line 140
ORA-06512: at line 4
|
|
|
|
|
|
| Re: user schema can't create or alter job (merged 3) [message #643809 is a reply to message #643806] |
Mon, 19 October 2015 02:57   |
 |
agung_prw
Messages: 9 Registered: October 2015 Location: indonesia
|
Junior Member |
|
|
SQL>
SQL> DECLARE
2 X NUMBER;
3 BEGIN
4 DBMS_JOB.SUBMIT
5 (
6 job => X
7 ,what => 'DECLARE
8 I_DATE VARCHAR2(8);
9
10 BEGIN
11 SELECT TO_CHAR(SYSDATE,''YYYYMMDD'') INTO I_DATE FROM DUAL;
12 PROC_DELTA(I_DATE);
13 END ;
14
15 '
16 ,next_date => to_date('10-19-2015 08:39:33','mm/dd/yyyy hh24:mi:ss')
17 ,interval => 'SYSDATE + 23/24'
18 ,no_parse => FALSE
19 );
20 END;
21 /
DECLARE
*
ERROR at line 1:
ORA-06550: line 6, column 4:
PLS-00201: identifier 'PROC_DELTA' must be declared
ORA-06550: line 6, column 4:
PL/SQL: Statement ignored
ORA-06512: at "SYS.DBMS_JOB", line 82
ORA-06512: at "SYS.DBMS_JOB", line 140
ORA-06512: at line 4
SQL>
|
|
|
|
|
|
| Re: user schema can't create or alter job (merged 3) [message #643814 is a reply to message #643759] |
Mon, 19 October 2015 03:19  |
gazzag
Messages: 1119 Registered: November 2010 Location: Bedwas, UK
|
Senior Member |
|
|
Quote:SQL> SELECT owner, object_type
2 FROM dba_objects
3 WHERE object_name='SYS';
FROM dba_objects
*
ERROR at line 2:
ORA-00942: table or view does not exist
The user that you're logging in as does not have the required privilege on the DBA_OBJECTS view.
|
|
|
|