我有Oracle数据库(11克)触发运行插入表后,我需要通过这个触发通过Windows运行外部程序命令是这样的:运行Windows从Oracle数据库触发命令
c:\my_external_apps\app1.exe arg1 arg2 arg3
我试图此代码,但它不工作:
create or replace TRIGGER GE_MAIN_NOTIFICATION_SEND AFTER INSERT ON TABLE
REFERENCING OLD AS OLD NEW AS NEW FOR EACH ROW BEGIN
SYS.DBMS_SCHEDULER.create_program(program_name => 'UPLOADNC', program_type => 'EXECUTABLE',
program_action => 'C:\WINDOWS\SYSTEM32\CMD.exe /C c:\my_external_apps\app1.exe arg1 arg2 arg3 ',
enabled => TRUE);
END;
,这是错误
ORA-04088: error during execution of trigger 'DURRA.GE_MAIN_NOTIFICATION_SEND'
27486. 00000 - "insufficient privileges"
*Cause: An attempt was made to perform a scheduler operation without the
required privileges.
*Action: Ask a sufficiently privileged user to perform the requested
operation, or grant the required privileges to the proper user(s).
我怎么能去做??我是oracle数据库的初学者
谢谢!你是我的HEEERROOOOOOOOO – 2014-11-02 10:48:05