Split partition
hi
Oracle 10.2.0.1.0
from the link http://www.rampant-books.com/t_ault_39_partitions_alter_table.htm there is info like
Modifying Table Partitions
You can modify a table or table partition in any of the ways described in the subsections following. You cannot combine partition operations with other partition operations or with operations on the base table in one ALTER TABLE statement. You cannot move a partition with subpartitions; each subpartition must be individually moved.
Add Partition. Use ALTER TABLE ADD PARTITION to add a partition to the high end of the table (after the last existing partition). If the first element of the partition bound of the high partition is MAXVALUE, you cannot add a partition to the table. You must split the high partition.
You can add a partition to a table even if one or more of the table indexes or index partitions are marked UNUSABLE.
_*You must use the SPLIT PARTITION clause to add a partition at the beginning or the middle of the table.*_ can you please elaborate in the text above and why should we use split partition instead of add partition ? how can one know where the partition is being added like in beginning , middle etc ... how the concept of partition is handled .
please help
To further clarify, 'highest partition' is determined by the partition that can take the highest value of your partitioning key.
Your table DDL, when specifying the partitions, would specify the partition limits something like this:
PARTITION BY RANGE (EFFECTIVE_DATE)
PARTITION PART_201005 VALUES LESS THAN (TO_DATE('2010-06-01', 'YYYY-MM-DD')),
PARTITION PART_201006 VALUES LESS THAN (TO_DATE('2010-07-01', 'YYYY-MM-DD')),
PARTITION PART_201007 VALUES LESS THAN (TO_DATE('2010-08-01', 'YYYY-MM-DD')),
PARTITION PART_201008 VALUES LESS THAN (TO_DATE('2010-09-01', 'YYYY-MM-DD')),
PARTITION PART_201009 VALUES LESS THAN (TO_DATE('2010-10-01', 'YYYY-MM-DD')),
PARTITION PART_201010 VALUES LESS THAN (TO_DATE('2010-11-01', 'YYYY-MM-DD')),
PARTITION PART_201011 VALUES LESS THAN (TO_DATE('2010-12-01', 'YYYY-MM-DD')),
PARTITION PART_201012 VALUES LESS THAN (TO_DATE('2011-01-01', 'YYYY-MM-DD')),
PARTITION PART_201101 VALUES LESS THAN (TO_DATE('2011-02-01', 'YYYY-MM-DD'))
)Now, you can
ALTER TABLE whatever ADD PARTITION PART_201102 VALUES LESS THAN (TO_DATE('2011-03-01', 'YYYY-MM-DD'));because you are adding a partition higher than all the existing partitions.
But you can not
ALTER TABLE whatever ADD PARTITION PART_201004 VALUES LESS THAN (TO_DATE('2010-05-01', 'YYYY-MM-DD'));because data eligible for that partition would already be eligible for (and possibly stored in) PART_201005. You would instead have to split partition PART_201005:
ALTER TABLE whatever SPLIT PARTITION PART_201005
AT (TO_DATE('2010-05-01', 'YYYY-MM-DD'))
INTO (PART_201004 , PART_201005 );With an ADD PARTITION there is no data to move - because data that can go into the new partition could never have gotten into the table, in any partition, before it was added. But with a SPLIT PARTITION the data must be checked and moved if necessary.
Edited by: mtefft on Jan 20, 2011 10:20 AM (removed extraneous spaces)
Similar Messages
-
Blocking locks encountered while splitting partitions in 11g
Background: I've taken over administration of a database that has several date-range partitioned tables that, suffering from a lack of proper administration, have not had their MAXVALUE partition split into the requisite monthly partitions, in almost a year. As a result, in some cases the MAXVALUE partition has 10 million rows (the monthly partitions should average 750K rows).
My understanding is that the syntax I am using to perform the split, should allow for on-line access to the tables while the split is being performed. Here is my syntax without the actual table names:
ALTER TABLE owner.table_name
SPLIT PARTITION MAXVALUE AT
(TO_DATE(' 2012-02-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
INTO (PARTITION PART201201
TABLESPACE tablespace
PCTFREE 10
INITRANS 1
MAXTRANS 255,
PARTITION MAXVALUE) update indexes;
Problem: In attempting to split the MAXVALUE partition into monthly partitions while the database is on-line and accessible, I see application sessions being blocked by my split session.
So, is my understanding above incorrect? Is there some additional syntax that I am missing? Or, are the blocking locks I'm seeing merely transient in nature, and can be ignored? The server I'm running on is not very "beefy", and the split is taking quite a while to run.
Any assistance would be appreciated.>
Background: I've taken over administration of a database that has several date-range partitioned tables that, suffering from a lack of proper administration, have not had their MAXVALUE partition split into the requisite monthly partitions, in almost a year. As a result, in some cases the MAXVALUE partition has 10 million rows (the monthly partitions should average 750K rows).
My understanding is that the syntax I am using to perform the split, should allow for on-line access to the tables while the split is being performed.
Problem: In attempting to split the MAXVALUE partition into monthly partitions while the database is on-line and accessible, I see application sessions being blocked by my split session.
So, is my understanding above incorrect? Is there some additional syntax that I am missing? Or, are the blocking locks I'm seeing merely transient in nature, and can be ignored? The server I'm running on is not very "beefy", and the split is taking quite a while to run.
>
DML that modifies the table cannot be performed on the table while the split is ongoing.
Your bigger problem is that you are using the WRONG method for your use case. If you repeatedly split the MAXVALUE partition you will be repeatedly copying and moving the same ultimate MAXVALUE data over and over again.
DBMS_REDEFINITION is one of your options. But since I just answered this same question 3 days ago see my reply in this thread for a more thorough discussion of your options.
Re: Which is the Best method to Split Partition -
Rolling back the creation of a split partition on a table
Hi,
I had some partitions created on a materialized view . I then split the last partition called FINAL into mulitiple other partitions. Now how can i drop the created split partitions without dropping FINAL.
I am using Oracle 10g.You could ALTER TABLE tablename DROP PARTITION partitionname
OR
You could ALTER TABLE tablename MERGE PARTITION .... to merge them back.
Hemant K Chitale -
Hi,
i have oracle 10.2.0.1 client installed on my windows platform and i have 10.2.0.1 solaris database server.
when i lunch the following command from windows client's sqlplus:
ALTER SESSION SET TIME_ZONE='+01:00';
ALTER TABLE TABLE_TIME_STAMP SPLIT PARTITION "PARTITION_MAX" AT (TIMESTAMP'2007-09-08 11:59:59.999999999 +01:00') INTO (PARTITION "PARTITION_NEW" TABLESPACE TBS_USER_DEFAULT, PARTITION "PARTITION_MAX" TABLESPACE TBS_USER_DEFAULT) ;
I RECIVE THE FOLLOWING ERROR:
ORA-00604: error occurred at recursive SQL level 1
ORA-01882: timezone region not found
THE TABLE "TABLE_TIME" HAVE THE DATA TYPE OF COLUMN "COL" IS TIMESTAMP WITH LOCAL TIME_ZONE, AND I CREATE PARTITION ON THIS COLUMN.
iIF I EXECUTE THIS COMMAND ON THE SERVER'S SQLPLUS I DON'T RECIVE ERROR.this statement fails on the client
ALTER TABLE TABLE_TIME_STAMP SPLIT PARTITION "PARTITION_MAX" AT (TIMESTAMP'2007-09-08 11:59:59.999999999 +01:00') INTO (PARTITION "PARTITION_NEW" TABLESPACE TBS_USER_DEFAULT, PARTITION "PARTITION_MAX" TABLESPACE TBS_USER_DEFAULT) -
SPLIT PARTITION creating the index in different Table Space
I am splitting the table every month. After splitting the Index is also Splitting. (It is natural). But it is creating in default table Space.
I want to split INDEX and creating into the index table space “ACTIVITY_IND_TS_1”
CREATE TABLE PART
PK_KEY NUMBER(15) NOT NULL,
PK_ID NUMBER(1) NOT NULL
TABLESPACE USERS PARTITION BY RANGE (PK_ID)
PARTITION PK_ID_PRD1 VALUES LESS THAN (1)
LOGGING
TABLESPACE ACTIVITY_TAB_TS_1,
PARTITION PK_ID_PRD2 VALUES LESS THAN (2)
LOGGING
TABLESPACE ACTIVITY_TAB_TS_1,
PARTITION PK_ID_PRD3 VALUES LESS THAN (3)
LOGGING
TABLESPACE ACTIVITY_TAB_TS_1,
PARTITION PK_ID_PRD4 VALUES LESS THAN (4)
LOGGING
TABLESPACE ACTIVITY_TAB_TS_1,
PARTITION PK_ID_PRD_MAXVALUE VALUES LESS THAN (MAXVALUE)
LOGGING
TABLESPACE ACTIVITY_TAB_TS_1
NOCACHE
NOPARALLEL
ENABLE ROW MOVEMENT;
CREATE INDEX PART_IX ON PART(PK_ID)
LOCAL (PARTITION PK_ID_PRD1 TABLESPACE ACTIVITY_IND_TS_1,
PARTITION PK_ID_PRD2 TABLESPACE ACTIVITY_IND_TS_1,
PARTITION PK_ID_PRD3 TABLESPACE ACTIVITY_IND_TS_1,
PARTITION PK_ID_PRD4 TABLESPACE ACTIVITY_IND_TS_1,
PARTITION PK_ID_PRD_MAXVALUE TABLESPACE ACTIVITY_IND_TS_1)
PARALLEL
NOLOGGING;
select unique tablespace_name from user_tab_partitions; -- ACTIVITY_TAB_TS_1
select unique tablespace_name from user_ind_partitions; -- ACTIVITY_IND_TS_1
ALTER TABLE PART SPLIT PARTITION PK_ID_PRD_MAXVALUE
AT (5) INTO (PARTITION PK_ID_PRD5, PARTITION PK_ID_PRD_MAXVALUE);
select unique tablespace_name from user_tab_partitions; -- ACTIVITY_TAB_TS_1
select unique tablespace_name from user_ind_partitions; -- ACTIVITY_TAB_TS_1 ACTIVITY_IND_TS_1
Edited by: sk123 on May 5, 2009 1:05 PMHello,
Once you split partition you need to rebuild indexes if you want indexes to be in their own tablespaces
ALTER TABLE PART
SPLIT PARTITION PK_ID_PRD_MAXVALUE AT
(6)
INTO (PARTITION PK_ID_PRD5
TABLESPACE ACTIVITY_TAB_TS_1
PARTITION PK_ID_PRD_MAXVALUE);
ALTER INDEX PART_IX
REBUILD PARTITION PK_ID_PRD5
TABLESPACE ACTIVITY_IND_TS_1;
ALTER INDEX PART_IX
REBUILD PARTITION PK_ID_PRD_MAXVALUE
TABLESPACE ACTIVITY_IND_TS_1;Regards -
What are concequences of Split partition
I am using 11.2.0.2 database.
I got ORA-14074 error says that if you have a MAXVALUE already you will need to either drop the partition that encompasses the MAXVALUE or split partition.
So I want to use split partition option through the below statement,
alter table
tablename
split partition
partmax at (XXX)
into
(partition partXXX, partition partmax);
Please can somebody tell me the concequences of this statement.
I am concerned about the existing data in the table will it by any change gets deleted, and what about indexes, do I have to rebuild, etc.
I have to do this on produciton.
I cannot test this as I don't have a test environment and moreover the table is having 70 million records and we don't have time/hardware resources to recreate this by export import in another database.
Please advise on the bold above text.>
Please can somebody tell me the concequences of this statement.
I am concerned about the existing data in the table will it by any change gets deleted, and what about indexes, do I have to rebuild, etc.
>
No - no data will get deleted. As others have said there are options for keeping the indexes up-to-date or you can rebuild them.
>
I cannot test this as I don't have a test environment and moreover the table is having 70 million records and we don't have time/hardware resources to recreate this by export import in another database.
>
Total RUBBISH!
That's the lamest excuse I have heard on the forums in a long time. You have several hours to post and thread and then wait to see if there is anyone you don't know and have never worked with that will respond but you don't have a couple of hours to do a simple test?
Seventy million records is nothing and if you do the test on a PC using a version of Oracle that you can download for free.
Anyone that doesn't test changes going into their production environment should NOT be working in this field: they should find a new line of work. That is incompetence at its worst.
The SPLIT PARTTION test doesn't need a lot of data: just some data for each of the two resulting partitions. You can easily create a clone table using CTAS and then manually add the indexes. -
Question for Ali Brown about split partition
Ali:
I thought that I was posting a new topic by changing the subject line but I saw that it didn't work--but it was already up in lights . . . . It's an amazing race, eh? Thanks for your previous reply, glad it's easy to do--please, informa me . . . . While replying to Warren P about his printer issues I saw that you are running a split partition in one of your computers. I have an Imac G4 with 10.1.5/9.22 that perhaps one day I'd like to bring up to 10.3.9, but keeping the OS 9 side intact. Is that a GUI type exercise or did it take a special program? I haven't look at Disc Util in my iMac to see how that might be done, nor have I searched Apple Database . . .. Seeing your hardware info just piqued my curiosity. Any links to info about how to do what you did?? Thanks.
eepHi Again eep!
As I posted in the previous topic, my HD is not partitioned.
OS 9 & OS X exist together, and my iMac is Dual-Boot.
When I upgraded from 10.1.5, I did a Simple Update to Panther 10.3.x, and eventually updated to 10.3.9.
Some info in these links:
Mac OS X 10.3 installation (FAQ).
About installation options. Basically the same for Panther 10.3.x.
Tiger is available for purchase at The Apple Store (U.S.).
Panther, is no longer available directly from the Apple Online Store, as Tiger 10.4.x is the most up to date OS.
If you know what to look for, a Full Retail Version, of the Panther Install CDs, or a Full Retail Version, of the Tiger Install DVD, can also be purchased rather inexpensively, at some online Apple retailers, Amazon, eBay, AppleRescue, FastMac, etc.
Be sure not to purchase grey, upgrade or machine specific CDs or DVDs.
Panther is only on CDs, not DVDs.
Unless purchased from AppleRescue, the discs should look exactly like the images in the above links, and not say Upgrade on them.
Additional info in these links.
Using OS X Install CDs/DVDs On Multiple Macs
What's A Computer Specific Mac OS X Release
Software Update, Upgrade: What's The Difference?
Before upgrading to any OS X version, check to see if your Mac needs a Firmware Update.
If one is required, you must start the computer from a Mac OS 8 or Mac OS 9 System Folder on the computer's hard disk, not from a CD, in order to install it.
Once Panther 10.3.x is installed, you can use the 10.3.9 Combo Update, to upgrade to the final version.
If your Mac meets the System Requirements for Tiger, you could also consider installing that.
And then use the PPC 10.4.8 Combo Update, to upgrade to the current version.
Panther System Requirements
Additional Panther System Requirements
Tiger System Requirements
Additionally, "Tiger ships on a DVD, but if your Mac doesn’t have a built-in DVD-ROM player, you’ll need CD media. When you buy Mac OS X Tiger, you qualify to purchase Tiger CDs for only $9.95."
Download the Media Exchange Program Order From Here.
Orders must be mailed by March 19, 2007.
AppleRescue, also sells a Tiger installation set on CD
Shop Carefully, Examine All Documentation, And Good Luck!
ali b -
Segment space while splitting partition
Hello,
I am using Oracle Database version, 11.2.0.2
I am facing issue while splitting non-empty partitions.
Issue:
While splitting the non-empty partitions, oracle by default assigning segment space of 8MB. On the other hand, while I split empty partition or create the new partition, it does not get the segment space.
I am using range partitions, and requirement is such we need to create daily partitions. So, this eats up a lot of space of database and I want to avoid this.
I checked on internet, its been written that one parameter is causing this change. i.e. "_partition_large_extents"
I alter the session and put the above parameter as 'false', but still it doesn't help.
Let me know, what I can do, while splitting partition and deferring the segment space.
Thanks in advanceHi,
It is discussed in bug
Bug 12415287 - DEFERRED SEGMENT CREATION DOES NOT WORK ON SPLIT PARTITION
As per the bug, this issue will be fixed in 11.2.0.4 version.
Thanks,
Krishna -
Insufficient privileges - Split Partitioned IOT
Hi,
Can someone help me figuring this out. I'm trying to do a SPLIT PARTITION in a stored procedure.
SQL> select * from v$version where rownum = 1;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
1 row selected.This is my sample table:
SQL> CREATE TABLE tab (
period NUMBER(13) NOT NULL,
check_id VARCHAR2(4) NOT NULL,
opkr_number NUMBER(7) NOT NULL
,CONSTRAINT tab_pk PRIMARY KEY (period, check_id, opkr_number)
ORGANIZATION INDEX COMPRESS 2
PARTITION BY LIST (period)
PARTITION tab_p72 VALUES(72),
PARTITION tab_p73 VALUES(73),
PARTITION tab_rest VALUES(DEFAULT));
Table created.And I want to do this in my procedure:
SQL> ALTER TABLE tab SPLIT PARTITION tab_rest VALUES(74) INTO (PARTITION tab_p74, PARTITION tab_rest);
Table altered.
SQL> ALTER TABLE tab DROP PARTITION tab_p74;
Table altered.This attempt won't work:
SQL> CREATE OR REPLACE PROCEDURE myproc
AS
BEGIN
EXECUTE IMMEDIATE 'ALTER TABLE tab SPLIT PARTITION tab_rest VALUES(74) INTO (PARTITION tab_p74, PARTITION tab_rest)';
END;
Procedure created.
SQL> exec myproc
ORA-01031: insufficient privileges
ORA-06512: at "XQL_STIK.MYPROC", line 4
ORA-06512: at line 1Only if I put in AUTHID CURRENT_USER, it will. And this what I just cannot figure out.
SQL> CREATE OR REPLACE PROCEDURE myproc2
AUTHID CURRENT_USER
AS
BEGIN
EXECUTE IMMEDIATE 'ALTER TABLE tab SPLIT PARTITION tab_rest VALUES(74) INTO (PARTITION tab_p74, PARTITION tab_rest)';
END;
Procedure created.
SQL> exec myproc2
PL/SQL procedure successfully completed.
SQL> ALTER TABLE tab DROP PARTITION tab_p74;
Table altered.It cannot be the ALTER TABLE privilege.
SQL> create or replace procedure myproc3
as
begin
execute immediate 'ALTER TABLE tab ADD x NUMBER';
end;
Procedure created.
SQL> exec myproc3
PL/SQL procedure successfully completed.
SQL> DROP TABLE tab PURGE;
Table dropped.Can anyone see what I'm missing?
Edit: I can even do this, so it must have to do with the SPLIT (And this being an IOT)
SQL> CREATE OR REPLACE PROCEDURE myproc4
AS
BEGIN
EXECUTE IMMEDIATE 'ALTER TABLE tab DROP PARTITION tab_rest';
EXECUTE IMMEDIATE 'ALTER TABLE tab ADD PARTITION tab_p74 VALUES(74)';
END;
Procedure created.
SQL> exec myproc4
PL/SQL procedure successfully completed.Best regards
Peter
Edited by: Peter Gjelstrup on Feb 3, 2010 4:34 AM
- Added DROP/ADD exampleHi Herald,
and Centinul.
Thanks for that metalink. Looked promising, but I'm not sure. It seems that I can use ALTER SESSION, even in a SP.
SQL> CREATE OR REPLACE PROCEDURE myproc5
AS
BEGIN
EXECUTE IMMEDIATE 'ALTER SESSION SET NLS_LANGUAGE = american';
END;
Procedure created.
SQL> select value
from nls_session_parameters
where parameter = 'NLS_LANGUAGE';
VALUE
DANISH
1 row selected.
SQL> set role none;
Set role complete.
SQL> exec myproc5
PL/SQL procedure successfully completed.
SQL> select value
from nls_session_parameters
where parameter = 'NLS_LANGUAGE';
VALUE
AMERICAN
1 row selected.
SQL> select * from session_privs
order by 1;
PRIVILEGE
CREATE MATERIALIZED VIEW
UNLIMITED TABLESPACE
2 rows selected.
SQL> set role all;
Set role complete.
SQL> select * from session_privs
order by 1;
PRIVILEGE
ALTER SESSION
CREATE CLUSTER
CREATE INDEXTYPE
CREATE MATERIALIZED VIEW
CREATE OPERATOR
CREATE PROCEDURE
CREATE SEQUENCE
CREATE SESSION
CREATE SYNONYM
CREATE TABLE
CREATE TRIGGER
CREATE TYPE
CREATE VIEW
UNLIMITED TABLESPACE
14 rows selected.Hmm..
Edit:
[Bug:1548539|https://support.oracle.com/CSP/main/article?cmd=show&type=BUG&id=1548539]
Seems to indicate that CREATE TABLE is the thing I'm looking for.
This seems to be consistent with what Bartek has.
Can anyone confirm, by running some of my original test case with and without CREATE TABLE privilege?
I'm sorry for asking for this final confirmation, unfortunately it would be quite painful for me to have some privileged user do that for me.
Regards
Peter
Edited by: Peter on Feb 3, 2010 8:50 AM
- Maybe CREATE TABLE? -
Hi,
I'm trying to split a default partition TO_DELETE_NULL into partition TO_DELETE_Y should contains value 'Y'
Created the partitions on to_delete column,
ALTER TABLE PART_TEMP
SPLIT PARTITION TO_DELETE_NULL VALUES ('Y')
INTO (PARTITION TO_DELETE_Y, PARTITION TO_DELETE_NULL)
Getting the error:
ORA-14313: Value 'Y' does not exist in partition TO_DELETE_NULL
But, here is the data,
TO_DELETE ID SOURCE_ID TEMP_ID
Y 123 1 312
Y 1 2 32
123 1 312
123 2 312
123 2 32
13 2 32
please advice.Here is the formatted data No, it's not.
Use the {noformat}{noformat}tag when you want to post formatted data.
For example, when you type (or copy/paste):
{noformat}select *
from dual;
{noformat}
it will appear as:select *
from dual;
on this forum.
See for FAQ for more tags: http://forums.oracle.com/forums/help.jspa -
Help with the split partition.
Hi,
I did a split partition on a table and when I tried to gather the stats on only the new partitions after rebuilding the index on the new partition
which I created form split I am getting the error "ORA-01502: index 'PS.PS_MP_PACk_PK' or partition of such index is in unusable state".
SQL> ALTER INDEX PS.PS_MP_PACk_PK rebuild partition PART_20100202;
Index altered.
SQL> exec dbms_stats.gather_table_stats('PS','PS_MP_PACk', 'PART_20100202');
BEGIN dbms_stats.gather_table_stats('PS','PS_MP_PACk', 'PART_2010020
2'); END;
ERROR at line 1:
ORA-12801: error signaled in parallel query server P017
ORA-01502: index 'PS.PS_MP_PACk_PK' or partition of such index is in unusable state
ORA-06512: at "SYS.DBMS_STATS", line 18408
ORA-06512: at "SYS.DBMS_STATS", line 18429
ORA-06512: at line 1
Do I need to rebuild the indexes on all the previous partitions also ('PART_20100201'.'PART_20100131') , any help is appreciated.
Thanks.Thanks a lot Robert. I rebuild indexes on all the new partitions which were created from split and I was able to gather stats on one partition and now I will continue for remaining partitions.
-
Data load failure - SPLIT PARTITION FAILED
Hi ,
We are trying to load data into PSA from R/3. But its giving the error "SPLIT PARTITION FAILED".
The basis has Confirmed that there are no space issues.
Has Anybody faced this error.
Regards,
Mayankhi,
as a first thought, i suggest you look at the incoming data, is it that values coming in records cannot be stored in existing partitions something like out of range.
hope this helps
purvang -
Need to split partition my Mountain Lion HDD with Lion.
Hi all,
My MBP was shipped with Lion, I bought Mountain Lion and upgraded. However I now need to install Lion onto a partition of my HDD for my Firewire mixer (Phonic Helixboard 12 MKII). This mixer doesn't work with Mountain Lion sadly as they said they weren't updating the drivers...bad times. I also want a bootable partition for using my laptop live. Having nothing else but my music software running sort of thing to reduce technical hitches.
Anyway, I cannot find the Lion .app installer on the store (even with sneaky "option" on the purchases). Presumably I have never bought Lion then? Or is there something I'm missing?
Any ideas? I know I may be treading over old ground, but I've scoured the community for people that have Mountain Lion, but then need Lion. My main annoyance is that I've theoretically bought Lion as it came with the MBP.
(Also didn't know if this'd be an OS problem or MBP problem, sorry if I've placed this in the wrong place)
Many Thanks.
Patrick.First let's split the HDD up so both cats can live harmoniously (I also have a twin-cat household in mine so I can tell you it does work). You need to boot off something not on the internal HDD whose partition table you are going to modify. If you have a bootable clone on an external drive, use that. Else concoct a bootable USB Recovery Disk on a flash stick with the Recovery Disk Assistant, as detailed here: http://support.apple.com/kb/HT4848 Also make sure you have a full and complete backup in case all goes South and you end up needing to reformat the drive entirely.
When you have booted as needed, run Disk Utility from the external drive. Choose the drive in the list so the Partitions tab appears, click on that. You'll see your Macintosh HD volume using up all the drive space. Clck and drag from the lower-right corner upwards to shrink the volume. Can only do so if there's unused room left. You will have an empty space left underneath. Click Apply to complete the shrinking. Then click on the plus ( + ) button to create a new volume in the newly freed space. Give it a name, make sure it is OS X Extended (Journaled) and Apply. Ta-da, you now have TWO volumes for your cats.
Now, if you're using the USB Recovery Disk, simply exit out of Disk Utility to return to the top-level menu and be able to choose "Reinstall OS X". Do that now, choosing your new and blank volume as the destination. If my calculations are right, you should be granted access to the default cat originally entitled to your Mac, which would be Lion and what you want.
Try that for now. If the right cat does not float down the wire, we'll do more brainstorming on how to get it. -
I have to split a single monthly partition (for month-end date) into daily partition for each day of the month. I am currently doing it one at a time, that is, by splitting one partition into two like 31st january into 31st January and 1st January. Then 31st January into 31st and 2nd January.( It is all in a loop). My question is can I one partition into more than 2 partition in one command so that they can happen in parallel.
My current process is taking 10 hours to complete ( One month data is about 30 million which is splitting into approximate 1 million rows each day).
I need to bring this time down to about couple of hours.
Ant suggestion is welcome.Hello,
h5. Best and fast option is to create any empty table with all the required daily partition and just move data and use direct path insert.
CREATE TABLE T1
D DATE NULL
TABLESPACE TEST_DATA
PARTITION BY RANGE (D)
PARTITION P_MAR92009 VALUES LESS THAN (TO_DATE(' 2009-03-10 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
LOGGING
NOCOMPRESS
TABLESPACE TEST_DATA,
PARTITION P_MAR102009 VALUES LESS THAN (TO_DATE(' 2009-03-11 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
LOGGING
NOCOMPRESS
TABLESPACE TEST_DATA
insert /*+ APPEND */ into daily_partition_table select * from monthly_partition_table;Regards -
Splitting partition into multiple partitions
Hi,
As far as I can tell (up to an including Oracle 10g), one can only split a partition into 2 new partitions.
Thus if I had a partition with a maxvalue starting in january 2006, I would need to sequentially run a seperate split command for february, march and april. Does oracle provide a mechanism to split a partition into 4 partitions in one easy step. This would save alot of time, if not, maybe as an enhancement request for a new release?
Regards
MichaelHi,
that's my understanding too. There is no such thing like a 'bulk' split. But it would really be useful to have one.
Maybe you are looking for
-
OBIEE Samples and installation problem... NAT vs. Bridged
So, here's the quick problem... when running the Samples in VirtualBox and the Networking is set to NAT mode all is good all services start, etc. when the Network is set to Bridged mode I can't get the BIServer and the Presentation server to start? I
-
Can't group Lost Season 1 with Season 2 in genre
On the videos tab in the source window, when I click on TV shows selection at the top of the browse window, only the season 2 episodes that i've bought show up. However, i've ripped the entire first season already but why can't I get it to group toge
-
How to implement code to method in SPROXY
HI Version is ERP 6.0 EHP4... I have generated an webservice proxy class using Transaction SPROXY. Now i want to implement some business logic in one of the methods of the class. But i get the message: "You cannot edit proxy objects" How do i add my
-
REPORTS60_WEBLOC invalid
I have configured report server and cartridge for WEB deployment on OAS I use the following URl http://oracle/rwows/rwows60? server=repserver+report=test+userid=scott/[email protected]+destyp e=cache+desformat=HTML and I get the following message Err
-
How can I change my projects that I've done in Printshop - placed them in a folder in my document file - the are in a: Type SIG File - I cannot open them... Would like to change these documents into a: "Adope Reader X File type. How can I do thi