error when reading flat file of external table... "ORA-01849: time must be between 1 and 12"

My question is - is it possible for me to fix this error at the level of external table definition? Please advice

Here is the data file I am trying to download...

KSEA | 08-10 - 2015-17.00.00 | 83.000000 | 32.000000 | 5.800000

KBFI | 2015-08-06 - 15.00.00 | 78.000000 | 35.000000 | 0.000000

KSEA | 08-10 - 2015-11.00.00 | 73.000000 | 55.000000 | 5.800000

KSEA | 08-08 - 2015-05.00.00 | 61.000000 | 90.000000 | 5.800000

KBFI | 2015-08-06 - 16.00.00 | 78.000000 | 36.000000 | 5.800000

KSEA | 2015-08-07 - 18.00.00 | 82.000000 | 31.000000 | 10.400000

KSEA | 08-10 - 2015-00.00.00 | 65.000000 | 61.000000 | 4.600000

KBFI | 08-08 - 2015-07.00.00 | 63.000000 | 84.000000 | 4.600000

KSEA | 08-10 - 2015-15.00.00 | 81.000000 | 34.000000 | 8.100000

This is the external table script

CREATE TABLE MWATCH. MWATCH. WEATHER_EXT ".

(

LOCATION_SAN VARCHAR2 (120 BYTE),

DATE OF WEATHER_DATETIME,

NUMBER (16) TEMP.

NUMBER (16) OF MOISTURE,

WIND_SPEED NUMBER (16)

)

EXTERNAL ORGANIZATION

(TYPE ORACLE_LOADER

THE DEFAULT DIRECTORY METERWATCH

ACCESS SETTINGS

(records delimited by newline

BadFile "METERWATCH": "weather_bad" logfile 'METERWATCH': 'weather_log '.

fields ended by ' |' missing field values are null

(location_san, WEATHER_DATETIME char date_format DATE mask "YYYY-mm-dd - hh.mi.ss", TEMPERATURE, MOISTURE, wind_speed)

)

LOCATION (METERWATCH: 'weather.dat')

)

REJECT LIMIT UNLIMITED

PARALLEL (DEGREE 5 1 INSTANCES)

NOMONITORING;

Here is the error in the weather_bad which is generated files...

column WEATHER_DATETIME of 55 error processing in the 1st row to the /export/home/camsdocd/meterwatch/weather.dat data file
ORA - 01849ther_log.log 55 56 error processing column WEATHER_DATETIME in the row 1 for the /export/home/camsdocd/meterwatch/weather.dat data file
5756 ORA - 01849ther_log.log: time must be between 1 and 12
58column WEATHER_DATETIME 57 error during treatment number 2 for the /export/home/camsdocd/meterwatch/weather.dat data file
59ORA-58 01849: time must be between 1 and 12
60column WEATHER_DATETIME of 59 error processing 5th for the /export/home/camsdocd/meterwatch/weather.dat data file
61ORA-60 01849: time must be between 1 and 12
62column WEATHER_DATETIME of 61 error treatment in line 6 to the /export/home/camsdocd/meterwatch/weather.dat data file
63ORA-62 01849: time must be between 1 and 12
64column WEATHER_DATETIME of 63 error treatment in row 7 for datafile /export/home/camsdocd/meterwatch/weather.dat
65ORA-64 01849: time must be between 1 and 12
66column WEATHER_DATETIME of 65 error treatment 9 for the /export/home/camsdocd/meterwatch/weather.dat data file online
67: time must be between 1 and 12

My question is - is it possible for me to fix this error at the level of external table definition? Please advice

Yes it is possible.  Let's not your date mask.  You're masking for 12-hour format when your data is in 24-hour format.  Change the mask of your date to be "YYYY-mm-dd-hh24. MI.ss ".  Notice the change in "BOLD".

Tags: Database

Similar Questions

  • Error when inserting XML file into a table in Oracle10g

    Hi team,

    I'm trying to insert an xml file into an Oracle 10g XMLType table. During the insertion, I get following error:

    ERROR on line 1:
    ORA-22285: non-existent directory or file for FILEOPEN operation
    ORA-06512: at "SYS." DBMS_LOB", line 523
    ORA-06512: at "SYS." XMLTYPE", line 287
    ORA-06512: at line 1

    I did following steps.

    (1) create the DIRECTORY xml_dir as 'c:\xmldata ';

    (2) create table xmltab XMLType;

    The following packages are executed by schema 'Sys '.

    (1) dbmslob. SQL;
    (2) prvtlob. PLB;

    A xmldata folder is created under "c:\". "and with data_file.xml file is stored in it.

    After Insert stmt is executed that returns gives above error.

    Insert in xmltab values (XMLType (bfilename('xml_dir','data_file.xml'), nls_charset_id ('AL32UTF8')))


    Can you please give me a solution. It is very urgent.

    Thanks in advance.

    Kind regards
    Murielle

    After selecting the data in table xmltab I just got first line of the file xmldata. That is to say
    http://baro

    This must be a display problem.
    What client tool are you using and what version?

    If SQL * Plus, you won't see all content unless you set some options:
    {code}
    LONG VALUE
    SET LONGCHUNKSIZE
    {code}

    Could you try the following?
    {code}
    THE VALUE OF 10000 LONG

    SELECT t.object_value.getclobval () IN xmltab t;

    -to force printing:
    SELECT extract (t.object_value, ' / *'). getclobval() xmltab t;
    {code}

    Published by: odie_63 on 16 Feb. 2011 08:58

  • External table ORA-30657: operation not supported on external organized tab

    Hi all
    I'm trying to create a table outside and fill it with data from my DB. Without the AS - Section all right. The external table will be created, but I do not get the data into it. Is there a possible way to write data defined in a flat file via external table or some other mechanism?

    Carsten cordially

    The full statement:

    CREATE or REPLACE DIRECTORY admin_dat_dir
    LIKE 'E:\CDDTEST ';
    CREATE or REPLACE DIRECTORY admin_log_dir
    LIKE 'E:\CDDTEST ';
    CREATE or REPLACE DIRECTORY admin_bad_dir
    LIKE 'E:\CDDTEST ';
    DROP TABLE cdd_ext_vt;
    -creation of the external table
    CREATE TABLE cdd_ext_vt
    (vertrag_nr VARCHAR2 (25),)
    kunden_name VARCHAR2 (60)
    )
    EXTERNAL ORGANIZATION
    (
    TYPE ORACLE_LOADER
    Admin_dat_dir default DIRECTORY
    ACCESS SETTINGS
    (
    records delimited by newline
    BadFile admin_bad_dir:'empxt%a_%p.bad'
    logfile admin_log_dir:'empxt%a_%p.log'
    fields completed by «,»
    missing field values are null
    (vetrag_nr, kunden_name
    )
    )
    LOCATION ("cdd_ext_vt.dat")
    )
    REJECT LIMIT UNLIMITED

    AS
    Select vt.vertrag, chr (34) | Trim (Person.Name) | Chr (34)
    VT, person
    where vt.syskd = person.sysperson
    and rownum < 11
    ;

    Carsten,

    You can use this to dump this procedure in csv file

    create or replace function  dump_csv( p_query     in varchar2,
                                          p_separator in varchar2 default ',',
                                          p_dir       in varchar2 ,
                                          p_filename  in varchar2 )
    return number
    is
        l_output        utl_file.file_type;
        l_theCursor     integer default dbms_sql.open_cursor;
        l_columnValue   varchar2(4000);
        l_status        integer;
        l_colCnt        number default 0;
        l_separator     varchar2(10) default '';
        l_cnt           number default 0;
    begin
        l_output := utl_file.fopen( p_dir, p_filename, 'w' );
    
        dbms_sql.parse(  l_theCursor,  p_query, dbms_sql.native );
    
        for i in 1 .. 255 loop
            begin
                dbms_sql.define_column( l_theCursor, i, l_columnValue, 4000 );
                l_colCnt := i;
            exception
                when others then
                    if ( sqlcode = -1007 ) then exit;
                    else
                        raise;
                    end if;
            end;
        end loop;
    
        dbms_sql.define_column( l_theCursor, 1, l_columnValue, 4000 );
    
        l_status := dbms_sql.execute(l_theCursor);
    
        loop
            exit when ( dbms_sql.fetch_rows(l_theCursor) <= 0 );
            l_separator := '';
            for i in 1 .. l_colCnt loop
                dbms_sql.column_value( l_theCursor, i, l_columnValue );
                utl_file.put( l_output, l_separator || l_columnValue );
                l_separator := p_separator;
            end loop;
            utl_file.new_line( l_output );
            l_cnt := l_cnt+1;
        end loop;
        dbms_sql.close_cursor(l_theCursor);
    
        utl_file.fclose( l_output );
        return l_cnt;
    end dump_csv;
    /
    
    REM Here is an example of using the above:
    
    create or replace procedure test_dump_csv
    as
        l_rows  number;
    begin
        l_rows := dump_csv( 'select * from all_users where rownum < 25', ',', '/tmp', 'test.dat' );
    end;
    /
    

    HTH
    SS

  • Error when trying to play multimedia file: Windows Media Player has encountered a problem when reading this file.

    Windows media player

    I get the message "windows media player has encountered a problem when reading this file", and in the media player screen, he says 'changing media '.  What does all this mean?

    Hello

    1. when the question is is produced?
    2. don't you make changes to your machine before the problem?
    3. What is the format of the file you are trying to play?
    4. you play a file from a CD or DVD, or from the hard drive?

    I suggest that you follow the steps mentioned below and check to see if they help.

    Step 1:

    Open the troubleshooter in Windows Media Player settings and check if the problem persists.

    Step 2:

    Check if the file you are trying to play requires no codecs.

    Codecs: Frequently asked questions

    Step 3:

    Uninstall and reinstall Windows Media Player:

    A.
    a go to start and in the search type 'Turn Windows has or not'.
    b. click on "Turn Windows features on or off".
    c. find multimedia and uncheck the brand in the face of Windows Media Player.
    d. restart the computer
     
    B.
    Reinstall Windows Media Player:

    a. go to start and in the search type 'Turn Windows has or not'.
    b click on "Turn Windows features on or off".
    c. find the multimedia functions and place a check mark in front of the Windows Media Player.
    d. restart the computer.

  • DRAC5 "Error when reading the SSL socket connection"?

    Hello

    I have a BIOS of PowerEdge 1950 2.7.0 with DRAC 5 Firmware Version 1.65 (12.08.16).

    When you try to connect to 'Console' I get the error "Error when reading the SSL socket connection".

    I spoke the line "# jdk.tls.disabledAlgorithms = SSLv3, RC4, MD5withRSA, DH keySize.< 768"="" at java.security="" file="" but="" still="" the="">

    I use WIndows 10 with the latest FireFox.

    Thanks in advance,

    Asaf

    I found that these changes were necessary to connect to the DRAC 5 using Chrome and Java 8, rev card. 91:

    In Control Panel > Java > Security:

    1. check "Enable content of java in the browser.

    2. set the security level to "High".

    3. Add each DRAC IP to the list of exceptions

    In C:\Program Files (x86)\Java\jre1.8.0_91\lib\security\java.security):

    Remove MD5:

    jdk.certpath.disabledAlgorithms=MD2, RSA keySize < 1024
    

    Remove SSLv3, RC4 and MD5withRSA:

    jdk.tls.disabledAlgorithms=DH keySize < 768
    
  • I can't get my LR to open without this message: "Lightroom has encountered an error when reading the preview cache and need to quit."

    Lightroom has encountered an error when reading the preview cache and needs to stop smoking.  Help, please

    Hi crystalc,

    It seems that the preview cache has become corrupted.

    You must go to the location where your catalog is stored via finder/File Explorer and get rid of the file ending with Previews.lrdata (not .lrcat)

    Default location of the catalog is under Pictures\Lightroom

  • Trying to open the message box appears 'lightroom has encountered an error when reading the preview cache and needs to stop smoking' Lightroom "Lightroom will try to solve this problem, the next time that it launches" OK when you press closed Lightroom an

    Trying to open 5 Lightroom, a message appears 'Lightroom has encountered an error when reading the preview cache and needs to quit' "Lightroom will attempt to solve this problem, the next time he throws" when OK key Lightroom quit unexpectedly and the computer returns to the office.  This persisted for 2 days and it has not set itself.  help please.

    Click OK close Lightroom.

    You must manually go to the location of your Lightroom by Finder catalogue / file Explorer and get rid of the Previews.lrdata folder

    By default, the location would be in Pictures\Lightroom folder

  • Lightroom has to close immediately after splash because it encountered an error when reading the preview cache

    does anyone have a solution to this problem?

    Lightroom has to close immediately after splash because it encountered an error when reading the preview cache

    Frustrated

    You must remove this file previews.lrdata. It won't do any harm, and it does not solve the problem.

  • Error: "LR has encountered an error when reading the preview cache and need to quit."

    Trying to open it, a message "LR has encountered an error when reading the preview cache and needs to stop smoking. LR will attempt to fix the next time it starts. "apppears and it stops. Tried many launches and the same error appears. Help!

    Post edited by: Brett N

    OK, go to the Lightroom folder (in images by default) and delete the folder/file ending with the extension.lrdata. Previews have somehow become corrupt.

  • Error when parsing the file ' value of the 'src' attribute is not valid; must be a URI'.  ERROR (RSC-005) to "Hetgeheimfietsen.epub/OEBPS/toc.xhtml" (line 10, col 10): error while parsing the file ' "ol" element not allowed here; wait for the end-tag of t

    The members of the Forum kan help you

    Validation by using version 3.0.1 EPUB rules.

    ()https://github.com/IDPF/epubcheck( )

    December 9, 2015 15:27:33 THIS

    ---------------------------------------------------

    WARNING (OPF-007) to 'Hetgeheimfietsen.epub/OEBPS/content.opf' (line 2, column 227):

    Re-declaration of prefix reserved "rendition."

    ERROR (RSC-005) to "Hetgeheimfietsen.epub/OEBPS/toc.xhtml" (line 10, col 10):

    Error when parsing the file ' "ol" element not allowed here; waiting for the end-tag of the element or element "li" '.

    WARNING (CSS-007) to "Hetgeheimfietsen.epub/OEBPS/css/idGeneratedStyles_0.css" (line 60, col 2):

    Police made OEBPS/font/CambriaMath.ttc refers to fonts not standard type application/x-police-FTT.

    WARNING (PKG-012) to "Hetgeheimfietsen.epub/OEBPS/De_Alpe_d'Huez-1.xhtml":

    File name contains following non ascii characters: '. You want to change the name of the file.

    WARNING (PKG-012) to "Hetgeheimfietsen.epub/OEBPS/De_Alpe_d'Huez-2.xhtml":

    File name contains following non ascii characters: '. You want to change the name of the file.

    Check the finish with warnings or errors!

    In the file Toc delete the second "ol", as well as closing like Epubcheck duplicate codes

        the one after the other (delete the other)

    1. Premiere Pro CC 2015 errors when reading a multicamera editing.

      Premiere Pro CC 2015 errors when reading a multicamera editing.

      Running on Mac.

      Started editing images mult-camera and falls down for only when you try to play the scenario of several camera. Other chronologies play without issue.

      Any ideas?

      It turns out that this is a bug with CC2015 in multi-camera. Adobe is working on fix of course.

    2. At the launch of lightroom a message saying: Lightroom has encountered an error when reading the preview cache and need to stop smoking.

      Lightroom has encountered an error when reading the preview cache and needs to stop smoking.

      What can I do to make this work?

      Restart Lightroom

    3. Installation of the Photoshot 13 elements. error message: "this is a problem when extracting the files. Check the amount of space available on your computer and the rights to write to the destination folder. I have 1.38 TB of free space and total control

      I try to install photoshop elements 13, that I bought and downloaded from Amazon. When I try to install it I get the following error message: "this is a problem when extracting the files. Check the amount of space available on your computer and the rights to write to the destination folder. I administrar 1.38 TB of free space and total control.

      Charles please do not remove the installation files in the Program Files directory.  I recommend to extract the installation to your downloads folder or your desktop files.  Once installation files are extracted, you can then run the installation program to install Photoshop elements 13.

    4. Have a problem with Lightroom 5.4.  Given that the program crashed yesterday, will not start, it comes up with the message "Lightroom has encountered an error when reading the preview cache and need to quit."  "Lightroom will attempt to fix this ti net pr

      Have a problem with Lightroom 5.4.  Given that the program crashed yesterday, will not start, it comes up with the message "Lightroom has encountered an error when reading the preview cache and need to quit."  "Lightroom will attempt to solve this problem, the next time he throws."  Except that it isn't, I get the same message and the program closes.  Anyone know what I can do to fix it?  Can not backup, can't do anything.

      There are dozens of discussions in this forum that describe the fix

    5. Active Services Web Directory has encountered an error when reading the parameters for the specified Active Directory Lightweight Directory Services instance

      VCenter Server 4.1, I installed it on a physical machine. This is the error message that appears whenever I try to follow what is happening every 1 min event viewer.

      Error:

      role for users: log name: Active Directory Web Services

      Source: ADWS

      Date: 2010-07-28 15:55:21

      Event ID: 1209

      Task category: Instance ADWS events

      Level: WARNING

      Keywords: Classic

      User: n/a

      Computer: wwubmw.williamwoods.local

      Description:

      Services Web Active Directory encountered an error when reading the parameters for the specified Active Directory Lightweight Directory Services instance.  Services Web Active Directory will try again this operation regularly.  At the same time, this body will be ignored.

      Instance name: ADAM_VMwareVCMSDS

      The event XML:

      The OS is Windows 2008 R2. What should I do to solve the problem.

      Thanks for the reference Troy

      If you have found this or other useful information, please consider awarding points to 'Correct' or 'useful '.

      Gregg Robertson, VCP3, 4, MCSE, MCSA, MCTS, MCITP

    Maybe you are looking for

    • Safari can't connect to google

      I can not connect to Google, using Safari.  I am trying to export my hotmail contacts to a new gmail account.

    • Firefox starts in silent mode and consumes up to my processor

      Since then, Firefox starts automatically as a silent process consuming 30% of my time cpu and about 7 MB of memory usage. This occurs at startup or when no visible Firefox is running. Kill the process causes the Firefox restart, again in silence, in

    • Upgrade to Windows 7 program

      Hi, there are a lot of press around the internet today about the new upgrade of Windows 7 HP program. The detailed programme for all the regions are located here. Here are some details on the program for the U.S. program. 1. your PC * must be purchas

    • HotSpot iOS 9.3.1 works do not with Cisco AnyConnect

      Does anyone else have this problem? Since the upgrade to 9.3.1 iOS I am more able to use one of the hotspot from my iPhone to connect to the VPN from my company using Cisco AnyConnect.  I can still connect via Wi-Fi, but not with the iPhone 5s or 6s

    • When I restart iMac StampAngle.PList what it means

      When my iMac is restarted, now I get the message on my screenwhat fowling means what is new sound never came before. EL CAPITAN 10.11.2 OSX VERSION StampAngle.Plist