Space, Boundfiller, etc.

Hey Gang,

I burned a bunch of time trying to figure this point and I'm offended!

Oracle 11 GR EE 2 with all the goodies on Linux

The Table-

  CREATE TABLE "VIA"."DUST_TMP" 
   ( "MEASURE_DT" TIMESTAMP (6), 
  "GEOM" "MDSYS"."SDO_GEOMETRY" , 
  "HEADING" NUMBER, 
  "SPEED" NUMBER
   ) SEGMENT CREATION IMMEDIATE 
  PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS NOLOGGING
  STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) ;

The data-

2011-02-26 17:12:46.000,34.072221999999996,-117.790046,67,58
2011-02-26 17:12:46.000,34.072221999999996,-117.790046,67,58
2011-02-26 17:12:47.000,34.072315000000003,-117.78976900000001,67,58
2011-02-26 17:12:47.000,34.072315000000003,-117.78976900000001,67,58
2011-02-26 17:12:49.000,34.072454,-117.788935,67,58
2011-02-26 17:12:51.000,34.072454,-117.788935,67,58
2011-02-26 17:12:49.000,34.072454,-117.788935,67,58
2011-02-26 17:12:50.000,34.072454,-117.788935,67,58
2011-02-26 17:12:51.000,34.072454,-117.788935,67,58
2011-02-26 17:12:50.000,34.072454,-117.788935,67,58

-The control file

options(
direct=false,
rows=1000,
load=10
)
load data
infile 'dataset.csv' "str '\r\n'"
append into table dust_temp
fields terminated by ','
OPTIONALLY ENCLOSED BY '"' AND '"'
trailing nullcols
           ( MEASURE_DT TIMESTAMP 'yyyy-mm-dd hh24:mi:ss.ff',
             a1 boundfiller,
             a2 boundfiller,
             HEADING,
             a3 boundfiller,
            speed  "(:a3 * 1609.344) / 3600",
             GEOM  expression "via.f_make_2dpoint(:a1,a2,8307)"
           )

-The log file

SQL*Loader: Release 11.2.0.1.0 - Production on Wed Jan 7 16:28:18 2015

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

Control File:   inrix.ctl
Data File:  Dataset.csv
  File processing option string: "str '
'"
  Bad File:     Dataset.bad
  Discard File:  none specified

 (Allow all discards)

Number to load: 10
Number to skip: 0
Errors allowed: 50
Bind array:     1000 rows, maximum of 256000 bytes
Continuation:    none specified
Path used:      Conventional

Table DUST_TMP, loaded from every logical record.
Insert option in effect for this table: APPEND
TRAILING NULLCOLS option in effect

   Column Name                  Position   Len  Term Encl Datatype
------------------------------ ---------- ----- ---- ---- ---------------------
MEASURE_DT                          FIRST     *   ,  O(") DATETIME yyyy-mm-dd hh24:mi:ss.ff
                                                      O(")
A1                                   NEXT     *   ,  O(") CHARACTER
  (BOUNDFILLER FIELD)                                 O(")
A2                                   NEXT     *   ,  O(") CHARACTER
  (BOUNDFILLER FIELD)                                 O(")
HEADING                              NEXT     *   ,  O(") CHARACTER
                                                      O(")
A3                                   NEXT     *   ,  O(") CHARACTER
  (BOUNDFILLER FIELD)                                 O(")
SPEED                                NEXT     *   ,  O(") CHARACTER
                                                      O(")
    SQL string for column : "(:a3 * 1609.344) / 3600"
GEOM                                                      EXPRESSION
    SQL string for column : "via.f_make_2dpoint(:a1,a2,8307)"

value used for ROWS parameter changed from 1000 to 165
Record 1: Rejected - Error on table INRIX_DUST_TMP, column GEOM.
ORA-00984: column not allowed here

So, one may wonder why I'm going through this torture?  The daughter of the source is > 550 million lines

I initially loaded the file and just pulled in the LAT & long and the speed in MPH (we use m/s) management.

You try to run a query to update on all 550 million will FORVER lines not to mention the construction of the spatial index and the index of key pri and will really tax the system.

So I thought, do all the conversion on the input.  The function will happily create the geometry of the point, and then by converting mph in m/s is a little simple math.

So what I am lost is the notion of the boundfiller and the order of the columns (I think).

Little help from you sqlldr guru?

See you soon.

I found the problem... To what you have to do is ask the universe and he'll tell you.

GEOM  expression "via.f_make_2dpoint(:a1,a2,8307)"

Note the colon missing before "a2".

Tags: Database

Similar Questions

  • 5.7 Lightroom will not install on a clean install of Windows 10 Pro 64 bit.  "Problem retrieving some files.  Check space abailable, etc.. "Worked OK on Windows 7 64 bit.  400 GB of available space.

    5.7 Lightroom will not install on a clean install of Windows 10 Pro 64 bit.  "Problem retrieving some files.  "Check available space, etc. and the privaleges of Scripture on the destination folder. Worked OK on Windows 7 64 bit.  400 GB of available space.  Tried changing the compatibility of Wiindows 8 and 7, but same problem.  I am the administrator, so there should be no problem of privileges.

    Clear your tmp folder.

    Restart your computer

    replace.

  • How to display invisible characters (space, return, etc.)

    How do you do the Numbers (4.0) app shows invisible characters such as space and return transport?

    I'm not aware of a direct way to display invisible characters in numbers - regardless of the version.

  • Prohibit a Social site on my laptop for example. Facebook, My space, twitter, etc.:

    Hello

    I am trying to ban a Web site to open on my account invited because broken laptop from my brother and he use mine, but I'm suspicious that my brother uses facebook and youtube while doing his homework, which I have a problem because he is not doing his job and just talks to her friends...

    I don't want to ban the on my account, but only the guest account (use the account)

    I have Google Chrome and Internet Explorer 9...

    Anything will help me

    [Personal information]

    Thank you

    Hifsah Ahmed

    If all goes well, a moderator will delete your email address. You should know better!

    To block Web sites, log in with that account and follow these steps:

    http://www.gotknowhow.com/articles/how-to-block-websites-in-Internet-Explorer-8

    http://www.recipester.org/recipe:Block_Website_in_Google_Chrome_39998919

  • Irregular after pasting in the ID space

    When I copy text from Word or text editor in ID, there is the irregular spaces between sentences throughout the document of 200 pages.

    I am a newbie to ID, but I have tried many things to fix this... and still have the problem. Can someone please?

    (A bit of history... the person who sent me these files, sent in individual e-mails in which I had to copy and paste in Word.) They inserted spaces, returns, etc manually.)

    Some of us older people who have grown up with typewriters have learned that you have to hit the return key (or worse... Press the carriage return lever... (GASP!) at the end of the line and it might be that the person who keyed this makes it rather than let the word do the automatic packing. How ever it like that, Joel is right what you need to remove.

    In other words, you can consider using find/replace. Enter ^ p in the Search field (this is the paragraph return code), place the cursor at the beginning of your text and click on the find button. When it finds the first paragraph back, decide if you want to keep it or not. If you want to remove it, hit either the Edit button, and then click the search button to move on to the next, or use Find/replace to change and find in one step.

    Without anything in the field , it will replace the return paragraph with nothing, that may or may not be what you want. If there is no space between the last character of the line and paragraph returns, you will probably get the last word in a line combined with the first word of the next line, and you really don't want to have to clean that up. Consider instead replacing paragraph returns with a space (by typing a space in the period field). This can give you some double spaces to clean afterwards, but you can fix that easily enough.

    At the top of the Find/replace window, you will see query:. If you click on the blue arrows to the right, you can select a number of GREPs. One of them is Multiple Space to a single space. If you choose, it will load a bunch of code in find and edit fields. If you click on replace all, it will find any instance of two spaces or more in a row and change their unique spaces within the selection, account, document or that you selected in the Research: field. If there is a reason, you sometimes need to stay two spaces or more, do not use any change. Instead, find employment, change, find next, replace/find, or combination whatever you are comfortable with. You can see that people who kick back at the end of each line using also two spaces after every sentence, which is also a typewriter convention we use longer in electronic composition. It is a good way to solve this problem too.

    Are also common of two returns to separate paragraphs, which should be made with the spacing of the paragraphs, but that's another story, then a step at a time.

  • Remove the spaces of a variable

    I have a variable called "enteredname": -.

    var enteredname:string;

    When the user enters text in my "nameentry" and click on a button input text, the text you enter is saved in this variable: -.

    enteredname = nameentry.text;

    This variable is then sent to a server and set it as the name of the item, the user added via the http request, however, I would like to add in another variable string "enteredimagename", which will store the same text but will have spaces removed or all characters that would not be appropriate to a JPEG image.

    The idea of this is that the user adds a name of a part of their addition and eponymous is applied as long as the elements of the title and the name of the image file of points (with all spaces removed etc.) because all the images in my application are stored on a server and are dynamic so the click would look like:-

    enteredname = nameentry.text;

    enteredimagename = nameentry.text (with code to remove spaces for this channel or something)

    Can someone help me with this?

    I don't know which characters, you can use in the name of the file, but you can always limit to A - Z and a - z to be sure.

  • SQL + reel, white space in the columns, help.

    Hi all.

    I use SQL on Oracle Database 10g Enterprise Edition Release 10.2.0.3.0

    I have a massive script that I am wanting to wrap the output to a text file.

    I have more than 600 columns and the script is like:

    set the position
    trigger the echo
    Set feedback off
    set verify off
    Set serveroutput off
    termout off Set
    Set trimout on
    Set trimspool on
    tab set to
    NewPage 0 value
    set space 0
    set linesize 6251
    set pagesize 0
    the null value 0
    define array 1000
    the value of colsep |
    coil c:\[filename].txt
    Select / * + parallel (table 4) * /.
    col1,
    col2,
    col3,
    COL4,
    col5,
    col6,
    col7,
    COL8,
    col9,
    col10,
    Col11,
    col12... etc.

    My output looks like:

    99990001 | + {space} + 2003 | 0 + {space} + | 0 + {space} + | + {space of} + 1 | 0 + {space} + | 0 + {space} + | 0 {space}. 0 + {space} + | 0 + {space} + | 0 + {space} + | 0 + {space} + | 0 etc

    When I need to look like:

    99990001 | 2003 | 0 | 0 | 1. 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0... etc.

    I can't concatinate columns as this would force the SET NULL option won't do not and using NVL for each column makes the query take too much time.

    a post on this thread Re: save output sql command separate values by the States that you cannot force coil of sql to remove spaces, is it true?

    all threads in this research http://forums.oracle.com/forums/search.jspa?threadID= & q = colsep & objID = c84 & dateRange = last90days & userID = & numResults = 15 lead me to believe that it is also not possible.

    The coil may not have gaps as it is used by some sort of contraption of system before my time to really understand and I said that it's just not having them.

    Thanks in advance for any help.

    G

    I think that concatenating your columns with NVL(col1,0) will be your only option. In addition, it didn't really the request that much more time.

  • iPhone iOS 9.3.2. Microphone does not work in some applications.

    MIC on iPhone 5 has stopped working.  Software not hardware.  First noticed when the other party could not hear me on a phone call.  Incoming or outgoing calls - hear the other party, but they don't hear me.  Voice memo does not work... doesn't detect any sounds.  Voice memo and calls work when headset inserted.   HOWEVER, Siri and voice command work very well without a helmet.  Therefore Mic works = no material.

    I have reset all settings - off one - there is sufficient space free etc etc.  Wanted to ask this forum for ideas before the reset complete of your data.  I see that there are problems with the iOS updates.  Not sure on the timing of the question as the phone is used by my 12 year old son.

    Any suggestion is appreciated.

    Hello donbisset,

    If the microphone on your iPhone 5 does not work correctly, follow the troubleshooting steps in the resources below.

    Get help with microphones on your iPhone, iPad and iPod touch

    Take care

  • Can I add a drop-down list for the bookmarks toolbar?

    I would like to have a series of categories of bookmarks in the bookmarks toolbar. Let's say a button called "Household" could have a menu drop down menu links to my sites popular for "Home repair," 'Kitchen', 'Furniture finish', etc.

    And maybe another button may be labeled "Science" and its menu drop-down can contain links to 'Environment', 'Medicine', 'Space', 'Geology', etc.

    And to be really good, each subcategory could have subcategories beneath them.

    Create nested folders (folders in folders) on the bookmarks toolbar. You can also do the same thing in the Menu bookmark instead of bookmarks toolbar.

    1. Right-click on the bookmarks toolbar and choose 'new folder '; Name this folder cleaning
    2. Right-click on the case in the toolbar bookmarks for each subfolder you want under household and choose "new folder"; Name these folders (i.e., home repair, kitchen, furniture, etc.)
    3. Drag or create bookmarks in each of these appropriate subfolders to the name of the subfolder.

    Repeat the above for another folder/sub-sub-sub-folders (i.e., Science folder under folders, geology, environment, medicine, space, etc.).

    See-

  • How to convert a string to byte array

    Hello

    I want to convert a string with a hexadecimal number in the array of bytes, this string includes a cutting-edge information, but I don't want to add this tip to arry bytes.

    detailed information please see the photo. I hope someone can give me some instructions, thank you very much.

    The accepted solution of Giedrius.S is not correct, based on the image shown in the first post. That the solution will not eliminate the spaces before the tip, and the string to byte array to convert individual characters '0', '8', 'space', '9', etc. for them to byte values. The right solution, based on the image below:

  • Aid to the RegExpr_FindPatternInText()

    LabWindowsCVI does not compile the search function RegExpr_FindPatternInText()

    It says "missing Prototype".

    Q1. Include what might be missing? FindPattern() works very well.

    I need to search a string for some words and ignore white space, CR etc.

    I want to search the beginnng, but I don't know what the chain will be the size.

    Q2. Do I have to get the length of the string before calling this function?

    In this example, I need to know if a string contains the words 'series', 'test' and 'spent '. The string may contain other characters and whitespace etc.

    result = RegExpr_FindPatternInText ("fwmserial uetest owpassed *", NOT_CASE_SENS, 1, "serial test", 0, 1, RegExpr_MatchLargestNumChars, in correspondence, matchPosition, matchLength "");

    I wish that this test was conclusive.

    Q3. It will work or do I need a backslash etc. ? I can't try until I can compile.

    V8.5.1

    WIN XP Pro

    Thank you.

    The '.' and ' *' work with a single call to RegExpr_FindPatternInText().

    If both are used together all characters are ignored between the three symbolic search words.

    "Serial.*Test. * PAST. "

  • El Capitan, not seeing WD My Book on WRT1900AC

    Hi all. I have an older MacBook Air of 1 year, running El Capitan (last updated) and a wireless connection via a new WRT1900AC without any problem.  I just bought a WD My Book 3 TB and reformatted it as HFS + (OS extended, Jounaled) and silos using Master Boot Record. My problem is that my MacBook Air does not see the My Book?  When I connect to Wifi Smart Linksys seems perfectly on the tab of external storage, proper display space used, etc.  Can someone tell me what I did wrong?  I already tried repartioning using the GUID, but same problem.

    Have you tried mapping to your MacBook? Visit this link how: http://www.linksys.com/us/support-article?articleNum=136363

  • Any way to avoid loops of future restarting of Windows Updates?

    After all the problems with loops reboot and restore your system etc, now the machine works fine.

    Is there an update / / software application that can avoid this problem in the future?
    I did a restore point... but don't want to get into this mess again.
    What can I do to avoid it now go?

    Change the way updates are checked, downloaded and installed.  Give you more control and do some updates (one or two) and then restart.  Repeat until you have completed the update process.

    Also be sure to keep everything up to date (hardware drivers from the hardware manufacturers - not just any integrated process, other software patches from other publishers, etc.) and to maintain a clean system (of malware/spyware and viruses and Trojans) with active scans/removal with software and casual.  Keep it defragmented and run an occasional CHKDSK.

    General maintenance basically - just and do not update your device drivers materials (of material non-Microsoft) Microsoft.

    If not - No.  There is nothing you can do to avoid possible future problems because your system is unique to you likely in several ways (hardware + software + layout of the use of space + devices, etc.)

  • rewrite the file on the hard drive

    When I want to delete a file, and I want it to be difficult to get back on the hard drive where ever it is stored, I read something on the rewrite of a file over and over, and how do I do this?

    You need 3rd Party Software to do.

    http://www.SnapFiles.com/reviews/Eraser/eraser.html

    Eraser is a secure file deletion tool that allows you to completely remove sensitive data from your hard drive by overwriting many times with sophisticated models (USDoD, Gutman and others). You can simply drag and drop files or folders on the gum on request, use the convenient right click Windows Explorer extension or use the Scheduler integrated for Automatic wiping of unused space, browser etc cache files. Safe and easy to use!

    Or a Commercial: http://www.east-tec.com/

    But, all data can be recovered from a drive, using the right process; It doesn't matter what you do.

    See you soon.

    Mick Murphy - Microsoft partner

  • Win 7 Error Message 802400B installation failed KB3079757

    Hello

    I have a problem with the 802400B error that I receive with a vain attempt to install KB 3079757 via Windows Update. Now I can't get other updates - it simply repeat the download of updates, but never does. I had about 20 important updates - it installed about 5 and then hooked to it. I had just finished update of IE to V11 and worked well, then 3 updates were installed with the failure error message. After that, I got 2 others to install - they seemed to be already downloaded and just need to be installed. After that - neither works.

    Tried the tool update recovery/repair (?) - who also would not be finished. Then he went to its audit process was "fix" the problem but didn't finish.

    I am running Win 7 on a 64-bit computer. A lot of disk space, RAM etc.

    Download the updates manually and their installation and reboot then solve this? Or another idea?

    Thank you!

    LH

    Welcome & thank you for your comments. Mark one or more of my previous posts as RESPONSE will officially close your thread.

Maybe you are looking for

  • Firefox will not save settings

    Orange screen keeps popping up saying that you've updated again fire fox. Fire Fox wont save settings, I put a check to turn off pop - blockers up and when I close it disappears in

  • Need to zoom lens

    I have a Canon Rebel t3i & I was wondering what would be the best lens to buy for the zoom. Any help will be greatly apperciated! TIA

  • Files Windows media vidieo

    I get wmv files but it still come application not found. I'm using VISTA HOME BASIC. I used to be able to read them, but this has now ceased.

  • HP deskjet 3620 does not print on the internet

    My hp deskjet 3620 is taken offline whenever I try to print a page of IE 11. Is the problem of the printer? I can print out IE 11.

  • HP C7280 wireless all a missing configuration printer driver

    I just installed windows 7 32 bit and I can't go to the printer.  Networks see the printer and when I run the diagnostic it says that the printer driver does not exist.  I already downloaded the specified printer driver and software from the HP websi