SQLPLUS spool to create .dat files - problems

I am using spool from sqlplus to generate
.dat files for sqlldr. The problem is with
numeric fields. I have SET numwidth, numformat to no avail. The fields defined with specific numeric size number(n) always get spooled with a longer column size.
Also, the COLSEP character does not appear
after all columns. Any ideas out there ?
(I realize export/import is an easier solution )

Try using TO_CHAR, LPAD, SUBSTR and other character functions to achieve the same. Also, if you have not SET HEAD OFF, then do that, or use alias for the formatted columns in case you need headings.

Similar Messages

  • Syncing Bookmarks Creating .dat file

    Every time that I'm syncing my bookmarks some 300 .dat files are created (.dat.) as a bookmarks in IE, scattered around my favorites. The .dat files do not show on the iPhone just as links in IE.
    Does anybody know how to solve this problem?
    (It occured earlier: "Syncing Bookmarks Creating .dat file" Posted: Jul 19, 2008 7:45 AM, no solution vissible there!)
    Message was edited by: jgvde

    I am having the same issue, is the solution still to unselect "sync bookmarks" ?? This seems like a waste of a function on the apple product. I find the .dat files extremely annoying as I seem to only be able to delete them individually and there are hundreds of them created. Come on apple, this has been going on for over 5 years now. What is the soution??????

  • Large Data file problem in Oracle 8.1.7 and RedHat 6.2EE

    I've installed the RedHat 6.2EE (Enterprise
    Edition Optimized for Oracle8i) and Oracle
    EE 8.1.7. I am able to create very large file
    ( > 2GB) using standard commands, such as
    'cat', 'dd', .... However, when I create a
    large data file in Oracle, I get the
    following error messages:
    create tablespace ts datafile '/data/u1/db1/data1.dbf' size 10000M autoextend off
    extent management local autoallocate;
    create tablespace ts datafile '/data/u1/db1/data1.dbf' size 10000M autoextend off
    ERROR at line 1:
    ORA-19502: write error on file "/data/u1/db1/data1.dbf", blockno 231425
    (blocksize=8192)
    ORA-27069: skgfdisp: attempt to do I/O beyond the range of the file
    Additional information: 231425
    Additional information: 64
    Additional information: 231425
    Do anyone know what's wrong?
    Thanks
    david

    I've finally solved it!
    I downloaded the following jre from blackdown:
    jre118_v3-glibc-2.1.3-DYNMOTIF.tar.bz2
    It's the only one that seems to work (and god, have I tried them all!)
    I've no idea what the DYNMOTIF means (apart from being something to do with Motif - but you don't have to be a linux guru to work that out ;)) - but, hell, it works.
    And after sitting in front of this machine for 3 days trying to deal with Oracle's, frankly PATHETIC install, that's so full of holes and bugs, that's all I care about..
    The one bundled with Oracle 8.1.7 doesn't work with Linux redhat 6.2EE.
    Don't oracle test their software?
    Anyway I'm happy now, and I'm leaving this in case anybody else has the same problem.
    Thanks for everyone's help.

  • SQL Loader and foreign characters in the data file problem

    Hello,
    I have run into an issue which I can't find an answer for. When I run SQL Loader, one of my control files is used to get file content (LOBFILE) and one of the fields in the data file has a path to that file. The control file looks like:
    LOAD DATA
    INFILE 'PLACE_HOLDER.dat'
    INTO TABLE iceberg.rpt_document_core APPEND
    FIELDS TERMINATED BY ','
    doc_core_id "iceberg.seq_rpt_document_core.nextval",
    -- created_date POSITION(1) date "yyyy-mm-dd:hh24:mi:ss",
    created_date date "yyyy-mm-dd:hh24:mi:ss",
    document_size,
    hash,
    body_format,
    is_generic_doc,
    is_legacy_doc,
    external_filename FILLER char(275) ENCLOSED by '"',
    body LOBFILE(external_filename) terminated by EOF
    A sample data file looks like:
    0,2012-10-22:10:09:35,21,BB51344DD2127002118E286A197ECD4A,text,N,N,"E:\tmp\misc_files\index_testers\foreign\شیمیایی.txt"
    0,2012-10-22:10:09:35,17,CF85BE76B1E20704180534E19D363CF8,text,N,N,"E:\tmp\misc_files\index_testers\foreign\ลอบวางระเบิด.txt"
    0,2012-10-22:10:09:35,23552,47DB382558D69F170227AA18179FD0F0,binary,N,N,"E:\tmp\misc_files\index_testers\foreign\leesburgis_á_ñ_é_í_ó_ú_¿_¡_ü_99.doc"
    0,2012-10-22:10:09:35,17,83FCA0377445B60CE422DE8994900A79,binary,N,N,"E:\tmp\misc_files\index_testers\foreign\làm thế nào bạn làm ngày hôm nay"
    The problem is that whan I run this, SQL Loader throws an error that it can't find the file. It appears that it can't interpret the foreign characters in a way that allows it to find that path. I have tried adding a CHARACTERSET (using AL32UTF8 or UTF8) value in the control file but that only has some success with Western languages, not the ones listed above. Also, there is no set of defined languages that could be found in the data file. It essentaially could be any language.
    Does anyone know if there is a way to somehow get SQL Loader to "understand" the file system paths when a folder and/or file name could be in some other langauge?
    Thanks for any thoughts - Peter

    Thanks for the reply Harry. If I try to open the file in various text editors like Wordpad, Notepad, GVIM, andTextpad, they all display the foreign characters differently. Only Notepad comes close to displaying the characters properly. I have a C# app that will read the file and display the contents and it renders it fine. If you look at the directory of files in Windows Explorer, they all are displayed properly. So it seems things like .Net and Windows have some mechanism to understand the characters in order to render them properly. Other applications, again like Wordpad, do not know how to render them properly. It would seem that whatever SQL Loader is using to "read" the data files also is not rendering the characters properly which prevents it from finding the directory path to the file. If I add "CHARACTERSET AL32UTF8" in the control file, all is fine when dealing with Western langauges (ex, German, Spanish) but not for the Eastern languages (ex. Thai, Chinese). So .... telling SQL Loader to use a characterset seems to work, but not in all cases. The AL32UTF8 is the characterset that the Oracle database was created with. I have not had any luck if I try to set the CHARACTERSET to whatever the Thai character set is, for example. There problem there though is that even if that did work, I can't target specific lagauages because the data could come from anywhere. It's like I need some sort of global "super set" characterset to use. It seems like the CHARACTERSET is the right track to follow but I am not sure, and even if it is, is there a way to handle all languages.
    Thanks - Peter

  • LabVIEW created .DAT file with saving only new data on existing files

    I can successfully create and save a .DAT file using LabView and Diadem.   The save command I am using (in Labview) only overwrites existing files, I would like it to save only the new data from the last save.  Overall I would like to save the data every 1hr and since my test will last for many hours, the further along in the test the longer it would take to save the full file.  I know Diadem has the capability to save in such a manner, so I have thought about after I write to Diadem have a small Diadem application save periodically, but I haven't found a way to save the .DAT file, with out any signals coming into the save function.  I have attached the example .DAT file creater and saver I am using to figure it out.  thanks for your help!

    Howdy New Guy -
    I am not sure if you are looking to append to a file, or if you would
    like to overwrite a file.  In either case, you can take a look at
    the "Append To File.vi" example for DIAdem. 
    Either way, you may be experiencing problems because you are only using
    the "DIAdem Simple File Write.vi" (found on the DIAdem >> DAT
    Files palette).  Instead, you can use the "DIAdem File Write.vi"
    (located on teh DIAdem >> DAT Files >> DAT Files Advanced
    palette).  This VI can be set to overwrite or append to file.
    I hope this helps in your development!
    Andrew W. || Applications Engineer

  • Syncing IE bookmarks creates .dat files on desktop

    Hi, syncing Internet Explorer bookmarks with iPad or iPhone creates files with the form .dat1a34.004. Everytime I sync more of these files are created, littering the favorites folder. They also appear on the IE favorites. Doing a google search I can see that this is a long standing issue. Is there any way to solve this? Is anyone else experiencing th problem? I am using IE 9 but had the same issue with IE 8. Thanks.

    I am having the same issue, is the solution still to unselect "sync bookmarks" ?? This seems like a waste of a function on the apple product. I find the .dat files extremely annoying as I seem to only be able to delete them individually and there are hundreds of them created. Come on apple, this has been going on for over 5 years now. What is the soution??????

  • Import dimension and member via maxl, how to create data file and rule file

    Hi
    I have a task to import dimension and member into Essbase, for project requirement, I have to use text file or spreadsheet file.
    I wonder which format can be imported into Essbase?
    I tried to create them, failed.
    Do you have any samples to help me? dimension file and rule file...
    I search a lot in http://gerardnico.com/wiki/epm/essbase/dimension_build#about , but there are no samples.
    Thanks in advance...
    Best regards,
    Samantha

    import database Sample.Basic data from data_file 'C:\TEMP\GENREF.txt' using rules_file 'C:\TEMP\GENREF.rul' on error append to 'C:\TEMP\logs\dimbuild.log';Here issue is not with rulefile but in reading the rule file.
    I hope rule file is in the database directory (By default it will get saved there only)
    Try with the below command
    import database Sample.Basic data from data_file 'C:\TEMP\GENREF.txt' using server rules_file 'GENREF' on error append to 'C:\TEMP\logs\dimbuild.log';
    Rule file also had one issue
    Market, Product, Measures, Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, DecHere I am seeing only four dimensions from the Sample.Basic database
    Scenario is missing. So define Actual (Scenario Dimension member) in the rule file header definition.
    All dimensions must be identified to parse one data file with rule file.
    PS: Naming (GENREF) is also irrelevant if you are loading data. It is apt for dim load.

  • System information - create date, file paths, etc

    How do I add system information to the master page of a form so that I can see the create date, last
    updated, page numbers and file path information and have it printed on the bottom of each page?

    You can access the Doc object that is exposed in the Acrobat JavaScript API.
    For example,
    var doc = event.target;
    xfa.host.messageBox("Author " + doc.author + " Created date " + doc.creationDate + " File path " + doc.URL);
    See Doc API reference at
    http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.375.html
    Steve

  • Corecenter creates dat file

    when corecenter is started, it creates a file info.dat in my startup folder. (is this normal??)
    This is kinda annoying, because after a reboot, windows tries to open this file (and I always have to close it)
    Anyone knows why this file is created, and how to get rid of the self-creation function of this file.
    The contents of this file are always a couple of zeros and nothing else.
    Strange, but very annoying.
    Can anyone help??
    Cheers

    >Any suggestions?
    Google .dat file, find out what it is and find out what it takes to open it?

  • Eclipse-jcop project building { create .cap file } problem??????????????

    hello all,
    I am using jcop tool plugin with eclipse and my atr is:-
    --Opening terminal
    /card -a a000000003000000 -c com.ibm.jc.CardManager--Waiting for card...
    ATR=3B E9 00 00 81 31 FE 45 4A 43 4F 50 34 31 56 32    ;....1.EJCOP41V2
        32 A7                                              2.everything is fine with sample applet { it contain a empty process () or gives 90 00 for select applet apdu }
    I am using eclipse ide and jcop plugin, basically my problem is to building project when any changes occoured, initially when i start a new project with steps like:-
    1- java card project
    2-java applet
    3-package id
    4-applet id
    5-basic template of applet
    N- finish
    ok
    then when screen open, at the left side i saw cap file propery window ,and automatically there are cap file in bin folder.
    It means jcop tool used converter to make .cap file, but when i add some lines according to my requirment,
    I am unable to build it again or unable to get a new cap file. May be i need to set some build path , but first time it automatically build so it also indicate that there are no need to set the build path. I am confused in this area.
    Is i need to reference the path of converter.jar { jcdk 2.2.1 }? or jcop plugin also have the required jar for converting .class to .cap , inside it. how i rebuild it and make a new fresh .cap file.
    some jar file which i paste in plugin folder of eclipse are:-
    com.ibm.bluez.jcop.eclipse.demopack_1.0.2.jar
    com.ibm.bluez.jcop.eclipse.perftest_1.0.2.jar
    com.ibm.bluez.jcop.eclipse.signlite_1.0.2.jar
    com.ibm.bluez.jcop.eclipse.targetpack.gemplus_1.0.0.jar
    com.ibm.bluez.jcop.eclipse.targetpack_1.0.3.3.jar
    com.ibm.bluez.jcop.eclipse_1.0.3.3.jar
    com.ibm.bluez.jcop.eclipse_3.1.1.a.jarbefore i was using JCDE plugin for simulation process but here i did not use JCDE, I have only eclipse + jcop plugin
    I tried to tell you, what is my problem, If you still have any doubt , Let me know.
    Waiting for your reply and thanks for your time ............

    Thanks Umer for your suggestion , but i dont need to do this, It was my silly mistake to handle the things properly.
    Initially i was unable to getting the eclipse and JCOP concept, but now i do. now I am able to build the project or eclipse is building it automatically !!!! I faced this problem b'se i am a newbie in java card. but now things going good to me.
    I want to share my getting here:--
    My dout was - Is jcop intially have all the Jar's , converter which is required to create a cap file????
    My ans is - Yes, EVERYTHING IT HAVE INSIDE.
    you just get eclipse ide and get jcop plugin, and paste jcop plugin jar's inside the plugin folder of ecipse and START ECLIPS AGAIN.
    NOW EVERYTHING IS SET FOR YOU,
    NO REQUIREMENT OF JCDE-java card development envoirnment
    no requirement of jcdk- java card development kit ,
    no requirement of set any build path in eclipse. just make your applet , and run with jcop tool.ECIPSE AUTOMATICALLY BUILD OPTION WILL CREATE A FRESH .CAP FILE WHENEVER U MADE A NEW CHANGES
    cheers!!!

  • Creating data file

    I am writing code to compare a temperature database to a thermocouple reading and based on the comparison, adjust heaters. My inputs are the starting temperature and the degrees per minute that the heat must rise at. Based on this info how, in LabView, do I create this temperature profile to compare the TC reading to.

    Hi Jason,
    I think the easiest thing to do would be to use a shift register with a for loop. Begin with your starting temperature and deg/hr. Let's say you want 6 temperature steps per hour (six increments in your file) and your rate is 60 deg/hr (as in your previous post). That would come out to 200, 210, 220, 230, etc. An example of how you might implement this is attached below (7.1 format -- let me know if you need something earlier). I've implemented it as a text file, though you could make whatever kind of file you like (depending on how you use it in your application).
    When you're ready for the comparison part of your application, you can iterate through the text file and compare you current temperature readings to those in the file. Let me know if you have questions about the VI attached below.
    Best of luck!
    Charlie S.
    Visit ni.com/gettingstarted for step-by-step help in setting up your system
    Attachments:
    tempfile.vi ‏37 KB

  • Created executable file problem

    Hi everyone
    I'm using NXT toolkit with my Labview 2010. Now I'm trying to built the executable file from my VI. My VI is pretty simple consists of 1 motor and 1 Knob as controller. I used the usb for the connection between pc and NXT brick. I attached the VI and the exe file below. 
    However, after successful built, the executable file seems like doesn't connect to the NXT motor. I mean even I move the Knob, there are nothing changes in the motor. 
    I found this link http://digital.ni.com/public.nsf/allkb/522DF60F5531EA02862574F60074525A . In my case, however, I'm using USB instead of bluetooth and actually, I can't find the NXTToolkit.BluetoothLibraryReferences.vi in my pc. Therefore, I don't know how solve this hard problem.
    Please help me to overcome this problem. 
    Thank you so much.
    Mina
    ---Let it works---
    Attachments:
    nxttest.vi ‏8 KB
    My Application.zip ‏568 KB

    Thank you so much for your comment
    That is the good sound for me while the NXT direct I/O is supported. I'm trying to use the motor unlimited in NXT Direct I/O. Howerver, I'm not familiar with using that. Therefore, my VI couldn't connect with the motor.
    I attached the VI below. Please help me consider it and indicate the problem.
    Please let me know if any clarification is needed of my issue.
    Thank you so much and looking forward to hearing from you
    Best regards
    Mina
    ---Let it works---
    Attachments:
    nxttest.vi ‏15 KB

  • Android reader and Paperport 12 created PDF files problem

    i am having a problem with Android reader and documents created with nuance Paperport 12. The documents are a uniform 380k and contain a scanned monochrome image. The problem is as follows - When I open the document the page displays correctly but is way too small to be read on the device. The device is a Sony Ericsson Xperia X10 mini running Android 2.1 update 1. I have duplicated the problem exactly on a Sony Ericsson Xperia X10 mini pro.
    What happens is when you zoom in on the document the page goes blank. There are no restrictions or security options on the document and the metadata shows nuance Paperport 12 as the creator. I can zoom in on the document on any other device other than the android handsets.

    i am having a problem with Android reader and documents created with nuance Paperport 12. The documents are a uniform 380k and contain a scanned monochrome image. The problem is as follows - When I open the document the page displays correctly but is way too small to be read on the device. The device is a Sony Ericsson Xperia X10 mini running Android 2.1 update 1. I have duplicated the problem exactly on a Sony Ericsson Xperia X10 mini pro.
    What happens is when you zoom in on the document the page goes blank. There are no restrictions or security options on the document and the metadata shows nuance Paperport 12 as the creator. I can zoom in on the document on any other device other than the android handsets.

  • Problem while adding a new data file

    Hi
    I add a data file into an existing tablespace. It created data file and did not give any error message.
    But in the live system, we gets errors:
    ORA-01157: cannot identify/lock data file 12 - see DBWR trace file
    ORA-01110: data file 12: 'D:\ORACLE\PRODUCT\10.2.0\.....ms5 ORA-06512: at line 1
    what is the problem

    user4030266 wrote:
    Yes I wonder it also. I do not have an access to their system where db exists. I am a developer.
    But When I look at toad, I see that some percent of the datafile is full and it is not online. I think it achieved to write to datafile before but now it gives errors. it is very strangeYou are a developer and you are allowed to make changes on the production system? Do you not have a DBA in house?
    Get your DBA to look into this matter at the earliest.

  • Mismatch in "Date Created" in File Properties vs IPTC Core

    I have scanned my old photos in .jpg format.  When I try to change the Date Created (Select Photo -> Right-Click -> File Info... -> under IPTC Image -> Change the Date Created to the date the event was held), the Date Created under File properties did not change.  In effect, when I want to do a search of dates, it does its search on the Date Created in File properties.
    Can I change the date on the File Properties?  If so, how.  Can this be done on a batch, like synchronization of Date Created in File Properties and IPTC Core but using the information on the IPTC core.
    btw, I am using Bridge that comes part of the Photoshop CS2.
    Heeelllllppppp........

    There have been several posts about changing the "date created" in Bridge.  The conclulsion is NO.  There are other programs that can do this so concentrate your efforts there (do not have a list so will have to explore).
    Do not confuse the three "dates" that are in metastock.
         Date Created (as set by camera when shot).
         Date File Created
         Date File Modified

Maybe you are looking for

  • Can I change my Macbook Air's Graphics card?

    Hello, I'm having a problem with my Macbook Air's graphics card. When i open After Effects CC, it says that i need an approved NVIDIA Graphics. That in other means, should I change my Macbook Air's graphics card? Even some programs requires me an NVi

  • Why cant I drag and drop photos onto my iPhone in iPhoto?

    I just want to put some photos on my iPhone!

  • Smartforms to pdf and send mail

    PROGRAM : *& Report  ZDB_PDFMAIL REPORT  zdb_pdfmail. Internal Table declarations DATA: i_otf TYPE itcoo OCCURS 0 WITH HEADER LINE, i_tline TYPE TABLE OF tline WITH HEADER LINE, i_receivers TYPE TABLE OF somlreci1 WITH HEADER LINE, i_record LIKE soli

  • ALV - Changed Data - CL_GUI_ALV_GRID

    Hi,   I´m doing an upload Button on my ALV Grid because the user must have the option to upload data throw Excel File, when I upload those Records to my Grid and them I uses the REFRESH_TABLE_DISPLAY Method the program didn´t recognize those records

  • In RDS Configuration, Test Connection is Succeful, but Test Debugger fail?

    In RDS Configuration, Test Connection is Succeful, but I click Test Debugger Test Debugger failL "it said : An RDS connnection was established but the ColdFusion RDS line debugger could not be contacted.  The server gave the following message:  Coldf