too many lines return to query?

I am trying to write a query to extract data from two different tables. There are 444 records in the table p and 650 records in table T, but when I run my application I get over 10,000 + records? When I look at the results, it seems that it applies several dates per person when there is only 1 deadline? and showing multiple languageid when only 1 language?

SELECT P.LASTNAME, P.FIRSTNAME, T.LANGUAGEID, T.TEST_TYPE, T.END_DATE, T.SCORE1, T.SCORE2
OF PS_TEST_SCORES T, PS_PERSONNEL P
WHERE T.SCORE1 > = '2'
AND T.SCORE2 > = '2'
AND T.END_DATE between to_date (1 January 2009 00:00:00 ', "hh24:mi:ss of mon-dd-yyyy")
and to_date (28 January 2011 00:00:00 ', "hh24:mi:ss of mon-dd-yyyy")
ORDER BY P.LASTNAME;

example of result would be

test_type German john Jones 24 - dec-09
German john Jones January 22 09
john Jones 1 February 10 German
John Spanish Jones August 5, 10

Once you the alias of a table in the FROM clause, you must use the alias everywhere.

SELECT DISTINCT P.SSN,P.LASTNAME, P.FIRSTNAME, T.LANGUAGEID, T.TEST_TYPE, T.END_DATE, T.SCORE1, T.SCORE2
  FROM PS_TEST_SCORES T,
      PS_PERSONNEL P
 WHERE T.SSN=P.SSN
   AND T.SCORE1 >='2'
   AND T.SCORE2 >='2'
   AND T.END_DATE between to_date( '01-jan-2009 00:00:00', 'dd-mon-yyyy hh24:mi:ss' )
                      and to_date( '28-jan-2011 00:00:00', 'dd-mon-yyyy hh24:mi:ss' )
 ORDER BY P.LASTNAME; 

As you add a join condition, you are sure you really need the SEPARATE? Many new developers throw the SEPARATE on their queries into thinking that it is necessary because they missed a join condition. Unless you know that he's supposed be returned without the SEPARATE, leaving the SEPARATE in just the duplicate lines made Oracle work more hard.

Justin

Tags: Database

Similar Questions

  • too many lines found

    I have two data blocks, a data block joins two tables and second datablock is based on a table.
    first DataBlock has all the fields with a ratio of 1:1 with Packing_id and second details of data block has several lines
    for each Packing_id I wrote 2 procs for 2 rematch are called respective after trigger query.

    My problem is when I am in form gives the Error Message ("too many lines found_orders_begin'");

    Here are my codes.

    PROCEDURE post_query IS
    CURSOR mast_cur IS
    SELECT pa.ship_to_last_name,
    PA.ship_to_first_name,
    PA.ship_to_address1,
    PA.ship_to_address2,
    PA.ship_to_city,
    p.packing_id,
    OF pa, packing p packing_attributes
    WHERE the p.packing_id; = pa.packing_id
    AND p.packing_id; =: PACKING_JOINED. PACKING_ID;

    BEGIN
    Message ("too many lines found_orders_begin'");
    OPEN mast_cur.
    loop
    EXTRACTION mast_cur to: PACKING_JOINED. SHIP_TO_LAST_NAME,
    : PACKING_JOINED. SHIP_TO_FIRST_NAME,
    : PACKING_JOINED. SHIP_TO_ADDRESS1,
    : PACKING_JOINED. SHIP_TO_ADDRESS2,
    : PACKING_JOINED. SHIP_TO_CITY,
    : PACKING_JOINED. PACKING_ID,
    end loop;
    CLOSE Mast_cur;

    EXCEPTION
    WHEN too_many_rows THEN
    Message ("too many lines found '");
    WHEN no_data_found THEN
    Message ("no data has been found it is '");
    WHILE OTHERS THEN
    Message ("do something else'");

    END post_query;
    ***********************************************************************************
    Detail of proc

    PROCEDURE post_query IS
    CURSOR det_cur IS
    SELECT pd.quantity,
    PD.stock_number,
    OF packing_details pd, packing p
    WHERE the p.packing_id; = pd.packing_id
    AND pd.packing_id =: PACKING_JOINED. PACKING_ID;
    BEGIN
    Message ("too many lines found_pack_begin'");
    OPEN det_cur.
    Look FOR det_cur IN
    : DETAILS. QUANTITY,
    : DETAILS. STOCK_NUMBER,
    CLOSE Det_cur;

    EXCEPTION
    WHEN too_many_rows THEN
    Message ("too many lines found '");
    WHEN no_data_found THEN
    Message ("no data has been found it is '");
    WHILE OTHERS THEN
    Message ("do something else'");

    END post_query;


    Thanks in advance for your help.

    Sandy

    If it is an element of data, why you change the database value in POST-QUERY-trigger with your select? At that time you assign a new value to a database element. It's like changed recording (if editing is allowed, otherwise it will trigger an error)

  • Connect By with too many lines

    Hello
    I have a table of contracts. Each may have different payment intervals: M quarterly q, Y annually, monthly or one-time payment of E.
    Now I want a select that displays all dates of start to maturity (duration) when the collection of accounts outstanding takes place.
    DROP TABLE contract;
    CREATE TABLE contract (
         nr             NUMBER (5)
        ,dat_begin      DATE
        ,invoiced       VARCHAR(1)
        ,duration       NUMBER(5)
        );
    INSERT INTO contract (nr,dat_begin,invoiced,duration)
        VALUES (345,TO_DATE('01.01.2008','dd.mm.yyyy'),'M',1);
    --INSERT INTO contract (nr,dat_begin,invoiced,duration)
    --    VALUES (456,TO_DATE('01.01.2008','dd.mm.yyyy'),'Q',2);
    INSERT INTO contract (nr,dat_begin,invoiced,duration)
        VALUES (567,TO_DATE('01.01.2007','dd.mm.yyyy'),'Y',1);
    --INSERT INTO contract (nr,dat_begin,invoiced,duration)
    --    VALUES (678,TO_DATE('01.01.2008','dd.mm.yyyy'),'E',2);
    
    WITH
    first_month AS(
        SELECT  TRUNC(dat_begin,'MM') AS first_date
               ,nr
               ,DECODE (invoiced
                        ,'M',1
                        ,'Q',3
                        ,'Y',12
                        ,'E',1000
                        ) AS intervall
               ,duration
        FROM    contract
        )
    SELECT  ADD_MONTHS(first_date,(LEVEL - 1) * intervall)  AS all_dates
           ,nr
           ,duration
           ,intervall
           ,CONNECT_BY_ROOT nr
    FROM    first_month
    CONNECT BY  LEVEL <= duration * 12 / intervall
    Now, I expect to get 12 dates for contract 345 and the other for 567. But...
    ALL_DATE   NR DURATION INTERVALL LEVEL CONNECT_BY_ROOTNR
    -------- ---- --------  -------- ----- -----------------
    01.01.08  345        1         1     1               345
    01.02.08  345        1         1     2               345
    01.03.08  345        1         1     3               345
    01.04.08  345        1         1     4               345
    01.05.08  345        1         1     5               345
    01.06.08  345        1         1     6               345
    01.07.08  345        1         1     7               345
    01.08.08  345        1         1     8               345
    01.09.08  345        1         1     9               345
    01.10.08  345        1         1    10               345
    01.11.08  345        1         1    11               345
    01.12.08  345        1         1    12               345
    01.01.07  567        1        12     1               567
    01.02.08  345        1         1     2               567
    01.03.08  345        1         1     3               567
    01.04.08  345        1         1     4               567
    01.05.08  345        1         1     5               567
    01.06.08  345        1         1     6               567
    01.07.08  345        1         1     7               567
    01.08.08  345        1         1     8               567
    01.09.08  345        1         1     9               567
    01.10.08  345        1         1    10               567
    01.11.08  345        1         1    11               567
    01.12.08  345        1         1    12               567
    each row after row 13 ' 01.01.07 567' I wasn't expecting.
    Of course, I can add a predicate CONNECT_BY_ROOT = NR. But I'd like to understand why I get 11 lines for nr with root 567 345.

    Concerning
    Marcus

    Hello

    In a subquery of counter, where you use "CONNECTION BY LEVEL".< x"="" to="" generate="" the="" integers="" 1,="" 2,="" ...,="" x,="" the="">
    in the clause FROM must have only one line.

    Follow these steps:

    WITH
    first_month AS(
        SELECT  TRUNC(dat_begin,'MM') AS first_date
               ,nr
               ,DECODE (invoiced
                        ,'M',1
                        ,'Q',3
                        ,'Y',12
                        ,'E',1000
                        ) AS intervall
               ,duration
               ,cntr.n
        FROM    contract
        )
    ,
    cntr AS
    (   -- Begin counter sub-query
        SELECT  LEVEL   AS n
        FROM    dual
        CONNECT BY  LEVEL <=
         (     -- Begin scalar sub-query to get max range
         SELECT     MAX (duration * 12 / intervall)
         FROM     first_month
         )     -- End scalar sub-query to get max range
    )   -- End counter sub-query
    SELECT  ADD_MONTHS(first_date,(cntr.n - 1) * intervall)  AS all_dates
           ,nr
           ,duration
           ,intervall FROM    first_month
    JOIN     cntr          ON cntr.n <= duration * 12 / intervall
    ;
    

    As you can see, this solution is very similar to to Blushadow.

    "CONNECT BY" involves a parent-child relationship.
    When the CONNECT BY condition does not refer to all the values stored in the table, as in "CONNECT BY LEVEL<=>
    then each row of the table is considered the parent of all the other ranks. So if you have lines J in the table,
    you will have lines J at LEVEL = 1, lines J * J = 2 level, J * J * J ranks to LEVEL = 3,..., lines power (j, k) = k level.

    I don't think that the query you posted has produced the results you've posted.
    The query has five columns in the SELECT clause and the result set includes six.

    What is the purpose of the last column with CONNECT_BY_ROOT? If this is supposed to be the same as nr.
    then you can have another column containing nr.

  • Too many lines 'recipient' when I reply to a message

    Since I updated to 31.0 Thunderbird version, whenever I hit him "reply" to an e-mail message rather than just get the two lines from and to, I get two additional blank lines before the "Subject" line I have to shrink the header to get rid of these extra lines. Not a major problem, but starts to annoy me.

    This did, in fact, solve my problem. I want to just emphasize that it takes effect as soon as you exit Thunderbird and then re - start.

    Thank you very much!

  • LiveCycle dynamic form adds too many lines and does not save properly

    Hello

    I'm fairly new to LiveCycle Designer.  I designed a few forms that behave in the same way, and I'm curious to know if someone would mind helping me find my mistake.

    I have a table that I need to be able to add and subtract lines.  If I add a line and fill in the information, it seems good.  If I save the form and re-open information disappeared and there are several added lines which are empty.  How can I fix?

    Document link: file - sharing Acrobat.com

    Thank you very much

    Loren

    Hey Loren,

    It's very strange, and I would say a bug in the binding process.  It seems that from Table2 Row1 elements can be picked up as part of the binding of the nested table, table 3, which has a line called Row1.

    I changed the Row1 under Table3 to SubRow1 and it seems to work fine.

    I don't know how you want the buttons Add/Remove to work, but "this.parent.index" you will get the index of Cell1 (which will always be 1), you can "this.parent.parent.index".

    Concerning

    Bruce

  • too many return values for a single node

    I have a table with two columns

    the table structure
    ----------------------
    string school_name type
    xmltype obj_xml

    Row1
    ----------
    abc_school,
    < student >
    < student >
    < id > 101 / < ID >
    < teacher > CBA < / teacher >
    < / student >
    < student >
    < id > 102 / < ID >
    XYZ < teacher > < / teacher >
    ONP < teacher > < / teacher >
    RSM < teacher > < / teacher >
    < / student >
    < / students >

    row2
    -----------
    def_school,
    < student >
    < student >
    < id > 301 / < ID >
    pqr < teacher > < / teacher >
    < / student >
    < student >
    < id > 302 / < ID >
    XYZ < teacher > < / teacher >
    < / student >
    < / students >


    is it possible to display data in the format using a query oracle below.
    ---------------------------------------------------------------------------------------------------
    teacher id school_name
    --------------------- ------- ------------
    abc_school 101 abc
    abc_school 102 xyz
    abc_school 102 onp
    RSM abc_school 102


    I used the slot request, throwing an error - too many return values for a single node

    SELECT school_name, teacher
    ExtractValue (value (x), ' / / key ') like student_id
    extractValue (value (x), ' / / value ') AS teacher
    SCHOOL t,.
    TABLE)
    XMLSequence (extract (obj_xml, ' / students/pupils '))
    ) x

    Please post How can I modify this query, the teacher tags may vary for each student

    Published by: user7955917 on May 8, 2012 04:00

    As mentioned in your other thread today, it would be helpful if you could post your exact version of db.
    Samples of work would be appreciated too, the XML data, you gave are not correct.

    I would do it with two XMLTables, like this:

    SQL> SELECT school_name
      2       , x1.id
      3       , x2.teacher
      4  FROM school t
      5     , XMLTable('/students/student'
      6         passing t.obj_xml
      7         columns id       number   path 'id'
      8               , teachers xmltype  path 'teacher'
      9       ) x1
     10     , XMLTable('/teacher'
     11         passing x1.teachers
     12         columns teacher  varchar2(30) path '.'
     13       ) x2
     14  ;
    
    SCHOOL_NAME                            ID TEACHER
    ------------------------------ ---------- ------------------------------
    abc_school                            101 abc
    abc_school                            102 xyz
    abc_school                            102 onp
    abc_school                            102 rsm
    def_school                            301 pqr
    def_school                            302 xyz
    
    6 rows selected
     
    
  • Can I see all my favorites in the Favorites bar, even if they are too many... I want to make additional lines and continue, instred of the arrow/list system.

    I would like to have instant access to all my favorites that I keep my RSS links and ongoing projects there. When they are too many to fit into a line across the screen firefox makes a small drop down menu at the end with everything else in. I find it really boring, it's just the same thing as the bookmarks menu normal; I find it really hard to keep things organized when I can't see all the time. I would like to make a second or even third place in the toolbar, so I still see all my current RSS feeds and Pages. Can I do this? If this does not work on firefox someone know another browser FS, BONES or FREE software that will be?

    Try this extension:

    https://addons.Mozilla.org/en-us/Firefox/addon/6937/

  • Exception in thread "AWT-EventQueue-0" oracle.jbo.TooManyObjectsException: Houston-25013: too many objects correspond to the oracle.jbo.Key [4 primary key].

    Mr President

    I am able to add records with the following method but when I navigate through folders and then I get the above error.

    When you use this code in my doDML()

    package model;
    
    
    import java.sql.PreparedStatement;
    
    
    import oracle.jbo.Key;
    import oracle.jbo.domain.Number;
    import oracle.jbo.server.EntityDefImpl;
    import oracle.jbo.server.EntityImpl;
    import oracle.jbo.server.SequenceImpl;
    import oracle.jbo.server.TransactionEvent;
    // ---------------------------------------------------------------------
    // ---    File generated by Oracle ADF Business Components Design Time.
    // ---    Tue Nov 10 11:03:43 PKT 2015
    // ---    Custom code may be added to this class.
    // ---    Warning: Do not modify method signatures of generated methods.
    // ---------------------------------------------------------------------
    public class TableNameImpl extends EntityImpl {
        /**
         * AttributesEnum: generated enum for identifying attributes and accessors. DO NOT MODIFY.
         */
        public enum AttributesEnum {
            Column1,
            Column2,
            Column3,
            JoinColumn,
            HiddenColumn;
            private static AttributesEnum[] vals = null;
            private static final int firstIndex = 0;
    
    
            public int index() {
                return AttributesEnum.firstIndex() + ordinal();
            }
    
    
            public static final int firstIndex() {
                return firstIndex;
            }
    
    
            public static int count() {
                return AttributesEnum.firstIndex() + AttributesEnum.staticValues().length;
            }
    
    
            public static final AttributesEnum[] staticValues() {
                if (vals == null) {
                    vals = AttributesEnum.values();
                }
                return vals;
            }
        }
        public static final int COLUMN1 = AttributesEnum.Column1.index();
        public static final int COLUMN2 = AttributesEnum.Column2.index();
        public static final int COLUMN3 = AttributesEnum.Column3.index();
        public static final int JOINCOLUMN = AttributesEnum.JoinColumn.index();
        public static final int HIDDENCOLUMN = AttributesEnum.HiddenColumn.index();
    
    
        /**
         * This is the default constructor (do not remove).
         */
        public TableNameImpl() {
        }
    
    
        /**
         * Gets the attribute value for Column1, using the alias name Column1.
         * @return the value of Column1
         */
        public Number getColumn1() {
            return (Number) getAttributeInternal(COLUMN1);
        }
    
    
        /**
         * Sets <code>value</code> as the attribute value for Column1.
         * @param value value to set the Column1
         */
        public void setColumn1(Number value) {
            setAttributeInternal(COLUMN1, value);
        }
    
    
        /**
         * Gets the attribute value for Column2, using the alias name Column2.
         * @return the value of Column2
         */
        public Number getColumn2() {
            return (Number) getAttributeInternal(COLUMN2);
        }
    
    
        /**
         * Sets <code>value</code> as the attribute value for Column2.
         * @param value value to set the Column2
         */
        public void setColumn2(Number value) {
            setAttributeInternal(COLUMN2, value);
        }
    
    
        /**
         * Gets the attribute value for Column3, using the alias name Column3.
         * @return the value of Column3
         */
        public Number getColumn3() {
            return (Number) getAttributeInternal(COLUMN3);
        }
    
    
        /**
         * Sets <code>value</code> as the attribute value for Column3.
         * @param value value to set the Column3
         */
        public void setColumn3(Number value) {
            setAttributeInternal(COLUMN3, value);
        }
    
    
        /**
         * Gets the attribute value for JoinColumn, using the alias name JoinColumn.
         * @return the value of JoinColumn
         */
        public Number getJoinColumn() {
            return (Number) getAttributeInternal(JOINCOLUMN);
        }
    
    
        /**
         * Sets <code>value</code> as the attribute value for JoinColumn.
         * @param value value to set the JoinColumn
         */
        public void setJoinColumn(Number value) {
            setAttributeInternal(JOINCOLUMN, value);
        }
    
    
        /**
         * Gets the attribute value for HiddenColumn, using the alias name HiddenColumn.
         * @return the value of HiddenColumn
         */
        public Number getHiddenColumn() {
            return (Number) getAttributeInternal(HIDDENCOLUMN);
        }
    
    
        /**
         * Sets <code>value</code> as the attribute value for HiddenColumn.
         * @param value value to set the HiddenColumn
         */
        public void setHiddenColumn(Number value) {
            setAttributeInternal(HIDDENCOLUMN, value);
        }
    
    
        /**
         * @param column1 key constituent
    
    
         * @return a Key object based on given key constituents.
         */
        public static Key createPrimaryKey(Number column1) {
            return new Key(new Object[] { column1 });
        }
    
    
        /**
         * @return the definition object for this instance class.
         */
        public static synchronized EntityDefImpl getDefinitionObject() {
            return EntityDefImpl.findDefObject("model.TableName");
        }
    
    
        /**
         * Add locking logic here.
         */
        public void lock() {
            super.lock();
        }
    
    
        /**
         * Custom DML update/insert/delete logic here.
         * @param operation the operation type
         * @param e the transaction event
         */
        protected void doDML(int operation, TransactionEvent e) {
                if(operation == DML_INSERT)
                    {
                      SequenceImpl seq = new SequenceImpl("JOIN_SEQ", getDBTransaction());
                      oracle.jbo.domain.Number seqValue = seq.getSequenceNumber();
                      setJoinColumn(seqValue);
                      insertSecondRowInDatabase(getColumn1(), getColumn2(), getColumn3(), getJoinColumn());
                    }
                   
                    if(operation == DML_UPDATE)
                    {
                      updateSecondRowInDatabase(getColumn1(), getColumn2(), getColumn3(), getJoinColumn());
                    }
                super.doDML(operation, e);
            }
          
            private void insertSecondRowInDatabase(Object value1, Object value2, Object value3, Object joinColumn)
              {
                PreparedStatement stat = null;
                try
                {
                  String sql = "Insert into table_name (COLUMN_1,COLUMN_2,COLUMN_3,JOIN_COLUMN, HIDDEN_COLUMN) values ('" + value1 + "','" + value2 + "','" + value3 + "','" + joinColumn + "', 1)";
                  System.out.println("sql= " + sql);  
                  stat = getDBTransaction().createPreparedStatement(sql, 1);
                  stat.executeUpdate();
                }
                catch (Exception e)
                {
                  e.printStackTrace();
                }
                finally
                {
                  try
                  {
                    stat.close();
                  }
                  catch (Exception e)
                  {
                    e.printStackTrace();
                  }
                }
              }
            
              private void updateSecondRowInDatabase(Object value1, Object value2, Object value3, Object joinColumn)
              {
                PreparedStatement stat = null;
                try
                {
                  String sql = "update table_name set column_1='" + value1 + "', column_2='" + value2 + "', column_3='" + value3 + "' where JOIN_COLUMN='" + joinColumn + "'";
                  System.out.println("sql= " + sql);    
                  stat = getDBTransaction().createPreparedStatement(sql, 1);
                  stat.executeUpdate();
                }
                catch (Exception e)
                {
                  e.printStackTrace();
                }
                finally
                {
                  try
                  {
                    stat.close();
                  }
                  catch (Exception e)
                  {
                    e.printStackTrace();
                  }
                }
              }
        }
    
    
    

    To me the error.

    Exception in thread "AWT-EventQueue-0" oracle.jbo.TooManyObjectsException: JBO-25013: Too many objects match the primary key oracle.jbo.Key[4 ].
      at oracle.jbo.server.OracleSQLBuilderImpl.doEntitySelectForAltKey(OracleSQLBuilderImpl.java:862)
      at oracle.jbo.server.BaseSQLBuilderImpl.doEntitySelect(BaseSQLBuilderImpl.java:555)
      at oracle.jbo.server.EntityImpl.doSelect(EntityImpl.java:9089)
      at oracle.jbo.server.EntityImpl.populate(EntityImpl.java:7664)
      at oracle.jbo.server.EntityImpl.merge(EntityImpl.java:8008)
      at oracle.jbo.server.EntityCache.addForAltKey(EntityCache.java:1189)
      at oracle.jbo.server.EntityCache.add(EntityCache.java:579)
      at oracle.jbo.server.ViewRowStorage.entityCacheAdd(ViewRowStorage.java:3454)
      at oracle.jbo.server.ViewRowImpl.entityCacheAdd(ViewRowImpl.java:4062)
      at oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSet(ViewObjectImpl.java:6351)
      at oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:4145)
      at oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:4000)
      at oracle.jbo.server.QueryCollection.get(QueryCollection.java:2491)
      at oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:5540)
      at oracle.jbo.server.ViewRowSetIteratorImpl.getRowInternal(ViewRowSetIteratorImpl.java:3590)
      at oracle.jbo.server.ViewRowSetIteratorImpl.hasNext(ViewRowSetIteratorImpl.java:2007)
      at oracle.jbo.server.ViewRowSetImpl.hasNext(ViewRowSetImpl.java:3859)
      at oracle.jbo.server.ViewObjectImpl.hasNext(ViewObjectImpl.java:11845)
      at oracle.jbo.uicli.binding.JUCtrlActionBinding.isOperationEnabled(JUCtrlActionBinding.java:473)
      at oracle.jbo.uicli.binding.JUCtrlActionBinding.isActionEnabled(JUCtrlActionBinding.java:300)
      at oracle.jbo.uicli.controls.JUNavigationBar._isEnabled(JUNavigationBar.java:1345)
      at oracle.jbo.uicli.controls.JUNavigationBar._updateButtonStates(JUNavigationBar.java:1334)
      at oracle.jbo.jbotester.app.NavigationBar._updateButtonStates(NavigationBar.java:123)
      at oracle.jbo.uicli.controls.JUNavigationBar$3.run(JUNavigationBar.java:1249)
      at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
      at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
      at java.awt.EventQueue.access$500(EventQueue.java:97)
      at java.awt.EventQueue$3.run(EventQueue.java:709)
      at java.awt.EventQueue$3.run(EventQueue.java:703)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
      at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
    
    
    

    Concerning

    You can't repeat the value of pharmacokinetics in several lines. try to follow this:

    1. in your database to create new sequence "PK_SEQ".

    2. in doDML write this

        if (operation == DML_INSERT)
        {
          SequenceImpl seq = new SequenceImpl("JOIN_SEQ", getDBTransaction());
          oracle.jbo.domain.Number seqValue = seq.getSequenceNumber();
          setJoinColumn(seqValue);
          setPKey(getPkSeqNextNumber())
          insertSecondRowInDatabase(getPkSeqNextNumber(), getColumn1(), getColumn2(), getColumn3(), getJoinColumn());
        }
    

    the getPkSeqNextNumber will be

    private Number getPkSeqNextNumber()
    {
      SequenceImpl pkSeq = new SequenceImpl("PK_SEQ", getDBTransaction());
      return pkSeq.getSequenceNumber();
    }
    

    or

    You can do a trigger in the database, this trigger Gets the value of the sequence and sets the pkey to insert before

  • ORA-00939: too many arguments for works by using zones in xquery

    Running on the Oracle 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production database

    CREATE TABLE "ORT"."SAMPLE"
       ( "THEDATE" DATE,
    "THETIMESTAMP" TIMESTAMP (6),
    "STARTTIMESTAMP" TIMESTAMP (6) WITH LOCAL TIME ZONE,
    "ENDTIMESTAMP" TIMESTAMP (6) WITH LOCAL TIME ZONE
       );
    
    
    
    

    REM INSERTING into SAMPLE
    SET DEFINE OFF;
    Insert into SAMPLE (THEDATE,THETIMESTAMP,STARTTIMESTAMP,ENDTIMESTAMP) values (to_date('13-06-10 14:07:52','RR-MM-DD HH24:MI:SS'),to_timestamp('13-06-19 14:27:52.000000000','RR-MM-DD HH24:MI:SS.FF'),to_timestamp('13-06-19 10:34:04.586000000','RR-MM-DD HH24:MI:SS.FF'),to_timestamp('13-06-19 15:05:38.805000000','RR-MM-DD HH24:MI:SS.FF'));
    
    
    
    

    the following query triggers ora-00939

    SELECT XMLQUERY('for $v in fn:collection("oradb:/ORT/SAMPLE")
    let $date1 := $v/ROW/STARTTIMESTAMP/text()
    let $date2 := $v/ROW/ENDTIMESTAMP/text()
    return if ($date1 < $date2) then (concat($date1," date is less than ", $date2)) else (concat($date1," date is greater than ", $date2)) ' returning content) from dual;
    
    

    ORA-00939: too many arguments to function

    00939 00000 - "too many arguments for the function.

    * Cause:

    * Action:

    any ideas?

    This is a bug related to the rewriting of XQuery.

    It works with the NO_XML_QUERY_REWRITE indicator:

    SELECT / * + no_xml_query_rewrite * /.

    XMLQUERY)

    but you should probably open a SR for this.

  • Scalability problems - too many Active Sessions?

    Hello

    I'm having a problem with an app that I built for one of the College campus, that I work. The application is a queue system where there are stations for students to access your room, admin stations where staff can see these students and "call", and displays outside every office employee that shows the student who was called. There are about 20 of the latter type of billboards. I have the following code in my footer to query the DB for most recent students called for a specific room:
    <script type="text/javascript">
    <!--
    var refresh_region = function( workstation_in, div_in ) {
        $.get(
            'wwv_flow.show', 
            {"p_request"      : 'APPLICATION_PROCESS=F_NEXT_STUDENT',
             "p_flow_id"      : $v('pFlowId'),      //app id
             "p_flow_step_id" : $v('pFlowStepId'),  //page id
             "p_instance"     : $v('pInstance'),    //session id
             "x01"            : workstation_in
            },
            function(data) {
                $(div_in).html(data);
            }
        );
        setTimeout(function() { refresh_region( workstation_in, div_in ) }, 5000);
    }
    
    refresh_region( '&P7_WORKSTATION_IN.', '#next_student_div' );
    //-->
    </script>
    The process of OnDemand, F_NEXT_STUDENT executes the query and returns the result:
    select a.FIRST_NAME || ' ' || a.LAST_NAME
    into   full_name
    from   ONESTOP_QUEUE a
    where  a.WORKSTATION_ID_CALLED = in_workstation_id
    and    a.STATUS = 'CALLED'
    and    a.QUEUE_ID = (
       select min( c.QUEUE_ID )
       from   ONESTOP_QUEUE c
       where  c.WORKSTATION_ID_CALLED = in_workstation_id
     and    c.STATUS = 'CALLED');
    However, when all these display panels is turned on (and I use the code as follows in the other pages for similar purposes) the application become slow and eventually unresponsive. As a first step, we have the application running a box with Oracle XE. Finally, we have migrated to a full blown installation 11g with APEX listener and GlassFish. My DBA said everything looks ok on the side of the DB, so I tried to dig into other areas to see where the bottleneck can be. After inspecting the report of Active Sessions in the APEX, I noticed that there are a ton of connections being generated (> 30 000). This is not a good thing for me and I try to understand what I am doing wrong.

    At first I used $. post() instead of $. get (). I was also using setInterval() instead of a setTimeout() loop. However, none of these changes really seem to help the situation. I am at a loss to know how else to improve the performance of this application. Any suggestions on what I can try?

    Most of the features of the app is on apex.oracle.com
    WORKSPACE: SCCC_TEST
    USER/PASS: TEST/test
    Direct URL to the page (I spend worksation ID): http://apex.oracle.com/pls/apex/f?p=65890:7:0:P7_WORKSTATION_IN:ADMISSIONS_1

    Thanks in advance for any help.

    Hello

    are you sure that each AJAX request generates a new APEX session? Because it is based on your downloaded app all right. You can check that by running the following query. It will also show you how long it took APEX to meet your demand for AJAX (elapsed_time). I think that the elapsed time will be the key to find out why your application becomes unresponsive if too many customers are returning. The goal should be that the AJAX request ends as soon as possible. For example 1 sec would be for many, because if you have 20 parallel AJAX requests at the same time, this could have an impact on your DB. You can share your average time?

    select apex_session_id, to_char(view_date, 'DD.MM.YYYY HH24:MI:SS') as view_date, elapsed_time, application_info
      from apex_workspace_activity_log
     where application_id = 65890
       and page_id = 7
       and view_date >= sysdate - 0.1
     order by 1, 2, 3
    

    I don't know how much data is stored in the ONESTOP_QUEUE table, but it may be useful to adjust your statement used in F_NEXT_STUDENT. On apex.oracle.com, the plan of the explain output shows at least he uses twice a scan interval on index ONESTOP_QUEUE_IDX. For inside MIN instruction it is well, but the external SQL should just do a search PK using QUEUE_ID. This is why I would like to delete

    a.WORKSTATION_ID_CALLED = in_workstation_id and a.STATUS = 'CALLED'
    

    to force the index seek PK using QUEUE_iD.

    I also suggest that you make your JavaScript code on the page 5 and 7 more transparent. He is currently hiding in the region or footer HTML. I would say to move JS code in the attributes of the page 'Function and Global Variable declaration' and ' run when Page Loads. BTW, there is no need to use $(document) .ready in "Run when the Page loads", because internally, we already use $(document) .ready.

    Or instead of using your own JavaScript code you can download the plugin http://www.oracle.com/technetwork/developer-tools/apex/application-express/apex-plug-ins-182042.html#dynamic "Timer" and use rather dynamic actions. On page 5 you can use the action "Refresh" to update your classic report and on page 7 you can use an action to "Set the value" to run your query. I think it would make your page easy to read for others.

    Concerning
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • A function in a subquery is call too many times.

    Hi all

    I am struggling to understand why a function in a subquery is called too many times.
    Let me explain with an example:
    create or replace function all_emp (v_deptno in number) 
    return varchar2
    as
    
    v_all_emp varchar2(2000);
    
    begin
    
        dbms_output.put_line ('function called');
    
        for i in (select * from emp where deptno = v_deptno) loop
    
            v_all_emp := v_all_emp || i.ename || '; ';
        
        end loop;
    
    return v_all_emp;
        
    end;
    /
    
    -- running just the subquery, calls the function all_emp only 4 times (once for each row in table dept)
    select 
        d.deptno,
        d.dname,
        all_emp(d.deptno) f_all_emp
        from dept d;
    
    -- running the whole query, using regexp to split the value of f_all_emp into separate fields, causes that function all_emp is called 28 times, thus 6 times for each row!!
    select tmp.*,
    regexp_substr(f_all_emp,'[^;]*',1,1) emp1,
    regexp_substr(f_all_emp,'[^;]*',1,3) emp2,
    regexp_substr(f_all_emp,'[^;]*',1,5) emp3,
    regexp_substr(f_all_emp,'[^;]*',1,7) emp4,
    regexp_substr(f_all_emp,'[^;]*',1,9) emp5,
    regexp_substr(f_all_emp,'[^;]*',1,11) emp6
    from
        (select 
        d.deptno,
        d.dname,
        all_emp(d.deptno) f_all_emp
        from dept d) tmp
    ;
    I do not understand why Oracle calls my 28 times function in this example, 4 times should be sufficient.

    Is there a way to force that the subquery is materialized first?

    A reminder of the facts:
    Above function / request is of course a simple example.
    In fact, I have a rather complex function, integrating in a subquery.
    The subquery is already slow (2 min) to run, but when I want to share the result of the function in several areas (about 20) it's over an hour due to above described behavior.

    Optimizer merges online view and the query results in:

    select  d.deptno,
            d.dname,
            all_emp(d.deptno) f_all_emp
            regexp_substr(all_emp(d.deptno),'[^;]*',1,1) emp1,
            regexp_substr(all_emp(d.deptno),'[^;]*',1,3) emp2,
            regexp_substr(all_emp(d.deptno),'[^;]*',1,5) emp3,
            regexp_substr(all_emp(d.deptno),'[^;]*',1,7) emp4,
            regexp_substr(all_emp(d.deptno),'[^;]*',1,9) emp5,
            regexp_substr(all_emp(d.deptno),'[^;]*',1,11) emp6
      from  dept d
    /
    

    That's why function is called 28 times. Seen go explain plan:

    SQL> explain plan for
      2  select tmp.*,
      3          regexp_substr(f_all_emp,'[^;]*',1,1) emp1,
      4          regexp_substr(f_all_emp,'[^;]*',1,3) emp2,
      5          regexp_substr(f_all_emp,'[^;]*',1,5) emp3,
      6          regexp_substr(f_all_emp,'[^;]*',1,7) emp4,
      7          regexp_substr(f_all_emp,'[^;]*',1,9) emp5,
      8          regexp_substr(f_all_emp,'[^;]*',1,11) emp6
      9    from  (
     10           select  d.deptno,
     11                   d.dname,
     12                   all_emp(d.deptno) f_all_emp
     13             from  dept d
     14          ) tmp
     15  /
    
    Explained.
    
    SQL> @?\rdbms\admin\utlxpls
    
    PLAN_TABLE_OUTPUT
    --------------------------------------------------------------------------
    Plan hash value: 3383998547
    
    --------------------------------------------------------------------------
    | Id  | Operation         | Name | Rows  | Bytes | Cost (%CPU)| Time     |
    --------------------------------------------------------------------------
    |   0 | SELECT STATEMENT  |      |     4 |    52 |     3   (0)| 00:00:01 |
    |   1 |  TABLE ACCESS FULL| DEPT |     4 |    52 |     3   (0)| 00:00:01 |
    --------------------------------------------------------------------------
    
    8 rows selected.
    
    SQL>  
    

    If we use the NO_MERGE indicator:

    SQL> select  /*+ NO_MERGE(tmp) */
      2          tmp.*,
      3          regexp_substr(f_all_emp,'[^;]*',1,1) emp1,
      4          regexp_substr(f_all_emp,'[^;]*',1,3) emp2,
      5          regexp_substr(f_all_emp,'[^;]*',1,5) emp3,
      6          regexp_substr(f_all_emp,'[^;]*',1,7) emp4,
      7          regexp_substr(f_all_emp,'[^;]*',1,9) emp5,
      8          regexp_substr(f_all_emp,'[^;]*',1,11) emp6
      9    from  (
     10           select  d.deptno,
     11                   d.dname,
     12                   all_emp(d.deptno) f_all_emp
     13             from  dept d
     14          ) tmp
     15  /
    
        DEPTNO DNAME          F_ALL_EMP  EMP1       EMP2       EMP3       EMP4       EMP5       EMP6
    ---------- -------------- ---------- ---------- ---------- ---------- ---------- ---------- ----------
            10 ACCOUNTING     CLARK; KIN CLARK       KING       MILLER
                              G; MILLER;
    
            20 RESEARCH       SMITH; JON SMITH       JONES      SCOTT      ADAMS      FORD
                              ES; SCOTT;
                               ADAMS; FO
                              RD;
    
            30 SALES          ALLEN; WAR ALLEN       WARD       MARTIN     BLAKE      TURNER     JAMES
                              D; MARTIN;
    
        DEPTNO DNAME          F_ALL_EMP  EMP1       EMP2       EMP3       EMP4       EMP5       EMP6
    ---------- -------------- ---------- ---------- ---------- ---------- ---------- ---------- ----------
                               BLAKE; TU
                              RNER; JAME
                              S;
    
            40 OPERATIONS
    
    function called
    function called
    function called
    function called
    function called
    function called
    SQL> explain plan for
      2  select  /*+ NO_MERGE(tmp) */
      3          tmp.*,
      4          regexp_substr(f_all_emp,'[^;]*',1,1) emp1,
      5          regexp_substr(f_all_emp,'[^;]*',1,3) emp2,
      6          regexp_substr(f_all_emp,'[^;]*',1,5) emp3,
      7          regexp_substr(f_all_emp,'[^;]*',1,7) emp4,
      8          regexp_substr(f_all_emp,'[^;]*',1,9) emp5,
      9          regexp_substr(f_all_emp,'[^;]*',1,11) emp6
     10    from  (
     11           select  d.deptno,
     12                   d.dname,
     13                   all_emp(d.deptno) f_all_emp
     14             from  dept d
     15          ) tmp
     16  /
    
    Explained.
    
    SQL> @?\rdbms\admin\utlxpls
    
    PLAN_TABLE_OUTPUT
    ------------------------------------------------------------------------------------------------------
    Plan hash value: 2317111044
    
    ---------------------------------------------------------------------------
    | Id  | Operation          | Name | Rows  | Bytes | Cost (%CPU)| Time     |
    ---------------------------------------------------------------------------
    |   0 | SELECT STATEMENT   |      |     4 |  8096 |     3   (0)| 00:00:01 |
    |   1 |  VIEW              |      |     4 |  8096 |     3   (0)| 00:00:01 |
    |   2 |   TABLE ACCESS FULL| DEPT |     4 |    52 |     3   (0)| 00:00:01 |
    ---------------------------------------------------------------------------
    
    9 rows selected.
    
    SQL> 
    

    Not sure why the function is executed once 6 and not 4. What we really want, is to materialize reviews online:

    SQL> with tmp as (
      2               select  /*+ materialize */
      3                       d.deptno,
      4                       d.dname,
      5                       all_emp(d.deptno) f_all_emp
      6                 from  dept d
      7              )
      8  select  tmp.*,
      9          regexp_substr(f_all_emp,'[^;]*',1,1) emp1,
     10          regexp_substr(f_all_emp,'[^;]*',1,3) emp2,
     11          regexp_substr(f_all_emp,'[^;]*',1,5) emp3,
     12          regexp_substr(f_all_emp,'[^;]*',1,7) emp4,
     13          regexp_substr(f_all_emp,'[^;]*',1,9) emp5,
     14          regexp_substr(f_all_emp,'[^;]*',1,11) emp6
     15    from  tmp
     16  /
    
        DEPTNO DNAME          F_ALL_EMP  EMP1       EMP2       EMP3       EMP4       EMP5       EMP6
    ---------- -------------- ---------- ---------- ---------- ---------- ---------- ---------- ----------
            10 ACCOUNTING     CLARK; KIN CLARK       KING       MILLER
                              G; MILLER;
    
            20 RESEARCH       SMITH; JON SMITH       JONES      SCOTT      ADAMS      FORD
                              ES; SCOTT;
                               ADAMS; FO
                              RD;
    
            30 SALES          ALLEN; WAR ALLEN       WARD       MARTIN     BLAKE      TURNER     JAMES
                              D; MARTIN;
    
        DEPTNO DNAME          F_ALL_EMP  EMP1       EMP2       EMP3       EMP4       EMP5       EMP6
    ---------- -------------- ---------- ---------- ---------- ---------- ---------- ---------- ----------
                               BLAKE; TU
                              RNER; JAME
                              S;
    
            40 OPERATIONS
    
    function called
    function called
    function called
    function called
    SQL> explain plan for
      2  with tmp as (
      3               select  /*+ materialize */
      4                       d.deptno,
      5                       d.dname,
      6                       all_emp(d.deptno) f_all_emp
      7                 from  dept d
      8              )
      9  select  tmp.*,
     10          regexp_substr(f_all_emp,'[^;]*',1,1) emp1,
     11          regexp_substr(f_all_emp,'[^;]*',1,3) emp2,
     12          regexp_substr(f_all_emp,'[^;]*',1,5) emp3,
     13          regexp_substr(f_all_emp,'[^;]*',1,7) emp4,
     14          regexp_substr(f_all_emp,'[^;]*',1,9) emp5,
     15          regexp_substr(f_all_emp,'[^;]*',1,11) emp6
     16    from  tmp
     17  /
    
    Explained.
    
    SQL> @?\rdbms\admin\utlxpls
    
    PLAN_TABLE_OUTPUT
    -----------------------------------------------------------------------------------------------------------------------
    Plan hash value: 634594723
    
    ---------------------------------------------------------------------------------------------------------
    | Id  | Operation                  | Name                       | Rows  | Bytes | Cost (%CPU)| Time     |
    ---------------------------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT           |                            |     4 |  8096 |     5   (0)| 00:00:01 |
    |   1 |  TEMP TABLE TRANSFORMATION |                            |       |       |            |          |
    |   2 |   LOAD AS SELECT           |                            |       |       |            |          |
    |   3 |    TABLE ACCESS FULL       | DEPT                       |     4 |    52 |     3   (0)| 00:00:01 |
    |   4 |   VIEW                     |                            |     4 |  8096 |     2   (0)| 00:00:01 |
    |   5 |    TABLE ACCESS FULL       | SYS_TEMP_0FD9D6603_20255AE |     4 |    52 |     2   (0)| 00:00:01 |
    
    PLAN_TABLE_OUTPUT
    -----------------------------------------------------------------------------------------------------------------------
    ---------------------------------------------------------------------------------------------------------
    
    12 rows selected.
    
    SQL> 
    

    However, suspicion of MATERIALIZATION is a hint of undocumented.

    SY.

  • 3D SDO_GEOMETRY too many arguments problem

    Hello world

    I have a problem when creating a sdo_geometry with many surfaces and encountered the problem that: ORA-00939: too many arguments for function 00939. 00000 - "too many arguments for the function.

    To be more precise, in our work, we will generate some points to form a solid or a multi-surface as a form of query to run SDO_ANYINTERACTION. However, there are a lot of affected areas. I used the following function, where the number of surface is 20, it works fine. When I use 30 or 60 with matching sdo_elem_info_array and sdo_ordinate_array surfaces, it would not work with the above error.

    CB.NAME SELECT the name OF CB DEMO_3D where SDO_ANYINTERACT (CB. GEOM, SDO_GEOMETRY (3007, 2157, NULL, SDO_ELEM_INFO_ARRAY (1 100 620, 1, 1003, 1.37, 1003, 1.73, 1003, 1 109, 1003, 1 145, 1003, 1 181, 1003, 1 217, 1003, 1 253, 1003, 1 289, 1003, 1 325, 1003, 1 361, 1003, 1 397, 1003, 1 433, 1003, 1 469, 1003, 1 505, 1003, 1 541, 1003, 1 577, 1003)) (((, 1 613, 1003, 1 649, 1003, 1 685, 1003, 1 721, 1003, 1 757, 1003, 1 793, 1003, 1 829, 1003, 1 865, 1003 1 901, 1003, 1 937, 1003, 1 973, 1003, 1,1009, 1003, 1,1045, 1003, 1,1081, 1003, 1,1117, 1003, 1,1153, 1003, 1,1189, 1003, 1,1225, 1003, 1,1261, 1003, 1,1297, 1003, 1,1333, 1003, 1,1369, 1003, 1,1405, 1003, 1), SDO_ORDINATE_ARRAY (...))) = "TRUE";

    Right now, we use the Oracle 11 g release 1
    Anyone know if there is any restriction specifying surfaces how we can have in the SDO_ELEM_INFO_ARRAY, or something else. Thanks in advance.

    --------------------------------------update----------------------------------
    I just tested, the total number allowed is 27 surfaces in the SDO_ELEM_INFO_ARRAY and the SDO_ORDINATES. Thank you

    Best regards
    Junjun

    Published by: sandrine on October 21, 2010 14:57

    Hi, -.
    Links see the link for an insert for example.
    Your case will be similar to the following:

    SQL> set serveroutput on
    SQL>  declare
      2  ords sdo_ordinate_array;
      3   result varchar2(20);
      4  begin
      5  ords:= sdo_ordinate_array(1,2,10);
      6   execute immediate 'select  sdo_geom.relate(sdo_geometry (3001, 2157, null, sdo_elem_info_array(1,1,1), sdo_ordinate_array(1,2,11)), ''anyinteract'', sdo_geometry(3001,2157, null,sdo_elem_info_array(1,1,1)'||
      7   ' , :ords), 0.0005)  from dual' into result using ords;
      8   dbms_output.put_line('result is: '|| result);
      9  end;
     10  /
    result is: FALSE
    
    PL/SQL procedure successfully completed.
    

    In your case, please replace #5 with your details (in parentheses) line.
    Your immediate statement execution online #6 & #7 will be something like:

    execute immediate 'SELECT CB.NAME name FROM DEMO_3D CB where SDO_ANYINTERACT(CB.GEOM, SDO_GEOMETRY(3007, 2157, NULL, SDO_ELEM_INFO_ARRAY(1,1006,20, 1, 1003, 1,37, 1003, 1,73, 1003, 1,109, 1003, 1,145, 1003, 1,181, 1003, 1,217, 1003, 1,253, 1003, 1,289, 1003, 1,325, 1003, 1,361, 1003, 1,397, 1003, 1,433, 1003, 1,469, 1003, 1,505, 1003, 1,541, 1003, 1,577, 1003, 1,613, 1003, 1,649, 1003, 1,685, 1003, 1,721, 1003, 1,757, 1003, 1,793, 1003, 1,829, 1003, 1,865, 1003, 1,901, 1003, 1,937, 1003, 1,973, 1003, 1,1009, 1003, 1,1045, 1003, 1,1081, 1003, 1,1117, 1003, 1,1153, 1003, 1,1189, 1003, 1,1225, 1003, 1,1261, 1003, 1,1297, 1003, 1,1333, 1003, 1,1369, 1003, 1,1405, 1003, 1) ' ||
    ', : ords)) =''TRUE'' ' into result using ords;
    

    Note that "is not double quotes.
    I hope this helps.
    Thank you

  • An error of Dimension to slow variation: too many values

    Hello
    Trying to implement using the CPCS? IKM dimension to slow variation on all columns with their descriptions

    but, when I execute the lines 8 old Historize interface, that it was not

    Error message:

    913: 42000: java.sql.SQLException: ORA-00913: too many values

    java.sql.SQLException: ORA-00913: too many values

    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:316)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:282)

    I have only on 93 records

    can someone help me on this?

    Thank you
    Saichand.v

    Published by: André Varanasi on October 4, 2010 16:26

    SAI,

    The query I've deduced the following:
    1. natural key is DATASOURCE_ID
    2. you have 2 columns marked as end IFL stamp - T.AUX_DATE2, T.AUX_DATE4
    3. you have 3 columns marked as IFL Start Timestamp - S.INS_EXP_DT, S.AUX_DATE1, S.AUX_DATE3

    Apart from the error you are getting, there is another error you get - not enough columns.
    >
    Set)
    T.FLAG
    ,
    T.AUX_DATE2,
    T.AUX_DATE4
    ) = (
    Select 0
    ,
    S.INS_EXP_DT,
    S.AUX_DATE1,
    S.AUX_DATE3
    André. ' ' I$ _WC_CAR_Test "S
    >
    You try to define 3 columns, while the select statement has 4 columns.
    And this is due to the fact that you have more columns marked as start date of the SCD and SCD End Date.
    I met this interesting scenario, I think that the KMs are built to handle only a single column to be marked as SCD Start Date and another a column to be marked as SCD End Date.
    And it is consistent with the definition of the Type 2 SCD.

    Now, the error you get currently - as you have mentioned earlier that your Datasource_id is constant = 1. So, you have a natural key which is always 1 for all 93 records!
    Don't you think that it is good natural key?

  • E/s and too many newspapers of archiving system

    Hi all

    It frustrates me. Our database of production began to produce too many logs archived redo instantly - once again. This has happened before; Two months ago, that our database was producing too many newspapers Archives. just then we started to get async IO error, we consulted a DBA and it restarted the database server by telling us that it was caused by the system (?).

    But after this restart, the amount of archive logs decreased significantly. I was remove the logs by hand (350 GB GB 300 DB arch), and after that the archive logs don't overrun never 10% of the area of archive of 300 GB. Currently, the newspapers increase by 1% (3 GB) for 7-8 minutes, which are already too.

    I checked in Enterprise Manager, the graph of I/o system is continuous and details show the process as ARC0, ARC1, LGWR (read sequential log file, db file write parallels are most active). Also Phsycal bed are very contradictory and exceed 30000 Ko at times. Undo tablespace is full almost all the time causing ORA-01555.

    The symptoms above all started today. The database is closed at 03:00 to perform a backup in offline mode and is open until 06:00 every day.

    Nothing has changed on the database (9.2.0.8), applications (11.5.10.2) or BONES (AIX 5.3).

    What is the reason for this more foolish behavior? Please help me.

    Thanks in advance.
    Kind regards.
    Burak

    So you say that log switches are increased by 5-6 to 130-140? It's a huge and unacceptable increase amount!

    Can you please also post the last lines of your alert.log file?

    What is the result of the following query?

    SQL > select Blocks_Processed sofar, totalwork Total_Work, round ((sofar/totalwork) * 100, 2) Percentage_Completed, Total_Work_Left totalwork-sofar, start_time Start_Time, round ((elapsed_seconds/60), 0) Elapsed_Minutes, substr (message, 1, 33) Message, username
    v $ session_longops;

    Ogan

  • HP laptop: enter the model number and get a "game too many results.

    My HP laptop dies after 6 weeks. When I contact support, he asks the model number. I enter: say "15-ay041wm" is what the box and laptop. I get a reply that says.

    "Sorry, too many results match your search for 15-1y041wm.

    "So I try HP Notebook, I get the same mesaage above, except with the HP laptop ' instead of '15-ay041wm.

    Because no matter where I'm going, he wants the model number and I give, I can't help. No cat, no nothing.

    So someone can tell me how to get support?

    If HP is unable to handle the number of model of it's own computers, so I'm not very confident.

    Here are the free support number to call in the USA/Canada... 1 800-474-6836.

    Now here's another question, you can report to HP on if you want...

    You must stay online and listen to the automated assistant trying to talk to you to talk to a representative... visit the HP website... go to this support forum (which has no official presence in HP), etc.

    After a minute or two, the Assistant to say, if you can't get online, will stay on the line to speak to a customer services representative.

    This is when you will have the opportunity to speak with a support person and report the problem to open a pension case.

Maybe you are looking for

  • Portege M100 with client BACK Ghost

    I've used Ghost to recreate the image other desktop computers and laptops without any problem, boot from floppies, CD ROM BACK or by using network services PXE to boot the machine and load the PC - DOS comes with Ghost and the Ghost BACK customer. Ho

  • How to set RAID 0 on Qosmio F45-AV413

    Hi all F45-AV413 have two hard drives, and, I think about to create a RAID 0 for fast disk access, but I found no option on BIOS for this. Anyone know a way to create this type of volume of disk on this model? TKS, Marcelo.

  • Signal noisy and shielding techniques

    Hi all I'm having a problem with excessive noise on one of the signals in my test system. The signal source is a third party device (interface to a sensor box) which produces a 0 - 1.0V signal proportional to the signal output.  The signal is connect

  • Cannot install software — get the error code 1618

    I install software error code 1618 already running when I try to install software.  There is not any other system running.  However, when I look at taskmgr, I see 2 instances of msiexec running.  I was advised to cancel their but they restart immedia

  • How to restore my computer to a point before using the Accessibility Wizard

    original title: Accessibility Wizard How can I return my pre system Accessibility Wizard changes.  Play with the Accessibility Wizard, I've made changes that I am not satisfied, but now can't go back to the way things were.  How can I return the defa