How spool out put of several scripts and get a single spool output file

Hello

I have a master script that calls three other scripts. The three scripts produce their own files of spooling. But I would like to have the master script also produce a single output (in addition to the release of three individual, I mean). How to do this? Can you please help.
Following are the scripts:
--m.sql (master script)
spool c:\m.log
@1.sql
@2.sql
@3.sql
spool off

--1.sql
spool c:\1.log
insert into test values(1);
commit;
spool off
--2.sql
spool c:\2.log
insert into test values(2);
commit;
spool off

spool c:\3.log
insert into test values(3);
commit;
spool off

--table used
SQL> desc test
 Name                                      Null?    Type
 ----------------------------------------- -------- ----------------------------
 A                                                  NUMBER
When I run the above script m.sql it does not produce the other 3 log files (1.log, 2.log etc.), but m.log (which is master log file which should have output of each of the three call script) is an empty file with 0 bytes!

Thank you

Published by: orausern on May 1st, 2011 03:17

Try this:

sqlplus uid/pwd  @m.sql >AllSpools.log

PS: Add a statement of 'exit' at the end of the main script.

: p

Tags: Database

Similar Questions

  • How can I put an af:InputText and af:CommandButton on the same line?

    How can I put an af:InputText and an af:CommandButton level horizontally between them in my JSPX page?

    ATM, they sit on top of each other which is not good. I must contain every element within a form or something?

    Hi, you can do this way:

            
              
              
            
    

    Kind regards

    Branislav

  • I have a new computer with Windows 10 and will use Acrobat 9.0 Standard of my old computer (Windows 7). I download the program for Adpbe and when I install it so I put my serial number and get the answer, it is not a number valid serial. What it takes

    I have a new computer with Windows 10 and I use Acrobat 9.0 Standard of my old computer (Windows 7). I download the program from Adobe, and when I install it then I put my serial number and get the response "is not a number valid serial. What should do? I have an account at Adobe with all my serial number

    Hi rolfb13339293,

    I would like to inform you that acrobat 9 is not compatible with windows 10.

    You can check system requirements here: Adobe Acrobat required configuration

    The latest version is Acrobat DC.

    Please let us know if you need additional assistance.

    Concerning

    Sarojini

  • How to stop my contact for one year and get refund?, how stop my contact for one year and get refund?

    How stop my contact for one year and get refund?

    Hello

    You will need to contact support by calling/chat for cancellation and refund requests.

    Contact the customer service

    Kind regards

    Sheena

  • I tried to install Family Tree Maker and get 1310 error writing to file: BCL. EasyConverterLiB.Interop.dll have no idea what to do.

    I tried to install Family Tree Maker and get 1310 error writing to file: BCL. EasyConverterLiB.Interop.dll have no idea what to do.

    Hello

    1. how you try to install this program?

    I suggest you to set up your computer in a clean boot state, and check to see if the same problem happens.

    By setting your boot system minimum state helps determine if third-party applications or startup items are causing the problem.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or Windows 7:
    http://support.Microsoft.com/kb/929135

     

    Note: After the boot minimum troubleshooting step, follow step 7 in the link provided to return the computer to a Normal startup mode.

    If the problem persists, then contact family tree click the link below:

    http://www.familytreemaker.com/support/contact

    Hope this information is useful.

  • The police recovered my IPAD the apple of the thief ID is necessary to access and put in place after clearing there how I could put up my iPad and erase the thieves apple ID

    I am on the page 'activate IPAD' in "set up your iPAD" after having deleted all the data with the restore option after that the police recovered my stolen IPAD the thief apparently put up my ipad with its own appleID and I am not deprived for the password how to regain access to my property and then I discover that , and what is the apple ID or belongs as a secondary concern?

    The police can act as your intermediary?  They are able to contact the thief on your behalf?  I would ask them unless you already know the answer.  Allow the police to try to unlock the iPad for you.

  • Command chain vmkping all script and return results in a txt file

    Hi guys, hope you all are doing it very well?

    Does anyone know if there is a way I can put this together?

    What I'm trying to do here is to circumvent the tedious process of ping every IP configured for my target iSCSI through each VMK of each host.

    So basically I want some advice from you guys for what I can basically get this in a script.

    vmkping - I vmk1 10.0.0.10

    vmkping - I vmk2 10.0.0.10

    vmkping - I vmk3 10.0.0.10

    vmkping - I vmk4 10.0.0.10

    vmkping - I vmk5 10.0.0.10

    vmkping - I vmk6 10.0.0.10

    vmkping - I vmk7 10.0.0.10

    vmkping - I vmk8 10.0.0.10

    vmkping - I vmk9 10.0.0.10

    vmkping - I vmk1 10.0.0.11

    vmkping - I vmk2 10.0.0.11

    vmkping - I vmk3 10.0.0.11

    vmkping - I vmk4 10.0.0.11

    vmkping - I vmk5 10.0.0.11

    vmkping - I vmk6 10.0.0.11

    vmkping - I vmk7 10.0.0.11

    vmkping - I vmk8 10.0.0.11

    vmkping - I vmk9 10.0.0.11

    vmkping - I vmk1 10.0.0.12

    vmkping - I vmk2 10.0.0.12

    vmkping - I vmk3 10.0.0.12

    vmkping - I vmk4 10.0.0.12

    vmkping - I vmk5 10.0.0.12

    vmkping - I vmk6 10.0.0.12

    vmkping - I vmk7 10.0.0.12

    vmkping - I vmk8 10.0.0.12

    vmkping - I vmk9 10.0.0.12

    etc... etc...

    Do this on all hosts is to take more time than I'd like to take. Because we are busy of troubleshooting an issue on our switches where some of the ports VMK are unable to communicate to the target. Is there anyway that we can this script?

    Please guys, I'm desperate here.

    Kind regards

    Johan

    You can do it from a bash script.

    This is a working script that gets a list of all the vmkernel ports then each IP provided in a file list.txt on each vmkernel port pings. The results are printed to the screen but to get the results to just the output of the line pipe.

    Here is an example:

    "sh vmkping.sh > / tmp/vmkpingResults.log".

    #! / bin/bash

    # Name of the program: vmkpingall.sh

    # Store a file list.txt with each target IP storage on a separate line

    #---EXEMPLE list.txt-

    #172.16.191.50

    #172.16.192.50

    #-----------------------------

    #Print the date and host name

    Date

    host name

    #get a list of all the ports of vmk on the host

    for vmknum $ (esxcli network ip interface list | grep vmk | grep - v name :))

    do

    White space #Trim

    vmkCompare = "${vmknum # * ()}" "

    #Trim trailing whitespace

    vmkCompare = "${vmkCompare % * ()}" "

    # Exclude vmk0, because we do not use our management traffic vmotion vmkernel port so pings are supposed to do not on vmk0

    If ["$vmkCompare"! = "vmk0"]; then

    Cat /path-to-script/list.txt |  while reading output

    do

    #use vmkping port command selected vmk '-I ' ping target IP addresses

    vmkping - I "$vmknum" - ch. 1 "$output" >/dev/null

    If [$?-eq 0]; then

    echo 'node $output's place on $vmknum

    on the other

    echo "$output node is down on $vmknum.

    FI

    fact

    FI

    fact

  • How can I put picture in photoshop?  Get the error message; Could not complete your request because Photoshop does not recognize this file type.

    How can I put a picture in photoshop?  I get an error message: could not complete your request because Photoshop does not recognize this file type.

    I'm just trying to bring a photo from the library of Photos on my Mac.  Help!

    Photoshop for beginners

    Somehow, I tried to answer you, I could solve this problem.  I tried to upload the picture and somehow, it came with the Photoshop window.  I clicked on "Editing" in the region, I needed to change, and this has been resolved.  Simple.  I just needed to do something very simple.   Thank you very much for your help!

  • Open a new File() by Script and set the Type of PDF file fails...

    Hi all

    I created a script to download PDFs from a server and store them in an Indesign Document. Everything works fine except Indesign doesn't not recocnize file Type when you try to place the pdf file and get an error that the downloaded PDF file cannot be due to the filter of the unknown.

    This is because the file type is apparently set to TEXT (creator is CARO) event if I write the file with

    myFile.open ('w', 'PDF', "CARO");

    No idea how

    -get Indesign all the file type of a file newly generated in PDF format

    or

    -Change the Type of file later

    or

    -tell Indesign what filter to use when you place this file?

    Thanks for your help

    BTW: Indesign CS5 (7.0.4), OS X 10.6.8

    UH... but you might be better off placing both '\0\0\0\0' and leave the treatment kick file extension.

  • When Remove My Documents & send to the trash and get the error message from file (s) name (s) too long

    the situation: I erase all the contents of Documents and sending them to the Recycle Bin.  This is in preparation for a new backup of Documents to an external hard drive device.
    What continues to be: whenever I press DELETE I get the following error message, "file contains elements whose names are too long for the Recycle Bin." -I combed through all the names in the Documents & shortened all the time, but I always get this error message.
    questions: How can I identify & locate offend him, too long file name of the file or files?  What is the space limit for the length of the file/folder names + character?  is it possible to change the settings to correct this extremely frustrating loop somehow, I'm in?
    I would greatly appreciate any help/tips on the issue.  Thank you!

    Hello

    you keep insisting on 'my

    There is no "My Documents" on Vista

    It's only 'Documents '.

    Windows Vista renames 'My Documents' as, simply, 'Documents '. "My music", "My pictures" and "My videos" have also lost their prefix and moved to directly under the directory (profile).

  • try to download the 13 items and get a message saying "he file archive of Adobe Photoshop is missing. What should I do?

    I'm trying to download items 13 and get the following message is displayed. "The archive file of Adobe Photoshop is missing." What should I do?

    Wesley

    Download file 1 of 2 (7z archives) and file 2 of 2 (exe extractor)

    put them both in the same directory

    Double-click on the exe file.

  • Copy of the files and get the content of the file

    So I try to get the content of the file and send through socket.write ().

    I'm not entirely sure, If I'm doing this right, but I tried this:


    var file = new File( "D:\\test.png" );
    var file2 = new File( "D:\\test2.png" );
    
    file.open("r");
    file2.open("w");
    file2.encoding = file.encoding;
    
    
    do {
        file2.write(file.readch());
    }
    while ( !file.eof )
    

    test.PNG exist and test2.png is created from scratch. And the files were not the same at the end. Which means that to get the content of the file with file.readch () or file.read () is not the right solution. Right?

    So, how can I get the contents of the file in a format that can be sent and, no doubt, rebuilt on the other side?

    You could try a binary encoding.

    
    var file = new File( "D:\\test.png" );  
    
    var file2 = new File( "D:\\test2.png" );  
    
    file.open("r");  
    
    file.encoding = 'BINARY';
    
    file2.open("w");  
    
    file2.encoding = 'BINARY';
    
    do {  
    
    file2.write(file.readch());  
    
    }  
    
    while ( !file.eof ) ;
    
    file.close();
    
    file2.close();
    
  • ESXi installs several scripts and other questions fun!

    Hello

    I've been messing around with a USB stick and have a first installation works well (after a lot of messing around!)  I wish I had installed several out there so I can just choose a facility and off it goes my syslinux.cfg is below:

    label rebuild Server 1

    menu label ^ rebuild Server 1

    kernel mboot.c32

    Add vmkboot.gz ks = usb---vmkernel.gz---sys.vgz---cim.vgz---ienviron.vgz---install.vgz---mod.tgz

    label rebuild Server 2

    menu label ^ rebuild Server 2

    kernel mboot.c32

    Add ks2 vmkboot.gz usb---vmkernel.gz---sys.vgz---cim.vgz---ienviron.vgz---install.vgz---mod.tgz =

    I made a copy of the cfg file and renamed it to ks2 and added that ks2 = usb.  I have no idea why the first works and is not the other.  Obviously, I'm not that linux savvy and someoen can point me if all is well in the right direction.

    The second question I have is - how the hell can we change the keyboard available UK?  Is it possible to add a script?

    The very, very last question is... is - it possible to deploy HP Systems Insight Manager by script?

    Thanks a lot, a lot, if you've read so far!

    In addition, you my want to specify a path of your the KS.cfg isolinux.cfg file.  Also, so that this works, you must specify the path to uppercase.  your isolinux.cfg may resemble

    label Rebuild Server 1
    menu label ^Rebuild Server 1
    kernel mboot.c32
    append vmkboot.gz ks=usb:/KS.cfg --- vmkernel.gz --- sys.vgz --- cim.vgz --- ienviron.vgz --- install.vgz --- mod.tgz
    
    label Rebuild Server 2
    menu label ^Rebuild Server 2
    kernel mboot.c32
    append vmkboot.gz ks2=usb:/KS2.cfg --- vmkernel.gz --- sys.vgz --- cim.vgz --- ienviron.vgz --- install.vgz --- mod.tgz
    

    FWIW.  We identify our files kickstart with the host name of the ESXi Server

  • Hello, how can I import several PSD and their ayers in a PSD file?

    Hello, I am building a drawing and I bought several PSD that will improve the design until the layers. How can I import all my PSD in my original PSD file? I tried to add them through the script option, but the imported PSD layers are flattened into a single photo.

    Try to open all the PSD files. Then select all the layers in a PSD documents you want in another and use the move tool to drag the layers selected in the layers palette and drop them on the window of PSD document images that you want a copy of the layer.

  • How do I put pictures on iPad and delete it from my phone?

    I have an iPhone 5 c 8 GB (only 5.4) and its full. I don't have an app and 1.4 GB of photos. I bought 50 GB of storage iCloud but still confused on how to use it, my real question is; How to delete all my photos on my iPhone and put them on my iPad (iCloud)? not all my photos phone have updated on my iPad (514 left) or a laptop but I like 20 GB of storage iCloud left? Please help someone

    Please be careful with iCloud photo library. If you have enabled it, delete the photos on the phone will delete them on the iPad.

    iCloud Photo library FAQ - Apple Support

    I suggest you their parachuting to the iPad. Import pictures from the phone to a computer and then sync them to iPad or use a true cloud like Dropbox storage.

Maybe you are looking for