Assuming today is Monday, how would you use the DBMS_JOB
package to schedule the execution of a given procedure owned
by SCOTT to start Wednesday at 9AM and to run subsequently
every other day at 2AM.
Answer / Rahul Shastri
To schedule the execution of a given procedure owned by SCOTT using DBMS_JOB, you can use the following PL/SQL block:
```plsql
DECLARE
job_number NUMBER;
BEGIN
dbms_job.submit(
job_name => 'SCOTT_PROC',
job_type => 'PL/SQL PROGRAM',
job_action => 'BEGIN SCOTT.PROCEDURE_NAME; END;',
start_date => TO_DATE('2022-03-02 09:00:00', 'YYYY-MM-DD HH24:MI:SS'),
repeat_interval => 'FREQ=DAILY; BYHOUR=48; BYMINUTE=0',
number => job_number
);
END;
```
Replace PROCEDURE_NAME with the name of the procedure you want to schedule.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are statistics, under what circumstances they go out of date, how do you update them?
How would you configure your networking files to connect to a database by the name of DSS which resides in domain icallinc.com?
How do you trace the traffic hitting a sql server? : sql server DBA
how can you find out if a table can be redefined?
how can you enable flashback feature?
Why does Oracle not permit the use of PCTUSED with indexes?
Draft one mock email requesting your non-technical management grant you downtime to (provide justification where applicable) complete the following tasks: (1) Generate statistics on a large table; (2) Generate an RDA – if you don't know what an RDA is please say so. (3) Rename datafiles.
what is a crs resource?
wat is global index and local indes
Should you place Recovery Catalog in the Same DB? . Can you use RMAN without Recovery catalog
What are the different authentication modes in sql server and how can you change authentication mode? : sql server DBA
Is it possible to run 32 bit sql server 2000 on64bit windows platform.if how much memory is available to sql server?
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)