Deferred constraint at session level

Can you define a specific constraint to be deferred at the session level?
I know that all deferrable constraints can be set deferred at the[b] session level:
ALTER SESSION SET CONSTRAINTS = DEFERRED;
But what if I want a certain constraint only to be set deferred at the session level?
thank u

SET CONSTRAINT[S]

Similar Messages

  • 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.

  • How to measure undo at a session level

    Below is what are trying to do.
    We are trying to implement Oracle's table block compression feature.
    In doing so, in one of our testing we discovered that the session performing the DML (inserts) generated almost 30x undo.
    We measured this undo by using below query (before the transaction commited).
    SELECT a.sid, a.username, used_ublk, used_ublk*8192 bytes
    FROM v$session a, v$transaction b
    WHERE a.saddr = b.ses_addr
    However, above is at a transaction level since it still not committed, we would lose this value once the transaction either committed or rolled back, for this reason, we are trying to find an equivalent statistic at a session level.
    1. What we are trying to find it out whether if an equivalent session level statistic exist to measure the amount of undo generated?
    2. Is the undo generated always in terms of "undo blocks?"
    3. When querying v$statname for name like '%undo%' we came across several statistics, the closest one
    undo change vector size -in bytes?
    4. desc test_table;
    Name Type
    ID NUMBER
    sql> insert into test_table values (1);
    5. However when we run the query against:
    SELECT s.username,sn.name, ss.value
    FROM v$sesstat ss, v$session s, v$statname sn
    WHERE ss.sid = s.sid
    AND sn.statistic# = ss.statistic#
    AND s.sid =204
    AND sn.name ='undo change vector size'
    SID USERNAME NAME BYTES
    204 NP4 undo change vector size 492
    6. Query against: v$transaction
    SELECT a.sid, a.username, used_ublk, used_ublk*8192 bytes
    FROM v$session a, v$transaction b
    WHERE a.saddr = b.ses_addr
    SID USED_UBLK BYTES
    204 1 8192
    What are trying to understand is:
    1. How can we or what is the correct statistic to determine how many undo blocks were generated by particular session?
    2. What is the statistic: undo change vector size? What does it really mean? or measure?

    Any transaction that generates Undo will use Undo Blocks in multiples of 1 --- i.e. the minimum allocation on disk is 8KB.
    Furthermore, an Undo_Rec does not translate to a Table Row. The Undo has to capture changes to Indexes, block splits, other actions. Multiple changes to the same table/index block may be collapsed into one undo record/block etc etc.
    Therefore, a transaction that generated 492 bytes of Undo would use 8KB of undo space because that is the minimum allocation.
    You need to test with larger transactions.
    SQL> update P_10 set col_2='ABC2' where mod(col_1,10)=0;
    250000 rows updated.
    SQL>
    SQL> @active_transactions
           SID    SERIAL# SPID         USERNAME     PROGRAM                       XIDUSN  USED_UBLK  USED_UREC
           143        542 17159        HEMANT       sqlplus@DG844 (TNS V1-V3)          6       5176     500000
    Statistic : db block changes                                      1,009,903
    Statistic : db block gets                                         1,469,623
    Statistic : redo entries                                            502,507
    Statistic : redo size                                           117,922,016
    Statistic : undo change vector size                              41,000,368
    Statistic : table scan blocks gotten                                 51,954
    Statistic : table scan rows gotten                               10,075,245Hemant K Chitale

  • How to Use Transient View Objects to Store Session-level Global Variables

    hi
    Please consider section "40.8.5 How to Use Transient View Objects to Store Session-level Global Variables"
    at http://download.oracle.com/docs/cd/E14571_01/web.1111/b31974/bcstatemgmt.htm#ADFFD19610
    Based on this documentation I created the example application
    at http://www.consideringred.com/files/oracle/2010/ProgrammaticalViewObjectAndRollbackApp-v0.01.zip
    It behaves as show in the screencast at http://screencast.com/t/qDvSQCgpvYdd
    Its Application Module has a Transient View Object instance "MyEmployeesContextVOVI", as master for the child View Object instance "EmpInCtxJobVI".
    On rollback the Transient View Object instance keeps its row and attribute values.
    Also when passivation and activation is forced (using jbo.ampool.doampooling=false ) the Transient View Object instance seems to keep its row and attribute values.
    questions:
    - (q1) Why does the expression #{bindings.MyEmployeesContextVOVIIterator.dataControl.transactionDirty} evaluate as true when a Transient View Object instance attribute value is changed (as shown in screencast at http://screencast.com/t/qDvSQCgpvYdd )?
    - (q2) What would be a robust approach to make a Transient View Object instance more self-contained, and manage itself to have only one single row (per instance) at all times (and as such removing the dependency on the Application Module prepareSession() as documented in "5. Create an empty row in the view object when a new user begins using the application module.")?
    many thanks
    Jan Vervecken

    Thanks for your reply Frank.
    q1) Does sample 90 help ? http://blogs.oracle.com/smuenchadf/examples/
    Yes, the sample from Steve Muench does help, "90. Avoiding Dirtying the ADF Model Transaction When Transient Attributes are Set [10.1.3] "
    at http://blogs.oracle.com/smuenchadf/examples/#90
    It does point out a difference in marking transactions dirty by different layers of the framework, "... When any attribute's value is changed through an ADFM binding, the ADFM-layer transaction is marked as dirty. ...".
    This can be illustrate with a small change in the example application
    at http://www.consideringred.com/files/oracle/2010/ProgrammaticalViewObjectAndRollbackApp-v0.02.zip
    It now shows the result of both these expressions on the page ...
    #{bindings.MyEmployeesContextVOVIIterator.dataControl.transactionDirty}
    #{bindings.MyEmployeesContextVOVIIterator.dataControl.dataProvider.transaction.dirty}... where one can be true and the other false respectively.
    See also the screencast at http://screencast.com/t/k8vgNqdKgD
    Similar to the sample from Steve Muench, another modification to the example application introduces MyCustomADFBCDataControl
    at http://www.consideringred.com/files/oracle/2010/ProgrammaticalViewObjectAndRollbackApp-v0.03.zip
    public class MyCustomADFBCDataControl
      extends JUApplication
      @Override
      public void setTransactionModified()
        ApplicationModule vApplicationModule = (ApplicationModule)getDataProvider();
        Transaction vTransaction = vApplicationModule.getTransaction();
        if (vTransaction.isDirty())
          super.setTransactionModified();
    }Resulting in what seems to be more consistent/expected transaction (dirty) information,
    see also the screencast at http://screencast.com/t/756yCs1L1
    Any feedback on why the ADF Model layer is so eager to mark a transaction dirty is always welcome.
    Currently, question (q2) remains.
    regards
    Jan

  • Setting Session level parameter in FORMS 10g

    Hi folks,
    I want to setup session level setting for NLS DATE FORMAT in FORMS 10g at environment settings. because, i can't change these setting at database level. b,cz different client applications (i.e. .NET,Forms 10g and SQL PLUS) using different settings.
    So, i want to set this NLS DATE FORMAT for SESSION level in FORMS 10g.
    can i include this in default.env, if yes, how to include that one in .env file
    Edited by: user12212962 on Jul 23, 2010 7:18 PM

    No, i want to setup the session parameter for DATE FORMAT. why because, i'm executing oracle stored procedure from forms and this procedure does some logic based on date value.
    In this procedure, i have used all variables as DATE datatype only. and i can't change this procedure due to some other client application's using same procedure like JAVA, .NET, Oracle BI and scheduled jobs. And all these application's working fine, even when i use forms 6i also it's working.
    but when we use FORMS10g, date was treating as DD-MON-RR and all other client applications using DD-MON-YYYY due to session level setting and at database level also has a same format i.e. DD-MON-YYYY. because i logged this NLS value in audit_table when i executed through FORMS10G, JAVA application,.NET
    May be some where it's changing this setting to DD-MON-RR for FORMS10g. Is any settings at Oracle APP server level
    (iAS) for this parameter?

  • Commit and rollback on session level

    Hi All,
    I am calling one stored procedure and I am doing some dml operation in that sp. there after I calling another sp which contain some ddl operations. if process may be fail in somewhere I wanted to rollback all dml transactions.
    So I wanted to commit and rollback on session level. Is such kind of concept available in oracle.
    Prashant.

    Prashant,
    Not sure what you are talking about.
    Commit and rollback is always on session level!!!!
    Also all DDL statements are automatically committed, and rollback in case of errors is always statement level rollback.
    So let's assume
    begin
    insert into foo...;
    update foo...;
    execute immediate 'alter table foo add (last_update date)';
    end;
    exit
    and the alter table fails:
    1 alter table is rolled back
    2 insert and updates are not rolled back.
    If the alter table succeeds
    all statements are committed and you can't roll them back anymore.
    This is why issuing DDL in stored procedures has unwanted side effects and should be conisdered pure evil.
    Sybrand Bakker
    Senior Oracle DBA
    Experts: those who did read the documentation.

  • Session level NLS_COMP NLS_SORT not inheriting from instance parameters???

    Hi all,
    I have an Oracle 11g installation with a database setup as follows: NLS_COMP=BINARY, NLS_SORT=BINARY.
    After playing a bit at the session level with NLS_COMP=LINGUISTIC and NLS_SORT=BINARY_CI, I persisted them at the instance level via ALTER SYSTEM with SCOPE=SPFILE.
    Bounced the database and voila, when I query nls_instance_parameters it reflects my changes.
    Problem is, my parameters are not applied to my session: in fact, if I query nls_session_parameters, both are still set to BINARY. (Note: using sqlplus).
    The documentation (http://download.oracle.com/docs/cd/B28359_01/server.111/b28310/create006.htm) states:
    "A new session inherits parameter values from the instance-wide values."
    Am I missing something here? Is sqlplus somehow overriding the instance-level parameters? (I know sql developer may, depending on your options, hence I went back to basics...).
    Any help appreciated!
    Thanks in advance,
    Paolo

    Hi Sergiusz,
    Thank you again for your reply.
    In my registry NLS_LANG is set to its default value (AMERICAN_AMERICA.WE8MSWIN1252), so I assume that unless I set anything specific in my environment, NLS_COMP and NLS_SORT are affected by that and sort of reset to BINARY?
    If this is the case, then I'm struggling to understand the purpose of setting them at the instance level, given that as you said, NLS_LANG shouldn't be removed as an environmental variable and it seems to override them?
    Along the same lines, if I understand this correctly, should I have no control over the environment that my application runs in (e.g. a web application running in a shared IIS app pool), then the only option left is (re)setting my variables every time I establish a connection with the Oracle db, thereby starting a new session?
    Really appreciate your help.
    Cheers,
    Paolo

  • Influence of deferred constraint to Table is mutating proble

    Hello,
    i have a question regarding the 'Table is mutating,
    Trigger/Function may not see it'-problem. I
    wondered whether a deferrable constraint can solve the problem,
    but as I tested it, it's the same
    behaviour as before.
    Situation:
    assume tables LOC_TO and TORDER and the following constraint:
    ALTER TABLE LOC_TO ADD (CONSTRAINT LT_TOID FOREIGN KEY (LT_TOID)
    REFERENCES TORDER ON DELETE CASCADE
    DEFERRABLE INITIALLY DEFERRED);
    assume a trigger on table TORDER:
    create or replace trigger tIU_TORDER_ADD
    after insert or update of TO_STATE on TORDER
    for each row
    declare
    begin
    insert
    into loc_to
    ( lt_locid,
    lt_toid )
    values
    ( 'HRL14042',
    :new.to_id )
    end tIU_TORDER_ADD;
    I thought, that on a deferred constraint at the triggered action
    no check to TORDER is done, and
    that this fact will prevent the ORACLE_ERROR ORA-04091.
    Can anyone tell me, why this doesn't work?
    Thanks
    Titus Leskien
    null

    There was a loophole in the mutating table gotcha: single row inserts in a BEFORE EACH ROW trigger were not considered mutating, but were in AFTER EACH ROW triggers. This did not apply to INSERT INTO ... SELECT ... statements, which always mutated, even if they only inserted one row.
    This is get-out is no longer included in the documentation, but as you have found still applies in the 9.2 database (and it's unlikely Oracle will have broken it in 10g).
    Cheers, APC

  • Can we change the DB character set at session level

    hi,
    Please help me
    when iam giving the alter session command iam getting the error:
    SQL> ALTER SESSION set NLS_CHARACTERSE
    T =WE8MSWIN1252;
    ALTER SESSION set NLS_CHARACTERSET =WE8MSWIN1252
    ERROR at line 1:
    ORA-00922: missing or invalid
    i need to enter Arabic names in using the xml file.
    here i have two questions
    1)is it is possible to set character set at session level. because my client is not allowing to bounce the database. DB version is 10.2.0.4
    Right now my DB is in US7ascii
    2)is this "WE8MSWIN1252" set supports Arabic.
    Regards,
    Naresh

    You cannot change the characterset at the session level. If you want to store ARABIC characters in your database then you should change the characterset of your database to any other characterset that supports Arabic characters or to a Unicode characterset like UTF8 or AL32UTF8.
    If you try to insert Arabic characters with your present US7ASCII charancterset then the characters would be stored as junk.

  • Issue with data store at AM - specific session-level

    Hi,
    Iam using JDev 11.1.1.5.0
    Iam facing an issue while storing a value at AM session level in AMIMpls custom method.Following is the sample code for the same. Iam trying to invoke this method as methodcall activity in bounded taskflow.
    Just following the instructions specified at below URL
    http://andrejusb.blogspot.sg/2010/01/storingaccessing-objects-in-adf-bc.html
    public void setDeliveryVersionId(String deliveryVersion){
    Session session = this.getSession();
         //Session session = getDBTransaction.getSession();
    Hashtable userdata = session.getUserData();
    It would be great, if some one suggest on this.
    Thanks in advance,
    Samba.

    Sorry, I forgot to mention the actual issue. i.e getting null value for session variable.
    Thanks,
    Samba.

  • Reporting of deferred constraint failures

    Hello
    I'm running Kodo 3.1.4 in WebLogic 8.1 against Oracle 9. I'd like to run
    with deferred constraints but there are problems reporting failures of
    these constraints: the database rolls back but no exception is thrown by
    weblogic or KoDo. The user is therefore presented with a silent failure
    (though the correct exception is written into the weblogic container log).
    Running with DataSourceMode set to enlisted (rather than local) produces
    the expected exceptions when constraints fail but the constraints are no
    longer correctly deferred (they are tested after each statement).
    I'm all out of ideas. Can anyone point me in the right direction?
    TIA
    Robert

    There should be some sort of client exception... are you sure that you
    are not consuming it? Are you using a WL datasource?
    Robert Donkin wrote:
    Hello
    I'm running Kodo 3.1.4 in WebLogic 8.1 against Oracle 9. I'd like to run
    with deferred constraints but there are problems reporting failures of
    these constraints: the database rolls back but no exception is thrown by
    weblogic or KoDo. The user is therefore presented with a silent failure
    (though the correct exception is written into the weblogic container log).
    Running with DataSourceMode set to enlisted (rather than local) produces
    the expected exceptions when constraints fail but the constraints are no
    longer correctly deferred (they are tested after each statement).
    I'm all out of ideas. Can anyone point me in the right direction?
    TIA
    Robert--
    Steve Kim
    [email protected]
    SolarMetric Inc.
    http://www.solarmetric.com

  • 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.

  • Deferred Constraints

    Hi,
    One of our projects is using Kodo to link Java to the Oracle db I works fine with 8.1.7 but we need to connect to a Lite db.
    Kodo is running this query which fails because Oracle Lite does not have a DEFERRED column in the ALL_CONSTRAINTS table. I can't find any info on deferred constraints in Lite.
    Does Lite handle constraints in the same way?
    Is there a workaround ?
    Peter
    SELECT t2.OWNER AS PKTABLE_SCHEM,
    t2.TABLE_NAME AS PKTABLE_NAME,
    t2.COLUMN_NAME AS PKCOLUMN_NAME,
    t0.OWNER AS FKTABLE_SCHEM,
    t0.TABLE_NAME AS FKTABLE_NAME,
    t0.COLUMN_NAME AS FKCOLUMN_NAME,
    t0.POSITION AS KEY_SEQ,
    DECODE (t1.DELETE_RULE,
    'NO ACTION', 3,
    'RESTRICT', 1,
    'CASCADE', 0,
    'SET NULL', 2,
    'SET DEFAULT', 4) AS DELETE_RULE,
    t0.CONSTRAINT_NAME AS FK_NAME,
    DECODE (t1.DEFERRED,
    'DEFERRED', 5,
    'IMMEDIATE', 6) AS DEFERRABILITY
    FROM ALL_CONS_COLUMNS t0,
    ALL_CONSTRAINTS t1,
    ALL_CONS_COLUMNS t2
    WHERE t0.OWNER = t1.OWNER
    AND t0.CONSTRAINT_NAME = t1.CONSTRAINT_NAME
    AND t1.CONSTRAINT_TYPE = 'R'
    AND t1.R_OWNER = t2.OWNER
    AND t1.R_CONSTRAINT_NAME = t2.CONSTRAINT_NAME
    AND t0.POSITION = t2.POSITION;

    Peter,
    Please let us know if you still need help with this post.
    Thank you.

  • Deferred Constraints - error on inserting

    Hi there,
    i've got a very courios problem with deferred constraints. My table creates are:
    CREATE TABLE mitglied
    ( svnr NUMBER(10) NOT NULL,
      instr VARCHAR(20) NOT NULL,
      CONSTRAINT mitglied_pk PRIMARY KEY (svnr));
    CREATE TABLE abteilung
    ( instr VARCHAR(20) NOT NULL,
      geleitetVon NUMBER(10) NOT NULL,
      stvVon NUMBER(10) NOT NULL,
      CONSTRAINT abteilung_pk PRIMARY KEY (instr),
      CONSTRAINT abteilung_geleitetVon_fk FOREIGN KEY (geleitetVon)
                 REFERENCES mitglied(svnr) INITIALLY DEFERRED DEFERRABLE,
      CONSTRAINT abteilung_stvVon_fk FOREIGN KEY (stvVon)
                 REFERENCES mitglied(svnr) INITIALLY DEFERRED DEFERRABLE);
    ALTER TABLE mitglied
      ADD CONSTRAINT mitglied_fk FOREIGN KEY (instr)
                     REFERENCES abteilung(instr) INITIALLY DEFERRED DEFERRABLE;My Inserts (from sql-file):
    INSERT INTO mitglied VALUES ('1833040984', 'Edwin Neugebauer', '1984', '20-JAN-2005', 'Posaune');
    <all of the other "mitglied"-inserts>
    INSERT INTO abteilung VALUES ('Posaune', '1833040984', '1512101070');
    <all of the other "abteilung"-inserts>
    COMMIT;The Error msg:
    Error starting at line 79 in command:
    INSERT INTO mitglied VALUES ('1833040984', 'Edwin Neugebauer', '1984', '20-JAN-2005', 'Posaune')
    Error report:
    SQL Error: ORA-02091: transaction rolled back
    ORA-02291: integrity constraint (U0426435.MITGLIED_FK) violated - parent key not found
    (it's the same for all of the other mitglied-inserts), and of course, I get also errors on the abteilung-inserts.
    I've already tried to solve this problem by using "SET AUTOCOMMIT OFF" in sqlplus, but that wasn't the point.
    What's wrong with my Constraints?

    Please post a complete example cut-n-paste from SQL*Plus window that shows the exact output step by step (as like below).
    It apparently works for me as shown below.
    SQL> CREATE TABLE mitglied
      2  ( svnr NUMBER(10) NOT NULL,
      3    mName VARCHAR(30) NOT NULL,
      4    gJahr INTEGER NOT NULL,
      5    aDat DATE NOT NULL,
      6    instr VARCHAR(20) NOT NULL,
      7    CONSTRAINT mitglied_pk PRIMARY KEY (svnr));
    Table created.
    SQL> CREATE TABLE abteilung
      2  ( instr VARCHAR(20) NOT NULL,
      3    geleitetVon NUMBER(10) NOT NULL,
      4    stvVon NUMBER(10) NOT NULL,
      5    CONSTRAINT abteilung_pk PRIMARY KEY (instr),
      6    CONSTRAINT abteilung_geleitetVon_fk FOREIGN KEY (geleitetVon)
      7               REFERENCES mitglied(svnr) INITIALLY DEFERRED DEFERRABLE,
      8    CONSTRAINT abteilung_stvVon_fk FOREIGN KEY (stvVon)
      9               REFERENCES mitglied(svnr) INITIALLY DEFERRED DEFERRABLE);
    Table created.
    SQL> ALTER TABLE mitglied
      2    ADD CONSTRAINT mitglied_fk FOREIGN KEY (instr)
      3                   REFERENCES abteilung(instr) INITIALLY DEFERRED DEFERRABLE;
    Table altered.
    SQL> INSERT INTO mitglied VALUES ('1833040984', 'Edwin Neugebauer', '1984', to_date('20-JAN-2005', 'dd-mon-yyyy'), 'Posaune');
    1 row created.
    SQL> INSERT INTO abteilung VALUES ('Posaune', '1833040984', '1512101070');
    1 row created.
    SQL> commit ;
    commit
    ERROR at line 1:
    ORA-02091: transaction rolled back
    ORA-02291: integrity constraint (OPS$LAPTOP\KKISHORE.ABTEILUNG_STVVON_FK)
    violated - parent key not found
    SQL>Message was edited by:
    Kamal Kishore

  • Session level auditing

    Hi everyone,
    I need oracle document ID for session-level auditing in oracle 10g.If you 've any steps to do auditing in session level,kindly post it.
    Thanks
    Jaya prataab J

    Do you really mean "audit" as in "information that gets written to the database audit trail"? Or do you mean to ask how to trace a session?
    If you really mean audit as in the SQL statement keyword (i.e. AUDIT SELECT ON emp ...), I'm rather unclear on how you would expect that sort of functionality to work. Auditing is necessarily configured long before the session even exists. And an audit trail that just had audit records from a few select sessions would seem rather pointless as you'd never know what changes were made in unaudited sessions.
    Justin
    Edited by: Justin Cave on Nov 18, 2008 6:22 PM

Maybe you are looking for

  • Cannot repair Adobe 9.3 or edit within PDFs

    Hello, I'm having two problems.  First, a client has sent me a document in PDF form and I want to make changes within it -- I want to cross some things out, make comments in the margins, highlight stuff,  and otherwise edit as I do within Word using

  • List CD as a BOOK type rather than MUSIC

    I imported a CD into my iTunes library (Mac Mountain Lion OS). The CD is excerpts and meditation exercises from a book I am reading. Just wondering if there is a way to have the CD show up as a BOOK type rather than MUSIC? Thanks for any help.

  • Can someone help me with a somewhat simple button function?

    I am working on a project and a small part of that project is creating a counter increases by one everytime a button is clicked. For example I have incuded a picture of a much simpler version of what I am doing. For some reason I can not get the code

  • What is this warning message?

    In my MyVewController.h file, I have a function called: -(void) loadDefaults:(BOOL)saveFilter saveImage:(BOOL)saveImage; In my MyVewController.m file, I defined: -(void) loadDefaults:(BOOL)loadFilter loadImage:(BOOL)loadImage NSLog(@"Load defaults");

  • Cache_scheme and OracleConnectionPoolDataSource

    Hi guys. I am implementing Oracle's OracleConnectionPoolDataSource to provide Connection Pooling. So far, so good. However, I also wanted to introduce the use of cache_scheme for optimising once we reach the max connections limit. Do I need to use Or