Command to Run Script from File

Hi,
I have 20 .sql Files, each one has CREATE script for stored peocedures. I want to run the script for each SP of the file in the database. Instead of copy and paste from each file, is there any command to execute script from each file.
Thanks,
Regards,
Suman S
Edited by: SSN on Jun 28, 2009 11:41 PM

Hi,
You can place that sql script either in drives.
IF suppose you placed your scripts file in D:\,
connect to database thru sqlplus and run like this
SQL>@"D:\sqlstatement.sql"

Similar Messages

  • Script Alert "You should only run scripts from a trusted source."

    I created a small javascript which opens Photoshop and resizes some images.
    I want to be able to double-click the .JSX file from Windows Explorer, and have Photoshop execute the script. Likewise, I want to be able to run the .JSX file from the command line.
    The script runs perfectly. However, the problem is that I don't want any user interaction. I want to be able to run the script from the command line without the user having to click anything. What happens now when I try to run the file from Windows Explorer of the command line is, I get a Script Alert with the following text:
    You are about to run a script in Adobe Photoshop CS3. You should only run scripts from a trusted source. Do you want to run the script? Yes/No
    Is there any possible way to bypass this message or to answer in the affirmative?
    Thanks,
    Jamie L.

    Hi... Sorry to revive such an old thread,
        Does anyone know the "trusted source" folder for MAC CS4.
    EDIT!
    My bad.  "The /users/<user_name>/documents/Adobe Scripts" folder is working for this purpose for me.  I needed a path to it and forgot that the ~ resolves to the current user.  Sweet.
    -Bill

  • Problems downloading and installing OS X Yosemite An error occurred while running scripts from the package

    Hi! I have problems downloading and installing OS X Yosemite.
    While downloading this message pops up:
    An error occurred while running scripts from the package \U201cwct8079783343594854923.pkg\U201d.
    and in /var/log/install.log i can see:
    MacBook-Pro installd[1086]: PackageKit: Install Failed: PKG: pre-install scripts for "com.apple.pkg.InstallMacOSX"\nError Domain=PKInstallErrorDomain Code=112 UserInfo=0x100193c00 "An error occurred while running scripts from the package “wct8079783343594854923.pkg”." {\n    NSFilePath = preinstall;\n    NSLocalizedDescription = "An error occurred while running scripts from the package \U201cwct8079783343594854923.pkg\U201d.";\n    NSURL = "#InstallMacOSX.pkg -- file://localhost/Users/username/Library/Application%20Support/AppStore/91504108 2/wct8079783343594854923.pkg#Distribution";\n    PKInstallPackageIdentifier = "com.apple.pkg.InstallMacOSX";\n}
    does anyone have an idea about this?
    thank you very much

    Mucked up installation. If the installer app is still in /Applications, delete it and start over.
    27" i7 iMac (Mid 2011) refurb, OS X Yo (10.10.2), Mavs, ML & SL, G4 450 MP w/10.5 & 9.2.2

  • Error when running script from OTM

    Hi team,
    Customer is trying to run script from OTM but is getting a "JWG file does not exist" error. I found the following metalink note and the customer has verified that the repositories are defined with exactly the same names & paths in OTM & Openscript.
    Scripts Failing To Play Back From OATS Test Manager (OTM) (Doc ID 1587941.1)
    I've also checked the following post in the forums but this doesn't apply to the customer because both the OTM & agent are on Windows:
    https://forums.oracle.com/message/10707963
    Appreciate any pointers
    Thanks,
    Krishna

    Hi Krishna
    Is the agent running as a windows service or started from an interactive batch?
    What kind of script is that? Web, Forms, Siebel, other?
    Are they different repositories or the same? If different, how do you copy scripts from one to the other one?
    Cheers
    JB

  • HT1222 hi i have a apple imac 27 2009 and i have purchased mountain lion but near the end it says An error occurred while running scripts from the package "mzps6175750011235388779.pkg"

    hi i have a apple imac 27 2009 and i have purchased mountain lion but near the end it says An error occurred while running scripts from the package “mzps6175750011235388779.pkg”
    can you please advise me what should i do to fix this

    Some ideas.
    https://discussions.apple.com/message/20034600#20034600

  • Cannot prevent ExtendScript debugging while running scripts from After Effects

    Hi,
    I am facing this issue while running scripts from within After Effects. Whenever I am trying to run a script in After Effects, the script opens up in ESTK in the debug mode. The execution waits at the starting point of the script as if there is breakpoint even though there is none. I am not sure whether what I am missing, whether some debug flag needs to be reset etc. I am using After Effects CC on Windows 7 OS. Any help would be highly appreciated.
    Thanks.

    I tried running the script after removing all $.writeln() statements, but unfortunately that does not resolve the problem. For testing the issue, I am trying with the simple script given below :
    var window = new Window ("palette", "My Window", undefined);
    var panel = window.add("panel", undefined, "Panel");
    var text = panel.add("statictext", undefined, "Testing AE");
    window.show();
    But executing even this one from AE opens up ESTK. I am absolutely stuck with this odd behaviour .

  • An error occurred while running scripts from the package "ztb343812063996219254.pkg

    i tried to upgrade my os lion 10.7.5 to os x yosemite on my macbook pro and in the middele of downloading I'm getting this notice: an error occurred while running scripts from the package "ztb343812063996219254.pkg
    help me please…..
    i think i have problem with the app store cause sometimes I'm getting more errors like error no 13 or 100
    what should i do?

  • An error occurred while running scripts from the package "mzm,stuhjljp.pkg".

    I hope someone can help, I have now tried downloading Lion OSx 4 times and I keep getting this message: An error occurred while running scripts from the package "mzm,stuhjljp.pkg".
    I go back to the app store and it kindly tells me it's installed. It's not quite simply it is nowhere to be found.
    Nice one Apple for moving away from those reliable discs and causing pain, wasted productivity and a **** of a lot of frustration. $29.99 to annnoy the **** out of me, thanks.
    Anyone have a solution that may be of assistance.

    Mj, I can't offer much help but you may be able to use this method to "find" Lion OS X in the App Store again.
    Hold down the "option" key while clicking on the App Store icon.  Keep holding down the option key, then click on the "Purchased" tab at the top of the page. 
    With any luck the button to the right of Lion OS X will now say "install."
    I'm having a similar problem reinstalling Lion, so don't be surprised if you try to reinstall and get the same error.
    Good luck,
    Contender

  • "An error occurred while running scripts from the package "DeveloperTools.pkg"

    I'm trying install my xcode 4.2 and check log and this where there is problem
    "An error occurred while running scripts from the package “DeveloperTools.pkg”

    II found the answer elsewhere. I logged in from a diffent admin acount and the install went fine.

  • Run Scripts from windows command line

    Hi, We're creating a test enviroment and we need to "rebuild" our Database (Tablespace) from scratch everytime we run a test.
    What we need is to run all scripts files from windows command line, there is any command or application we can use here?
    thanks.
    Fernando.

    Create a scripts.bat file with something like this in it:
    @sqlplus -S username/password@connect @scriptname.sql

  • How to pass a variable into sqlplus script from file

    here is my problem :
    I have plenty of sql scripts to run. So every time I need to run sqlplus /nolog @scriptxx.name<enter> and then type login<enter>, password<enter>, second login<enter> , second password<enter> - and when it finishes again from the beggining with next one...
    I am fed up with passing these parameters every time. I would like to create a file (files?) with these logins and passwords (located f.ex. in directory where I run the script) then tells, in some way, to my scripts that answers for their questions is inside this file(s).
    Is there any way to do it in such a way ?
    something like: accept DataUser char %read from file user1.txt without my inerteraction%
    ps.
    I cannot add directly these parameters to script because I need to run them on different servers (DEVs and PRODs) and every server has different users and passwords
    KP>

    Actually the START command would resolve the issue, in conjunction with passing parameters and DEFINEs in a sensible manner.
    DEFINE dathasb = '&1'
    ACCEPT dathasb char prompt 'etc...'
    When dathasb already has a value, ACCEPT won't prompt.
    Too many people start hacking and don't use the power of Oracle because they don't the needful : Reading the documentation.
    Other than that obviously the series of scripts needs of course to be re-engineered.
    Asking interactively for a password .... even 20 years back we already didn't do this anymore.
    Of course that was the time when exporting anything beyond the VAX 11/750 to Eastern Europe was prohibited because of US export regulations ;)
    You could store the passwords in Oracle Wallet and be done with it.
    You could use OS authenticated accounts and be done with it.
    But then you still didn't post a version, even not when requested.
    Sybrand Bakker
    Senior Oracle DBA

  • How to call a HP-UX command or shell script from Forms 4.5

    Does anybody know how to call a unix command or shell script to get a files list of HP-UX server from Oracle Forms 4.5 on client side? I tried to use DBMS_PIPE package to get it done but I failed. Please let me have the solution if anybody knows how. Very urgent!

    I tried the host command before and it just let me shell to the DOS environment but not HP-UX environment as Forms was running on Windows platform. So, I could not run a unix command or a shell script. Is DBMS_PIPE the only way to get it done?

  • Issues in running scripts from OTM

    Hi ,
    I have created an endtoend scenario where the script starts from creating requistion, approval, PO creation approval , receipt creation then Invoice and payment.
    My script failing with different reason for different runs. Mailnly its failing whenever the steps are referrred to Standard Oracle Forms.(Eg: Invoice Batch, Receipt Form etc).
    I am running this from machine where Openscript and OTM is installed.
    I tried the command line arugment like " -delayPercentage -1 -delayMin 1 -delayMax 20 " while running the script from OTM. Still issue is same. If I am not using this commad the script steps deviates and failing. I mean in script the step is to choose some responsibility A it is choosing B. To override think times recorded I have used thread.sleep(2000) after every thinktime entry to run it from openscript.
    and to run it from OTM I am using above command.
    Now can anyone suggest me is anyother way that we can overcome these timeout errors. Am I using command line argument in correct way ? Please help

    Hi,
    First try your playback from OpenScript.
    Before play back go to View -> OpenScript Preferences -> PlayBack -> Oracle EBS/Forms Functional
    Increase timeouts in Event Timeout. Also Increase timeout in Web Functional (Object timeout)
    Then Apply and OK    
    Now try play back from OpenScript
    Regards,
    Deepu M
    [email protected]

  • Photomerge command has gone missing from File Automate - menu

    Was using Photomerge command successfully in PS and at some point later PS crashed and locked my Mac. I restarted and now the Photomerge command is missing from the File Menu. I asked Adobe support for help, they had me reinstall latest PS but it's still not there.
    Is there anywhere in the PS Folders I can check for a file associated with this command (like there are for Scripts for example) and could possibly replace?
    I also tried initiating the command from Lightroom with a set of images selected and using the relevant contextual menu and it produces an error saying Photoshop could not be launched (it is launch though).

    Hi and thank you. Yes Photomerge.jsx is there in the scripts folder. Although when I go to launch other scripts from within PS using the File> Scripts… menu I get the following error:
    Could not complete the Image Processor command because Photoshop was unable to find the JavaScript plug-in
    How can I get it?

  • ScriptUI run script from dialog button

    Here is what I have right now.  It is a little clunky in the way it works, and I would just like to make it a bit slicker.
    I have a script on startup that creates a Menu item with a dropdown submenu item. when you click on the submenu item, it starts a script. 
    The first thing the script does is pop up a message box that tells them that two dialog boxes are going to popup. The first one asking them to choose the location of an xml file and the second dialog box that ask them to choose the location of their image folder.  After they finish choosing their folder in the second dialog, the script takes those two values, makes them variables, and continues to run the rest of the script. 
    Here is what I would like it to do..
    1. open a dialog window with two input fields, two "browse" buttons, and OK and CANCEL buttons
    2. when you click the first browse button next to the first input field, it will open a file dialog window.  You select your file and the file string will populate the input field
    3. when you click the second button next to the second input field, it opens a folder dialog window.  You select the folder and the string populates the second input field.
    4. when you click OK, it feeds the values in the input fields to a script.
    I already have scripts to that open the file and folder dialogs, but what I can't figure out  how to do is to start and run a script from a button press, in this case, when the OK button is pressed.  It is probably an onClick, but I haven't been able to find any examples of what the syntax would be. 
    The closest I have found is in the Beginning ScriptUI document that was on Jongware's site, in the section on Communication between windows.  But that opens each of the windows with a different script and not using a button press to call a script.
    As always, any point in the right direction is very much appreciated. thanks.

    Thanks Gotterman, but the issue I was having was that the dialogs I was opening were not being created by me.  They were more like OS generated windows.  So I am not able to give the window a name, or the input field a name in order to reference it.
    Peters response was actually correct, although I did have to open the folder dialog a bit differently to get it to work.  I had to use a style that I got from Jongware in a previous thread, but the concept that Peter showed in the last post pointed me in the right direction. 
    I just have one more piece to figure out, how I am going to pass the variables to another script, but I think that is something i will have to work out on my own.
    For anyone who is curious, here is the code I came up, modifying and combining some of Peters examples from the book plus the help he gave me in this thread.  The alert after closing the dialog is just for testing to show that the values are being held by the variables so I can use them else where.
    function mySnippet(){    
    //<fragment>   
    #target indesign;
    #targetengine "session";
    var w2 = new Window("palette", "Window 2", undefined, {resizeable: true});
    var e2 = w2.add ("edittext"); e2.characters = 30;
    var e3 = w2.add ("edittext"); e3.characters = 30;
    var f2 = w2.add ("button", undefined,"Browse XML");              
    var f3 = w2.add ("button", undefined,"Browse Folder");              
    var f4 = w2.add ("button",undefined,"SAVE AND RUN");              
    var tf              
    var tfo                
    f2.onClick = function()                {               
    tf = File.openDialog("Select your XML File","*.xml");                    
    if (tf != null)                    
    e2.text = tf;                    
    f3.onClick = function()                {              
    var tfol = new Folder("~/My Documents")               
    tfo = tfol.selectDlg("Get Folder");                    
    if (tfo != null)                    
    e3.text = tfo;                    
    f4.onClick = function()               
    w2.close();                   
    alert ("xml value: " + tf  + "\nfolder value: " + tfo);                
    w2.show();    
    //</fragment>

Maybe you are looking for

  • [SOLVED]Some issues with fresh arch install.

    I freshly installed arch after a pretty long period of time of using other distributions and forgot how many issues I have to deal with when using it. Alsamixer does not detect my headphones when i plug them in...(does not mute / unmute automatically

  • How do I scroll one line at a time in Lion?

    I want to upgrade to Lion but need the functionality of the scroll bar arrows. I have learned that the functionality of the arrows is part of the core operating system and is not being replaced. Any suggestions as to any add-on devices that would all

  • G72 Hard Disk Failure and Replacement

    I have had a HP g72 laptop for just over two years. Within the first year, right before the warranty expired, I had a charging issue that was resolved under warranty. Last year, I began to get warnings on startup that I had an imminent hard disk fail

  • Caching reference to home

    I want to cache JNDI Look ups for EJBs. I will do a look up for the EJBs at class loading and then cache them in the memory. This will only be done on the server side i.e both the client and EJBs are on server side (so securing JNDI look up is not of

  • Need new activation code for NFR  XS key

    who knows who to email to receive new activation codes for logic NFR key. I havent gotten a response for the [email protected] address. what is the proper Apple email address to get codes from?