Coil using .dat file

Hello

I am trying to take a coil of several tables using the .dat file. The script used in the .dat file is given below. The problem is that I am able to connect to oracle using this script, but the parameters enviournment and coil doesnot come. Help, please.


sqlplus demo_user/sms123@orcl

ECHO has put lin 10000
echo the value 50000 pages
ECHO has set trimspool on
echo set colsep «»
echo left comments
echo went off topic
echo the value of the arraysize 5000

echo c:\abc.txt COIL
echo Select * FROM XMLTEST11;
echo SPOOL OFF

echo output

Published by: Sonu on July 5, 2010 03:02

put this part:

echo set lin 10000
echo set pages 50000
echo set trimspool on
echo set colsep ','
echo set feedback off
echo set heading off
echo set arraysize 5000
echo SPOOL c:\abc.txt
echo SELECT * FROM XMLTEST11;
echo SPOOL OFF 

... in his own example myscript.sql file and then call on the sqlplus command line...

sqlplus demo_user/sms123@orcl @myscript.sql

Tags: Database

Similar Questions

  • sqlldr: use data = file name, but also 'fix'...

    Hello

    I would like to know if it helps to specify the size of record for example, "fix 96" in a direct charge.
    the recording is fixed and has decimal/characters only.


    In this case, how can I specify that the rec is "fix" without Hardcoding the file name in the control file?

    It seems he can follow only INFILE, which involves hard - coded file name but I want the file name for the ctl file becomes reusable.

    for example, data sqlldr = < Filename > "Challenge 96" control = < generic_controlfile >




    Thank you.

    Rustydud

    You can generate your control on the fly file. For example, under unix

    Start with a generic.ctl file:

    ...
    INFILE %filename% "fix %recsize%"
    ...
    

    Now provide the actual values you want:

    filename=$1
    recsize=$2
    
    cat generic.ctl | sed -e s/%file%/$filename/ | sed -e s/%recsize%/$recsize >/tmp/specific.ctl
    
    sqlldr u/p control=/tmp/specific.ctl
    

    Any use to you?

    HTH

    Nigel cordially

    Edited by: nthomas on January 8, 2009 13:46 (added missing %)

  • Mac adds the extension txt for dat files

    Hello

    I download the files with the extension dat but when are already downloaded I see another extension txt (F4409.dat.txt). I need to use dat files in another program and convert my file to text file prevents me to do. I would like to block the conversion of files without my approval on my mac. Remove the additional extension (.txt) does not help. I still can't use file in a program that I need for analysis of the data. Help, please.

    AS

    Download from which site?

    Download of what app (a browser)?

  • Simulation read data file (*.) (DAT) by using the worksheet (file reading eror - zeros)

    Dear OR community,

    IM pretty new in LabVIEW, so I have a few broblems with reading the data.

    I take a screenshot and mark a problem like part - A and part b below:

    The description of the goal:

    I do a mathematical simulation, using the old software whitch exporting results as shown in 1... DAT file, as it shown in the picture (Notepad).

    First of all I need not read these data then I need to draw the graph XY.

    Description of the problem:

    I created a LabVIEW program and im using a funciont reading of spreadsheet per section B - but when im trying to read data im getting all zeros...

    so I can't identify my problem... What is the problem?

    I try different file to read its Case_test_working.txt and everything is good with this data but when im trying to read *. DAT file zeros is array...

    I tried to use seperator different symbols, also try to imort data to exel then export to *.scv, *.txt formats, but the performance was the same as that indicated in part-A.

    Whenever I get zeros, but not a results as in *. DAT or another file format exported with the same data.

    Please be respectifull and understand that im still newbie in labview but I think its excellent software of filtering of the analysis of data and calculations, so I want to master this software for my future use.

    Respectfully,.
    Tomas E


  • Can Unflatten string could be used to play the waveform given .dat file

    Hi, refer to these two threads

    http://forums.NI.com/T5/LabVIEW/can-LabVIEW-read-dat-file/TD-p/2243080

    http://forums.NI.com/T5/LabVIEW/2-complement-hex-convert/TD-p/2245980

    I tried to read the file Dat using string Unflatten and Got this error.

    Can someone tell me how to do?


  • Error problem of DAT file "another program or person uses.

    Original title: DAT file problem?

    I have a file Dat and ntuser file that I can't remove C Docs and settings it keeps telling that another program or person uses it. That is not possible since I deleted the user name that the file belongs to. So I wonder what can I do to get rid of this thing? I have rid his vital to the BONE, but it is a limted not the admin account account and I deleted it so nothing should be left.

    Thank you

    I have a file Dat and ntuser file that I can't remove C Docs and settings it keeps telling that another program or person uses it. That is not possible since I deleted the user name that the file belongs to. So I wonder what can I do to get rid of this thing? I have rid his vital to the BONE, but it is a limted not the admin account account and I deleted it so nothing should be left.

    Thank you

    ==================================
    Possibilities...

    Right click / Rename the file, and then delete.

    Move the file to another folder and then delete...

    You may delete the file after a reboot
    and if you've already tried that... it can be a useful
    try to remove mode without failure.

    (315222) a Description of the Safe Mode
    Boot into Windows XP options
    http://support.Microsoft.com/?kbid=315222

    Also... the following freeware may be useful:

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Unlocker
    http://www.filehippo.com/download_unlocker/
    (works on - Windows 2000, XP, Vista, 7, 8)
    (the download is: Unlocker1.9.2.exe)

  • using the toll sytem of professional backup backup, XP my documents and settings, are saved outlook data files

    using the toll sytem of professional backup backup, XP my documents and settings, are saved outlook data files

    Hi cmoore2685,

    ·         You get the error message?

    ·         Did you do changes on the computer before the show?

    Follow the steps in the article.

    How to use Backup to protect data and restore files and folders on your computer in Windows XP and Windows Vista

    http://support.Microsoft.com/kb/309340

    For reference:

    How to back up and restore Outlook Express data

    http://support.Microsoft.com/kb/270670

  • easy transfer can be used to reload the data files after formatting hard drive?

    I have been informed by level microsoft 2 I have to reformat my hard drive to fix the problem with windows backup (snapshot won't work).  easy transfer will copy all THE data files, including OUTLOOK 2007 on hard drive and then I can reinstall on reformatted drive.

    Easy transfer copy some things but not all things. He does more that can make a simple copy/paste (such as the settings for example) but, for example, not programs transfer (those who need to be put back in place).  Here is a description of what it does (and does not): http://support.microsoft.com/kb/928635.  It will transfer Outlook 2007 PDF files and other personal data if they are selected - you need to know which files you need and where to select them - but it won't transfer the program (which must be put back in place).  It must be run before you reformat the hard disk to collect data and then you can transfer everything what you have registered once the system is re-installled.  You would do the re-setup prior to the transfer.

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • How to view NTUSER. DAT file as to the registry without using it?

    How to view NTUSER. DAT file as to the registry without using it?

    The file is from a different Windows instalation!
    I have Win 7 but it comes from my old Windows xp.

    Hi Leonnis,

    There are many ways to read the registry file without using regedit.
    Some ways:
    RegLookup: RegLookup project is dedicated to the direct analysis of Windows NT registry files. RegLookup is distributed under the GNU GPL license and is implemented in ANSI C. RegLookup provides a C API, a Python module and command line tools to access registry data structures.
    Download here: http://projects.sentinelchicken.org/reglookup/
    RegViewer: Is GTK 2.2 based registry Windows GUI file browser. It is platform-independent for the review of the files of Windows registry from any platform. Particularly useful in forensics files Windows of * nix systems.
    Download here: http://regviewer.sourceforge.net

    RegRipper:

    RegRipper is an application of forensics software open source developed by Harlan Carvey. RegRipper, written in Perl, is a tool for extracting data from Windows registry.
    Download here: http://regviewer.sourceforge.net
    KRegedit:
    kregedit is a KDE utility for the visualization of the native Windows registry files. It is similar to the regedt32 utility that is found on most Windows platforms. Only the format of the NT (NT4/2000/XP) registry is supported.
    Paulo Breim
    Centro Brasileiro Pericia

    Help, please!

  • Tablespace does not use a certain data file

    Hi all, I am new to Oracle DB. Reported by developer that storage space is full, and then I found that there are two data files associated with the storage space by checking dba_data_files. The first data file size is already full of 32GB, and the second is 8GB. However, it seems that the tablespace does not use the data file second when I check the free space of the tablespace because I cannot find its use. That's why Oracle DB shows ORA-01654 and tell me to add another data file. I fix this by adding another data file. But I'm just wondering why it seems that the tablespace does not use the second data file, I checked the status of second in the data file is online of v$ datafile. Could someone give me an idea about this problem? Thank you very much.

    c115bca7-E432-460f-a0c5-273b2157dcbe wrote:

    Hi all, I am new to Oracle DB. Reported by developer that storage space is full, and then I found that there are two data files associated with the storage space by checking dba_data_files. The first data file size is already full of 32GB, and the second is 8GB. However, it seems that the tablespace does not use the data file second when I check the free space of the tablespace because I cannot find its use. That's why Oracle DB shows ORA-01654 and tell me to add another data file. I fix this by adding another data file. But I'm just wondering why it seems that the tablespace does not use the second data file, I checked the status of second in the data file is online of v$ datafile. Could someone give me an idea about this problem? Thank you very much.

    1 cause the second data file - is not activate with auto-extend and its fixed size, 8 GB, which could deliver the extensions are not free - filled and that you may not able to find any free extends from dba_free_space
    2. Please activate auto extend for this data file and add the new data file based on space allocation.

    -Pavan Kumar N

  • Automatically deleted from the storage of the DSO after data files using the command cp ASMCMD... why?

    I installed Oracle database on Linux 6.6, Virtualbox 11.2.0.1.0.

    I used ASM for database storage.

    When I want to perform a backup in offline mode. I stop the database data files and copy to the filesystem as follows (for example).

    ASMCMD [+] > cp +DATA/ora11g/datafile/system.270.883592533/u01/app/oracle

    The files copied with success and also any other data files, logs and controlfiles files. Then, I also rename all the files in editing mode.

    After that, I used the backup files to start the oracle of backup (storage non - ASM with new pfile edited)

    Open successfully from a backup database.

    But when I want to use old spfile to open the database for the storage of the DSO again, a few errors have occurred as no data files in ASM storage.

    I check the contents of the ASM storage with ASMCMD commands. And realize that there only spfile and controlfile located ASM storage and other files: data files and online redo logfiles automatically deleted.

    Why the data files and log files deleted ASM storage? Is this normal? I have no delete all files of the DSO.

    It is actually deleted from the use of the cp command?

    Exactly what we say.  Data in ASM files are OMF (Oracle managed files).  The RENAME translates the DSO by deleting the original file.

    Hemant K Collette

  • Issue while loading data using the file Rules Essbase

    Hi all

    I am facing problem while loading data using the Rules file. In the rules file, I rejected several members in two areas (two dimensions). Now if I load the data using the rules file I'm getting errors for all members in the dataload.err file. If I reject mutiple members of a single field, the data load without settling errors in the dataload.err file.

    I want to know how rmany members of several fields of ejection for loading data using the file Rules Essbase? Is it possible?

    Okay, okay... I think that you must assign Global Select / reject Boolean in the parameters of loading data as 'Or':

  • Impossible to add date in dumpfile using a file &amp; export

    Hi all

    OS = SOLARIS SPARC 64-bit 11

    DB = Oracle 12 c

    I am planning a daily backup of the database using cron tasks, do I have to create a simple script. In this script, I will inaugurate the export dump using parameter files. The dump file must contain the date of the backup.

    Since this is my first time this is done, I was looking around and found a method on the date of the addition in the dump file. But I still couldn't it works when I get home all in a parfile.

    At first, I tried to run the backup without using the nominal file, and it works as below.

    export ORACLE_SID = ELMTEST

    Export mydate = "date"+ %Y %m %d"'"

    echo $mydate

    20141117

    oraelm@hrmdbd01:/backup/Elm$ expdp system/manager@ELMTEST directory dpump_dir1 dumpfile = hrtestexp_ = $ {mydate} .dmp nologfile = y

    Export: Release 12.1.0.1.0 - Production on Mon Nov 17 11:15:38 2014

    Copyright (c) 1982, 2013, Oracle and/or its affiliates.  All rights reserved.

    Connected to: Oracle 12 c Enterprise Edition Release 12.1.0.1.0 - 64 bit Production database

    With partitioning, Automatic Storage Management, OLAP, analytical advanced

    and Real Application Testing options

    Start "SYSTEM". "" SYS_EXPORT_SCHEMA_01 ": directory of system/***@ELMTEST = dpump_dir1 = hrtestexp_20141117.dmp nologfile dumpfile = y

    Current estimation using BLOCKS method...

    Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA

    Total estimation using BLOCKS method: 0 KB

    Processing object type SCHEMA_EXPORT/USER

    Processing object type SCHEMA_EXPORT/ROLE_GRANT

    Processing object type SCHEMA_EXPORT/DEFAULT_ROLE

    Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA

    Object type SCHEMA_EXPORT/SYNONYM/SYNONYM of treatment

    Object type SCHEMA_EXPORT/TABLE/TABLE processing

    Object type SCHEMA_EXPORT/TABLE/COMMENT of treatment

    Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX

    Object type SCHEMA_EXPORT/TABLE/CONSTRAINT/treatment

    Object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS of treatment

    Object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS treatment

    Object type SCHEMA_EXPORT/STATISTICS/MARKER of treatment

    Processing object type SCHEMA_EXPORT/POST_SCHEMA/PROCACT_SCHEMA

    Main table 'SYSTEM '. "" SYS_EXPORT_SCHEMA_01 "properly load/unloaded

    ******************************************************************************

    Empty the file system set. SYS_EXPORT_SCHEMA_01 is:

    /Backup/Elm/hrtestexp_20141117.dmp

    Work 'SYSTEM '. "" SYS_EXPORT_SCHEMA_01 "completed Mon Nov 17 11:16:39 2014 elapsed 0 00:00:59

    However when I came all in my parameter file it failed.

    UserID=System/Manager@ELMTEST

    Directory = dpump_dir1

    dumpfile = hrtestexp_$ {mydate} .dmp

    logfile = test_exp.log

    Export: Release 12.1.0.1.0 - Production on Mon Nov 17 11:18:25 2014

    Copyright (c) 1982, 2013, Oracle and/or its affiliates.  All rights reserved.

    Connected to: Oracle 12 c Enterprise Edition Release 12.1.0.1.0 - 64 bit Production database

    With partitioning, Automatic Storage Management, OLAP, analytical advanced

    and Real Application Testing options

    ORA-39001: invalid argument value

    ORA-39000: bad dump file specification

    ORA-39157: Error adding extension to file ' hrtestexp_$ {mydate} .dmp ".

    ORA-07225: sldext: translation error, impossible to expand file name.

    Additional information: 7217

    Can someone help me on this please?

    Thank you very much

    Jason

    To expand a bit on Richard to answer...

    The reason why it works on the command line, not in the file because the command line itself is processed by the processor of the shell.  The shell bed processor line, performs substitutions (like your $mydate) environment variables and THEN load the requested executable (expdp) it passing the fully expanded command line.

    On the other hand, him parfile is read and processed ONLY by expdp, which knows no substitution of environment variables.

    There are several common ways to deal with this.

    We have to leave everything right on the command line.

    Another would be to have the shell script to write the nominal file as well:

    export ORACLE_SID = ELMTEST

    Export mydate = "date"+ %Y %m %d"'"

    echo $mydate

    20141117

    export parfile = myparfile.txt

    Directory = dpump_dir1 echo > $parfile

    dumpfile = hrtestexp_ echo $ {mydate} .dmp > $parfile

    echo nologfile = y > $parfile

    oraelm@hrmdbd01:/backup/Elm$ system/manager@ELMTEST expdp parfile = $parfile

    Another technique is to use the redirection of input:

    oraelm@hrmdbd01:/backup/Elm$ expdp system/manager@ELMTEST<>

    Directory = dpump_dir1

    dumpfile = hrtestexp_$ {mydate} .dmp

    nologfile = y

    MOE

    A few other comments

    First of all, as already pointed out, the export is not a backup, at least not a physical backup.  To use export for recovery, you must first have a working database.  It will be no help if you have a failure of a support on a data file.

    Second, you really need to capture a log file, rather than nologfile = y.  This log file can be valuable in any number of situations.  Why in the world would you delete?

  • Using .split on an import script with a comma delimited data file

    Hi everyone-

    Any attempt to create a script to import amount field to remove the apostrophes (') of a description field to account in a .csv data import file (any folder with an apostrophe will be rejected during the import phase).  Now if it was a file delimited by semicolons (or other separators and more by commas), I could remove all the apostrophes recording with a string.replace command, then return the amount with a command of string.split.  Unfortunately, there is a problem with this solution when using comma delimiters. My data file is comma-delimited .csv file with several amount fields that have commas in them.   Even if the fields are surrounded in quotes, the .split ignores the quotes and treats the commas in fields amount as delimiters.  Therefore, the script does not return the correct amount field.

    Here is an example of a record of reference data:

    "", "0300-100000", "description of the account with an apostrophe ' ', '$1 000.00",' $1 000.00 "," $1 000.00 ","$1 000.00"," $1 000,00 "" "

    My goal is to remove the apostrophes from field 3 and return the amount in field 8.

    Some things to note:

    • If possible, I would like to keep this as an import script for amounted to simplify administration - but am willing to undertake the event script BefImport if this is the only option or more frank than the import script-based solution.
    • I tried using regular expressions, as seems to be conceptually the simplest option to respect the quotes as escape character, but think that I am not implementing properly and impossible to find examples of regex for FDMEE.
    • I know that we cannot use the jython csv on import the script by Francisco blog post - fishing with FDMEE: import scripts do not use the same version of Jython as event/Custom scripts (PSU510). This may be a factor to go with a script of the event instead.
    • It's probably a little more engineering solution, but I have considered trying to write a script to determine where to start all the quotes and the end.  Assuming that there are no quotation marks on the inside of my description of account (or I could remove them before that), I could then use the positioning of the quotes to remove commas inside those positions - leaving the commas for the delimiters as is.  I could then use the .split as the description/amount fields have no commas.  I think it may be better to create a script of the event rather than down this solution from the point of view to keep administration as simple as possible
    • Yes, we could do a search and replace in the excel file to remove the apostrophes before import, but it's no fun

    Thanks for any advice or input!

    Dan

    Hi Dan,.

    If your line is delimited by comma and quote qualified, you can consider the delimiter as QuoteCommaQuote or ', ' because it comes between each field.  Think about it like that, then simply divided by this value:

    split("\",\"")

    Here's something I put together in Eclipse:

    '''

    Created on Aug 26, 2014

    @author: robb salzmann

    '''

    import re

    strRecord = "\"\",\"0300-100000\",\"Account description with an apostrophe ' \",\"$1,000.00\",\"$1,000.00\",\"$1,000.00\",\"$1,001.00\",\"$1,002.00\""

    strFields = strRecord.split("\",\"")

    strDescriptionWithoutApos =  strFields[2].replace("'", "")   'remove the apostrophe

    strAmountInLastCol = strFields[-1:].replace("\"", "")        'You'll need to strip off the last quote from the last field

    print strDescriptionWithoutApos

    print strAmountInLastCol

    Account with an apostrophe description

    ' $1 002,00

  • The splash screen is not up-to-date files more recent ten. I use 2015.1.1 is there a parameter? Preference?

    The splash screen is not up-to-date files more recent ten. I use 2015.1.1 is there a parameter? Preference?

    Hi Jontbm,

    Go to the file menu > open recent item > clear recent files list > restart Photoshop and then check out.

    Kind regards

    Claes

Maybe you are looking for

  • The HP 12 c Platinum PC software activation failure

    Hello. I bought a copy of the HP12C Platinum PC software online on the website of the HP Calculator but could not get the software to enable the use of the information provided by HP/MyCommerce.  Online activation treats 6 times attempts and fails to

  • Satellite L300 - my does reead ' DVD-RAM DVD drive t

    My DVD - ram drive (mast * a DVD - ram uj-850 s) doesn t read DVD s, in fact it only reads CD. I had this problem about a week ago and I m sick of this. My lap top is Toshiba Satellite L300.It came with Vista but I installed Windows XP Home edition i

  • Satellite P50T-A-125-backlit keyboard does not work

    I recently bought this P50t a-125 and the enlightened retro keyboard does not work. I looked in the Bios and the "LED illumination" feature is missing (I have bios 1.70). The feature is also out of office help. Thanks in advance for the help

  • Devices of simulations not support value 'ReadRelativeTo' to 'MostRecentSample '?

    I use a device to simulate in my proposed acquisition of analog signal, and when I try to set the property 'ReadRelativeTo' of the workflow to "MostRecentSample", it throws an error saying that I can't use "CurrentReadPosition".  This happens with a

  • Compaq CQ57: password clear bios (Compaq CQ-57)

    Hi I can not access my laptop because of a bios administrator password has locked me, I need help to clear the bios password...   It says code system off: 72782783 has soon ezpzpc