Materialized Oracle view | Deleting records, Oracle materialized view

One question reg Materialized views.

If as part of the interview of the Source database, we remove some (older) recordings, the materialized view will also be updated with the deletion?

I believe that the answer is Yes. In this case make sure that deletion is not the case?

Is there anyway that we'll stop MView update to delete records that is inserted once even if we remove the same records in the source DB?

This is a common scenario, especially with materialized views that summarizes the detail data where you want to keep the summary but not the detail, and it is discussed in the documentation.

The technique is to make the MV refresh on request, delete the data in the detail tables and the CONSIDER_FRESH procedure to prevent the changes propagating to the MV. You will probably find it in the docs by searching on DBMS_MView.Consider_Fresh. There are a few caveats to note, in my opinion.

Tags: Database

Similar Questions

  • Delete records based on the foreign keys of oracle 11 g

    I have a requirement to remove the records from the tables in the order according to

    the existing foreign keys.

    I for example, the following tables and the pk, fk constraints:

    create table one

    (aa number (1),)

    descr varchar2 (20));

    ALTER table one

    Add constraint a_pk key (aa) primary;

    create table b

    (aa number (1),)

    descr varchar2 (20));

    ALTER table b

    Add constraint b_pk key (aa) primary;

    create table c

    (aa number (1),)

    descr varchar2 (20));

    ALTER table c

    Add constraint c_pk key (aa) primary;

    create table a2

    (aa number (2),)

    id_aa number (1).

    descr varchar2 (20));

    ALTER table a2

    Add constraint a2_pk key (aa) primary;

    ALTER table a2

    Add constraint a2_fk foreign key (id_aa)

    references a (aa);

    create table b2

    (aa number (2),)

    id_aa number (1).

    descr varchar2 (20));

    ALTER table b2

    Add constraint b2_pk key (aa) primary;

    ALTER table b2

    Add constraint b2_fk foreign key (id_aa)

    references b (aa);

    create table z

    (aa number (3),)

    id_aa number (1).

    id_bb number (1).

    descr varchar (20));

    ALTER table z

    Add constraint z_pk key (aa) primary;

    ALTER table z

    Add constraint z_fk1 foreign key (id_aa)

    references a (aa);

    ALTER table z

    Add constraint z_fk2 foreign key (id_bb)

    references b (aa);

    So, I want to choose the names of the tables in such an order so as

    deleting records will succeed...

    I built the following sql query (using the recursive subquery factoring):

    [p]

    with q (r_constraint_name, table_name, constraint_name, lvl) as

    (select table_name, constraint_name, r_constraint_name 1 lvl

    from user_constraints one

    where a.constraint_type = 'P '.

    Union of all the

    Select b.table_name b.constraint_name, b.r_constraint_name, q.lvl + 1 lvl

    from user_constraints b

    Join q

    on (q.constraint_name = b.r_constraint_name)

    where b.constraint_type = 'R '.

    )

    Select f.table_name, f.constraint_name, f.r_constraint_name, f.lvl

    q f

    [/ p]

    I want the results as the following list:

    Table-name

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

    B2

    A2

    Z

    A

    B

    C

    The table - B2, A2, Z - (in any order) must first referred in the list

    because they are based on the other three tables - A, B, C. Thus, in order to remove the

    A, B, C table records the B2, A2, table Z records must be beleted first.

    The query I posted above has the problem that it displays tables A2, B2 twice

    (1 because they have a pk and 2 because they have fk referring A, B relatively tables).

    Is there a solution for this problem?

    Note: I use db11g v2

    I wrote not all relationships of tables user_constraints (only argument constraint_name = r_constraint_name)

    Thank you

    SIM

    I have a requirement to remove the records from the tables in the order according to

    the existing foreign keys.

    . . .

    The table - B2, A2, Z - (in any order) must first referred in the list

    because they are based on the other three tables - A, B, C. Thus, in order to remove the

    A, B, C table records the B2, A2, table Z records must be beleted first.

    Is there a solution for this problem?

    Yes - the 'solution' is to use ON DELETE CASCADE, as appropriate or write a procedure that removes tables in the proper order.

    The solution is NOT to try to use dynamic sql statements to do so.

    You already know the good parent/child relationships. Simply create a procedure that uses the correct order.

    Analyses are necessary in any case to determine the proper order AND press the appropriate values to use to remove the appropriate lines

    Your DDL for tables and constraints must be in a version control system

    Update the procedure when / if new constraints or tables are added to the application

    IMHO, you must use dynamic SQL NOT to try to adjust automatically if a new constraint appears. New constraints should not appear by accident - they appear ONLY as part of a well planned release.

  • How to restore deleted records in another table in the oracle 10g database...

    Hi all

    I want to restore deleted records in a particular table in the other table

    Suppose that:

    I make a request

    delete from emp

    where deptno = 30;

    now, I won't restore deptno = 30 records in the other table, let's say table emp1

    can someone let me know how to do it?

    Thank you...

    This is what flashback query is for:

    orclz > conn scott/tiger

    Connected.

    orclz > select count (*) emp;

    COUNT (*)

    ----------

    14

    orclz > delete from emp where deptno = 30;

    6 deleted rows.

    orclz > commit;

    Validation complete.

    orclz > create table deleted30 in select * from emp to the timestamp (systimestamp - 5/1440) where deptno = 30;

    Table created.

    orclz > select count (*) in the deleted30;

    COUNT (*)

    ----------

    6

    orclz >

  • Question in cooperation with af:iterator and by program (add and delete records using the list)

    In our application, we try to add and delete records within a one: iterator lie to the backing bean list table.

    According to the feature remove should not fire any validation form so we are settign Remove button including the immediate property. And add can throw validation before adding a new record.

    Here the problem comes with button Delete with activated immeidate.  The deletions list action recording is removed from the collection list at the beacking bean, but after that the interface iterator partial page refresh user displays with bad Recordset. Some how instead of getting the last recordings of server of the user interface displays the previous local values for input components.

    For example: if I have 5 files in the list and delete record 2nd of collection. Backing bean (server side) the 2nd record is perfectly removal of list collection.

    On the user interface, the iterator 4 records are displayed as the size of the list is 4, but instead of 2nd record the last record is not rendered. According to my understanding, as deleting comme la suppression touche key is set immediately then the some how these recordings (genereted the Id of component runtime inside the i1: 0:it1 etc...) Apply request vandekerckhove is not updated gettign, Hene showing the old local values inplace of these components of entry and this behavior is only for input components.

    Can you suggest me a solution more come to the question above. Delete with immediate should unregister correspondent and only the record deleted if pannals UI.

    JSFF code

    <af:panelGroupLayout id="pgl1" binding="#{viewScope.formBB.mainPGL}">
            <af:iterator id="i1" value="#{viewScope.formBB.allEmployees}"
                         var="emp" rows="0" varStatus="vs"
                         binding="#{viewScope.formBB.iteratorBinding}">
              <af:panelFormLayout id="pfl1" maxColumns="4" rows="1" labelAlignment="top">
                <!--<af:outputText value="#{vs.index}" id="ot1"/>-->
                <af:inputText label="First Name" id="it1" value="#{emp.firstName}"
                              autoSubmit="true" required="true"/>
                <af:inputText label="Last Name" id="inputText1"
                              value="#{emp.lastName}" autoSubmit="true"
                              required="true"/>
                <af:commandImageLink text="Delete" id="cil1"
                                     immediate="true"
                                     actionListener="#{viewScope.formBB.deleteEmployee}">
                  <f:attribute name="index" value="#{vs.index}"/>
                </af:commandImageLink>
              </af:panelFormLayout>
            </af:iterator>
            <af:commandButton text="Add New Employee" id="cb1"
                              actionListener="#{viewScope.formBB.addNewEmployee}"/>
            <af:spacer width="10" height="10" id="s1"/>
    </af:panelGroupLayout>
    

    Delete the Action listener for the bean

    private List <Employee> allEmployees;
    public List getAllEmployees() {
            return allEmployees;
        }
        
    public void deleteEmployee(ActionEvent actionEvent) {
            int index = (Integer) actionEvent.getComponent().getAttributes().get("index");
            if(allEmployees != null && allEmployees.get(index) != null) {
                System.out.println("Emploeye Name:" + allEmployees.get(index).getFirstName());
                allEmployees.remove(index);
            }
            //AdfFacesContext.getCurrentInstance().addPartialTarget(mainPGL);
            AdfFacesContext.getCurrentInstance().addPartialTarget(iteratorBinding);
                
        }
    public void addNewEmployee(ActionEvent actionEvent) {       
            Employee addE = new Employee();
            if(allEmployees != null) {
                allEmployees.add(addE);
            }
            else {
                allEmployees = new ArrayList <Employee>();
                allEmployees.add(addE);
            }
            AdfFacesContext.getCurrentInstance().addPartialTarget(mainPGL);     
        }
    

    Jdev version - Build JDEVADF_11.1.1.7.0_GENERIC_130226.1400.6493

    POC Application - https://drive.google.com/file/d/0BysBrGAsXoo0Qjh3VGkzZkRGck0/view?usp=downalod

    Help, please.

    You probably need to reset submitted values.

    For this, you can use this util class: ResetUtils (reference Java APIs for Oracle ADF Faces)

    For example: ResetUtils.reset (iteratorBinding);

    BTW, you should never bind components to bean managed with a scope greater than the scope of the request.

    Dario

  • delete records that are related to another table

    I want to delete records from a table (A), these recordings has a relationship with another table (B)

    using a query to set these records is that I want to delete

    with B as
    (
    f select '2', '3' l double
    Union of all the
    f select '2', '3' l double
    Union of all the
    f select '4', '4' l double
    )


    Select * from A, B
    where B.f() > 3 and b. > 3
    and A.f. = B.f()
    and A.l = b.

    Oracle Database 11 g Enterprise Edition Release 11.1.0.7.0 - 64 bit Production


    Thanks in advance!

    Hello

    Here's one way:

    DELETE     a
    WHERE     f     > 3
    AND     l     > 3
    AND     (f, l)     IN (
                   SELECT  f, l
                   FROM     b
                     )
    ;
    
  • delete records based on sysdate

    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production
    PL/SQL Release 11.1.0.7.0 - Production
    CORE Production 11.1.0.7.0
    AMT for 32-bit Windows: Version 11.1.0.7.0 - Production
    NLSRTL Version 11.1.0.7.0 - Production


    Table:

    SQL > incoming_orders desc;
    Name Null? Type
    ----------------------------------------- -------- -----------------

    NOT COUNT NULL VARCHAR2 (5)
    SUBACCOUNT NOT NULL VARCHAR2 (1)
    NOMEN NOT NULL VARCHAR2 (28)
    CHG_NBR NOT NULL VARCHAR2 (3)
    ORDER_QTY NOT NULL NUMBER (38)
    UI VARCHAR2 (5)
    ZIP VARCHAR2 (5)
    ORDER_DATE DATE



    W2056 widget1 0 35 006 EA 46124 4 May 10
    W2530 widget2 0 000 3000 TG 73503 4 May 10


    My goal on the sql and pl/sql is to delete records more of 9 days. I just wanted to start by deleting records with today's date. But it does not work with the code I used:

    SQL > select * from incoming_orders where to_char (order_date) = sysdate;

    no selected line



    or

    DECLARE

    v_orders_rec incoming_orders % ROWTYPE;

    BEGIN

    REMOVE FROM INCOMING_ORDERS
    WHERE ORDER_DATE = SYSDATE
    END;

    My goal is to try to delete records of todays on the road anything over 9 days. Appreciate the assistance.
    It's fun... but what I will meet these dam little... :) Thank you.

    Select * from incoming_orders where to_char (order_date)< trunc(sysdate="" -="" 9="">

    not above but below
    Select * from incoming_orders where order_date< trunc(sysdate="" -="" 9="">

  • Deleting records in batches.

    Hello

    Can help me is it someone please on the below:

    15 minutes ago records in a table and we need to remove them in batches of 10 k. In order to reduce the database load.

    The query must be in the cursor or procedure and it should appear as deleted Record 10000, records deleted 20000...

    and again, he should commit after each 10 records k not for each record.

    Any info on this would be grateful.

    Thank you and best regards,

    Kadi Kumar Patro

    sameet. [email protected]

    Set serveroutput on

    Any reason why you are using dynamic SQL when it is not needed?

  • Insert selected in several checked uncheck the delete record

    Hi all

    I have a detailed block I add a checkbox not database once check the records is inserted into the temporary table

    the same records uncheck the box delete records

    IAM has inserted when checking the records of the table

    but when I have a check only check all records are deleted in my temporary table

    WHEN-BOX-CHANGE

    declare

    v_app_user_id integer (10);

    number of v_count;

    Start

    v_app_user_id: = dtc_util.get_global_value('dtc_global.user_id');

    go_block ('RULE_ITEM');

    premier_enregistrement;

    loop

    SELECT count (1) in the dtc_rule_item_lock v_count

    where rule_item_id =: rule_item.rule_item_id;

    If Checkbox_Checked ('rule_item.checkout') and v_count = 0 then

    insert into dtc_rule_item_lock values (:rule_item.rule_item_id, v_app_user_id, sysdate);

    ELSIF: RULE_ITEM. BOX = 'n' then

    DELETE FROM dtc_rule_item_lock

    where exists (select 'x' from dtc_rule_item dtcl

    where dtcl.rule_item_id =: rule_item.rule_item_id);

    end if;

    When the output: system.last_record = "TRUE";

    next_record;

    end loop;

    premier_enregistrement;

    If form_success or sqlcode = 0 then

    message ("documents saved successfully in the database '");

    message (' ', no_acknowledge);

    FORMS_DDL ('COMMIT');

    on the other

    message ("error saving documents: ' |") SQLERRM);

    message (' ', no_acknowledge);

    end if;

    end;

    Let me help you for this

    Thank you

    Olivier

    I guess there is the clause does not. You check against dtc_rule_item, I guess that is dtc_rule_item_lock.

  • Deleting records

    Dear experts,
    Please help me understand how to delete records in the OPS.
    Thank you!

    Hello

    I doubt that the fetchrowcount = (int) vo.getFetchedRowCount; Returns 0.

    Put a few s pon to check if his return more than 0.

    Kind regards
    GYAN

  • Delete record behavior does not wait for the "submit" button

    I have master / detail pages as a whole.  Of all the detail, there are links to delete or update a record.  When I click the link to delete the folder, it goes to the confirmation page with the correct record.  Now, when I add the behavior delete record server and a button "submit", it is what is happening.  As soon as I click on the link to access the Delete Confirm page, deletes the record and the page redirects to the page that I put in the server behavior.  It does not display the confirmation page and does not wait for me to hit the button confirm.  The page runs and removes the page from the database.

    How can I get to wait until I hit the submit button?

    You must surround your request deletion with an "If" statement seeking a confirmation variable, then when the user clicks the confirmation link, you can pass the necessary variable and the ID of the record that the delete request is pregnant.

    As an alternative, you can use a JS alert fuction to ask if they are sure they want to delete the folder, and then delet allwo runs after confirmation to the user. To do this, you can use code like this...


    onclick = "return ('are you SURE you want to DELETE this record? confirm")">

    --
    Lawrence * Adobe Community Expert *.
    www.Cartweaver.com
    All Shopping Cart Application for
    Dreamweaver, available in ASP, PHP and CF
    www.twitter.com/LawrenceCramer

  • Need help with the update server behaviors and deleting records

    I am 'trying' to use the update and delete record server behaviors and I can't get the redirection page to set up correctly. What I'm trying to do, is to have the redirection came up with the right records depending on the CompId page. It seems that it is taking the CompId and agreementId (which are my unique ID) and use them in the url of the redirection page. Also, it updates the table. Here is the url that appears after I have send the update:

    http://localhost:8888/dotweb/maintenance/agreement_home.php?CompId= & agreementId = 7

    Here is the code for the update page:

    Name of the document
    Signed?
    First name
    Family name
    Date of signature

    Pending patent, trade mark, Tradesecret and straightened to copy recorded
    Copyright KML designs 2009

    Can someone tell me why it would show the CompId and agreementId when everything I asked the CompId? Thanks for your help. Just in case, I enclose you an html version of this file. It must be a php file, but is not one of the allowed file types.

    CompId is not filled in the URL because you try to use the result of the rsAgree recordset object until the result of the recordset is created. However, you pass the CompId value via array $_POST as a hidden field.

    Change this line (52):

    $updateGoTo = "agreement_home.php?CompId=" . $row_rsAgree['CompId'] . "";
    

    to do this:

    $updateGoTo = "agreement_home.php?CompId=" . $_POST['CompId'];
    
  • Delete records in Page view

    Hello

    I created a page to display. Created only VO. I added a column with the deletion icon to perform the deletion for the selected record. I added the following code to delete, but does not work. Here is expected to create for this VO EO perform the remove operation?

    Please check following code.

    CO:

    {if ("Delete". Equals (PageContext.GetParameter (EVENT_PARAM)))}

    String rowTemplateID = pageContext.getParameter ("TemplateID11");
    [Serializable] param = {rowTemplateID};
    throw new OAException ("Tempalate with id" + rowTemplateID + "deleted successfully", OAException.CONFIRMATION);
    am.invokeMethod ("deleteRow", param);

    throw new OAException ("Tempalate with id" + rowTemplateID + "deleted successfully", OAException.CONFIRMATION);
    }

    AM:

    {} public void deleteRow (String rowTemplateID)

    try {}
    OAViewObject vo = (OAViewObject) getChartTemplatesVO1 ();
    Line ChartTemplatesVORowImpl = null;
    Number of selectedTempId = new Number (rowTemplateID);

    int fetchedrowcount = vo.getFetchedRowCount ();
    System.out.println ("Number of rows read is" + fetchedrowcount);
    getOADBTransaction () .writeDiagnostics (this, "number of lines is = >" + fetchedrowcount, 1);
    RowSetIterator deleteiter = vo.createRowSetIterator ("deleteiter");
    If (fetchedrowcount > 0)
    {
    deleteiter.setRangeStart (0);
    deleteiter.setRangeSize (fetchedrowcount);

    for (int i = 0; i < fetchedrowcount; i ++)
    {
    Row = (ChartTemplatesVORowImpl) deleteiter.getRowAtRangeIndex (i);
    System.out.println ("Inside the loop" + i);
    For performance reasons, we generate ViewRowImpls for all
    Objects in view. When we need to get an attribute value,
    We use the accessors appointed instead of a generic string search.
    Number currentTempID = row.getChartTemplateId ();
    System.out.println("ChartTempId-selectedTempId"+currentTempID+"-"+selectedTempId);
    If (currentTempID.CompareTo (selectedTempId) == 0)
    {System.out.println ("deletion of graph model");
    It performs the deletion.
    Row.Remove ();
    getOADBTransaction () .commit ();
    System.out.println ("Deletein graph model");
    break;
    } / / end if

    } / / end of loop

    } //end if fetch County
    deleteiter.closeRowSetIterator ();
    } //end try
    catch (Exception e) {}
    e.printStackTrace ();
    getOADBTransaction () .rollback ();
    } / / end catch * /.
    }

    Kind regards
    Kapil

    All of the suggestions above are worth. Its up to you on how you want to manage. I remember for my good days at Oracle, we used to create the EOs for same search your. Advantage: You need not update once an LMD was carried out since the EO has been already updated. However, concerning the development of product and we had to follow all the guidelines and constraints.

    So this is a call, you must take on how much impact on performance (depending on the complexity of the query, no tables, cardinality of records etc.) is considered to impact for your end users. Hope that you have found the complete picture.

    Concerning
    Sumit

  • Deleting records in an Oracle table

    I have a table of RESULTS and want to delete the records does not correspond to the account and IDS on the table 2.

    This is the request I have formed-

    delete results p

    where (p.account, p.match_value) not in

    (select the id from 2 account)

    However, NOT IN the clause seems to take too long to run, so I can change the query like this?

    delete results p

    Left outer join the 2 pd

    on p.account = pd.account

    and p.match_value = pd.id;

    Please suggest if it seems good.

    NOT IN often has performance issues. Also if there is no line in table 2 with null or id account it will not work as it should in any case. Try this. "

    delete from results where (account, match_value) in

    (select the account, the results match_value

    less

    Select id from 2 account);

  • cannot retrieve space in the tablespace after deleting records

    Oracle 11 GR 1 material RHEL5 64 bit

    Hello.

    I have a problem recovering a tablespace space after you remove all (in thousands) of records in a table (which resides in this tablespace). I tried the following without result:

    -Alter table < table_name > shrink

    -bleed the tablespace

    -purge recyclebin

    This table contains multiple LOB columns and uses SECUREFICHIERS. I don't know if that has anything to do with him or not. The tablespace is locally managed and Segment space management is set to AUTO. Here is the create table command:

    CREATE TABLE IQC. DICOM_OBJECT
    (
    DICOM_OBJECT_RID NUMBER NN_DICOM_OBJECT_DICOM_OBJ_RID CONSTRAINT NOT NULL,.
    NUMBER OF SUBMISSION_RID
    NUMBER OF SUBMISSION_ITEM_RID
    DICOM ORDSYS. ORDDICOM,
    IMAGETHUMB ORDSYS. ORDIMAGE,
    ANONDICOM ORDSYS. ORDDICOM,
    ACTIVE_FLAG VARCHAR2 (1 CAR) DEFAULT 'Y' CONSTRAINT NN_DICOM_OBJECT_ACTIVE_FLAG NOT NULL,
    CREATED_TIMESTAMP TIMESTAMP (6) WITH THE LOCAL SYSTIMESTAMP CONSTRAINT NN_DICOM_OBJECT_TIMESTAMP DEFAULT TIME ZONE NOT NULL,.
    SOURCE_DESCRIPTION VARCHAR2 (100 CHAR) CONSTRAINT NN_DICOM_OBJECT_SOURCE NOT NULL,
    OP_CONFORMANCE_FLAG VARCHAR2 (1 CHAR)
    )
    COLUMN NOT OVERRIDABLE IMAGETHUMB AT ALL LEVELS
    TABLESPACE IIQDCMDAT01
    PCTUSED 0
    PCTFREE 10
    INITRANS 1
    MAXTRANS 255
    STORAGE)
    80K INITIAL
    ACCORDING TO 1 M
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    DEFAULT USER_TABLES
    )
    LOGGING
    NOCOMPRESS
    LOB ("DICOM". (' ' EXTENSION ') AS STORE NAVIGATION
    (TABLESPACE IIQDCMLOB01
    DISABLE THE ONLINE STORAGE
    CHUNK 16384
    RETENTION
    NOCACHE
    INDEX)
    TABLESPACE IIQDCMLOB01
    STORAGE)
    80K INITIAL
    NEXT 1
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    DEFAULT USER_TABLES
    ))
    STORAGE)
    INITIALS 208K
    ACCORDING TO 1 M
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    DEFAULT USER_TABLES
    )
    )
    ACE OF LOB STORE (SYS_NC00050$)
    (TABLESPACE IIQDCMDAT01
    ALLOW ONLINE STORAGE
    CHUNK 16384
    PCTVERSION 10
    NOCACHE
    INDEX)
    TABLESPACE IIQDCMDAT01
    STORAGE)
    80K INITIAL
    NEXT 1
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    DEFAULT USER_TABLES
    ))
    STORAGE)
    80K INITIAL
    ACCORDING TO 1 M
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    DEFAULT USER_TABLES
    )
    )
    LOB ("DICOM". "SOURCE". " ("' STORE AS LOCALDATA SECUREFILE")
    (TABLESPACE IIQDCMLOB01
    DISABLE THE ONLINE STORAGE
    CHUNK 16384
    RETENTION
    NOCACHE
    INDEX)
    TABLESPACE IIQDCMLOB01
    STORAGE)
    80K INITIAL
    NEXT 1
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    DEFAULT USER_TABLES
    ))
    STORAGE)
    INITIALS 208K
    ACCORDING TO 1 M
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    DEFAULT USER_TABLES
    )
    )
    LOB ("ANONDICOM". "SOURCE". " ("' STORE AS LOCALDATA SECUREFILE")
    (TABLESPACE IIQDCMLOB01
    DISABLE THE ONLINE STORAGE
    CHUNK 16384
    RETENTION
    NOCACHE
    INDEX)
    TABLESPACE IIQDCMLOB01
    STORAGE)
    80K INITIAL
    NEXT 1
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    DEFAULT USER_TABLES
    ))
    STORAGE)
    INITIALS 208K
    ACCORDING TO 1 M
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    DEFAULT USER_TABLES
    )
    )
    XMLTYPE SYS_NC00017$ STORE AS CLOB
    (TABLESPACE IIQDCMLOB01
    DISABLE THE ONLINE STORAGE
    CHUNK 16384
    RETENTION
    SUCCESSFUL READS OF THE CACHE
    INDEX)
    TABLESPACE IIQDCMLOB01
    STORAGE)
    80K INITIAL
    NEXT 1
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    DEFAULT USER_TABLES
    ))
    STORAGE)
    INITIALS 208K
    ACCORDING TO 1 M
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    DEFAULT USER_TABLES
    )
    )
    LOB ("IMAGETHUMB". "SOURCE". " ("' STORE AS LOCALDATA SECUREFILE")
    (TABLESPACE IIQDCMLOB01
    DISABLE THE ONLINE STORAGE
    CHUNK 16384
    RETENTION
    NOCACHE
    INDEX)
    TABLESPACE IIQDCMLOB01
    STORAGE)
    80K INITIAL
    NEXT 1
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    DEFAULT USER_TABLES
    ))
    STORAGE)
    INITIALS 208K
    ACCORDING TO 1 M
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    DEFAULT USER_TABLES
    )
    )
    LOB ("ANONDICOM". (' ' EXTENSION ') AS STORE NAVIGATION
    (TABLESPACE IIQDCMLOB01
    DISABLE THE ONLINE STORAGE
    CHUNK 16384
    RETENTION
    NOCACHE
    INDEX)
    TABLESPACE IIQDCMLOB01
    STORAGE)
    80K INITIAL
    NEXT 1
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    DEFAULT USER_TABLES
    ))
    STORAGE)
    INITIALS 208K
    ACCORDING TO 1 M
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    DEFAULT USER_TABLES
    )
    )
    NOCACHE
    NOPARALLEL
    MONITORING
    ALLOW THE MOVEMENT OF THE LINE;


    Thanks to you all.

    If you removed all the lines, committed this deletion and shrinking the WATERFALL AREA, I can't think of a reason why none of the segments must be as large as they are. If this is the case, it would look like a bug me - you have connected an SR in Metalink?

    Justin

  • can not delete records

    db11gxe, apex 4.0, firefox 24,

    Hi all

    I am trying to remove master records, but I can't because they childs, how do the delete cascade?

    and if I post a first confirmation message informs the user that there are child records found?

    Thank you

    Modify the foreign key constraint with cascading delete to remove option of the child with the parent records

    You can display the custom error message using

    #SQLERRM_TEXT #-text of the error without the error number

    #SQLERRM #-full error message

    in the text area of a page process Error Message. In the process of the page, you can capture the exception to the EXCEPTION of the anonymous block section and then use raise_application_error your own message of the exception

    Read this: http://docs.oracle.com/cd/B28359_01/appdev.111/b28370/errors.htm#i1871

    Kind regards

    Vishal

    Oracle APEX 4.2 reports | Packt Publishing

    Vishal blog

    Please mark the reply as useful/correct if it solves your problem

Maybe you are looking for