Force cfstoredproc to run in background?

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default Force cfstoredproc to run in background?

    All,

    I have an Oracle(9) stored procedure that my application calls, and my current
    session is set to time out in 15 minutes. On occasion the procedure does not
    return in this time, (and since I've got a page that basically will log a user
    out if they have no activity in that 15 minutes) and the applicaiton logs the
    user out.

    What I am trying to figure out is if there is someway to:

    a.) Force cfstoredproc to make the call, and then return immediately, leaving
    the procedure running off on it's own.
    b.) Force the oracle stored proc to return immediately somehow, while still
    running the procedure.
    c.) Some other mysticism that makes this work.

    I've google around a bit and I haven't found anyhting that describes waht I'm
    looking for. I suppose I could use a cfexecute and use sqlplus to call the
    procedure, but I was hoping that there was a more elegant solution.

    Thanks in advance,
    --james

    13562436df Guest

  2. Similar Questions and Discussions

    1. cfstoredproc error and db2
      Hi All, I need help on the Stored Procedure badly. I tried to conduct research on this issue but did not get much luck. I am sure I am not the...
    2. How to force background images to show
      When I place the gif as a background object, it will only print if my browser is set to print background images. Is there an alternative way I could...
    3. Help with cfstoredproc
      OK I have huge problem with my cfstored proc I have stored procedure which retrieve lost password when you provide email. Stored procedure is...
    4. cfquery vs cfstoredproc
      In my experience, the SPs execute a little faster then the queries. you can use to test on your own. <CFSET start=GetTickCount()> ... some CFML code...
    5. cfstoredproc
      Any chance you're interested in emailing with me about CF coding related to a Informix db back-end? Please email me off-list at...
  3. #2

    Default Re: Force cfstoredproc to run in background?

    I'm not versed in Oracle intracacies, but I would hope it has a job engine.
    What I do with MS SQL Server is issue statements within a CFQUERY tag that
    create a job. The job is set to fire immediately, run the stored procedure,
    and delete itself when the SP is done. The beauty of this is that the
    statements that create and set the parameters for the job run immediately and
    return control back to CF. In the meantime, the job runs the SP independently
    of the CF process.

    Check out the functionality of Oracle. I'm sure you can do something similar
    in such a powerful DBMS.

    philh Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139