EXPDP INCLUDE

Hello

It says the syntax as documentation:

INCLUDE = INDEX:------"AS" PK%\ »

Is it possible to have a querry as:

expdp system/***@base has d = INDEX IN (select index_name from dba_indexes where owner = 'USER1')

I can't test it now because no access to a database.

But I have to give an answer to my client.

Thank you.

Hello

It worked well for me:

expdp / parfile = test.par

where test.par contains

schemas = ALIGN include = index: "IN (select index_name from dba_indexes where owner = 'ALIGN')" "

See you soon,.

Rich

Tags: Database

Similar Questions

  • expdp include the queue?

    11.2.0.4

    A developer asked if some objects from an application schema may be reproduced in its own schema for dev.  Includes just enough, with some datapump should do the trick, except that we ask for some TABLES/TYPES/queues, but I can't get a QUEUE objects using expdp include.

    by file looks like this

    UserID = system

    DUMPFILE = exp.dmp

    LOGFILE = exp.log

    DIRECTORY = DATAPUMPDIR

    Content = metadata_only

    schemas = schema1

    INCLUDE = TABLE: 'IN ('T1', 'T2') '.

    INCLUDE = TYPE: "IN ('T1_TYPE)" "

    INCLUDE QUEUE = ' ("NOM_FILE_ATTENTE'".

    and I get

    ORA-39001: invalid argument value

    ORA-39038: object path 'TAIL' is not supported for SCHEMA jobs.

    It works for the TABLE and the TYPE of property

    Queues Im trying to export are owned by schema1, ideas?

    Hello

    I got a glance at what I had never tried to extract separately before - basically, it is not possible. Instead of datapump extract type DBMS_AQADM/DBMS_AQ commands to execute what he does instead is:

    (1) extract create enemy of declaration of table queue in the section tables table

    (2) Similarly all types in section type

    (3) all views in the view section

    (4) then this, some internal skilled to reactivate in a queue of operation.

    There is no 'tail' of the export/import process step

    So basically you with a complete schema import/export, but there is no way to just make the queues-except perhaps for specifically excluding all other type of object and the filtering of specific views and tables which is pretty convenient...

    See you soon,.

    Rich

  • expdp include with dbms_datapump API

    Hello

    I'm trying to translate the following for use with the dbms_datapump API but I m, difficulty to write the correct syntax to INCLUDE = SCHEMA:------"=-"myschema\"------" section.

    expdp dumpfile = mydirectoryp:mydumpfile.dp = SCHEMA INCLUDE:------logfile = mydirectoryg:mylogfile.log ' =------------'myschema\' "full = y

    Could someone help me with this?

    Thank you

    JP

    Sorry - I forgot the other filter that you need:

    dbms_datapump. () METADATA_FILTER
    manage = 16,
    name = "INCLUDE_PATH_LIST"
    value = "SCHEMA."
    object_path = null,
    object_type = null);

    Dean

  • expdp/impdp: constraints in the child-Parent relationship

    Hello

    I have a table parent1 and child1, child2 and chld3 tables have foreign key created on this parent1.

    Now, I want to do a delete on parent1. But as the number of records is very high on parent1, we go with expdp / impdp with option querry.

    I took the expdp parent1 level query. Now I dropped parent1 with option of cascade constraints and all foreign keys created by child1, 2 and 3 that parent1 references are automatically deleted.

    Now, if I have the impdp to the query of fire level dump file, are these foreign key constraints will be created automatically on child1, 2 and 3 or I need to manually recreate it?

    Kind regards

    ANU

    Hello
    The CF will not be in the dumpfile - see the code example below where I generate a sqlfile following pretty much the process that you would have done. This is because FK belongs to the DDL for the child table not the parent.

    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning option
    
    OPS$ORACLE@EMZA3>create table a (col1 number);
    
    Table created.
    
    OPS$ORACLE@EMZA3>alter table a add primary key (col1);
    
    Table altered.
    
    OPS$ORACLE@EMZA3>create table b (col1 number);
    
    Table created.
    
    OPS$ORACLE@EMZA3>alter table b add constraint x foreign key (col1) references a(col1);
    
    Table altered.
    
    OPS$ORACLE@EMZA3>
    
    EMZA3:[/oracle/11.2.0.1.2.DB/bin]# expdp / include=TABLE:\"=\'A\'\"
    
    Export: Release 11.2.0.3.0 - Production on Fri May 17 15:45:50 2013
    
    Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
    
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning option
    Starting "OPS$ORACLE"."SYS_EXPORT_SCHEMA_04":  /******** include=TABLE:"='A'"
    Estimate in progress using BLOCKS method...
    Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
    Total estimation using BLOCKS method: 0 KB
    Processing object type SCHEMA_EXPORT/TABLE/TABLE
    Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
    Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
    . . exported "OPS$ORACLE"."A"                                0 KB       0 rows
    Master table "OPS$ORACLE"."SYS_EXPORT_SCHEMA_04" successfully loaded/unloaded
    ******************************************************************************
    Dump file set for OPS$ORACLE.SYS_EXPORT_SCHEMA_04 is:
      /oracle/11.2.0.3.0.DB/rdbms/log/expdat.dmp
    Job "OPS$ORACLE"."SYS_EXPORT_SCHEMA_04" successfully completed at 15:45:58
    
    Import: Release 11.2.0.3.0 - Production on Fri May 17 15:46:16 2013
    
    Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
    
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning option
    Master table "OPS$ORACLE"."SYS_SQL_FILE_FULL_01" successfully loaded/unloaded
    Starting "OPS$ORACLE"."SYS_SQL_FILE_FULL_01":  /******** sqlfile=a.sql
    Processing object type SCHEMA_EXPORT/TABLE/TABLE
    Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
    Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
    Job "OPS$ORACLE"."SYS_SQL_FILE_FULL_01" successfully completed at 15:46:17
    
    -- CONNECT OPS$ORACLE
    ALTER SESSION SET EVENTS '10150 TRACE NAME CONTEXT FOREVER, LEVEL 1';
    ALTER SESSION SET EVENTS '10904 TRACE NAME CONTEXT FOREVER, LEVEL 1';
    ALTER SESSION SET EVENTS '25475 TRACE NAME CONTEXT FOREVER, LEVEL 1';
    ALTER SESSION SET EVENTS '10407 TRACE NAME CONTEXT FOREVER, LEVEL 1';
    ALTER SESSION SET EVENTS '10851 TRACE NAME CONTEXT FOREVER, LEVEL 1';
    ALTER SESSION SET EVENTS '22830 TRACE NAME CONTEXT FOREVER, LEVEL 192 ';
    -- new object type path: SCHEMA_EXPORT/TABLE/TABLE
    CREATE TABLE "OPS$ORACLE"."A"
       (    "COL1" NUMBER
       ) SEGMENT CREATION IMMEDIATE
      PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
     NOCOMPRESS LOGGING
      STORAGE(INITIAL 16384 NEXT 16384 MINEXTENTS 1 MAXEXTENTS 505
      PCTINCREASE 50 FREELISTS 1 FREELIST GROUPS 1
      BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
      TABLESPACE "SYSTEM" ;
    -- new object type path: SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
    ALTER TABLE "OPS$ORACLE"."A" ADD PRIMARY KEY ("COL1")
      USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255
      STORAGE(INITIAL 16384 NEXT 16384 MINEXTENTS 1 MAXEXTENTS 505
      PCTINCREASE 50 FREELISTS 1 FREELIST GROUPS 1
      BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
      TABLESPACE "SYSTEM"  ENABLE;
    -- new object type path: SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
    DECLARE I_N VARCHAR2(60);
      I_O VARCHAR2(60);
      NV VARCHAR2(1);
      c DBMS_METADATA.T_VAR_COLL;
      df varchar2(21) := 'YYYY-MM-DD:HH24:MI:SS';
     stmt varchar2(300) := ' INSERT INTO "SYS"."IMPDP_STATS" (type,version,flags,c1,c2,c3,c5,n1,n2,n3,n4,n5,n6,n7,n8,n9,n10,n11,n12,d1,cl1) VALUES (''I'',6,:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11,:12,:13,NULL,:14,:15,NULL,:16,:17)';
    BEGIN
      DELETE FROM "SYS"."IMPDP_STATS";
      c(1) := 'COL1';
    
      DBMS_METADATA.GET_STAT_INDNAME('OPS$ORACLE','A',c,1,i_o,i_n);
      EXECUTE IMMEDIATE stmt USING 0,I_N,NV,NV,I_O,0,0,0,0,0,0,0,0,NV,NV,TO_DATE('2013-05-17 15:43:24',df),NV;
    
      DBMS_STATS.IMPORT_INDEX_STATS('"' || i_o || '"','"' || i_n || '"',NULL,'"IMPDP_STATS"',NULL,'"SYS"');
      DELETE FROM "SYS"."IMPDP_STATS";
    END;
    /
    

    Kind regards
    Harry

    http://dbaharrison.blogspot.com/

  • export tables of a schema expdp

    I created the user test after reading Scripture written on directory mydir (at the level of the bone), there are 1000 tables in the schema user of my essay, I wnt to export these tables in mydir (with expdp) including the table names contained no '9'...

    I tried a few below soln that did not work


    $expdp userid = test/test directory = mydir dumpfile = tables_not9.dat query = tab: "where tNom not like «%%9»»

    $expdp userid = tet/test = query schema dumpfile = tables_not9.da = user_tables mydir directory: "where table_name not like «%%9»»

    Please guide for correct solution

    the same command

  • expdp with metadata

    I have the diagram with 200 paintings.

    I want expdp only metadata, in addition to that, I need data expdp for only two tables.

    What is the best option to achieve this?

    Can I use expdp, content = metadata_only, inlcude = (tab1, tab2)?

    What is the best option to achieve this?

    happy expdp = metadata_only
    expdp include = (tab1, tab2)

  • index of export

    Hi all

    on 11.2.0.4 on Win 2008 Server

    I run the suite expdp:

    C:\ > expdp scott/oracle@orcl PARFILE=C:\app\MYparfile.TXT

    My parafile is:

    INCLUDE = TABLE: 'IN ('EMP', 'WORKS') '.

    INCLUDE = INDEX: "LIKE '% IDX.

    INCLUDE = PROCEDURE: ' LIKE "EMPRU % '"

    DUMPFILE = exp_exo_8.1.2.dmp

    DIRECTORY = DATA_PUMP_DIR

    LOGFILE = exp_exo_8.1.2.log

    And I have the following text in the log file:

    Capture.PNG

    I can see that the tables are exported but not information about the index and procedures. If they are exported? How can you be sure? If not why?

    Thank you.

    Expdp includes metadata under the part of type object (where it says type of treatment...). Index is included in the table class (Yes table\comment table\index\index and table\constraint\constraint).

    If you want to check / verify that you can use the sqlfile in impdp to retrieve all definitions. After you import the data, the index is built at the top of the data in the table by a work process, so you can defragment import data. By expdp documentation, metadata filters include the subset of objects to include. If your export table will include index (because they are a subset). See metadata filters below:

    http://docs.Oracle.com/CD/E11882_01/server.112/e22490/dp_export.htm#SUTIL833

    If you compare your export export a scheme, you'll see your export has excluded the SCHEMA_EXPORT/system grants (as you include in your parfile), but he did not understand dependent procedures, tables by your parfile. It just is not list explicitly.

  • What objects should be created before impdp?

    Hello

    Platform: RHEL 5.8 64-bit

    ENV: Source Server - Oracle 10.2.0.5 on ASM

    Server - Target Oracle 10.2.0.5 on ASM

    Specific patterns must be exported from the Source database and imported into the target database - expdp/impdp (datapump) will be used for export and import.

    My questions are:

    1. Objects must be created (roles, synonyms, storage spaces, etc.) initial before importing schemas?
    2. Is it possible to export these objects (roles, synonyms, storage spaces, etc.) during schema export (expdp) and have Datapump automatically create the database target when importing?
    3. I might have to repeat the steps expdp/impdp multiple times. I have to let the users/schemas and/or other objects in the database target for later impdp?

    Best regards

    Post edited by: user130038

    Hello

    tablespaces/roles can extract only when it is full = y, they are not valid for a snippet of schema. Full = there does not mean it will extract all had by default but as soon as you say will include = x export will have access to export anything, but because you said only include tablespace is all you have - see the example below:

    This will not work:

    [oracle@server]:EIANCAPP:[~]# expdp / schemas = system include = tablespace]

    Export: Release 11.2.0.2.0 - Production on Fri Jul 12 15:23:51 2013

    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

    Connected to: Oracle Database 11 g Enterprise Edition Release 11.2.0.2.0 - 64 bit Production
    With the partitioning option
    ORA-39001: invalid argument value
    ORA-39041: filter "INCLUDE" either identifies all types of objects or any type of object.

    This done and extracts only the ddl tablespace:

    [oracle@server]:EIANCAPP:[~]# expdp / include = complete tablespace = y]

    Export: Release 11.2.0.2.0 - Production on Fri Jul 12 15:24:10 2013

    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

    Connected to: Oracle Database 11 g Enterprise Edition Release 11.2.0.2.0 - 64 bit Production
    With the partitioning option
    Departure "OPS$ ORACLE." ' SYS_EXPORT_FULL_01 ': / * include = complete tablespace = y '.
    Current estimation using BLOCKS method...
    Treatment of DATABASE_EXPORT/SCHEMA/TABLE/TABLE_DATA object type
    Total estimation using BLOCKS method: 0 KB
    Object DATABASE_EXPORT/TABLESPACE of treatment type
    Main table "OPS$ ORACLE." "' SYS_EXPORT_FULL_01 ' properly load/unloaded
    ******************************************************************************
    Empty the files together for OPS$ ORACLE. SYS_EXPORT_FULL_01 is:
    /Oracle/export/EIANCAPP/expdat.dmp
    Job ' OPS$ ORACLE. " "" SYS_EXPORT_FULL_01 "conducted at 15:24:17

    [oracle@server]:EIANCAPP:[~]#

    See you soon,.

    Harry

    http://dbaharrison.blogspot.com

  • Export / import tablespace with all objects (data, users, roles)

    Hi, I have a problem or a question to the export of the section / import tablespace.

    On the one hand, I have a database 10g (A) and on the other hand, an 11g database (B).

    At there is a tablespace called PRO.

    Also 3 users:

    PRO_Main - contains the datas - space PRO

    PRO_Users1 with a PRO_UROLE - professional role

    PRO_Users2 with a PRO_UROLE - professional role

    Now, I want to transfer the tablespace set PRO (included users PRO_MAIN, PRO_USER1, PRO_User2 and PRO_UROLE role) from A to B.

    On B, I created the user PRO_Main and the tablespace PRO.

    On A, I run suite statement:

    expdp TABLESPACES PRO_Main/XXX DIRECTORY PRO = DUMPFILE TSpro.dmp LOGFILE = backup_datapump = = TSpro.log

    B:

    Impdp TABLESPACES PRO_Main/XXX DIRECTORY PRO = DUMPFILE TSpro.dmp LOGFILE = backup_datapump = = TSpro.log

    Result:

    The user PRO_Main has been imported with all data.

    But miss me PRO_USER1, PRO_User2 and PRO_UROLE role...


    I guess, I've used wrong settings in my experienced and / or impdp.

    Would be nice, if someone can give me a hint.

    Thanks in advance.

    Best regards
    Frank

    When you perform an export of TABLESPACE mode by simply specifying tablespaces, then everything gets exported are tables and dependent objects. Users, roles, and tablespace definitions themselves don't get exported.

    When you perform a SCHEMA mode export by specifying the schemas, you will get the schema definitions (if the schema running export is privied) and all of the objects that has the schema. The schema is not owner of roles or tablespace definitions.

    In your case, you want to move

    1 patterns - that you have already created 1 on your target database
    2. the roles
    3 all in the storage spaces belonged to several patterns.

    There is not 1 import/export command that will do that. This is how I could do this:

    1. move the schema definitions
    a. you can either create them manually or
    B1. expdp schemas = include = user
    impdp B2 b1 results.

    2 transfer the roles
    complete expdp = include = role...
    don't forget, this will include all the roles. If you want to limit what is exported, use:
    include = role: "in (" ROLE1","ROLE2", etc.).
    impdo roles come to export

    3. move the user information
    a. If you want to move all the objects in the diagram as functions, packages, etc., then you need to use a schema view
    Export
    patterns of username/password expdp = a, b, c...
    b. If you want to move only the objects in these storage spaces, and then use the export of tablespace
    expdp username/password = tbs1 storage spaces, tbs2,...

    c. import the dumpfile generated in step 3
    Impdp username/password...

    I hope this helps.

    Dean

  • datapump exp problem

    Hello
    I need to export more than 1,000 tables with the expdp INCLUDE clause but I know the maximum length allowed is 4000 bytes, including the quotes, which means that the actual maximum length is 3998 bytes.

    How can I work around this problem in the expdp INCLUDE clause?

    Osama_mustafa wrote:
    If you have the same table on different schema then I suggest before start to export your filtering database don't you never hear of synonym and view or give you more option to avoid duplicate on your schema tables, in this case you will export less tables.

    I don't know what you're saying here, if you include in the list the schema1.table_1 table and schema2.table_1 are specified AND export user has the appropriate privileges, Oracle and expdp are smart enough to distinguish between 2 tables in the different schema. No idea why views synonyms, grants, no matter, as long as the object name is prefixed by schema, you should be ok.

    Dear OP,

    You want to export tables of 1000, but you do not tell us these 1000 out of 1100 or 10000. If it is out of 1100 so it is easier to EXCLUDE those that you don't want, but the best solution could be the list owner and table_Name in a table and provide the use IN paragraph rather than providing a long list of tables.

    Also, you CAN provide two INCLUDE and to EXCLUDE in a command line, so I would recommend that you use a table that contains the names of owner and of the table you want to export. It will make your life easier. As long as the user-exporter (i.e. who run expdp) has the appropriate privileges, you should have no problem.

    REDA

  • How to create the same storage space in the database of test as in production

    I used the following commands:
    (as of 10 gr 2)
    expdp DIRECTORY = DATA_PUMP_DIR SCHEMAS = EXCLUDE MDLOG = DUMPFILE = mdlogMETADATA.dmp STATISTICS include happy tablespace = metadata_only =

    Then:
    (in 11 GR 2)
    Impdp DIRECTORY = DATA_PUMP_DIR DUMPFILE = mdlogMETADATA.dmp include TABLESPACE sqlfile = c.sql =

    According to the following positions, it should work
    How to find the user name and a name indatapump import tablespace

    [http://www.rampant-books.com/art_nanda_datapump.htm | http://www.rampant-books.com/art_nanda_datapump.htm]

    instead I get
    ORA-39002: invalid operation
    ORA-39168: TABLESPACE object path was not found.

    Now I'm looking for the incompatible options between (10 gr 2) expdp and impdp (11 GR 2)... and if include = TABLESPACE should be replaced by choice...

    During this time... is there something that can tell me if I make mistakes?

    Tanks

    Hello

    The expdp command you listed in your first post may not work. You have exclude and include in the same order.

    Exclude said excluding these items but includes everything.

    Include says include only these objects and exclude everything else.

    If you use the command expdp of your second post, there is no tablespace objects in a schema export. Include = tablespace will only recreate the tablespaces and not objects in storage. If you want to do this, you must delete the schema = MDLOG and add the full = Y. Tablespace definitions are included in a full export.

    What is your ultimate goal? You want just the definitions of tablespace moved? If so

    complete expdp = include = tablespace directory =...

    If you want all the storage space and the objects in these storage spaces, so I think it would be 2 steps:

    complete expdp = include = tablespace directory...
    expdp tablespaces = tbs1, tbs2,... happy = metadata_only...

    You have not need of content = data_only, but you had it on two orders expdp so I guess that's what you wanted, so I added it.

    If you have a different purpose, then publish it and I'll see what I can find.

    Dean

    p.s. If you want to see what items are included in a particular mode you can query sys.datapump_paths. Het_type is the mode

    Full = look het_type DATABASE_EXPORT
    schemas =... Watch het_type SCHEMA_EXPORT
    tables =... Watch het_type TABLE_EXPORT
    tablespaces =... Watch het_type TABLE_EXPORT
    look at transport: het_type TRANSPORTABLE_EXPORT

    Published by: Dean WINS on February 2, 2010 09:18

  • Exclude the partition during the updating of the BCV

    Hello
    On the source, there is a table of compartmentalized. The developer wants to load the data in a specific partition. But does not carry the destination database when it gets cloned. This is to save on storage space. The destination records database and this particular partition is not required on the database.
    I can't use expdp include partition options because the entire database is updated using the bcv copy.
    I can't try to create the partition in a different tablespace because even in this case, BCV copy would still physically copy the files. So even if I change the control file creation script (excluding data files that are part of this tablespace partitoned), it benefits from the scenario.
    The other options I have are to copy the data to destination and drop the partition on the destination. But which somehow defeats the purpose. The goal is to save storage and copy in time.

    Are there any alternatives to this scenario?

    Thank you
    MSK

    BCV is much faster. But more quick isn't necessarily a good thing.

    You could make the tablespace readonly or you could just tell RMAN to exclude it from the backup.
    Search: CONFIGURE EXCLUDE for the TABLESPACE in the docs.

    Or use an existing backup and restore it simply cannot.

    Choice is yours.

  • expdp containing several clauses INCLUDE throwing error

    I have a settings file that you want to export a few tables of a PRD schema as follows:
    Directory = REF_P04
    schemas = PRD
    INCLUDE = TABLE: 'LIKE 'PRD_DATA_ %' ',: ' LIKE "PRD_SI_ % '"
    dumpfile = prd_call.dmp
    logfile = prd_call.log

    Number of tables for "PRD_DATA_ %" = 78
    Number of tables for '% PRD_SI_' = 98

    According to the document include syntex is: INCLUDE object_type = [: name_clause] [,...]

    So I can't quote the names of tables in the paragraph. I'll add a clause to add other tables like this more.

    I run the above nominal file as: expdp system/xxxxxxx parfile = myexp.par

    Error I get is:
    Export: Release 10.2.0.3.0 - 64 bit Production on

    Copyright (c) 2003, 2005, Oracle. All rights reserved.

    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64 bit Production
    With partitioning, OLAP and Data Mining options
    ORA-39001: invalid argument value
    ORA-39071: value for INCLUDE is ill-formed.
    ORA-00907: lack of right parenthesis

    See support Note 341733.1, it says that includes several will be d, not quite what we think happens - get only the table names corresponding to these two clauses "LIKE... "included.

    So two tracks separate expdp could do one for each "LIKES...". »

  • EXPDP from another user

    Hello

    I am running an expdp from the MYUSER USER1's schema. It is of her parfile:

    REUSE_DUMPFILES = YES

    CONTENT = ALL

    SCHEMAS =MYUSER

    INCLUDE = SΘQUENCE

    INCLUDE = TABLE: "IN (SELECT TABLE_NAME".

    FROM ALL_TABLES

    WHERE OWNER = 'MYUSER'.

    (ET TABLE_NAME PAS LIKE «% TEMP» ) '

    DIRECTORY = MY_DIRECTORY

    It's my IMPDP command:

    Impdp USER1User1 /pwd

    REMAP_SCHEMA =MYUSER:User1

    Directory = MY_DIRECTORY

    content = ALL

    DUMPFILE = xxxxx.dmp

    logfile = xxx.log

    In the import log file, there is this error during the creation of trigger:

    ORA-31685: TRIGGER object type: "USER1". " MYTRIGGER" insufficient privileges: "

    «CREATE TRIGGER «USER1"» MYTRIGGER ".

    BEFORE THE UPDATE

    ON MYUSER. MYTABLE FOR EACH LINE

    DECLARE

    BEGIN

    .....

    ....

    END;

    REMAP_SCHEMA does not work for the triggers?

    Any solution?

    Thank you

    Salvation;

    I hope you can understand this time clearrly.

    > From a schema of the source

    > select * from tab where tNom like '% t';

    TNOM TABTYPE CLUSTERID

    ------------------------------ ------- ----------

    TABLE OF TRANSPORT

    TABLE TEST2

    TEST TABLE

    TEMP3 TABLE

    TEMP2 TABLE

    TEMP1 TABLE

    TEMPORARY TABLE

    T3                             TABLE

    T2                             TABLE

    T1                             TABLE

    10 selected lines.

    $ param_test.ini of car

    UserID = System/Manager

    dumpfile = dp:1.dmp

    schemas =xxxx

    exclude = TABLE: "LIKE '% TEMP.

    Exclude = table: "in ('T1', 'T2', 'T3')" "

    REUSE_DUMPFILES = yes

    parfile param_test.ini expdp = $

    ..

    ..

    . . exported "XXXX". ' ' CLASS ' 5,507 KB 6 ranks

    . . exported "XXXX". "" LOGTAB "lines 282,4 16720 KB

    . . exported "XXXX". "' CHAIN_ROW_TEST ' 29,28 KB 3 lines

    . . exported "XXXX". "" CHAINED_ROWS "7,820 KB 8 lines

    . . exported "XXXX". "' CONT_EMP ': 'P1' 7,531 KB 4 rows

    . . exported "XXXX". "' CONT_EMP ': 'P2' 7,593 KB 5 rows

    . . exported "XXXX". "' CONT_EMP ': 'P3' 7,593 KB 5 rows

    . . exported "XXXX". "" DEPT "6,632 KB 12 ranks

    . . exported "XXXX". "" EMP "lines of 12,09 68 KB

    . . exported "XXXX". "" PAYROLL "lines of 8,09 68 KB

    ...

    ...

    $ impdp system/dumpfile = dp:1.dmp remap_schema = xxxx:oradba Manager

    . . imported "ORADBA. ' ' CLASS ' 5,507 KB 6 ranks

    . . imported "ORADBA. "" LOGTAB "lines 282,4 16720 KB

    . . imported "ORADBA. "' CHAIN_ROW_TEST ' 29,28 KB 3 lines

    . . imported "ORADBA. "" CHAINED_ROWS "7,820 KB 8 lines

    . . imported "ORADBA. "' CONT_EMP ': 'P1' 7,531 KB 4 rows

    . . imported "ORADBA. "' CONT_EMP ': 'P2' 7,593 KB 5 rows

    . . imported "ORADBA. "' CONT_EMP ': 'P3' 7,593 KB 5 rows

    . . imported "ORADBA. "" DEPT "6,632 KB 12 ranks

    . . imported "ORADBA. "" EMP "lines of 12,09 68 KB

    . . imported "ORADBA. "" PAYROLL "lines of 8,09 68 KB

    ..

    ..

    ORADBA > select trigger_name, trigger_type, table_name, State user_triggers;

    TABLE_NAME TRIGGER_NAME, TRIGGER_TYPE STATUS

    -------- ---------------------- ------------------- -----------------

    TRI_EMP AFTER EMP ACTIVE STATEMENT

    ORADBA > select * from tab where tNom like '% t';

    TNOM TABTYPE CLUSTERID

    ------------------------------ ------- ----------

    TABLE OF TRANSPORT

    TABLE TEST2

    TEST TABLE

    Want to exclude those who are not here. EX: (TEMP3 TEMP T3 T2 T1 TEMP1 TEMP2)

    IF YOU EXPORT THE TABLE, DEPENDENT OBJECT IS ALSO IMPORTED.

    Thank you

  • To understand how INLCUDE parameter expdp 11 GR 2

    Hello Experts-

    Can you please help me understand what I need to do for the next task.

    I export a schema and wanted to make sure that the tables and procedures have been exported so that I can use it to import when required.

    I made expdp as follows, but did not achieve what I was looking for:

    
    USERID=SYSTEM/***@DBNAME
    DUMPFILE=Export_06302015_%u.dmp
    LOGFILE=Export_06302015.log
    DIRECTORY=DIR
    SCHEMAS=ABC
    INCLUDE=PROCEDURE
    

    This export-only procedure performed.

    If I do just SCHEMA = default ABC includes procedure, function, package?

    Thanks in advance

    Hello, if you INCLUDE, datapump exports only items that explicitly write you in the INCLUDE clause.

    So if you don t use INCLUDE, you export all types of ABC schema objects.

    http://docs.Oracle.com/CD/B19306_01/server.102/b14215/dp_export.htm#i1007837

    Concerning

Maybe you are looking for