473,320 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Running a PHP script when a new row is added to an Oracle table

chathura86
227 100+
Hi,

I want to a run a php script when a new record is added to a table in Oracle.

Please tell me how?

Thanks

Chathura Bamunusinghe
Oct 6 '07 #1
8 2496
pbmods
5,821 Expert 4TB
Heya, Chathura.

Changed thread title to better describe the problem (did you know that threads whose titles do not follow the Posting Guidelines actually get FEWER responses?).

How is the data being added to the Oracle table?
Oct 6 '07 #2
chathura86
227 100+
Heya, Chathura.

Changed thread title to better describe the problem (did you know that threads whose titles do not follow the Posting Guidelines actually get FEWER responses?).

How is the data being added to the Oracle table?
First of all thanks for the advise.

Well data is being added by another application (VB application, code is not available) using barcode readers.

regards
Oct 6 '07 #3
pbmods
5,821 Expert 4TB
Heya, Chathura.

Ah. Ok.

I'm going to go ahead and move this thread to the Oracle forum, where our resident Experts will be better able to help you out.
Oct 6 '07 #4
chathura86
227 100+
Heya, Chathura.

Ah. Ok.

I'm going to go ahead and move this thread to the Oracle forum, where our resident Experts will be better able to help you out.
ok thanks,
i'm looking fowerd for that.

Thanks
Oct 6 '07 #5
debasisdas
8,127 Expert 4TB
You can do that at the time of inserting new record through front end .

or

Through an After insert Trigger on the database table.

But ,I am not sure how to call PHP script from VB or ORACLE.
Oct 8 '07 #6
chathura86
227 100+
You can do that at the time of inserting new record through front end .

or

Through an After insert Trigger on the database table.

But ,I am not sure how to call PHP script from VB or ORACLE.
cannot do it through the front end.can done only after it is being insert to the
ORACLE table.

but if it can be done through VB.NET then i can manage the rest.
and i also dont know how to configure a ORACLE triger to execute a VB
script.

Thanks.
Oct 9 '07 #7
amitpatel66
2,367 Expert 2GB
cannot do it through the front end.can done only after it is being insert to the
ORACLE table.

but if it can be done through VB.NET then i can manage the rest.
and i also dont know how to configure a ORACLE triger to execute a VB
script.

Thanks.
Unfortunately, Oracle does not include any native way to execute VB code from within the database. This includes triggers, functions, procedures, and any PL/SQL block. Oracle does provide the ability to run external C++ routines and Java within the database. In order to run the VB code, you'll have to make your trigger run either an external C++ routine or Java and then have that routine run your VB code as host callout.
Oct 9 '07 #8
chathura86
227 100+
Unfortunately, Oracle does not include any native way to execute VB code from within the database. This includes triggers, functions, procedures, and any PL/SQL block. Oracle does provide the ability to run external C++ routines and Java within the database. In order to run the VB code, you'll have to make your trigger run either an external C++ routine or Java and then have that routine run your VB code as host callout.
calling a C++ routine is also fine. please tell me how to config the ORACLE
to run a C++ routine.

Thanks.
Oct 9 '07 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Lord Merlin | last post by:
Hi there Can someone please tell me how to run a script in the background? I have a stored procedure, which gathers a lot of info on various tables in a MSSQL , and from that rebulds a large...
3
by: none | last post by:
Hi. I'm implementing a web deployment using 9i. I have a table for STOCK, which has one or more PURCHASES, which have one or more PURCHASE_ITEMS. When a purchase item is INSERTED, I'd like the...
7
by: Dr. Know | last post by:
I am working on an ASP page that writes to several databases, ranging from MDBs to x-base. One of the tasks involves using an existing highest value from the DB and incrementing it before...
10
by: shumaker | last post by:
I don't need a detailed description of a solution(although I wouldn't mind), but I am hoping someone could tell me in general the best path to go about accomplishing a task, since I don't know all...
22
by: M K | last post by:
Heres my SP: ( i am trying to add more than 1 field but get the same error no matter how many i try to add, i thought i would try to insert the primary key only and work up from there but the...
2
by: BookerW | last post by:
Ok, here is the situation. I have some vb code that was upgraded to the earliest asp, I believe. When i run this snippet of code below on my local xp box with iis and visual studio 2003...
1
by: Anonieko | last post by:
Query: How to display progress bar for long running page Answer: Yet another solution. REFERENCE: http://www.eggheadcafe.com/articles/20050108.asp My only regret is that when click the...
1
by: daniel_xi | last post by:
Hi all, I am running a VS 2003 .NET project on my client machine (Win 2000 SP4, ..NET framework 1.1), running an ASP.NET application on a remote web server (Win 2000 Server, IIS 6.0, .NET...
3
by: WP | last post by:
Hello, I have a very simple script (or would you call it a batch file?) with the following content: connect to mydb2; DROP TABLE staff_employee_address; DROP TABLE...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.