Executing a SQLScript in SqlPlus  Windows

Hi, i have oracle sql*plus version 9.0.1.0.0
when i try
SQL>@C:/ARORA/ANALYTICS/DISTRIBUTION/DATABASE/WIN_ORCL/ARORACONNECT/cr_aroraconnect_jcd_tables.sql
It either hangs..... or it gives Dr.Watson Error.
But when i reduce the total length of the command, by renaming the file to cr.sql it is running fine. (it also runs fine if i reduce the length by giving shorter directory names).
How can i increase the length??

Hi
This issue has been resolved in Oracle 10g Client.
Please see the below output:
SQL> @D:\oracle\product\10.2.0\folder1\folder2\folder3\folder4\folder5\folder6\folder7\folder8\folder9\folder10\folder11\abc_abc_abc_abc_abc.sql
Hello Animesh!!
SQL>
Hope this might resolve your problem.
Thanks and regards
Animesh

Similar Messages

  • How to execute stored procedure in sqlplus

    i have procedure something like this
    create or replace "gettimeslots"
    v_acc in varchar,
    slot_cursor in out sys_refcursor
    as
    begin
    open slot_cursor for
    select * from tslots where tid=v_acc;
    end
    how to execute this proc in sqlplus?please help in this regard

    As you perfectly know (since you're a member for more than a year now) you could have looked that up via google or the forum search. Just one link for you:
    SQLPLUS in Morgan's Library!

  • Executing a mapping from sqlplus in OWB 904

    I have used the below syntax to execute OWB 902 mappings as below:
    sqlplus / <<*sql*
    Execute MAP_SOMETHING.MAIN();
    sql
    I deployed the same mapping with new version of OWB 904.. it did not work. What is new syntax to execute the mapping from sqlplus?

    From OWB 9.0.4 on, you must use the execution template to execute your mappings from sql. The template file, that has a brief doc section in its heading is:
    <OWB installation directory>/owb/rtp/sql/sqlplus_exec_template.sql
    Regards:
    Igor

  • How to execute a java pgm thru Window service

    How can we execute a java pgm thru window service, now am executing thru a .bat file but want to change it as window service

    http://sourceforge.net/projects/wrapper/

  • Can I to execute two times the MAIN window in the same page?

    Hello, friends:
    How I can to execute 2 times the MAIN window in the same page in SAPscript, this without modify the program link a SAPscript?
    I create in the same page two MAIN windows, but I can to print only one MAIN window, the second window is not appears.
    Thanks for advance,
    David

    You can't - only one MAIN window is allowed per page.

  • Execute DOS command in current window!

    All:
    Here is my code :
    import java.io.*;
    public class BuildScript {
    public static void main ( String[] args ) {
    String[] command = {"C:\\winnt\\system32\\cmd.exe", "cls"};
    try {
    Process process = Runtime.getRuntime().exec ( command );
    process.waitFor();
    } catch ( InterruptedException e ) {
    e.printStackTrace();
    System.exit(-1);
    } catch ( IOException e ) {
    e.printStackTrace();
    System.exit(-1);
    System.out.println ( "DONE!" );
    I just want to exeute some simple DOS command from Java application. And then I run this code, it hangs there for ever. I comments out "process.waitFor()", then it print out the "DONE" however it seems that it just open another console and clear that one and exit. For the main console I start my code, nothing happened.
    Can anyone help me out how to execute the dos command in current console window.
    Thanks

    Can anyone help me out how to execute the dos command in current console window.Sorry to say but there is no way to do that.
    The best way to clear the screen is to print a few hundred newlines.
    Trust me, this is a frequently asked question.

  • How can I hide or minimize the sqlplus window?

    Hi,
    I start the sqlplus from Java program and I would like to either hide or minimize the Dos window. Does anyone know how to do it? Thanks.

    It depends what you mean by 'lock' if you mean keep the iPad on a specific app that's easy to do as long as you are updated to iOS 6 which from your device information I can see your iPad is updated to iOS 6.0.2. All's you have to do is go to Settings > General > Accessability > Guided Access > ON > Set Passcode (Set a passcode to lock an app onto the screen). Go back to the home screen and click the app you would like to lock onto. Press the home button three times quickly. You can then highlight certain parts of the app you would not like them to be able to press, disable touching or motion if thats what you need. Press start. To exit the locked app triple press the home button again and type in the passcode you set earlier. Press end in the top left corner. I hope this helped you but if by 'lock' you meant don't allow on the app this is not possible as of yet with the iOS software although some apps do allow you to lock them with a passcode or you could try restrictions in the settings menu but this only works with built in apps such as; camera, facetime, safari, downloading apps, siri etc.

  • Executing command in new powershell window

    Hello guys, I'd like explore directions with gci, but the thing is that istead of using -recurse I'd like to open every single direction in new powershell window. I've made something like this:
    function Get-ScriptDirectory
        $Invocation = (Get-Variable MyInvocation -Scope 1).Value
        Split-Path $Invocation.MyCommand.Path
    $path = Get-ScriptDirectory
    $paths = Get-ChildItem $path -Recurse | ?{ $_.PSIsContainer }
    foreach ($element in $paths) 
        start-process powershell
        $new= $path, $element -join "\"  
        gci $new
    But I don't know to make Powershelle execute command in new window. Start-process powershell only opens new window, but it doesn't import bolded commands. Can I get any suggestions?

    Hi Shadston,
    To add cmdlet in "-command", please refer to the script below:
    Get-ChildItem (Split-Path $MyInvocation.MyCommand.Path) -Recurse -Directory |ForEach-Object{
    start-process -FilePath powershell -ArgumentList @('-NoExit',"& {GCI '$($_.FullName)'; Write-Host 'Hello' }")
    If there is anything else regarding this issue, please feel free to post back.
    Best Regards,
    Anna Wang
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Execute a php file when window closed... onunload

    i wish to find a way to run a php file when the window is
    closed using the <body onunload="....">
    does anyone know how i can do this?
    any suggestions?
    thanks

    thanks for the responses.
    But the design is like that.Then it needs to be fixed.
    I think this is why there's a shortage of people to write computer applications, they are all wasting their time struggling to implement bad designs.
    its a scheduler to be run on tomcat where we interact
    with the running batch files and can't be changed.A scheduler in Tomcat? Why run a scheduler in an application server?
    any help is appreciated.
    I tried to execute the batch file from servlet it
    runs , but i see the cmd.exe in windows task manager
    and need a dos box open.
    Any ideas?If you need a DOS box open then you need a signed-on user. So here's my patch:
    1. Write an application that listens for messages from this Tomcat scheduler, and when it receives those messages it does something in a DOS box.
    2. Have somebody sign on to the server and run that application.
    3. Change the Tomcat scheduler to send messages to that application instead of trying to actually run it.
    It's up to you what kind of messages you should send. There are plenty of choices.

  • How to Execute Power Shell Command From Windows Application.

    Hi All Experts,
    I want to execute power shell commands from my windows application.
    Is it possible ?
    Please let me know your comments..
    Thanks.

    I have not tried this, but apprently it is easy as in the sample pasted below. please see this article for more details
    http://geekswithblogs.net/Norgean/archive/2012/09/19/running-powershell-from-within-sharepoint.aspx.
    Let me know how it goes...
    public string RunPowershell(string powershellText, SPWeb web, string param1, string param2) {
    // Powershell ~= RunspaceFactory - i.e. Create a powershell context
    var runspace = RunspaceFactory.CreateRunspace();
    var resultString = new StringBuilder();
    try
    // load the SharePoint snapin - Note: you cannot do this in the script itself (i.e. add-pssnapin etc does not work)
    PSSnapInException snapInError;
    runspace.RunspaceConfiguration.AddPSSnapIn("Microsoft.SharePoint.PowerShell", out snapInError);
    runspace.Open();
    // set a web variable.
    runspace.SessionStateProxy.SetVariable("webContext", web);
    // and some user defined parameters
    runspace.SessionStateProxy.SetVariable("param1", param1);
    runspace.SessionStateProxy.SetVariable("param2", param2);
    var pipeline = runspace.CreatePipeline();
    pipeline.Commands.AddScript(powershellText);
    // add a "return" variable
    pipeline.Commands.Add("Out-String");
    // execute!
    var results = pipeline.Invoke();
    // convert the script result into a single string
    foreach (PSObject obj in results)
    resultString.AppendLine(obj.ToString());
    finally
    // close the runspace
    runspace.Close();
    // consider logging the result. Or something.
    return resultString.ToString();
    Ok. We've written some code. Let us test it.
    var runner = new PowershellRunner();
    runner.RunPowershellScript(@"
    $web = Get-SPWeb 'http://server/web' # or $webContext
    $web.Title = $param1
    $web.Update()
    $web.Dispose()
    ", null, "New title", "not used");
    -Sangeetha

  • How to copy an executable file(s) to multiple windows 64 bit OS Windows 2008 and above and execute the app thru cmd

    This is how i phased by goals:
    1)Login as admin on remote computers from a txt file.
    2) Copy the exe files to Windows folder
    3) Using cmd execute the commands
    4)Get the output tabulated into a txt file
    Can someone help me with this

    Being new to PS, i think i am mixing up PS and PSexec.
    I launch PS window and run a few commands PSexec commands.
    Command to copy MegaCli64.exe file and execute it but i need to actually create a folder in windows and copy two files there.
    ===============================================================================================================================
    PsExec.exe -d -c \\REMOTE COMPUTER  -u administrator -p PASSWORD c:\Windows\MegaCli64.exe 
    ----copies file in remote computer in windows folder
    Here i am also not sure how to feed the txt file with the IP or hostnames of those 100 systems.
    Command to launch cmd and execute MegaCli commands:-
    =====================================================
    psexec \\REMOTE COMPUTER -u administrator -p PASSWORD cmd
    -----this launches the commandline for the remote computer then it should run command MegaCli -PDList -aALL
    Extracting filtered output to a txt file:-
    =========================================
    for each hostname or IP, i only need its various
    Slot Number:  and their Firmware state:
    So this would look like
    hostname  slot   firmware state
    hostname   slot  firmware state
    etc..

  • 32-bit executable does not run in Windows Server 2008

    Hi,
    Sorry if this question has been asked already. I am having trouble finding a solution in the NI knowledge base and here in the forums.
    I just created a simple UI standalone application in Labwindows/CVI with UI. It runs perfectly in XP when it was developed. When I ported this over to the Windows Server 2000 target and tried to run it, it is stuck in a Windows console and will not spawn main(). I tried both rebuilding it on the 64-bit machine as well as just running the exe as is, yielding the same results. I also tried running corflags against the exe on both the 32-bit dev machine and the 64-bit target but both output says "The specified file does no thave a valid managed header", which seems to be true for all CVI exe files.
    Through some troubleshooting, I was able to narrow it down to a call to a function in a dll (that apparently has already been working all along). If I comment out the two calls, main() would start and life is good again. I tried visually looking through the code in the project producing the dll and things are fine.
    Can someone provide me with some insight into how to proceed on this? Was it a bad build? Did I not configure the build environment correctly (I already tried changing the stack/heap usage)? Could this be caused by a bug in the software that the compiler didn't catch? What typically causes a freeze in the console that spawns main()?
    Please help! Thanks in advance!
    EDIT: BTW, I'm running LabWindows/CVI 2009 on both machines.

    One other possibility is having sufficient rights, especially if you are invoking it via some other app, rather than manually as a logged in user. If you are not logged in and instead invoke it via a web site action, I believe you will have problems reading the registry, accessing a desktop, writing to disk, etc.
    Sorry I can't be more definitive, but perhaps it will help.
    Please post your conclusion, if you find it.
    --Ian

  • Not executed jobs with satisfied time windows ?

    Hello all,
    I have encountered a weird situation with scripts and jobchains that are using a time window. These scripts and jobchains are also using in their enclosing jobchain a pre condition that test whether their time window is satisfied or not (its status is set to 'skipped' if not).
    For the execution of last friday, these scripts and jobchains went to the status 'Skipped' although the related time windows were satisfied:
    TW specified to run on Friday (job planned for friday and not the following day)
    TW specified to run on the last workday of the month (job planned for friday and not the following day)
    So we have just made some tests with ad hoc script, jobchains and time windows to run on:
    Monday
    the first workday of the month
    Both of the tests worked.
    For information, these jobs have always run successfully (when needed) on others environments.
    Have you any idea of what is going on with these time windows?! what could be the cause of that behavior?
    Thanks anyway for your help.
    Regards,
    Yi Jiang

    Hi Yi,
    That's no problem, the cause is clear so this thread is useful because other people may also run into this.
    Maybe a tip that could fix your issue: if you do not use systimestamp to verify if the time window is open, but use the (planned) starttime of the chain, you can avoid this issue.
    By looking at if the starttime of the chain was on a day in a given timewindow, it no longer matters if the chain runs over midnight.
    You may need to change other things too, because in this second case, you cannot use a real time window on the call because that would still be taken into account and if you run over midnight, the window may not be open.
    So in this second scenario, you need:
    - a separate parameter P_TIME_WINDOW (and P_TIME_WINDOW_PARTITION) on the call to indicate which time window the precondition should follow; the call itself will no longer have an actual time window
    - a changed precondition, using the starttime of the chain and the parameter P_TIME_WINDOW (and P_TIME_WINDOW_PARTITION) on the call to determine if the call should run or not
    Let me know if you need more information.
    Regards,
    Anton Goselink.

  • CP5: Problems with Execute Javascript and New/Current window setting

    Hello everyone,
    I am at my wits' end trying to set this up properly, and I was hoping for some help.
    I have inserted a series of buttons designed to open other captivate-created HTM files. I wanted the files to be opened in a controlled window, so I used Execute_Javascript function on the buttons. Here is the code I am using:
    void window.open('filename.htm','name','height=680,width=906,left=0,top=0');
    I enter that code in the script window. I also want to set it to open in a new window (not reuse the current window), so I used the arrow to the right of the Script_Window button and set it to "New."
    When I publish and put it all up on a SharePoint server, it works fine. But then I had to correct a typo on one of my slides (unrelated to this functionality), so I corrected it and republished. The buttons which were working moments before now no longer function. It seems that the "New" setting I had set in the drop-down had reverted to "Current" without me touching it. The Javascript also stopped working. Clicking the button sometimes launches the file in the current window, sometimes in a new window, and sometimes the launch itself fails.
    Captivate just seems to forget the New/Current setting all by itself. And for some reason, the actual launching of the file via Javascript also just stops working.
    As a test to fix the non-functioning Javascript, I deleted the word "void" then saved the CPTX. Then I added the word "void" back in, saved it again, and published, and now it works. I can't make heads or tails of this, and it is very frustrating, especially since it will delay the delivery of my files.The javascript reads the exact same and yet sometimes it works and sometimes it doesn't.
    Has anybody seen this before? How on earth do I fix it?
    Thanks!

    Hi Jim,
    Thanks for the feedback. It's good to know that the New/Current issue is a bug and it's not just me.
    I tried your suggestion, and I am still having the same problem. I also tried switching to Open File or URL and entering this:
    javascript:void window.open('filename.htm','name','height=680,width=906,left=0,top=0' );
    Same problem. Sometimes it works and sometimes it doesn't. Code is exactly the same. I can literally put the code in and publish, it works fine, then I can go back into the project, change something completely unrelated (i.e., not touch the javascript), publish again, and now it doesn't work.
    Thanks for any additional feedback.

  • Cannot execute sapevt.exe on a Windows platform

    Hi
    for some reason I cannot get the sapevt.exe program to raise an event in SAP when running on a Windows platform. The command line I'm using is :
    D:\usr\sap\<SID>\SYS\exe\uc\NTAMD64\sapevt.exe event=EVENT_NAME -t2 name=<SID> pf=D:\usr\sap\<SID>\SYS\profile\DEFAULT.PFL
    It doesn't write an dev.evt trace file either. Also I'm using inside a VB script.
    I can raise the event from within SAP Tcode SM62 and it runs fine in a Unix environment with slightly different parameters of course
    Anybody help please.
    I've looked at notes 802172 and others and tried all the suggestions within.
    Thanks
    Regards
    Steve

    I have the following command defined in SM69 that works on our Windows-based SAP systems:
    Operating system command = sapevt
    Parameters for operating system command = ? -p ? -t pf=$/DIR_INSTALL/\profile\default.pfl
    Additional Parameters Allowed is checked
    What not try and define that and then trigger it inside SAP itself? It might clue you in as to what the issue might be. The input parameters are the event name and then any additional parameters when triggering the event.
    Brian

Maybe you are looking for