Question on foreign key

Hello

I have a question about foreign key. When we create an index on a foreign key index name are displayed in the column index_name dba_constraints DD.

But the name of the index associated with the primary key is displayed.

Why so much?

Thanks in advance.

Unique or Primary Key cannot guarantee the uniqueness of a column with an Index on that column. That's why Oracle will create an Index by default if there is no such thing as an index on that column all to utter those two constraints. If an index is always associated with these two constraints.

But no foreign key guarantees uniqueness on a column. And an Index on a foreign key is not required. So even if you create an index on a foreign key column that index is not associated with the foreign key.

Tags: Database

Similar Questions

  • Question: Is foreign key references to a different column in the same table

    Hello

    I'm not grasp this concept. Would you be able to provide the logic how and why you need to create a foreign key that references a column of the same table?

    For example, referencing the schema, SupervisorNo @ here is a FOREIGN KEY to the "EmpNo" column in the same table.

    EMPLOYEE (EmpNo, title, Fname, Lname, phone, Email, date of birth, sex, salary, HireDate, OutNo, SupervisorNo @)


    Why would you want to do this and how can it be used? If you are filling out the data in the table, and this constraint is enabled, you will not be able to load whatever it is because the "EmpNo" column will be empty.


    Any input you can provide me with this would be greatly appreciated. Thank you!



    His name

    Self-referential integrity constraints

    Lets say that we have the table emp with emp_no and mgr_no columns.

    Now all managers should also be an employee too. How can I check this when inserting data into this table? I applied auto integrity constraint. It would help me to make sure no handler (doesn't mean no mgr_no) must be registered if this Manager is not an employee of this organization. Which means, I won't be able to enter any mgr_no in the column until and unless that the same employee also is an employee (emp_no from the same table).

    Check the link as well below.

    Data integrity

    Thank you

    Ishan

  • Questions about the creation of a foreign key on a table

    Hello @ll,

    during an update of the database, I lost a foreign key between two tables. The tables are called werteart and werteartarchiv_pt. Because of its size, werteartarchiv_pt is a partitioned table. The missing foreign key was a constraint on werteartarchiv_pt table referencing werteart.

    Some statistics on the size of the mentioned tables:
    werteart 22 MB
    werteartarchiv_pt 223 GB
    werteartarchiv_pt (Index) 243 GB

    I tried to create the foreign key again but it failed with the following error (apologies for the German error message):

    sqlplus ORA-00604: Fehler auf rekursiver SQL-ebony 1
    sqlplus ORA-01652: Temp-Segment kann nicht um 128 in Tablespace TEMPS00 judgements

    The statement that I used:

    ALTER table werteartarchiv_pt
    Add constraint werteartarchiv_pt_fk1
    foreign key (rail, werteartadresse, merkmale)
    Reference werteart (rail, werteartadresse, merkmale)
    on delete cascade
    at the delayed start can be delayed;

    So, the problem seems to be that Oracle needs a lot of temporary tablespace to generate foreign key and I do not know how and why.

    My questions now are, and I hope that someone is there who can answer all or part of it:

    (1) why Oracle should temporary tablespace to create the foreign key? The foreign key uses the same columns as the primary key.

    is 2 (a) possible to change the statement without using the temporary tablespace?

    2 (b) if it is not possible to avoid the use of temporary storage space, is there a formula how to calculate the necessary temporary tablespace?

    (3) is it possible to modify data in tables while the foreign key is created or is the whole table locked during the process?

    Any help or advice is appreciated.

    Kind regards
    Bjoern

    RollinHand wrote:
    My questions now are, and I hope that someone is there who can answer all or part of it:

    (1) why Oracle should temporary tablespace to create the foreign key? The foreign key uses the same columns as the primary key.

    Because it is data validation to ensure that the foreign key are violated. If you had specified NOVALIDATE ACTIVATE in its creation then the existing data in the table should be checked and the statement must fill out instantly (future data added is enabled by the constraint).

    http://download.Oracle.com/docs/CD/B28359_01/server.111/b28310/general005.htm

    Search for "Enable Novalidate constraint State"

  • Please, I have the following question on the foreign key and the ora-00904

    Thanks in advance!

    I created the table:

    Create the Department table
    (
    DNAME varchar (15) NOT NULL,
    deptID number (5) NOT NULL,
    Primary key (dname, deptid)
    )

    then...

    Create table Manager
    (
    MgrID number (10) not null,
    Not null, name varchar (10)
    Start_date date not null,
    Primary key (mgrid),

    CONSTRAINT fk_department
    FOREIGN KEY (dname, deptip)
    Department of REFERENCES (dname, deptid)
    )

    Trying to create the table with the constraint, it yeilds one:

    ORA-00904: "DNAME": invalid identifier
    +.. .with an asterisk under "dname" in line: FOREIGN KEY (dname, deptip) +.

    I tried joining my name of the column with quotation marks ("" "); capitalized for consistency; and we tried creating and editing then - all to nothing will do. I also tried to use the user interface with Oracle Express Edition and the moment where I click on create, the same error appears. Could someone help please straighten out me up - was this threat for four days.

    Thanks again!

    Hello

    Welcome to the forum!

    Columns that will reference the other table must be declared just like all the other columns; including the names in a FOREIGN KEY constraint is not auotmatically define them.
    It works:

    CREATE TABLE Manager
    (       mgrid          NUMBER (10)     NOT NULL,
         Name          VARCHAR (10)     NOT NULL,
         Start_date      DATE          NOT NULL,
         dname          VARCHAR2 (15),               -- New
         deptid          NUMBER (5),               -- New
    PRIMARY KEY (mgrid),
         --
    CONSTRAINT fk_department
    FOREIGN KEY           (dname, deptid)
    REFERENCES department (dname, deptid)
    );
    

    (assuming that the departments table, you posted, there).

    Is there a reason why you use VARCHAR instead of VARCHAR2?

    In the departments table, do you really need both dname and deptid in the primary key? For example, if you have a line with name = "ACCOUNTING" and deptid = 10; is it possible that you could have another line with deptid = 10 and some different dname, say 'REASEARCH '? It is more common to only have a deptid as primary key and have columns in the foreign key constraints that reference.

  • Foreign keys without ON DELETE CASCADE; Database design question

    It's the 3rd company, while I work, where I see that created foreign keys
    ON DELETE CASCADE
    clause.
    My colleague said that it is created without the ON DELETE CASCADE clause in order to complicate the deletion of data (records of children). Thus, for codes of the Purge and archive, before we delete the parent table we must remove from the child table first.

    Occasinaly, something is wrong and we will end up disabling FKs make them all and then purging, archiving, etc...

    So, is it not better to create foreign keys with the clause ON DELETE CASCADE, rather than having all these hassles?

    Experience, no matter what you think?

    Personally, I am firmly in the removal of the brand of hard data camp. In the vast majority of cases, trying to remove an active parent is an error if the user must be informed of what they are trying to do and must make a conscious effort to do so (in other words, remove first the children).

    John

  • SQL statement error INSERT The conflicted with the FOREIGN KEY constraint

    I recently installed a reporting for vmware vsphere software, but I get a SQL error. I opened a request for assistance with vmware, but so far they have not come up with a solution. The error is caused by: com.microsoft.sqlserver.jdbc.SQLServerException: instruction INSERT The conflicted with the FOREIGN KEY constraint 'FK_CB_VSM_NETWORK_VC_ID '. The conflict occurred in database 'VCChargebackVCC02', table "dbo." " CB_VSM_SERVER', column 'VC_ID '. I don't know a lot about SQL, so I'm lost in the extent of troubleshooting is concerned. If anyone has any ideas I'd love to hear them.

    SQL questions are better posed on Technet.  They are better equipped to manage the

    http://social.technet.Microsoft.com/forums/en-us/categories/

  • How can I make sure that changes in a primary key (in the parent table) would also appear directly in the FOREIGN KEY in the child table?

    Forgive my question. I am very new to Oracle.

    How can I make sure that changes in the key primary supplier_id (concerning the supplier table) would also appear directly in the FOREIGN KEY (supplier_id) in the products table?

    Is that not all the primary key and FOREIGN KEY on?

    My paintings:

    I created 2 tables and connect to apply in the data base referential integrity, as I learned.

    CREATE TABLE - parent provider

    (the numeric (10) of supplier_id not null,)

    supplier_name varchar2 (50) not null,

    Contact_Name varchar2 (50).

    CONSTRAINT supplier_pk PRIMARY KEY (supplier_id)

    );

    CREATE TABLE - child products

    (the numeric (10) of product_id not null,)

    supplier_id numeric (10) not null,

    CONSTRAINT fk_supplier

    FOREIGN KEY (supplier_id)

    REFERENCES beg (supplier_id)

    );

    I inserted the following text:

    INSERT INTO provider

    (supplier_id, supplier_name, contact_name)

    VALUES

    (5000, 'Apple', 'first name');

    I expect that the supplier_id (5000) to the provider of the table also appears in the products table under key supplier_id having the same value which is 5000. But this does not happen.

    How to get there?

    Thanks in advance!

    Hello

    What is a foreign key in Oracle?

    A foreign key is a way to ensure referential integrity in your Oracle database. A foreign key means that the values of a table must appear also in another table.

    Ok!??

    What is now the right way to implement referential integrity in your Oracle database that the values of a table must also be included in another table?

    A foreign key referential integrity indeed enfore in ensuring that the value in the child table must have a corresponding parent key (otherwise you will encounter an error, as evidenced by "SomeoneElse"). However, it will never automatically insert a row in the other table.

    If you are looking for a solution that automatically inserts a record in the other table, maybe you should go for triggers:

    See:

  • First database with Oracle 12 c and Entity Framework 5: no foreign key in the EMD Associations

    We have an updated database implemented in Oracle 12 c R1. When attempting to reverse engineer the EMD of the DB using Visual Studio 2013 with ODAC 12 c Release 2 and Oracle developer Tools support all we get are entities with no association, despite multiple foreign keys defined in the database. There, of course, no navigation property in both entities. No error or warning messages are displayed and activate us the option "include foreign keys in the model columns.

    Does anyone have any idea why this might happen?

    If you use files PDB (pluggable database), there is a known bug (17474322) to generate an EDM with foreign keys in a PDB file. This is probably the question you are running in.

  • Why no foreign key?

    Following an earlier thread, I run this code on a 11.2.0.1 database:

    Select "select dbms_metadata.get_ddl ("CONSTRAINT"," ' |) " constraint_name | " (', "SCOTT"): "," from dual; "

    from dba_constraints where owner = 'SCOTT '.

    and constraint_type = 'R '.

    Which produces this output:

    Select dbms_metadata.get_ddl ('CONSTRAINT', 'FK_DEPTNO', 'SCOTT') | ';' from dual;

    When I run this statement in turn, I get this response:

    SQL > select dbms_metadata.get_ddl ('CONSTRAINT', 'FK_DEPTNO', 'SCOTT') | ';' from dual;

    ERROR:

    ORA-31603: object "FKDEPTNO" of type CONSTRAINT was not found in the schema "SCOTT."

    ORA-06512: at "SYS." Dbms_metadata", line 5088

    ORA-06512: at "SYS." Dbms_metadata", line 7589

    ORA-06512: at line 1

    However, if I run this query:

    Select constraint_name, constraint_type, table_name, r_owner, owner, r_constraint_name

    of dba_constraints

    When constraint_name = "FK_DEPTNO";

    I get this result:

    OWNER CONSTRAINT_NAME C TABLE_NAME R_OWNER R_CONSTRAINT_NAME

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

    SCOTT FK_DEPTNO SCOTT PK_DEPT EMP R

    So my question is why dbms_metadata is not a constraint that exists? And the follow up is: How can I get dbms_metadata at the exit of the foreign key constraint definition?

    (If I plug the R_CONSTRAINT_NAME instead of the CONSTRAINT_NAME argument in the statement 'select dbms_metadata', the command works, but returns me the definition of the primary key in the parent table, which is not what I need, obviously).

    >

    So my question is why dbms_metadata is not a constraint that exists? And the follow up is: How can I get dbms_metadata at the exit of the foreign key constraint definition?

    >

    At the risk of offending by increasingly providing a correct answer, there is more than one type of constraint. If you look at your output above, you will see an 'R' in a column that appears to be labeled 'C '. 'C' is really constraint_type and the 'R' is ' referential.

    If you provide a type of "REF_CONSTRAINT" in DBMS_METADATA.

    >

    Select dbms_metadata.get_ddl('REF_CONSTRAINT', 'FK_DEPTNO', 'SCOTT') | ';' the double

    >

    See table 74-11 DBMS_METADATA: object in SB Doc Types provided for the types of objects

    http://docs.Oracle.com/CD/B28359_01/AppDev.111/b28419/d_metada.htm#BGBIEDIA

    While you're there see table 74-22 SET_TRANSFORM_PARAM: transform parameters for the transformation of the DDL

    http://docs.Oracle.com/CD/B28359_01/AppDev.111/b28419/d_metada.htm#BGBJBFGE

    This table shows the transformation parameters, that you can use to filter the results. This example of the DBA doc then shows how to use them.

    http://docs.Oracle.com/CD/B28359_01/server.111/b28310/general010.htm

  • Insert a line containing the same data but repeated for each foreign key availabl

    So I use Jdeveloper11g.

    I have a question where I have 2 tables, shops and rooms. Rooms now has a foreign key StoreId, which corresponds to the primary ID of stores and they are connected in a relationship 1 to many. Now I have over 600 stores. And only 2 have all the pieces that were (the building which is not even a main store in most of the rooms). The rest are not, but what I need is to assign to each store with the same name room1 1 room.

    So the name would be the same, the primary key could get it I hope some sequences, but the foreign key ID, that StoreID field would have to change and insert for each store.

    Is there a way to query sql for this type? Any means which is not manually create a 1 room, then assign to 1 store and repeating the process 600 times?

    Thanks in advance

    Hello

    It looks like you want

    INSERT INTO rooms (roomid, roomname, storeid)
    SELECT  roomidseq.NEXTVAL
    ,     'room1'
    ,     storeid
    FROM     stores
    ;
    

    I hope that answers your question.
    If not, post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and the results desired from these data.
    In the case of a DML (such as INSERT) operation the sample data should show what look like the paintings before the DML, and results will be the content of the or a modified tables after the DML.
    Explain, using specific examples, how you get these results from these data.
    Always say what version of Oracle you are using (for example, 11.2.0.2.0).
    See the FAQ forum {message identifier: = 9360002}

  • logical foreign key

    Hi all

    I'm sorry to bring the similar question. .
    I am able to create the logical foreign key for table logic with A new (A.2 = B.2) (2 is calculated logical column).
    However there are still some physical join foreign key with the old constitution (A1 = B. 1). When I deploy this RPD, it generates sql with (A1 = B. 1) join condition.

    Then, I removed this RPD physical foreign key join and received a warning "logical dimension B has a source which don't happen with any fact table" in the consistency check.

    Always after the deployment of the Dre, I get the error message [nQSError: 14025] indeed no table exists at the level of detail requested: in the report.

    I'm missing something. The logical foreign key has join condition correct that he is still not on the physical join of riding.

    Thank you for going through this question,

    http://Tinypic.com/r/2qiwmrr/6

    Based on your comments, I am looking at the documentation:
    I found a Note: a logical key to a fact table should consist of key columns that join the tables of attribute. Logical foreign key joins may be necessary if the Oracle's BI server should be used as an ODBC data source for some queries and third party reporting tools.

    I need to see why ODBC, and unlike the foreign logic key join is not the substitution of the physical layer to join.

    BTW: Since you want to go with a join defined using logical column, you can use the same expression in physical join using the expression builder?

    It should work.

    EX: T43770. Department_id = case when T43764. Department_id > 10 then T43764. Department_id 0 otherwise end

    Published by: Srini VIEREN on 18 January 2013 16:52

  • Foreign keys of a logical Table

    Hi all

    I want to know in what scenarios, we create the foreign key of a logical Table. Once we have create the foreign key for the logical table, this means he automatically substitute if joins are here.


    Physical table A, B (without physical joins)

    Logic table A, B (B (Sun)--> (Fact) A logical join)

    created the foreign key in the logical table A with b. (A.1 = B.1)

    The RPD will generate sql with A.1 = B.1 join condition for the reports.

    I tried to create the logical foreign key for table logical, I couldn't see any option from the table. Here is his
    http://Tinypic.com/r/jq1gkz/6


    Thank you

    Virat

    In general when we go to the complex joins in the physical layer, we opt for logical foreign key joins in layer MDB, best examples is SCD Type II.

    Physical table A, B (without physical joins)
    --> You must have a physical join so that it can be override by layer MDB

    created the foreign key in the logical table A with b. (A.1 = B.1) the RPD will generate sql with A.1 = B.1 join condition for the reports.
    --> Yes, you can see this join in the physical BI query.

    I tried to create the logical foreign key for table logical, I couldn't see any option from the table. Here is his
    --> 2 cases: 1) you must remove existing logical joins 2) you could not have involved physical layer.

    Hope this helps
    Let me know for questions

    Published by: Srini VIEREN on 18 January 2013 13:29

    BTW: You got a very good reputation, why don't update you your profile to see your name instead of a number

    Published by: Srini VIEREN on 18 January 2013 13:29

  • subquery in the IF statement in the trigger, without using foreign keys

    Hello

    I'm studying ways to write a subquery in an IF statement, which is placed inside a trigger.
    I want to write sth like IF (: new.jazz not in (select goldies from T which...)) etc. I don't know if the fact that the IF is in a trigger adds a few additional restrictions. (Does?)

    So far, I've found the solution described here: comparison of subquery in the If statement , which I think is a little cheesy, I could have the "cooleststarinthegalaxy" instead of 1 and seems you need to do extra light, but always very lifting.

    I also read on the possibility to use MERGE, what I'm currently doing research.

    Is there another way?

    Thank you

    Published by: BluShadow on November 14, 2012 13:37
    fixed link

    Edits by me: the question is how (if possible) to do this without a foreign key.

    Published by: questioningq12 on November 14, 2012 06:11

    Published by: questioningq12 on November 14, 2012 06:13

    questioningq12 wrote:
    Still does not address the problem of writing, a subquery in a case within a trigger, which is what was the original question.

    OK, simple answer... you can not write a subquery in a State of the IF statement, it is not part of the syntax of PL/SQL.

  • Strange problem deadlock (no foreign key not indexed)

    Hello
    We are on 11.2.0.2 on Linux. There is a blockage in our database (I first checked that no foreign key is not indexed). This impasse has this type of data in the alert file (after it cuts a lot). Can anyone suggest what might be the cause?
    --FROM Alert log: "Global Enqueue Services Deadlock detected. More info in file....trc"
    --below from trace file:
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    With the Partitioning, Real Application Clusters, OLAP, Data Mining
    and Real Application Testing options
    ORACLE_HOME = /oracle/product/database/1120/db1
    System name:     Linux
    Node name:     NODE1
    Release:     2.6.32.59-0.3-default
    Version:     #1 SMP 2012-04-27 11:14:44 +0200
    Machine:     x86_64
    Instance name: db02
    Redo thread mounted by this instance: 0 <none>
    Oracle process number: 12
    Unix process pid: 17454, image: oracle@db01 (LMD0)
    
    
    *** 2012-09-16 00:54:00.094
    *** SESSION ID:(181.1) 2012-09-16 00:54:00.094
    *** CLIENT ID:() 2012-09-16 00:54:00.094
    *** SERVICE NAME:() 2012-09-16 00:54:00.094
    *** MODULE NAME:() 2012-09-16 00:54:00.094
    *** ACTION NAME:() 2012-09-16 00:54:00.094
     
    * Load Monitor used for high load check 
    * Old Low - High Load Threshold Range = [0 - 0] 
    * hlcpu 5 (kjihpc 5), slpct 90, llpct 75 
    * New Low - High Load Threshold Range = [30720 - 40960] 
    
    *** 2012-09-16 00:54:02.690
    KSXPCINI: kjxgnpub KSXP 2.2.0GESR000 13, 0
    
    *** 2012-09-16 00:54:11.168
    ftd (4) received from node 1 (84 5.0/0.0) 
    all ftds received 
    * kjxhvmaph: domain 0 valid = 1 according to instance 1 
    ftd (6) received from node 1 (84 7.0/0.0) 
    
    all ftds received 
    ftd (19) received from node 1 (84 20.0/0.0) 
    all ftds received 
    * Initialize deadlock detection * 
    ftd (21) received from node 1 (84 22.0/0.0) 
    all ftds received 
    ftd (23) received from node 1 (84 22.0/0.0) 
    all ftds received 
    
    *** 2012-09-16 00:54:11.460
    * kjxpnpgoh: PnP Go Ahead received from 1 (pnp inc 84) 
    
    *** 2012-09-16 00:54:31.988
    Begin DRM(399) (swin 1) - AFFINITY transfer pkey 4.1 to 2 oscan 1.1
    kjiobjscn 1 
    ftd (30) received from node 1 (84 0.31/0.0) 
    all ftds received 
    ftd (33) received from node 1 (84 0.34/5.0) 
    all ftds received 
    ftd (35) received from node 1 (84 0.36/6.0) 
    all ftds received 
    ftd (37) received from node 1 (84 0.38/7.0) 
    all ftds received 
    2012-09-16 00:54:32.061349 : 
    
    * End DRM for pkey remastering request(s) (locally requested)
    
    *** 2012-09-16 00:55:02.914
    2012-09-16 00:55:02.914301 : Setting 3-way CR grants to 1 global-lru off? 0
    2012-09-16 03:00:44.727542 : Setting 3-way CR grants to 1 global-lru off? 0
    
    *** 2012-09-16 03:04:25.696
    Begin DRM(400) (swin 0) - AFFINITY transfer pkey 74335.0 to 2 oscan 0.0
    kjiobjscn 1 
    ftd (30) received from node 1 (84 0.30/0.0) 
    all ftds received 
    
    
    
    * kjxftdn: break from kjxftdn, post lmon later 
    ftd (37) received from node 1 (84 0.38/0.0) 
    all ftds received 
    ftd (30) received from node 1 (84 0.31/0.0) 
    all ftds received 
    ftd (33) received from node 1 (84 0.34/0.0) 
    all ftds received 
    ftd (35) received from node 1 (84 0.35/0.0) 
    all ftds received 
    
    
    * kjxftdn: break from kjxftdn, post lmon later 
    ftd (37) received from node 1 (84 0.38/0.0) 
    all ftds received 
    ftd (30) received from node 1 (84 0.30/0.0) 
    all ftds received 
    
    (repeated such entry removed)
    * End DRM for pkey remastering request(s) (locally requested)
    
    *** 2012-09-17 07:20:51.111
    Begin DRM(401) (swin 0) - AFFINITY transfer pkey 88491.0 to 2 oscan 0.0
    kjiobjscn 1 
    ftd (30) received from node 1 (84 0.31/0.0) 
    all ftds received 
    ftd (30) received from node 1 (84 0.30/0.0) 
    all ftds received 
    
    
    * kjxftdn: break from kjxftdn, post lmon later 
    ftd (33) received from node 1 (84 0.34/0.0) 
    all ftds received 
    ftd (35) received from node 1 (84 0.36/0.0) 
    all ftds received 
    
    * kjxftdn: break from kjxftdn, post lmon later 
    2012-09-17 07:20:51.407739 : 
    
    * End DRM for pkey remastering request(s) (locally requested)
    
    *** 2012-09-17 22:04:10.873
    Begin DRM(402) (swin 0) - AFFINITY transfer pkey 74331.0 to 2 oscan 0.0
    kjiobjscn 1 
    
    *** 2012-09-17 22:04:11.001
    ftd (30) received from node 1 (84 0.31/0.0) 
    all ftds received 
    ftd (33) received from node 1 (84 0.34/0.0) 
    ftd (30) received from node 1 (84 0.30/0.0) 
    all ftds received 
    
    
    * kjxftdn: break from kjxftdn, post lmon later 
    ftd (35) received from node 1 (84 0.36/0.0) 
    all ftds received 
    ftd (33) received from node 1 (84 0.33/0.0) 
    all ftds received 
    
    * kjxftdn: break from kjxftdn, post lmon later 
    
    *** 2012-09-18 11:07:30.967
    ftd (35) received from node 1 (84 0.36/0.0) 
    all ftds received 
    ftd (37) received from node 1 (84 0.38/0.0) 
    all ftds received 
    2012-09-18 11:07:30.973676 : 
    End DRM(405) for pkey transfer request(s) from 1
    ENQUEUE DUMP REQUEST: from 1 spnum 12 on [0xf0008][0x24a0],[TX][ext 0x4,0x0] for reason 3 mtype 0
    
    *** 2012-09-18 17:14:20.114
    DUMP LOCAL BLOCKER/HOLDER: block level 3 res [0xf0008][0x24a0],[TX][ext 0x4,0x0]
    ----------resource 0xc2bc3f50----------------------
    resname       : [0xf0008][0x24a0],[TX][ext 0x4,0x0]
    hash mask     : x3
    Local inst    : 2
    dir_inst      : 2
    master_inst   : 2
    hv idx        : 124
    hv last r.inc : 84
    current inc   : 84
    hv status     : 0
    hv master     : 1
    open options  : dd 
    grant_bits    : KJUSERNL KJUSEREX 
    grant mode    : KJUSERNL  KJUSERCR  KJUSERCW  KJUSERPR  KJUSERPW  KJUSEREX
    count         : 1         0         0         0         0         1
    val_state     : KJUSERVS_NOVALUE
    valblk        : 0x00000000000000000000000000000000 .
    access_inst   : 2
    vbreq_state   : 0
    state         : x0
    resp          : 0xc2bc3f50
    On Scan_q?    : N
    Total accesses: 2652
    Imm.  accesses: 2516
    Granted_locks : 1 
    Cvting_locks  : 1 
    value_block:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    GRANTED_Q :
    lp 0xd0f7e510 gl KJUSEREX rp 0xc2bc3f50 [0xf0008][0x24a0],[TX][ext 0x4,0x0]
      master 2 gl owner 0xd5df5688 possible pid 19261 xid 53000-0002-00000286 bast 0 rseq 125 mseq 0 history 0x4977d495
      open opt KJUSERDEADLOCK  
    CONVERT_Q: 
    lp 0xd0f7e6e0 gl KJUSERNL rl KJUSERPR rp 0xc2bc3f50 [0xf0008][0x24a0],[TX][ext 0x4,0x0]
      master 2 owner 1  bast 1 rseq 207 mseq 0x1 history 0x77d497ad
      convert opt KJUSERGETVALUE  
    ----------enqueue 0xd0f7e510------------------------
    lock version     : 89
    Owner inst       : 2
    grant_level      : KJUSEREX
    req_level        : KJUSEREX
    bast_level       : KJUSERNL
    notify_func      : (nil)
    resp             : 0xc2bc3f50
    procp            : 0xdb10cc20
    pid              : 17454
    proc version     : 0
    oprocp           : (nil)
    opid             : 17454
    group lock owner : 0xd5df5688
    possible pid     : 19261
    xid              : 53000-0002-00000286
    dd_time          : 0.0 secs
    dd_count         : 0
    timeout          : 0.0 secs
    On_timer_q?      : N
    On_dd_q?         : N
    lock_state       : GRANTED
    ast_flag         : 0x0
    Open Options     : KJUSERDEADLOCK 
    Convert options  : KJUSERNOQUEUE KJUSERNODEADLOCKWAIT 
    History          : 0x4977d495
    Msg_Seq          : 0x0
    res_seq          : 125
    valblk           : 0x00000000000000000000000000000000 .
    user session for deadlock lock 0xd0f7e510
      sid: 290 ser: 713 audsid: 82787243 user: 64/SCOTT    flags: (0x41) USR/- flags_idl: (0x1) BSY/-/-/-/-/-
        flags2: (0x40009) -/-/INC
      pid: 83 O/S info: user: grid, term: UNKNOWN, ospid: 19261
        image: oracle@db1
      client details:
        O/S info: user: wasadmin, term: unknown, ospid: 1234
        machine: cdldvjassvap291 program: JDBC Thin Client
        application name: JDBC Thin Client, hash value=2546894660
      current SQL:
      INSERT INTO tab1 SELECT x from tab2;
    
    DUMP LOCAL BLOCKER: initiate state dump for DEADLOCK
      possible owner[83.19261] on resource TX-000F0008-000024A0
    
    *** 2012-09-18 17:14:20.115
    Submitting asynchronized dump request [28]. summary=[ges process stack dump (kjdglblkrdm1)].
    Global blockers dump start:---------------------------------
    DUMP LOCAL BLOCKER/HOLDER: block level 3 res [0x150019][0x12b0a],[TX][ext 0x2,0x0]
    ----------resource 0xdcf6de80----------------------
    resname       : [0x150019][0x12b0a],[TX][ext 0x2,0x0]
    hash mask     : x3
    Local inst    : 2
    dir_inst      : 1
    master_inst   : 1
    hv idx        : 119
    hv last r.inc : 82
    current inc   : 84
    hv status     : 0
    hv master     : 0
    open options  : dd 
    Held mode     : KJUSERNL
    Cvt mode      : KJUSERPR
    Next Cvt mode : KJUSERNL
    msg_seq       : 0x1
    res_seq       : 32
    grant_bits    : KJUSERNL 
    grant mode    : KJUSERNL  KJUSERCR  KJUSERCW  KJUSERPR  KJUSERPW  KJUSEREX
    count         : 1         0         0         0         0         0
    val_state     : KJUSERVS_NOVALUE
    valblk        : 0xd0f5415aff7f00000000000000000000 .AZ
    access_inst   : 1
    vbreq_state   : 0
    state         : x8
    resp          : 0xdcf6de80
    On Scan_q?    : N
    Total accesses: 3472
    Imm.  accesses: 1369
    Granted_locks : 0 
    Cvting_locks  : 1 
    value_block:  d0 f5 41 5a ff 7f 00 00 00 00 00 00 00 00 00 00
    GRANTED_Q :
    CONVERT_Q: 
    lp 0xdb976808 gl KJUSERNL rl KJUSERPR rp 0xdcf6de80 [0x150019][0x12b0a],[TX][ext 0x2,0x0]
      master 1 gl owner 0xdc688bc0 possible pid 19261 xid 53000-0002-00000286 bast 0 rseq 32 mseq 0 history 0x495149da
      convert opt KJUSERGETVALUE  
    DUMP LOCAL BLOCKER/HOLDER: block level 3 res [0xf0008][0x24a0],[TX][ext 0x4,0x0]
    ----------resource 0xc2bc3f50----------------------
    resname       : [0xf0008][0x24a0],[TX][ext 0x4,0x0]
    hash mask     : x3
    Local inst    : 2
    dir_inst      : 2
    master_inst   : 2
    hv idx        : 124
    hv last r.inc : 84
    current inc   : 84
    hv status     : 0
    hv master     : 1
    open options  : dd 
    grant_bits    : KJUSERNL KJUSEREX 
    grant mode    : KJUSERNL  KJUSERCR  KJUSERCW  KJUSERPR  KJUSERPW  KJUSEREX
    count         : 1         0         0         0         0         1
    val_state     : KJUSERVS_NOVALUE
    valblk        : 0xd0f5415aff7f00000000000000000000 .AZ
    access_inst   : 2
    vbreq_state   : 0
    state         : x0
    resp          : 0xc2bc3f50
    On Scan_q?    : N
    Total accesses: 2654
    Imm.  accesses: 2517
    Granted_locks : 1 
    Cvting_locks  : 1 
    value_block:  d0 f5 41 5a ff 7f 00 00 00 00 00 00 00 00 00 00
    GRANTED_Q :
    lp 0xd0f7e510 gl KJUSEREX rp 0xc2bc3f50 [0xf0008][0x24a0],[TX][ext 0x4,0x0]
      master 2 gl owner 0xd5df5688 possible pid 19261 xid 53000-0002-00000286 bast 0 rseq 125 mseq 0 history 0x4977d495
      open opt KJUSERDEADLOCK  
    CONVERT_Q: 
    lp 0xd0f7e6e0 gl KJUSERNL rl KJUSERPR rp 0xc2bc3f50 [0xf0008][0x24a0],[TX][ext 0x4,0x0]
      master 2 owner 1  bast 1 rseq 207 mseq 0x1 history 0x77d497ad
      convert opt KJUSERGETVALUE  
    ----------enqueue 0xd0f7e510------------------------
    lock version     : 89
    Owner inst       : 2
    grant_level      : KJUSEREX
    req_level        : KJUSEREX
    bast_level       : KJUSERNL
    notify_func      : (nil)
    resp             : 0xc2bc3f50
    procp            : 0xdb10cc20
    pid              : 17454
    proc version     : 0
    oprocp           : (nil)
    opid             : 17454
    group lock owner : 0xd5df5688
    possible pid     : 19261
    xid              : 53000-0002-00000286
    dd_time          : 0.0 secs
    dd_count         : 0
    timeout          : 0.0 secs
    On_timer_q?      : N
    On_dd_q?         : N
    lock_state       : GRANTED
    ast_flag         : 0x0
    Open Options     : KJUSERDEADLOCK 
    Convert options  : KJUSERNOQUEUE KJUSERNODEADLOCKWAIT 
    History          : 0x4977d495
    Msg_Seq          : 0x0
    res_seq          : 125
    valblk           : 0x00000000000000003100050200000000 .1
    user session for deadlock lock 0xd0f7e510
      sid: 290 ser: 713 audsid: 82787243 user: 64/SCOTT
        flags: (0x41) USR/- flags_idl: (0x1) BSY/-/-/-/-/-
        flags2: (0x40009) -/-/INC
      pid: 83 O/S info: user: grid, term: UNKNOWN, ospid: 19261
        image: oracle@db1
      client details:
        O/S info: user: wasadmin, term: unknown, ospid: 1234
        machine: cdldvjassvap291 program: JDBC Thin Client
        application name: JDBC Thin Client, hash value=2546894660
      current SQL:
      INSERT INTO tab1 SELECT x from tab2; (made up )
    DUMP LOCAL BLOCKER: initiate state dump for DEADLOCK
      possible owner[83.19261] on resource TX-000F0008-000024A0
    
    *** 2012-09-18 17:14:20.116
    Submitting asynchronized dump request [28]. summary=[ges process stack dump (kjdglblkrdm1)].
    Global blockers dump end:-----------------------------------
    Global Wait-For-Graph(WFG) at ddTS[0.1] :
    BLOCKED 0xdb976808 3 wq 2 cvtops x1 TX 0x150019.0x12b0a(ext 0x2,0x0)[53000-0002-00000286] inst 2 
    BLOCKER 0xcc55d558 3 wq 1 cvtops x28 TX 0x150019.0x12b0a(ext 0x2,0x0)[4C000-0001-0000014C] inst 1 
    BLOCKED 0xdb7dcfc8 3 wq 2 cvtops x1 TX 0xf0008.0x24a0(ext 0x4,0x0)[4C000-0001-0000014C] inst 1 
    BLOCKER 0xd0f7e510 3 wq 1 cvtops x28 TX 0xf0008.0x24a0(ext 0x4,0x0)[53000-0002-00000286] inst 2 
    
    *** 2012-09-18 17:14:20.687
    * Cancel deadlock victim lockp 0xdb976808 
    
    *** 2012-09-18 17:14:25.028
    ENQUEUE DUMP REQUEST: from 1 spnum 12 on [0x1a0006][0x2b6e],[TX][ext 0x4,0x0] for reason 3 mtype 0
    DUMP LOCAL BLOCKER/HOLDER: block level 3 res [0x1a0006][0x2b6e],[TX][ext 0x4,0x0]
    ----------resource 0xde49c768----------------------
    resname       : [0x1a0006][0x2b6e],[TX][ext 0x4,0x0]
    hash mask     : x3
    Local inst    : 2
    dir_inst      : 2
    master_inst   : 2
    hv idx        : 72
    hv last r.inc : 84
    current inc   : 84
    hv status     : 0
    hv master     : 1
    open options  : dd 
    grant_bits    : KJUSERNL KJUSEREX 
    grant mode    : KJUSERNL  KJUSERCR  KJUSERCW  KJUSERPR  KJUSERPW  KJUSEREX
    count         : 1         0         0         0         0         1
    val_state     : KJUSERVS_NOVALUE
    valblk        : 0x00000000000000000000000000000000 .
    access_inst   : 2
    vbreq_state   : 0
    state         : x0
    resp          : 0xde49c768
    On Scan_q?    : N
    Total accesses: 1823
    Imm.  accesses: 1789
    Granted_locks : 1 
    Cvting_locks  : 1 
    value_block:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    GRANTED_Q :
    lp 0xdb40f4a0 gl KJUSEREX rp 0xde49c768 [0x1a0006][0x2b6e],[TX][ext 0x4,0x0]
      master 2 gl owner 0xd7f08fa8 possible pid 19228 xid 46000-0002-000004A4 bast 0 rseq 32 mseq 0 history 0x4977d495
      open opt KJUSERDEADLOCK  
    CONVERT_Q: 
    lp 0xdb414320 gl KJUSERNL rl KJUSERPR rp 0xde49c768 [0x1a0006][0x2b6e],[TX][ext 0x4,0x0]
      master 2 owner 1  bast 1 rseq 190 mseq 0x1 history 0x77d497ad
      convert opt KJUSERGETVALUE  
    ----------enqueue 0xdb40f4a0------------------------
    lock version     : 129
    Owner inst       : 2
    grant_level      : KJUSEREX
    req_level        : KJUSEREX
    bast_level       : KJUSERNL
    notify_func      : (nil)
    resp             : 0xde49c768
    procp            : 0xdb10cc20
    pid              : 17454
    proc version     : 0
    oprocp           : (nil)
    opid             : 17454
    group lock owner : 0xd7f08fa8
    possible pid     : 19228
    xid              : 46000-0002-000004A4
    dd_time          : 0.0 secs
    dd_count         : 0
    timeout          : 0.0 secs
    On_timer_q?      : N
    On_dd_q?         : N
    lock_state       : GRANTED
    ast_flag         : 0x0
    Open Options     : KJUSERDEADLOCK 
    Convert options  : KJUSERNOQUEUE KJUSERNODEADLOCKWAIT 
    History          : 0x4977d495
    Msg_Seq          : 0x0
    res_seq          : 32
    valblk           : 0x00000000000000000000000000000000 .
    user session for deadlock lock 0xdb40f4a0
      sid: 94 ser: 2065 audsid: 82787238 user: 64/SCOTT    flags: (0x41) USR/- flags_idl: (0x1) BSY/-/-/-/-/-
        flags2: (0x40009) -/-/INC
      pid: 70 O/S info: user: grid, term: UNKNOWN, ospid: 19228
        image: oracle@db1
      client details:
        O/S info: user: wasadmin, term: unknown, ospid: 1234
        machine: cdldvjassvap291 program: JDBC Thin Client
        application name: JDBC Thin Client, hash value=2546894660
      current SQL:
      INSERT INTO tab1 SELECT x from tab2; (made up)
    DUMP LOCAL BLOCKER: initiate state dump for DEADLOCK
      possible owner[70.19228] on resource TX-001A0006-00002B6E
    
    *** 2012-09-18 17:14:25.029
    Submitting asynchronized dump request [28]. summary=[ges process stack dump (kjdglblkrdm1)].
    Global blockers dump start:---------------------------------
    DUMP LOCAL BLOCKER/HOLDER: block level 3 res [0x160016][0x9249],[TX][ext 0x2,0x0]
    ----------resource 0xdb2d6758----------------------
    resname       : [0x160016][0x9249],[TX][ext 0x2,0x0]
    hash mask     : x3
    Local inst    : 2
    dir_inst      : 1
    master_inst   : 1
    hv idx        : 51
    hv last r.inc : 82
    current inc   : 84
    hv status     : 0
    hv master     : 0
    open options  : dd 
    Held mode     : KJUSERNL
    Cvt mode      : KJUSERPR
    Next Cvt mode : KJUSERNL
    msg_seq       : 0x1
    res_seq       : 49
    grant_bits    : KJUSERNL 
    grant mode    : KJUSERNL  KJUSERCR  KJUSERCW  KJUSERPR  KJUSERPW  KJUSEREX
    count         : 1         0         0         0         0         0
    val_state     : KJUSERVS_NOVALUE
    valblk        : 0xd0f5415aff7f00000000000000000000 .AZ
    access_inst   : 1
    vbreq_state   : 0
    state         : x8
    resp          : 0xdb2d6758
    On Scan_q?    : N
    Total accesses: 1620
    Imm.  accesses: 1442
    Granted_locks : 0 
    Cvting_locks  : 1 
    value_block:  d0 f5 41 5a ff 7f 00 00 00 00 00 00 00 00 00 00
    GRANTED_Q :
    CONVERT_Q: 
    lp 0xdb682d78 gl KJUSERNL rl KJUSERPR rp 0xdb2d6758 [0x160016][0x9249],[TX][ext 0x2,0x0]
      master 1 gl owner 0xdc568020 possible pid 19228 xid 46000-0002-000004A4 bast 0 rseq 49 mseq 0 history 0x495149da
      convert opt KJUSERGETVALUE  
    DUMP LOCAL BLOCKER/HOLDER: block level 3 res [0x1a0006][0x2b6e],[TX][ext 0x4,0x0]
    ----------resource 0xde49c768----------------------
    resname       : [0x1a0006][0x2b6e],[TX][ext 0x4,0x0]
    hash mask     : x3
    Local inst    : 2
    dir_inst      : 2
    master_inst   : 2
    hv idx        : 72
    hv last r.inc : 84
    current inc   : 84
    hv status     : 0
    hv master     : 1
    open options  : dd 
    grant_bits    : KJUSERNL KJUSEREX 
    grant mode    : KJUSERNL  KJUSERCR  KJUSERCW  KJUSERPR  KJUSERPW  KJUSEREX
    count         : 1         0         0         0         0         1
    val_state     : KJUSERVS_NOVALUE
    valblk        : 0xd0f5415aff7f00000000000000000000 .AZ
    access_inst   : 2
    vbreq_state   : 0
    state         : x0
    resp          : 0xde49c768
    On Scan_q?    : N
    Total accesses: 1825
    Imm.  accesses: 1790
    Granted_locks : 1 
    Cvting_locks  : 1 
    value_block:  d0 f5 41 5a ff 7f 00 00 00 00 00 00 00 00 00 00
    GRANTED_Q :
    lp 0xdb40f4a0 gl KJUSEREX rp 0xde49c768 [0x1a0006][0x2b6e],[TX][ext 0x4,0x0]
      master 2 gl owner 0xd7f08fa8 possible pid 19228 xid 46000-0002-000004A4 bast 0 rseq 32 mseq 0 history 0x4977d495
      open opt KJUSERDEADLOCK  
    CONVERT_Q: 
    lp 0xdb414320 gl KJUSERNL rl KJUSERPR rp 0xde49c768 [0x1a0006][0x2b6e],[TX][ext 0x4,0x0]
      master 2 owner 1  bast 1 rseq 190 mseq 0x1 history 0x77d497ad
      convert opt KJUSERGETVALUE  
    ----------enqueue 0xdb40f4a0------------------------
    lock version     : 129
    Owner inst       : 2
    grant_level      : KJUSEREX
    req_level        : KJUSEREX
    bast_level       : KJUSERNL
    notify_func      : (nil)
    resp             : 0xde49c768
    procp            : 0xdb10cc20
    pid              : 17454
    proc version     : 0
    oprocp           : (nil)
    opid             : 17454
    group lock owner : 0xd7f08fa8
    possible pid     : 19228
    xid              : 46000-0002-000004A4
    dd_time          : 0.0 secs
    dd_count         : 0
    timeout          : 0.0 secs
    On_timer_q?      : N
    On_dd_q?         : N
    lock_state       : GRANTED
    ast_flag         : 0x0
    Open Options     : KJUSERDEADLOCK 
    Convert options  : KJUSERNOQUEUE KJUSERNODEADLOCKWAIT 
    History          : 0x4977d495
    Msg_Seq          : 0x0
    res_seq          : 32
    valblk           : 0x00000000000000003100050200000000 .1
    user session for deadlock lock 0xdb40f4a0
      sid: 94 ser: 2065 audsid: 82787238 user: 64/SCOTT    flags: (0x41) USR/- flags_idl: (0x1) BSY/-/-/-/-/-
        flags2: (0x40009) -/-/INC
      pid: 70 O/S info: user: grid, term: UNKNOWN, ospid: 19228
        image: oracle@db1
      client details:
        O/S info: user: wasadmin, term: unknown, ospid: 1234
        machine: cdldvjassvap291 program: JDBC Thin Client
        application name: JDBC Thin Client, hash value=2546894660
      current SQL:
      INSERT INTO tab1 SELECT x from tab2;(made up)
    DUMP LOCAL BLOCKER: initiate state dump for DEADLOCK
      possible owner[70.19228] on resource TX-001A0006-00002B6E
    
    *** 2012-09-18 17:14:25.030
    Submitting asynchronized dump request [28]. summary=[ges process stack dump (kjdglblkrdm1)].
    Global blockers dump end:-----------------------------------
    Global Wait-For-Graph(WFG) at ddTS[0.2] :
    BLOCKED 0xdb682d78 3 wq 2 cvtops x1 TX 0x160016.0x9249(ext 0x2,0x0)[46000-0002-000004A4] inst 2 
    BLOCKER 0xcefeaf70 3 wq 1 cvtops x28 TX 0x160016.0x9249(ext 0x2,0x0)[54000-0001-000000A9] inst 1 
    BLOCKED 0xdb9b6380 3 wq 2 cvtops x1 TX 0x1a0006.0x2b6e(ext 0x4,0x0)[54000-0001-000000A9] inst 1 
    BLOCKER 0xdb40f4a0 3 wq 1 cvtops x28 TX 0x1a0006.0x2b6e(ext 0x4,0x0)[46000-0002-000004A4] inst 2 
    
    *** 2012-09-18 17:14:25.667
    * Cancel deadlock victim lockp 0xdb682d78 
    
    *** 2012-09-18 18:09:23.508
    Begin DRM(406) (swin 0) - AFFINITY transfer pkey 88431.0 to 2 oscan 0.0
    kjiobjscn 1 
    ftd (30) received from node 1 (84 0.30/0.0) 
    all ftds received 
    
    * kjxftdn: break from kjxftdn, post lmon later 
    ftd (33) received from node 1 (84 0.34/0.0) 
    all ftds received 
    ftd (35) received from node 1 (84 0.36/0.0) 
    all ftds received 
    ftd (37) received from node 1 (84 0.38/0.0) 
    all ftds received 
    ftd (30) received from node 1 (84 0.31/0.0) 
    all ftds received 
    ftd (33) received from node 1 (84 0.34/0.0) 
    all ftds received 
    ftd (35) received from node 1 (84 0.36/0.0) 
    all ftds received 
    ftd (37) received from node 1 (84 0.38/0.0) 
    all ftds received 
    ftd (30) received from node 1 (84 0.30/0.0) 
    all ftds received 
    Published by: orausern on October 10, 2012 05:57

    Published by: orausern on October 10, 2012 05:58

    Let them show you some code. Do not believe anything they said your question don't tell not only

  • Several foreign key joins between two tables

    Hello

    I have a question about the creation of a repository.

    I have a date and a fact dimension. The fact table has about 10 columns in foreign key to the date Dimension.

    In this case I should create 10 aliases to create joins in the physical layer and MDB or y at - it another way to handle this situation.

    I ask this question because 10 aliases can get very confusing for me at the later stage of time when creating reports.

    With the help of OBIEE 10.1.3

    If you want to see in the industry as
    End date, start date, date etc. nearby
    you need to create 10 aliases for this purpose in the physical layer, make them drag in MDB and model, and then drag to the area of topic

    Score pls correct/good

Maybe you are looking for

  • After the installation of my Satellite L500 OS version is installed

    I installed pre my laptop Satellite L500 with Windows Home Premium 64 - bit for the first time and after installation Windows 32-bit! Why became 32-bit and how to put it back again to 64-bit?

  • IPhoto crashes several times after 1 second opening

    Hello, please help me understand what is happening with my IPhoto program - I open and after 1-2 seconds, it crashes and closes... tried several times, also with restart my Mac - same thing: Please HELP! I don't want to LOOSE MY PHOTO))) ____________

  • Lenovo IdeaPad y510p and battlefield 4

    Hey all, I recently got a Lenovo y510p for the holidays and I was wondering if someone was running into the same thing, I was, and it was certainly not a brick wall haha. When I play BF4 on all the settings lowest (although it can operate on high set

  • The search in a table 2d-coordinates for the point of click

    I'm doing a VI that creates a layer of 2d points on an image imported (as pictured). These points are generated by a Subvi, which simply draws points over and over again (based on the 3 selections of initial angle). All the coordinates of the points

  • I can't open my Inbox to read e-mail messages. I am told that I must leave Messenger.

    original title: cannot open the Inbox to read email suddenly He says that I have to click on "Messenger". I clicked on but same screen returns. never used 'Messenger' don't know what it is or what it is supposed to do. I only need to read and send si