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

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

Restrictng tables during export/import

From: Harvinder Singh <Harvinder.Singh_at_MetraTech.com>
Date: Thu, 07 Mar 2002 08:18:23 -0800
Message-ID: <F001.00422023.20020307081823@fatcity.com>


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). Received on Thu Mar 07 2002 - 10:18:23 CST

Original text of this message

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