Exclude schema grants - impdp

Hi Experts,
I am getting the following error during import using impdp
Failing sql is:
GRANT SELECT ON "CM_DBA"."PARTY" TO "CM_USR"
ORA-39083: Object type OBJECT_GRANT failed to create with error:
ORA-01917: user or role 'CM_USR' does not exist
Failing sql is:
GRANT SELECT ON "CM_DBA"."PARTY_RLN" TO "CM_USR"
How to exclude CM_USR during import in windows?
Thanks for the help.
Regards,
Richard

This link will be helpful
http://psoug.org/reference/datapump.html
Here just find out word EXCLUDE a good explanation is given

Similar Messages

  • Impdp exclude=schema

    hi all,
    i have written this
    EXCLUDE=SCHEMA:"='ORDERS'"
    but it is not working...
    i even tried like this
    EXCLUDE=SCHEMA:\"='ORDERS'\"
    but i am getting error like "ORDERS" is INVALID identifier.
    so can any body please tell me how to user schema name in exclude....

    user5368861 wrote:
    hi all,
    i have written this
    EXCLUDE=SCHEMA:"='ORDERS'"
    but it is not working...
    i even tried like this
    EXCLUDE=SCHEMA:\"='ORDERS'\"
    but i am getting error like "ORDERS" is INVALID identifier.
    so can any body please tell me how to user schema name in exclude....if you place everything in a "control file",
    then you won't have to battle with command line interpreter

  • How to exclude schema name from exported files (PL SQL Developer)

    Dear all,
    Just one question: I am using PL SQL Developer. My goal is to export some data (as .sql and .dmp files) from one database and to import them into the another database (both databases have identical structure - test database and production, just different database names and names of schema. In order to make it possible, I need to exclude schema name from generated export file. I believe that it is possible to do it automatically by setting up parameters of PL SQL Developer. How?
    Thank you in advance,
    Kindest regards,
    Dragana

    In the meantime, I have found the answer on my previous question:
    Actually, the initial idea (how to exclude schema name from exported files) was wrong. No need for any intervention.
    Trick is: Schema name can be changed during the import of exported files (PL SQL Developer during import gives possibility: From User (old schema) To User (new schema) .
    Hope that this will be useful info for others.
    Dragana

  • Exp excluded schema

    Hi All,
    Can I exclude schemas (exclude=SCHEMA:"='MDDATA') while taking full export of the db, DB version is 9.2.0.7

    sr.satya wrote:
    "exp help=yes" shows you all available options.exp help=yes dint show me exclude option, so thought of raising this question in the forum.If it is not there, that means it is not available, isn't it ?
    In worse case, the 9i doc is still online :
    http://download.oracle.com/docs/cd/B10501_01/server.920/a96652/ch01.htm#SUTIL001
    Nicolas.

  • Schema Expdp-IMPdp , i have the below errors in my imp log

    Hello All,
    I am doing some exp/imp of schemas in a OBI environment and size around 300GB of each shema,  after quiet a long time.., and not sure of the imp log errors whether to ignore or rerun my import with any changes or drop schemas and reimport ......
    My IMP statement is
    impdp system/********@OBIDEV schemas=ODS,DWH,STG,GEOGRAPHY directory=dumpdir dumpfile=BI2011_SCHEMAS.dmp logfile=impBI2011_SCHEMAS.log
    Errors from the imp log :
    Processing object type SCHEMA_EXPORT/USER
    ORA-31684: Object type USER:"GEOGRAPHY" already exists
    ORA-31684: Object type USER:"DWH" already exists
    ORA-31684: Object type USER:"STG" already exists
    Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
    Processing object type SCHEMA_EXPORT/ROLE_GRANT
    ORA-39083: Object type ROLE_GRANT failed to create with error:
    ORA-01919: role 'ROLE_SRC' does not exist
    Failing sql is:
    GRANT "ROLE_SRC" TO "STG" WITH ADMIN OPTION
    ORA-39083: Object type ROLE_GRANT failed to create with error:
    ORA-01919: role 'ROLE_STG' does not exist
    Failing sql is:
    GRANT "ROLE_STG" TO "ODS" WITH ADMIN OPTION
    Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
    a
    --- and after some lines again the below errors, many failing sql's to created the tables ..
    ORA-39083: Object type TABLE:"STG"."STG_ART_STOCK_OIG_XT" failed to create with error:
    ORA-06564: object BI_SRC_FILES does not exist
    Failing sql is:
    CREATE TABLE "STG"."STG_ART_STOCK_OIG_XT" ("YEARWEEK" NUMBER, "ARTICLE_NUMBER" NUMBER, "BU_CODE" NUMBER, "ART_QTY_STOCK" NUMBER, "PM_CODE" VARCHAR2(10 BYTE)) ORGANIZATION EXTERNAL ( TYPE ORACLE_LOADER DEFAULT DIRECTORY "BI_SRC_FILES" ACCESS PARAMETERS ( RECORDS DELIMITED BY NEWLINE CHARACTERSET WE8MSWIN1252 STRING SIZES ARE IN BYTES BADFILE 'ART_STOCK_OIG.bad'
    ORA-39083: Object type TABLE:"STG"."STG_ART_STOCK_INGKA_XT" failed to create with error:
    ORA-06564: object BI_SRC_FILES does not exist
    ORA-39083: Object type TABLE:"STG"."STG_ART_PMCODE_INGKA_XT" failed to create with error:
    ORA-06564: object BI_SRC_FILES does not exist
    Failing sql is:
    CREATE TABLE "STG"."STG_IFPM_XT" ("YEAR" VARCHAR2(255 BYTE), "TERTIAL" VARCHAR2(255 BYTE), "YW" VARCHAR2(255 BYTE), "STORE_NAME" VARCHAR2(255 BYTE), "BUDGET" VARCHAR2(255 BYTE), "ACTUAL_SALES" VARCHAR2(255 BYTE), "CUSTOMERS" VARCHAR2(255 BYTE), "VISITORS" VARCHAR2(255 BYTE), "REST_SALES" VARCHAR2(255 BYTE), "EXIT_CAFE_SALES" VARCHAR2(255 BYTE), "SWE_FOOD_SALES" VARCHAR2
    ORA-39083: Object type TABLE:"STG"."HFB_PA_EXT" failed to create with error:
    ORA-06564: object TEMP does not exist
    Failing sql is:
    CREATE TABLE "STG"."HFB_PA_EXT" ("HFB_ID" NUMBER, "HFB_DESC" VARCHAR2(100 BYTE), "RA_ID" NUMBER, "RA_DESCR" VARCHAR2(100 BYTE), "PA_ID" NUMBER, "PA_DESCR" VARCHAR2(100 BYTE)) ORGANIZATION EXTERNAL ( TYPE ORACLE_LOADER DEFAULT DIRECTORY "TEMP" ACCESS PARAMETERS ( records delimited  by newline
        skip 1
        fields  terminated by ','
        missing field values are null
          ) LOCAT
    ORA-39151: Table "GEOGRAPHY"."CAHC" exists. All dependent metadata and data will be skipped due to table_exists_action of skip
    Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
    . . imported "ODS"."ZZ_ODS_ART_STOCK_T"                  26.81 GB 321434766 rows
    imported "ODS"."ODS_PM_CODE_T":"SYS_P15548"          259.4 MB 3418214 rows  (are the sys tables effected here)
    Then the rows started importing ....
    Share all the possible ways to avoid the above all errors in the imp log as it has to be shared with the client ,    Thanks for the swif response and help in advance.
    Regards,
    RanG

    HI,
    RanG wrote:
    Hello All,
    I am doing some exp/imp of schemas in a OBI environment and size around 300GB of each shema,  after quiet a long time.., and not sure of the imp log errors whether to ignore or rerun my import with any changes or drop schemas and reimport ......
    My IMP statement is
    impdp system/********@OBIDEV schemas=ODS,DWH,STG,GEOGRAPHY directory=dumpdir dumpfile=BI2011_SCHEMAS.dmp logfile=impBI2011_SCHEMAS.log
    Errors from the imp log :
    Processing object type SCHEMA_EXPORT/USER
    ORA-31684: Object type USER:"GEOGRAPHY" already exists
    ORA-31684: Object type USER:"DWH" already exists
    ORA-31684: Object type USER:"STG" already exists
    Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
    Processing object type SCHEMA_EXPORT/ROLE_GRANT
    ORA-39083: Object type ROLE_GRANT failed to create with error:
    ORA-01919: role 'ROLE_SRC' does not exist
    Failing sql is:
    GRANT "ROLE_SRC" TO "STG" WITH ADMIN OPTION
    ORA-39083: Object type ROLE_GRANT failed to create with error:
    ORA-01919: role 'ROLE_STG' does not exist
    Failing sql is:
    GRANT "ROLE_STG" TO "ODS" WITH ADMIN OPTION
    Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
    a
    --- and after some lines again the below errors, many failing sql's to created the tables ..
    ORA-39083: Object type TABLE:"STG"."STG_ART_STOCK_OIG_XT" failed to create with error:
    ORA-06564: object BI_SRC_FILES does not exist
    Failing sql is:
    CREATE TABLE "STG"."STG_ART_STOCK_OIG_XT" ("YEARWEEK" NUMBER, "ARTICLE_NUMBER" NUMBER, "BU_CODE" NUMBER, "ART_QTY_STOCK" NUMBER, "PM_CODE" VARCHAR2(10 BYTE)) ORGANIZATION EXTERNAL ( TYPE ORACLE_LOADER DEFAULT DIRECTORY "BI_SRC_FILES" ACCESS PARAMETERS ( RECORDS DELIMITED BY NEWLINE CHARACTERSET WE8MSWIN1252 STRING SIZES ARE IN BYTES BADFILE 'ART_STOCK_OIG.bad'
    ORA-39083: Object type TABLE:"STG"."STG_ART_STOCK_INGKA_XT" failed to create with error:
    ORA-06564: object BI_SRC_FILES does not exist
    ORA-39083: Object type TABLE:"STG"."STG_ART_PMCODE_INGKA_XT" failed to create with error:
    ORA-06564: object BI_SRC_FILES does not exist
    Failing sql is:
    CREATE TABLE "STG"."STG_IFPM_XT" ("YEAR" VARCHAR2(255 BYTE), "TERTIAL" VARCHAR2(255 BYTE), "YW" VARCHAR2(255 BYTE), "STORE_NAME" VARCHAR2(255 BYTE), "BUDGET" VARCHAR2(255 BYTE), "ACTUAL_SALES" VARCHAR2(255 BYTE), "CUSTOMERS" VARCHAR2(255 BYTE), "VISITORS" VARCHAR2(255 BYTE), "REST_SALES" VARCHAR2(255 BYTE), "EXIT_CAFE_SALES" VARCHAR2(255 BYTE), "SWE_FOOD_SALES" VARCHAR2
    ORA-39083: Object type TABLE:"STG"."HFB_PA_EXT" failed to create with error:
    ORA-06564: object TEMP does not exist
    Failing sql is:
    CREATE TABLE "STG"."HFB_PA_EXT" ("HFB_ID" NUMBER, "HFB_DESC" VARCHAR2(100 BYTE), "RA_ID" NUMBER, "RA_DESCR" VARCHAR2(100 BYTE), "PA_ID" NUMBER, "PA_DESCR" VARCHAR2(100 BYTE)) ORGANIZATION EXTERNAL ( TYPE ORACLE_LOADER DEFAULT DIRECTORY "TEMP" ACCESS PARAMETERS ( records delimited  by newline
        skip 1
        fields  terminated by ','
        missing field values are null
          ) LOCAT
    ORA-39151: Table "GEOGRAPHY"."CAHC" exists. All dependent metadata and data will be skipped due to table_exists_action of skip
    Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
    . . imported "ODS"."ZZ_ODS_ART_STOCK_T"                  26.81 GB 321434766 rows
    imported "ODS"."ODS_PM_CODE_T":"SYS_P15548"          259.4 MB 3418214 rows  (are the sys tables effected here)
    Then the rows started importing ....
    Share all the possible ways to avoid the above all errors in the imp log as it has to be shared with the client ,    Thanks for the swif response and help in advance.
    Regards,
    RanG
    Because the table already exists. You can use the TABLE_EXISTS_ACTION option, so you can tell impdp what to do if the table it is trying to create already exists.
    TABLE_EXISTS_ACTION={SKIP | APPEND | TRUNCATE | REPLACE}
    impdp system/********@OBIDEV schemas=ODS,DWH,STG,GEOGRAPHY directory=dumpdir dumpfile=BI2011_SCHEMAS.dmp logfile=impBI2011_SCHEMAS.log table_exists_action=replace
    Thank you

  • Excluding table in impdp

    Hi Friends,
    I need to exclude two tables in impdp.. help me in this...
    impdp system directory=exportdump tables=SYNC.cin_document query=SYNC.CIN_DOCUMENT:'"where rownum<10"' dumpfile=satexpdpdump.dmp logfile=1.log CONTENT=DATA_ONLY EXCLUDE=TABLE:"SYNC.CIN_DETAIL,SYNC.CIN_DOCUMENT_GTIN"
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    ORA-39001: invalid argument value
    ORA-39071: Value for EXCLUDE is badly formed.
    ORA-00920: invalid relational operator

    Thanks friends ,,, I got the solution.
    Solution:
    instead of excluding i have mentioned only one table name in "tables=SYNC.cin_document" field. I have just removed the EXCLUDE option ..It is working fine..
    The following query i have used.
    impdp system directory=exportdump tables=SYNC.cin_document query=SYNC.CIN_DOCUMENT:'"where rownum<2570000"' dumpfile=satexpdpdump.dmp logfile=2570000d000gih.log CONTENT=DATA_ONLY
    For your reference.:
    The following scenario explains: 3 tables exported under scott. but we need to import only two tables. output follows
    step1:
    =============
    create directory data_pump_dir as '/u01/oracle/my_dump_dir';
    grant read,write on directory data_pump_dir1 to system;
    expdp system/sys DIRECTORY=data_pump_dir DUMPFILE=tables.dmp logfile=table.log TABLES=SCOTT.DEPT,SCOTT.EMP,SCOTT.BONUS
    output:
    [oracle@linux1 ~]$ expdp system/sys DIRECTORY=data_pump_dir DUMPFILE=tables.dmp logfile=table.log TABLES=SCOTT.DEPT,SCOTT.EMP,SCOTT.BONUS
    Export: Release 10.2.0.1.0 - Production on Tuesday, 10 May, 2011 19:40:00
    Copyright (c) 2003, 2005, Oracle. All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Starting "SYSTEM"."SYS_EXPORT_TABLE_01": system/******** DIRECTORY=data_pump_dir DUMPFILE=tables.dmp logfile=table.log TABLES=SCOTT.DEPT,SCOTT.EMP,SCOTT.BONUS
    Estimate in progress using BLOCKS method...
    Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
    Total estimation using BLOCKS method: 128 KB
    Processing object type TABLE_EXPORT/TABLE/TABLE
    Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX
    Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
    Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
    . . exported "SCOTT"."DEPT" 5.656 KB 4 rows
    . . exported "SCOTT"."EMP" 7.820 KB 14 rows
    . . exported "SCOTT"."BONUS" 0 KB 0 rows
    Master table "SYSTEM"."SYS_EXPORT_TABLE_01" successfully loaded/unloaded
    Dump file set for SYSTEM.SYS_EXPORT_TABLE_01 is:
    /u01/app/oracle/product/10.2.0/db_1/rdbms/log/tables.dmp
    Job "SYSTEM"."SYS_EXPORT_TABLE_01" successfully completed at 19:40:22
    [oracle@linux1 ~]$
    Step 2:
    SQL> alter table DEPT rename to dept1;
    Table altered.
    SQL> alter table EMP rename to emp1;
    Table altered.
    SQL> select * from tab;
    TNAME TABTYPE CLUSTERID
    BONUS TABLE
    SALGRADE TABLE
    EMP1 TABLE
    DEPT1 TABLE
    ==============================================================================
    [oracle@linux1 ~]$ impdp system/sys DIRECTORY=data_pump_dir DUMPFILE=tables.dmp TABLES=SCOTT.DEPT,SCOTT.EMP
    output:
    Import: Release 10.2.0.1.0 - Production on Tuesday, 10 May, 2011 19:48:51
    Copyright (c) 2003, 2005, Oracle. All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Master table "SYSTEM"."SYS_IMPORT_TABLE_01" successfully loaded/unloaded
    Starting "SYSTEM"."SYS_IMPORT_TABLE_01": system/******** DIRECTORY=data_pump_dir DUMPFILE=tables.dmp TABLES=SCOTT.DEPT,SCOTT.EMP
    Processing object type TABLE_EXPORT/TABLE/TABLE
    Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
    . . imported "SCOTT"."DEPT" 5.656 KB 4 rows
    . . imported "SCOTT"."EMP" 7.820 KB 14 rows
    Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX
    ORA-31684: Object type INDEX:"SCOTT"."PK_DEPT" already exists
    ORA-31684: Object type INDEX:"SCOTT"."PK_EMP" already exists
    Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
    ORA-31684: Object type CONSTRAINT:"SCOTT"."PK_DEPT" already exists
    ORA-31684: Object type CONSTRAINT:"SCOTT"."PK_EMP" already exists
    Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
    ORA-39083: Object type REF_CONSTRAINT failed to create with error:
    ORA-02270: no matching unique or primary key for this column-list
    Failing sql is:
    ALTER TABLE "SCOTT"."EMP" ADD CONSTRAINT "FK_DEPTNO" FOREIGN KEY ("DEPTNO") REFERENCES "SCOTT"."DEPT" ("DEPTNO") ENABLE
    Job "SYSTEM"."SYS_IMPORT_TABLE_01" completed with 5 error(s) at 19:48:54
    [oracle@linux1 ~]$
    SQL> select * from tab;
    TNAME TABTYPE CLUSTERID
    BONUS TABLE
    SALGRADE TABLE
    EMP1 TABLE
    DEPT1 TABLE
    DEPT TABLE
    EMP TABLE
    6 rows selected.
    SQL>

  • How to exclude table grants from getting being streamed

    I have one way schema level streams replication setup with DDL. The destination database does not have all the roles and users setup that the source database has so when a grant happens on the source and the role or user does not exist in the destination database the grant fails and I get an apply error. I want to be able to ignore these.
    Thanks

    Assigning grants is not an automated process so why not use the DBMS_STREAMS.SET_TAG on source DB into the session and then issue the grant :
    SQL> exec DBMS_STREAMS.SET_TAG(tag => HEXTORAW('17'));
    PL/SQL procedure successfully completed.
    grant MY_ROLE to MY_OWNER ;
    -- the grant is not captured by streams, so not apply error
    SQL> exec DBMS_STREAMS.SET_TAG(tag => null ) ;
    PL/SQL procedure successfully completed.
    -- capture enabled again in this sessionhttp://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_strm.htm

  • Schema grants

    I am asked to give select grant to a user on the objects which are owner by another user. Can anyone of u pass on a good script to me. Thanks in advance

    SQL> conn scott/tiger
    Connected.
    SQL> select count(*) from hr.employees;
    select * from hr.employees
    ERROR at line 1:
    ORA-00942: table or view does not exist
    SQL> disconn
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> conn hr/hr
    Connected.
    SQL> begin
      2  for x in (select table_name from user_tables)
      3  loop
      4  execute immediate 'Grant select on '|| x.table_name || ' to &schema';
      5  end loop;
      6  end;
      7  /
    Enter value for schema: scott
    old   4: execute immediate 'Grant select on '|| x.table_name || ' to &schema';
    new   4: execute immediate 'Grant select on '|| x.table_name || ' to scott';
    PL/SQL procedure successfully completed.
    SQL> disconn
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> conn scott/tiger
    Connected.
    SQL> select count(*) from hr.employees;
      COUNT(*)                                                                     
           107                                                                      Regards
    Umi

  • Exclude Schema from Gather Statistics Job

    I am using 11.1.0,7. I would like to know if we can exclude some schemas While Oracle automatically gathers the statistics.
    Reason I want this is that, I have one database that supports multiple applications but as per one application's demand we should not be gathering stats on it's schema. So, in totality I have 20 Schemas but while this jobs run, I want to exclude 2 schemas that this application supports.
    Locking the Stats for these schemas is not an option.
    Thanks!

    Have you enquired from the vendor exactly why they do not want you to gather statistics on it's schema?
    Is there other options they are willing to consider like baselining the explain plan or perhaps not publishing the statistics to the tables...using the pending statistics feature?
    Exec dbms_stats.set_table_prefs('SH', 'CUSTOMERS', 'PUBLISH', 'false');
    Regards
    Tim Boles
    Edited by: Tim Boles on Aug 4, 2010 11:11 AM

  • Travel Schema:grant all privileges

    I have a request to add the travel schema to one of our 9202 databases. Fairly straight forward. I got the *.dmp file from your site:
    http://www.oracle.com/technology/sample_code/tech/java/travel/travelschema.htm#system
    I created the user travel and used the system tablespace as the default. As for privileges, I noticed that I should "grant all privileges" to travel. Is this wise? What's the minimum amount of privileges that I can grant to travel?

    Is this wise? You are quite right to be concerned. Granting ALL PRIVILEGES is a dodgy thing to do. In mitigation I might say that the TRAVEL schema is a sample piece of code and so should only be installed on a development database, where the damage can be limited.
    But I think the real problem is that the sample code was developed by Java programmers who couldn't be bothered to work out exactly what privileges were needed. Shocking, yes, but hardly uncommon. And the poltroons have also included instructions on how to
    To Download and install the travel schema into the SYSTEM tablespace:
    No no no! No application objects go into the SYSTEM schema. What's the point of us non-Oracle people banging on about best practice if their own employees are allowed to post stuff like this on OTN? Sack these bozos!
    What's the minimum amount of privileges that I can grant to travel? I have absolutely no idea. I think the safest thing is to build a new database instance, so that the potential for damage is limited. Alternatively, grant CONNECT and RESOURCE and see how far that goes. You may have to grant additional powers. I see they also grant JAVASYSPRIV and JAVAUSEPRIV. Horrible, simply horrible.
    Cheerse, APC

  • Impdp exclude some table grants

    Hi,
    I exported a schema containing tables. Each table has grants provided to other schemas.
    for example:
    the schema CSFDS_BAR grants SELECT, INSERT, UPDATE, DELETE on the table EXAMPLE to the schema CSFDS_FOO
    and SELECT on the same table to the schema QUX.
    I would like to import the datapump to another schema: ERHPQ_BAR; and remap the grants of the table EXAMPLE of CSFDS_FOO to ERHPQ_FOO but exclude the grant provided to QUX.
    I use the following parameters to remap the schemas.
    SCHEMAS=CSFDS_BAR
    EXCLUDE=USER,SYSTEM_GRANT,ROLE_GRANT,DEFAULT_ROLE,TABLESPACE_QUOTA
    REMAP_SCHEMA=CSFDS_BAR:ERHPQ_BAR
    REMAP_SCHEMA=CSFDS_FOO:ERHPQ_FOO
    Grants to CSFDS_FOO are correctly remap to ERHPQ_FOO. But I haven't a way to exclude the grants to QUX.
    I tried EXCLUDE=OBJECT_GRANT:"GRANTEE in ('QUX')" but failed.
    Please advice.
    Sebastien

    Hi,
    "The error I got is
    With the Partitioning, OLAP and Data Mining options
    ORA-39001: invalid argument value
    ORA-39071: Value for EXCLUDE is badly formed.
    ORA-00920: invalid relational operator"
    this Error you get because you can not use the wrong syntax for Exclude in your command
    I tried your suggestion but it only exclude the grants provided the grantor not the grantee.
    AFAIK , you can not do what you want.

  • Impdp using EXCLUDE

    Hi
    I want to import a full database excluding a list of schemas. I know I can use the parameter EXCLUDE to do that but I need to exclude several schemas and I am having problem writing the appropiate list in the parameter EXCLUDE. Can you help me?
    Thanks

    I tried as you recommed but I got an error as well
    impdp system/???@????? exclude=SCHEMA:"='DBSNMP,MGMT_VIEW,SYSMAN,SYS,SYSTEM,FLOWS_FILES,MDSYS,SCOTT,WMSYS,APPQOSSYS,XS$NULL,APEX_030200,OWBSYS_AUDIT,MDDATA,OWBSYS,ORACLE_OCM,ORDDATA,ANONYMOUS,OUTLN,DIP,EXFSYS,APEX_PUBLIC_USER,XDB,ORDSYS,SPATIAL_CSW_ADMIN_USR,CTXSYS,SPATIAL_WFS_ADMIN_USR,ORDPLUGINS,OLAPSYS,SI_INFORMTN_SCHEMA'" DIRECTORY=dirorigen LOGFILE=DATA_PUMP_DIR:imp.log FULL=y DUMPFILE=fullbk.dmp
    $
    $ ./importarfullexclude.sh
    LRM-00116: syntax error at 'SCHEMA:' following '='
    $
    I tried on this way and I got an error again...
    Import: Release 11.2.0.2.0 - Production on Fri Feb 18 11:35:00 2011
    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    ORA-39071: Value for EXCLUDE is badly formed.
    ORA-00920: invalid relational operator
    $
    impdp system/???@????? exclude=SCHEMA:"'DBSNMP,MGMT_VIEW,SYSMAN,SYS,SYSTEM,FLOWS_FILES,MDSYS,SCOTT,WMSYS,APPQOSSYS,XS$NULL,APEX_030200,OWBSYS_AUDIT,MDDATA,OWBSYS,ORACLE_OCM,ORDDATA,ANONYMOUS,OUTLN,DIP,EXFSYS,APEX_PUBLIC_USER,XDB,ORDSYS,SPATIAL_CSW_ADMIN_USR,CTXSYS,SPATIAL_WFS_ADMIN_USR,ORDPLUGINS,OLAPSYS,SI_INFORMTN_SCHEMA'" DIRECTORY=dirorigen LOGFILE=DATA_PUMP_DIR:imp_2011.log FULL=y DUMPFILE=fullbk_2011.dmp
    $

  • ImpDP Create schema

    Hello Experts!
    I am using Oracle ImpDP to import a fresh DB to a test system. I was the impdp to create all the schema.
    My original import was done using sys as sysdba
    I am running the import using the same user. What option should I set in the par file to do so?
    -- Oracle 10.2G
    -- Running on Linux
    Thanks!

    hi
    Part of the Exp Logs
    Export: Release 10.2.0.4.0 - Production on Monday, 19 September, 2011 19:09:09
    Copyright (c) 2003, 2007, Oracle. All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Starting "SYS"."SYS_EXPORT_FULL_01": "system/******** AS SYSDBA" DUMPFILE=EXP_DUMP_DIR:expdp_STAGEDB_09192011.dmp logfile=EXP_LOG_DIR:expdp_STAGEDB_09192011.log PARFILE=/home/oracle/wavemark/export/scripts/expdp_STAGEDB.par
    Estimate in progress using BLOCKS method...
    Processing object type DATABASE_EXPORT/SCHEMA/TABLE/TABLE_DATA
    Total estimation using BLOCKS method: 9.944 GB
    Processing object type DATABASE_EXPORT/TABLESPACE
    Processing object type DATABASE_EXPORT/SYS_USER/USER
    Processing object type DATABASE_EXPORT/SCHEMA/USER
    Processing object type DATABASE_EXPORT/ROLE
    Processing object type DATABASE_EXPORT/GRANT/SYSTEM_GRANT/PROC_SYSTEM_GRANT
    Processing object type DATABASE_EXPORT/SCHEMA/GRANT/SYSTEM_GRANT
    Processing object type DATABASE_EXPORT/SCHEMA/ROLE_GRANT
    Processing object type DATABASE_EXPORT/SCHEMA/DEFAULT_ROLE
    Processing object type DATABASE_EXPORT/SCHEMA/TABLESPACE_QUOTA
    Processing object type DATABASE_EXPORT/RESOURCE_COST
    Processing object type DATABASE_EXPORT/TRUSTED_DB_LINK
    Processing object type DATABASE_EXPORT/SCHEMA/SEQUENCE/SEQUENCE
    Processing object type DATABASE_EXPORT/SCHEMA/SEQUENCE/GRANT/OWNER_GRANT/OBJECT_GRANT
    Processing object type DATABASE_EXPORT/DIRECTORY/DIRECTORY
    Processing object type DATABASE_EXPORT/DIRECTORY/GRANT/OWNER_GRANT/OBJECT_GRANT
    Processing object type DATABASE_EXPORT/CONTEXT
    Processing object type DATABASE_EXPORT/SCHEMA/PUBLIC_SYNONYM/SYNONYM
    Processing object type DATABASE_EXPORT/SCHEMA/SYNONYM
    Processing object type DATABASE_EXPORT/SCHEMA/TYPE/TYPE_SPEC
    Processing object type DATABASE_EXPORT/SCHEMA/TYPE/GRANT/OWNER_GRANT/OBJECT_GRANT
    Processing object type DATABASE_EXPORT/SYSTEM_PROCOBJACT/PRE_SYSTEM_ACTIONS/PROCACT_SYSTEM
    Processing object type DATABASE_EXPORT/SYSTEM_PROCOBJACT/PROCOBJ
    Processing object type DATABASE_EXPORT/SYSTEM_PROCOBJACT/POST_SYSTEM_ACTIONS/PROCACT_SYSTEM
    Processing object type DATABASE_EXPORT/SCHEMA/PROCACT_SCHEMA
    Processing object type DATABASE_EXPORT/SCHEMA/TABLE/TABLE
    Processing object type DATABASE_EXPORT/SCHEMA/TABLE/PRE_TABLE_ACTION
    Processing object type DATABASE_EXPORT/SCHEMA/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT
    Processing object type DATABASE_EXPORT/SCHEMA/TABLE/GRANT/CROSS_SCHEMA/OBJECT_GRANT
    Processing object type DATABASE_EXPORT/SCHEMA/TABLE/INDEX/INDEX
    Processing object type DATABASE_EXPORT/SCHEMA/TABLE/CONSTRAINT/CONSTRAINT
    Processing object type DATABASE_EXPORT/SCHEMA/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
    Processing object type DATABASE_EXPORT/SCHEMA/TABLE/COMMENT
    Processing object type DATABASE_EXPORT/SCHEMA/TABLE/RLS_CONTEXT
    Processing object type DATABASE_EXPORT/SCHEMA/TABLE/RLS_GROUP
    Processing object type DATABASE_EXPORT/SCHEMA/TABLE/RLS_POLICY
    Processing object type DATABASE_EXPORT/SCHEMA/PACKAGE/PACKAGE_SPEC
    Processing object type DATABASE_EXPORT/SCHEMA/PACKAGE/GRANT/OWNER_GRANT/OBJECT_GRANT
    Processing object type DATABASE_EXPORT/SCHEMA/FUNCTION/FUNCTION
    Processing object type DATABASE_EXPORT/SCHEMA/PROCEDURE/PROCEDURE
    Processing object type DATABASE_EXPORT/SCHEMA/PROCEDURE/GRANT/OWNER_GRANT/OBJECT_GRANT
    Processing object type DATABASE_EXPORT/SCHEMA/FUNCTION/ALTER_FUNCTION
    Processing object type DATABASE_EXPORT/SCHEMA/PROCEDURE/ALTER_PROCEDURE
    Processing object type DATABASE_EXPORT/SCHEMA/VIEW/VIEW
    Processing object type DATABASE_EXPORT/SCHEMA/VIEW/GRANT/OWNER_GRANT/OBJECT_GRANT
    Processing object type DATABASE_EXPORT/SCHEMA/VIEW/GRANT/CROSS_SCHEMA/OBJECT_GRANT
    Processing object type DATABASE_EXPORT/SCHEMA/VIEW/COMMENT
    Processing object type DATABASE_EXPORT/SCHEMA/TABLE/CONSTRAINT/REF_CONSTRAINT
    Processing object type DATABASE_EXPORT/SCHEMA/PACKAGE_BODIES/PACKAGE/PACKAGE_BODY
    Processing object type DATABASE_EXPORT/SCHEMA/TYPE/TYPE_BODY
    Processing object type DATABASE_EXPORT/SCHEMA/TABLE/INDEX/FUNCTIONAL_AND_BITMAP/INDEX
    Processing object type DATABASE_EXPORT/SCHEMA/TABLE/INDEX/STATISTICS/FUNCTIONAL_AND_BITMAP/INDEX_STATISTICS
    Processing object type DATABASE_EXPORT/SCHEMA/TABLE/STATISTICS/TABLE_STATISTICS
    Processing object type DATABASE_EXPORT/SCHEMA/TABLE/POST_TABLE_ACTION
    Processing object type DATABASE_EXPORT/SCHEMA/TABLE/TRIGGER
    Processing object type DATABASE_EXPORT/SCHEMA/VIEW/TRIGGER
    Processing object type DATABASE_EXPORT/SCHEMA/MATERIALIZED_VIEW
    Processing object type DATABASE_EXPORT/SCHEMA/JOB
    Processing object type DATABASE_EXPORT/SCHEMA/TABLE/POST_INSTANCE/PROCACT_INSTANCE
    Processing object type DATABASE_EXPORT/SCHEMA/TABLE/POST_INSTANCE/PROCDEPOBJ
    Processing object type DATABASE_EXPORT/SCHEMA/POST_SCHEMA/PROCOBJ
    Processing object type DATABASE_EXPORT/SCHEMA/POST_SCHEMA/PROCACT_SCHEMA
    . . exported "UWAVE"."PRODUCTITEM" 1.607 GB 4961525 rows
    . . exported "UWAVE"."PRODUCTEVENT" 1.363 GB 7668052 rows
    . . exported "UWAVE"."RFIDTAG" 716.7 MB 6206230 rows
    . . exported "UWAVE"."ERRORLOG" 856.5 MB 628430 rows
    . . exported "UWAVE"."CABINETRUN" 979.5 MB 20389386 rows
    . . exported "URPT"."STG_RTHOSPITAL_PRODUCTEVENT" 252.4 MB 1854228 rows
    . . exported "UWAVE"."AUDITLOG_ARCHIVE" 232.3 MB 571450 rows
    . . exported "UWAVE"."PERFORMANCETIMING" 194.8 MB 330004 rows
    . . exported "UWAVE"."REPORTLOG" 186.2 MB 2315240 rows
    . . exported "UWAVE"."ENDPOINTITEMEND_MV" 138.8 MB 306043 rows
    Part of the Imp Logs
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Master table "SYS"."SYS_IMPORT_FULL_01" successfully loaded/unloaded
    Starting "SYS"."SYS_IMPORT_FULL_01": "system/******** AS SYSDBA" DUMPFILE=IMP_DUMP_DIR:expdp_ProdDB_2_EngDB02.dmp LOGFILE=IMP_LOG_DIR:impdp_ProdDB_2_rows.log PARFILE=impdp_ProdDB_2_eng.par
    Processing object type TABLE_EXPORT/TABLE/TABLE
    Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
    . . imported "UWAVE"."PRODUCT" 8.966 MB 39674 rows
    Processing object type TABLE_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'USPLY' does not exist
    Failing sql is:
    GRANT ALTER ON "UWAVE"."PRODUCT" TO "USPLY"
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'USPLY' does not exist
    Failing sql is:
    GRANT DELETE ON "UWAVE"."PRODUCT" TO "USPLY"
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'USPLY' does not exist

  • EXPDP/IMPDP : Clone schema with datapump

    Hello,
    I have a full export with the following parameters:
    DIRECTORY=dir$export
    DUMPFILE=datapump_exp_FULL.dmp
    LOGFILE=datapump_exp_FULL.log
    FULL=Y
    And I want to import only one schema into a new schema with the following parameters:
    DIRECTORY=dir$export
    DUMPFILE=datapump_exp_FULL.dmp
    LOGFILE=datapump_imp_SCHEMA2.log
    SCHEMAS=SCHEMA1
    REMAP_SCHEMA=SCHEMA1:SCHEMA2
    TABLE_EXISTS_ACTION=REPLACE
    TRANSFORM=OID:N
    But for what reason ever IMPDP tries to import other schemas like SYSMAN, APEX... also. This throws a load of ORA-31684 (object already exists), what means TABLE_EXISTS_ACTION=REPLACE doesn't work also.
    I also tried to import without SCHEMAS=SCHEMA1, but didn't succeed anyway...
    So, how can I force IMPDP to import only SCHEMA1, without touching the others ?
    Regards,
    Mynz

    either use INCLUDE PARAMETER as per documentation
    http://docs.oracle.com/cd/E11882_01/server.112/e10701/dp_import.htm#i1007761OR
    EXCLUDE=SCHEMA:"IN ('OUTLN','SYSTEM','SYSMAN','FLOWS_FILES','APEX_030200','APEX_PUBLIC_USER','ANONYMOUS')"OR
    Using NOT-LIKE with EXCLUDETake care of those quotation marks..

  • Exclude specific schema using EXPDP

    Hello ,
    Can anyone tell me have to exclude specific schema in full expdp of the database
    i am using aix 5.3 and 10.2.0.4.0
    Regard

    hi
    exclude.par contains below statement
    userid=system/oracle10g
    directory=dumplocation
    dumpfile=expexcludeschema.dmp
    logfile=expexcludeschema.log
    exclude=schema:" = 'TEST'"
    but i am getting following error
    ORA-39001: invalid argument value
    ORA-39038: Object path "SCHEMA" is not supported for SCHEMA jobs.
    Regards

Maybe you are looking for

  • Unable to Communicate with Printer Error - Officejet Pro 8600

    My printer was working fine last week... printing from my Mac desktop via wireless.  Now, when I try to print, the progress window is just hanging... trying to find the printer. I deleted the printer in my settings and tried to reinstall. Now, I am g

  • Newbie: Moving a workgroup to an external drive

    I am just setting up a snow leopard server for our small design firm on a mini. I'm sure I'm missing some really basic concepts to I apologize in advance. I have a large Drobo which I want to put our company workgroup files on. When I installed the s

  • CreateObject("NovellGroupWareAdmin") - throws error

    Im trying to run/execute the sample VB code - Admn_api that is packaged with novell-gwadmin-devel-2009.03.08-1windows. When I execute, I get the error - cannot create ActiveX Component at the line objSystem = CreateObject("NovellGroupWareAdmin") I in

  • I accidentally opted in to the automatic reporting to Mozilla that came with the new firefox. I want to opt out. How?

    Firefox automatically upgraded me to 7, which is fine, but when the page loaded there was a query at top - something like, "do you want to help mozilla by automatically reporting site load times etc." I clicked yes, I meant to click no. How do I opt

  • Custom ordering of results

    I'm looking to do some custom ordering of results. Lets say I have a table: CREATE TABLE test_ordering (      ID NUMBER PRIMARY KEY,      NAME VARCHAR2(40));With some records.. INSERT INTO test_ordering (id, name) VALUES (1,'Apartment 1'); INSERT INT