Partitioning of a table in the production

Hello

Oracle 10.2.0.4

I partitioned a table lines about 100 million (62 GB) in Server DEV source. The target database was created again. It was partioned range on a column of date as follows:
PARTITION BY RANGE (ENTRY_DATE_TIME)
(
  PARTITION ppre2012 values less than (TO_DATE('01/01/2012','DD/MM/YYYY')) TABLESPACE WST_LRG_D,
  PARTITION p2012 values less than (TO_DATE('01/01/2013','DD/MM/YYYY')) TABLESPACE WST_LRG_D,
  PARTITION p2013 values less than (TO_DATE('01/01/2014','DD/MM/YYYY')) TABLESPACE WST_LRG_D,
  PARTITION p2014 values less than (MAXVALUE) TABLESPACE WST_LRG_D
)
It's every year. Nothing before 2012 to p2013 ppre2012, then 2012, and so on. There are 20 million lines in 2012. and about 75 million lines of ppre2012. We had as well to the tables (partitioned) target DEv and (unpartitioned) source for comparison. Queries are normally on the partition for the current year. Just to say that I am a developer and do not have full visibility to the production instance.

Now that our tests are completed, we would like to promote this production. Of course in production we would not not need source and target tables. In all likelihood, this will be done on a weekend window. This is why I would like to suggest the following.

(1) use expdp export the source table
(2) remove the table from the source
(3) create a new source "partitioned" no index table
(4) use impdp to retrieve data in a table
(5) create a global index (it's a unique index to enforce the uniquness) and the rest of the clues like local
(6) run dbms_stats.gather_table_stats (waterfall of the user, 'SOURCE' = > true). It takes about 2 hours by dev

My point is that, if the importation of 100 million lines will cause no issues with segments of cancellation. Can we import data say firstly to the current partition (20 million lines) 2012 first. Any practical advice is appreciated.

Thank you

Published by: 902986 on November 2, 2012 02:08

Published by: 902986 on November 2, 2012 03:10

>
-Why do I get "ORA-12838: cannot read/modify an object after edit it in parallel."
>
Why don't find you the error and read the cause "that applies?
http://ORA-12838.ora-code.com/
>
ORA-12838: cannot read/modify an object after edit it in parallel
Cause: In the same transaction, an attempt was made to add instructions for reading or changing on a table once it had been amended at the same time or with a direct charge. This is not allowed.
>
Do you have a 'direct charge '? Yes - you can not do anything else under this operation. Do a COMMIT or ROLLBACK first.

Tags: Database

Similar Questions

  • Reinstall Windows 7 - laptop does not come with a disc or I do not have the recovery partition, all I have is the product key

    Hello

    I am running windows 7 Professional on my laptop. I need to know how to format and re install the operating system. My laptop does not come with a disc or I do not have the recovery partition, all I have is the product key. I would also like to know the pilots.

    Kind regards

    Aty.

    Former title: reinstalling Windows 7

    Well, your only option is to get the Windows 7 Home Premium disc by following the instructions that I described in the following article:

    How to: What are my options for Windows 7 reinstall media?

    Then follow the instructions to retrieve reinstall them:

    http://techingiteasy.WordPress.com/2012/04/13/how-to-activate-Windows-7-OEM-license-using-a-retail-disc/

    But before you do, make sure that you get the Windows 7 Professional product key if you need to reapply in the future:

    Here are four utilities, which can display your product keys if they are still there:
    Belarc Advisor: http://www.belarc.com/free_download.html
    (He did a good job of providing a wealth of information.)

    Also: http://www.magicaljellybean.com/keyfinder.shtml
    and: http://www.nirsoft.net/utils/product_cd_key_viewer.html
    and RockXP: http://www.majorgeeks.com/download4138.html which has additional features

  • AGAIN starts after only one physical disk has several partitions makes no sense to the production oracle database?

    Dear Experts,

    Don't + REDO1 diskgroup have only one physical disk has several partitions makes no sense to the production oracle database?

    For example

    • + Diskgroup Redo1 have 2 50 GB disks (fact these 2 discs are the same physical disk partitions OR these should be separate disk as recommended approach)?
    • + Diskgroup Redo1 have 2 drives of capacity 50 GB (for RAID 1 + 0)
    • + Diskgroup Redo2 have 2 50 GB disks
    • + Diskgroup Redo2 have 2 drives of capacity 50 GB (for RAID 1 + 0 )

    Thank you and best regards,

    IVW

    Hello

    Partitioning your disks for ASM configuration as 'A' might make sense. If you lose one disk, you have the discs to another.

    'B' totally make sense if you have lost the disc that you have lost all group ASM and you need to change this with something like 'C '.

    But obviously you need redundancy ASM configured appropriately.

    Kind regards

    Juan M

  • create table on the production database

    Hi expert I want some knowledge in real time
    If a user has requested to create a table on the production database where DBA one should contact 1.
    form where dba approval for create table.


    Thanks and greetings
    Sanat

    It depends on your hierarchy of society. Generally, your immediate boss.

  • Searchable table on the product Page?

    So I'm in the middle of making a Web site, and I began with Adobe Muse. The site was almost finished, and then told me that the Web site must include a table that lists all of our products. A visitor will be able to search through the table, click all results and bring them to a page with more information about the product. Now the problem is that there are literally hundreds of products.

    So, after hours of research, I thought a list of spreadsheet will be done first of all products (including photos). On this basis, the table will be made. Using HTML, CSS and JQuery.

    Is there an easier way to do this in Dreamweaver? From my understanding, Muse is not really have this feature, so I plan on making it in Dreamweaver and its import in Muse by using "Import HTML.

    Now for the second part: each product must be clickable and keep the visitor produced a page with more information. Normally, it would be easy if it were not for the large number of products. Is there a way for me to make a model and have the code auto fill depending on what happens when the user clicks on?

    Since this is the first time that I am to tackle a problem like this, any help will be appreciated!

    I have access to the creative cloud together if this is useful.

    Close enough example of what I need:

    http://www.conciergerealty.com/sale-...price_value_1=

    A  visitor will be able to search through the table, click on any results and take them to a page with more information on the product. Now the problem is that there are literally hundreds of products.
    
    So after hours of searching, I figured a spreadsheet listing all the products (including pictures) will be made first. From this, the table is going to be made. Using HTML, CSS, & JQuery.
    

    Forget not on the use of Muse for all this.

    First of all, you need a database server like MySql side.  Then you must create the SQL tables to hold your product information.   Then you need such as PHP server-side code to join the tables of database of your server and pull content dynamically in the summary pages & product details.  In addition, you will probably want to create a back-end CMS for editing / adding new products to the database.

    If advanced programming is totally foreign to you, you can create your site in Adobe Business Catalyst with their purchase module. British Colombia is a unified platform that includes web hosting.   It has pretty much everything you need for the products in a database entry and sells items online.  No heavy coding experience is necessary.

    Nancy O.

  • Impossible to delete the partitions of a table with the number of rows is zero

    Hi all

    I want to delete all partitions on all the tables in a schema having the number of lines equal to zero.

    I use the queries below to get a solution.

    Select 'EDIT '. '' || 'TABLE ' | TABLE_NAME | 'DROP '. 'PARTITION | Nom_partition from dba_tab_partitions where TABLE_OWNER = "xyz";

    Select count (*) in the table table_name partition (nom_partition).

    Edited by: 887563 October 17, 2011 13:39

    If you trust your statistics, you can simply use the stat num_rows in dba_tab_partitions:

    select *
    from dba_tab_partitions
    where table_owner = 'MY_SCHEMA'
    and num_rows = 0;
    

    But I think what you try to get some code like this:

    declare
      v_rows number;
      v_statement varchar2(500);
    begin
      for c in (select *
                from dba_tab_partitions
                where table_owner = 'MY_SCHEMA') loop
        v_statement := 'select count(*) from '||c.table_name||
                       ' partition ('||c.partition_name||') where rownum=1';
        --dbms_output.put_line(v_statement);  --for debugging
        execute immediate(v_statement)
        into v_rows;
        --dbms_output.put_line(c.table_name||' '||c.partition_name||' '||v_rows);  --for debugging
        if v_rows = 0 then
          v_statement := 'ALTER TABLE '||c.TABLE_NAME||' DROP PARTITION ' || c.PARTITION_NAME;
          dbms_output.put_line(v_statement); --shows the drop statements
          --execute immediate(v_statement); --remove comment to execute
        end if;
      end loop;
    end;
    
  • Problem with trunacating the partitions of a table.

    Hi all

    I have a table partitioned, called temp1_list_cmpgn_hist_dtl, and it is partitioned by month (campaign_start_date).

    I tried, queries
    TRUNCATE TABLE temp1_list_cmpgn_hist_dtl PARTITION t_list_cmpgn_201006
    TRUNCATE TABLE temp1_list_cmpgn_hist_dtl PARTITION t_list_cmpgn_201006 REUSE STORAGE

    but it throws me the following error message:
    SQL error: ORA-03291: Invalid truncate option - missing keyword STORAGE
    03291 00000 - "invalid truncate option - missing keyword STORAGE"
    * Cause: Keyword STORAGE planned
    * Action: Specify DROP STORAGE or reuse STORAGE

    Also, I'll try to find the nom_partition for the 'temp1_list_cmpgn_hist_dtl' table, but it shows not all partitions, although there are partitions.
    I tried the query,
    SELECT Nom_partition from user_tab_partitions WHERE table_name = 'temp1_list_cmpgn_hist_dtl '.

    THX,
    Rod.

    You cannot truncate individual partitions of a table. The closest you could come would be to do a swap partition with an empty table created to match your partition.

    Also, I'll try to find the nom_partition for the 'temp1_list_cmpgn_hist_dtl' table, but it shows not all partitions, although there are partitions.
    I tried the query,
    SELECT Nom_partition from user_tab_partitions WHERE table_name = 'temp1_list_cmpgn_hist_dtl '.

    All the names of objects in the Oracle database, by default, are stored in uppercase letters, so make sure the upper case of the table name.

    John

  • Windows cannot be installed to this disk. the selected disk is a MBR partition table. The EFI system, Windows cannot be installed on GPT disks

    Server 8 installation error "Windows cannot be installed to this disk. the selected disk is a MBR partition table. The EFI system, Windows cannot be installed to GPT disks.

    How do I resolve this problem and install windows 8 as usual? I have several partitions with data... I don't want to delete all partitions and create partitions from scratch and install the os...

    How to get there?

    Windows cannot be installed to this disk. the selected disk is a MBR partition table. The EFI system, Windows cannot be installed to GPT disks.

    This could happen not only windows 8, but also windows 7, windows Server 2008, or 8 server 2008 R2... Troubleshooting steps will be similar for all windows to get this problem...

    I had this problem when installing server 2008 r2 on a dell... T110 server without remove the other partitions or lose all the data on the other drivers, you can solve this problem...

    simply, I have followed these steps using gparted and solved my problem... These measures will be useful for anyone with similar problem... . All the steps that I've documented here... All the steps I've documented here...

    https://www.pcandtablet.com/Windows-8-errors-and-crashes/846/Windows-cannot-be-installed-to-this-disk-the-selected-disk-has-an-MBR-partition-tabl.html

  • LOV cascading if I don't have only one table with the customer name and the name of the product in the ADF.

    Hi Please help me how to use cascade, if I don't have only one table with the customer name and the name of the product in the ADF... I use Jdeveloper 11.1.

    For the client, I used customer VO with client list to fill but to populate the product that I use bind variable PrODUCT_NAME select distinct from TABLE where client_name =: bindCustomer

    so first of all, I need to set the variable of liaison on behalf of the selected customer.

    Can you please tell me how to set this variable binding in this case.

    After you set the LOV to your product attribute, correspondting VO in the LOV will appear under view accessors.

    Change the accessor of the view, you will see the variable binding. Set its value to the customer field of the parent object.

    Visit this link: https://www.youtube.com/watch?v=nXwL2_RP7AQ

    Kind regards

    Elias.

  • How to disable constraint on a table to the partition level

    Hello

    I want to load data in a particular partition of a table.

    I want to disable constraints on the particular partition of the table during load and I am currently loading.

    I don't want to disable the constraint on the entire table and allow him later... as it may take more time...

    Similar to the way in which we can mark the index of a particular "UNUSABLE" during a bulk load score, is it possible to do the same for the constraints also?

    You can not

  • Partitioning of an existing Table using the EXCHANGE PARTITION

    Hi all

    I have one unpartitioned table I partitioned by Exchange, this table has several indexes and constraints (primary and foreign).

    ALTER TABLE notpart_table ADD (
        CONSTRAINT PK_KCESPITI PRIMARY KEY (K_CESP, TIPORD)
            USING INDEX TABLESPACE TBLS_CONTA,
        CONSTRAINT FK_KCONTO_CE FOREIGN KEY (K_CONTO) REFERENCES xxxx (K_CONTO));
    
    CREATE INDEX IX_NFATTURA_CE ON notpart_tab (ANNO_FATTURA, K_REGISTRO, K_REGFA, TIPORD)
        TABLESPACE TBLS_CONTA;
    
    
    
    
    

    after Create a partitioned Table Destination

    notpart_table2, I created the same constraints and indexes defined in notpart_table


    When I run


    ALTER TABLE notpart_table2
      EXCHANGE PARTITION PART_notpart_table2
      WITH TABLE notpart_table
      WITHOUT VALIDATION
      UPDATE GLOBAL INDEXES;
    
    
    
    

    I get: ora-02266

    Why?

    Thanks in advance for any help


    Post edited by: vigilant Rosario

    It is not exactly what you have. Very probably not partitioned table, you are partitioning is the parent to another table table:

    SQL > create table tbl1 (id number)
    2.

    Table created.

    SQL > alter table tbl1
    2 Add the constraint tbl1_pk
    3 primary key
    4.

    Modified table.

    SQL > create table tbl2 (id number)
    2.

    Table created.

    SQL > alter table tbl2
    2 Add the constraint tbl1_fk1
    3 foreign key
    4 references tbl1
    5.

    Modified table.

    SQL > insert into tbl1 values (1)
    2.

    1 line of creation.

    SQL > insert into tbl2 values (1)
    2.

    1 line of creation.

    SQL > create table tbl1_part (id number)
    2 partition by range (id)
    3 (partition p1 values less than (1000000))
    4.

    Table created.

    SQL >
    SQL > alter table tbl1_part
    Exchange 2 partition p1
    3 with table tbl1
    4 without validation
    5 update global indexes
    6.
    with table tbl1
    *
    ERROR at line 3:
    ORA-02266: permit to unique/primary keys in table referenced by foreign keys

    SQL >

    If so, of the foreign key and recreate it pointing to the partitioned table as parent after finished partitioning the table.

    SY.

  • Move the data from partition to partition of MAX table?

    11 GR 2, RHEL, 64-bit

    Guys,

    Is there a way to MOVE data to a specific partition on MAX in a partitioned table?

    While I can drop this specific partition and recreate it later, but I want the data to be resident in the MAX score until I recreate this specific partition.

    Pls suggest me?

    Thank you

    Hari

    Depends on the way in which the partitions are defined (the partition limit values), each partition will allow only certain values must be stored.

    Logically, the lines that are in partition 'A' cannot return to the partition'm ' because the limit / list of values for the two partitions is different.

    You can move the lines of a fictitious table / temp, but probably not to another partition until and unless MERGE you partitions (in which case the original partition doesn't exist).

    Hemant K Collette

  • Hi, I'm developing a simple mobile app in DW CC 2015 using JQuery Mobile. LIKE I need the list view with description of the product, functionality and image, I would like to connect with database instead of "writing" all the tables in the bearings inside

    Hi, I'm developing a simple mobile app in DW CC 2015 using JQuery Mobile. LIKE I need the list view with description of the product, functionality and image, I would like to connect with database instead of "writing" all the tables in the bearings inside the Jquery page. In the future I would also be able to add, to remove the DB records. Any help, tutorial... Thanks TG

    I would like to connect with the database instead of "writing" all the tables in the bearings inside the Jquery page

    This is usually done with a CMS (content management system). There are commercial products CMS like WordPress, Joomla and perch. You create one or several layouts and then create pages of these page layouts using the CMS. In this way, it is possible to have hundreds of pages, each with unique content, but a page layout that can be managed in a place of sharing.

    CMSs on shelf don't require programming skills. Otherwise, some of us write our own CMS with custom functions, but this requires back-end, as with PHP programming.

  • Customizing the Table of related products

    Working with a sensitive layout, I have a problem with the table of related products using the {tag_relatedproducts}. I got the layout of small product to respond well, but not when it appears in the productTable productItem table of the elements. Tips for each productItem stack, with every other compensation?

    Thanks in advance!

    Never mind. I simply applied the following CSS

    TR .productItem {}

    Width: 100%;

    height: auto;

    Clear: both;

    display: block;

    }

  • A slower loading into partitioned table as the non partitioned table - why?

    Hello

    Using oracle 11.2.0.3.

    Have a large fact table and do some comparative tests on the loading of large amounts of data histroical (several hundred GB) in fact range partitioned to date table.

    Although I understand if use exhange partition loading may be faster to load a partitioned table, trying to figure out why a standard sql insert takes 3 x long to load a table partitioned compared to an identical table but not partitioned. Identical EVERYHING in terms of columsn and the sql that the insert and second partitioned sql execution to
    ensure caching with no impact.

    Local partitioned table a partitioned bitmap index as compared to the non-partitioned table that has standardnon-partioned bitmap indexes.

    Any ideas/thoughts?

    Thank you

    One would expect that the queries that cannot no partition pruning may be slowed down, Yes.

    An easy way to see this is to imagine that you have a partitioned local index b-tree and a query that needs to scan all partitions of the index to find a handful of lines that interest you (of course, this is not likely to be exactly what you see probably but we hope informative of the source of the problem). Let's say that each partition of the index has a height of 3, so for each partition, Oracle has read 3 blocks to reach the correct terminal node. So to analyze each of the N index partitions, you need block index 3 * N bed. If the index is not partitioned, perhaps the height of the index would go up to 4 or 5 If, in that case not partitioned, you must read 4 or 5 blocks. If you have hundreds or thousands of partitions, it can easily be hundreds of times more work to analyze all the index partitions individual he would to analyze one unpartitioned index.

    Partitioning is not a magical option "go faster". It is a compromise - you optimize certain operations (such as those that can partition pruning) at the expense of operations that do not partition size.

    Justin

Maybe you are looking for

  • Are there fees for this type of protection?

    I was wondering if this was regarded as additional to the app basically.

  • Equium A100-027: recovery disk remove second partition data?

    I installed the update of Windows Vista Service Pack 2 and now the laptop will not charge.I have a partitioned hard drive and will have to use the restore product disc. I have a lot of pictures and things on the second part of the hard drive.I want t

  • satellite A30: problems after upgrade to XP Prof

    I have two problems with the A30... I bought with XP Home and then upgraded to XP Pro, 1 problem, when I tried to install SP2, the laptop went into a loop of reloading, and the only way to solve was to return back to its original state, so is there a

  • After replacing the digitizer faulty display

    I replaced the digitizer on my iPad mini 1 and now screen jump around without touching.

  • Adding the installed components

    I worked on this problem for a few weeks now with no luck. I downloaded and installed eclipse and the plugin... but can not use anything other than JDE 4.5. I have other packages of components installed on my computer in Program Files/Research In Mot