* REALLY * table 6010 failed

Hello all, we are trying to launch a table 6010 used and it seems to be stuck in a boot loop - Needless to say that's not on the support - we tried pulling enough readers to failure, each own power and with a single controller (more on that in a moment), he's stuck in a boot loop. If the time is good, you can get a fast connection and connection, I even managed to START a reset before it crashes and reboots, I tried the password reset via prom boot - I wonder if there are other options to completely erase the configuration / reinstall the OS on the side boot prom things - thank you

Behold, this is what the paper spits on the PDC:

#########################################################
# #
# Dell (tm), Inc. Storage Array #.
# Copyright 2001 - 2009 #.
# Part = 70-0300 Rev = A05 SN = ECO = C00 XXXXXXXXXXXXXX #.
# #
#########################################################
Bootloader Version 2.3.3 (SWINT Rev:1)
Update the sea Mar 31 16:37:31 EDT 2010
(type h for help)
Enter Ctrl-P to the boot prompt

Execution of bootcmd0 [dload sd primary/eqlstor.gz]
0 X-80231000/10400640 0X81a6bb20/35510764 entrypt 80231000

Bootcmd1 of execution [run]
cpu_online_map = ffff ffff userapp_cpu_map
psb_os_active_mask = 0, psb_os_mask = 0
boot1_info: userapp_cpu_map = ffff, psb_os_cpu_map = 0
cpu_online_map = 0xffff
Jumping to the application... 0 x 80231000
------------------------------------------------------------
Preparation of ffff bitmask of the processors to run
No system of sewerage network
count = 16, total = 16
Any slave processors (16) ack'ed userapp init
Count = 4, total = 4
Any slave processors (4) ack'ed message ring init

Dell, Inc. storage Bay.

Copyright 2001 - 2010 Dell, Inc.
SP:12.51:mips_pss_init.c:296:info:28.2.107:control module in the connector 1 with serial number XXXXXXXXXXXX
is designated as active.
SP:1434998416.01:ppool_nvram.c:330:error:15.4.1:NVRAM contains valid data. It is a PANIC RECOV
ERY because of panic on a processor of NetBSD.
SP:1434998416.04:ppool_nvram.c:185:error:15.4.5: saved from the registers of the CPU, CPU 12
to 0000000000000000 0000000004010000 v0 v1 ffffffffbef08010
0000000000000104 0000000000000000 0000000000000104 ffffffffd25f7a48 a3 a2 a1 A0
t0 t1 t2 t3 c 000000000000000 0000000027bd0000 0000000000000001 ffffffffd25f7a48
T4 t5 t6 t7 0000000003ff0000 0000000003bf0000 000000000000003f b 000000000000002
S0, s1 s2 s3 0000000000000001 ffffffff808ed850 ffffffffd25f7a48 ffffffff808ed850
S4, s5 s6 s7 0000000000000001 0000000000000032 ffffffffc003ba58 ffffffffc003b7a0
T8 t9 ffffffffd6d70000 k0 k1 0000000000000000 ffffffff804d0bfc ffffffffbfffffff
GP sp ffffffffd25f78c0 s8 ffffffffc0169380 ra ffffffff804c1a1c ffffffff8003e000
SP:1434998416.07:ppool_nvram.c:189:error:15.4.6: saved CP0 registers, CPU 12
SR 0048c 005 badva c0133270 EPC 806b3a3c errorepc 804c19f0
cause of 00000000 00000000 00000000 00000000 errctl cacheeri cacheerd
cacheerrdpa 0000000000000000-0000000000000000 buserr
SP:1434998416.09:ppool_nvram.c:195:error:15.4.7: saved stack of function calls, CPU 12
804c19f0 804c1a1c 804c1be0 8065e964 8066ac2c 80660934 8061fe3c 80616ca 4
00000000 00000000 00000000 00000000 00000000 00000000 00000000 804d15ac
SP:1434998416.12:eqllog_mbuf_Q.c:996:error:2.4.0:panic recovery of CPU0 with reason ' TO READ
CAPACITY 16! ".
MFS put in place
Basics of the building...
Serial number SP:1434998420.74:EMM.c:1239:info:28.2.6:Enclosure: XXXXXXXXXXXXXX.
Mon June 22 at 14:40:26 EDT 2015
ipctunnel: 127.0.0.1: Undefined error: 0
22 June at 14:40:26 init: kernel security level went from 0 to 1

PS series of storage arrays
Unauthorized access prohibited

Login: [PECHEC]

====

When you're just trying the second controller it just displays this:

[ENTRY] [BIST] [EQL] [WDOG] [TWDOG] [PAM]
Interrupt the Boot, the jury or ongoing Pechec

===

It's that I'm try a reset cli being super fast:

CLI > reset
 
WARNING: This command resets a table at the factory
default values (initial state).  The result is the
Elimination of all group configuration and volume
information and data of volume residing on the table.
 
Before resetting a table which is member of a group,
It is recommended to remove the Member of the
Group.
 
Reset this table to the factory settings? [n/DeleteAllMyDataNow] DeleteAllMyDataNow
Reset the system, this will take a few minutes.
Deletion of backup password files
Deletion of agent.cnf
Reset disks, [PECHEC]
[ENTRY] [BIST] [EQL] [TWDOG] [PAM] [210] [MESR] [SCAN] [BOOT2] [PROC] [COUNCIL] [SMP] [IOBUS] [FLASH] [HT]
*****************************************************
ATTENTION POST - 2015/06/22 17:25:23 Temp C 047
FPGA/XRCP/05130004
Power supply 0 has failed.  Entry: bad DC output: bad
*****************************************************
[ETH0] [ETH1] [ETH2]

BTW, never make such a process on a production system.   The process of "update" is much more than just copy new files to the 'old'. When upgrade version compatibility with one another Scriptures database and metadata must be modified or created.  Failure to do this could result in an inoperable table or maybe even the loss of data.

The flash code compact just to get the OS loaded EQL.  NetBSD is just a charger and provides some features of MGMT as SSH/FTP/HTTP.   Networking, iSCSI, etc, are all Dell/EQL code.

So if it does not start 5.0.2 jumping successfully up to anything else will not help.

Looks like more bad HW.

Tags: Dell Products

Similar Questions

  • java.sql.SQLException: JDBC LLR, table check failed for the table ' WL_LLR_ADMI

    Hello

    I am trying to install OSB in a different domain. I already have a suite of soa running.

    This is the directory structure
    Middleware/user_projects/domains

    (a) soa_domain
    (b) osb_domain

    Who, from the administration server for the BSO, I get error below.


    Error: -.
    < server failed. Reason: Last forest resource [JTAExceptions:119002] failed during initialization. The server cannot start unless all configured logging last resource (LLRs) initialize. Fault reason:
    javax.transaction.SystemException: weblogic.transaction.loggingresource.LoggingResourceException: java.sql.SQLException: check table JDBC LLR, failed for the table "WL_LLR_ADMINSERVER", line ' JDBC LLR field / / server ' record had an unexpected value ' soa_domain / / AdminServer' expected ' osb_domain / / AdminServer'* ONLY the domain and the server that creates a table original LLR can access *.



    I see the solution in https://blogs.oracle.com/epc/entry/technical_table_verify_failed_for but I have no doubt here.

    When I run

    Select RECORDSTR in the WL_LLR_ADMINSERVER where
    XIDSTR = "field of LLR JDBC / / server ';"

    I get the result like-> soa_domain / / AdminServer


    If I change it to osb_domain / / this AdminServer, will affect my soa_domain server... ? Please advice

    Published by: user10720442 on December 11, 2012 11:54

    Hello

    There are two possible solutions to this problem:

    Solution 1:

    To solve this problem reconfigures the basic information database of Point differently for each domain, if you have more than one domain. That, to change the port of the database and the name below two files in the field

    In the setDomainEnv.cmd (or .sh) file inside directory change DOMAIN_HOME/bin Point base port number and the name of the comic.

    Set POINTBASE_PORT = 9094
    Set POINTBASE_DBNAME = weblogic_eval2

    JDBC:PointBase:server://localhost:9094 / weblogic_eval2

    In the file wlsbjmsrpDataSource - jdbc.xml inside change DOMAIN_HOME/config/jdbc directory under entries with port of pointbase database updated and the name (this will be in two places in the file).

    Solution 2:

    If the domain name has been changed and do not want to change the database properties, then an update to the WL_LLR_ADMINSERVER table is possible:

    that is to say:
    Update SCHEMA_SAMPLE. Set RECORDSTR = WL_LLR_ADMINSERVER ' base_domain / / AdminServer' where XIDSTR = "JDBC LLR field / / server ';"

    Kind regards
    Kal

  • table partition failed in oracle11g expdp exported

    Hi gurus of the Oracle,.

    64-bit RHEL
    Oracle11g node 2 RAC/GRID
    Version: 11.2.0.1.0

    Every day, we take the datapump application backup

    But today, we found the following errors in the rest of the table datapump newspapers are exported successfully

    in fact, there is a TBLSESSION of our application that had 8 partiton table created in hash methods

    . . exported "USERNAME". "" TBLMSESSION ":"PART2"22,00 MB 123764 lines
    . . exported "USERNAME". "' TBLMSESSION ': 'PART3" 22.09 MB 124279 lines
    . . exported "USERNAME". "' TBLMSESSION ': 'PART4' 22,08 Mo 124182 lines
    . . exported "USERNAME". "" TBLMSESSION ":"PART5"22,07 MB 124140 lines
    . . exported "USERNAME". "' TBLMSESSION ': 'PART7' 22,05 MB 124027 lines
    ORA-31693: Data Table object 'USERNAME '. "' TBLMSESSION ': 'PART8' could not load/unload and being ignored because of the error:
    ORA-19502: write error on file ' / backup/exp_username_dbname_28041214550101.dmp ', block number 33591 (block size = 4096)
    ORA-27072: IO file error
    Additional information: 4
    Additional information: 33591
    Additional information: 4096
    . . exported "USERNAME". "" TBLMSESSION ":"PART1"123949 lines 22,03 MB
    . . exported "USERNAME". "' TBLMSESSION ': 'PART6' 22,08 Mo 124169 lines


    We tried also selected in separate but record partition data is counted with success

    Select count (1) in the PARTITION TBLMSESSION (PART1);
    Select count (1) in the PARTITION TBLMSESSION (PART2);
    Select count (1) in the PARTITION TBLMSESSION (PART3);
    Select count (1) in the PARTITION TBLMSESSION (PART4);
    Select count (1) in the PARTITION TBLMSESSION (PART5);
    Select count (1) in the PARTITION TBLMSESSION (PART6);
    Select count (1) in the PARTITION TBLMSESSION (PART7);
    Select count (1) in the PARTITION TBLMSESSION (PART8);

    How to troubleshoot and resolve the problem?

    Concerning
    Hitgon

    Hi Hitgon

    I find this on metalink and found the paragraphs below. See meatlink note:
    DataPump export fails with error ORA-39125 ORA-19502 ORA-27072 error 11 temporarily unavailable [resource ID 831746.1]

    Neeraj-

  • For a single table import failed...

    Hello
    On the production server, I reported a user db, let's call it PRD_USER, with tablespace PRD_TBL default.
    On the development server, I reported a user db, let's call it PRD_USER, with tablespace DEV_TBL default.
    On the production server, I use the db of exp utility to import as:
    IMP System/Manager of the user PRD_USER touser = PRD_USER = ignore = file_name = «...» ' log = «...» ».
    Succeeds the import for about 25 tables and indexes and constraints, but it fails for a single table with the error: {I don't remember the error ORA- and I do not have access currently} DEV_TBL tablespace does not exist.

    Of course this tablespace does not exist on production env. But how this problem arises because the default tablespace for the user is not DEV_TBL but PRD_TBL...?

    Do you have any idea what can be the cause and how can I overcome this problem when importing...? {Note: I gave a temporary solution... take the table creation sql script leaving aside the reference of the tablespace "DEV_TBL"}.

    The two servers work in exactly the same version of DB...
    Note: I use DB 10g v.2

    Thank you
    SIM

    If the table has Partitions, import strives to create the Partitions (in the CREATE TABLE statement) on the original table space.

    OR there is a LOB segment in the table import strives to create on the original table space.

    Hemant K Collette

  • TRUNCATE Table - task failed

    Hi friends,

    Im making a loading SCM using R12.1.3 when running I met an error like below
    2012-08-07 15:24:07.734 TRUNCATE TABLE:OPI_OBIA_W_BOM_HEADER_DS:"Table Action: Override OPI truncate command" template has started.
    ANOMALY INFO::: Error while executing : TRUNCATE TABLE:OPI_OBIA_W_BOM_HEADER_DS:"Table Action: Override OPI truncate command" template
    MESSAGE:::com.siebel.analytics.etl.execution.exceptions.ActionFailedException: Running Custom Sql list TRUNCATE TABLE:OPI_OBIA_W_BOM_HEADER_DS:"Table Action: Override OPI truncate command" template
    Default retries for this custom SQL is 1.
    
    executing sql (Truncate OPI:EBS11i)
    TRUNCATE TABLE OPI.OPI_OBIA_W_BOM_HEADER_DS
    For the foregoing regarding the link below error, they said like to apply a path 10422612

    https://forums.Oracle.com/forums/thread.jspa?threadID=2386306 & tstart = 75_ +.

    But when I tried to download this patch to resolve the above issue, a password is required to download the file in mysupport.

    Is there an alternative link to download this patch file.

    Thank you

    Kind regards
    Saro

    Yes, you need to get the password of Oracle by SR.

    Given that you do not use these tables, you can make it inactive task force TASK_GROUP_Extract_BOM. Of course respective tasks of SDE and SIL are also inactive.
    Once you with changes assemble the business sector and build of EP.

    Hope this helps

  • Table statement fails inside the class

    When I try to run the following code, I get the error:
    1120: access of undefined property myArray. for lines 4, 5, 6 and 7.
    This code is copied from the Adobe documentation and works if it is placed directly in a frame. Declare a new object will fail in the same way inside the class. But another class of upper level new Date works as expected. What I'm missing here?

    variable declarations are doing inside a class definition. variable assignment must be made within the constructor of the class that you are missing...

    {Classes package
    public class TryArray {}
    var myArray:Array = new Array (); \
    public void TryArray (): void {}
    myArray.push ("one");
    myArray.push ("two");
    myArray.push ("three");
    trace (myArray);
    }
    }
    }

  • Open SQL or the table creation failed. error # 3214: insertion failed because the database is full

    Yo UN Word UN largo, from eso amicable text copy to me Lodges y cuando quiero open recuperado el me arroja ese message.

    Luego, is me cierra application y cuando intento open in su inicio is me cierra.

    Sorry guys... it seemed to be simply not enough space on my drive... my fault...

    Thanks anyway

  • Table operations fail with get function returns table.

    Quote:

    public class A {}

    protected function get name (): String {return 'A' ;}
    protected function get myNameArr(): Array ['A'] ;} return;

    public void spliceMe(): void {}
    myNameArr.splice (myNameArr.indexOf (name), 1);
    Alert.Show (this.name + ":" + myNameArr.length);
    }
  • table model

    Hi all

    I tried manipulate a table but failed.

    At the present time, I have an array Ref: 1 2 3 4 5 6 7 8 9 10

    and a measurement range: 4.2, 5.2, 8.2, 9.2.

    The measured table will be compared with the ref and table if the table falls in the Ref, the value of the table measured range table will be saved, otherwise it will be filled with zeros.

    Finally, the answer should be something like: 0, 0, 0, 4.2, 5.2, 0, 0, 8.2, 9.2, 0.

    I managed to get to the 1st iteration and returns the result in form: 0, 0, 0, 4.2, 0, 0, 0, 0, 0, 0, but unable to go further.

    What must I do to get the results of desried? I have attached a sample VI.

    Can someone help me on this? One thing is that the measured two and table Ref will always be in ascending order, how do I get the code to run more efficiently?

    Thank you!

    Joven wrote:

    Nope, it's not just number 1, 2... It is a number with decimals.

    So why is he I32 then?

    What is the meaning of your +/-0.3. You really need to define the problem better. If the ref table is not an integer, then make an example with more typical data.

    Here's a quick draft using the reference table. Probably need some tweaks, but should help you get started.

  • Insert into MDQ_OLD select * from table (lt_monitorMdq);

    I'm trying to insert into a table that has only a single column, which is a column of a user defined type (UDT). The UDT is nested, that is one of the attributes of the UDT is an another UDT.

    I aim to insert into the table like this pseudo-code:

    INSERT INTO T1 SELECT * FROM THE UDT;

    CREATE TABLE MDQ_OLD (myMDQ UDT_T_MONITOR_MDQ)

    NESTED TABLE myMDQ

    (T1_NEW) ACE STORE

    THE NESTED TABLE MONITOR_MDQ_PRIM_RIGHTS

    STORE AS T2_NEW);

    The MONITOR_MDQ_CLI procedure. Read below returns the parameter lt_monitorMdq which is a UDT type as announced. The statement "insert into select MDQ_OLD * table (lt_monitorMdq);" fails, while the second insert statement works.

    Is it possible to get the first statement of work?

    I'm on Oracle 11 g 2.

    DECLARE

    lt_monitorMdq UDT_T_MONITOR_MDQ;

    BEGIN

    MONITOR_MDQ_CLI. Reading (TRUNC (SYSDATE),

    TRUNC (SYSDATE),

    NULL,

    NULL,

    "MILLION BTU.

    lt_monitorMdq); -Note lt_monitorMdq is an OUT parameter

    -This insert does not work

    Insert into MDQ_OLD select * from table (lt_monitorMdq);

    BECAUSE me in 1... lt_monitorMdq.count

    LOOP

    Dbms_output.put_line ('lt_monitorMdq: ' | .mdq_id lt_monitorMdq (i));

    -This integration works

    INSERT INTO MDQ_OLD (MYMDQ)

    VALUES (UDT_T_MONITOR_MDQ (UDT_R_MONITOR_MDQ)

    lt_monitorMdq (i) .gasday,

    1,

    NULL,

    NULL,

    NULL,

    NULL,

    NULL,

    NULL,

    NULL,

    NULL,

    NULL,

    NULL,

    NULL,

    NULL,

    NULL,

    NULL,

    () UDT_T_MONITOR_MDQ_PRIM_RIGHT

    () UDT_R_MONITOR_MDQ_PRIM_RIGHT

    1,

    NULL,

    NULL,

    NULL,

    NULL,

    NULL,

    NULL,

    NULL,

    (NULL)));

    END LOOP;

    END;

    have you tried:

    INSERT INTO MDQ_OLD (myMDQ) VALUES (lt_MonditorMDq);

    curiosity:

    Is there a particular reason, why you have created a table with a single column of type UDT instead of:

    CREATE TABLE... OF UDT_T_MONITOR_MDQ;

    I can tell you from experience that using a nested table, you can easily query the data in the nested table.

    MK

  • We can create a view or table with a form button?

    We can create a view or table with a form button using forms 6i?
    If Yes, what will be the command?

    Gul says:
    We can create a view or table with a form button using forms 6i?
    If Yes, what will be the command?

    Yes. You can. Use the FORMS_DDL built-in. For example

    BEGIN
      Forms_DDL('create table temp(n NUMBER)');
      IF NOT FORM_SUCCESS THEN
        Message ('Table Creation Failed');
      ELSE
        Message ('Table Created');
      END IF;
    END; 
    

    Hope this helps

    Hamid

  • logic to be transformed into a table sql pl statement and select fill.

    create table emp (eno number, varchar2 (20) ename, sal number (10.2), dno number);

    create table emp_commision (eno number number dno, dname varchar2 (20), number (5.2)) of the commission.

    DECLARE
    TYPE EmpTabTyp1 IS TABLE OF THE emp % ROWTYPE directory INDEX;
    TYPE IS of EmpTabTyp2 TABLE emp_commision % ROWTYPE directory INDEX;
    emp_tab1 EmpTabTyp1;
    emp_tab2 EmpTabTyp2;

    C1 (p_dno number) cursor select eno, dno, dname, commission of emp_commision where dno = p_dno;
    number of l_num_index1;

    Start
    Select eno, ename, sal bulk collect into emp_tab1 from emp;
    I'm in emp_tab1.first... emp_tab1. Last
    loop
    If (emp_tab1 (i) .sal > 10000) then
    for l_rec_commision in c1 (emp_tab1.dno)
    loop

    l_num_index1: = (l_num_index1 + 1);
    emp_tab2 (l_num_index1) .commission: = l_rec_commision.commision;

    end loop;

    end if;
    end loop;
    while others then
    dbms_output.put_line (SQLERRM);
    end;
    /


    Requirement:

    For the same logic, I want to fill the table with the commission plsql emp_tab2, without using a cursor
    and two loops (loop) and the cursor for loop for. Sal > 10000 expected
    also be implemented.

    Others can be done in a single query.

    Thank you
    Vinodh

    ora_1978 wrote:
    Requirement:

    For the same logic, I want to fill the table with the commission plsql emp_tab2, without using a cursor
    and two loops (loop) and the cursor for loop for. Sal > 10000 expected
    also be implemented.

    Others can be done in a single query.

    Thank you
    Vinodh

    In addition there are errors in your code and it won't work, it is unclear what exactly you want as you have not explained with sample data and expected results.

    You select the number of columns to collect your in bulk.
    You collect the commission for an entire Department without regard to the employee for each employee record, so you would end up duplicating your data in your pl/sql collection (don't call them paintings, they are not really tables).
    You have not initialized l_num_index1 so it will never be incremented
    You have added an unnecessary error handler.
    etc.

    I'm guessing that you are looking for something in this direction...

    declare
      type EmpTabType2 is table of emp_commision%ROWTYPE index by binary_integer;
      emp_tab2 EmpTabType2;
    begin
      select ec.*
      bulk collect into emp_tab2
      from   emp e
             join emp_commision ec on (e.eno = ec.eno and e.dno = ec.dno)
      where  e.sal > 10000;
    end;
    

    ... but we can't really help without more information.

  • Tables of droping under certain conditions

    I'm new next to the database. I want to delete tables that are like the "C$ %.
    How should I achieve that?
    What would the query?

    MaheshGx wrote:
    Hi, I tried your command but it gives following error.

    Error report:
    ORA-00942: table or view does not exist
    ORA-06512: at line 3 level
    00942 00000 - "table or view does not exist.

    Then you're doing something wrong. In this case you must instrument the code to give you a feedback step by step. For example:

    begin
      for t in (select table_name from user_tables where table_name like 'C$%' ) loop
        begin
            dbms_output.put_line( 'Dropping table '||t.table_name );
            execute immediate 'drop table '||t.table_name;
            dbms_output.put_line( 'Table dropped' );
        exception when others then
            dbms_output.put_line( 'Table drop failed with '||SqlErrM(SqlCode) );
        end;
      end loop;
    end;
    

    If the table names are case sensitive, or contains special characters, you must wrap the table name in double quotes in the statement drop table .

    PS. don't forget that just a drop tables as it is VERY unusual. Make sure you do the right thing and to tackle the problem (that you neglected to mention), correctly. You could dig a deep, dark hole for yourself by dropping the tables and bad, like this.

  • How to cut the large table into pieces

    I'm trying to derive some of generic logic that would be cut into pieces of defined size a large table. The goal is to perform the update into pieces and avoid questions too small restoration. The full table on the update scan is inevitable, given that the update target each row of the table.

    The BIGTABLE has 63 million lines. The purpose of the bellow SQL to give ID all 2 million rows. So I use the rownum 'auto line numering field' and run a test to see I could. I expected the piece of fist to have 2 million rows, but in fact, it is not the case:

    Here is the +(NOTE I had many problems with quotes, so some ROWID appears without their enclosing quotes or they disappear from current output here) code +:
    select rn, mod, frow, rownum from (
        select rowid rn ,  rownum frow, mod(rownum, 2000000) mod  
      from bigtable order by rn) where mod = 0
    /
    
    SQL> /
    
    RN                        MOD       FROW     ROWNUM
    ------------------ ---------- ---------- ----------
    AAATCjAA0AAAKAVAAd          0    4000000          1
    AAATCjAA0AAAPUEAAv          0   10000000          2
    AAATCjAA0AAAbULAAx          0    6000000          3
    AAATCjAA0AAAsIeAAC          0   14000000          4
    AAATCjAA0AAAzhSAAp          0    8000000          5
    AAATCjAA0AABOtGAAa          0   26000000          6
    AAATCjAA0AABe24AAE          0   16000000          7
    AAATCjAA0AABjVgAAQ          0   30000000          8
    AAATCjAA0AABn4LAA3          0   32000000          9
    AAATCjAA0AAB3pdAAh          0   20000000         10
    AAATCjAA0AAB5dmAAT          0   22000000         11
    AAATCjAA0AACrFuAAW          0   36000000         12
    AAATCjAA6AAAXpOAAq          0    2000000         13
    AAATCjAA6AAA8CZAAO          0   18000000         14
    AAATCjAA6AABLAYAAj          0   12000000         15
    AAATCjAA6AABlwbAAg          0   52000000         16
    AAATCjAA6AACBEoAAM          0   38000000         17
    AAATCjAA6AACCYGAA1          0   24000000         18
    AAATCjAA6AACKfBABI          0   28000000         19
    AAATCjAA6AACe0cAAS          0   34000000         20
    AAATCjAA6AAFmytAAf          0   62000000         21
    AAATCjAA6AAFp+bAA6          0   60000000         22
    AAATCjAA6AAF6RAAAQ          0   44000000         23
    AAATCjAA6AAHJjDAAV          0   40000000         24
    AAATCjAA6AAIR+jAAL          0   42000000         25
    AAATCjAA6AAKomNAAE          0   48000000         26
    AAATCjAA6AALdcMAA3          0   46000000         27
    AAATCjAA9AAACuuAAl          0   50000000         28
    AAATCjAA9AABgD6AAD          0   54000000         29
    AAATCjAA9AADiA2AAC          0   56000000         30
    AAATCjAA9AAEQMPAAT          0   58000000         31
    
    31 rows selected.
    
    SQL> select count(*) from BIGTABLE where rowid < AAATCjAA0AAAKAVAAd ;
    
      COUNT(*)
    ----------
        518712             <-- expected around 2 000 000
    
    SQL> select count(*) from BIGTABLE where rowid < AAATCjAA0AAAPUEAAv ;
    
      COUNT(*)
    ----------
       1218270     <-- expected around 4 000 000
    
    SQL> select count(*) from BIGTABLE where rowid < AAATCjAA0AAAbULAAx ;
    
      COUNT(*)
    ----------
       2685289    <-- expected around 6 000 000
    Amzingly, this code works perfectly for small tables, but fails for large tables. Does anyone has an explanation and possibly a solution to this?

    Here's the complete SQL code that is suppposed to generate all the predicates, I need to add update statements in order to cut into pieces:
    select line  from (
       with v as (select rn, mod, rownum frank from (
           select rowid rn ,  mod(rownum, 2000000) mod
               from BIGTABLE order by rn ) where mod = 0),
          v1 as (
                  select rn , frank, lag(rn) over (order by frank) lag_rn  from v ),
          v0 as (
                  select count(*) cpt from v)
        select 1, case
                    when frank = 1 then ' and rowid  <  ''' ||  rn  || ''''
                    when frank = cpt then ' and rowid >= ''' || lag_rn ||''' and rowid < ''' ||rn || ''''
                    else ' and rowid >= ''' || lag_rn ||''' and rowid <'''||rn||''''
                 end line
    from v1, v0
    union
    select 2, case
               when frank =  cpt then   ' and rowid >= ''' || rn  || ''''
              end line
        from v1, v0 order by 1)
    /
    
     and rowid  <  AAATCjAA0AAAKAVAAd
     and rowid >= 'AAATCjAA0AAAKAVAAd' and rowid < 'AAATCjAA0AAAPUEAAv''
     and rowid >= 'AAATCjAA0AAAPUEAAv' and rowid < 'AAATCjAA0AAAbULAAx''
     and rowid >= 'AAATCjAA0AAAbULAAx' and rowid < 'AAATCjAA0AAAsIeAAC''
     and rowid >= 'AAATCjAA0AAAsIeAAC' and rowid < 'AAATCjAA0AAAzhSAAp''
     and rowid >= 'AAATCjAA0AAAzhSAAp' and rowid < 'AAATCjAA0AABOtGAAa''
     and rowid >= 'AAATCjAA0AAB3pdAAh' and rowid < 'AAATCjAA0AAB5dmAAT''
     and rowid >= 'AAATCjAA0AAB5dmAAT' and rowid < 'AAATCjAA0AACrFuAAW''
     and rowid >= 'AAATCjAA0AABOtGAAa' and rowid < 'AAATCjAA0AABe24AAE''
     and rowid >= 'AAATCjAA0AABe24AAE' and rowid < 'AAATCjAA0AABjVgAAQ''
     and rowid >= 'AAATCjAA0AABjVgAAQ' and rowid < 'AAATCjAA0AABn4LAA3''
     and rowid >= 'AAATCjAA0AABn4LAA3' and rowid < 'AAATCjAA0AAB3pdAAh''
     and rowid >= 'AAATCjAA0AACrFuAAW' and rowid < 'AAATCjAA6AAAXpOAAq''
     and rowid >= 'AAATCjAA6AAA8CZAAO' and rowid < 'AAATCjAA6AABLAYAAj''
     and rowid >= 'AAATCjAA6AAAXpOAAq' and rowid < 'AAATCjAA6AAA8CZAAO''
     and rowid >= 'AAATCjAA6AABLAYAAj' and rowid < 'AAATCjAA6AABlwbAAg''
     and rowid >= 'AAATCjAA6AABlwbAAg' and rowid < 'AAATCjAA6AACBEoAAM''
     and rowid >= 'AAATCjAA6AACBEoAAM' and rowid < 'AAATCjAA6AACCYGAA1''
     and rowid >= 'AAATCjAA6AACCYGAA1' and rowid < 'AAATCjAA6AACKfBABI''
     and rowid >= 'AAATCjAA6AACKfBABI' and rowid < 'AAATCjAA6AACe0cAAS''
     and rowid >= 'AAATCjAA6AACe0cAAS' and rowid < 'AAATCjAA6AAFmytAAf''
     and rowid >= 'AAATCjAA6AAF6RAAAQ' and rowid < 'AAATCjAA6AAHJjDAAV''
     and rowid >= 'AAATCjAA6AAFmytAAf' and rowid < 'AAATCjAA6AAFp+bAA6''
     and rowid >= 'AAATCjAA6AAFp+bAA6' and rowid < 'AAATCjAA6AAF6RAAAQ''
     and rowid >= 'AAATCjAA6AAHJjDAAV' and rowid < 'AAATCjAA6AAIR+jAAL''
     and rowid >= 'AAATCjAA6AAIR+jAAL' and rowid < 'AAATCjAA6AAKomNAAE''
     and rowid >= 'AAATCjAA6AAKomNAAE' and rowid < 'AAATCjAA6AALdcMAA3''
     and rowid >= 'AAATCjAA6AALdcMAA3' and rowid < 'AAATCjAA9AAACuuAAl''
     and rowid >= 'AAATCjAA9AAACuuAAl' and rowid < 'AAATCjAA9AABgD6AAD''
     and rowid >= 'AAATCjAA9AABgD6AAD' and rowid < 'AAATCjAA9AADiA2AAC''
     and rowid >= 'AAATCjAA9AADiA2AAC' and rowid < 'AAATCjAA9AAEQMPAAT''
     and rowid >= 'AAATCjAA9AAEQMPAAT''
    
    33 rows selected.
    
    SQL> select count(*) from BIGTABLE where  1=1 and rowid  <  AAATCjAA0AAAKAVAAd ;
    
      COUNT(*)
    ----------
        518712
    
    SQL> select count(*) from BIGTABLE where  1=1 and rowid  >= 'AAATCjAA9AAEQMPAAT'' ;
    
      COUNT(*)
    ----------
       1846369
    Nice but not accurate...

    The problem is that your query implies that ROWID, and ROWNUM are classified in the same way. For small tables it is very often the case, but not for the larger tables. Oracle does not guarantee return records in the order the rowid. However usually it works this way.

    You could test ensuring that get you the rownum after you ordered. And see if it works then.

    select rn, mod, frow, rownum
    from (select rn, rownum frow, mod(rownum, 2000000) mod
            from  (select rowid rn from bigtable order by rn)
            order by rn
            )
    where mod = 0
    / 
    
  • SQLLoader: what clause fails

    Hello
    I'm working on a
    Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production
    With partitioning, Automatic Storage Management, OLAP, Data Mining
    and Real Application Testing options

    I have to load a file into 2 different tables and I am tring to do this using sqlloader and file of a single order.
    This source file (part of):
    "1","20110228155443","21970","671","3","","LISSETTE CAROLIN","MORALES COBO","","","V11283202","UBICAR123","","",""
    "1","20110228160121","21971","671","3","","RAFAEL GREGORIO","BRIÃEZ ZAMBRANO","","0","","","","",""
    "1","20110228160505","21972","14782","3","","Noelia","Parrales","","","RRHH","rrhh123","","",""
    "1","20110228163120","21973","671","3","","JOSE GREGORIO","PEREZ","","0","","","","",""
    "1","20110228165534","21974","671","3","","CARMEN","ARAUJO","","","V15753282","UBICAR123","","",""
    "2","20110228044646","12005","1","0","","","Cellocator Test","4","0","COMPACT 268852","","","","","","","","",
    "2","20110228084454","22012","1","3","","","POLO","22","0","EG727SV","20110223000000","MASSIMO","PAMELA","WVWZZZ6RZBY201299","","","","",
    "2","20110228085219","20378","1","22","","","ASTRA","4","0","EF774ND","20110120000000","ER3497","X","WOLPF6EN3BG059489","","","","",
    "2","20110228091127","22122","1","3","","","GOLF","4","0","EG766SV","20110224000000","BALGARION","VETURIA","WVWZZZ1KZBW215645","","","","",
    And it's the control file:
    OPTIONS ( DIRECT=FALSE,PARALLEL=TRUE, ERRORS=0, BINDSIZE=50000, ROWS=1000, READSIZE=65536)
    LOAD DATA
    CHARACTERSET UTF8
    TRUNCATE
    
     INTO TABLE "STG_ITALY"."STG_USER"
      WHEN TYPE_ = "1"
     FIELDS terminated by ',' enclosed by '"' TRAILING NULLCOLS
      (
       "TYPE_" INTEGER EXTERNAL,
       "DATE_MODIFY" "TO_DATE(:DATE_MODIFY, 'YYYYMMDDHH24MISS')",
       "ID_USER" INTEGER EXTERNAL,
       "ID_USER_PARENT" INTEGER EXTERNAL,
       "I_TYPE_USER" INTEGER EXTERNAL,
       "COMPANY_NAME" CHAR,
       "FIRST_NAME" CHAR,
       "LAST_NAME" CHAR,
       "MIDDLE_NAME" CHAR,
       "I_NATIONALITY" INTEGER EXTERNAL,
       "LOGIN_NAME" CHAR,
       "LOGIN_PASSWORD" CHAR,
       "NOTE" CHAR,
       "DATE_VALID_TO" "TO_DATE(:DATE_VALID_TO, 'YYYYMMDDHH24MISS')",
       "ID_USER_VALID_TO" INTEGER EXTERNAL
      )
    
     INTO TABLE "STG_ITALY"."STG_VEHICLE"
      WHEN TYPE_ = "2"
     FIELDS terminated by ',' enclosed by '"' TRAILING NULLCOLS
      (
       "TYPE_" INTEGER EXTERNAL,
       "DATE_MODIFY" "TO_DATE(:DATE_MODIFY, 'YYYYMMDDHH24MISS')",
       "ID_VEHICLE" INTEGER EXTERNAL,
       "I_TYPE_VEHICLE" INTEGER EXTERNAL,
       "ID_BRAND_VEHICLE" INTEGER EXTERNAL,
       "ID_MODEL_VEHICLE" INTEGER EXTERNAL,
       "ID_FUEL_TYPE" INTEGER EXTERNAL,
       "MODEL" CHAR,
       "I_COLOUR" INTEGER EXTERNAL,
       "METALIC" INTEGER EXTERNAL,
       "PLATE_NUMBER" CHAR,
       "MATRICULATION" "TO_DATE(:MATRICULATION, 'YYYYMMDDHH24MISS')",
       "VOCAL_STD_PASSWORD" CHAR,
       "VOCAL_EMR_PASSWORD" CHAR,
       "FRAME_NUMBER" CHAR,
       "ENGINE_NUMBER" CHAR,
       "NOTE" CHAR,
       "DATE_VALID_TO" "TO_DATE(:DATE_VALID_TO, 'YYYYMMDDHH24MISS')",
       "ID_USER_VALID_TO" INTEGER EXTERNAL
      )
    The problem is that I can fill just first table.
    Once the clause of the second table always fails and no lines are written.

    This is the log:
    Table "STG_ITALY"."STG_USER":
      68 Rows successfully loaded.
      0 Rows not loaded due to data errors.
      680 Rows not loaded because all WHEN clauses were failed.
      0 Rows not loaded because all fields were null.
    
    
    Table "STG_ITALY"."STG_VEHICLE":
      0 Rows successfully loaded.
      0 Rows not loaded due to data errors.
      748 Rows not loaded because all WHEN clauses were failed.
      0 Rows not loaded because all fields were null.
    What I am doing wrong?

    Thanks in advance

    Try changing your controlfile to

    OPTIONS ( DIRECT=FALSE,PARALLEL=TRUE, ERRORS=0, BINDSIZE=50000, ROWS=1000, READSIZE=65536)
    LOAD DATA
    CHARACTERSET UTF8
    TRUNCATE
    
     INTO TABLE "STG_ITALY"."STG_USER"
      WHEN TYPE_ = "1"
     FIELDS terminated by ',' enclosed by '"' TRAILING NULLCOLS
      (
       "TYPE_" INTEGER EXTERNAL,
       "DATE_MODIFY" "TO_DATE(:DATE_MODIFY, 'YYYYMMDDHH24MISS')",
       "ID_USER" INTEGER EXTERNAL,
       "ID_USER_PARENT" INTEGER EXTERNAL,
       "I_TYPE_USER" INTEGER EXTERNAL,
       "COMPANY_NAME" CHAR,
       "FIRST_NAME" CHAR,
       "LAST_NAME" CHAR,
       "MIDDLE_NAME" CHAR,
       "I_NATIONALITY" INTEGER EXTERNAL,
       "LOGIN_NAME" CHAR,
       "LOGIN_PASSWORD" CHAR,
       "NOTE" CHAR,
       "DATE_VALID_TO" "TO_DATE(:DATE_VALID_TO, 'YYYYMMDDHH24MISS')",
       "ID_USER_VALID_TO" INTEGER EXTERNAL
      )
    
     INTO TABLE "STG_ITALY"."STG_VEHICLE"
      WHEN TYPE_ = "2"
     FIELDS terminated by ',' enclosed by '"' TRAILING NULLCOLS
      (
       "TYPE_" POSITION(1) INTEGER EXTERNAL,
       "DATE_MODIFY" "TO_DATE(:DATE_MODIFY, 'YYYYMMDDHH24MISS')",
       "ID_VEHICLE" INTEGER EXTERNAL,
       "I_TYPE_VEHICLE" INTEGER EXTERNAL,
       "ID_BRAND_VEHICLE" INTEGER EXTERNAL,
       "ID_MODEL_VEHICLE" INTEGER EXTERNAL,
       "ID_FUEL_TYPE" INTEGER EXTERNAL,
       "MODEL" CHAR,
       "I_COLOUR" INTEGER EXTERNAL,
       "METALIC" INTEGER EXTERNAL,
       "PLATE_NUMBER" CHAR,
       "MATRICULATION" "TO_DATE(:MATRICULATION, 'YYYYMMDDHH24MISS')",
       "VOCAL_STD_PASSWORD" CHAR,
       "VOCAL_EMR_PASSWORD" CHAR,
       "FRAME_NUMBER" CHAR,
       "ENGINE_NUMBER" CHAR,
       "NOTE" CHAR,
       "DATE_VALID_TO" "TO_DATE(:DATE_VALID_TO, 'YYYYMMDDHH24MISS')",
       "ID_USER_VALID_TO" INTEGER EXTERNAL
      )
    

    (just add a keyword POSITION (1) by the second table)

    Best regards

    Maxim

Maybe you are looking for