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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chathura86
    New Member
    • May 2007
    • 227

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

    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
  • pbmods
    Recognized Expert Expert
    • Apr 2007
    • 5821

    #2
    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?

    Comment

    • chathura86
      New Member
      • May 2007
      • 227

      #3
      Originally posted by pbmods
      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

      Comment

      • pbmods
        Recognized Expert Expert
        • Apr 2007
        • 5821

        #4
        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.

        Comment

        • chathura86
          New Member
          • May 2007
          • 227

          #5
          Originally posted by pbmods
          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

          Comment

          • debasisdas
            Recognized Expert Expert
            • Dec 2006
            • 8119

            #6
            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.

            Comment

            • chathura86
              New Member
              • May 2007
              • 227

              #7
              Originally posted by debasisdas
              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.

              Comment

              • amitpatel66
                Recognized Expert Top Contributor
                • Mar 2007
                • 2358

                #8
                Originally posted by chathura86
                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.

                Comment

                • chathura86
                  New Member
                  • May 2007
                  • 227

                  #9
                  Originally posted by amitpatel66
                  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.

                  Comment

                  Working...