Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Database Server Software > Oracle > Running Oracle Forms without user intervention

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-12-03, 03:56
LAY HOON LAY HOON is offline
Registered User
 
Join Date: Feb 2003
Posts: 1
Running Oracle Forms without user intervention

Hi,

I want to write an Oracle Form 6i program which automatically calls a procedure to run an Oracle report and then updates some database tables without any user intervention. This form will be run as a scheduled job on the UNIX server.

The question is where should I fire the procedure? I have tried using the Pre-Form trigger but hits the "can't use a restricted built-in" error at the point of "COMMIT" command.

Thanks in advance for any advice.

Regards,
Lay Hoon
Reply With Quote
  #2 (permalink)  
Old 02-12-03, 06:27
andrewst andrewst is offline
Moderator.
 
Join Date: Sep 2002
Location: UK
Posts: 4,874
Re: Running Oracle Forms without user intervention

Usually in Forms, where a restricted built-in is to be called, the code has to be moved to a KEY trigger, e.g. KEY-COMMIT in this case.

But really, I can't understand why you would use Forms at all to create a scheduled batch process with no user intervention. Why not just a shell script that runs the report and a SQL Plus script, or perhaps an After Report trigger in the report itself?
__________________
Tony Andrews
http://tonyandrews.blogspot.com
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On