From oracle-l-bounce@freelists.org  Tue Aug 24 03:59:24 2004
Return-Path: <oracle-l-bounce@freelists.org>
Received: from air189.startdedicated.com (root@localhost)
 by orafaq.com (8.11.6/8.11.6) with ESMTP id i7O8wht05573
 for <oracle-l@orafaq.com>; Tue, 24 Aug 2004 03:58:53 -0500
X-ClientAddr: 206.53.239.180
Received: from turing.freelists.org (freelists-180.iquest.net [206.53.239.180])
 by air189.startdedicated.com (8.11.6/8.11.6) with ESMTP id i7O8wNI05516
 for <oracle-l@orafaq.com>; Tue, 24 Aug 2004 03:58:43 -0500
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP
 id E274272CAE7; Tue, 24 Aug 2004 04:02:13 -0500 (EST)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing [127.0.0.1]) (amavisd-new, port 10024) with ESMTP
 id 15752-99; Tue, 24 Aug 2004 04:02:13 -0500 (EST)
Received: from turing (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP
 id 2ED3972CA66; Tue, 24 Aug 2004 04:02:13 -0500 (EST)
Received: with ECARTIS (v1.0.0; list oracle-l); Tue, 24 Aug 2004 04:00:43 -0500 (EST)
X-Original-To: oracle-l@freelists.org
Delivered-To: oracle-l@freelists.org
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 1758D72CAA4
 for <oracle-l@freelists.org>; Tue, 24 Aug 2004 04:00:43 -0500 (EST)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing [127.0.0.1]) (amavisd-new, port 10024) with ESMTP
 id 16057-58 for <oracle-l@freelists.org>;
 Tue, 24 Aug 2004 04:00:42 -0500 (EST)
Received: from mhp010.nerc-murchison.ac.uk (mhp010.nerc-murchison.ac.uk [192.171.157.135])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 4970C72CA66
 for <oracle-l@freelists.org>; Tue, 24 Aug 2004 04:00:42 -0500 (EST)
Received: from mhntsmail.ad.bgs.ac.uk (mhntsmail.ad.bgs.ac.uk) by 
    mhp010.nerc-murchison.ac.uk (Content Technologies SMTPRS 4.3.10) with 
    ESMTP id <T6b9ca331b4c0ab9d873bc@mhp010.nerc-murchison.ac.uk>; Tue, 24 
    Aug 2004 09:57:21 +0100
Received: from mhp433.ad.bgs.ac.uk ([192.171.142.191]) by 
    mhntsmail.ad.bgs.ac.uk with Microsoft SMTPSVC (5.0.2195.6713); Tue, 24 
    Aug 2004 09:57:21 +0100
Date: Tue, 24 Aug 2004 09:57:21 +0100
From: Peter Robson <pgro@bgs.ac.uk>
X-Mailer: The Bat! (v1.62r) Personal
Organization: British Geological Survey
X-Priority: 3 (Normal)
Message-ID: <1375578916.20040824095721@bgs.ac.uk>
To: "Jackie Brock" <jbrock@energyvelocity.com>
Cc: oracle-l@freelists.org
Subject: Re[2]: What Sort of Privilege?
In-Reply-To: 
    <1ECF062C90A28640980C1BB8501D18E0107E66@mail01.corp.globalenergy.com>
References: 
    <1ECF062C90A28640980C1BB8501D18E0107E66@mail01.corp.globalenergy.com>
MIME-Version: 1.0
Content-type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 8bit
X-OriginalArrivalTime: 24 Aug 2004 08:57:21.0431 (UTC) 
    FILETIME=[5DD2F270:01C489B8]
X-Virus-Scanned: by amavisd-new at freelists.org
X-archive-position: 8197
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-To: oracle-l-bounce@freelists.org
X-original-sender: pgro@bgs.ac.uk
Precedence: normal
Reply-To: oracle-l@freelists.org
X-list: oracle-l
X-Virus-Scanned: by amavisd-new at freelists.org

Whoa there everybody!

While the answer is quite correct, of course (I read the FM years
ago), what has not been raised is the danger of allowing reference to
multiply unhindered across numerous schemas.

Be very careful if you choose to do this, otherwise, without a little
care, you may manage to lock your entire database solid with
conflicting FKs!

We did, learned our lesson, and now reference is ONLY permitted within
the one corporate schema.


peter
edinburgh
.............


JB> references


JB> All,

JB> what kind of privilege new for creating a FK constraint which reference
JB> table belongs to another schema.

JB> ALTER TABLE PAM.table1
JB>  ADD CONSTRAINT FKCONS1
JB>  FOREIGN KEY (ID)
JB>  REFERENCES schema1.table2 (ID2);

JB> I have grant select,insert,update,delete for table2 BUT still I get
JB> insufficient privilege.
JB> any idea?


JB> Hamid Alavi


-- 
    mailto:pgro@bgs.ac.uk



*********************************************************************
This  e-mail  message,  and  any  files  transmitted  with  it, are
confidential  and intended  solely for the  use of the  addressee. If
this message was not addressed to  you, you have received it in error
and any  copying,  distribution  or  other use  of any part  of it is
strictly prohibited. Any views or opinions presented are solely those
of the sender and do not necessarily represent  those of the British
Geological  Survey. The  security of e-mail  communication  cannot be
guaranteed and the BGS accepts no liability  for claims arising as a
result of the use of this medium to  transmit messages from or to the
BGS. .                            http://www.bgs.ac.uk
*********************************************************************

----------------------------------------------------------------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
----------------------------------------------------------------
To unsubscribe send email to:  oracle-l-request@freelists.org
put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------

