Troubleshooting a scheduled Procedure
Dear All,
If I schedule a procedure from my sqlplus client, I would be able to know if there were any problems the procedure has encountered while it is running ex. any runtime errors or any network issues that cause the procedure to fail...
But is there any way to know where and why a procedure got failed when I schedule it on the server? (The server is Oracle8i)
Regards
RK Veluvali
Message was edited by:
RK Veluvali
You want to run a procedure from SQLPLUS through a schedule (say crontab?) and want to know (email? logfile?) if there were any errors?
You could spool to a file before executing the procedure and check (grep?) it for errors (ORA-, TNS-, etc) for errors and email the logfile to yourself and/or write a wrapper script that calls SQLPLUS that does the same and catches any problems running SQLPLUS.
You may be better off scheduling the procedure through an anonymous PL/SQL through database control (10g) and checking errors, notifications if it fails this way. More of an out-of-the-box solution.
Similar Messages
-
How to schedule procedure in DBMS_JOBS?
Hi,
i have one stored procedure .. i want to schedule that procedure to run every 15 of the month at 2AM... plz helpOracle recommends (from 10.1 onwards?) that you use DBMS_SCHEDULER instead of DBMS_JOB. DBMS_SCHEDULER provides a much richer set of features then the old DBMS_JOB does.
user2017273 wrote:
it will run every month 15th 2AM like 15-oct-2010 2AM,15-Nov-2010 2AM,....? plz confirmFor example if you were using DBMS_SCHEDULER there is a procedure called EVALUATE_CALENDAR_STRING which you can use to undeniably confirm the schedule does what you expect. For example in your case:
SQL> DECLARE
2 start_date TIMESTAMP;
3 return_date_after TIMESTAMP;
4 next_run_date TIMESTAMP;
5 BEGIN
6 start_date := SYSTIMESTAMP;
7 return_date_after := start_date;
8 FOR i IN 1..5 LOOP
9 DBMS_SCHEDULER.EVALUATE_CALENDAR_STRING(
10 'FREQ=MONTHLY;BYMONTHDAY=15;BYHOUR=2;BYMINUTE=0;BYSECOND=0;',
11 start_date, return_date_after, next_run_date);
12 DBMS_OUTPUT.PUT_LINE('next_run_date: ' || next_run_date);
13 return_date_after := next_run_date;
14 END LOOP;
15 END;
16 /
next_run_date: 10/15/2010 02:00:00.100000 AM
next_run_date: 11/15/2010 02:00:00.100000 AM
next_run_date: 12/15/2010 02:00:00.100000 AM
next_run_date: 01/15/2011 02:00:00.100000 AM
next_run_date: 02/15/2011 02:00:00.100000 AM
PL/SQL procedure successfully completed.So in your case your DBMS_SCHEDULER job would look like this:
DBMS_SCHEDULER.create_job (
job_name => 'test_job',
job_type => 'PLSQL_BLOCK',
job_action => 'BEGIN your_procedure; END;',
start_date => SYSTIMESTAMP,
repeat_interval => 'FREQ=MONTHLY;BYMONTHDAY=15;BYHOUR=2;BYMINUTE=0;BYSECOND=0;',
end_date => NULL,
enabled => TRUE,
comments => 'Some job to run on the 15th of every month at 2am');Hope this helps!
Edited by: Centinul on Sep 30, 2010 10:54 AM
I know you haven't identified your version, but I wanted to make the comment just in case you are on more recent versions of Oracle. -
Scheduling procedure with remote db = logon denied
I´m having two DBs (db1 and db2) which are connected by a database link and a non-dba user "xyz" in both DBs.
I´m starting a procedure in db1, which catches data from a table in db2 and combines it with data from db1 - it works perfectly fine.
Now I want to automate this procedure with the scheduler, so I´m getting the privileges (GRANT CREATE JOB TO user xyz) => works perfectly fine, too.
Whats the problem?
The procedure runs in the given time interval, but I´m always getting a ORA-01017 error invalid username /password; logon denied.
If the procedure runs manuel (outside the scheduler) it works perfectly.
Do I need additional privileges or is there something wrong with the db link? (e.g. the username and pw will not be committed).
Sorry to bother you with these questions - if you need additional info, please let me know.
Regards!
forget to mention: If I´m running the scheduler with a procedure, that accesses only local table, it works...but if I try to access a remote table (which is normally outside the scheduler no problem) it doesn´t work.
Edited by: user10537960 on 08.02.2011 06:17The mystery has been solved: the DB link was created by another user, thats why the remote connect didn´t work - now I´ve created a fully qualified link and it works :)
-
Good Morning Experts ..
Please explain me all the steps to be required in WBS scheduling at user end ..
as per me in our scenario - we are doing-
1.first of all we assign the activitis to WBS then we make the relationship between them then we scheduled them from planning board.
whenever activity is completed we confirm that from Project builder ..
is this right procedure ?
if you have some document with screen shot please provide me .
RegardsHi Robert,
Please check the link below.
http://help.sap.com/saphelp_47x200/helpdata/en/4c/2276a246e611d189470000e829fbbd/frameset.htm
It will give you more idea on the said subject.
Regards
Tushar Vhora
P.S. Reward points for useful answer -
Problem scheduling procedure to run at 3 different times
I created the following statement to have a simple procedure to run at 3 different time.
repeat_interval => 'freq=DAILY; BYHOUR=12,13,14;',
The job runs the moment I schedule it but I did not see it kick off at the other times.
What did I do wrong and I check the time of the db
The complete scheduling statement.
begin
Dbms_Scheduler.create_job(
job_name => 'DEMO_HALL_TEST_SCHEDULE',
job_type => 'STORED_PROCEDURE',
job_action => 'HR.a_simple_subprogram',
start_date => SYSTIMESTAMP,
repeat_interval => 'freq=DAILY; BYHOUR=12,13,14;',
enabled => TRUE,
comments => 'Demo for job schedule.');
END;
/PROCEDURE
create or replace
procedure a_simple_subprogram
is
begin
null;
end;Hi,
you didn't set the minutes. So they are derived from the start date. Probably the job will start at some time between 12 and 13
SQL> select job_name, start_date, next_run_date, repeat_interval from user_scheduler_jobs;
JOB_NAME START_DATE NEXT_RUN_DATE REPEAT_INTERVAL
DEMO_HALL_TEST_SCHEDULE 03.01.13 13:09:06,873025 +01:00 03.01.13 14:09:06,600000 +01:00 freq=DAILY; BYHOUR=12,13,14;
DEMO_HALL_TEST_SCHEDULE_2 03.01.13 13:09:09,384254 +01:00 03.01.13 14:00:09,400000 +01:00 freq=DAILY; BYHOUR=12,13,14; byminute=0;Excerpt from Oracle® Database PL/SQL Packages and Types Reference, DBMS_SCHEDULER
>
Start Dates and Repeat Intervals The Scheduler retrieves the date and time from the job or schedule start date and incorporates them as defaults into the repeat_interval. For example, if the specified frequency is yearly and there is no BYMONTH or BYMONTHDAY clause in the repeat interval, then the month and day that the job runs on are retrieved from the start date. Similarly, if frequency is monthly but there is no BYMONTHDAY clause in the repeat interval, then the day of the month that the job runs on is retrieved from the start date. If present, BYHOUR, BYMINUTE, and BYSECOND defaults are also retrieved from the start date, and used if those clauses are not specified. -
How do you troubleshoot a scheduled snapshot
Hello, I have a ton of reports that have a snapshot taken on the 2nd day of the month. Has worked fine until this past weekend when the snapshots did not happen. There is nothing I see in SSRS that explains it. The schedule is still there. Is there a way
to find the root cause of why the snapshots didn't fire? The server and database were functioning at the time.Hi cmunkres,
As JJordheim posted earlier, please check if the schedule is work well in the report server. In SSRS, we can open the Schedule table in the ReportServer database to check the schedule. And the SnapshotData table is record the data about the snapshot.
Reference: Report Server Database
Alternatively, we can check the log file to fine the root case. In SSRS 2012, the log file default location is:
C:\Program Files\Microsoft SQL Server\MSRS11.MSSQLSERVER\Reporting Services\LogFiles
Could you please post the error log? It is benefit for us to do further analysis.
Hope this helps.
Regards,
Alisa Tang
Alisa Tang
TechNet Community Support -
How to troubleshoot long running procedure
Hi expert,
I have a store procedure running for a few days. I have used same procedure well in another oracle system. I checked system, this procedure is hung up when inserting data into a table inside. could you please tell me how to find out why this procedure keep running forever?
Many Thanks,>
I have a store procedure running for a few days. I have used same procedure well in another oracle system. I checked system, this procedure is hung up when inserting data into a table inside. could you please tell me how to find out why this procedure keep running forever?
>
And is that the SAME procedure that, in this thread, you claimed you recompiled successfully even though it was still running and SB92075 told you that you couldn't?
why can compiling procedure while inserting table is still in progress.
Post the relevant information from V$SESSION_LONGOPS
>
V$SESSION_LONGOPS
V$SESSION_LONGOPS displays the status of various operations that run for longer than 6 seconds (in absolute time). These operations currently include many backup and recovery functions, statistics gathering, and query execution, and more operations are added for every Oracle release.
>
http://docs.oracle.com/cd/B28359_01/server.111/b28320/dynviews_3021.htm -
Troubleshooting data load procedure
Hi folks,
I am trying to load data into a model built in cube builder. My data load procedure, which is for a single variable, is failing. Here are details:
Dim structure as follows:
DIM CHANNEL:
SALES_CHANNEL (Output)
SUB_CHANNEL (Input)
DIM BUSINESS_UNIT:
BUS_UNIT (Output)
BDM (Input)
Data is in an MS Access table called FACT_NETSALES, with columns SALES_CHANNEL, SUB_CHANNEL, BUS_UNIT, BDM, and time ranging from Oct 2009 to November 2010.
Data sample:
SALES_CHANNEL SUB_CHANNEL BUS_UNIT BDM Oct-09 Nov-09 Dec-09
CH1 CH1SUB1 BUS1 BUS1BDM1 999999.99 999999.99 999999.99
CH2 CH2SUB1 BUS1 BUS1BDM1 999999.99 999999.99 999999.99
CH2 CH2SUB2 BUS1 BUS1BDM1 999999.99 999999.99 999999.99
CH2 CH2SUB3 BUS1 BUS1BDM1 999999.99 999999.99 999999.99
CH3 CH3SUB1 BUS1 BUS1BDM1 999999.99 999999.99 999999.99
CH4 CH4SUB1 BUS1 BUS1BDM1 999999.99 999999.99 999999.99
CH5 CH5SUB1 BUS1 BUS1BDM1 999999.99 999999.99 999999.99
CH5 CH5SUB2 BUS1 BUS1BDM1 999999.99 999999.99 999999.99
CH5 CH5SUB3 BUS1 BUS1BDM1 999999.99 999999.99 999999.99
CH6 CH6SUB1 BUS2 BUS2BDM1 999999.99 999999.99 999999.99
CH6 CH6SUB1 BUS3 BUS3BDM1 999999.99 999999.99 999999.99
CH6 CH6SUB1 BUS3 BUS3BDM2 999999.99 999999.99 999999.99
CH6 CH6SUB1 BUS4 BUS4BDM1 999999.99 999999.99 999999.99
CH6 CH6SUB1 BUS5 BUS5BDM1 999999.99 999999.99 999999.99
CH6 CH6SUB1 BUS6 BUS6BDM1 999999.99 999999.99 999999.99
CH6 CH6SUB1 BUS7 BUS7BDM1 999999.99 999999.99 999999.99
Here's the procedure:
CLEAR STATUS
USE INITIAL RETAIN
SET Control DB_Name CLIENTTEST
USE &DB_Name UPDATE
CHE UPD
SET Control App_Periodicity MONTHLY
SET Control App_Period October 2009 - November 2010
SET DATE MDY
SET &App_Periodicity
SET PERIOD &App_Period
SET Control App_FACT_Table FACT_NETSALES
SET Control DW_Link LNK_CLIENT
SELECT VAR KPI1_ACT
SELECT CHANNEL
SELECT BUSINESS_UNIT
ACROSS TIME DOWN CHANNEL, BUSINESS_UNIT, VAR
ACCESS LSLINK
CONNECT &DW_Link
BEGIN
SELECT
SALES_CHANNEL,
SUB_CHANNEL,
BUS_UNIT,
BDM,
DATE
FROM &App_FACT_Table
END
Peek only 10
LSS CREATE CHANNEL = SALES_CHANNEL
READ
END
The error I get is:
[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.
SQLSTATE: 07001
SQL System code: -3010
What's wrong with the procedure?
Thanks in advance for your help!I figured it out. I was selecting two levels of a single dimension in the SQL statement.
-
Hello guys,
I´m having some trouble by running a job:
BEGIN
dbms_scheduler.create_job (
job_name=>'test_minuto', job_type => 'PLSQL_BLOCK', job_action => 'exec tempo2', start_date=> SYSTIMESTAMP, repeat_interval=> 'freq=minutely', end_date=>null, comments => 'testando 123');
END;
and the procedure tempo2 :
create procedure tempo2 as
begin
insert into armazena values ((select to_char(sysdate, 'fmDD/MM/YYYY - HH24:MI:SS ' ) horario from dual), system.seq_test.nextval);
commit;
end;
I checked the table USER_SCHEDULER_JOB_RUN_DETAILS and noticed that the job is running but its status shows 'FAILED' and its ADDITIONAL_INFO shows:
ORA-06550: line ORA-06550: line 1, column 475:
PLS-00103: Encountered the symbol "TEMPO2" when expecting one of the following:
:= . ( @ % ;
Does anyone knows what i am doing wrong ?
Thanks
Edited by: BrunoSales on 12/04/2012 09:23BrunoSales wrote:
Hello guys,
I´m having some trouble by running a job:
BEGIN
dbms_scheduler.create_job (
job_name=>'test_minuto', job_type => 'PLSQL_BLOCK', job_action => 'exec tempo2', start_date=> SYSTIMESTAMP, repeat_interval=> 'freq=minutely', end_date=>null, comments => 'testando 123');
END;
and the procedure tempo2 :
create procedure tempo2 as
begin
insert into armazena values ((select to_char(sysdate, 'fmDD/MM/YYYY - HH24:MI:SS ' ) horario from dual), system.seq_test.nextval);
commit;
end;
Not part of your immediate problem, but why are you converting sysdate to a character string and inserting that into your table? If you want that first column of table ARMAZENA to have a date, then it should be declared a DATE and you just insert sysdate:
insert into armazena values (sysdate horario, system.seq_test.nextval);And it is pointless to put a column alias on that, so we can reduce it even further
insert into armazena values (sysdate, system.seq_test.nextval);And you should NEVER put user defined objects into the SYSTEM schema, so should be
insert into armazena values (sysdate, appschema.seq_test.nextval);>
I checked the table USER_SCHEDULER_JOB_RUN_DETAILS and noticed that the job is running but its status shows 'FAILED' and its ADDITIONAL_INFO shows:
ORA-06550: line ORA-06550: line 1, column 475:
PLS-00103: Encountered the symbol "TEMPO2" when expecting one of the following:
:= . ( @ % ;
Does anyone knows what i am doing wrong ?
Thanks
Edited by: BrunoSales on 12/04/2012 09:23 -
Script to schedule a procedure
hii,
i want the script to execute a procedure on daily basis at a particular time(at 10pm daily).my data base version is 9.2.0.6.0.
How i can check wheather my scheduled procedure is executed or notHi,
In addition, pay attention about possible job execution failures.
Scheduled jobs
SELECT job, next_date, next_sec, failures, broken FROM dba_jobs;
JOB NEXT_DATE NEXT_SEC FAILURES B
14144 24-OCT-02 16:35:35 0 N
41762 01-JAN-00 00:00:00 16 Y
2 rows selected.
Jobs currently in execution
SELECT sid, r.job, log_user, r.this_date, r.this_sec
FROM dba_jobs_running r, dba_jobs j
WHERE r.job = j.job;
SID JOB LOG_USER THIS_DATE THIS_SEC
25 341 SCOTT 24/04/03 16:45:12
1 rows selected.Cheers -
How to schedule macros to open a report , refresh and update database?
Hi,
We have the below set of steps that work on a deski environment. It works fine on XI R3.1 Fix pack 1.5, but I am unable to schedule and get the macros to run although i've included the entire macros code in - Private Sub DocumentAfterRefresh()
Refresh of report
Step 1 : Report is Refreshed. Refreshed data contains 10 Report Names to be opened by the Macros and the prompt values that these reports need to be refreshed with.
Macros Functionality:
Step 1 : Opens 1st report of the 10 reports from the repository in deski thick client, updates the database by setting a flag on the processing to Y or N for the report being processed.
Step 2 : Refreshes the report with the prompt values obtained from the first refresh in the report, saves the refreshed data to a CSV or PDF at a location.
Step 3 : Updates the database if the report has been genrated or not and then deletes the local copy of the output csv and pdf.
The above steps repeat over and over again until all 10 reports open up, get refreshed and update the database.
Now all of this works on Deski thick client/refresh and macros.
However, when i schedule it, the macros doesnot seem to be running.
Is the above scenario even possible to replicate via a schedule process..?
Note : The reports need to be retained in Deski itself.
PLz help...!Scheduling Background Jobs
Use
You can define and schedule background jobs in two ways from the Job Overview:
Directly from Transaction SM36. This is best for users already familiar with background job scheduling.
The Job Scheduling Wizard. This is best for users unfamiliar with SAP background job scheduling. To use the Job Wizard, start from Transaction SM36, and either select Goto ® Wizard version or simply use the Job Wizard button.
Procedure
Call Transaction SM36 or choose CCMS ® Jobs ® Definition .
Assign a job name. Decide on a name for the job you are defining and enter it in the Job Name field.
Set the jobs priority, or "Job Class":
High priority: Class A
Medium priority: Class B
Low priority: Class C
In the Target server field, indicate whether to use system load balancing.
For the system to use system load balancing to automatically select the most efficient application server to use at the moment, leave this field empty.
To use a particular application server to run the job, enter a specific target server.
If spool requests generated by this job are to be sent to someone as email, specify the email address. Choose the Spool list recipient button.
Define when the job is to start by choosing Start Condition and completing the appropriate selections. If the job is to repeat, or be periodic, check the box at the bottom of this screen.
Define the jobs steps by choosing Step, then specify the ABAP program, external command, or external program to be used for each step.
Save the fully defined job to submit it to the background processing system.
When you need to modify, reschedule, or otherwise manipulate a job after you've scheduled it the first time, you'll manage jobs from the Job Overview.
Note: Release the job so that it can run. No job, even those scheduled for immediate processing, can run without first being released.
For a simple job scheduling procedure, see the R/3 Getting Started Guide. -
DBMS scheduler jobs running twice
Hi,
I have 4 DBMS scheduler jobs , which checks for a specific job status in DB and sends an email , when i started the schedule for the first week the jobs executed fine from next week I am getting two emails from each job , when i check the logs USER_SCHEDULER_JOB_RUN_DETAILS I see only one run , which seems weird to me so i disabled one job and left the three jobs in schedule , next time i got two emails from 3 jobs and one from disabled job . After checking logs i see that there is no entry of the disabled job execution . I am not sure where is the problem i can't find any log from where the disabled job executing. Please help me
Job schedule is to run every Saturday
Interval setup :
start_date => trunc(SYSDATE)+ 8.5/24,
repeat_interval => 'TRUNC(LEAST(NEXT_DAY(SYSDATE,''SATURDAY'') )) + 8.5/24'
SureshHi,
I tried to schedule the same jobs using DBMS_JOB but i still get the same problem , I created the procedure with all code in and scheduled it using dbms job , first day it run once second day it run twice ( sending two emails) Inow i am not sure if issue is with my code or scheduler
Procedure
Declare
v_count number;
v_Recipient VARCHAR2(400) := '[email protected]';
v_Subject VARCHAR2(80) := 'TEST_Email';
v_Mail_Host VARCHAR2(30) := 'localhost';
v_Mail_Conn utl_smtp.Connection;
crlf VARCHAR2(2) := chr(13)||chr(10);
BEGIN
select count(*) into v_count from TEC_CODERETURN@RPRD where interface like 'FOR002B' and trunc(rundate) =trunc(sysdate);
if v_count = 0
then
v_Mail_Conn := utl_smtp.Open_Connection(v_Mail_Host, 25);
utl_smtp.Rcpt(v_Mail_Conn, '[email protected]');
UTL_SMTP.OPEN_DATA(v_Mail_Conn);
utl_smtp.WRITE_RAW_DATA(v_Mail_Conn, UTL_RAW.CAST_TO_RAW(
'Date: ' || to_char(sysdate, 'Dy, DD Mon YYYY hh24:mi:ss') || UTL_TCP.CRLF ||
'From: ' || '[email protected]' || UTL_TCP.CRLF ||
'Subject: '|| v_Subject || UTL_TCP.CRLF ||
'To: ' || v_Recipient || UTL_TCP.CRLF ||
'This is a test Alert'|| UTL_TCP.CRLF
UTL_SMTP.CLOSE_DATA(v_mail_conn);
utl_smtp.Quit(v_mail_conn);
end if;
EXCEPTION
WHEN utl_smtp.Transient_Error OR utl_smtp.Permanent_Error then
raise_application_error(-20000, 'Unable to send mail: '||sqlerrm);
END;
DBMS job creation
DECLARE
jobno NUMBER;
BEGIN
DBMS_JOB.submit
(job => jobno,
what => 'TEST_ALERT;',
next_date => trunc(sysdate)+0.1/24,
interval => 'SYSDATE + 1',
no_parse => TRUE );
DBMS_OUTPUT.put_line ('Created Job - the job number is:' || TO_CHAR (jobno));
COMMIT;
END;
Suresh -
Issues with Backup-GPO Scheduled Task as a non-admin account
I'm having an issue trying to get a daily backup of domain GPO's from a non-administrative account. I'm using Powershell 2.0, the Backup-GPO cmdlet runs fine as a standard user, but when I run the same cmdlet with the same user, but with a scheduled task,
the backup does not produce valid output. The command I run is:
[batch file called by scheduled task]
powershell.exe d:\loj\psps.ps1
[psps.ps1]
import-module grouppolicy
backup-gpo -all -path d:\loj
The specific problem is, all other files created by the backup are created successfully except the 'gpreport.xml' file found directly under the folder identified by the backup ID. All of the subdirectories under DomainSysvol\GPO contain xml files with the
appropriate data, and the Backup.xml and bkupInfo.xml files are also created normally. The manifest.xml file is also created normally in the root directory.
The gpreport.xml file however is malformed. It contains only two bytes of data, FF FE.
The reason this is a problem is that the xml in the gpreport file can be used to restore whether the GPO is 'enforced' and also contains link data. Using this when restoring the GPO's makes the process a lot less painful.
Running the batch file while logged in interactively as the user removes the problem, without making them an administrator.
I've been using a test domain to investigate this, I tried adding the user in question to every local group except administrators, gave it full control to the destination folder for backups, the powershell executable, batch and ps1 files. Resultant set of
policy access has been granted (rsop.msc run-as the user tested fine). The scheduled task stores credentials (needs to run when the user is not already logged in) and runs with the highest privileges.
The only possibly related error I could find in the logs was this:
This error goes away if enough group memberships are added to the account or alternatively if this string is added to the security descriptor for the LanManServer service: (A;;GA;;;S-1-5-21-1191697313-1384311512-914143962-35706), which just adds
generic all to this account by referencing the SID. However, despite the fact that the error is no longer raised, the issue with the gpreport.xml file remains.
Does anyone have any ideas on why this is happening? At this point my best guess is something UAC related, since the gpreport.xml file is created like normal if the user is made an administrator on the local machine (I'd rather not do that in production).Hi Fergubru,
Thanks for your posting.
To troubleshoot Task scheduled that a task ran, but the program that should have been executed did not run correctly.
As AZ said above, some programs require elevated privileges to run correctly. If a task is running a program that requires elevated privileges, ensure that the task runs with the highest privileges. You can set a task to run with the highest privileges
by changing the task's security options on the General tab of the Task Properties dialog box.
If a task program does not run correctly, check the history of the task for errors. For more information, see
View Task Properties and History.
For the Event ID 4656, this is an Audit log, This event will be Audit Success or Audit Failure depending on whether the user account under which the account is running has the requested permissions or not.
For more detailed information about Event ID 4656, please refer to this article:
http://www.ultimatewindowssecurity.com/securitylog/encyclopedia/event.aspx?eventid=4656
I hope this helps.
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
Discoverer 3.1.25: getting error ORA-06550 when scheduling report
Hello,
we are still using the Discoverer version 3 (release 3.1.25). I know that this version is out of support, but that doesn't harm use from using it...
The Discoverer has been working fine for the last couple years. At the beginning of every month the same already defined reports are getting generated. But with the beginning of the year 2010 we are getting the error:
ORA-06550: line 1, column 93:
PLS-00201: identifier 'EUL$BATCH_PACKAGE0100112082923.RUN' must be declared
ORA-06550: line 1, column 93:
PL/SQL: Statement ignored
ORA-06512: at "SYS.DBMS_JOB" line 79
The numbers "0100112082923" after the identifier "EUL$BATCH_PACKAGE" specify the date and time:
082923: 08 hour, 29 minutes, 23 seconds
0100112: 010 year, 01 month, 12 day
The reason of that error is that the mentioned Package/Packagebody EUL$BATCH_PACKAGE*0*100112082923 doesn't exist in the database. But as a matter of fact the Package/Packagebody 'EUL$BATCH_PACKAGE100112082923 does exist. The Discoverer creates the Package/Packagebody without the "0" after the identifier "EUL$BATCH_PACKAGE" in the database, but wants to use the Package/Packagebody with the "0" after the identifier "EUL$BATCH_PACKAGE". Seems like a bug to me - does anybody have the same problem?
Until the year 2009 the year was specified with just two digits (09) - now the year seems to get specified with 3 digits (010) - but in the database just two digits are used. Is there any property table or button where this gets defined?
Any help will be appreciated!Seems like if I have found the bug by myself...
In the procedure SubmitJob(...) of the package EUL$BATCH_REPOSITORY the name of the scheduled procedure gets generated with the hardcoded string
"EUL$BATCH_PACKAGE0". The zero after "PACKAGE" is only correct when the year ends with one digit (e.g. 2001, 2002, ..., 2009). When shortening the
string to "EUL$BATCH_PACKAGE" everything works fine again...
Rgds -
How to schedule another program by giving report name and variant name?
I want to create a program for Scheduling another program using function 'FASU_V_CREATE_VARIANT_RFC'
(FASU_V_CREATE_VARIANT_RFC : This function used for creating the variant ) by giving
1) Report name
2) varaint name
Could anybody please help me.??Scheduling Background Jobs
Use
You can define and schedule background jobs in two ways from the Job Overview:
Directly from Transaction SM36. This is best for users already familiar with background job scheduling.
The Job Scheduling Wizard. This is best for users unfamiliar with SAP background job scheduling. To use the Job Wizard, start from Transaction SM36, and either select Goto ® Wizard version or simply use the Job Wizard button.
Procedure
Call Transaction SM36 or choose CCMS ® Jobs ® Definition .
Assign a job name. Decide on a name for the job you are defining and enter it in the Job Name field.
Set the jobs priority, or "Job Class":
High priority: Class A
Medium priority: Class B
Low priority: Class C
In the Target server field, indicate whether to use system load balancing.
For the system to use system load balancing to automatically select the most efficient application server to use at the moment, leave this field empty.
To use a particular application server to run the job, enter a specific target server.
If spool requests generated by this job are to be sent to someone as email, specify the email address. Choose the Spool list recipient button.
Define when the job is to start by choosing Start Condition and completing the appropriate selections. If the job is to repeat, or be periodic, check the box at the bottom of this screen.
Define the jobs steps by choosing Step, then specify the ABAP program, external command, or external program to be used for each step.
Save the fully defined job to submit it to the background processing system.
When you need to modify, reschedule, or otherwise manipulate a job after you've scheduled it the first time, you'll manage jobs from the Job Overview.
Note: Release the job so that it can run. No job, even those scheduled for immediate processing, can run without first being released.
For a simple job scheduling procedure, see the R/3 Getting Started Guide.
Maybe you are looking for
-
bottom left speaker isnt working... i tested it out and im not sure if its suppose to be like this or not. when i play my music i tried covering the left speaker on the bottom and no sound difference occurred, then when i covered the bottom right one
-
I had CS4 Production Premium for years on my Windows Vista machine and never had any problems with it. A few weeks ago I got a new Windows 8.1 Pro desktop computer and I was able to install CS4 on the new computer with no problem, and I opened severa
-
External price not being read in for Item in GN_INVOICE_CREATE and RVAFSS00
Hi, We are trying to create invoices using the RVAFSS00 program which calls the function GN_INVOICE_CREATE. The billing document is being created. However, the item price does not bring in the price that we have supplied in the XKOMFKKO-KBETR (Cond
-
Stored Proc Execution through OS command using shell script
Hi All, I have a requirement of executing one stored procedure before putting data in Table through JDBC adaptor and two stored procedures after that. I was thinking to write a shell script and execute it before and after message processing in adapto
-
Mail will not search in the "on my mac" folder
Hi everyone, I've been trying to come up with a useful solution to essentially archive messages from an email account that is no longer active. I would like to keep these messages searchable in Mail though. I thought if I put them in the "On My Mac"