Partitioning in 10g

Hi,
We have to projects to implement. One is upgradation to 10g from 9i and the other one is partitioning 13 of our major tables. We have already partitioned 4 of them.
Will it be safer to complete patitioning before moving over to 10g?
What are the new features with 10g on partitioning?
We have some tables with hybrid partitioning on them. Anything I need to keep in mind with respect to this when I move over to 10g?
Thanks for the help in advance.

There are couple of new partition types were added to 10g, like,
Composite Range-Hash Partitioning
Composite Range-List Partitioning
For more information, you can browse the docs.
http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14231/partiti.htm
If you want to make avail new features of 10g partitions, you can create them in 10g, or you can do the partition in 9i before you migrate.
Jaffar

Similar Messages

  • Linux Cluster File System partitions for 10g RAC

    Hi Friends,
    I planned to install 2 Node Oracle 10g RAC on RHEL and I planned to use Linux File system itself for OCR,Voting Disk and datafiles (no OCFS2/RAW/ASM)
    I am having SAN storage.
    I would like to know how do i create shared/cluster partitions for OCR,Voting Disk and Datafiles (common storage on SAN).
    Do i need to install any Linux cluster file system for creating these shared partitions (as we have sun cluster in solaris)?
    If so let me know what versions are supported and provide the necessary Note / Link
    Regards,
    DB

    Hi ,
    Below link may be useful to you:
    ORACLE-BASE - Oracle 10g RAC On Linux Using NFS

  • Linux performance for LVM vs independent partition on 10G XE?

    Hi groups,
    I am a programmer and now requested to evaluate using Oracle 10G XE to replace MySQL for some of running web application. I remember the old experience that when playing with oracle 8i with linux, the guideline said that datafile of oracle should be placed at a independent partition. I m now testing XE with SUSE Enterprise 9, which using LVM(logical volume management).
    So far there's not seen guideline that talking about if 10G XE should using dependent partition. And the case is that SUSE using LVM that application see multiple physical partitions as one logicial partition. This is totally an opposite to what Oracle intended for using independent partition. I would like is that the 4GB datafile limit make this not a concern?
    I m not a DBA, thus hoping some gurus can give me some advise. Thanks!

    You can separate the redo logs, tablespaces etc in XE onto separate disks if you want. It's a manual exercise but there is nothing to stop you from doing it.
    But as Andrea mentioned, this is largely an exercise in futility given that XE is 4 Gb of data and a single CPU. If performance is an issue then you would probably be better to use Standard Edition or Standard Edition One that gives you greater control, and also includes advanced storage management techniques such as Automatic Storage Management.
    The default install of XE should be more than adequate for the majority of usages that XE is targeted at. With one proviso - the production release will use a defined flashback recovery area (FRA) for some of the online redo logs, archived redo logs, and backupsets.
    We would strongly recommend that if you have more than 1 disk, then the FRA should be placed on a seperate disk other than the one that holds the database.

  • Dynamic partitioning in 10g -

    Hi,
    I am on 10g and need to implement dynamic partitioning.
    In a table based on a column I need to implement dynamic partitioning .
    id
    name
    value
    1
    name1
    val1
    2
    name1
    val2
    3
    name2
    val3
    4
    name2
    val4
    5
    name2
    val5
    From the above table for each name uniquely (i.e for name1 ,name2 ) different partitions have to be created.
    If a name3 is added a new partition has to be created dynamically.
    If the column value is deleted (if name1 is deleted) the relevant partition should also be deleted
    Please suggest on how to achieve  this .
    Thanks

    Dynamic partitioning isn't available in Oracle 10g. It's there starting with 11g with the name 'Interval Partitioning'.
    If a name3 is added a new partition has to be created dynamically.
    If you are on 10g, the only option you have is to create partitions ahead of time. Oracle won't create it for you dynamically.
    If the column value is deleted (if name1 is deleted) the relevant partition should also be deleted
    This too would have to be done manually. If you delete a particular row or even entire set from the partition, the partition still exists. You need to drop the partition explicitly. It can be truncated as well. And this remains same in 10g and 11g.
    Having said that, partitioning in general a feature of DWH. You truncate entire partition and load it back again. Updates and deletes for a small set or a single row, in general, is not a feature that normally goes with the partitioning.
    Thanks,
    Ishan

  • No swap partition on 10g DB

    I had a doubt that is a partition with the name 'swap' needs to exist on a 10g DB server for swap space to be used. My current 10g DB server does not have a partition with the name 'swap' explicitly. It has the following kind of structure.
    [root@JispNewDB scripts]# df -kh
    Filesystem Size Used Avail Use% Mounted on
    /dev/cciss/c0d0p8 48G 12G 34G 26% /
    /dev/cciss/c0d0p3 48G 22G 24G 49% /backup
    /dev/cciss/c0d0p1 99M 12M 83M 12% /boot
    /dev/cciss/c0d0p2 191G 33G 149G 18% /crestel
    none 4.0G 0 4.0G 0% /dev/shm
    /dev/cciss/c0d0p9 24G 81M 23G 1% /home
    /dev/cciss/c0d0p5 48G 6.6G 39G 15% /indexes
    /dev/cciss/c0d0p7 48G 85M 46G 1% /tmp
    /dev/cciss/c0d0p6 48G 32G 14G 70% /u01
    Does, it mean that swap space will not be used in the system? There is 16 GB of swap space otherwise on the system.
    I hope, my question is clear.
    Please, help in solving the doubt.
    regards

    Is command free showing swap?
    If You have linux, then You can execute
    swapon -s - this will show all swap files or partition defined on system
    look into /etc/fstabs as well to see is there defined swap partition.
    fdisk -ls will show as well.
    If above are showing swap - then You are using swap.

  • Partitioning on 10g XML DB

    Hi, So far I can partition the root element tables. This is through the xdb:tableProps a(see end of post for context). Anyway how do i get the nested tables that it generates to be partitioned as well, the xdb:tableProps is apparently ignored for these.
    If this isn't possible how would i genearate a view containing 8 identically defined tables, to give the same apparent functionality as if only the one xml table were being queried. An xsd with the problem for 3 is listed below.
    oraxdb:tableProps="partition by range
    =====================================
    - <xs:element name="jurisdictionPOI" type="cim:jurisdictionPOIType" oraxdb:SQLName="JURISDICTIONPOI" oraxdb:SQLSchema="SCOTT" oraxdb:defaultTable="JURISDICTIONPOI" oraxdb:tableProps="partition by range (xmldata.source) (partition p1 values less than ('AFQ%') TABLESPACE MNPP_DATA1, partition p2 values less than ('NSX%') TABLESPACE MNPP_DATA2, partition p3 values less than ('NTQ%') TABLESPACE MNPP_DATA3, partition p4 values less than ('QLE%') TABLESPACE MNPP_DATA4, partition p5 values less than ('SAQ%') TABLESPACE MNPP_DATA5, partition p6 values less than ('TAQ%') TABLESPACE MNPP_DATA6, partition p7 values less than ('VID%') TABLESPACE MNPP_DATA7, partition p8 values less than (MAXVALUE) TABLESPACE MNPP_DATA8)">
    xsd
    ===
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" version="1.0" xdb:storeVarrayAsTable="true">
         <xs:element name="PurchaseOrder1" type="PurchaseOrderType" xdb:tableProps="TABLESPACE CPRS_DATA31" xdb:defaultTable="PURCHASEORDER31"/>
         <xs:element name="PurchaseOrder2" type="PurchaseOrderType" xdb:tableProps="TABLESPACE CPRS_DATA32" xdb:defaultTable="PURCHASEORDER32"/>
         <xs:element name="PurchaseOrder3" type="PurchaseOrderType" xdb:tableProps="TABLESPACE CPRS_DATA33" xdb:defaultTable="PURCHASEORDER33"/>
         <xs:complexType name="PurchaseOrderType" xdb:SQLType="PURCHASEORDER_T10">
              <xs:sequence>
                   <xs:element name="Reference" type="ReferenceType" xdb:SQLName="REFERENCE"/>
                   <xs:element name="Actions" type="ActionsType" xdb:SQLName="ACTIONS"/>
                   <xs:element name="Reject" type="RejectionType" minOccurs="0" xdb:tableProps="TABLESPACE CPRS_DATA21" xdb:SQLName="REJECTION" xdb:defaultTable="REJECTION"/>
                   <xs:element name="Requestor" type="RequestorType" xdb:SQLName="REQUESTOR"/>
                   <xs:element name="User" type="UserType" xdb:SQLName="USERID"/>
                   <xs:element name="CostCenter" type="CostCenterType" xdb:SQLName="COST_CENTER"/>
                   <xs:element name="ShippingInstructions" type="ShippingInstructionsType" xdb:tableProps="TABLESPACE CPRS_DATA31" xdb:SQLName="SHIPPING_INSTRUCTIONS"/>
                   <xs:element name="SpecialInstructions" type="SpecialInstructionsType" xdb:SQLName="SPECIAL_INSTRUCTIONS"/>
                   <xs:element name="LineItems" type="LineItemsType" xdb:defaultTable="LINEITEMS" xdb:SQLName="LINEITEMS" xdb:tableProps="TABLESPACE CPRS_DATA11" />
                   <xs:element name="source" type="xs:string" xdb:SQLName="SOURCE" xdb:SQLType="VARCHAR2" xdb:SQLInline="true"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="LineItemsType" xdb:SQLType="LINEITEMS_T10">
              <xs:sequence>
                   <xs:element name="LineItem" type="LineItemType" maxOccurs="unbounded" xdb:SQLName="LINEITEM" xdb:tableProps="TABLESPACE CPRS_DATA21" xdb:SQLCollType="LINEITEM_V"/>
              </xs:sequence>
              <xs:attribute name="source" type="xs:string"/>
         </xs:complexType>
         <xs:complexType name="LineItemType" xdb:SQLType="LINEITEM_T10">
              <xs:sequence>
                   <xs:element name="source" type="xs:string" xdb:SQLName="SOURCE" xdb:SQLType="VARCHAR2" xdb:SQLInline="true"/>
                   <xs:element name="Description" type="DescriptionType" xdb:SQLName="DESCRIPTION"/>
                   <xs:element name="Part" type="PartType" xdb:tableProps="TABLESPACE CPRS_DATA11" xdb:SQLName="PART"/>
              </xs:sequence>
              <xs:attribute name="source" type="xs:string"/>
              <xs:attribute name="ItemNumber" type="xs:integer" xdb:SQLName="ITEMNUMBER" xdb:SQLType="NUMBER"/>
         </xs:complexType>
         <xs:complexType name="PartType" xdb:SQLType="PART_T10">
              <xs:attribute name="source" type="xs:string"/>
              <xs:attribute name="Id" xdb:SQLName="PART_NUMBER" xdb:SQLType="VARCHAR2">
                   <xs:simpleType>
                        <xs:restriction base="xs:string">
                             <xs:minLength value="10"/>
                             <xs:maxLength value="14"/>
                        </xs:restriction>
                   </xs:simpleType>
              </xs:attribute>
              <xs:attribute name="Quantity" type="moneyType" xdb:SQLName="QUANTITY"/>
              <xs:attribute name="UnitPrice" type="quantityType" xdb:SQLName="UNITPRICE"/>
         </xs:complexType>
         <xs:simpleType name="ReferenceType">
              <xs:restriction base="xs:string">
                   <xs:minLength value="18"/>
                   <xs:maxLength value="30"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:complexType name="ActionsType" xdb:SQLType="ACTIONS_T10">
              <xs:sequence>
                   <xs:element name="Action" maxOccurs="4" xdb:SQLName="ACTION" xdb:tableProps="TABLESPACE CPRS_DATA31" xdb:SQLCollType="ACTION_V">
                        <xs:complexType xdb:SQLType="ACTION_T10">
                             <xs:sequence>
                                  <xs:element name="User" type="UserType" xdb:SQLName="ACTIONED_BY"/>
                                  <xs:element name="Date" type="DateType" minOccurs="0" xdb:SQLName="DATE_ACTIONED"/>
                   <xs:element name="source" type="xs:string" xdb:SQLName="SOURCE" xdb:SQLType="VARCHAR2" xdb:SQLInline="true"/>
                             </xs:sequence>
                        </xs:complexType>
                   </xs:element>
              </xs:sequence>
              <xs:attribute name="source" type="xs:string"/>
         </xs:complexType>
         <xs:complexType name="RejectionType" xdb:SQLType="REJECTION_T10">
              <xs:all>
                   <xs:element name="User" type="UserType" minOccurs="0" xdb:SQLName="REJECTED_BY"/>
                   <xs:element name="Date" type="DateType" minOccurs="0" xdb:SQLName="DATE_REJECTED"/>
                   <xs:element name="Comments" type="CommentsType" minOccurs="0" xdb:SQLName="REASON_REJECTED"/>
              </xs:all>
              <xs:attribute name="source" type="xs:string"/>
         </xs:complexType>
         <xs:complexType name="ShippingInstructionsType" xdb:SQLType="SHIPPING_INSTRUCTIONS_T10">
              <xs:sequence>
                   <xs:element name="name" type="NameType" minOccurs="0" xdb:SQLName="SHIP_TO_NAME"/>
                   <xs:element name="address" type="AddressType" minOccurs="0" xdb:SQLName="SHIP_TO_ADDRESS"/>
                   <xs:element name="telephone" type="TelephoneType" minOccurs="0" xdb:SQLName="SHIP_TO_PHONE"/>
              </xs:sequence>
                   <xs:attribute name="source" type="xs:string"/>
         </xs:complexType>
         <xs:simpleType name="moneyType">
              <xs:restriction base="xs:decimal">
                   <xs:fractionDigits value="2"/>
                   <xs:totalDigits value="12"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="quantityType">
              <xs:restriction base="xs:decimal">
                   <xs:fractionDigits value="4"/>
                   <xs:totalDigits value="8"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="UserType">
              <xs:restriction base="xs:string">
                   <xs:minLength value="1"/>
                   <xs:maxLength value="10"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="RequestorType">
              <xs:restriction base="xs:string">
                   <xs:minLength value="0"/>
                   <xs:maxLength value="128"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="CostCenterType">
              <xs:restriction base="xs:string">
                   <xs:minLength value="1"/>
                   <xs:maxLength value="4"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="VendorType">
              <xs:restriction base="xs:string">
                   <xs:minLength value="0"/>
                   <xs:maxLength value="20"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="PurchaseOrderNumberType">
              <xs:restriction base="xs:integer"/>
         </xs:simpleType>
         <xs:simpleType name="SpecialInstructionsType">
              <xs:restriction base="xs:string">
                   <xs:minLength value="0"/>
                   <xs:maxLength value="2048"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="NameType">
              <xs:restriction base="xs:string">
                   <xs:minLength value="1"/>
                   <xs:maxLength value="20"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="AddressType">
              <xs:restriction base="xs:string">
                   <xs:minLength value="1"/>
                   <xs:maxLength value="256"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="TelephoneType">
              <xs:restriction base="xs:string">
                   <xs:minLength value="1"/>
                   <xs:maxLength value="24"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="DateType">
              <xs:restriction base="xs:date"/>
         </xs:simpleType>
         <xs:simpleType name="CommentsType">
              <xs:restriction base="xs:string">
                   <xs:minLength value="1"/>
                   <xs:maxLength value="2048"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="DescriptionType">
              <xs:restriction base="xs:string">
                   <xs:minLength value="1"/>
                   <xs:maxLength value="256"/>
              </xs:restriction>
         </xs:simpleType>
    </xs:schema>

    The view would have to be a union all view, I'm not sure how well XPath re-write would work...
    I had writen a union all view to pick from the Parents but how do i write a general view which covers the tables and all their nested tables (and their nest tables nested tables).
    Can you help me understand the volume of data you are going to be managing
    8,000,000 records in the top tables, there will be an average of 8 nested table rows per parent row foir several items.
    the particular benefits you are looking from partitioning in this case...
    We get the data from several area sources. Some of these send in a complete refresh of data weekly as opposed to a list of changes. having all the records for an area in the same block will greatly improve times for updates even if we can't blow away and the reload a partition because of the nested tables ( i know this was unavailable with nested tables in 8i )
    The option of a clever view could enable swapping by renaming tables in the view which have last weeks data and this weeks already loaded.
    Thanks for all help
    Trev

  • Boot-camp and windows

    I have been reading many things about boot-camp. I would like to install windows on my mac so I can use certain applications for school and what not. I understand there are some risks involved. My questions are:
    1) Viruses, spy-ware, etc....does it make os X in harms way?
    2) Difficulty of installing and uninstalling?
    3) Any suggestions or things to look out for before I do this?
    4) Any other software other than boot-camp or is that the best?
    5) How much disc space should I allocate to install windows on the second partition?
    6) Is there away to free some space on my hardrive...I heard that os X installs all types of drivers, etc that I will probably never use?
    Please help with anything else before I make my final decision on this topic!!

    Hello again
    1) Viruses, spy-ware, etc....does it make os X in harms way?
    No, but your Windows installation (using BootCamp, Parallels or VMware...) can be harmed as any windows.
    2) Difficulty of installing and uninstalling?
    Quite easy, Apple provides easy to use tools (BootCamp) that lets you create, resize, or delete Windows partition. About Parallels and VMware, both are easy to use, my father-in-law get used to it quite quickly
    3) Any suggestions or things to look out for before I do this?
    Go ahead, without risks, no fun ! Seriously, the risk is quite limited and I red not much reports about people crashing their mac with windows... In fact I did, but the guy is a bit geeky, and used Parallels in BootCamp mode, avoid that, Parallels still a beta.
    4) Any other software other than boot-camp or is that the best?
    Personally, I love Parallels Desktop, it worth the price
    5) How much disc space should I allocate to install windows on the second partition?
    10G is a good starting point. The interest of virtualization solutions (Parallels, VMware...) is that only the effective space is taken on disk and the disk growth when you need it, automatically
    6) Is there away to free some space on my hardrive...I heard that os X installs all types of drivers, etc that I will probably never use?
    It is true that you certainly do not need additionnal languages, additional fonts, Hebrew, Chinese, Arabic, etc This is a choice to care at the installation, and not very easy to remove that afterwhile. My advice is to live with it.
    Please help with anything else before I make my final decision on this topic!!
    I think you can jump
    Why reward points ?

  • Database optimisation ressource (for expert only :) )

    Hi
    Juste a (big) question,
    we want to migrate our application from (linux code-grep, cut, wc.....cammande) to JAVA or PRO C
    the application takes on input flat files (4 flate file per minutes) each file containes 100.000 lines to reformate with grep command and then load them into a partitionned database 10g
    what do you suggeste me you experts to implement for the best use of my database
    solution 1 : the use of java code rather then linux code
    solution 2 : the use of C /pro C code rather then linux code and java code
    solution 3 : the use of external tables in oracle (consider my flat files as external table) and contain do all the trasformation with native SQL code rather then linux code and java code and C code
    I realy need your help,
    we don't want to use teradata cause of the expencive price, and we ask me to make optimum developpement
    Tks in advance

    If pressed, I would probably go for option 3.
    Te "optimum" you want is dependent on the needs and objectives of your organization, so I cannot answer what is best for you.
    What's wrong with grep, sed and awk?
    Yours,
    Laurenz Albe

  • Need to delete Windows and reinstall

    I mistakenly created a partition that was just barely big enough to run Windows. I do not have enough C-drive disc space to install anything! Oops!. Can I delete Windows, restore the disc to one partition, and then create a bigger partition? If so, what size partition would be adequate for moderate gaming and simple document creation. (I originally created a partition of 10G).
    Thank you

    Read the Boot Camp Guide, and use the Assistant you used to create the partition, to remove it (I'd reboot after that) and then create what you need (with more than you think perhaps too).
    I would download and install Windows 7 RC and test that out for free from MS for now, runs even games just as well if not better.
    Make sure to leave enough for OS X, and still have 20GB or 20% free as a minimum there too. Then I'd go with NTFS and 30GB minimum as even XP SP3 that would make senses.

  • Partition view on 10g and 11g

    Hi All,
    I am on 10.2 Standard edition and 11.1 Standard edition (2 databases in the application, one on 10g, another on 11g).
    Being on standard edition, cannot use many common features e.g. partitioning, bitmap indexes etc.
    I use to think that, partitioned view are no more supported by Oracle. But I can see that it works. I created 3 tables TEMP1, TEMP2 and TEMP3, all with exact same structure (columns and indices). Then created a view TEMP_VIEW, which is like
    select col1, col2, col3 .... from temp1
    union all
    select col1, col2, col3 .... from temp2
    union all
    select col1, col2, col3 .... from temp3Here are the query execution and plans
    /* ----------------- 10g execution plan ----------------------- */
    SQL> select * from temp_view where object_id=2620 and branch_cd = 'XYZ';
    OWNER                          OBJECT_NAME                    SUBOBJECT_NAME                  OBJECT_ID DATA_OBJECT_ID
    OBJECT_TYPE         CREATED   LAST_DDL_ TIMESTAMP           STATUS  T G S BRANC
    SYS                            LOADER_TRIGGER_INFO                                                 2620
    VIEW                18-FEB-09 16-APR-09 2009-02-18:10:07:57 VALID   N N N XYZ
    Elapsed: 00:00:00.29
    Execution Plan
       0      SELECT STATEMENT Optimizer=ALL_ROWS (Cost=2 Card=1 Bytes=132)
       1    0   VIEW OF 'TEMP_VIEW' (VIEW) (Cost=2 Card=1 Bytes=132)
       2    1     UNION-ALL (PARTITION)
       3    2       TABLE ACCESS (BY INDEX ROWID) OF 'TEMP1' (TABLE) (Cost=2 Card=1 Bytes=132)
       4    3         INDEX (UNIQUE SCAN) OF 'TEMP1_PK' (INDEX (UNIQUE)) (Cost=1 Card=1)
       5    2       TABLE ACCESS (BY INDEX ROWID) OF 'TEMP2' (TABLE) (Cost=2 Card=1 Bytes=132)
       6    5         INDEX (UNIQUE SCAN) OF 'TEMP2_PK' (INDEX (UNIQUE)) (Cost=1 Card=1)
       7    2       TABLE ACCESS (BY INDEX ROWID) OF 'TEMP3' (TABLE) (Cost=2 Card=1 Bytes=132)
       8    7         INDEX (UNIQUE SCAN) OF 'TEMP3_PK' (INDEX (UNIQUE)) (Cost=1 Card=1)
    /* ----------------- 11g execution plan ----------------------- */
    SQL> select * from temp_view where object_id=2620 and branch_cd = 'XYZ';
    OWNER                          OBJECT_NAME                    SUBOBJECT_NAME                  OBJECT_ID DATA_OBJECT_ID
    OBJECT_TYPE         CREATED   LAST_DDL_ TIMESTAMP           STATUS  T G S BRANC
    PUBLIC                         GV$XML_AUDIT_TRAIL                                                  2620
    SYNONYM             16-NOV-09 16-NOV-09 2009-11-16:16:36:08 VALID   N N N XYZ
    Elapsed: 00:00:00.03
    Execution Plan
       0      SELECT STATEMENT Optimizer=ALL_ROWS (Cost=6 Card=3 Bytes=396)
       1    0   VIEW OF 'TEMP_VIEW' (VIEW) (Cost=6 Card=3 Bytes=396)
       2    1     UNION-ALL
       3    2       TABLE ACCESS (BY INDEX ROWID) OF 'TEMP1' (TABLE) (Cost=2 Card=1 Bytes=102)
       4    3         INDEX (UNIQUE SCAN) OF 'TEMP1_PK' (INDEX (UNIQUE)) (Cost=1 Card=1)
       5    2       TABLE ACCESS (BY INDEX ROWID) OF 'TEMP2' (TABLE) (Cost=2 Card=1 Bytes=102)
       6    5         INDEX (UNIQUE SCAN) OF 'TEMP2_PK' (INDEX (UNIQUE)) (Cost=1 Card=1)
       7    2       TABLE ACCESS (BY INDEX ROWID) OF 'TEMP3' (TABLE) (Cost=2 Card=1 Bytes=102)
       8    7         INDEX (UNIQUE SCAN) OF 'TEMP3_PK' (INDEX (UNIQUE)) (Cost=1 Card=1)Questions
    1) I am expecting same behaviour on Oracle enterprise edition, will that be the case ?
    2) On 10g, execution plan shows "UNION-ALL (PARTITION)", but on 11g it says, "UNION-ALL". What does that imply?
    3) Which Oracle parameter can affect this behaviour? the old partition_view_enable parameter does not exist
    4) If I go ahead and use this partitioned view, in which cases this can cause problems? At this point, it looks all good if I access the view using indexed columns (of the tables and all tables involved have exactly same indexes).
    Thanks in advance

    Billy Verreynne is an expert in this area and has been introducing people for years to 'partition views' and you can find many of his previous posts about how and when to use them (including example code) right here in these forums (most of them will be in the SQL and PL/SQL forum).
    This feature has been around since Oracle 7 and the 7.3 document that details the info is still at
    http://docs.oracle.com/cd/A57673_01/DOC/server/doc/A48506/partview.htm
    Here is just one of his many other threads with more example code using five tables.
    Table name in from clause

  • How to install Oracle 10g on another partition

    Hi,
    On my desktop on Disk C:\ (O.S. Windows) I've got Oracle Client for accessing to Oracle Database 8i that is the version used in the company where I work and that is installed on Unix server. As I'd like to install the Oracle Database 10g Release 2 (for practice) on my PC and the Oracle Database 10g Client Release 2 as well, I've got two questions:
    1 - Will the installation procedure allow me to install Oracle Database 10g Release 2 on another partition of my PC (I've got Disc D:\ on it)?
    2 - Above all will it be possible to install Oracle Database 10g Client Release 2 on Disc D:\ or the installation procedure will make me to install on C:\ where I've already the "orant" directory for accessing to Database Oracle 8i I have to work on?
    Sorry for the questions but I'm afraid of committing errors in installing 10g having already a client for 8i which I must still have for working
    Thanks!

    Mark1970 wrote:
    Thanks!
    I've got two more questions:
    1 - for a PC stand alone where I'd like to install Oracle Database 10g anb Oracle Database 10g Client, which version should I use? Do I have to use the Express Edition or what else? I've looked at http://www.oracle.com/technology/software/products/database/index.html
    You can use express if you want. I've succesfully run Enterprise Edition on an XP-Pro laptop.
    2 - Are you sure I will have no problem about the ORACLE_HOME or about PC's register having on the same PC, even if on different partitions (Disk C:\ and D:\), Not if you install it correctly. Oracle is designed to support multiple version installations on the same box.
    two versions of Oracle 8i (only client) and 10g (db plus client)?You don't need to install the 10g client. All Oracle database installs include the client software.

  • Creating Partitions in Oracle 10G Express Edition

    Can I create partitions in oracle 10g express edition?

    See yourself :
    http://download.oracle.com/docs/cd/B25329_01/doc/license.102/b25456/toc.htm#BABJIJCJ

  • Deadlock issue in Oracle 10g Partitioned Tables

    Hi ALL,
    I am facing an issue of Deadlock while inserting data into a partitioned table.
    I get an error "ORA-00600: Deadlock detected". when i see the trace files, following lines are appearing in them:
    "Single resource deadlock: blocking enqueue which blocks itself".
    Here is the detail of my test case:
    1. I have a list-partitioned table, with partitioning defined on some business codes.
    2. I have a query that merges data into partitioned table (actually compares unique keys between temporary table and partitioned table and then issue an insert if keys not matched, no update part).
    3. The temporary table contains transactional data against many business codes.
    3. when calling the above query from multiple (PL/SQL) sessions, i observe that when we merge data in same partition (from different sessions) than deadlock issue occurs, otherwise it is OK.
    4. Note that all sessions are executed at same time. Also note that Commit is called after each session is completed. Each session contains 2-3 more queries after the mentioned merge statement.
    Is there an issue with oracle merge/insert on same partition (from different sessions)? What is the locking mechanism for this particular case (partitioned tables)?
    My oracle version is Oracle 10g (10.2.0.4). Kindly advice.
    Thanks,
    QQ.

    Could you print the deadlock tree so we can see the type and mode of the locking. (Please use the 'code' tags - see FAQ at top right of screen - to showthe output in fixed font). can you list any SQL operated by this session that gets reported in the trace file.
    Does the table reference itself in a foreign key.
    Is this table involved in any referential integrity constraints.
    Do you have a global primary key index, or a local primary key index ?
    Are there any triggers on the table - if so do they contain autonomous transactions.
    At present the only though that springs to mind is that the merge command has to lock the target table to do the insert/update, but it also has to lock any child table. The mode of the child lock depends on whether it has a suitable index or not, and whether the child table IS also the parent table. If you have two merges to the same partition one partition may get its locks, and the other partition may be in a state where it can't get one of the locks because it's wait for the other. (This shouldn't be a self-deadlock, though, but the scenario might be heading in the right direction for a self-deadlock).
    Regards
    Jonathan Lewis
    http://jonathanlewis.wordpress.com
    http://www.jlcomp.demon.co.uk
    "The greatest enemy of knowledge is not ignorance, it is the illusion of knowledge." (Stephen Hawking)

  • Partitioning of table in oracle 10g - How to Add

    Hello Friends ,
    Hope you are all fine and doing great.
    By the way - I have a quick question on oracle 10g Partitioning of tables...
    I have a table with partition as stated below ..
    CREATE TABLE X_ACC_ASSETS_GPC_AGG
    X_ACC_ASSETS_GPC_AGG_RK NUMBER(10) NOT NULL,
    X_AS_OF_DT DATE NOT NULL,
    ACCOUNT_RK NUMBER(10) NOT NULL,
    X_UNIV_ACCOUNT_ID NUMBER(10),
    ACCOUNT_ID VARCHAR2(10 BYTE),
    X_ASSET_TYPE_CD VARCHAR2(6 BYTE),
    X_AUC_AMT NUMBER(18,5),
    X_FIRM_AMT NUMBER(18,5),
    X_ADJ_SRCE_AMT NUMBER(18,5),
    PROCESSED_DTTM DATE
    )PARTITION BY RANGE (X_AS_OF_DT)
    PARTITION P200712 VALUES LESS THAN (TO_DATE(' 2008-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
    NOLOGGING
    NOCOMPRESS
    TABLESPACE KAW_DATA
    PCTFREE 10
    INITRANS 1
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    BUFFER_POOL DEFAULT
    PARTITION P201112
    NOLOGGING
    NOCOMPRESS
    TABLESPACE KAW_DATA
    PCTFREE 10
    INITRANS 2
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    BUFFER_POOL DEFAULT
    PARTITION PMAX
    NOLOGGING
    NOCOMPRESS
    TABLESPACE KAW_DATA
    PCTFREE 10
    INITRANS 2
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    BUFFER_POOL DEFAULT
    )NOPARALLEL;
    My question is :
    1) How to add a partition say P201201 ..
    Since I have already stated PARTITION PMAX can I still add partition?
    2) Can I add partition even though the table has data ?
    ==========================
    I tried to add partition ..say
    ALTER TABLE X_ACC ADD PARTITION P201201 VALUES LESS THAN
    (TO_DATE(' 2012-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
    NOLOGGING
    NOCOMPRESS
    TABLESPACE KAW_DATA
    PCTFREE 10
    INITRANS 1
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    BUFFER_POOL DEFAULT
    but getting the error ..
    "partition bound must collate higher than that of the last partition"
    Thanks/kumar

    You have partitions
    200712
    200812
    200912
    201012
    201112
    PMAX.
    so your condition for partition p201112 is '201012-01-01' to '201112-01-01' i.e the values between these two dates will be in partition p201112. and then everything else will be in PMAX. So now you are splitting your pmax.
    alter table X_acc split partition pmax at ( to_date('2012-01-01 00:00:00','YYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN') )
    into (partition p201201, partition pmax); The condition you have to change. I just showed as an example. It could be the date range between two dates or it could be greater than a date value. It is upto how you want this new partition.
    how to add partition between two partition
    Edited by: pransuj on Mar 25, 2011 11:13 AM
    Edited by: pransuj on Mar 25, 2011 11:14 AM

  • Not able to create partitions using Oracle 10g express edition

    Hello Everyone,
    I downloaded Oracle 10g express edition as the documentation for the same says that it supports partitioning of the table.
    But when I try to run a command like
    CREATE TABLE sales_range
    (salesman_id NUMBER(5),
    salesman_name VARCHAR2(30),
    sales_amount NUMBER(10),
    sales_date DATE)
    PARTITION BY RANGE(sales_date)
    PARTITION sales_jan2000 VALUES LESS THAN(TO_DATE('02/01/2000','DD/MM/YYYY')),
    PARTITION sales_feb2000 VALUES LESS THAN(TO_DATE('03/01/2000','DD/MM/YYYY')),
    PARTITION sales_mar2000 VALUES LESS THAN(TO_DATE('04/01/2000','DD/MM/YYYY')),
    PARTITION sales_apr2000 VALUES LESS THAN(TO_DATE('05/01/2000','DD/MM/YYYY'))
    I get the following error
    "ORA-00439: feature not enabled: Partitioning"
    Please let me know what is causing the issue/error and how to resolve it.
    Thanks.

    Where did you read that the express edition supports partitioning? I would strongly suspect that there was an error in the documentation-- partitioning is an extra cost option on top of an enterprise edition database. Perhaps you are confusing the personal edition (which does support partitioning) with the express edition?
    Justin

Maybe you are looking for