Link to home
Start Free TrialLog in
Avatar of Caruso_eu
Caruso_eu

asked on

[ORACLE]Stored procedure running PHP script

Hello,

i am wondering if anyone have tried something similar. I have a PHP script which is fetching data of website and storing it in oracle. This has to be automated somehow.

So i was wondering if it would be possible to make database procedure and set up a JOB for it and make it run every X time.

I am running this PHP procedure from CMD on windows with following command:

php.exe name_of_script.php parameter1 parameter2

Oracle base 10.0.2 is installed on linux.

Any ideas?
SOLUTION
Avatar of COBOLdinosaur
COBOLdinosaur
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of slightwv (䄆 Netminder)
slightwv (䄆 Netminder)

I agree that this should probably be scheduled outside the database but since you asked:  DBMS_SECHDULER can execute an OS program:

http://docs.oracle.com/cd/E11882_01/appdev.112/e25788/d_sched.htm#ARPLS72260
Avatar of Caruso_eu

ASKER

So its doable? I mean i would probably have to install PHP client on linux if i would want to run it with HOST command from my stored procedure?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Ok thank you !