SQLPLUS: How generate a txt file Gohan the command

I am generating a text file with these commands in sqlplus:

Column chave_acesso format a46
Dt_alt format a10 column
set pagesize 100
coil arquivo.txt
Select chave_acesso, dt_alt tab

Everything is perfect, except for 1 small detail.
The command 'select chave_acesso, dt_alt from the tab' appears in the txt file...
Is it possible to eliminate it?

Eduardo

Hi, Eduardo,

Are you a person running SQL thse commands * quicker (manually or in the past), or you are using a SQL * more script?

COIL puts a copy of everything that appears on your screen (or seems, in the case of OFF SET TERMOUT) in a file. If the SELECT command is entered to a SQL > prompt, so it's that appear on your screen and thus be put in the HOLD file. Put all the commands in a file (let's call it foo.sql) and it's in c:\my_app\some_folder) and run it by saying:

@c:\my_app\some_folder\foo

Tags: Database

Similar Questions

  • How to run a file through the command prompt window

    I try to download a zip called Kindle Gen - file instructions say I should first extract it to c:\KindleGen and then run it through the command prompt window by typing c:\KindleGen\kindlegen (I ' v it not compressed)

    The showsc:\Users\Barry prompt window > then I'v typed into it after the > but its not to recognize the path to the file.

    Wonder if anyone can advise this as i ' v hurts?

    Thanks Barry

    I try to download a zip called Kindle Gen - file instructions say I should first extract it to c:\KindleGen and then run it through the command prompt window by typing c:\KindleGen\kindlegen (I ' v it not compressed)

    The showsc:\Users\Barry prompt window > then I'v typed into it after the > but its not to recognize the path to the file.

    Wonder if anyone can advise this as i ' v hurts?

    Thanks Barry

    If you have used Windows Explorer (computer) to create the directory in question (C:\KindleGen\) and extract the files in this directory...

    Open a command prompt.

    Type:

    CD \KindleGen

    Type:

    DIR

    Run everything you are supposed to run by typing the name.

  • Import a TXT file in the user dictionary

    Hi Forum,

    This is the script I m using import file txt in the "user dictionary", but the result is "undefined".

    Could someone help me how to import a Txt file in the user dictionary.

    var myUserDictionaries = app.userDictionaries;

    var myCountDict = myUserDictionaries.count ();

    myDoc var = app.activeDocument;

    myAddedWords = File("//Users/wleastudio/Desktop/AVIVA_dictionary.txt");

    for (var i = myCountDict-1; i > = 0; i--) {}

    myUserDictionary = myUserDictionaries [i];

    var myAddedWords = myUserDictionary.addedWords;

    myUserDictionary.addWord [myAddedWords];

    }

    Thank you

    Hello

    Try this example for the US English:

    var myUserDict = app.userDictionaries[21];//Should be English USA
    var txtFile = File('~/Desktop/test.txt');
    txtFile.open('r');
    wordsArray = txtFile.read().replace(/["'.,:;!?()\/\d\[\]]+/g, ' ').split(/\s+/);//cleaning the text to get only "words" mostly adapted by jongware
    txtFile.close();
    
        myUserDict.addWord(wordsArray)
    

    So long

  • How to send a file to the cloud?

    (1) how to send a file to the cloud?

    (2) at - it a difficulty to find and recover a file that has been sent to the cloud? If the use is similar to the use of an external hard drive, I don't mind.

    The following contains information on how to activate and use iCloud drive. Note that with iCloud as it exists currently with OS X El Capitan, for any file stored in iCloud drive a local copy is also stored on your Mac.

    iCloud Drive FAQ - Apple Support

  • How read datalog multiple files at the same time?

    Hello friends...

    can someone help me to show how read datalog multiple files at the same time?

    Here is the example of my case.

    I have 500 files in a folder. each file contains a waveform and its setting.

    and then I want to do a card spectral these files, because these files have been saved in the order.

    the point is to know how to read these 500 files at once? I made a program to read these files, but the program can read these files in one by one. So it is very uncomfortable to read 500 files one by one. can someone help me solve this problem? Thank you. I hope you can show me the program. Thank you again...

    Hi jojo,

    Well, in the range of functions daughter, you will find a function to list the contents of the folder. This allows to get the names of all the files datalog, and then use a loop FOR to read.

    No one is obliged to provide 500 names of files manually - that's why we use a programming language to let the computer do the stupid work

  • I found a .txt file in the directory "DriverCure" that says "Called destructive Backend." What is c?

    I am running XP SP3 and I found a .txt file in the directory "DriverCure" that says "Called destructive Backend." What is c?

    ParetoLogic DriverCure is a computer program that scans all the drivers on your hard drive and compiles a list of those that are available updates.

    Checks the internet for the DriverCure files removal tools.

    Thank you

  • How to open a file with the extension .odg using Vista?

    How to open a file with the extension .odg using Vista?

    Hi Defiant503,

    Thank you for visiting the forums of answers.microsoft.com.

    I did some research and a file ending with .odg is an OpenDocument Document OpenOffice/StarOffice (Ver 2) of graphics by Sun Microsystems, Inc.    This means that in order to open this file, you will need this program to open it.  You will not be able to open this file with Vista.

    I hope this information helps.

    Kavita M
    Microsoft Answers Support Engineer
    Visit the Microsoft Answers Feedback Forum site
    and let us know what you think.

  • I can't have multiple files open at the same time! I need to compare the content from one to the other. How to display two files at the same time?

    I can't have multiple files open at the same time! I need to compare the content from one to the other. How to display two files at the same time?

    Hi sindres79946597,

    Open Acrobat Reader DC, navigate to the Edit-> Preferences-> General-> uncheck "Open Documents in the new tab in the same window.

    Now, reboot your system, when you open multiple PDFs that all will open in a new window so that you can easily compare.

    Kind regards
    Nicos

  • How to open a file with the extension x3f (sigma)

    How to open a file with the extension x3f (sigma)?

    Doesn't look good: Lightroom / Camera Raw: Sigma SD1 - when Merrill sensors will benefit, please!

  • How to share several files at the same time?

    iI am trying to share a number of edited files and sending one at a time takes too much time. How to share several files at the same time?

    Yes, you can select and send/share several files at once.

    Start https://cloud.acrobat.com/send. Click Select files to send and then follow the instructions in file selection. If you want to add more files, simply click on add files:

    You can include up to 50 files by "transaction".

  • How can I transfer files to the cloud?

    How can I transfer files to the cloud?

    The first thing to do is to transfer a copy of the file / files out of your Onedrive account to your computer.
    Then go to https://cloud.acrobat.com/ where you can sign if necessary.
    Then, download the files that you want to the section "Files" of your account.

    Submit a Word file to PDF Pack you'll want the file / files available on their computer for submission to the subscription to the service.

    Be well...

  • How to print a file of the 8 page to this page after 2 follow 7, then 6-3-4-5?

    How to print a file of the 8 page to this page after 2 follow 7, then 6-3-4-5?

    Use file > print booklet and go through the settings.

    It's perhaps a bit of trial and error - also don't forget to check your printer for duplex printing options and the size and orientation of the page too.

  • How to remove a shortcut with the command line?

    How to remove a shortcut with the command line?

    How to make a backup of the local users and groups with command line?

    You delete a shortcut, just as you would remove any other file.  A shortcut will end with the extension ".lnk".  So assuming you are trying to remove the shortcut named "Shortcut.lnk" which appears to the user 'Bob's Office, you use the button Delete (del) or 'clear' command by specifying the full path to the file.  (Remember to put filename in quotes if there is a space anywhere in the path or name) as in:

    del "C:\documents and settings\Bob\Desktop\Shortcut.lnk".

    What kind of a backup 'users and groups' you want to do?  If there is a backup of the users and groups as written in the registry, a good registry as C:\WINDOWS\ERUNT backup program that will make the command line.  If you are trying to backup all users and their data as well, then you are better off with a backup program.

    HTH,
    JW

  • How sleep windows 7/8 using the command line?

    How sleep windows 7/8 using the command line?

    for example:-l is for disconnection, what command should I give to sleep?

    Hello

    Powercfg command-line options
    http://TechNet.Microsoft.com/en-us/library/cc748940 (v = WS.10) .aspx

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">

  • [HELP] How to open a file / call the file manager to open a txt file

    Hello. I saw nothing in the docs how to proceed. I want my application to call the file manager to open a txt file. Or any file I want. How is that possible? Please, I beg you.

    Thank you. But also, it does not solve my problem.

    I solved it with that.

    Application of InvokeRequest;
    request.setTarget ("sys.installhandlerui");
    request.setAction ("bb.action.VIEW");
    request.setUri ("WAY OF THE APK FILE");
    invokeManager-> invoke (request);

    I wanted to open an APK file to install it. I discovered that the target for the installer of the APK is sys.installhandlerui

Maybe you are looking for