Create a stored procedure (insert a person’s name into the person table)
PROCEDURE INSERTPERSON(
name IN VARCHAR2
) AS
BEGIN
-- TODO: PROCEDURE TEST.INSERTPERSON Required implementation
insert into person values (name);
commit;
END INSERTPERSON;
Create job
DECLARE
X NUMBER; --set jobid
BEGIN
SYS.DBMS_JOB.SUBMIT
( job => X ,
what => 'DECLARE
name VARCHAR2(10):=''jax'';
BEGIN
TEST.INSERTPERSON(name);
END;' ,
next_date => to_date('17-03-2021 14:21:41', 'dd-mm-yyyy hh24:mi:ss'),
interval => 'sysdate+1/24' ,
no_parse => TRUE
);
COMMIT;
END;
Execute job now
begin
dbms_job.run(jobid);
end;
Query to create the right job
select * from user_jobs
Delete job
begin
dbms_job.remove(4);--和select * from user_jobs; The value of the job in
end;
Read More:
- Kettle stores data report ora-00600 to Oracle: internal error parameters [KQD object $], [u], [0], [107], [CS], []
- MySQL automatically creates partitions through events
- The attributes of Oracle batch modification sequence (such as cache)_size, increment_(by et al.)
- Oracle-OrcleInstanctClient Install ODBC Error: Oracle ODBC Driver with same name already exists
- How to release Oracle PLSQL data lock table
- Oracle Database AWR error: ORA-06502 [How to Solve]
- Mybatis Error setting non null for parameter #15 with JdbcType null Could not set parameters for
- [Solved] Job for mysqld.service failed because the control process exited with error code
- [Mybatis] How to Solve the problem of Oracle query processing more than 1000 in conditions
- [Solved] Rabbitmq Startup Error: Job for rabbitmq-server.service failed because the control process exited with
- [Solved] MySQL Startup Error: Job for mysqld.service failed because the control process exited with error code
- [Solved] mariadb Startup Error: Job for mariadb.service failed because the control process exited with error code.
- Oracle11g Startup Database Error: ORA-27154: post/wait create failed
- [Solved] sqoop Import Datas to mysql error: ERROR tool.ExportTool: Error during export: Export job failed
- [Solved] Running in 64 bit mode with the 32 bit Oracle client installed
- [Solved] Pyodbc.ProgrammingError: No results. Previous SQL was not a query.
- Error 1406 (22001) in MySQL: data too long for column (Fixed)
- Mybatis Add Datas error: ERROR: Field * doesn‘t have a default value
- [Solved] ORA-04063: package body “SYS.DBMS_DATAPUMP“ has errors
- How to Solve mysql [Err] 1067-Invalid default value for