Create table, PARTITION, compress ORACLE SUPPORT PLS !

Can someone PLEASE explain to me the following (read carefully):
SQL> create table abc
2 (a number)
3 PARTITION BY LIST(a)
4 (PARTITION A_A values (2),
5 PARTITION A_B values (DEFAULT) COMPRESS);
Table created.
SQL> alter table abc add b number;
alter table abc add b number
ERROR at line 1:
ORA-22856: cannot add columns to object tables
SQL> alter table abc modify partition A_B nocompress;
Table altered.
SQL> alter table abc add b number;
alter table abc add b number
ERROR at line 1:
ORA-22856: cannot add columns to object tables
SQL> drop table abc;
Table dropped.
SQL> create table abc
2 (a number)
3 PARTITION BY LIST(a)
4 (PARTITION A_A values (2),
5 PARTITION A_B values (DEFAULT));
Table created.
SQL> alter table abc modify partition A_B compress;
Table altered.
SQL> alter table abc add b number;
Table altered.
I definetelly think this is a BUG !

14464, 00000, "Compression Type not specified"
// *Cause: Compression Type was not specified in the Compression Clause.
// *Action: specify Compression Type in the Compression Clause.                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • Automatic table partitioning in Oracle 11g

    Hi All,
    I need to implement automatic table partitioning in Oracle 11g version, but partitioning interval should be on daily basis(For every day).
    I was able to perform this for Monthly and Yearly but not on daily basis.
    create table part
    (a date)PARTITION BY RANGE (a)
    INTERVAL (NUMTOYMINTERVAL(1,'*MONTH*'))
    (partition p1 values less than (TO_DATE('01-NOV-2007','DD-MON-YYYY'))
    Table created
    create table part
    (a date)PARTITION BY RANGE (a)
    INTERVAL (NUMTOYMINTERVAL(1,'*YEAR*'))
    (partition p1 values less than (TO_DATE('01-NOV-2007','DD-MON-YYYY'))
    Table createdBut if i use DD or DAY instead of YEAR or MONTH it fails......Please suggest me how to perform this on daily basis.
    SQL>
      1  create table part
      2  (a date)PARTITION BY RANGE (a)
      3  INTERVAL (NUMTOYMINTERVAL(1,'*DAY*'))
      4  (partition p1 values less than (TO_DATE('01-NOV-2007','DD-MON-YYYY'))
      5* )
    SQL> /
    INTERVAL (NUMTOYMINTERVAL(1,'DAY'))
    ERROR at line 3:
    ORA-14752: Interval expression is not a constant of the correct type
    SQL> create table part
    (a date)PARTITION BY RANGE (a)
    INTERVAL (NUMTOYMINTERVAL(1,'*DD*'))
    (partition p1 values less than (TO_DATE('01-NOV-2007','DD-MON-YYYY'))
    );  2    3    4    5
    INTERVAL (NUMTOYMINTERVAL(1,'DD'))
    ERROR at line 3:
    ORA-14752: Interval expression is not a constant of the correct typePlease suggest me to resolve this ORA-14752 error for using DAY or DD or HH24
    -Yasser

    Yes, for differenct partitions for different months.
    interval (numtoyminterval(1,'MONTH'))
    store in (TS1,TS2,TS3)
    This code will store data in partitions in tablespaces TS1, TS2, and TS3 in a round robin manner.
    for Day wise day yes you can store
    INTERVAL (NUMTODSINTERVAL(1,'day')) or
    INTERVAL (NUMTODSINTERVAL(2,'day')) or
    INTERVAL (NUMTODSINTERVAL(3,'day')) or
    INTERVAL (NUMTODSINTERVAL(4,'day')) or
    INTERVAL (NUMTODSINTERVAL(5,'day')) or
    INTERVAL (NUMTODSINTERVAL(n,'day'))

  • Creating Table Partitions

    Does someone can explain me how to create Table Partition in Designer?
    I find nothing in the help content...
    thanks
    Chris

    Hi Uli,
    Partitions are not yet defined in the ODI metadata, you could add a step in the DDL procedure generated by CFD that would handle the creation of the partition.
    Thanks,
    Julien

  • Creating table partitions via Common Format Designer

    I am looking for a way to create table partitions via the Common Format Designer in my Models.
    As far as I see this is not something that ODI can handle with the out of the box install.
    Is this sth that can be added as part of an action or similar?
    thanks
    uli

    Hi Uli,
    Partitions are not yet defined in the ODI metadata, you could add a step in the DDL procedure generated by CFD that would handle the creation of the partition.
    Thanks,
    Julien

  • Table Partitioning in Oracle 9i

    Hi all,
    I have a question on partitioning in Oracle 9i.
    I have a parent table with primary key A1 and attribute A2. A2 is not a primary key but I would to create partition for the table based on this attribute. I have a child table with attribute B1 being a foreign key to A1.
    I wish to perform a data purging on the parent and child table. I'll purge the parent table based on A2, but for the child table, it will be inefficient if I delete all records in child table where parent.A1 = child.B1. Should I add a new attribute A2 to the child table, partition the child table based on this attribute or is there a better way to do it?
    Thanks in advance for all replies.
    Cheers,
    Bernard

    Bernard
    Right 100K in the parent...but how many in the child ?
    I guess it comes back to what I said earlier...you can either take the hit on the cascaded delete to get out the records on the child table or you can denormalise the column down onto the child table in order to partition by it.
    I'm building a Data Warehouse currently and we're using the denormalise approach on a couple of tables in order to allow them to be equipartitioned and enable easier partition management and DML operations as you've indicated....but our tables have 100's of millions of rows in them so we really need to do that for manageability.
    100K records in the parent - provided the ratio to the child is not such that on average each deleted parent has 100's of children is probably not too onerous, especially for a monthly batch process - the question there would be how much time do you have to do this at the end of the month ? I'd probably suggest you set up a quick test and benchmark it with say 10K records as a representative sample (can do all 100K if you have time/space) - then assess that load/time against your month end window....if its reasonably quick then no need to compromise your design.
    You should also consider whether the 100K is going to remain consistent over time or is it going to grow rapidly in which that would sway you towards adding the denormalisation for partitioning approach at the outset.
    HTH
    Jeff

  • Create Table with Compress for OLTP and error ORA-14464

    Hello,
    i have a Oracle-DB 11.2 and want to use Advanced Compression.
    I want to create a table:
    CREATE TABLE TD_GE_1990
    ( "name_id" NUMBER(1,0),
    "name_txt" VARCHAR2(100 BYTE)
    ) COMPRESS FOR OLTP;
    But i get:
    SQL-Fehler: ORA-14464: Kompressionstyp nicht angegeben
    The "compatible"-Parameter is set to 11.1:
    SELECT value
    FROM gv$parameter
    WHERE name LIKE '%compatible%';
    11.1.0.0.0
    Do i have to change something in the database?
    Best regards
    Heidi

    14464, 00000, "Compression Type not specified"
    // *Cause: Compression Type was not specified in the Compression Clause.
    // *Action: specify Compression Type in the Compression Clause.                                                                                                                                                                                                                                                                                                                                                                                   

  • What is the best way to dynamically create table partition by year and month based on a date column?

    Hi,
    I have a huge table and it will keep growing. I have a date column in this table and thought of partition the table by year and month. Can any you suggest better approach so that partition will create automatically for new data also along with the existing
    data? Nothing but automatically/dynamically partition should create along with file group and partition files.
    Thanks in advance!
    Palash 

    Also this one
    http://weblogs.sqlteam.com/dang/archive/2008/08/30/Sliding-Window-Table-Partitioning.aspx
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Table Partitioning in Oracle 8i

    Can tables be partitioned in Oracle 8i Standard Edition, or do I have to have the Enterprise Edition? I'm trying to deal with backup of a large database, and want to consider performinig partial backups to save time/resources. Thanks.

    Hi,
    You need entreprise edition for that.
    no other way

  • Dynamically create Table partition

    Hi all,
    Anybody having script to add partition to a table using plsql.My requirment is to create partition for every month ( time_id , from time attribute table ) dynamically.
    Thanks in Advance
    Ramesh K C R

    Just build you SQL statement to create partition in a VARCHAR2 variable
    and use EXECUTE IMMEDIATE to run it.
    Take care to have been granted directly privileges to run CREATE TABLE, ALTER TABLE (not through a role) or create you code with AUTHID CURRENT_USER clause.

  • SQL Developer Data Modeler? Is possible to create table partitions using

    Hi,
    I have been surfing on table properties and I have been able to see where to define partitions on table. It's possible to do it?
    Thanks

    You need to open physical model and you can create partitions there.
    Philip

  • Creating Swap Partitions for Oracle 8

    I am in the delimma of having already installed RedHat 5.2, with
    the intention of installing Oracle 8, however, I have created a
    swap partition of 32MB on a machine that has 48MB of RAM.
    Rather than repartition my hard drive to create a swap partition
    that is three times the size of the RAM installed, (as
    recommended by the installation guide), would I be able to
    create a swap file to overcome this limitation?
    null

    Bill Tourloupis (guest) wrote:
    : I am in the delimma of having already installed RedHat 5.2,
    with
    : the intention of installing Oracle 8, however, I have created a
    : swap partition of 32MB on a machine that has 48MB of RAM.
    : Rather than repartition my hard drive to create a swap
    partition
    : that is three times the size of the RAM installed, (as
    : recommended by the installation guide), would I be able to
    : create a swap file to overcome this limitation?
    You can create swap on a file using the following script. Replace
    "u01" with your mount point. Change "count" to the number of 1K
    blocks you want.
    dd if=/dev/zero of=/u01/swapfile bs=1024 count=524288
    mkswap -c -v1 /u01/swapfile
    chmod 0600 /u01/swapfile
    swapon /u01/swapfile
    swapon -s
    null

  • Install scripts to create tables used by Oracle Education 8i ILT classes

    Hi all;
    anyone knows how i can get the scripts to load the tables & data used in Oracle ILT 8i classes ?
    Am working thru the practises from the study-guide (SQL & DBA), but does not hve those tables & data to work with.
    Tks & rgs.

    Hi,
    Did /u01/app/11.2.0/grid/cfgtoollogs/crsconfig/rootcrs_rakanum.log provide some details?
    Are you using CFS for
    OCR_LOCATION=/u01/shared_config/ocr_configuration
    VF_DISCOVERY_STRING=/u01/shared_config/voting_disk
    What are the perisions? What ls -l produces?
    Regards,

  • Introduction of Oracle Table Partitions into PeopleSoft HRMS environment

    I would like to pose a general question and see if anyone has found any published advice / suggestions from PeopleSoft or Oracle on this. I believe that Oracle table partitioning isn't supported through the PeopleTools application designer functionality. Most likely this is done for platform independence. However, we were thinking about implementing table partitioning for performance and the ability to refresh test instances with subsets worth of data instead of the entire database.
    I know that this would be a substantial effort, but was wondering if anyone had any documentation on this type of implemention. I've read some articles from David Kurtz on the subject, and it sounds like these were all custom jobs for each individual client. Was looking for something more generic on this practice from PeopleSoft or Oracle...
    Regards,
    Jay

    Thanks for the article Nicolas. I will add that to my collection, good reference piece.
    I think you gasped the gist of the query, which was I know that putting partitioning into a PeopleSoft application is going to be highly specific to the client and application that you are running. But what I looking for was something like a baseline guide for implementing partitioning in a PeopleSoft application as a whole.
    In other words, something like notifiaction that the application designer panels would be affected since they don't have the ability to manage partitions. Therefore, any changes to tables that would utilize partitioning would need to be maintained at the database level and no longer utilize the DDL generated from PeopleTools Application Designer. Other consideration would be, like maybe a list of tables that would be candidates for partitioning based on the application, in my case HRMS. And maybe, suggestions on what column should be used for partitioning, etc...All of which are touched on in your identified article about putting partitioning in at the database level for a generic application.
    Thanks for your help, it is much appreciated...
    Jay

  • Creating table in oracle lite 10g

    Hi,
    I believe the following is the way to create a database table in Jdeveloper 10g and Oracle BPEL process Manager 10.1.3.1.0
    1.Created bpel project--> right click project ---> create schema---> right click schema---> create table(completed the wizard and created schema and table)
    2.Right click schema ---> new---> database tier---> offline database objects ----> SQL generated from offline database objects(and then complete the wizard)
    If the above is the correct approach to create the table, then I am facing two situations.
    a. In the project properties(offline database), if the 'database to emulate' is set to oracle lite 10g release 1, then "SQL generated from offline database objects" option is not enabled to choose in the step 2 above. So I cannot proceed further.
    b. If the 'database to emulate' is set to oracle database 10g release 2 (this is default), "SQL generated from offline database objects" in step 2 is enabled, but in the wizard that follows, when I tick 'perform operation against the database' it asks me for oracle database connection settings. But I only have the Oracle 10g Lite version and not Oracle database 10g. So I am not able proceed further.
    All I need is to create tables in the Oracle Lite database that I have.
    Any help on this issue will be greatly appreciated.
    -Sagar

    While waiting for an answer here ... you may want to investigate the Oracle Lite forum at Database Mobile Server (inc. legacy Database Lite)

  • Table Partitions Creation

    I don't see the option for Table partition, even in Server
    Model. Could you please send me complete instructions for
    creating a Table partition. That would be of great help. I
    did created table partitions manually, tested it onto the
    database, did a design capture of the DDL, it worked fine, but
    when i re-generated the DDL of the same table using designer,
    all the partitions were missing. Please suggest.
    Thanks,
    Manish.

    Table partitioning is in the "db admin". Have you checked that
    the database is 8.0 or 8.1 in the repository property "Oracle
    Database" otherwise you won't be able to see the parititioning
    properties (if you do change the version property don't forget
    to restart the design editor).
    HTH
    Steve

Maybe you are looking for

  • JTree, drag n drop, easy or hard?

    I have rapidly looked at some examples and some old threads about Drag�n�drop in general and more specific for JTree�s. A quick (maybe to quick?) conclusion is that there is a lot of code for doing this. What I want to do is to move nodes in one sing

  • Brand new iPod won't turn on.

    I've recently purchased a 30GB iPod video, but it does not seem to work. I've studied the help documents to the best of my abilities and consulted friends who also own iPods, but have yet to find out how to solve my problem. As the subject line says,

  • IsPDFFile() and CFPDF won't recognize a PDF

    I have a PDF that I can open up in Adobe Acrobat Reader 8.0 without problems. However, if I use the CFPDF tag to action = "read", I get the following error: "Error: Invalid Document D:\temp\test.pdf specified for source or directory. " If I use the i

  • How durable is the macbook pro june 2012

    I am wondering because, well I have a hardbody case on the bottom of my mbp and when i try to take it off i hear a noise and I fear that I may accidently dent or bend the unibody of the macbook so I am wondering how durable this macbook is?

  • Printf are variable width possible?

    Hi, hope someone can let me know. System.out.printf(" this is a test %4d", someInt); So say I got the above line. My question is: Is it possible to pass in the width as an argument? in the above the width is 4 spaces to display the variable someInt.