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: ** export excluding some tables

RE: ** export excluding some tables

From: Christian Antognini <Christian.Antognini_at_trivadis.com>
Date: Thu, 15 Jun 2006 18:51:27 +0200
Message-ID: <F2C9CCA71510B442AF71446CAE8AEBAF01A944@MSXVS04.trivadis.com>


Joshi

>I know we can specify tables but is there a way to exclude certain
>tables. Thanks for your help.

In 10g, if you use Data Pump, this is not a problem. See parameter EXCLUDE.

Otherwise you could create a policy that hides all rows for the tables you don't want to export. For example:

CONNECT SYSTEM CREATE OR REPLACE FUNCTION restrict(schema IN VARCHAR2, tab IN VARCHAR2) RETURN VARCHAR2 AS BEGIN
  RETURN '1=0';
END restrict;
/

EXECUTE dbms_rls.add_policy(<owner>,<table>,'policy','system','restrict');

Notice that this only works if the user doing the exports has no EXEMPT ACCESS POLICY privilege.

HTH
Chris

--
http://www.freelists.org/webpage/oracle-l
Received on Thu Jun 15 2006 - 11:51:27 CDT

Original text of this message

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