SQLplus doesn't start from batch when using host comand

Hello.
We have a form to export some data from old (7) database. For that we use batch file that runs sql script.
There is button in form. The code on trigger looks like:
declare
     HostString Varchar2(50);
Begin
     HostString := 'C:\Path\File.bat';
     Host(HostString);
end;
That batch file calls another batch file:
c:
cd c:\Path
call NewFile.bat >> Data.log
And in NewFile batch we call sql script like:
c:
cd "c:\Path"
set ORACLE_HOME=c:\Oracle\Path
C:\Oracle\Path\BIN\SQLPLUS.EXE user/pass@db @C:\Path\Script.sql
@echo End
exit
In that script the code looks like:
spool c:\Path\File.txt
desc table;
spool off;
exit
If we run first batch in cmd everything works. When we use forms, form is working forever, freezes.
And Data.log file looks like:
(14:53:48,14) >c:
(14:53:48,14) >cd "c:\Path"
(14:53:48,14) >set ORACLE_HOME=c:\Oracle\Path
(14:53:48,14) >C:\Oracle\Path\BIN\SQLPLUS.EXE user/pass@db @C:\Path\Script.sql
Here it freezes, log file is locked.
We are using forms 10 on AS 10. But we must use SQLPlus 8 to connect to old database (7) in that case.
Maybe this is the problem?
Any idea why this doesn't work from forms, but works when run manually from cmd?
Thanks.
Message was edited by:
DejanH

U didnt mention version of forms and whether running in client server or web.
Incase of web note that host will execute on application server and hence u need to use webutil_host.
If u are on forms 6i/client server forms try invoking calc using host. If it works fine then u may have to use the code host('cmd /start c:\orant\bin\sqlplus.exe')
Best Regards
Rajesh ALex

Similar Messages

  • IPhone 4 doesn't start, from nothing, when I press home button (since iOS 5)

    Since I updated my iPhone 4 to iOS 5, almost everyday, from nothing, I can't start the phone by pressing the home button or any other button. So I have to restart all the time it happens, it's getting annoying already!
    Is it happening to someone else?
    HELP!!!

    Basic troubleshooting steps are restart, reset, restore from backup, restore has new device.  Doesn't sound like you've been through ALL the steps yet.

  • I record some information to some slides but the presentation doesn't start from the 1st one but from the one I started the recording. What should I do?

    I record some information to some slides but the presentation doesn't start from the 1st one but from the one I started the recording. What should I do?
    Also, can I use music as backround to some of the slides, not to all of them as I'd like to play videos on the others?

    I have reinstalled the drivers. I watched it install the realtec and cirrus drivers. Hovering the mouse over the speaker icon says 'speakers: HP'. They are actually 'Creative'. 'Properties' indicates 'IDT High Definition CODEC' and 'This device is working correctly'.
    Driver details gives 'c:\Windows\system32\drivers\dmk.sys'.
    There is still no sound, although the little level meter on the control shows a green bar rising and falling.
    Obviously, it thinks it's working, but there's no connection to the speakers. They're not muted, either. I checked that too.
    Any other ideas?
    Thanks.

  • Config Tool doesn't start from the application list

    Hi all,
    I have installed Planning, EAS, and Workforce on a server but when I go to configure the tools, the config tool doesn't start from the page where you select the applications to configure. Instead, it starts with all the apps listed with the message: "You have selected the above apps to configure" and it has a Back button but it doesn't work, and it has a Next button and when I press it, it says Done.
    I need to configure the database and deploy to the application server.
    The Shared services is on a different server and is up and running. Essbase is on a separate server and that's up and running.
    I am working with 11.1.1.3 32 bit applications on a 64 bit Windows OS.
    If you have run into this, please let me know what am I missing?
    Thanks

    Hi
    First of all I couldnt get your problem as in your query description you have written "sometimes the video doesn't skips a couple of seconds from the beginning even though the value of NetStream.time property is 0" which is contradictory with the query title "Video doesn't start from the beginning".
    But anyways I think you should check ns.time in Play.Start there you should get always 0 but in Buffer.Full there may be the case that ns.time is not 0 but has some value but that value is very small less than 1.
    If still you have issue please clarify your problem then probably I will be able to answer your query.
    Regards,
    Amit

  • How to transfer range parameter from vb when using bapi calling

    Hi,everyone.how to transfer range parameter from vb when using BAPI calling?

    Did you get the solution to your problem?  Can you please share it with me. I have a similar problem. I have a VB program that calls RFC function. It works with a single parameter but not with a range of parameters. If you have the solution, could you please share sample codes with me? Thank you so much.

  • I am unable to get dragging guides from rulers when using CS6 InDesign. Is anybody else getting this problem?

    I am unable to get dragging guides from rulers when using CS6 InDesign. Is anybody else getting this problem?

    Try restoring your InDesign preferences:
    Trash, Replace, Reset, or Restore the application Preferences

  • Local OC4J instance doesn't start  from oracle developer suite 10gR2

    Local OC4J instance doesn't start from oracle developer suite 10gR2

    You might also wish to consider posting your question here:
    <br>
    Forms
    <br>
    OC4J (maybe)

  • HT4589 How do I change the audio to dual mono from stereo when using Share to DVD in Final Cut 10.1?

    How do I switch the audio to Dual Mono from Stereo when using Share in Final Cut Pro 10.1? Even though the audio is all in dual mono in the timeline, it lists it as stereo in the share box.

    Hi rationale1,
    Welcome to the Support Communities!
    The share to DVD settings in Final Cut Pro X use the Dolby Digital settings which are stereo for DVDs. So this can’t be done directly in Final Cut Pro X.
    The link below will explain the Dolby Digital parameters and options in Compressor 4.   You may need to research a different DVD authoring software to achieve your desired result.
    Dolby Digital - Compressor 4 User Manual
    http://help.apple.com/compressor/mac/4.1/#cpsrb71736a2
    Dolby Digital
    The built-in Dolby Digital settings (in the Create Blu-ray and Create DVD destinations, as well as the built-in AC-3 and EC-3 audio settings) use the Dolby Digital transcoding format. This format encodes Dolby Digital (AC-3) and Dolby Digital Plus (EC-3) audio files that contain multiple audio channels, including 5.1 surround sound. You can also create custom settings that use the Dolby Digital transcoding format. 
    Note:  All files intended for video and audio DVD authoring must have a 48 kHz sample rate as required by the DVD specification.
    DVD Video: Choose this option if you’re encoding for use in a DVD video authoring application.
    DVD Audio: Choose this option if you’re encoding for use in a DVD audio authoring application.
    Tip:  For stereo encoding, rates of 192 kbps and 224 kbps are typical and will produce good results. For Dolby Digital 5.1 encoding, a rate of 384 kbps is recommended. For 5.1 Dolby Digital Plus encoding, a rate of 192 kbps is recommended.
    Cheers,
    Judy

  • Calendar Travel Time Starting from Work when I want to Start from Home

    I am having a problem with travel time in Calendar. It will autopopulate with where it thinks I should be. I don't work during the daytime, and when I schedule in an entry for work, it wants to have me leaving from work. Is there any way to change it manually to start from home instead?

    From Calendar's help:
    To set your starting location, Calendar first looks for your location in any events that are up to three hours before this event. If Calendar doesn’t find a location, it uses your work address during work hours and your home address during other hours. (Your work hours are set in Calendar preferences using the “Day starts at” and “Day ends at” menus.) If your card in Contacts doesn’t have your addresses, Calendar uses your computer’s current location.

  • Power Mac 7600 doesn't start from Mac OS 9.1 CD

    I'm trying to boot from a Mac OS 9.1 CD on a Power Mac 7600 I'm trying to bring back to life
    but it appears the blinking question mark. I've tried using the "C" command but it simply doesn't boot.
    Any ideas?
    Thanks for any help

    One of my favorite pre-G3 Macs! I have one that runs great.
    ---First, has anyone pulled/replaced/moved RAM modules? My experiences with several 7600's at work back in the 1990s was that the RAM needed to be matched in order in the slots and by size regardless of what the specs and several third-party tech reviews say.
    There are eight RAM slots in two groups (of three and five slots) separated by an offset slot for a cache module You should see ID codes on the logic board by each slot: A1, A2, A3, A4; and B1, B2, B3, and B4. You want to load the slots in this order: A1, B1, A2, B2, etc, and match the module size so modules of the same size are paired. My 7600 has this pattern:
    A1: 128MB        B1: 128MB
    A2: 32MB          B2: 32MB
    A3: 16MB          B3: 16MB
    A4: 16MB          B3: 16MB
    So, if modules don't match, match them and try again
    Pairing RAM in this model gives a significant performance boost; the data path goes from 64-bit to 128-bit.
    ---Is the OS9 disk a full retail install disk or a gray one that came with a newer Mac? That could affect startup, Some disks for much newer Macs may not start a pre-G3 Mac.
    ---If the commuter has been off wall power for a long time the PRAM battery is likely deader than Yorick. That could affect startup from the hard drive but should not be at play when starting from a CD.
    ---Another issue  that affects old computers that have been stored and moved around is loose cards. Make sure all card and modules are fully seated, especially the processor card.
    Anyway, those are some things to consider. Keep us posted!

  • Windows 8.1 doesn't start Camera Window when Canon SX110IS is connected

    When my Canon SX110IS is connected and turned on, Device Manager shows the camera as a connected Portable Device; and clicking Start/Control Panel/AutoPlay/Devices lists the Canon SX110IS and shows "Downloads Images from Canon Camera (Canon CameraWIndow)" as the action to take when camera is connected; however, when the camera is connected and turned on, Windows 8.1 doesn't start the CameraWindow program.

    Solution: I thought that setting preferences using Windows 8.1 Control Panel / AutoPlay would make those actions happen.  NOT SO!  You MUST ALSO click to select "Use AutoPlay for all media and devices" at the top of the AutoPlay window.  When you have your preferences set for your Media Card and your Canon Camera, AND have that also selected, the preferred actions you chose WILL take place when you either connect your camera to your computer via USB cable and turn the camera on, or insert your SD card in your computer.
    In answer to why I connect via USB cable rather than inserting the SD card, it takes the same time for me to open the AV door and connect a USB cable between the camera and the computer as it does to open the battery door, remove the SD card, and insert it in the computer.  So I guess it just depends on which mode you prefer to use.

  • Cursor doesn't change to bush when using brush adjustment

    I'm running into an issue when I using the brush adjustment in LR 5.5. The cursor doesn't change from the pointer to the brush cursor. Does any one have a fix for this? I'm running the latest version of LR. I have an 2011 iMac running OS 10.9.4 Any help to solve this issue would be greatly appreciated.

    Same thing here. I also find that Apple Mail is the most frequent offender. Still, like you have mentioned, it is not limited just to mail. This was not a problem for me in Mountain Lion. However, I am noticing that this is a problem for users as far back as 2006 and for every OS release since. It seems that this is not a OS- specific issue. Or if it is, Apple hasnt addressed it in 6 OS releases. This seems like it would be an easy fix. Pretty annoying that it doesnt "just work," right?

  • The WF doesn't start from FV50

    Hi all,
    I need to link a custom WF to FV50 tx when a G/L document (type Cost Adjustment) is saved as completed and I was sure the right B.O. was FIPP, but this WF doesn't start even if the start event is FIPP.completed (active) and there's a start condition in SWB_COND tx about document type = CA.
    Do you know there's another B.O. to use?
    Thanks.
    Angelo

    Thanks Ute,
    in fact the BO is right and the workflow now starts, but there's a problem about the start event: if I create a new document via FV50 and I save as completed directly the triggered event is FIPP.created (I expected "completed") while if I park it before and then I save as completed I obtain the 2 events FIPP.created and completed. That's why my WF didn't start.
    I'm using R3 4.7ext2 and I didn't find an OSS note about this issue.
    Any idea?
    Thanks.
    Kind regards.
    Angelo

  • Macbook Pro doesn't start from internal disk. How to?

    Hi.
    My Macbook doesn't startup. I tried to repair it but it isn't possible and now I need to do one last backup copy before format it. But it doesn't pass from the grey apple screen.
    I've checked the S.M.A.R.T. and it is OK. What else can I do to start from the internal disk on last time?
    Thanks.
    Best regards,
    Telmo

    Hi. Yes, I did. It goes on and on with the grey apple screen.
    I just need it to boot one last time to save one Word document that I didn't had the chance to backup.
    The internal disk appears on the disk utility when I star from the install disk and I select it to boot but when restart nothing happens.

  • Maps loader doesn't start from my PC Suite

    I just updated the firmware on my 5800 and tried to start using the new navigation software.. it complained that I have old maps, so it deleted them. I updated my PC suite as well as the Map loader software. Now that I tried to start the Map loader from PC suite, it will only jump to a Nokia maps site and doesn't start. The previous version worked ok, but I guess it only gives my phone maps which are not supported. I've tried rebooting, reinstalling, checking updates...
    Any suggestions how to get the Map loader working or the maps to my phone?

    Hi. Go to http://europe.nokia.com/explore-services/ovi-maps/downloads-and-services ,  and download the Nokia map loader.
    If this post was helpful, thank me by clicking the Kudos! star.
    If you want to thank someone, just click on the blue star at the bottom of their post

Maybe you are looking for

  • My app store is stuck with featured and whats hot screens from a month or more ago! How can I get it to update???

    My app store has the "featured" an d"whats hot" screens from some time ago, and it doesnt change or update!!! I can find any app by searching fine. Please help!

  • Shiny buttons, UI art in Photoshop techniques

    I have seen a lot of request for how to make custom button art for us no artists.. I have found some resources on the web that may be of interest. I am not a representative of any of these sites, but have found the tutorials useful for UI creation. J

  • TS3074 error 7 windows error 1114

    i followed all the support instructions but the error 7 windows error 1114 persists. I also have uninstalled and reinstalled iTunes and QuickTime but nothing changes. what should I do? I've installed microsoft.net 3.5 but windows tells me that micros

  • Startscen.sh parameter is not working

    Hi all Im running a scenario from a shell script in the following fashion sh bin/startscen GL_JOURNAL 001 GLOBAL -AGENT_URL=http://mycompanyhost:mycompantport/oraclediagent variable_input_file_name=$INPUT_FILE_NAME The scenario starts but the variabl

  • LiveType backgrounds in FCE

    I have a FCE 4 video into which I am putting several LiveType title sequences. I have two questions, both to do with performance: 1) The clips have a background effect that I know only renders in LT when the "Render Background" box is checked. Howeve