Deferred & immediate constriant

I add a new contraint to emp table then i tried to make it deferred but i doesn't except it i wonder why .I did the following :
alter table emp add constraint comm_check check (comm is not null) enable novalidate ;
then
set constraint comm_check deferred
It gave me the following error :
ORA-02447: Cannot defer a constraint that is not deferable .
Why it cannot ? How i can make it possible ?
Thanks in advance

Oracle documentation :
You cannot alter a constraint's deferrability. That is, whether you specify either of these parameters, or make the constraint NOT DEFERRABLE implicitly by specifying neither of them, you cannot specify this clause in an ALTER TABLE statement. You must drop the constraint and re-create it.

Similar Messages

  • Checking status of Deferred/Immediate constraints

    I know I can check the status of a Disabled/Enabled constraint in oracle by:
    select status from <constraint table> where <constraint name> and that's peachy, what i'm trying to do is check the status of a constraint that i've deferred that is normally immediate and so far i've come up empty handed.
    for example: the constraint resides in user_constraints, the columns deferrable, deferred and status are of no help since they contain information about the normal state of the constraint.
    so doing
    select constraint_name, deferred from user_constraints;
    set constraint cons_name deferred;
    select constraint_name, deferred from user_constraints;yields the same information (ie..useless)
    any ideas?

    The application code is doing a SET CONSTRAINT call at some appropriate place in the code. One application module may decide to defer it to continue processing whereas some other module may decide to leave it as-is.
    At one point in time, one transaction may have issued SET CONSTRAINT to defer it and other transaction involving same table may not have done so. You cannot look at the dictionary table to see what is the state, since the state is being altered by the transaction in progress, and there may be many transactions at the same time - one status cannot give information about all.

  • Deferrable initially deferred(immediate) has a bug?

    I execute these statements:
    1.alter table dept2
    add constraint dept2_id_pk
    primary key (department_id)
    deferrable initially deferred;
    2.set constraints dept2_id_pk immediate
    3.Alter session set constraints=immediate
    Then I test dept2:
    desc dept2
    Name Null? Type
    DEPARTMENT_ID NUMBER(4)
    DEPARTMENT_NAME NOT NULL VARCHAR2(30)
    MANAGER_ID NUMBER(6)
    LOCATION_ID NUMBER(4)
    Why department_id did not display NOT NULL???????
    I check the user_constraints:
    select constraint_name,constraint_type,search_condition from user_constraints where table_name='DEPT2';
    CONSTRAINT_NAME C SEARCH_CONDITION
    SYS_C005947 C "DEPARTMENT_NAME" IS NOT NULL
    DEPT2_ID_PK P
    :):):)

    It seems that your sequence of events does not update the nullable column of the dba_tab_columns. Not sure if this is a bug or the intended functionality when created deferrable.
    SQL> create table dept2(department_id varchar2(10), col2 varchar2(10) NOT NULL)
    Table created.
    SQL> alter table dept2
    add constraint dept2_id_pk
    primary key (department_id)
    deferrable initially deferred
    Table altered.
    SQL> set constraints dept2_id_pk immediate
    Set constraints complete.
    SQL> Alter session set constraints=immediate
    Session altered.
    SQL> insert into dept2 select null, 'A' from dual
    ORA-01400: cannot insert NULL into ("MSCALLION"."DEPT2"."DEPARTMENT_ID")
    SQL> select table_name, column_name, nullable
    from dba_tab_columns
    where table_name in ('T', 'DEPT2')
    TABLE_NAME                     COLUMN_NAME                    N
    DEPT2                          DEPARTMENT_ID                  Y
    DEPT2                          COL2                           N
    T                              C1                             N
    T                              C2                             N

  • What do MANUAL, DEFERRED and IMMEDIATE mean here?

    See the following query. I find the OPER_MODE has the values: MANUAL, DEFERRED and IMMEDIATE
    SQL> desc V$MEMORY_RESIZE_OPS
    Name                                                                                                      Null?    Type
    COMPONENT                                                                                                          VARCHAR2(64)
    OPER_TYPE                                                                                                          VARCHAR2(13)
    OPER_MODE                                                                                                          VARCHAR2(9)
    PARAMETER                                                                                                          VARCHAR2(80)
    INITIAL_SIZE                                                                                                       NUMBER
    TARGET_SIZE                                                                                                        NUMBER
    FINAL_SIZE                                                                                                         NUMBER
    STATUS                                                                                                             VARCHAR2(9)
    START_TIME                                                                                                         DATE
    END_TIME                                                                                                           DATEThe OPER_MODE column have the following values:
    * MANUAL
    * DEFERRED
    * IMMEDIATE
    What do MANUAL, DEFERRED and IMMEDIATE mean here?

    MANUAL: You as a DBA are responsible for the change, for example because you created a keep cache by specifying DB_KEEP_CACHE_SIZE>0
    DEFERRED: MMAN did the change, but it may have taken a while until proceeded, for example a decrease of the shared pool size took some time until enough objects have been aged out.
    IMMEDIATE: MMAN did the change because of an emergency case; some component needed to grow in order to let an action proceed, for example a parallel query needs an increases large pool to complete.
    Kind regards
    Uwe
    http://uhesse.wordpress.com

  • Constraint Level Inquiry

    Dear Members :
    Is there any way I may inquire from Data Dictionary, whether a constraint has been declared at "column level" or "table level" ? I am looking for some kind of flag Oracle might
    maintain to differentiate the two levels ?
    Thanks in advance.
    Atanu

    So, how is one table level and one column level? They look the same to me
    SQL> create table t1
      2  (i number not null constraint i_chk1 check(i > 0)
      3  );
    Table created.
    SQL>
    SQL> create table t2
      2  (i number not null
      3  ,constraint i_chk2 check(i > 0)
      4  );
    Table created.
    SQL> exec print_table('select * from user_constraints where constraint_name like ''I%'' and table_name like ''T%''');
    OWNER                         : AJALLEN
    CONSTRAINT_NAME               : I_CHK1
    CONSTRAINT_TYPE               : C
    TABLE_NAME                    : T1
    SEARCH_CONDITION              : i > 0
    R_OWNER                       :
    R_CONSTRAINT_NAME             :
    DELETE_RULE                   :
    STATUS                        : ENABLED
    DEFERRABLE                    : NOT DEFERRABLE
    DEFERRED                      : IMMEDIATE
    VALIDATED                     : VALIDATED
    GENERATED                     : USER NAME
    BAD                           :
    RELY                          :
    LAST_CHANGE                   : 28-apr-2010 16:58:13
    INDEX_OWNER                   :
    INDEX_NAME                    :
    INVALID                       :
    VIEW_RELATED                  :
    OWNER                         : AJALLEN
    CONSTRAINT_NAME               : I_CHK2
    CONSTRAINT_TYPE               : C
    TABLE_NAME                    : T2
    SEARCH_CONDITION              : i > 0
    R_OWNER                       :
    R_CONSTRAINT_NAME             :
    DELETE_RULE                   :
    STATUS                        : ENABLED
    DEFERRABLE                    : NOT DEFERRABLE
    DEFERRED                      : IMMEDIATE
    VALIDATED                     : VALIDATED
    GENERATED                     : USER NAME
    BAD                           :
    RELY                          :
    LAST_CHANGE                   : 28-apr-2010 16:58:13
    INDEX_OWNER                   :
    INDEX_NAME                    :
    INVALID                       :
    VIEW_RELATED                  :
    PL/SQL procedure successfully completed.

  • How to change state of a constraint from DEFERABLE to IMMEDIATE?

    Hi,
    I am runnig 10gR2 and would like to change state of a constraint from
    DEFERABLE to IMMEDIATE without recreating it.
    The change is working at the session level with
    SET CONSTRAINT <constraint name> IMMEDIATE;
    But this is not visible for other users.
    So my question is, if there is any other way to do it, so the change would be visible for every user.
    Here is what I have done:
    CREATE TABLE TEST_TBL
    ID NUMBER
    ALTER TABLE TEST_TBL ADD CONSTRAINT pk_test_tbl PRIMARY KEY(ID)
    INITIALLY DEFERRED DEFERRABLE;
    SQL> INSERT INTO test_tbl VALUES(1);
    1 row created.
    SQL> INSERT INTO test_tbl VALUES(1);
    1 row created.
    SQL> INSERT INTO test_tbl VALUES(1);
    1 row created.
    SQL> COMMIT;
    COMMIT
    ERROR at line 1:
    ORA-02091: transaction rolled back
    ORA-00001: unique constraint (TEST_SCHEMA.PK_TEST_TBL) violated
    The constraint is checked only at commit,
    To change this:
    SQL> SET CONSTRAINT pk_test_tbl IMMEDIATE;
    Constraint set.
    SQL> INSERT INTO test_tbl VALUES(1);
    1 row created.
    SQL> INSERT INTO test_tbl VALUES(1);
    INSERT INTO test_tbl VALUES(1)
    ERROR at line 1:
    ORA-00001: unique constraint (TEST_SCHEMA.PK_TEST_TBL) violated
    But if I would connect with user B, I would be able to do multiple inserts with value 1.
    Thanks

    I am runnig 10gR2 and would like to change state of a constraint from
    DEFERABLE to IMMEDIATE without recreating it.From Oracle Constraints:
    Note: A non-deferrable constraint is generally policed by a unique index (a unique index is created
    unless a suitable index already exists). A deferrable constraint must be policed by a non-unique index
    (as it's possible for a point of time during a transaction for duplicate values to exist). This is why
    it is not possible to alter a constraint from non-deferrable to deferrable. Doing so would require
    Oracle to drop and recreate the index.
    A PK enforces uniqueness procedurally without relying on a unique index. The main advantage
    of a non-unique index is the constraint can be disabled and re-enabled without the index being dropped and recreated.

  • Deferred payment terms and Tax due immediatly

    Hi,
    We would like to know if there is a workaround in SAP to post the customers invoices tax amount with a different due date of the deferred payments. The deferred payments amount will not include tax.
    What we would like to do according to our business requirement (this is not a legal requirement in Canada) is to do the postings as follow. Let say we have an invoice which full amount is 1,000$, 100$ are taxes. There are 3 instalments. The posting would be as follow:
    DR Customer account 100$ net due 15th of March (tax amount)
    DR Customer account 300$ net due 15th of June (1st installment)
    DR Customer account 300$ net due 15th of July (2nd installment)
    DR Customer account 300$ net due 15th of August (3rd installment)
    CR Sales Tax 100$
    CR Revenue 900$
    Tax rate vary accoding to the province in Canada. Therefore, creating a payment term per number of deferred payments (1 to 24) * number of provinces (13) * first payment due date (1 to 24) is not feasable since it is a pain to maintain (too many payment term to create).
    Some of our invoices are interfaced (created through an FB01), some are financial invoices (FB70) and we have regular invoices coming from SD. Thus, we have many document types included and we cannot use the amount splitter functionality for enjoy transaction (FB70/75 only).
    Anybody has already had to implement or change a FM or BAdI for such a posting?
    Thanks a lot for your advice!
    Pierre

    Just to clarify, the above scenario is for when PO is transferred from MM to SUS , then payment terms and condition types are not transferring

  • A Long DEFERRED Decision – That Proved IMPRUDENT

    Dear Thorsten,
    A Long DEFERRED Decision – That Proved IMPRUDENT  
    I had been a NOKIA Loyalist ever since it launched its first best seller 1100. And thereafter the journey passed through 2600, N70, N72, N73, N97, E5, E6, and Lumia 800 and stopped at Lumia 820 when I felt the strong urge of faster mailing service due to my official commitments.
    Meanwhile; to my Good Fortune (which unfortunately proved to be not-so-good) BlackBerry came out with BB10. Since you still are undisputed and uncrowned prince of flawless mailing system, I without giving second thought decided to Cross-the-Floor and join the Band Wagon of BlackBerry. Although I liked Z10 & Q10 in the first glance and after having a feel of them, the price-tag did not let me take the immediate plunge and hence I waited for Q5. And this proved to be the Biggest Mistake-Of-The-Recent-Times Of My Life.
    Because to keep the price low, you have drastically compromised with the quality as Q5 which is atleast 90% inferior to Q10.
    The major problems I have been facing with Q5 are:-
    1.    The OBSTINATE touch – One needs to literally RUB The Screen To Get It Unlocked
    2.    Cumbersome Configuring Process Of Mail – Although I have configured my mails on the same, it keeps throwing messages to reconfigure it time-n-again for no valid reasons.
    3.    Fragile SIM & MMC Compartment – The cover keeps opening on its own without applying any pressure or effort, which may lead to breakage – example of poor designing.
    4.    Drastically Slow – Inspite of having a Good Processor, the Video Streaming and Downloading is very very slow.
    5.    Silent Profile Is Too Silent – When the phone is kept on the Vibrate Only Mode it becomes almost dead as one cannot get to feel the vibration when in the pocket.   
    In a nutshell all I can see that You Have Reduced The ‘PIZZA’ To ‘CHAPATI’ In Order To Bring Down The Cost.
    I am not sure what to do now as I am in Catch 22 situation – I am into  BBian era but only as good as belonging to Barbarian Age.
    And before I forget - even after using it for over a fortnight, I am not able to configure BBM because every time it throws a message "TEMPORARY SERVER ERROR" (which in fact is PERPETUAL) . Extremely sorry state of affairs at my end - what to do? 
    Best regards.
    Yours sincerely,
    Rajneesh Batra
    To,
    Mr. Thorsten Heins
    CEO
    Research In Motion

    rajneeshbatra wrote:
    Just one thing I am not able to comprehend is that why didn't you for a second give a thought to my hardship that there might be some genuine problem with my particular handset and hence kept defending the orgn. And if by doing so you wish to establish that BlackBerry is a 0 defect company,
    I have no idea what you're speaking of: I have never said that BlackBerry was anything of a "0 defect company", as a matter of fact if you knew me, you would know that I often make critical oberservations of the company, it's products and services.
    You're imagining things I've never stated. You have a vivid imagination. Becasue you and disagree on your specific comments doesn't mean I defend BlackBerry on everything.
    rajneeshbatra wrote:
    I wish you knew Hindi otherwise had recited a beautiful two liner which perfectly fits you.
    Try me.
    I might have a two worder that perfectly fits you.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Popup cache with button has property immediate="true"

    Hi
    I am using jdevloper 11.1.2.2
    I have caching  problem with popup has contentDelivery="lazyUncached" and I add cancel  button on popup with  immediate="true" to skip validation in input fields at popup.
    After I click cancel button it hide popup , but again If I show popup, it still cache old data in input feilds.
    My popup source is as below
    <af:popup childCreation="deferred" id="compPop"
                      binding="#{pageFlowScope.CustomersBean.compPop}" autoCancel="disabled" contentDelivery="lazyUncached">
                <af:dialog id="d1" title="#{viewcontrollerBundle.COMPANY} #{pageFlowScope.mode}" closeIconVisible="false"
                           type="none">
                    <f:facet name="buttonBar">
                        <af:toolbar id="t2">
                            <af:commandButton text="#{viewcontrollerBundle.SAVE}" id="cb6"
                                              actionListener="#{pageFlowScope.CustomersBean.onClickSaveCompPop}"/>
                            <af:commandButton text="#{viewcontrollerBundle.CANCEL}" id="cb7"
                                              actionListener="#{pageFlowScope.CustomersBean.onClickCancelCompPop}"
                                              immediate="true"/>
                        </af:toolbar>
                    </f:facet>
                    <af:panelFormLayout id="pfl1">
                        <af:inputText value="#{bindings.CompanyNumber.inputValue}"
                                      label="#{bindings.CompanyNumber.hints.label}"
                                      required="#{bindings.CompanyNumber.hints.mandatory}"
                                      columns="#{bindings.CompanyNumber.hints.displayWidth}"
                                      maximumLength="#{bindings.CompanyNumber.hints.precision}"
                                      shortDesc="#{bindings.CompanyNumber.hints.tooltip}" id="it1">
                            <f:validator binding="#{bindings.CompanyNumber.validator}"/>
                        </af:inputText>
                        <af:inputText value="#{bindings.CompanyName.inputValue}" label="#{bindings.CompanyName.hints.label}"
                                      required="#{bindings.CompanyName.hints.mandatory}"
                                      columns="#{bindings.CompanyName.hints.displayWidth}"
                                      maximumLength="#{bindings.CompanyName.hints.precision}"
                                      shortDesc="#{bindings.CompanyName.hints.tooltip}" id="it2">
                            <f:validator binding="#{bindings.CompanyName.validator}"/>
                        </af:inputText>
                        <af:selectOneChoice value="#{bindings.CompCategory.inputValue}"
                                            label="#{bindings.CompCategory.label}"
                                            required="#{bindings.CompCategory.hints.mandatory}"
                                            shortDesc="#{bindings.CompCategory.hints.tooltip}" id="soc3">
                            <f:selectItems value="#{bindings.CompCategory.items}" id="si3"/>
                        </af:selectOneChoice>
                        <af:selectOneChoice value="#{bindings.City.inputValue}" label="#{bindings.City.label}"
                                            required="#{bindings.City.hints.mandatory}"
                                            shortDesc="#{bindings.City.hints.tooltip}" id="soc4">
                            <f:selectItems value="#{bindings.City.items}" id="si4"/>
                        </af:selectOneChoice>
                        <af:inputText value="#{bindings.Tele1.inputValue}" label="#{bindings.Tele1.hints.label}"
                                      required="#{bindings.Tele1.hints.mandatory}"
                                      columns="#{bindings.Tele1.hints.displayWidth}"
                                      maximumLength="#{bindings.Tele1.hints.precision}"
                                      shortDesc="#{bindings.Tele1.hints.tooltip}" id="it3">
                            <f:validator binding="#{bindings.Tele1.validator}"/>
                        </af:inputText>
                        <af:inputText value="#{bindings.Tele2.inputValue}" label="#{bindings.Tele2.hints.label}"
                                      required="#{bindings.Tele2.hints.mandatory}"
                                      columns="#{bindings.Tele2.hints.displayWidth}"
                                      maximumLength="#{bindings.Tele2.hints.precision}"
                                      shortDesc="#{bindings.Tele2.hints.tooltip}" id="it4">
                            <f:validator binding="#{bindings.Tele2.validator}"/>
                        </af:inputText>
                        <af:inputText value="#{bindings.Fax.inputValue}" label="#{bindings.Fax.hints.label}"
                                      required="#{bindings.Fax.hints.mandatory}"
                                      columns="#{bindings.Fax.hints.displayWidth}"
                                      maximumLength="#{bindings.Fax.hints.precision}"
                                      shortDesc="#{bindings.Fax.hints.tooltip}" id="it5">
                            <f:validator binding="#{bindings.Fax.validator}"/>
                        </af:inputText>
                        <af:inputText value="#{bindings.Website.inputValue}" label="#{bindings.Website.hints.label}"
                                      required="#{bindings.Website.hints.mandatory}"
                                      columns="#{bindings.Website.hints.displayWidth}"
                                      maximumLength="#{bindings.Website.hints.precision}"
                                      shortDesc="#{bindings.Website.hints.tooltip}" id="it6">
                            <f:validator binding="#{bindings.Website.validator}"/>
                        </af:inputText>
                    </af:panelFormLayout>
                </af:dialog>
            </af:popup>

    Hi,
    can you try and add the af:resetActionListener tag to the cancel button ?
    http://docs.oracle.com/cd/E28280_01/apirefs.1111/e12419/tagdoc/af_resetActionListener.html
    Frank

  • Can't create a sequence within a pl/sql block with execute immediate.

    Hi All. I created a user and granted it the 'create sequence' privilege though a role. In a pl/sql block I try to create a sequence using 'execute immediate' but get a 1031-insufficient privileges error. If I grant create sequence directly to the user, the pl/sql block completes successfully. Can anyone explain this behavior? We're running 11.2 Enterprise Editon.
    Thanks,
    Mark

    In a definer's rights stored procedure (the default), you only have access to privileges that have been granted directly, not via a role.
    There are two basic reasons for that. First, roles can be enabled or disabled, default and non-default, password-protected, etc. so the set of roles a particular user actually has is session-specific. Oracle needs to know at compile time what privileges the owner of the procedure has. The only way to do that (without deferring the privilege check) is to ignore privileges granted through roles.
    Second, since 99% of privilege management DBAs do involves granting and revoking roles, it's helpful that changing role privileges will never cause objects to be marked invalid and recompiled which can have side-effects on applications. DBAs only need to worry about causing problems on those rare cases where they are granting or revoking direct privileges to users.
    You can create an invoker's rights stored procedure by adding the clause (AUTHID CURRENT_USER). That defer's the security check to run-time but allows the procedure to see privileges granted through roles in the current session. But that means that the caller of the procedure would need to have the CREATE SEQUENCE privilege through the role, not the owner of the procedure.
    And just to make the point, dynamic object creation in PL/SQL is almost always a red flag that there is something problematic in your design. If you are creating sequences dynamically, that means that you'd have to refer to them dynamically throughout your code which means that your inserts would need to use dynamic SQL. That's not a particularly easy or safe way to develop code.
    Justin

  • Reporting exceptions on deferred constraints

    Is it possible to report exceptions on deferred constraints? I am using this mechanism to load tables in an arbitrary order and to prevent FK violations whilst loading.
    As a starting point, the script below works as expected (enabling and disabling):
    CREATE TABLE EXCEPTIONS
    ( ROW_ID ROWID
    , OWNER VARCHAR2(30)
    , TABLE_NAME VARCHAR2(30)
    , CONSTRAINT VARCHAR2(30)
    CREATE TABLE EMP( ENAME VARCHAR2(10));
    ALTER TABLE EMP ADD CONSTRAINT EMP_UK UNIQUE (ENAME) DEFERRABLE;
    ALTER TABLE EMP DISABLE CONSTRAINT EMP_UK;
    INSERT INTO EMP VALUES ('SMITH');
    INSERT INTO EMP VALUES ('SMITH');
    ALTER TABLE EMP ENABLE CONSTRAINT EMP_UK EXCEPTIONS INTO EXCEPTIONS;
    SELECT * FROM EXCEPTIONS;
    However, I don't want to disable constraints, because the application may be performing DML in another session.
    So in the script below I'm deferring the constraints instead of disabling them. But how can I report the constraint violations in this scenario?
    CREATE TABLE EXCEPTIONS
    ( ROW_ID ROWID
    , OWNER VARCHAR2(30)
    , TABLE_NAME VARCHAR2(30)
    , CONSTRAINT VARCHAR2(30)
    CREATE TABLE EMP( ENAME VARCHAR2(10));
    ALTER TABLE EMP ADD CONSTRAINT EMP_UK UNIQUE (ENAME) DEFERRABLE;
    ALTER SESSION SET CONSTRAINTS=DEFERRED;
    INSERT INTO EMP VALUES ('SMITH');
    INSERT INTO EMP VALUES ('SMITH');
    -- Which statement goes here to report constraint violations?
    SELECT * FROM EXCEPTIONS;
    The statement:
    SET CONSTRAINTS ALL IMMEDIATE;
    will validate deferred constraints and result in a SQL Error: ORA-00001: unique constraint (SCOTT.EMP_UK) violated
    But this does not tell me the rows.
    The statement:
    ALTER TABLE EMP ENABLE CONSTRAINT EMP_UK EXCEPTIONS INTO EXCEPTIONS;
    results in the following error, and no rows in the exceptions table:
    SQL Error: ORA-02091: transaction rolled back
    ORA-00001: unique constraint (SCOTT.EMP_UK) violated
    Is there any way to report the violations?
    At the end, I'd like to report ALL violating rows to the user.
    The best I can come up with is, for each constraint perform:
    SET CONSTRAINT EMP_UK IMMEDIATE;
    and in the exception handler explicitly query for duplicates in the table:
    SELECT ENAME FROM EMP GROUP BY ENAME HAVING COUNT(*) > 1;
    I hope there is a better way.

    I believe this will not be usable in a scenario in which the tables are loaded in the "wrong" order. The database will only be consistent after all tables have been loaded. Using DML error logging will produce false errors. Please correct me if I'm wrong.

  • Oracle ADF refresh as deferred does not execute query on page load

    In the oracle ADF page I have two panel boxes. (Oracle ADF 11.1.1.4)
    a) Personal information panel box with PanelFormLayout (PersonalInfoViewObj) - ReadOnly View Object
    b) Address information panel box with Table (AddressInfoViewObj) - Read Only View Object
    For the iterators in a) and b) I have kept refresh condition as deferred and cacheResult=false. Also in b) for af:table, I have kept contentDelivery="immediate"
    When page loads it fires SQL query for a) and populate the data in Personal information panel box. However for b) it does not execute the SQL query and the data is not getting populated ( in AddressInformation panel with the tables. Please note data is there in the DATABASE......)
    Becasue with the refresh as deferred it was not executing the sql query for Panel b) (panel with Table and table iterator). I have tried refresh as always and refresh ifNeeded/renderModel/prepareModel however in that case it is executing the SQL query two times (twice).
    Please let me know the best way to fix this issue.

    Hi,
    I think you need a method in an application module to init your data.
    In your AM : create a method like :
    public void init(){
    getViewObject().executeQuery();
    }In your adfc-config.xml create a methodCall from this method and a "control flow case" from the methodCall to your page.
    and keep refresh as "deferred " in your pageDef.
    Clément

  • Deferring Constraint Checking

    In the Oracle Lite documentation, there is a section:
    ==========================================================
    3.11.3.2 Defer Constraint Checking Until After All Transactions Are Applied
    1. Drop all foreign key constraints and then recreate them as DEFERRABLE constraints.
    2. Bind user-defined PL/SQL procedures to publications that contain tables with referential integrity constraints.
    3. The PL/SQL procedure should set constraints to DEFERRED in the BeforeApply function and IMMEDIATE in the AfterApply function as in the following example featuring a table named SAMPLE3 and a constraint named address.14_fk:
    ==========================================================
    For step 1, I am assuming this is on the base table that the publication references, since it is the one throwing the FK constraint violations at me.
    For step 2 however, are these procedures to be bound to the base tables as well, or somewhere else related to where the publication items are stored?
    Thanks,
    Allen

    In this case, the data model that I have to work with causes this situation
    TABLE A has 2 FK constraints to TABLE B
    TABLE B has 1 FK constraint to TABLE A
    In Oracle Lite, I:
    1-create a record in TABLE A where both of the columns with FK constraints are null
    2-create a record in TABLE B which refers to the original in TABLE A
    3-create a second record in TABLE B which also refers to the record in TABLE A
    4-update the record in TABLE A to refer to the 2 records in TABLE B
    When these changes reach the mobile server, they are placed in the error queue, because steps 1 and 4 are being combined and performed as one single insert. Since the records from step 2 and 3 don't exist yet, there is an FK violation.
    Is there a way to prevent the synchronization process from 'opitimizing' the transaction and combining steps 1 and 4? Everything works fine if I follow steps 1-4, but when 1 and 4 are combined it all falls apart.
    Thanks,
    Allen

  • ADF:Popup contentDelivery=immediate vs popupFetchListener

    Hello everybody
    I am having a problem using a popup which can be explained as followed:
    When I use contentDelivery=immediate the popupFetchListener is not triggered
    When I use contentDelivery=lazy the popupFetchListener is trigger.
    Due to the advantage of showing the content when the popup opens, and so displaying the information that I need I have to use contentDelivery=immediate, but I also want to use a popupFetchListener.
    Can anybody tell me where is the problem and what can I do to bypass it?
    Thank you
    Angel

    Angel,
    There is no problem - the [url http://download.oracle.com/docs/cd/E17904_01/apirefs.1111/e12419/tagdoc/af_popup.html]documentation will tell you that what you describe is the documented behaviour:
    The PopupFetchEvent is one of two server-side popup events but doesn't have a corresponding client event. The popup fetch event is invoked during content delivery. This means that the event will only queue for popups that have a contentDelivery type of lazy or lazyUncached. Another caveat is that the event will only work when the launch id is set. This is automatically handled by the af:showPopupBehavior but must be provided as a popup hint if programmatically shown.Since the PopupFetchEvent is specifically defined as an event that is fired during content delivery, it's not going to fire if there is no deferred content delivery.
    John

  • Deferred constraints &  XAExceptions details

    When executing an XA transaction on Oracle 8i with a J2EE server, we are not getting enough details in the OracleXAException that occurs as a result of a deferred constraint being violated (during the commit).
    We're getting a oracle.jdbc.xa.OracleXAException (wrapped inside a TransactionRolledBackException), and upon further inspection I can call the OracleXAException methods:
    getOracleError() : int
    getOracleSQLError() : int
    I cannot get any textual details about the error (ie. which constraint was violated).
    Do other version of Oracle provide more details during XA transaction failures?
    Thanks,
    M

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by SAMEER DESHPANDE ([email protected]):
    Hello
    I would like to know the use of Deferred Constraints.
    At the time of COMMMIT, the Oracle ROLLBACKS the transaction if I set "SET CONSTRAINT ALL DEFERRED;"...
    What is the use of DEFERRED CONSTRAINTS...?
    Thanks
    Sameer<HR></BLOCKQUOTE>
    You can do "SET CONSTRAINT ALL IMMEDIATE" before committing. That statement will raise an error, without rolling back the transaction, if there are violated constraints.

Maybe you are looking for

  • AP Extreme only letting on one computer at a time

    My wife recently got a MacBook instead of her old HP laptop, and we got the AP Extreme base station so we could share our laser printer. However, I have yet to be able to have both computers on the network at once. If one is online, the other one can

  • Blackberry torch 9810 wont start after blackberry protect updated

    got alert for blackberry protect update and installed up and went to reboot now . now my blackberry torch 9810 acts like it is restarting and will not come back on. need help asap!!! Solved! Go to Solution.

  • Error when startWeblogic

    Hi, i have wls 10.3.3 on suse 10 64bit patchset 3, before installing application development runtime the server starts without errors, after installing application development runtime ( ofm_appdev_generic_11.1.1.2.0_disk1_1of1.zip) and extend the dom

  • Lightbox widget isn't working

    Hi, I just inserted the lightbox gallery widget into one of my pages and everytime I preview it in my browser I just get boxes where the pictures should be with a small red "x". I'm new to dreamweaver, so I'm sure it's something simple to fix, but I

  • Can I still re-activate an old Alltel RAZR?

    If I have an old RAZR from Alltel, and activate a new phone on that line, can I then go back and re-activate the old Alltel RAZR? The reason I ask is because I had to do order the iPhone on one of my secondary family lines so that I can then activate