Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Restrictng tables during export/import

RE: Restrictng tables during export/import

From: Jack C. Applewhite <japplewhite_at_inetprofit.com>
Date: Thu, 07 Mar 2002 14:31:54 -0800
Message-ID: <F001.00422C7F.20020307143154@fatcity.com>


Harvinder,

IMHO, you are using the wrong approach. FGAC is meant for row-level security. In fact, DBMS_RLS (RLS = Row-Level Security) is the package that supports FGAC.

It's a lot easier to use the TABLES parameter in your export and import parameter files to control which tables are exported/imported.

Jack



Jack C. Applewhite
Database Administrator/Developer
OCP Oracle8 DBA
iNetProfit, Inc.
Austin, Texas
www.iNetProfit.com
japplewhite_at_inetprofit.com
(512)327-9068

-----Original Message-----
Singh
Sent: Thursday, March 07, 2002 10:18 AM
To: Multiple recipients of list ORACLE-L

We are testing Fine-Grained Access Control to export the complete schema excluding some tables.
This works well for export but during import it try to import all tables. Is there any way we can restrict import of some tables using Fine-Grained Access Control
.We are using function as specified in metalink as follows: CREATE or REPLACE FUNCTION exclude_table  (obj_schema VARCHAR2, obj_name VARCHAR2) RETURN VARCHAR2 IS d_predicate VARCHAR2(2000);
BEGIN
if sys_context ('USERENV', 'SESSION_USER') = 'EXP_DB' THEN d_predicate := '1=2'; else d_predicate := ''; end if; RETURN d_predicate;
END exclude_table;

Thanks
--Harvinder

--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Harvinder Singh
  INET: Harvinder.Singh_at_MetraTech.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L

(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Jack C. Applewhite INET: japplewhite_at_inetprofit.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).
Received on Thu Mar 07 2002 - 16:31:54 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US