Is this a bug in Oracle 10g ?

I've been trying to port my SQL from 9.2.0.6 to 10g recently and noticed a problem using the sequence operator NEXTVAL from within a trigger, when inserting rows into another tables.
For example, the following code works ok on 9.2.0.6 but when run on 10g the KPIIDD.NEXTVAL is inserted as NULL.
<< This is part of a Trigger on PDRTEM table >>
INSERT INTO LSTKPI (KPIIDD, PRMNME, KPISUP, TEMIDD1)
VALUES (KPIIDD.NEXTVAL, NEXTPRM.PRMNME, NEXTSTA.STANAM, PDRTEM_PKG_1.rids(i));
In order to fix the problem i had to add a +0 to the NEXTVAL clause, as demonstrated in the following example which works in 9.2.0.6 and 10g
INSERT INTO LSTKPI (KPIIDD, PRMNME, KPISUP, TEMIDD1)
VALUES (KPIIDD.NEXTVAL+0, NEXTPRM.PRMNME, NEXTSTA.STANAM, PDRTEM_PKG_1.rids(i));
NOTE: If the insert is outside of a Trigger then it's fine - just when within the Trigger it's a problem.

Do your sequence and column have the same name? In your code sample, it looks like they do:
INSERT INTO LSTKPI (KPIIDD, PRMNME, KPISUP, TEMIDD1)
VALUES (KPIIDD.NEXTVAL, NEXTPRM.PRMNME, NEXTSTA.STANAM, PDRTEM_PKG_1.rids(i));
Maybe that has confused the parser.
As Oracle moves forward, you can expect more object-oriented functionality. That could mean that columns could have their own attributes or methods. If so, how is the parser to know whether in this code the value KPIIDD.NEXTVAL refers to the (external) sequence or a column attribute?
As a suggestion, try renaming the sequence.
create sequence KPIIDD_SEQ start with ... ;
INSERT INTO LSTKPI (KPIIDD, PRMNME, KPISUP, TEMIDD1)
VALUES (KPIIDD_SEQ.NEXTVAL, NEXTPRM.PRMNME, NEXTSTA.STANAM, PDRTEM_PKG_1.rids(i));
HTH,
- Doug

Similar Messages

  • DBMS bug in Oracle 10g Relese 2

    It seems some bug appeared in Oracle 10g Release 2.
    We have a single installation of that release on a Linux system.
    Therefore we don't know if the bug also exists on Windows or Mac platforms.
    It will be appreciated if someone can give some advice or test the issue on windows.
    Here are the steps of reproducing the bug..
    -- 1. Create a table with statement.
    create table spreaded
    ( grp NUMBER,
    p1 NUMBER,
    p2 NUMBER,
    p3 NUMBER,
    p4 NUMBER
    --2. Populate the table with the following PL/SQL block (or otherwise)
    declare
    begin
    for k in 1..400000 loop -- depends on installation's memory parameters
    insert into spreaded values (k, 1, NULL, NULL, NULL);
    insert into spreaded values (k, NULL, 2, NULL, NULL);
    insert into spreaded values (k, NULL, NULL, 3, NULL);
    insert into spreaded values (k, NULL, NULL, NULL, 4);
    end loop;
    end;
    --3. Execute the following query
    select grp,
    count(grp) fake,
    avg(p1) prop_1,
    avg(p2) prop_2,
    avg(p3) prop_3,
    avg(p4) prop_4
    from spreaded
    group by (grp) order by fake;
    -- The expected first line of correct result is
    GRP FAKE PROP_1 PROP_2 PROP_3 PROP_4
    *** 4 1 2 3 4
    where *** is some integer
    -- The buggy case shows
    GRP FAKE PROP_1 PROP_2 PROP_3 PROP_4
    *** 1 4
    FAKE is not 4 and there are NULL values.
    This is against the way of handling nulls by aggregate functions.
    If you get correct results, please, add new lines to table through executing PL/SQL
    block with modified loop (for k in 400001..800000 loop) to double the row count and then execute select statement from 3.

    Some bugs appears, some others go away, but if you think have found a bug, raise a support request to the metalink website.
    Nicolas.

  • Validation with DTD: Bug in Oracle 10g?

    Hi
    The following example works with Oracle 11g, but not with Oracle 10g.
    I have a XML-document (familie.xml) and a DTD-Document (familie.dtd). The XML-document is not valide, because I changed the tag "Vater" into "Dad". Within
    the DTD the "Vater"-element is described as follow: <!ELEMENT Familie (Vater, Mutter, Kind) >. If I validate the document, I get in Oracle 11g this exception:
    Unexpected Error: ORA-31011: XML-Parsing not succesful
    LPX-00104: Warning: Element "Dad" is not declared in the DTD.
    Error at line 3 occured.
    This Error is right!! But if I try the SAME example in Oracle 10g, I don't get a Exception!!!! But I should become one.
    Have anyone tested DTD-Validation in Oracle 10g or is it a bug?
    <?xml version='1.0' encoding='ISO-8859-15' ?>
    <!-- Dokument beschreibt eine Familie -->
    <Familie>
         <Dad>
              <Name>Meier</Name>
    <Vorname>David</Vorname>
         </Dad>
         <Mutter>
              <Name>Baumann</Name>
              <Vorname>Charlotte</Vorname>
         </Mutter>
         <Kind>
              <Name>Slota</Name>
              <Vorname>Kaharina</Vorname>
         </Kind>
    </Familie>
    <!ELEMENT Familie (Vater, Mutter, Kind) >
    <!ELEMENT Vater (Name, Vorname)>
    <!ELEMENT Mutter (Name, Vorname)>
    <!ELEMENT Kind (Name, Vorname) >
    <!ELEMENT Name (#PCDATA) >
    <!ELEMENT Vorname (#PCDATA) >
    set directory TEST_DIR as '....';
    DECLARE
    v_parser xmlparser.parser;
    v_document xmldom.DOMDocument;
    v_nodeList xmldom.DOMNodeList;
    v_number NUMBER;
    v_xmlDatei VARCHAR2(32);
    v_dtdDatei varchar2(32);
    parserError EXCEPTION;
    PRAGMA EXCEPTION_INIT(parserError, -20100);
    BEGIN
    v_xmlDatei := 'familie.xml';
    v_dtdDatei := 'familie.dtd';
    v_parser := xmlparser.newParser();
    DBMS_XMLPARSER.setBaseDir(v_parser, 'TEST_DIR');
    xmlparser.setValidationMode(v_parser, TRUE);
    xmlparser.parseDTD(v_parser, v_dtdDatei, 'Familie');
    xmlparser.parse(v_parser, v_xmlDatei);
    v_document:=xmlparser.getDocument(v_parser);
    xmlparser.freeParser(v_parser);
    xmldom.freeDocument(v_document);
    EXCEPTION
    WHEN parserError THEN
    xmlparser.freeParser(v_parser);
    dbms_output.put_line('Fehler beim Parsen: ' || SQLERRM);
    WHEN OTHERS THEN
    dbms_output.put_line('Unerwarteter Fehler: ' || ' ' || SQLERRM);
    END;
    null
    Message was edited by:
    user638576

    Do your sequence and column have the same name? In your code sample, it looks like they do:
    INSERT INTO LSTKPI (KPIIDD, PRMNME, KPISUP, TEMIDD1)
    VALUES (KPIIDD.NEXTVAL, NEXTPRM.PRMNME, NEXTSTA.STANAM, PDRTEM_PKG_1.rids(i));
    Maybe that has confused the parser.
    As Oracle moves forward, you can expect more object-oriented functionality. That could mean that columns could have their own attributes or methods. If so, how is the parser to know whether in this code the value KPIIDD.NEXTVAL refers to the (external) sequence or a column attribute?
    As a suggestion, try renaming the sequence.
    create sequence KPIIDD_SEQ start with ... ;
    INSERT INTO LSTKPI (KPIIDD, PRMNME, KPISUP, TEMIDD1)
    VALUES (KPIIDD_SEQ.NEXTVAL, NEXTPRM.PRMNME, NEXTSTA.STANAM, PDRTEM_PKG_1.rids(i));
    HTH,
    - Doug

  • Is it a bug in Oracle 10g rel 1

    I have server installed in Oracle 10g rel 1 and I have client installed as oracle10grel2. I am unable to export data from client machine. It is giving me a error. Can anyone help me out.
    Regards
    Vijay Kumar

    You need exp from 10gR1.
    Oracle works in downwards compatibility mode.
    This means lower version clients can connect to higher versions server, not necessarily the other way around.
    exp is a specific case as exp has sql statements hardcoded in the tool.
    Those statements are version specific.
    (One would wish Oracle would change exp to bail out immediately when connected to a lower version database)Due to this only, I need the URL for client of version 10g rel 1 for the server 10g rel 1.
    Regards
    Vijay Kumar

  • Is this a bug in oracle 9i

    How come I do not get an error msg when i do this in oracle 9i
    select last_day(to_date('2010-01'|| '01', 'YYYY-MM-DD')) from dualtechincally, this should be the right way to do it
    select last_day(to_date('2010-01'|| '-01', 'YYYY-MM-DD')) from dual

    Hi,
    SomeoneElse wrote:
    ... It may seem kind of funny but the keyword OUTER is entirely optional when doing an OUTER join.
    (INNER is also optional)That is paradoxiocal: the keyword OUTER in optional for outer joins, INNER is optional for inner joins.
    INNER being optional makes a certain amolunt of sense. Most joins are inner joins, so there's some logic to making it the default.
    Outer joins are the only kind of joins that are asymmetrical. For the other kinds (inner joins, cross joins and full outer joins) it doesn't matter which table is on the left or the right, the results are always the same. So if you say LEFT or RIGHT (or FULL, for that matter), then you must mean OUTER, and you can omit the keyword OUTER.

  • Help! Is this a bug of Oracle 9i's Net8?

    I installed Oracle 9i client over that of 8i on Windows 2000,
    and every thing seems perfect on installation. But when comes
    the Net Configuration Assistant, I surprisingly found I can't
    connect the servers I could once connect. The error is:
    ORA-03113 end-of-file on communication channel
    How could this happen? Please help me!

    Hi,
    SomeoneElse wrote:
    ... It may seem kind of funny but the keyword OUTER is entirely optional when doing an OUTER join.
    (INNER is also optional)That is paradoxiocal: the keyword OUTER in optional for outer joins, INNER is optional for inner joins.
    INNER being optional makes a certain amolunt of sense. Most joins are inner joins, so there's some logic to making it the default.
    Outer joins are the only kind of joins that are asymmetrical. For the other kinds (inner joins, cross joins and full outer joins) it doesn't matter which table is on the left or the right, the results are always the same. So if you say LEFT or RIGHT (or FULL, for that matter), then you must mean OUTER, and you can omit the keyword OUTER.

  • ORA-01722: invalid number error coming in Oracle 10g.

    Hi,
    We are getting the error "ORA-01722: invalid number" while opening a cursor using CURSOR FOR LOOP.
    This error has started coming only after we have migrated to Oracle 10g from Oracle 9i. Earlier the same code used to work properly. And also on Oracle 10g, its not happening every time. Sometimes it gives error while sometimes it works.
    Does anybody know about any such bug in Oracle 10g. Our cursor is a parametrized cursor accepting a VARCHAR2 parameter and the value we are passing to it is also character.
    Our database is Oracle 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production and is running on UNIX server.

    And also on Oracle 10g, its not happening every time. Sometimes it gives error while sometimes it works. This is typically due to
    a) environment settings that differ from session to session
    b) or more often, data
    The actual error means that Oracle expects a number and is unable to obtain a number from the input (data or SQL or bind variables) supplied. I agree with William that it looks a lot like an implicit TO_NUMBER() conversion failing.
    Why not add a debug exception handler to the code? When that exception occurs, dump the PL/SQL call stack and values of all variables and parameters to a debug/logging table (using an autonomous transaction).

  • Nested tables and multiset operators in Oracle 10g

    Consider the following scenario:
    We have two identical relations R and S defined as:
    CREATE TABLE R(
    a INTEGER,
    b table_type)
    NESTED TABLE b STORE as b_1;
    CREATE TABLE S(
    a INTEGER,
    b table_type)
    NESTED TABLE b STORE as b_2;
    where table_typ is defined as
    CREATE TYPE table_typ AS TABLE OF VARCHAR2(8);
    Suppose we have two instances of R and S, each having one tuple as follows: R(1,table_typ('a','b')) and S(1,table_typ('b','c')).
    I would like to "merge" these two simple instances (e.g., achieve the effect of a simple SELECT * FROM R UNION SELECT * FROM S query) and obtain the following resulting instance: Result(1,table_typ('a','b','c')).
    Would this be possible in Oracle 10g? A simple UNION does not work (I got a "inconsistent datatypes: expected - got SCOTT.TABLE_TYP" error). I also took a look at the MULTISET UNION operator over nested tables available in Oracle 10g, but it doesn't seem to get me anywhere. Any help on this would be greatly appreciated.
    Thank you,
    Laura

    Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    SQL> CREATE OR REPLACE TYPE table_type AS TABLE OF VARCHAR2 (8);
      2  /
    Type created.
    SQL> CREATE TABLE r(
      2    a INTEGER,
      3    b table_type)
      4    NESTED TABLE b STORE as b_1;
    Table created.
    SQL> CREATE TABLE s(
      2    a INTEGER,
      3    b table_type)
      4    NESTED TABLE b STORE as b_2;
    Table created.
    SQL> INSERT INTO r VALUES (1, table_type ('a', 'b'));
    1 row created.
    SQL> INSERT INTO s VALUES (1, table_type ('b', 'c'));
    1 row created.
    SQL> COLUMN c FORMAT A10;
    SQL> SELECT r.a, r.b MULTISET UNION DISTINCT s.b c
      2  FROM   r, s
      3  WHERE  r.a = s.a;
             A C
             1 TABLE_TYPE('a', 'b', 'c')
    SQL>

  • Problem In GO TO DATABASE HOME PAGE in oracle 10g XE  updated

    When i click the GO TO DATABASE HOME PAGE icon my web browser say "The page you are looking for is currently unavailable Server, Cannot find server or DNS Error
    Internet Explorer" and the address that it is openning is "http://127.0.0.1:8080/htmldb" can any one help me with this?
    Im using oracle 10g express edition, the one that is available for free download. And my operating system is windows xp SP2.
    Thanks
    Message was edited by:
    user468763

    There is a dedicated forum for questions related to XE
    Oracle Database Express Edition (XE)
    You need first to register for this forum here:
    http://www.oracle.com/technology/xe/registration
    After you register, simply log on to the discussion forums wth the same userid that you used to register - no need to wait for the confirmation email.

  • Is this a "bug" on this group by matrix report?

    Is this a bug in Reports (10g Release2)?
    We need to create a report which will display country and gender wise arrival totals for every flight but Arrival method wise (i.e. grouped by arrival method), with grand totals for the flight number (i.e. total people in the flight).
    The output comes out correct only if 1 group (i.e. Arrival method ) is selected. But when all arrival methods are shown, we get this wrong output.
    TABLE + DATA
    --  DDL + data for Table KR_TABLE1
      CREATE TABLE "KR_TABLE1"
       (     "PK" NUMBER PRIMARY KEY,
         "ARRIVAL_METHOD" VARCHAR2(10 BYTE),
         "COUNTRY_CODE" VARCHAR2(2 BYTE),
         "COUNTRY_NAME" VARCHAR2(10 BYTE),
         "ARRIVAL_GENDER" VARCHAR2(1 BYTE),
         "FLIGHT_NUMBER" VARCHAR2(10 BYTE),
         "FLIGHT_DATE" DATE,
         "COUNT1" NUMBER
    REM INSERTING into KR_TABLE1
    SET DEFINE OFF;
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (1,'Swipe','In','India','M','UL 123',to_date('01-APR-13','DD-MON-RR'),5);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (2,'Swipe','In','India','F','UL 123',to_date('01-APR-13','DD-MON-RR'),6);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (3,'Swipe','In','India','C','UL 123',to_date('01-APR-13','DD-MON-RR'),2);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (6,'Swipe','Cn','China','M','UL 123',to_date('01-APR-13','DD-MON-RR'),123);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (7,'Swipe','Cn','China','C','UL 123',to_date('01-APR-13','DD-MON-RR'),73);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (11,'Swipe','In','India','M','AB 546',to_date('02-APR-13','DD-MON-RR'),15);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (12,'Swipe','In','India','F','AB 546',to_date('02-APR-13','DD-MON-RR'),16);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (13,'Swipe','In','India','C','AB 546',to_date('02-APR-13','DD-MON-RR'),12);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (16,'Swipe','Cn','China','M','AB 546',to_date('02-APR-13','DD-MON-RR'),133);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (17,'Swipe','Cn','China','C','AB 546',to_date('02-APR-13','DD-MON-RR'),83);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (21,'Swipe','In','India','M','cx 956',to_date('03-APR-13','DD-MON-RR'),26);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (22,'Swipe','In','India','F','cx 956',to_date('03-APR-13','DD-MON-RR'),27);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (23,'Swipe','In','India','C','cx 956',to_date('03-APR-13','DD-MON-RR'),23);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (26,'Swipe','Cn','China','M','cx 956',to_date('03-APR-13','DD-MON-RR'),144);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (27,'Swipe','Cn','China','C','cx 956',to_date('03-APR-13','DD-MON-RR'),94);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (31,'Swipe','In','India','M','QL1234',to_date('04-APR-13','DD-MON-RR'),36);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (32,'Swipe','In','India','F','QL1234',to_date('04-APR-13','DD-MON-RR'),37);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (33,'Swipe','In','India','C','QL1234',to_date('04-APR-13','DD-MON-RR'),33);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (36,'Swipe','Cn','China','M','QL1234',to_date('04-APR-13','DD-MON-RR'),154);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (37,'Swipe','Cn','China','C','QL1234',to_date('04-APR-13','DD-MON-RR'),104);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (41,'Swipe','In','India','M','BF 176',to_date('05-APR-13','DD-MON-RR'),46);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (42,'Swipe','In','India','F','BF 176',to_date('05-APR-13','DD-MON-RR'),47);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (43,'Swipe','In','India','C','BF 176',to_date('05-APR-13','DD-MON-RR'),43);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (46,'Swipe','Cn','China','M','BF 176',to_date('05-APR-13','DD-MON-RR'),164);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (47,'Swipe','Cn','China','C','BF 176',to_date('05-APR-13','DD-MON-RR'),114);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (51,'Swipe','In','India','M','JR 671',to_date('06-APR-13','DD-MON-RR'),56);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (52,'Swipe','In','India','F','JR 671',to_date('06-APR-13','DD-MON-RR'),57);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (53,'Swipe','In','India','C','JR 671',to_date('06-APR-13','DD-MON-RR'),53);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (56,'Swipe','Cn','China','M','JR 671',to_date('06-APR-13','DD-MON-RR'),174);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (57,'Swipe','Cn','China','C','JR 671',to_date('06-APR-13','DD-MON-RR'),124);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (61,'Swipe','In','India','M','M3 999',to_date('07-APR-13','DD-MON-RR'),66);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (62,'Swipe','In','India','F','M3 999',to_date('07-APR-13','DD-MON-RR'),67);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (63,'Swipe','In','India','C','M3 999',to_date('07-APR-13','DD-MON-RR'),63);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (66,'Swipe','Cn','China','M','M3 999',to_date('07-APR-13','DD-MON-RR'),184);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (67,'Swipe','Cn','China','C','M3 999',to_date('07-APR-13','DD-MON-RR'),134);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (71,'Swipe','In','India','M','V3 111',to_date('18-APR-13','DD-MON-RR'),76);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (72,'Swipe','In','India','F','V3 111',to_date('18-APR-13','DD-MON-RR'),77);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (73,'Swipe','In','India','C','V3 111',to_date('18-APR-13','DD-MON-RR'),73);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (76,'Swipe','Cn','China','M','V3 111',to_date('18-APR-13','DD-MON-RR'),194);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (77,'Swipe','Cn','China','C','V3 111',to_date('18-APR-13','DD-MON-RR'),144);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (161,'Manual','In','India','M','UL 123',to_date('01-APR-13','DD-MON-RR'),4);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (162,'Manual','In','India','F','UL 123',to_date('01-APR-13','DD-MON-RR'),5);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (163,'Manual','In','India','C','UL 123',to_date('01-APR-13','DD-MON-RR'),1);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (164,'Manual','Pk','Pakistan','M','UL 123',to_date('01-APR-13','DD-MON-RR'),12);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (165,'Manual','Pk','Pakistan','F','UL 123',to_date('01-APR-13','DD-MON-RR'),6);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (166,'Manual','Cn','China','M','UL 123',to_date('01-APR-13','DD-MON-RR'),122);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (167,'Manual','Cn','China','C','UL 123',to_date('01-APR-13','DD-MON-RR'),72);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (168,'Manual','US','America','M','UL 123',to_date('01-APR-13','DD-MON-RR'),7);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (169,'Manual','US','America','F','UL 123',to_date('01-APR-13','DD-MON-RR'),0);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (170,'Manual','US','America','C','UL 123',to_date('01-APR-13','DD-MON-RR'),2);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (171,'Manual','In','India','M','AB 546',to_date('02-APR-13','DD-MON-RR'),14);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (172,'Manual','In','India','F','AB 546',to_date('02-APR-13','DD-MON-RR'),15);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (173,'Manual','In','India','C','AB 546',to_date('02-APR-13','DD-MON-RR'),11);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (174,'Manual','Pk','Pakistan','M','AB 546',to_date('02-APR-13','DD-MON-RR'),22);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (175,'Manual','Pk','Pakistan','F','AB 546',to_date('02-APR-13','DD-MON-RR'),16);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (176,'Manual','Cn','China','M','AB 546',to_date('02-APR-13','DD-MON-RR'),132);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (177,'Manual','Cn','China','C','AB 546',to_date('02-APR-13','DD-MON-RR'),82);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (178,'Manual','US','America','M','AB 546',to_date('02-APR-13','DD-MON-RR'),17);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (179,'Manual','US','America','F','AB 546',to_date('02-APR-13','DD-MON-RR'),10);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (180,'Manual','US','America','C','AB 546',to_date('02-APR-13','DD-MON-RR'),12);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (181,'Manual','In','India','M','cx 956',to_date('03-APR-13','DD-MON-RR'),25);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (182,'Manual','In','India','F','cx 956',to_date('03-APR-13','DD-MON-RR'),26);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (183,'Manual','In','India','C','cx 956',to_date('03-APR-13','DD-MON-RR'),22);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (184,'Manual','Pk','Pakistan','M','cx 956',to_date('03-APR-13','DD-MON-RR'),33);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (185,'Manual','Pk','Pakistan','F','cx 956',to_date('03-APR-13','DD-MON-RR'),27);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (186,'Manual','Cn','China','M','cx 956',to_date('03-APR-13','DD-MON-RR'),143);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (187,'Manual','Cn','China','C','cx 956',to_date('03-APR-13','DD-MON-RR'),93);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (188,'Manual','US','America','M','cx 956',to_date('03-APR-13','DD-MON-RR'),28);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (189,'Manual','US','America','F','cx 956',to_date('03-APR-13','DD-MON-RR'),21);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (190,'Manual','US','America','C','cx 956',to_date('03-APR-13','DD-MON-RR'),23);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (191,'Manual','In','India','M','QL1234',to_date('04-APR-13','DD-MON-RR'),35);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (192,'Manual','In','India','F','QL1234',to_date('04-APR-13','DD-MON-RR'),36);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (193,'Manual','In','India','C','QL1234',to_date('04-APR-13','DD-MON-RR'),32);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (194,'Manual','Pk','Pakistan','M','QL1234',to_date('04-APR-13','DD-MON-RR'),43);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (195,'Manual','Pk','Pakistan','F','QL1234',to_date('04-APR-13','DD-MON-RR'),37);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (196,'Manual','Cn','China','M','QL1234',to_date('04-APR-13','DD-MON-RR'),153);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (197,'Manual','Cn','China','C','QL1234',to_date('04-APR-13','DD-MON-RR'),103);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (198,'Manual','US','America','M','QL1234',to_date('04-APR-13','DD-MON-RR'),38);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (199,'Manual','US','America','F','QL1234',to_date('04-APR-13','DD-MON-RR'),31);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (200,'Manual','US','America','C','QL1234',to_date('04-APR-13','DD-MON-RR'),33);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (201,'Manual','In','India','M','BF 176',to_date('05-APR-13','DD-MON-RR'),45);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (202,'Manual','In','India','F','BF 176',to_date('05-APR-13','DD-MON-RR'),46);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (203,'Manual','In','India','C','BF 176',to_date('05-APR-13','DD-MON-RR'),42);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (204,'Manual','Pk','Pakistan','M','BF 176',to_date('05-APR-13','DD-MON-RR'),53);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (205,'Manual','Pk','Pakistan','F','BF 176',to_date('05-APR-13','DD-MON-RR'),47);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (206,'Manual','Cn','China','M','BF 176',to_date('05-APR-13','DD-MON-RR'),163);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (207,'Manual','Cn','China','C','BF 176',to_date('05-APR-13','DD-MON-RR'),113);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (208,'Manual','US','America','M','BF 176',to_date('05-APR-13','DD-MON-RR'),48);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (209,'Manual','US','America','F','BF 176',to_date('05-APR-13','DD-MON-RR'),41);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (210,'Manual','US','America','C','BF 176',to_date('05-APR-13','DD-MON-RR'),43);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (211,'Manual','In','India','M','JR 671',to_date('06-APR-13','DD-MON-RR'),55);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (212,'Manual','In','India','F','JR 671',to_date('06-APR-13','DD-MON-RR'),56);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (213,'Manual','In','India','C','JR 671',to_date('06-APR-13','DD-MON-RR'),52);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (214,'Manual','Pk','Pakistan','M','JR 671',to_date('06-APR-13','DD-MON-RR'),63);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (215,'Manual','Pk','Pakistan','F','JR 671',to_date('06-APR-13','DD-MON-RR'),57);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (216,'Manual','Cn','China','M','JR 671',to_date('06-APR-13','DD-MON-RR'),173);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (217,'Manual','Cn','China','C','JR 671',to_date('06-APR-13','DD-MON-RR'),123);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (218,'Manual','US','America','M','JR 671',to_date('06-APR-13','DD-MON-RR'),58);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (219,'Manual','US','America','F','JR 671',to_date('06-APR-13','DD-MON-RR'),51);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (220,'Manual','US','America','C','JR 671',to_date('06-APR-13','DD-MON-RR'),53);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (221,'Manual','In','India','M','M3 999',to_date('07-APR-13','DD-MON-RR'),65);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (222,'Manual','In','India','F','M3 999',to_date('07-APR-13','DD-MON-RR'),66);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (223,'Manual','In','India','C','M3 999',to_date('07-APR-13','DD-MON-RR'),62);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (224,'Manual','Pk','Pakistan','M','M3 999',to_date('07-APR-13','DD-MON-RR'),73);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (225,'Manual','Pk','Pakistan','F','M3 999',to_date('07-APR-13','DD-MON-RR'),67);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (226,'Manual','Cn','China','M','M3 999',to_date('07-APR-13','DD-MON-RR'),183);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (227,'Manual','Cn','China','C','M3 999',to_date('07-APR-13','DD-MON-RR'),133);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (228,'Manual','US','America','M','M3 999',to_date('07-APR-13','DD-MON-RR'),68);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (229,'Manual','US','America','F','M3 999',to_date('07-APR-13','DD-MON-RR'),61);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (230,'Manual','US','America','C','M3 999',to_date('07-APR-13','DD-MON-RR'),63);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (231,'Manual','In','India','M','V3 111',to_date('18-APR-13','DD-MON-RR'),75);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (232,'Manual','In','India','F','V3 111',to_date('18-APR-13','DD-MON-RR'),76);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (233,'Manual','In','India','C','V3 111',to_date('18-APR-13','DD-MON-RR'),72);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (234,'Manual','Pk','Pakistan','M','V3 111',to_date('18-APR-13','DD-MON-RR'),83);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (235,'Manual','Pk','Pakistan','F','V3 111',to_date('18-APR-13','DD-MON-RR'),77);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (236,'Manual','Cn','China','M','V3 111',to_date('18-APR-13','DD-MON-RR'),193);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (237,'Manual','Cn','China','C','V3 111',to_date('18-APR-13','DD-MON-RR'),143);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (238,'Manual','US','America','M','V3 111',to_date('18-APR-13','DD-MON-RR'),78);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (239,'Manual','US','America','F','V3 111',to_date('18-APR-13','DD-MON-RR'),71);
    Insert into KR_TABLE1 (PK,ARRIVAL_METHOD,COUNTRY_CODE,COUNTRY_NAME,ARRIVAL_GENDER,FLIGHT_NUMBER,FLIGHT_DATE,COUNT1) values (240,'Manual','US','America','C','V3 111',to_date('18-APR-13','DD-MON-RR'),73);
    CREATE SEQUENCE kr_table_seq START WITH 1
    CREATE OR REPLACE TRIGGER "kr_table1_PK_GEN_TRIG"
       before insert on "KR_TABLE1"
       for each row
    begin 
       if inserting then
          if :NEW."PK" is null then
             select kr_table_seq.nextval into :NEW."PK" from dual;
          end if;
       end if;
    end;
    /REPORT QUERY
    SELECT arrival_method,
    country_code, country_name, arrival_gender,
    flight_number , flight_date, SUM(count1) sum_count1
    FROM kr_table1
    GROUP BY arrival_method, country_code, country_name, arrival_gender, flight_number , flight_date
    ORDER BY arrival_method,country_code, country_name, arrival_gender,flight_number , flight_dateReport data model (created using reports wizard and not manually):
    http://www.freeimagehosting.net/newuploads/6alll.jpg
    Erroneous report output:
    http://www.freeimagehosting.net/newuploads/2gx4a.jpg
    Edited by: 957072 on Apr 23, 2013 3:51 AM
    Edited by: 957072 on Apr 23, 2013 3:52 AM

    You can set the Default Type before you send the message under SENDING options to TEXT (default is automatic)
    But then all it does it will not send the message if more than 20 recipients are there it will tell you how many recipients over 20 you have entered.
    Say you have a group of 26 contacts and then you enter that and then select Options -> Sending options -> Message Type
    Set to TEXT
    Then if you try to send it will tell you that you have to remove 6 recipients.
    640K Should be enough for everybody
    El_Loco Nokia Video Blog

  • Windows 7 64 Bits + VMware Windows XP 32 Bits + Oracle 10G = Error Conexion

    Hi all, sorry for my bad English, but I'm using the google translator, I wonder if I can help with something I am quite confused, I have Windows 7 64 Bit, and I'm using VMware Workstation to emulate Windows XP 32-Bit Within this I am running Oracle 10G, when I install the database is fine, the issue that when I start a second or third time, VMware and I can never connect to sqlplus with the user hr, I have errors and I can not connect, but to restart once or twice VMware there if I connect, it is very rare that one will be Oracle process does not start because I'm emulating XP? because the truth question and try to find and read online ways to install Oracle 10g on Windows 7 64 bit but unfortunately I could never ...
    I hope I can help and make a comment again, the version of Oracle 10g Express does not serve me for what I need, I study and practice based on the manuals that are written on the Official version Oracle 10g
    Greetings and thank you very much
    Edited by: HernanHS on 08-mar-2011 11:39

    Thanks for replying G, a while ago when installing Oracle 10g try it but can not remember if not needed, or if I could not do, in fact my Oracle 10G me work just that sometimes I can not connect to the database from sqlplus, I was seeing the guide that I spent, but I have a doubt in this part:
    For example:
    10.10.10.10 mycomputer.mydomain.com mycomputer
    The part I do not understand is the mycomputer.mydomain.com, here would have to put the same domain address with which I make the connection to sqlplus? in my case would be something like:
    http://computer1-5e7e5ee1a10:5560
    How to add the Host would be this?:
    10.10.10.10 computer1-5e7e5ee1a10 computer1
    I hope I can help. Greetings and thank you very much

  • Bug in oracle portal: problem in pl/sql item type

    I created a pl/sql item type... based on a stored proc... whenever I make a change to the store proc I have to readd the item based on this item type since the result on the item type is not updated is this some bug in oracle portal

    I created a pl/sql item type... based on a stored proc... whenever I make a change to the store proc I have to readd the item based on this item type since the result on the item type is not updated is this some bug in oracle portal

  • Bug in Oracle UpdatableResultSet? (insert, updateString requires non-empty ResultSet?

    As far as I can determine from the documentation and posts in other newsgroups
    the following example should work to produce an updatable but "empty" ResultSet which can be used to insert rows.
    But it doesn't work in a JDK 1.2.2 and JDK 1.3.0_01 application using Oracle 8i (8.1.7) thin JDBC
    driver against an Oracle 8.1.5 database I get the following error
    SQLException: java.sql.SQLException: Invalid argument(s) in call: setRowBufferAt
    However, if I change it to so the target (ie insert) ResultSet is initialized to contain one or more
    rows, it works just fine.
    ResultSet rset2 = stmt2.executeQuery ( "select Context.* from Context where ContextCd = '0' " );
    Is this a bug in Oracle's JDBC driver (more specifically, the UpdatableResultSet implimentation)?
    Does an updatabable ResultSet have to return rows to be valid and useable for insert operations?
    If it does, is there another way to create an updatable ResultSet that does not depend upon
    "hard-coding" some known data value into the query?
    try
    // conn is a working, tested connection to an Oracle database via 8.1.7 thin JDBC driver.
    // source statement
    Statement stmt = conn.createStatement (
    ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY );
    System.out.println("source rset");
    rset = stmt.executeQuery ( "select Context.* from Context" );
    // target Statement
    Statement stmt2 = conn.createStatement (
    ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE );
    ResultSet rset2 =
    stmt2.executeQuery ( "select Context.* from Context where ContextCd = NULL" );
    System.out.println(
    "see if rset2 looks good even though empty (bcs primarykey = null)");
    ResultSetMetaData rsmd2 = rset2.getMetaData();
    int numColumns = rsmd2.getColumnCount();
    for( int i = 0; i <= numColumns; i++ )
    env.msg.println ( "(" + i + ") " + rsmd2.getColumnLabel(i) );
    // test results showed the correct columns even though no row returned.
    // quess we can use this trick to create an "empty" insert ResultSet.
    System.out.println("interate through rset and insert using rset2");
    if(rset.next())
    System.out.println("move to insert row");
    rset2.moveToInsertRow();
    System.out.println("insert values");
    rset2.updateString( "ContextCd", rset.getString("ContextCd") + "-test" );
    rset2.updateString( "Descrip", "test" );
    rset2.updateString( "Notes", "test" );
    System.out.println("insert row into db (but not committed)");
    rset2.insertRow();
    catch( ... ) ...
    Thanks
    R.Parr
    Temporal Arts

    I have noticed the same problem, actually it doens't matter if there is no data in your resultset. If you have a result with data and suppose you were to analyze the data by moving through all of the rows, the cursor is now after the last row. If you call insertRow, the same exception is thrown. Kinda strange, I didn't get any response as to why this is happening and that was a few weeks ago. I hope someone responds, at this point I am just re-writing some of my code to not use updateable resultsets.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Randall Parr ([email protected]):
    As far as I can determine from the documentation and posts in other newsgroups
    the following example should work to produce an updatable but "empty" ResultSet which can be used to insert rows.
    But it doesn't work in a JDK 1.2.2 and JDK 1.3.0_01 application using Oracle 8i (8.1.7) thin JDBC
    driver against an Oracle 8.1.5 database I get the following error<HR></BLOCKQUOTE>
    null

  • Is this a bug in table operator

    I have an Oracle function that is invoked by the select statement as follow:
    select count(*)
    into i
    from table(
    select depts -- depts is a varray of dept_obj
    from table(company_package.f_getCompany(k))
    the function f_getCompany(k) gets invoked twice.
    but if I change the SQL to
    select depts
    into dept_array
    from table(company_package.f_getCompany(k));
    then function f_getCompany(k) will be invoked just once.
    Is this a bug within Oracle ? How can I get around that, I just want the function execute ONCE.
    Any help would be appricated.
    Thanks
    Here are the rest of the code
    create or replace type company_obj as object
    company_id number,
    company_name varchar2(20),
    depts dept_arr
    CREATE OR REPLACE
    type company_arr is VARRAY(10000) of company_obj;
    create or replace type dept_obj as object
    dept_id number,
    dept_name varchar2(30)
    CREATE OR REPLACE
    type dept_arr is VARRAY(10000) of dept_obj;
    create or replace package company_package is
    number_of_times int := 0;
    function f_getCompany(company_id number) return company_arr;
    end company_package;
    create or replace package body company_package is
    function f_getCompany(company_id number) return company_arr is
    comp_array company_arr;
    comp_object company_obj;
    dept_array dept_arr;
    dept_object dept_obj;
    begin
    dept_object := dept_obj(100, 'Dept 1');
    dept_array := dept_arr();
    dept_array.extend;
    dept_array(1) := dept_object;
    dept_object := dept_obj(110, 'Dept 2');
    dept_array.extend;
    dept_array(2) := dept_object;
    comp_object := company_obj(1, 'Company A', dept_array);
    comp_array := company_arr();
    comp_array.extend;
    comp_array(1) := comp_object;
    number_of_times := number_of_times + 1;
    dbms_output.put_line('number of times = ' || number_of_times);
    return comp_array;
    end;
    end company_package;
    ----------------------------------------------------------------------------------------------------

    I noticed that myself in our project.
    Our varchars2 are defined as VARCHAR2(xxx CHAR) - OWB puts the size*4
    In fact if you have special characters like umlauts (ü,ä,ö,...) it will use 4 bytes per character.
    You can try it yourself. Define a Varchar2(1 CHAR) and manually change the size of the Column in your mapping inside OWB (in filters, joins or your target table).
    Then shoot an umlaut through the mapping and will end up with a "too small" error.
    Dont mind the size*4 issue - we totally ignored it and run without error since 4 years now.

  • Deployment of simple jsp application in Oracle 10g AS

    Hi All,
    This is a critical issue. We have a JSP application which uses the plain old java objects to esltabilsh database connection and same old java objects to perform the business logic.
    All java file are packed in a jar file and all jsp's and other files(GIF,CSS etc) are copied to a folder.
    So what should be the steps to deploy this application to the Oracle 10g Application server.

    Thanks for the update.
    But application is already developed and is Runing in the 9i As and now we have to deploy it to the 10g server.
    Some steps that i am following to deploy the application are:-
    Steps for the deploying the A+ Web portal in OUGD
    1)Copy the “aplus” folder(containing related jsps,css and gif files) and aplus.jar file to
    “<<ORA-HOME>>/iAS/Apache/Jserv”
    2)     Go to the following file
    "<<ORA-HOME>>/iAS/Apache/Jserv/etc/jserv.properties” and add the following lines,
    #APlus
    wrapper.classpath=<<ORA-HOME>>/iAS/Apache/Jserv/aplus
    wrapper.classpath=<<ORA-HOME>>/iAS/Apache/Jserv/aplus.jar
    #APLUS CONFIGURATION
    wrapper.bin.parameters=-DWV_GATEWAY_CFG=<<ORAHOME>>/iAS/Apache/modplsql/cfg/wdbsvr.app
    3)     Go to the following file
    “<<ORA-HOME>>/iAS/Apache/Jserv/etc/zone.properties” and add the
    following lines
    Append the following line to “repositories=”
    <<ORA-HOME>>/iAS/Apache/Jserv/aplus,
    <<ORA-HOME>>/iAS/Apache/Jserv/aplus.jar
    4)     Go the following file
    “<<ORA-HOME>>/iAS/Apache/Apache/conf/apps.conf” and add the following lines
    Alias /aplus/ "<<ORA-HOME>>/iAS/Apache/Jserv/"
    <Directory "<<ORA-HOME>>/iAS/Apache/Jserv">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>
    but following this steps i am not getting the result.
    Reagrds,
    Vikram

Maybe you are looking for

  • Questions on reading a file...

    Hi All, I have a few questions on reading a file... 1st of all ... if I have BufferedReader inFile = new BufferedReader (new FileReader("tickets.txt"));and I do inFile.readLine(); will it read the next line everytime I do that? ... say I had a file t

  • Webservices and BPM

    Hi all, How a normal BPM process in Netweaver is Related to Web services. Is BPM process internally using SOAP Webservice? because i see a webservice model in webdynpro component using a BPM process component. is the knowledge of webservices is requi

  • I an suppose to update 2nd generarion ipode touch(ios 4.2.1) to 4.3

    hello........... i am suppose to update my 2nd generation ipod touch(ios 4.2.1) to 4.3 and lot of games required 4.3 and above please give the solution.............soon................

  • Reinstall Adobe Standard 7.0.

    My computer was recently changed. I am trying to reinstall Adobe Standard 7.0. It will not let me activate the software. I have tried everything the Adobe site has suggested.

  • RH 8 still slow after recommended fixes

    Hi all, I hate to pick an ol' bone, but I'm testing a RH 8 trial download and I'm having some of the same issues that I've seen addressed in the forum. My main concern is the sluggish response in Project Manager in opening topics. I've tried adding t