How to execute/call a cfm file in an Oracle stored proc?

Hello everyone! I'm quite new to Oracle PL/SQL stored
procedure. Is it possible and how do you call/execute a coldfusion
file from an Oracle stored procedure? I know that cfm files can
call stored procedures. How about the other way around? Any ideas
or suggestions is much appreciated. Thanks..

I'm having a hard time trying to think of why you would
actually want to do something like that. However, all that aside,
the short answer is no. The database has no real "knowledge" about
ColdFusion, and there is no way for PL/SQL to "execute" anything on
the ColdFusion server. Maybe if you were more specific as to what
you were actually trying to do rather than such a generic question,
someone might be able to help you find an alternative.
Phil

Similar Messages

  • Here's how to pass XML as a parameter to an Oracle stored proc

    This, or something like it, should be all over the web and I intend to do so.
    The first sample has exactly what you need in order to pass "XML" as a parm to a stored proc.
    http://www.oracle-base.com/forums/viewtopic.php?f=2&t=8468

    > Really, what is the difference between the 2?
    "What is a...?" questions are easily answered by Google. Generally speaking, however, "JavaScript" is Netscape's implementation of ECMAScript, a scripting language primarily for client-side development for a web browser. "Java" is an entire platform, but typically refers to an object-oriented programming language that is typically compiled to bytecode and run in a virtual machine.
    They're not the same thing at all.
    ~

  • How to execute power shell script file inside DSC script resource

    Hi,
    How to execute /call powershell scirpt file inside DSC script resource , some thing like below and capture the status of execution.
    Node $AllNodes.NodeName
    Script ExecuteSQLDeploy
    #SetScript = {powershell.exe .\SQLDeploy.ps1  "param1" "param2" "param3" "param4" "param5" }
    #TestScript= {powershell.exe .\SQLDeploy.ps1  "param1" "param2" "param3" "param4" "param5 }
    #GetScript= { return $true;}
    Basawaraj

    Thanks for reply. 
     Now i am able to execute the power shell script with DSC. I  am getting no error when i run , but the script logic wrote inside  ( deploying sql incremental changes ) not working . I am using SQLCMD in the powershell script to deploy sql
    changes . Can you please elaborate on "script is compatible with DSC" , the script
    should not contain write-host cmdlet.... etc something like that.
    Copying recursively from ****************************** to ************************** succeeded.
    Perform operation 'Invoke CimMethod' with following parameters, ''methodName' = SendConfigurationApply,'className' = MSFT_DSCLocalConfigurationManager,'namespaceName' = root/Microsoft/Windows/DesiredStateConfiguration'.
    An LCM method call arrived from computer ************ with user sid **********************************************
    [V-BAKANT]: LCM:  [ Start  Set      ]
    [V-BAKANT]: LCM:  [ Start  Resource ]  [[Script]ExecuteSQLDeploy]
    [V-BAKANT]: LCM:  [ Start  Test     ]  [[Script]ExecuteSQLDeploy]
    [V-BAKANT]: LCM:  [ End    Test     ]  [[Script]ExecuteSQLDeploy]  in 0.1110 seconds.
    [V-BAKANT]: LCM:  [ Start  Set      ]  [[Script]ExecuteSQLDeploy]
    [V-BAKANT]: LCM:  [ End    Set      ]  [[Script]ExecuteSQLDeploy]  in 0.3010 seconds.
    [V-BAKANT]: LCM:  [ End    Resource ]  [[Script]ExecuteSQLDeploy]
    [V-BAKANT]: LCM:  [ End    Set      ]
    [V-BAKANT]: LCM:  [ End    Set      ]    in  0.8810 seconds.
    Operation 'Invoke CimMethod' complete.
    Time taken for configuration job to complete is 0.923 seconds
    Basawaraj

  • How can we call a class file of one package for class file of another

    How can we call a class file of one package from class file of another package and both packages exist in a same folder

    How can we call a class file of one package from
    class file of another package and both packages exist
    in a same folder
    Luckily they don't so it's really not a problem after all.

  • How can i call forpro prg file from java

    Hai friends,
    I have a doubt,clear it.
    how can i call forpro prg file from java file
    by,
    N.Vijay

    Thanks to your reply,
    I have some print statements in my foxpro program file.
    Then i like to invoke that foxpro file from my java file
    This want i want..,
    by,
    N.Vijay

  • Can i call Reports.rdf files directly through oracle portal

    Hello
    I have already developed 10 oracle reports and i need to put them on portal page ...how can i call those .rdf files in my portal page..is it possible and how... can anybody help me .. it is very urgent....
    thanks in advance
    vipin
    null

    hello,
    yes it is possible to publish a report in portal. take a look at http://otn.oracle.com/products/reports
    you will find whitepapers (e.g. the security walkthorugh) that will tell you how to publish a report in portal.
    regards,
    the oracle reports team

  • Need Example on calling a unix shell script from oracle stored procedure

    Hi
    Can anybody give example on how to call unix shell script from an Oracle stored procedure. Please give a small example on how to do this .I need this urgently please.
    Have a nice time.
    Thanks & Regards
    Jogesh

    If you are on 10g you can also use DBMS_SCHEDULER. See Re: Excute Unix command Using PL SQL

  • How to execute a script(.sql) file from a PL\SQL procedure

    I would like to know how to execute a .sql file from a stored procedure and the result of it should update a table. My .sql file contains select statements.

    Hi!
    just go through the following piece of code -
    SQL> ed
    Wrote file afiedt.buf
      1  declare
      2    str varchar2(200);
      3  begin
      4    str := '@C:\RND\Oracle\Misc\b.sql';
      5    execute immediate(str);
      6* end;
    SQL> /
    declare
    ERROR at line 1:
    ORA-00900: invalid SQL statement
    ORA-06512: at line 5ORA-00900: invalid SQL statement
    Cause: The statement is not recognized as a valid SQL statement. This error can occur if the Procedural Option is not installed and a SQL statement is issued that requires this option (for example, a CREATE PROCEDURE statement). You can determine if the Procedural Option is installed by starting SQL*Plus. If the PL/SQL banner is not displayed, then the option is not installed.
    Action: Correct the syntax or install the Procedural Option.
    Regards.
    Satyaki De.

  • How can i call a DLL file from labview?

    Iam using a sensoray 2601 module.It is given as DLL file(S2600.DLL).How can i call this function from LabVIEW?
    Please Mark the solution as accepted if your problem is solved and donate kudoes

    As far as I can tell problems might occur with the call library function node if the the DLL from visual basic is actually an ActiveX dll if that is the case it seems calling the dll by using the Invoke node is the way to go.
    Have a look at this 
    /sletten

  • How do I call another exe file from a Java program?

    Hi,
    I am doing a simple IDE (text editor/interpreter) for a simple programming language we are developing. It will be submitted as our project for this semester. I created an exe file (in C) which will be used as the interpreter. How do I call the interpreter from my IDE? The interpreter should run when the user clicks a button (i.e. the "Run" button). I've tried the Java Runtime class but it doesn't work. Anyone who knows how to do it?
    Thanks!

    I first tried to do a simple program that calls system commands such as dir, cd <dir>, etc.
    I do not have the exact code right now but as far as I can remember, here's what I wrote:
    class Sample{
        public static void main(String args[]) throws IOException{
           BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
           String command;
           while ((command = in.readLine()).equalsIgnoreCase("exit") == false){
              try{
                Runtime.getRuntime().exec(command);
              }catch(Exception e){
                 System.err.println("Error: " + e);
          System.exit(0);
    }

  • How can we call a jar files(seperate projects jars) to each link of the tre

    how can we call a jar OR WAR files(seperate projects jars OR War) to each link of the tree.

    i want have home page that have this menu
    ========================
    -- Sale
    --- Customer
    --- Reader
    -- Energy
    --- Calc
    -- Service
    --- Chnage Name
    --- Change Code
    =======================
    For example
    --- Change Name
    ---- Page Reister
    ---- Page Confirm
    ---- Page Anoc
    ---- Page Save
    ======================
    i want user to access to every page From Each Case(Change Name) .
    i create for change name one project in my fushion web app and for other case
    How to I Can Call Page register From change name in Menu of The home page ????
    Edited by: user13151366 on Feb 4, 2013 4:44 AM

  • How do I call two csv files into ews?

    I have to call two csv files into a script with ews:
    Param([string]$calInputFile = "C:\Algemene agenda\Data docenten.txt" )
    Param([string]$calMailboxFile ="C:\Algemene agenda\Alle docenten.txt"
    # Load all Entries
    $calagenda = Import-Csv $calInputFile
    $calMailbox = Import-Csv $callMailboxfile
    This do not work.
    How can I do this???

    OH!!  Why didn't I see this before?  s-:  You are having problems with the Param definition, but it appears you are having troubles pulling the data into the script.  You can only have a single Param definition for a script.  Try
    the following instead:
    Param(
        [string]$calInputFile
    = "C:\Algemene agenda\Data docenten.txt",
        [string]$calMailboxFile
    ="C:\Algemene agenda\Alle docenten.txt"
    ## Load all Entries
    $calagenda = Import-Csv $calInputFile
    $calMailbox = Import-Csv $callMailboxfile
    To define multiple parameters, you have your Param definition (with its parentheses) and all parameters are defined inside it, separated by commas.

  • How do you call two actionscript files in another as3

    My problem is that i what to call two actionscript files in another one, but cant do it.
    This is are the two codes i want to play at the same time in my scene:
    Code 1
    * Inventory System Manager
    * DATE: 07/24/2010
    * AS3
    * UPDATES AND DOCUMENTATION AT: http://www.FreeActionScript.com
    package 
        import flash.display.Sprite;
        import com.freeactionscript.inventorySystem.InventorySystem;
        public class Main extends Sprite
            private var _inventorySystem:InventorySystem;
            public function Main()
                //InventorySystem(reference to stage in the fla)
                _inventorySystem = new InventorySystem(this);
    Code 2
    * Player Movement - 8-way keyboard
    * VERSION: 1.0
    * DATE: 9/23/2010
    * AS3
    * UPDATES AND DOCUMENTATION AT: http://www.FreeActionScript.com
    package 
        import flash.display.MovieClip;
        import flash.events.Event;
        import flash.events.KeyboardEvent;
        import flash.ui.Keyboard;
        public class Main extends MovieClip
            // player
            private var _player:MovieClip;
            // player settings
            private var _playerSpeed:Number = 4;
            // movement flags
            private var _movingUp:Boolean = false;
            private var _movingDown:Boolean = false;
            private var _movingLeft:Boolean = false;
            private var _movingRight:Boolean = false;
             * Constructor
            public function Main()
                createPlayer();
                // add listeners
                stage.addEventListener(Event.ENTER_FRAME, enterFrameHandler);           
                stage.addEventListener(KeyboardEvent.KEY_DOWN, myOnPress);
                stage.addEventListener(KeyboardEvent.KEY_UP, myOnRelease);
             * Creates player
            private function createPlayer():void
                _player = new Player();
                _player.x = stage.stageWidth / 2;
                _player.y = stage.stageHeight / 2;
                stage.addChild(_player);
             * EnterFrame Handlers
            private function enterFrameHandler(event:Event):void
                // Move up, down, left, or right
                if ( _movingLeft && !_movingRight )
                    _player.x -= _playerSpeed;
                    _player.rotation = 270;
                if ( _movingRight && !_movingLeft )
                    _player.x += _playerSpeed;
                    _player.rotation = 90;
                if ( _movingUp && !_movingDown )
                    _player.y -= _playerSpeed;
                    _player.rotation = 0;
                if ( _movingDown && !_movingUp )
                    _player.y += _playerSpeed;
                    _player.rotation = 180;
                // Move diagonally
                if ( _movingLeft && _movingUp && !_movingRight && !_movingDown )
                    _player.rotation = 315;
                if ( _movingRight && _movingUp && !_movingLeft && !_movingDown )
                    _player.rotation = 45;
                if ( _movingLeft && _movingDown && !_movingRight && !_movingUp )
                    _player.rotation = 225;
                if ( _movingRight && _movingDown && !_movingLeft && !_movingUp )
                    _player.rotation = 135;
                //i will do
                if (_player.x > 550)
                    _player.x = 550;
                    _player.x = +_player.x;
                else if (_player.x < 50)
                    _player.x = 50;
                    _player.x = +_player.x;
                if (_player.y > 350)
                    _player.y = 350;
                    _player.y = +_player.y;
                else if (_player.y < 50)
                    _player.y = 50;
                    _player.y = +_player.y;
                trace ("Valor en x: " + _player.x);
                trace ("Valor en y: " + _player.y);
             * Key Press Handlers
            public function myOnPress(event:KeyboardEvent):void
                switch( event.keyCode )
                    case Keyboard.UP:
                        _movingUp = true;
                        break;
                    case Keyboard.DOWN:
                        _movingDown = true;
                        break;
                    case Keyboard.LEFT:
                        _movingLeft = true;
                        break;
                    case Keyboard.RIGHT:
                        _movingRight = true;
                        break;
             * Key Release Handlers
            public function myOnRelease(event:KeyboardEvent):void
                switch( event.keyCode )
                    case Keyboard.UP:
                        _movingUp = false;
                        break;
                    case Keyboard.DOWN:
                        _movingDown = false;
                        break;
                    case Keyboard.LEFT:
                        _movingLeft = false;
                        break;
                    case Keyboard.RIGHT:
                        _movingRight = false;
                        break;
    Hope you help me =)

    You need to have a reference to an instance of one class in the other class or the other way round in order to communicate between the two. Alternatively you can call a static function of one class from an instance of the other class.
    Anyway, I suggest reading about object-oriented programming first (can be even a Java book) to understand how things work. Such basics really help and it's never shame to read it.
    Good luck

  • How can i call java class file in jsp page

    Hai,
    i wants to call .class file in jsp page.
    my class file is in C:\jsdk\bin.
    Thanks

    I'm not entirely sure what you mean by "calling a class file", but I'm going to assume that you want to do something like the following in your page:
    <%
    MyClass myClass = new MyClass();
    myClass.someMethod();
    %>etc
    If that's the case, then all you have to do is make sure that the class is in the servlet engine's classpath. You'll probably also need to include an appropriate import statement at the top of the page.
    Hope that helps.

  • How to execute ( merge ) a .reg file?

    I tried to execute the .reg file from the below program.
    But there is error when i run it
         Error opening : java.io.IOException: CreateProcess: registry.reg error=0
    Is there other way I can do to execute (merge) this .reg file?
    Runtime r=Runtime.getRuntime();
                        Process p=null;
                        p=r.exec("registry.reg");

    Try using the windows "Start" command.

Maybe you are looking for

  • Is there a way of printing off your Calender without having to buy it?

    Mac Newby here, I am trying to do the above in iPhoto6 and wondered if there was any way of printing my calender without buying? Any help much appreciated. T

  • I can no longer send photos on my iphone?

    I can no longer send photos in text messages with my iphone 4s. It is updated to the latest update from Apple. The camera icon is grayed out next to where I type the message. I checked setting but cannot find anything about this. I notice there are m

  • AR 7 not compatable with windows 8

    How do I open documents please with this compatibility issue? Screen shots... After clicking 'get help online' I get Which brings me to the Adobe home page. Many thanks in advance for your time and help

  • Html tags showing up in trace();

    summary: 1 swf with 3 movieclips. mc1 has input text field "name_txt", mc2 has dynamic text field "nameOutput_txt" When I: trace (mc1.name_txt); I get the following in the Output panel: "<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Times New R

  • Allocation of cost to different cost center

    Hi Techies, I have to allocate cost from one cost center to different cost center according to percentage (%). Company wants to show same cost on sender and then breakdown according to % on receiver cost center. Example: Company wants to allocate cos