Get error in date when I load a CSV file

I am using Oracle G10 XE and I am trying to load data into my database from comma separated files.
When I load the data from a CSV file which has the date with the following format "DD/MM/YYYY", I received the following error "ORA-01843: not a valid month".
I have the NSL_LANG set to AMERICAN. I have tried the following command: "ALTER SESSION SET NLS DATE FORMAT="DD/MM/YYYY" and this does nothing. When I try to run "SELECT SYSDATE "NOW" FROM DUAL;" I get the date in this format "10-NOV-06".
I will appreciate any help about migrating my data with date fields in format DD//MM/YYYY.
Sincerely,
Polonio

See this example :
[oracle work XE]$ cat test.dat
1,11/10/2006
2,01/11/2006
3,06/11/2006
[oracle work XE]$ cat test.ctl
load data
infile 'test.dat'
replace
into table test
fields terminated by ','
trailing nullcols
a integer external,
b "to_date(:b,'dd/mm/yyyy')"
[oracle work XE]$ sqlldr test/test control=test.ctl
SQL*Loader: Release 10.2.0.1.0 - Production on Fri Nov 10 21:38:19 2006
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
Commit point reached - logical record count 3
[oracle work XE]$ sqlplus test/test
SQL*Plus: Release 10.2.0.1.0 - Production on Fri Nov 10 21:38:25 2006
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
Connected to:
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
TEST@XE SQL> desc test
Name                                                  Null?    Type
A                                                              NUMBER
B                                                              DATE
TEST@XE SQL> select * from test;
              A B
              1 11-OCT-06
              2 01-NOV-06
              3 06-NOV-06
TEST@XE SQL>                                                    

Similar Messages

  • Error in date format when  I load a CSV file

    I am using Oracle G10 XE and I am trying to load data into my database from comma separated files.
    When I load the data from a CSV file which has the date with the following format "DD/MM/YYYY", I received the following error "ORA-01843: not a valid month".
    I have the NSL_LANG set to AMERICAN. I have tried the following command: "ALTER SESSION SET NLS DATE FORMAT="DD/MM/YYYY" and this does nothing. When I try to run "SELECT SYSDATE "NOW" FROM DUAL;" I get the date in this format "10-NOV-06".
    I will appreciate any help about migrating my data with date fields in format DD//MM/YYYY.
    Sincerely,
    Polonio

    See Re: Get error in date when I load a CSV file

  • Keep getting error code 2048 when trying to open wmv files, says realplayer cannot open with the installed version of Quicktime, any suggestions?

    Keep getting error code 2048 when trying to open wmv files, says realplayer cannot open with the installed version of Quicktime, any suggestions?

    wmv is a Windows Media format.  I don't know why Realplayer is coming into it since that deals primarily with Real format files and maybe a few generic formats.
    You need
    Free Flip4mac QuickTime player components - http://www.microsoft.com/windows/windowsmedia/player/wmcomponents.mspx
    After installation a new Flip4Mac pane will appear in System Preferences.  Make sure you set the boxes to ensure that it will play WMV files in Quicktime.
    or play the files with VLC
    VLC media player - http://www.videolan.org/vlc/ - general media player that plays just about anything.
    While you're at it you might install:
    Perian codecs for Quicktime - http://www.perian.org - plugins to add functionality to Quicktime for playing additional audio and video formats
    Quicktime audio problems, Perian, VLC - http://discussions.apple.com/message.jspa?messageID=9013669 - read note about uninstalling prior DIVX support before installing Perian.
    Perian doen't do WMV but it's handy to get many things to play in Quicktime.
    Note, if these are protected WMV, nothing on a Mac will play those (unless you also have Windows installed).

  • Getting error code -1407 when trying to delete large file

    I'm getting the following error when I attempt to erase a file that I just copied to my 1TB WD boot drive. The file is 2.94 Gb and is an uncompressed video file.
    "The operation can’t be completed because an unexpected error occurred (error code -1407)."
    I repaired permissions on the disk and still won't let me delete the file?

    I copied the file to another drive and I can delete it. I can delete other files from the boot drive.

  • Why do I get "error code 3: Could not load front panel" when I run my executable​.

    I have a LV 8.5 VI that controls only an agilent spectum analyzer. The agilent VIs call DLLs rather than SCPI commands. I created an application and an installer to load on a non LV machine and ran setup which was successful. When I run the EXE I get "error code 3: Could not load front panel" for each of my agilent spectrum analyzer VIs. I have to click "OK" about ten times, once for each VI. (My executable runs fine on all machines that have labview 8.5) The front panel does load with a broken arrow. The errors listed when the arrow is clicked for all of the Agilent VIs state: Missing subVI AGE444xInitialize.VI (or close.VI or read.VI etc.)
    There is an AGE444x32.DLL in the data folder with the EXE file so I included as support both the DLL and all of the agilent drivers in the application build. Still no luck. I have built the application and installer about 6 times in various forms. I NEED AIR SUPPORT.
    Unfortunately I do not have access to the internet at my jobsite so bear with me.
    Rob

    Hi V-rob,
    I'm glad to hear the executable is working now that NI-VISA is installed.  Thanks for posting the solution!
    Jennifer R.
    National Instruments
    Applications Engineer

  • Loading the latest OS on my iPhone4 caused the phone to freeze. I get error message 4013 when trying to restore the phone. Any help will be appreciated

    Loading the latest OS on my Iphone 4 caused the phone to freeze and stop working. I get error message 4013 when trying to restore the phone.

    Did you already try these suggestions?
    Check USB connections
    Related errors: 13, 14, 1600-1629, 1643-1650, 2000-2009, 4000, 4005, 4013, 4014, 4016, “invalid response,” and being prompted to restore again after a restore completes.
    If there’s an issue with the USB port, cable, dock, or hub, or if the device becomes disconnected during restore, try troubleshooting the USB connection, then troubleshooting your security software.
    To narrow down the issue, you can also change up your hardware:
    Use another USB cable.
    Plug your cable into a different USB port on your computer.
    Try a different dock connector (or no dock).
    Add (or remove) a USB hub between your device and computer.
    Connect your computer directly to your Internet source, with no routers, hubs, or switches.
    If you checked your connections and are still seeing the error message, check for hardware issues.
    copied from Resolve specific iTunes update and restore errors

  • HT201412 getting error message 1202 when loading iheart radio

    getting error message 1202 when trying to access iheart radio

    some folks with vista have found a work around by right clicking on 'redeem' and selecting 'copy'. Then go to internet explorer and paste and hit enter. You may now be able to redeem your cards this way.
    This issue appears to be a certificate issue with the system. Unfortunately windows does not have a link to install these root certificates from the website for vista like you can XP, so you cannot reinstall them if something gets corrupted.
    You may have to redeem on another computer or email itunes through expresslane.apple.com with the codes from the gift cards and explain the situation. they may be able to redeem them to your account for you.
    The last alternative would be to get a Mac.

  • I cannot transfer my Ical on my Imac with Mavericks 10.9.2 to my iphone 4 with the latest operating system.  I get error message "403" when it attempts to upload to the cloud before transfering to the iphone.  Any advice would be greatly appreciated.

    I cannot transfer my Ical on my Imac with Mavericks 10.9.2 to my iphone 4 with the latest operating system.  I get error message "403" when it attempts to upload to the cloud before transfering to the iphone.  I've tried shutting down the computer and iphone but it has not been successful.  There is plenty of data available on the icloud as I've not used it for anything else.   Any advice would be greatly appreciated.  Thank you.
       Kevin

    Hello kmcnern3,
    Thank you for providing the details of the calendar issue you are experiencing with your iMac and iPhone.  I recommend following the steps in the section titled "Troubleshooting on OS X" in the following article to assist with syncing your calendar events between your devices:
    iCloud: Troubleshooting iCloud Calendar
    http://support.apple.com/kb/ts3999
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • TS3258 I get error message -42408 when trying to download itunes update 11.0.2 and thus can not upgrade to latest version.  What should I do?

    I get error message -42408 when trying to download itunes update 11.0.2 and I therefore can not update to that latest version.  What can I do?

    Hey there davidgor2!
    I have found an article that should help you resolve this issue with updating your iTunes. The article can be found here:
    iTunes: Advanced iTunes Store troubleshooting
    http://support.apple.com/kb/TS3297
    and the specific part of the article you will want to look at first is right here:
    "Error 42023" through "Error 42408"
    These alerts might occur when trying to authorize iTunes or during launch when iTunes checks for authorization information.
    Install the latest iTunes from apple.com/itunes/download/
    Remove the SC Info folder.
    If that does not resolve the issue, see iTunes: "Error 42408" or "Error 42404" after upgrading to iTunes 9.0.3.
    Thanks for using the Apple Support Communities!
    Regards,
    Braden

  • I get error message 42032 when trying to connect an iPhone to iTunes. Any ideas how to fix it?

    I get error message 42032 when trying to connect an iPhone to iTunes. Any ideas how to fix it?

    Did you already try these suggestions?
    Check USB connections
    Related errors: 13, 14, 1600-1629, 1643-1650, 2000-2009, 4000, 4005, 4013, 4014, 4016, “invalid response,” and being prompted to restore again after a restore completes.
    If there’s an issue with the USB port, cable, dock, or hub, or if the device becomes disconnected during restore, try troubleshooting the USB connection, then troubleshooting your security software.
    To narrow down the issue, you can also change up your hardware:
    Use another USB cable.
    Plug your cable into a different USB port on your computer.
    Try a different dock connector (or no dock).
    Add (or remove) a USB hub between your device and computer.
    Connect your computer directly to your Internet source, with no routers, hubs, or switches.
    If you checked your connections and are still seeing the error message, check for hardware issues.
    copied from Resolve specific iTunes update and restore errors

  • I keep getting error code 4450 when I'm trying to burn a CD from itunes.  It keeps my CD and won't eject it and says "cancelling burn" forever then itunes locks up and my cd is ruined and NO songs on it.

    i can't burn cd's in iTunes anymore. I get error code 4450 when I'm trying to burn a playlist. Songs from my own cd's, or bought in iTunes (have not burned 7x's as I can't BURN any cd's at all!),  Then my cd gets stuck in the drive. and it says "cancelling burn" forever and then itunes freezes up. I have a Dell with Windows 7.
    -I've slowed down the burn as slow as it can go
    -I have bought 3 different brands of cd's
    -i have the latest version of iTunes.
    Can someone help me?

    I have Windows 7 on a Dell.  Open and play iTunes in the compatability mode and use Windows XP (service pack 2).  Disregard any messsages to disable the compability mode.  This has worked for me.  I have also reinstalled iTunes and played with burn speeds etc.  These ideas did not work.  Compatability mode works.

  • I have a 5th generation Nano. I am using a new PC with the latest Itunes.  I am getting error coe 13019 when I try to sync. I have tried the recommended fixes from diagnostics. Any ideas?                                     .

    I have a 5th generation Nano. I am using a New PC and latest Itunes. I am getting error code 13019 when I try to sync. I have no problem syncing with an Iphone 4S or an Ipad2. I have tried the procedures described in diagnostics, but without success. Any ideas?
    Thank you,
    Derek

    I have tried the procedures described in diagnostics, but without success.
    Quickly doublechecking ... that's the procedures from the following document?
    iTunes: Error 13019 during sync

  • After update, Itunes can't load. I get error message R6034, attempt to load the C runtime library incorrectly. I have repeatedly removed and reinstalled Itunes and still have the same problem!!!

    After update, Itunes can't load. I get error message R6034, attempt to load the C runtime library incorrectly.
    I also get error code 7 (Windows error 1114), saying itunes wasn't installed correctly. It appears that I am not the only one with this issue. what is wrong with the latest update?? I tried removing Itunes and all of its components and installing it again, but get same errors and i have also tried doing a system restore with the same results

    Doublechecking. Have you also tried the following user tip?
    Troubleshooting issues with iTunes for Windows updates

  • Itunes can't load. I get error message R6034, attempt to load the C runtime library incorrectly

    After update, Itunes can't load. I get error message R6034, attempt to load the C runtime library incorrectly.
    I also get error code 7 (Windows error 1114), saying itunes wasn't installed correctly.
    Tried removing Itunes and installing again, but get same errors

    Try the following user tip:
    Troubleshooting issues with iTunes for Windows updates

  • TS1368 Hi I'm running windows Vista premium home and i'm getting error code 1202 when attemting to log into store. how do i fix this

    i'm getting error code 1202 when i try to log on to the itunes store using windows vista

    http://support.apple.com/kb/TS1368

Maybe you are looking for

  • BAPI to change planned orders details

    Hi Experts, I need BAPI to change Planned order details,which are created through SNP PPM's.I searched for Bapi and got one 'BAPI_MOSRVAPS_SAVEMULTI3'  but this BAPI will change order details if created for PP/DS PPM's. Kindly suggest will this BAPI

  • Why do all the added input sources disappear on reboot?

    Since installing Mountain Lion, every time I do a full reboot (or power down and restart the system), the input source that I added in the System Preferences > Language & Text > Input Sources (in my case, Dvorak, which is the main one I use) gets rem

  • Premiere Elements 9 Freezes on "Generating Peak File"

    Help!  This seems to be a common problem with posts all over the web going back to PE3.  I can't believe Adobe hasn't fixed this! I have spent days on this, trying every solution I've found in posts in Adobe Forums and elsewhere on the Net.  None see

  • JSF: Construct EL expression

    I need to use a bean property as the key for the map for another property. Something like that: <c:forEach value="#{bean1.dataList}" var="data">   <tr>     <td>Input:</td>     <td><h:inputText value="#{bean2.someMap[data.id]}/>   </tr> </c:forEach> {

  • Workflow to get a dolby digital 5.1 surround, alot of confusion.

    what I have usually done with my videos is to export omf to logic , and mixed in 5.1, from there i bounce in multichannel audio file, and open it i compressor and create there my AC3 file is that all to get a professional accepted DOLBY DIGITAL FILE