How to Reschedule the DBMS jobs after Cloning
Hi ,
Before Cloning , i took the backup of dbms jobs using the command
SELECT job, what, next_date, next_sec FROM dba_jobs;
After the clone is done , how should I resubmit the job?. Do we need to submit the job using the plsql block with commit in like below
VARIABLE jobno NUMBER
BEGIN
DBMS_JOB.SUBMIT(:jobno,
what=>'statspack_alert.sql;',
next_date=>sysdate,
interval=>'sysdate+1' );
COMMIT;
END;
or
Can I submit the jobs directly like below
Execute dbms_job.submit(
what=>'statspack_alert.sql;',
next_date=>sysdate,
interval=>'sysdate+1');
In the plsql block , can i hard code the job number?.
If we are using the bind variable, when the job is sumbitted , does it get assigned with job number?
Do we need to submit the job as the owner of that job or sysdba can submit the job on behalf of the owner?
Please address my questions
Thanks
Naveen
Can I submit the jobs directly like below
Execute dbms_job.submit(
what=>'statspack_alert.sql;',
next_date=>sysdate,
interval=>'sysdate+1');What happens when you actually do it?
Why ask us rather than do it yourself?
PROCEDURE SUBMIT
Argument Name Type In/Out Default?
JOB BINARY_INTEGER OUT
WHAT VARCHAR2 IN
NEXT_DATE DATE IN DEFAULT
INTERVAL VARCHAR2 IN DEFAULT
NO_PARSE BOOLEAN IN DEFAULT
INSTANCE BINARY_INTEGER IN DEFAULT
FORCE BOOLEAN IN DEFAULT
In the plsql block , can i hard code the job number?.NO
If we are using the bind variable, when the job is sumbitted , does it get assigned with job number?yes, see above
Do we need to submit the job as the owner of that job or sysdba can submit the job on behalf of the owner?No option to assign OWNER, so need to CONNECT as desired owner before DBMS_JOB.SUMBIT
Similar Messages
-
How to identify the related job, after sheduling a infopackage?
Hi,
Anybody explain that how to identify the related job after scheduling a infopackage in the BW system?Hi Aditya,
Goto SM37->Search Job BI_BTCH*
Job Prefix.
http://help.sap.com/saphelp_nw70ehp1core/helpdata/en/da/0318025d64a84b94542641ed77ee74/content.htm
Hope it helps.
Thanks and Regards,
MuraliManohar.
Edited by: Muralimano on Jun 5, 2011 9:38 AM -
How to schedule the background job using current selection screen field val
Hello Friends,
How to schedule the background job using current selection screen field values.
after completion of the job the spool should be sent as a mail to SAP Inbox.
Is there any way to create the variant dynamically by reading the current selection screen values.
Thanks,
RaviHi,
To get the variant details you can use teh following FM.
'RS_VARIANT_CONTENTS'.
Regards,
Ankur Parab -
How to take the cron job log in HP UX?
Hi,
How to take the cron job log in HP UX
I need to run a backup and other stuff everyday. How do I check and start cron service under HP-UX UNIX operating system? How do I write cron jobs?
A. Cron service is required to run jobs and tasks such as backup.
You must login as the root to run following commands. Each user that is using the cron service must have a cron configuration file in the /var/spool/cron/crontab directory. Also users are permitted if their name appeared in /var/adm/cron/cron.allow file
Task: Find out if cron is running under HP-UX
Type the following command at a shell prompt
# ps -ef | grep cron
Open /etc/rc.config.d/cron file
vi /etc/rc.config.d/cron
Set control variable to 1 to enable cron: CRON=1
Set control variable to 0 to disable: CRON=0
Close and save the file. To start or stop cron you can type the following command:
# /sbin/init.d/cron start <-- start cron
# /sbin/init.d/cron stop <-- stop cron
Task: HP-UX Start cron service
If cron is not running, simply type:
# cron
Task: Edit / create cron jobs
Type the following command to submit a cron job:
# crontab -e
List your cron file:
# crontab -l
Backup all your cron jobs:
# crontab -l > ~/backup.cron.jobs
Remove ALL cron job:
# crontab -r
Task: Crontab file format
Cron file format is as follows:
MIN HOUR DATE MONTH DAY /PATH/TO/COMMAND
0-59 0-23 1-31 1-12 0-6 /root/scripts/backup2tape.shEasy to remember crontab file format:
* * * * * command to be executed
| | | | |
| | | | ----- Day of week (0 - 7) (Sunday=0 or 7)
| | | ------- Month (1 - 12)
| | --------- Day of month (1 - 31)
| ----------- Hour (0 - 23)
------------- Minute (0 - 59)To run /root/script/backup at 23:00, every day, enter:
# crontab -e
Append following
0 23 * * * /root/script/backupRun foo job very weekday (MON-Fri) at 6am, enter:
0 6 * * 1-5 /root/script/backupFor more information refer to cron and crontab man pages.
Subscribe to our free e-mail newsletter or RSS feed to get all updates. You can Email this page to a friend.
Related Other Helpful FAQs:
What is Cron?
Linux Start and stop the cron or crond service
Run crontab Every 10 Minutes
Linux / UNIX Setup and run php script as a cron job
Stop Ubuntu / Debian Linux From Deleting /tmp Files on Boot
Discussion on This FAQDavid Says:
January 15th, 2008 at 12:21 am
You might note that all files normally found in /etc/init.d, /etc/rc*.d, and others are all in /sbin in HP-UX 10.20 and up.
Note too that your formatting is off in the description of the /etc/rc.config.d/cron file. Also, if you run /usr/bin/cron instead of /sbin/init.d/cron start, the /etc/rc.config.d/cron file is not used.
Regards,
SatyaI guess it would :)
btw, how did this piece miss from the contents pasted by the OP ?
The doc has given all details of CRON and missed where to see the logfiles. :)
****Added****
I tried man crontab in windows, i dont see it.i overlook most of the things, i would have done the same ;)
Edited by: Bobcatalog on Oct 23, 2008 9:40 AM -
How to schedule the back job scheduling
how to schedule the back job for bdc , can we use it for both call transaction and session method . how to schedule the back job schedulinng for lsmw
hi,
Use t-code SM36 for scheduling.
<b>Do reward.</b> -
How to schedule the background job daily twice?
Hi,
How to schedule the background job daily twice? any conditions?
Regards,
Srihithasee the step by step procedure.
Scheduling Background Jobs:
1. Background jobs are scheduled by Basis administrators using transaction SM36.
2. To run a report in a background, a job needs to be created with a step using the report name
and a variant for selection parameters. It is recommended to create a separate variant for each
scheduled job to produce results for specific dates (e.g. previous month) or organizational units (e.g.
company codes).
3. While defining the step, the spool parameters needs to be specified
(Step-> Print Specifications->Properties) to secure the output of the report and help authorized users
to find the spool request. The following parameters needs to be maintained:
a. Time of printing: set to Send to SAP spooler Only for now
b. Name abbreviated name to identify the job output
c. Title free form description for the report output
d. Authorization a value defined by Security in user profiles to allow those users to access
this spool request (authorization object S_SPO_ACT, value SPOAUTH). Only users with matching
authorization value in their profiles will be able to see the output.
e. Department set to appropriate department/functional area name. This field can be used in
a search later.
f. Retention period set to Do not delete if the report output needs to be retained for more
than 8 days. Once the archiving/document repository solution is in place the spool requests could
be automatically moved to the archive/repository. Storage Mode parameter on the same screen
could be used to immediately send the output to archive instead of creating a spool request.
Configuring user access:
1. To access a report output created by a background job, a user must have at
least access to SP01 (Spool requests) transaction without restriction on the user
name (however by itself it will not let the user to see all spool requests). To have
that access the user must have S_ADMI_FCD authorization object in the profile with
SPOR (or SP01) value of S_ADMI_FCD parameter (maintained by Security).
2. To access a particular jobs output in the spool, the user must have
S_SPO_ACT object in the profile with SPOAUTH parameter matching the value used
in the Print Specifications of the job (see p. 3.d above).
3. Levels of access to the spool (display, print once, reprint, download, etc) are
controlled by SPOACTION parameter of S_SPO_ACT. The user must have at least
BASE access (display).
On-line reports:
1. Exactly the same configuration can be maintained for any output produced
from R/3. If a user clicks Parameters button on a SAP Printer selection dialog, it
allows to specify all the parameters as described in p. 3 of
Scheduling background jobs section. Thus any output created by an online report
can be saved and accessed by any user authorized to access that spool request
(access restriction provided by the Authorization field of the spool request
attributes, see p. 3.d of Scheduling background jobs section).
Access to reports output:
1. A user that had proper access (see Configuring user access above) can
retrieve a job/report output through transaction SP01.
2. The selection screen can be configured by clicking Further selection
criteria button (e.g. to bring Spool request name (suffix 2) field or hide other
fields).
3. The following fields can be used to search for a specific output (Note that
Created By must be blank when searching for scheduled jobs outputs)
a. Spool request name (suffix 2) corresponds to a spool name in p. 3.b in
Scheduling background jobs section above).
b. Date created to find an output of a job that ran within a certain date range.
c. Title corresponds to spool Title in p. 3.c in Scheduling background jobs
section above).
d. Department - corresponds to spool Department in p. 3.e in Scheduling
background jobs section above).
4. Upon entering selection criteria, the user clicks the Execute button to
retrieve the list of matching spool requests.
5. From the spool list the user can use several function such as view the
content of a spool request, print the spool request, view attributed of the spool
request, etc. (some functions may need special authorization, see p.3 in
Configuring user access)
a. Click the Print button to print the spool request with the default attributes
(usually defined with the job definition). It will print it on a printer that was
specified when a job was created.
b. Click the Print with changed attributed button to print the spool request
with the different attributes (e.g. changing the printer name).
c. Click the Display contents button to preview the spool request contents. A
Print and Download functions are available from the preview mode. -
How to stop the background job "Sap_collector_for_job_statistic"
Dear All,
Kindly let me know how to stop the Background job "Sap_collector_for_job_statistic" which is running everyday.
We want to stop this background job.
Kindly suggest.
Regards,
MullairajaSelect the Job using SM37 transaction. In the Menu Choose
Job ---> Cancel Active Job.
Before you do this it may be good idea to check the pid using SM50.
It will be using a Background work process. Check the pid and the status.
Select the same and in the Menu Choose Process --> Cancel with Core.
Refresh and check in SM37 for the Active and Cancelled Jobs. -
How to stop the v3 jobs?
how to stop the v3 jobs?
Goto SM37... Give Job Name as LIS. User *.
Enable Scheduld, Released and Active Check boxes...execute.
check job belongs to your Application.
You cancel the Active Job if you stop the Job.
or
You can make Released Job to Scheduled (Menu option Job --< Released --> Scheduled.).
Hope this helps.
Nagesh Ganisetti. -
How to stop the spinning ball after trying to install 10.7.3?How
How to stop the spinning ball after trying to install V10.7.3?
Boot from your recovery partition by holding down the key combination command-R at the startup chime. Release the keys when you see a gray screen with a spinning dial.
When the Recovery desktop appears, reinstall the Mac OS. You don't need to erase the boot volume, and you won't need your backup unless something goes wrong. If your Mac didn’t ship with Lion, you’ll need the Apple ID and password you used to upgrade, so make a note of those before you begin. -
How to debug the background job in ABAP
Hi Guys,
Can anyone let me know how to debug the background job in ABAP.
Thanks in advance
peterHi,
Goto SM37 and see the log if any is there and based on that you can check the code.
you can't debug background job.
Create a Variant for the Program and
Schedule JOB in background:
Go to SM36 create a Job
enter Program and Variant for that program in STEP..
click on Start Condition
Click on DATE and TIME enter date scheduled Start and END times
click on Period Values
Click on HOURLY/WEEKLY etc
CLick on RESTRICTIONS also to use further criteria.
so your job will be scheduled and run as per your requirement.
and in SM37 Transaction check the status of that JOB
Check this link for scheduling jobs..
http://help.sap.com/saphelp_nw2004s/helpdata/en/c4/3a7f87505211d189550000e829fbbd/content.htm
Check this
http://jplamontre.free.fr/SAP/Debug%20background%20process.htm
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/abap+debugger&
Regards,
Padmam. -
How to disable the edit Permission after the task approval in project server 2010.
Hi ,
Can this be done.
How to disable the edit Permission after the task approval in project server 2010.
I mean How to Disable approve/Reject Permission Once task approved in project server 2010.
Any Help Would be more than Welcome.Hi Rohan,
Just talking about the tool capabilities, preventing a task approver (status manager) to approve/reject updates once he has already approved once is not possible out-of-the-box. You grant permissions to user: if you grant a user to approve task updates then
he has the permission to approve updates, no matter if it is the 2nd or 3rd time the task is approved or rejected.
Then of course you could do not custom development to do that.
I'd say that in order to help you, we would need to understand a little bit more your business need. Why do you need to achieve such a goal? We can surely propose you workaround.
Hope this helps.
Guillaume Rouyre - MBA, MCP, MCTS -
How to configure the Auto Job to add datafiles via OEM Cloud Ctrl 12c ?
Hi All,
1.Could you please give me the step by step procedure to automate the datafile addition via OEM while tablespace crossed its threshold limit? - DB(11gr2) is under OEM monitoring.
2.How to reload the database information after any configure change in OEM?
Oracle Enterprise Manager Cloud Control 12c
Thanks.
BalaHi Mark/All,
Please find the below for my answer.
1.Could you please give me the step by step procedure to automate the datafile addition via OEM while tablespace crossed its threshold limit? - DB(11gr2) is under OEM monitoring.
Have you considered using AUTOEXTEND? - Yes, Since we have TB of storage available to use for datafiles.
2.How to reload the database information after any configure change in OEM?
Could you expand on this please? - I changed the tablespace threshold limit from 85% to 65% for validation, but it didn't notify the tablespace issue throw mail[And it seems the database info Collected date is yesterday so i like to recollect the database information from OEM].
Thanks
Bala -
Hi All,
How to view the change immediately after a java file that is used in jsp is modified
without restarting server or redeploy?
Moreover, it is better to keep the original session.
Any suggestion is appreciated.
Kammau
Hi,
In order to have a new version of a java class, the current classloader must be
deleted and a new one created. This is what redeployment does. I believe that
this is more of an issue with Sun's implementation of classloaders. You could
ask BEA support (719.232.7878) and see if they have any plans to periodically
check jar files to see if java class file timestamps and destroy and re-create
classloaders on the fly.
1) You will still have to accept the performance hit of destroying classloaders
and creating new ones. There isn't any way around that.
2) I would think you would want to have more explicit control in production and
integration anyway.
You can redeploy applications from the command line (script) file not just the
console.
Hope this helps,
pat
"Kammau" <[email protected]> wrote:
>
>Hi All,
>How to view the change immediately after a java file that is used in
>jsp is modified
>without restarting server or redeploy?
>Moreover, it is better to keep the original session.
>Any suggestion is appreciated.
>
>Kammau
-
How to clean the windows registry after an unclean install or previous SP2/SP1 uninstall.
How to clean the windows registry after an unclean install or previous SP2/SP1 uninstall.
<b>Procedure:</b>
Run regedit -
1. Go to HKEY_LOCAL_MACHINE\Software and delete iPlanet folder,
2. Go to HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services delete the entries for : adminXXX-serv, iAS60, slapd4.1, slapd-servername.
Run regedt32 -
1. Go to HKEY_LOCAL_MACHINE/SYSTEM/ControlSet001/Enum/Root changed the permission for key LEGACY_SLAPD-xxx from security, and delete it, check in other controlSet (002/003) also, including currentControlSet.
If you are cleaning the Registry after an uninstall, than after cleaning
registry delete the iAS home dir and "reboot" the computer.Sanjeev:
Maybe you can help. I haven't been able to resolve this one "small" problem which is preventing me from rolling out iWS6.0 SP2. I created a new instance of the server using "Add Server" so that I have 2 Web sites (e.g. test1.domain.com and test2.domain.com), but the 2nd server instance is pointing to the same HTML location as the first (i.e. http://test2.domain.com takes you to the same location as http://test1.domain.com). What do I need to change and where to fix this? Need a VERY quick answer to this to implement a production Web server. I've tried the suggestions made so far (see: http://softwareforum.sun.com/servlet/ProcessRequest?RHIVEID=181&RPAGEID=135&HOID=50B500000008000000966A0000&UCATEGORY_0=_23_%24_6_&UCATEGORY_S=0&USEARCHCONTEXT_QUESTION_0=server+instances&USEARCHCONTEXT_QUESTION_S=0) but nothing has resolved this problem. If you have any ideas at all, I'd appreciate if you could let me know :)
Thanks! -
How to change the Data sources after deploying the application ??
Hi All,
i want to know how to change the Data sources after deploying the application to the application server ???
I'm using Oracle Application Server 10g Release 3 (10.1.3.1.0)Can you access the Enrprise Manager website of the target Application Server from your location? If so, you can change the datasource in it. If not, yo can bundle the datasource definition in your archive and use that one instead of the one configured in the target OC4J container. Or this will just be the responsability of your customer: whenever you send a new WAR file, they have to modify the datasource if needed and deploy the application?
Maybe you are looking for
-
Problem in alv grid display (it is not filtering the data in print preview)
Hi Every One, Its very urgent for me to deliver this report .... I applied sort criteria on my final internal table which is pupulated and then i passed to the function module... when i execute the program it is showing me the perfect output..when i
-
Printing a PDF document from a network printer hosted on Windows Print Server
Hi We have a use case where a XFA form needs to be merged with the XML file and later be printed on a printer hosted on Windows Print Server. While I know the first part of merging the template with the data file, I am stuggling to get my document pr
-
My MacBook Pro is getting really slow
Hi there, I have a MacBook Pro 15-inch, Mid 2010: Processor 2.4 GHz Intel Core i5 Memory 4 GB 1067 MHz DDR3 Graphics NVIDIA GeForce GT 330M 256 MB Software OS X 10.9.1 (13B42) and with time it has become unbearably slow. I am desperate and I am n
-
Running Stacked Queries in Oracle SQL Developer
Is it possible to run stacked queries in Oracle SQL Developer??? Something like this... SELECT * FROM TABLE_1 SELECT * FROM TABLE_2 SELECT * FROM TABLE_3 And give my 3 different result sets in my Query Result window I tried "BEGIN" and "END" and Orac
-
I have a .pdf file made by GNUCash that cannot be viewed by Adobe Reader Ver. 9/Vista. It can be viewed just fine in versions 7 and 8 and with .pdf viewers under Linux. What is the problem and how do I fix it?