How to exclude some tables in inoort

Hi all,
how to exclude some tables . For example, I have Oracle
export file which contains a hundred tables, but I want to import all the tables except one, i.e. its (some table name) . Can I achieve this goal?
thanks in advance.

Hello,
It depends on your Oracle Release.
Up to Oracle *9.2* you have just the classical export/import utility.
So, you'll have to list the Tables you want to Import with the following parameter:
TABLES=(
<table_1>,
<table_n>
)Starting with *10.1* you have the Datapump (expdp / impdp). With this new utility you have the very useful parameter EXCLUDE. It works like that:
EXCLUDE=TABLE:"='<table>'"Please find a link about this topic:
http://www.oraclefaq.net/2007/03/09/expdp-datapump-excludeinclude-parameters/
Hope this help.
Best regards,
Jean-Valentin

Similar Messages

  • How to exclude some tables from schema level replicatio????

    Hi,
    I am working on oracle10g stream replication.
    My replication type is "Schema Based".
    So can anyone assist me to undersatnd, how to exclude some tables from schema based replication.
    Thanks,
    Faziarain

    You can use rules and include them in the rule set, lets say you dont want LCR to be queued for table_1 in schema SALES, write two rules one for DDL and another for DML with NOT logical condition.
    DBMS_RULE_ADM.CREATE_RULE(
    rule_name => 'admin.SALES_not_TALBE_1_dml', condition => ' (:dml.get_object_owner() = ''SALES'' AND NOT ' ||
    ' :dml.get_object_name() = ''REGIONS'') AND ' ||
    ' :dml.is_null_tag() = ''Y'' ');
    DBMS_RULE_ADM.CREATE_RULE(
    rule_name => 'admin.hr_not_regions_dlll',
    condition => ' (:dml.get_object_owner() = ''SALES'' AND NOT ' ||
    ' :ddl.get_object_name() = ''table_!'') AND ' ||
    ' :dsl.is_null_tag() = ''Y'' ');
    just go through this document once, http://download.oracle.com/docs/cd/B28359_01/server.111/b28321/strms_rules.htm#i1017376
    Edited by: user8710159 on Sep 16, 2009 5:21 PM

  • How to exclude a table when doing dbcc checkdb

    when running dbcc checkdb(mydb). it will go through all tables. Is it possible to exclude a table from dbcc checkdb?

    Thanks, Mark. When I run dbcc checkdb(mydb), it across a table and take over 18 hours and still waiting.
    the message is:
    Checking mytable: Logical pagesize is 2048 bytes
    The total number of data pages in this table is 1365692.
    The total number of pages which could be garbage collected to free up some space is 2923.
    then I stop it manually.
    Possibly something wrong with the table. When I run dbcc checktable on this table, it' also keep me waiting and never end. then I can't finish dbcc checkdb because of this table. the size of this table is about 3G. How to resolve this problem?

  • Export_to_Excel_pkg - How to exclude some fields in the export?

    While it does generate an excel spreadsheet, it includes all the columns of my report even though I have conditions on most of them. I allow the user to select the columns he/she wants in the report. So I want the Excel spreadsheet to have the same fields as the report. How can this be accomplished?
    <br><br>
    I use APEX 3.0.1 not APEX 3.1 and I don't use a report server.
    <br>
    <br>
    Please help!
    <br>
    Regards,
    Robert

    I was able to create an Excel spreadsheet excluding some fields based on the column's condition. I accomplished this by modifying the Export_to_Excel_pkg package. I added a new procedure and modified an existing one (print_report_header). I bolded the area where I changed or added code.<br><br>
    FOR c IN (SELECT   column_alias, NVL (heading, column_alias) heading,
                       format_mask
    ,condition_type,condition_expression1,condition_expression2
                  FROM apex_application_page_rpt_cols
                 WHERE page_id = p_page_id
                   AND application_id = p_app_id
                   AND region_id = TO_NUMBER (LTRIM (p_region, 'R'))
      -- AND include_in_export = 'Yes'
    AND (column_link_text is null or
    (column_link_text is not null and
    UPPER(column_link_text)=UPPER(column_alias))
    )            -- and column_is_hidden = 'No'
              ORDER BY display_sequence)
         LOOP
    if upper(c.condition_type) = 'PLSQL_EXPRESSION' then
    export_excel_pkg.get_include_in_report(p_page_id
    ,p_app_id
    ,p_region
    ,c.column_alias
    ,c.condition_expression1
    ,v_include_in_report);
    if v_include_in_report <> 'YES' then
    goto next_field;
    else
    null;
    end if;
    else
    null;
            end if;
            v_number_of_cols := v_number_of_cols + 1;
            v_column_header_list :=
                    v_column_header_list || ';' || REPLACE (c.heading, ';', ' ');
            v_column_alias_list := v_column_alias_list || ';' || c.column_alias;
            -- apply column formatting
            IF c.format_mask IS NOT NULL
            THEN
               v_column_select_list :=
                     v_column_select_list
                  || ',to_char('
                  || c.column_alias
                  || ','''
                  || c.format_mask
                  || ''') '
                  || c.column_alias;
            ELSE
               v_column_select_list :=
                                   v_column_select_list || ',' || c.column_alias;
            END IF;
    <<next_field>>
    null;     END LOOP;
    The new procedure:<br>
    PROCEDURE get_include_in_report (
    p_page_id IN number,
    p_app_id IN number,
    p_region IN VARCHAR2,
    p_column_alias IN VARCHAR2,
    p_condition_expression1 IN VARCHAR2,
    p_include_in_report OUT VARCHAR2)
    AS
    v_condition varchar2(20) := 'PLSQL_EXPRESSION';
    v_query varchar2(32767);
    v_include varchar2(3) := 'NO';
    v_cur_hdl INT;
    v_rows_processed INT;
    begin
    v_query :=
    'SELECT ''YES'' '
    || 'FROM apex_application_page_rpt_cols '
    || 'WHERE page_id = :g_page_id '
    || 'AND application_id = :g_app_id '
    || 'AND region_id = TO_NUMBER (LTRIM (:g_region, ''R'')) '
    || 'AND condition_type = :g_condition '
    || 'AND column_alias = :g_alias '
    || 'AND ' || p_condition_expression1 ;
    -- open cursor
    v_cur_hdl := DBMS_SQL.OPEN_CURSOR;
    -- parse the query
    DBMS_SQL.PARSE(v_cur_hdl,v_query,DBMS_SQL.NATIVE);
    -- Supply binds (bind by name)
    DBMS_SQL.BIND_VARIABLE(v_cur_hdl, 'g_page_id',p_page_id);
    DBMS_SQL.BIND_VARIABLE(v_cur_hdl, 'g_app_id', p_app_id);
    DBMS_SQL.BIND_VARIABLE(v_cur_hdl, 'g_region', p_region);
    DBMS_SQL.BIND_VARIABLE(v_cur_hdl, 'g_condition',v_condition);
    DBMS_SQL.BIND_VARIABLE(v_cur_hdl, 'g_alias',p_column_alias);
    -- Describe defines
    DBMS_SQL.DEFINE_COLUMN(v_cur_hdl, 1, v_include, 3);
    -- Execute
    v_rows_processed := DBMS_SQL.EXECUTE(v_cur_hdl);
    -- Fetch a row
    IF DBMS_SQL.FETCH_ROWS(v_cur_hdl) > 0 THEN
    -- Fetch columns from the row
    DBMS_SQL.COLUMN_VALUE(v_cur_hdl, 1, v_include);
    -- Process
    ELSE
    null;
    END IF;
    DBMS_SQL.CLOSE_CURSOR(v_cur_hdl); -- close cursor
    p_include_in_report := v_include;
    end;
    <br>
    <br>
    I hope this helps others as well.
    <br>
    <br>
    Regards,<br>
    Robert

  • How to exclude some customer for NOT printing an invoice.

    Hi, output control mechnism based on condition technique within SAP
    We print invoices for all our customers, so we "condition technique-ed" it simple on a simple access, for example Sales Area + Invoice type.
    Now we have one customer for which we do not want to print the invoice anymore (any reason);
    How to arrange/configure here some exclusion in a fine, way; for 'tomorrow' we do not want to print it for customer no2,3,4,5...etc..
    Outputcontrol records do not have/bear 'exclusion', like pricing-appplication.
    Anybody any good advises, please, thanx in advance,

    Hi,
    You can achieve your requirement by below method.
    You can change your access sequence from "Sales Org / Billing Type" to "Sales Org / Billing type / Bill-to party"
    In that case, you have to create output condition master records only for the Bill-to party who require printouts. (Tx: VV31)
    So when creating billing documents, for customers those have VV31 record will get print and other don't.
    This is how you do it in configuration.
    Create output condition table
    First you need to create a condition table. Go to V/63
    Choose "Create" from menu option "Condition". Enter a number more than 900 and press Enter
    Then like you create condition tables in pricing, create a new table for that sequence. Double click on the fields from "FieldCatlg" table in below sequence.
    Sales Org / Billing type / Bill-to party
    Upon double click it will add to "Selected fields" section. Once done, press "Generate" button (RED color circle)
    Press "YES" for the pop up.
    Select the relevant  Package and press OK. If you DO NOT want to create transport requests, then select "LOCAL OBJECT" button without giving a Package. If you want to Tr in to another client, ask your basis team to give the correct package.
    Note down the condition table number.
    Add the condition table to your Access Sequence
    Go to below IMG Path
    Sales and Distribution / Basic Functions / Output Control / Output Determination / Output Determination Using the Condition Technique / Maintain Output Determination for Billing Documents / Maintain Access Sequences
    If you want, create a new Access Sequence, Else you can add your new table to your existing access sequence as well.
    I'll tell how to create a new Acc Seq. Go to that node, While in 'Access Sequences' node, press "New Entries" button
    Create a new Acc Seq with your ID & Desc. Select that and double click on "Accesses" node
    Press "New Entries" button and enter "Ac No" and your new table number
    Highlight that line & double click on "Fields" node See whether relevant fields are there from the table.
    Save
    Now you need to add that Access Sequence to your relevant Output condition.
    Go to Sales and Distribution / Basic Functions / Output Control / Output Determination / Output Determination Using the Condition Technique / Maintain Output Determination for Billing Documents / Maintain Output Types
    Go to change mode an Go to relevant output type (Eg:RD00). Highlight it and click on "Magnifier Glass"
    Enter your new access sequence under field "Access sequence" from the "General Data" tab and Save
    Now go to VV31 record.
    Enter your output type and press enter. Since you have one acc seq, it'll directly take you in.
    Maintain relevant data for required customers only. Make sure your enter "Output Device" and those ticks for "Print immediately" and "Release after output" under "Communication" button with "Date time" = 4 in initial screen.
    Save.
    Now try from beginning.
    For those who have VV31 records will get print automatically. Others not.
    Best regards,
    Anupa

  • 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.

  • How to exclude some criteria like 'setup's owner' on the comparison report?

    We have tested the comparison report between different environments with the option 'display only difference'. However, the report includes all the setup because the owner of the setup is not the same (we have several people who setup our environments) and of course the last update date is also different (as the setup was created manually). How could we exclude from the comparison the "owner" and "last update date" ?
    Thanks
    Edited by: Christophe Ortiz on Dec 1, 2009 11:58 AM

    It requires good amount of code changes. I am afraid, this is not straight forward like changing the metadata. Give me few more days, let me see if there is any hack to achieve it easily.
    Thanks
    Mugunthan.

  • Siebel RecordMerge: How to exclude some entities from merging to the winner

    Hi all,
    I want to merge 2 accounts using Edit -> Merge Records.
    However, I don't want one of the related BCs (let's say contacts) to be merged to the Winner. I only want to transfer the rest like activities, opportunities etc. How do I exclude a child BC from the record merge?
    Should be fairly easy, but I can't find any related information.
    Thanks!

    I have the similar problem. I have ORA- in the Critical threshold and I just want to exclude ORA-00060 from critcial threshold. What will be the syntax for that? I do not want to filter it. I still want to recieve it as warning.
    Thanks
    Rinky
    Edited by: user11991081 on Oct 15, 2009 3:20 PM

  • How to exclude some valuation type in the MRP calculation ?

    Dear Experts ,
    We have C1,C2,C3 as valuation types each valuation type has quantities , The problem is the reorder point will put the quantities of C3 and C2 in consideration of the reorder point
    HOW TO DISABLE THIS ?????
    Please Advice

    Just like DB said, you must create a storage location where the MRP indicator is set as not relevant.
    To do this, you can make a permanent setting in OMIR.
    But for materials already extended to that location, you will have to do it manually for each material master. Do this setting in MRP 4 View against the storage that you would like to exclude from MRP.
    Hope this helps..

  • EXPORT at schema level, but exclude some tables within the export

    I have been searching, but had no luck in finding the correct syntax for my situation.
    I'm simply trying to export at the schema level, but I want to omit certain tables from the export.
    exp cltest/cltest01@clprod file=exp_CLPROD092508.dmp log=exp_CLPROD092508.log statistics=none compress=N
    Thanks!

    Hi,
    Think in simple first.. you use the TABLES Clause..
    Example.
    exp scott/tiger file=empdept.expdat tables=(EMP,DEPT) log=empdept.log
    In case if you scehma contains less number of tables.. !!
    Logically if you have large number of tables, I say this solutuion might work ...all around... alternative solutions to solve the problems.. If you have hundered of tables... in your schema....
    Try to Create a New Schema and using CTAS create a tables which are skippable in the Current Scehma.
    Do an Export and once the Job Done.. you recreate the backup fom New schema
    and Import to DB (Destinaiton)
    - Pavan Kumar N

  • How to exclude some ORA error from OEM monitoring

    Hi,
    We have been getting ORA-3217 alerts and to avoid them we have specified like this in metric and policy settings..
    Warning ------ORA-0*(600?|7445|4[0-9] [0-9] [0-9])(?!3217)[^0-9]
    critical---ORA-[0-9]*[^0-9]*(?!3217)
    since then it stopped sending all ORA alerts, anything wrong in the above thresold.
    Regards
    Edited by: user602441 on Aug 13, 2009 8:42 AM

    I have the similar problem. I have ORA- in the Critical threshold and I just want to exclude ORA-00060 from critcial threshold. What will be the syntax for that? I do not want to filter it. I still want to recieve it as warning.
    Thanks
    Rinky
    Edited by: user11991081 on Oct 15, 2009 3:20 PM

  • How to exclude reports from HIS in MSS 60.1.20?

    Does anyone know how to exclude some of the HIS reports from the tree? I am on a 4.6c system. I see that the table T77I3 contains the listing of REPIDs that are used to populate the REPOS table in the function module HR_HIS_READ. If I try to maintain this table using SM30, I see that SAP only allowed for updating the text descriptions. I was thinking the easiest way to remove items from the report tree without deleting them would be to change the REPID to just add an X or something to the end of the code so that the check against TRDIR will fail and exclude the item from the list. Does anyone know the best way to exclude reports from the HIS reports in the MSS -> My Staff -> Reporting -> Report Selection -> HIS Reports section?
    I will award points to the answer!

    Hi, did u find a solution for this? I'm having the same requirement.
    One way of solving the problem would be to copy the HR_HIS_READ function and change it to exclude the undesired reports. Then change the MDT Scenario by executing the Define Structure of Function Codes item in the IMG.
    DJ

  • How to excluse some of g/l accounts from budget checking - BCS

    Dear Experts
    We are implementing Funds Management -  BCS.
    We request you to clarify that  how to exclude some of g/l accounts from budget checking. (Here we need to give budget for all commitment items/fund center for variance calculation, but system should not stop when actual values exceeds budget values for SOME of g/l accounts only in BCS). 
    Kindly post your valuable replies to help us.
    Thanks and Regards
    PVSRG
    Moderator: Please, search SDN

    Hi.
    You can do it using additional account assignments(eg Funded program).In fmderive write logic like If Gl account 1, then FP=A.
    In Filter for Budget profile If FC=A, then profile=None.
    Or test EXIT_SAPLFMFA_001 for statistical update. there a structure ACCIT, where HKONT exists.

  • Can R3load skip some tables during import?

    We use DB-independent method to export/import SAP DB.
    Now the export is done by R3load.
    We want to exclude some tables in the import.
    I know  that R3load has an option "-o  T"  to  skip tables.
    However, we need to know
    1)  the exact syntax to put into export_monitor_cmd.properties
    2) still need the table structures to be imported even no data is wanted.
    Thanks!

    Lee and Rob,
    Thank you both for your responses.
    Rob, thank you sir... I appreciate greatly some possible solutions to implement.  The CollectionPreseter sounds very interesting.  I am relatively new to Light Room 3 (working through Kelby's book at the moment tryng to learn), so please excuse any lightly thought out questions.
    You mentioned the idea of setting up multiple collections where each would have its own preset.  So lets talk about a possible workflow scenario in order to help me understand whether I comprehend the functionality of what this plugin could do.
    Lets say I have 3 Collections with each having one preset assigned.
    Is it possible ->
    Workflow A
    That after I import photos and then assign into Collection 1, CollectionPreseter will assign the defined preset on Collection 1.
    Once applied, does the ability exist to then move the pictures from Collection 1 into Collection 2 (while keeping Collection 1 preset) to apply it's preset and then lastly Moving the pictures from Collection 2 (while keeping Preset 1 and 2) into Collection 3 to apply its preset? with Final Export.
    OR
    Workflow B
    Would the flow have to be something like this based on above:
    Import and place into Collection 1 (preset 1 is applied).  Export and Save
    Reimport and place into Collection 2 (preset 2 is applied). Export and Save.
    Reimport and place into Collection 3 (preset 3 is applied). Export and Save Final.?
    The other that I have not raised is what about droplets (actions) with Photoshop CS?  Are multiple droplets able to be applied and ran in a batch if I integrated with CS that way?
    Thank you...
    Steven

  • How to delete some date in target table at a mapping?

    How to delete some date in target table at a mapping?
    I extract date from source tabel into target table,
    but before extract date I want to delete some date from target?
    how to do?

    Just to change a bit of terminology in the reply, within the mapping, click on operator properties and choose TRUNCATE/INSERT.
    Note that truncate is dependent on constraints, so you probably must disable those before doing this. You can of course do DELETE/INSERT...
    Jean-Pierre

Maybe you are looking for

  • Can we setup two sets different 7912 logos in one CCM cluster?

    Hi, CCM 4.1(3) cluster within head office. We created the 7912 logo for system default image. However, the remote site 7912 phones, need to use a different logo other than the head office. as per http://forum.cisco.com/eforum/servlet/NetProf?page=net

  • Error while installing primavera p6.7

    hi i am facing error while installing primavera p6.7 error "pm database creation failed.contact support" also "mm database creation failed.contact support" i saied maybe from my system i tried on other pc put still same then i saied maybe from versio

  • Need help removing text that is covering the document - Adobe Acrobat Standard X

    I am trying to remove "preview only" that is splashed across our document diagonally.  I can remove this on my computer which has Adobe Acrobat XI standard with content editing --> edit text and images  (a cursor pops up and i can just use the delete

  • "Good Receipt" check box

    There is a "Good Receipt" check box on PO Delivery tab. If we removed that what is a impact on business?

  • Formulas in an Adobe Form

    I am trying to create a formula that will allow me to round up the answer.  The formula will take the total number of characters and divide by the total number per page to come up with the number of pages.  For instance is we take 1130 character and