How to echo the commands from the main script, but not nested scripts?

I have a main script that calls other scripts inside. I would like to see the calendar on the individual files as well as the call for the files, but not the instructions in individual files
--main.sql
spool main.log
set time on timing on

@file1.sql
@file2.sql

spool off
I would like to see in the hold file something like:
--main.log
set time on timing on

@file1.sql
Elapsed: 00:00:00.00

@file2.sql
Elapsed: 00:00:00.00

Hello

Sorry, I don't think that there is an automated way to do it.

Have you looked at in the [TIMING command | http://download.oracle.com/docs/cd/B28359_01/server.111/b31189/ch12047.htm#i2699704] ( NOT the same as DEFINING TIMING)? You have to explicitly say TIMING SHOW when you want to display the results, and the results are relatively to the point when you said TIME START. I know it's quite differetn of what you really want.

You can write a function defined by the user show_elapsed, who remembered the last time he was called and displays the time elapsed since then.
You would still have to call it explicitly, but you can build in sub-script calls.
What's in your main instead of script

@file1.sql
@file2.sql

You "have

@run_script  file1
@run_script  file2

Run_script. SQL could be as simple as:

@&1
EXEC  show_elapsed;

or you can add other commands (such as the ECHO VALUE).

Tags: Oracle

Similar Questions

  • [ADF, JDev12.1.3] 'Enter LOV': how to show the magnifying glass (but not the inputText)?

    Hallo,

    I have associated with an LOV entry field (FieldA) and I configured the LOV to return the value for the field LOV itself plus other 2 values to fill other 2 fields (FieldB and FieldC).

    So I have:

    FieldA |... | (Magnifier)

    FieldB |... |

    FieldC |... |

    I would like to see the magnifying of the LOV FieldA field but not his inputText.

    Is it possible to do this? If so, how?

    Could I choose the magnifying glass should appear next to what area?

    Thank you

    Federico

    You can add: contentStyle = "" display: none; "to your component LOV;"

    Dario

  • How can I send documents from my main computer to the cloud, and then how to get back them on my surface?

    How can I send documents from my main computer to the cloud and how can I get back them on my surface?

    Moved from Community Participation

    Original title: cloud

    On your main computer, save the file in your SkyDrive folder.  The file will then appear automatically on your Tablet Surface.

  • How to fix the main button to paste constantly

    How to fix the main button to paste constantly

    Short of getting a replacement from Apple or risk a repair third shop there is nothing you can do. How about a button on the home screen? Go to settings > general > accessibility > assistive touch > on.

  • On my ipad, addresses in the e-mail of sellers are appearing in my favorite app of cards.  I can't remove them as I can with other recent in the cards.  How can I stop this from happening?  I'm not typed the e-mail address link.

    On my ipad, addresses in the e-mail of sellers are appearing in my favorite app of cards.  I can't remove them as I can with other recent in the cards.  How can I stop this from happening?  I'm not typed the e-mail address link.

    Maps - tap the box down a drop of addresses

    Under recent - click Favorites

    At the bottom, click on Favorites and remove addresses from this point of view - shot from right to left

  • How to remove a domain controller that was removed from the Internet works but not demoted

    How to remove a domain controller that has been remove from the Internet works but not demoted

    got two domain controllers and been deleted but not retrograde

    can help pls

    Hello

    Your Windows is better suited for the directory on TechNet Services. You can follow the link to ask your question: http://social.technet.microsoft.com/Forums/en-us/winserverDS/threads

    I hope this helps.

  • How to restore the main menu (modify, display, help ect.)? He disappeared

    How to restore the main menu?

    Hello

    Restore it in what?

    in windows Explorer

    Open it and then click on organize then page Setup then menu bar

    in internet explore

    Right-click just below the address bar, and then click menu bar

    or go to tools in the upper right and select menu bar

  • How to show the main screen (home screen of blackberry)

    Hi guys,.

    I need to know how to show the main screen (home screen of the blackberry), even if it's in any screen (like saying "Calculator" etc)...

    This must be done by programming... is there a solution for this?

    Thanks in advance,

    I also had. This is to disconnect incoming call and display the main screen (home screen of the blackberry).

    EventInjector.invokeEvent (new EventInjector.KeyCodeEvent (EventInjector.KeyCodeEvent.KEY_DOWN, (char) Keypad.KEY_END, 0, 100));
    EventInjector.invokeEvent (new EventInjector.KeyCodeEvent (EventInjector.KeyCodeEvent.KEY_UP, (char) Keypad.KEY_END, 0, 100));

  • How to change the main administrator in my CC team?

    How to change the main administrator in my CC team?

    Hello

    I'm afraid that the admin can be modified to your order at the time, but you can add more than one administrator console. You can also consider to reorganize with the correct email address.

    To add multiple administrators, see help here - manage your cloud creative teams membership

    ^ Ani

  • How to use a table defined in the main Script block in an InlineCode Block of a DataGridColumn ComboBox itemRenderer?

    Hello

    How can I use a table defined in the main Script block in an InlineCode Block of a DataGridColumn ComboBox itemRenderer?

    Thanks for any help!

    Martin West

    I hope my problem with the Code:

    < fx:Script >

                <! [CDATA]

    private var myArrayOut: Array =new Array (' one of ','out two', "three out");

    < / fx:Script >

    ...

    DataGrid...
    < mx:DataGridColumn headerText = "MyColumn" dataField = "MyColumn" rendererIsEditor = "true".
    < mx:itemRenderer >
    < fx:Component >
    < mx:ComboBox creationComplete = "init ()" >
    < fx:Script >
    <! [CDATA]
    private var myArrayIn: Array = new Array ('one', 'two', 'three');

    private function init (): void {}

    this.dataProvider = myArrayIn; / / How can I use myArrayOut here?
    }
    []] >
    < / fx:Script >
    < / mx:ComboBox >
    < / fx:Component >
    < / mx:itemRenderer >
    < / mx:DataGridColumn >

    Hello

    outerDocument is a link to external data and functions.

    If you need

    outerDocument.myArrayOut.

  • The main class is not found

    Hi all
    I am facing problem when I try to create the JAR file.
    After creating the Jar file I tried to run but error message
    Main class not found.

    I follow these steps
    (1) my WordNetOK.java
    import java.io.File;
    import java.io.FileNotFoundException;
    import java.util.Scanner;
    import edu.smu.tspell.wordnet.*;
    
    
    public class WordNetOK{
    
        public static void main(String args[]) throws FileNotFoundException {
    
    System.setProperty("wordnet.database.dir", "C:\\Program Files (x86)\\WordNet\\2.1\\dict\\");
    WordNetDatabase database = WordNetDatabase.getFileInstance();
          String result = "";
            NounSynset nounSynset;
            NounSynset[] hyponyms;
       
            //creating File instance to reference text file in Java
            File text = new File("C:/javacode/WordNetin.txt");
          
            //Creating Scanner instnace to read File in Java
            Scanner scnr = new Scanner(text);
          
            //Reading each line of file using Scanner class
            int lineNumber = 1;
            while(scnr.hasNextLine()){
                String line = scnr.nextLine();
          Synset[] synsets = database.getSynsets(line);
          for (int i = 0; i < synsets.length; i++) { 
          String[] wordForms = synsets.getWordForms();
         for (int j = 0; j < wordForms.length; j++) {
    System.out.println(wordForms[j]);
         }
              }

    //System.out.println("line " + lineNumber + " :" + line);

    lineNumber++;
    }

    }

    }
    2) Javac WordNetOK.java
    
    it create a class file
    
    3) i create Manifeast.txt 
    Main-Class: WordNetOK
    4) i run this
    C:\Javacode > jar cvfm WordNetOK.jar Manifest.txt WordNetOK.class
    Adding manifests
    adding: WordNetOK.class(in = 743) (out = 435)(deflated 41%)
    5) i tried to execute it as * java -jar WordNetOK.jar *
    
    But error appear could not find main class
    C:\Javacode > java-jar WordNetOK.jar
    Exception in thread "main" java.lang.NoClassDefFoundError: WordNetOK
    Caused by: java.lang.ClassNotFoundException: WordNetOK
    in java.net.URLClassLoader$ 1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged (Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    to Sun.misc.Launcher$appclassloader$ AppClassLoader.loadClass (Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    The main class is not found: WordNetOK. Program ends.

    C:\Javacode >
    Note : i execute the classpath at beginning
    set PATH = C:\Program Files\Java\jdk1.6.0_32\bin;
    set the classpath = C:\Program Files\Java\jdk1.6.0_32\bin;\javacode.
    Edited by: Ayham on Apr 6, 2013 7:39 AM
    
    Edited by: Ayham on Apr 6, 2013 7:41 AM
    
    Edited by: Ayham on Apr 6, 2013 7:45 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        

    Why are you creating your own manifest file? Let just for you Java.

    It works for me using 1.6

    C:\Javacode>jar cfe WordNetOK.jar WordNetOK WordNetOK.class
    
    C:\Javacode>java -jar WordNetOK.jar
    Hello World.
    

    Generally, you should leave a tool (e.g., Netbeans, Ant) create the manifest because they know how to do it properly.

  • Windows appear on the taskbar, but won't focus, other 3 goes, only 1 that seems to be the main window is not found

    Windows appear on the taskbar, but won't focus, other 3 goes, only 1 that seems to be the main window is not found

    ALT + tab select window; ALT + SPACEBAR; maximize; sigh

  • How can I activate on labels in the block diagram, but not on the front panel?

    This question may have been asked before, but searching the Forum did not.

    In LabVIEW 2010, I have 16 indicators of chain on the front panel. I can't have the label for each Visible on the front panel, so I turned it off. But in the block diagram, I need distinguqish one of the other, so I need to make the label (name) visible.

    In the block diagram, if I select indicators Sting all together and go to properties and make the label visible, it makes visible labels on the front but not visible in the block diagram. What good is that?

    How the help of labels (name) of the indicators String visible in the block diagram, but not visible on the front?

    dbaechtel wrote:

    This question may have been asked before, but searching the Forum did not.

    Don't remember already asked this question and get help in this thread?

    Have you tried the things I said in that thread?  How did they not work?

    Right-click on the terminal of BD and make visible > labels.

    It probably will be the FP control show its label as well.  Then go to the FP control, right-click and go to Visible > labels and uncheck the box.

    The terminal of the comics will have a label, and control of the FP will not.

  • I have the Prime Minister but not encoder and im trying to export videois to how put it on dvd

    I have the Prime Minister but not encoder and im trying to export videois to how put it on dvd

    You must follow the instructions to download/install Encore DVD creating program, as long as the content of the library and put in place so that when you open it, you have all the stuff to work.

    Article download/install Adobe Encore:

    https://helpx.Adobe.com/Encore/KB/Encore-CS6-installed-cc.html

    http://helpx.Adobe.com/Encore/using/download-library-content.html

    Neil

  • I bought lightroom and need to register my student ID, how do I do that the trial has run out, I have the product code but not the serial number?

    I bought lightroom and need to register my student ID, how do I do that the trial has run out, I have the product code but not the serial number?

    If you have purchased a package, then you should have instructions in the box on how to present your credentials. If you have purchased Adobe online, then you should have received instructions in an email. But here is a link that might help you. There is a link under step 2 which will lead you to a place where you can enter the information, I think.

    Adobe - Adobe Education Store: proof of academic identification

  • How to rename the button "Give FInal notes" in the assessment.

    Hello

    How to rename the button "Give FInal notes" in the assessment. (Assessment Manager the manager finally click 'Give Final notes'. "I want to rename this button).

    I tried through customization, but impossible to find the name of the button in the customization structure, so that I can rename it.

    concerning

    Published by: Maya on 24 November 2012 23:23

    Hi Maya,

    In customization, find the point jacquard simiilar Word. For example: "Ranking Final %" or something like that.
    You will get the item as well as block the name.

    According to my understanding, if you want to change the label of the button, and then set the property: LABEL for this element.
    Apply and save the customization.

    Switch the responsibility and test again the case.

    HTH
    Sanjay

Maybe you are looking for

  • Time Machine - how to change discs

    Hello Until now, I had time Machine using external HD_1 external drive. I just bought a new drive, external HD_2. I'd like Time Machine to begin to use external HD_2 while the addition of new backups to existing backups database. My question is: How

  • I'll be able to use Thunderbird on my Android phone anytime soon?

    I like Thunderbird but I wish I could also use it for my phone. I'm out of the Office from time to time and I do not use a tablet.Thank you and best regards.

  • Stop the drop mouse hover appearing menu

    If you go to the site of the hearing: http://www.III.co.UK/ and place the pointer over the area of 'Home Trading investing Tools & Research News & notice of money every day', a drop down menu appears. It is VERY annoying! Is there an add-on that stop

  • Re: Wireless switch

    I have a portable Satellite A660 on which recently for an unknown reason, wireless has been disabled. Turn on the machine, wireless indicator does not light, but the adapter seen through Device Manager is enabled. Diagnosis of communication tells me

  • NVIDIA GeForce 8500 GT video card replacement?

    I've got someone with a NVIDIA GeForce 8500 GT. The fan on the card is seriously disrupted. If I had to replace the entire map (rather than just the fan), is that someone could recommend the most appropriate card? I don't want to replace it with an a