RE: Restrictng tables during export/import

2002-03-07 Thread Jack C. Applewhite

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
[EMAIL PROTECTED]
(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: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).



Restrictng tables during export/import

2002-03-07 Thread Harvinder Singh

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: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).