Can I call an Oracle SP from a .BAT file?

I need to execute a stored procedure ORACLE on rare occasions (that update a statement of specific accounts ~ it takes a parameter), and normally I would create a VB work that is called from our planner tool (Autosys) is just a shell program that calls the MS to execute.

In this case, I don't want to create VB work and I just want to create a BAT file that would do the same thing?

With the help of: Oracle 10.2 g

In the BAT file, I want to be able to:

-connection to the database
-Run the SP (by specifying the parameter) ~ I need to call him twice (once for the accounts of GAS and once again for the ELECTRIC accounts)
-output

Thanks in advance!
Sean

userLynx wrote:
Seems simple enough.

Question though ~ how can I specify which database to connect to?

same way as when you use sqlplus to a command prompt.

Tags: Database

Similar Questions

  • How can I make a pdf link from a pdf file?

    My client has a pdf with an image on there want to click on the image and set up an another pdf in a new window

    How to do this. I have tried a selection of hyperlink, but fails.

    TIA

    Use the Connector tool.

  • Call the function QML from C++ (simple question)

    I guess that's a pretty easy question but I'm a bit new apart from development c ++ of BB10. I have a QML file in the assets folder called Functions.qml which has only onne inside functions.

    import bb.cascades 1.3
    
    Page {
        objectName: "funct"
        function printStat() {
            console.log("hello");
        }
    }
    

    In one of the functions in applicationui.cpp there is a function called resendNotification() (you may know this code from the model of the app without head)

    void ApplicationUI::resendNotification()
    {
        InvokeRequest request;
        request.setTarget("com.example.TestNotificationService");
        request.setAction("com.example.TestNotificationService.RESET");
        m_invokeManager->invoke(request);    // --> call the printStat() function of Functions.qml file
        Application::instance()->minimize();
    }
    

    My question is, before you minimize the app How can I call the function printStat() of the qml file? I have always developed my apps in QML so never had to deal with c ++. Should be easy enough to call a function well.

    Thank you in advance!

    first step is to find the object by ObjectName using findChild, usually from your element root (navigationPane).
    example:
    NAV-> findChild ("myTextField")

    If you have the object of another source that is fine too, of course.

    second step is to use QMetaObject::invokeMethod with the object and the name of the method.
    Example:
    QMetaObject::invokeMethod (container, "setText", Q_ARG (QVariant, text));

  • call PL/SQL procedure from javascript

    Hello!

    How can I call PL/SQL procedure from JavaScript code?


    Thank you!

    Nihad

    Nihad,

    What APEX version do you use? Dynamic actions in 4.0 make is much easier than it was in previous versions of APEX...

    Kind regards
    Dan

  • How can I automate copying files from 1 pc to a laptop computer with commands in a bat file?

    I have a host pc and a laptop connected through a home network, which allows mw the ability to copy files through pionter 1 to another. How can I automate this with commands in a .bat file.

    Yes. These things are possible with scripts or old batch files. Also, take a look at RichCopy.

    http://TechNet.Microsoft.com/en-us/magazine/2009.04.UtilitySpotlight.aspx

    Tom Ferguson

  • Can I call sql * scripts of charger from Oracle DBMS_SCHEDULER jobs

    Hi all

    Can I call oracle SQL * Loader work DBMS_SCHEDULER scripts.

    Appreciate your suggestions on this.

    Thank you
    Madhu K.

    Can I call oracle SQL * Loader work DBMS_SCHEDULER scripts.

    DBMS_SCHEDULER can invoke OS script.
    Exactly what the script does it to you.
    You should know that the script will have probably environmental & OS permission issues.

  • panels and multithreading - what features can I call from another thread.

    I am writing a program (Windows XP, LabWindows/CVI 2010) that has several threads. The main thread generates and manages most of the panels, but not all. Is there a list of what control panel functions are thread-safe and which are not? Reading the help file and the different positions, the functions of set value are safe; game-attribute functions are NOT. (I found that calling (SetPanelAttribute) with ATTR_TITLE will be locked permanently a program!). What about calliing a command callback function? (Via the CallCntrlCallback() function). It seems to work very well so far, but I can't find anything definitive.

    I do a lot of multi-thread applications, so I have a few ideas for you.  Unfortunately, I have not tried to do many of the changes of attributes specific threads lower panel.

    I'm very careful about how I handle the wire "solidity", dealing with the variables in an asynchronous way, as much as possible, to avoid the use of blocking and incorrect values of the variables.

    But there are certainly many things simply cannot make you the son of the daughter.  Things like question popups and launch other threads cannot be done simply.  As long as you understand that the best place to do something is in the main thread, and then a girl thread can use PostDeferredCall (...), do something in the main thread

    In the thread of your daughter, you can insert this call:

    PostDeferredCall (launchNewThread, 0);

    And then this call performs this function in the main thread:
    void CVICALLBACK launchNewThread(void *callbackData)

    {
    CmtScheduleThreadPoolFunction (threadPoolHandle, NewThread, NULL, NULL);
    }

    Or you can insert calls from parameter of the attribute panel inside the function above, I suppose, to safely run in the main thread.

    Hoe, that helps...

    -Gary

  • How to call CCI Oracle from a command line

    Hello everyone.

    I already asked the following question on Stackoverflow.com , but unfortunately, no one was able to answer, yet. So feel free to respond here or on Stackoverflow - I'll keep track of it and synchronize the answer to each community.

    I have successfully installed the Oracle Code compliance Inspector (CCI) to JDeveloper extension by following the instructions. Later, I was able to run the BCC in JDeveloper. But I'm not able to invoke the Oracle BCC from a command line.

    I can't find the script ("checkCompliance.sh"), mentioned in the documentation. There is no part of the zip file that I downloaded from the oracle.com.

    I tried to execute the compliance.policy.engine.jar file directly, but it fails with an error message:

    java -jar /oracle/jdevhome/jdeveloper/jdev/extensions/oracle.fp.compliance.inspector/lib/compliance.policy.engine.jar -inputDir /AIA/demo -outputDir /ComplianceOut

    Could not load the manifest attribute of hand-Class /oracle/jdevhome/jdeveloper/jdev/extensions/oracle.fp.compliance.inspector/lib/compliance.policy.engine.jar


    Any suggestions on how to invoke the ICC from a command line or where I can find the script mentioned in the documentation?

    About the error message that I read that this can be corrected by adding a manifest file in the archive jar that defines the main class - but what is the main class of this jar file?

    Thanks in advance for your help.

    Well, it's resolved.

    As mentioned in this part of the documentation, the BCC command line tools are distributed with OER.

    The BCC command line tools are distributed with REL in the /tools/solutions/- ComplianceInspector.zip.

    What confused me: REL-download contains only a single .jar file. It took me time to realize that the .jar file is an Installer (installation documentation).

    After properly installing OER, I found the - ComplianceInspector.zip in /repository111/core/tools/solutions /.

    The - ComplianceInspector.zip actually contained the checkCompliance.sh file.

  • Can I call a function with the argument % ROWTYPE directly from SQL?

    I have the following function in a 10g DB:

    FUNCTION to CREATE or REPLACE f_is_eligible2 (in_dm_row IN amplify_dm % ROWTYPE)
    RETURN NUMBER
    IS
    ....

    I know that I can call this function to another function from pl/sql, but I wonder if I can call this function directly from an SQL statement, something like this:

    SELECT f_is_eligible2 (dm.*)
    Of amplify_dm dm

    or

    SELECT f_is_eligible2 (dm % rowtype)
    Of amplify_dm dm

    None of those who have worked so I think it is not possible, but I thought I'd ask anyway.

    Thanks in advance!

    You are correct, it is not possible.

    SY.

  • Oracle forms 11g can be deployed on the WebSphere from IBM server?

    I found the following paragraph regarding the Middleware components that are supported on IBM WebSphere, but this list does not specifically mention the Oracle Forms or Oracle reports.  Does anyone know if Oracle Forms and reports works OK on the IBM WebSphere server?   Thank you!

    You can configure the following Oracle Fusion Middleware components on the servers of third-party application support:

    • Oracle SOA Suite
    • Oracle WebCenter Portal
    • Oracle WebCenter content
    • Oracle Data Integrator
    • Oracle Business Intelligence
    • Oracle Application Development Framework (Oracle ADF)
    • Oracle Application Developer Runtime

    For this release of Oracle Fusion Middleware 11g, Oracle supports only IBM WebSphere Application Server as an application server third-party for these products to Oracle Fusion Middleware.

    Oracle Forms/Reports 11 is not supported with WebSphere.  Its installation requires the deployment in Oracle WLS 10.3.x.

  • List of methods that can be called on a control

    Hello

    Can someone please provide, the list of methods that can be called to order in a vm folder. for example, control.getProperty (), control.getEncodedId (etc.).

    Thank you.

    A good starting point is the Web API JavaDoc determinations. (If you do not already have a complete documentation, you can get it from http://www.oracle.com/technetwork/apps-tech/policy-automation/downloads/index.html)

    For example, the documentation for the com.oracle.determinations.web.platform.datamodel.screen.control.Control interface gives the majority of the methods available to you for each control.

    You can use this to find the various other methods of the component such as the screens as well.

    -Brandon

  • How to connect to oracle ebs from external software

    Hello!

    I want to develop an integration for oracle EBS. To this end, I'm looking for ways how to connect at EBS and a repository of functions that can be called from an external program. I'm not sure if this is the right place to ask but I haven't found anything yet so I'll try here.

    Y at - it of standard connectors for provided by Oracle EBS?

    Thank you
    Konrad

    Oracle Applications Architecture is a framework for distributed computing and at several levels that supports Oracle Applications products. In this model, different servers are divided in several levels/levels as follows:

    -The Office of the range--> browser with Jinitiator or Sun JRE
    ---> Web servers, forms, States, Admin and simultaneous Application layer
    -The layer of database--> Oracle Enterprise Edition database

    The Application layer is the layer that is responsible for:

    -The different servers that deal with the business logic of accommodation
    -Manage the communication between the Office of the range and the database layer

    So, to connect to the database, you can access the application layer, or connect directly to the base. I don't think that it is possible to communicate with the application to another application services. Therefore, you must connect directly to the database which can be carried out as explained in my previous answer. There is no such API that can be used to open and close a database connection. Oracle E-Business Suite is just a database with number of patterns and objects that are perfectly integrated.

    More information on Oracle E-Business Architecture found in:

    Concepts of Oracle Applications
    http://download-UK.Oracle.com/docs/CD/B25516_14/current/Acrobat/11iconcepts.PDF

  • How can I disable the Agent updates from HP running?

    HP pavilion D4100Y

    Windows XP SP2 or 3 (not sure)

    No error message

    No recent changes

    Problem: The program "HP updates Agent" run frequently and on no particular schedule, certainly not the one I chose.  He takes over my computer for hours and using most of the CPU, fluctuating between 13% and 87% to 1 etc.3% at 6%, etc.. The computer crashes and I can not use it for something else. On the HP updates screen, I put updates on 'NEVER', but that did not work.  The programs always run. In the Windows Task Manager window, the program is called "Agent updates from HP".

    I find nothing on this problem in the base of support.

    How can I disable the Agent updates from HP running?

    Select your Start button, in the search box type 'msconfig' then msconfig.exe under programs.

    Look under the tabs "Services" and "Boot". Uncheck update HP agent, select 'Apply' and close.

  • has anyone had any strange phone calls claiming to be from Microsoft? Phone number: 007277489117

    Has anyone had any strange phone calls claiming to be from Microsoft? Phone number when you dial 1471 is: 007277489117

    Hello

    Calls unrequested telephone of this nature are almost always a common scam. Do not let them give any info, do not give access to your PC, not give them all the money and do not go to all the websites that they suggest. One moment.

    Please see:

    http://www.Microsoft.com/en-GB/security/online-privacy/avoid-phone-scams.aspx

    Microsoft issues never not solicited for phone calls of support or security.

    These types of callers can use completely fictitious names or bogusly claim to be of real companies other than Microsoft as well.

  • Phone call claiming to be from the Windows team

    I just received a phone call claiming to be from the Windows team in Ontario (Canada) saying that my computer was downloading tons of things on the web, and it had infected and it was my computer.  I'm guessing it's a scam?

    Fake phone calls to technical support

    Calls unrequested telephone of this nature are almost always a common scam. Do not let them give any info, do not give access to your PC, not give them all the money and do not go to all the websites that they suggest. One moment.

    Please see:

    http://www.microsoft.com/en-gb/security/online-privacy/msname.aspx .

    Microsoft issues never not solicited for phone calls of support or security.

    These types of callers can use completely fictitious names or bogusly claim to be of real companies other than Microsoft as well.

Maybe you are looking for

  • can I manually add a workout to the application of the activity (e.g. swimming when I'm not wearing the watch)

    Can I manually add a workout (such as swimming when I don't wear the watch) to the application of the activity?

  • Windows xp sp3 does not work in safe mode

    Yesterday my computer froze at the start (which had got to the windows screen).  You had to do a hard reboot.  Then it worked.  Then this morning it froze everytime.  I tried to start in safe mode.  When he got to the screen when I took administrativ

  • MQTT - TestMqtt - problem

    I know, some months agao that I tested the Mqtt library and TestMqtt Aoo cascades community samples Now tried again and running into problems Library of MQTT Error reported: MqttClientImpl.h not found copied from/private to / src then could build the

  • Download Photoshop

    I had a lot of problems with my Photoshop CC up to the point where I've uninstalled it to reinstall.How can I do this?

  • How to export a transparent EPS?

    I have a logo that I am combining with other elements in Illustrator. The logo must be transparent. It shows as transparent in Photoshop and Illustrator (under "see the transparency grid"). But when I export an EPS puts a white back box all about the