Oracle ORA-14074´Â »õ·Î¿î ºÐÇÒ ½ÇÆÐ °ú½ÇÀ» âÁ¶Çϰųª Ãß°¡ÇÑ´Ù
Oracle µ¥ÀÌŸº£À̽º ºÐÇÒÀº ¸í·áÇϰí, ´õ ÀÛÀºÀ¸·Î ³í¸® µ¥ÀÌŸº£À̽ºÀÇ ºÎºÐ ¶Ç´Â ºÐÇØ ¹× ¶Ç´Â ±×°ÍÀÇ Ã¢¼³ ¼ººÐ (»öÀÎ ¶Ç´Â ó¸® ±â·Ï), ´õ ´Ù·ç±â ½¬¿î µ¶¸³ÀûÀÎ ºÎ¼Ó ¶Ç´Â Á¶°¢ÀÌ´Ù. µ¥ÀÌŸº£À̽º ºÐÇÒÀº ´Ù·® ¿ª»ç ÀڷḦ ÀúÀåÇÏ°í ºÐ¼®ÇÏ´Â ÀÚ·á â°í ½Åû¿¡¼ ¾ÆÁÖ Å« Å×ÀÌºí ±×¸®°í »öÀÎÀ», ƯÈ÷ Áö¿øÇؼ Á÷¸éµÈ ¹®Á¦¿¡ ÇØ°áÃ¥À» Á¦°øÇÑ´Ù. ºÐÇÒÇϰųª Å×À̺íÀÌ ³ª´©´Â »óÅ¿¡¼, SQL °è»ê¼´Â ºÐÇÒ º¸´Ù´Â ¿ÀÈ÷·Á Àüü Å×ÀÌºí ¶Ç´Â »öÀο¡ Á¢±ÙÇÏ°í ±³¹¦È÷ ´Ù·ê ¼ö ÀÖ°í, ÀÌ·¸°Ô Oracle µ¥ÀÌŸº£À̽ºÀÇ ´Ù·ç±â ½¬¿ò, ¼º°ú ¶Ç´Â °¡¿ë¼ºÀ» Áõ°¡ÇÑ´Ù.
Oracle ¼¹ö ¶Ç´Â Oracle ±â¾÷ ÆÇ¿¡¼´Â, ´ç½ÅÀÌ ¸í·ÉÀ» »ç¿ëÇØ¼ ±¸ºÐ Å×ÀÌºí¿¡ Ãß°¡ÀûÀÎ »õ·Î¿î ºÐÇÒÀ» Ãß°¡Çϰñ ½ÍÀ» ¶§ Å×À̺í tablename¸¦ <¹Ù²Ù½Ê½Ã¿À> ºÐÇÒÀ» Ãß°¡ÇϽʽÿÀ, °úÁ¤Àº ½ÇÆÐÇϰí SQL*Plus´Â µÚ¿¡ ¿À´Â °ú½ÇÀ» µ¹·Áº¸³¾ °ÍÀÌ´Ù:
ORA-14074: ºÐÇÒ °æ°è´Â ¸¶Áö¸· ºÐÇÒÀÇ Àú°Í º¸´Ù´Â ³ôÀÌ ´ëÁ¶ÇØ¾ß ÇÑ´Ù
ÀÌ °ú½Ç ÁõÈÄ´Â ÀϹÝÀûÀ¸·Î ÇàÁ¤°üÀÌ 2°³ÀÇ ºÐÇÒ »çÀÌ ±¸ºÐ Å×ÀÌºí¿¡ »õ·Î¿î ºÐÇÒÀ» Ãß°¡Çϰųª âÁ¶ÇÒ °ÍÀ» ½ÃµµÇÒ ¶§ ÀϾÙ, ¶Ç´Â °¡Àå ³ôÀº ºÐÇÒ¿¡ ºÐÇÒ °æ°è°¡ MAXVALUE (ÀÎ °æ¿ì¿¡ »õ·Î¿î ºÐÇÒÀº óÀ½ºÎÅÍ ¶Ç´Â Å×À̺íÀÇ ÇѰ¡¿îµ¥¿¡ ºÐÇÒ ¿¼è¿¡ MAXVALUE·Î Á¤ÀÇµÈ °¡Àå ³ôÀº ºÐÇÒ·Î, ¶Ç´Â ¿ø·¡ ºÐÇÒ Ã¢Á¶µÇ¾ú´Ù ÀÖ´Ù).
°ú½ÇÀ» À§ÇÑ °¡Àå ±×·²µíÇÑ ÀÌ·ÐÀº MAXVALUE »ó°è ºÐÇÒÀÌ´Ù. ´ç½ÅÀº SQL*Plus ¶Ç´Â µÎ²¨ºñ¿¡ ÀÖ´Â µÚ¿¡ ¿À´Â ¸í·ÉÀ» »ç¿ëÇØ¼ Å×À̺íÀ» À§ÇØ Á¤ÀÇµÈ ºÐÇÒ¿¡¼ °í°¡¿Í °°ÀÌ Á¸ÀçÇϸé ÀÖ´ÂÁö °Ë»çÇÒ ¼ö ÀÖ´Ù:
dba_tab_partitions¿¡¼ high_value¸¦ table_name = `table_name' ¼±Á¤ÇϽʽÿÀ;
´ç½ÅÀº ¹«¾ð°¡¸¦ °°ÀÌ º¸¾Æ¾ß ÇÑ´Ù:
HIGH_VALUE
- - - - - - - - - - - - - - - - - - - - - - - - - - -
10
20
30
MAXVALUE
À§ ´ëº» ÀüºÎ¿¡¼´Â, Oracle´Â Ãß°¡ÇÑ´Ù ºÐÇÒ SQL °è»ê¼¸¦ »ç¿ëÇØ¼ »õ·Î¿î ºÐÇÒÀ» âÁ¶ÇÏ´Â °ÍÀ» Çã¿ëÇÏÁö ¾Ê´Â´Ù. ÀÌ ¸î¸î °æ¿ìÀÇ »õ·Î¿î ºÐÇÒÀ» Ãß°¡ÇÏ´Â °ÍÀº ºÐÇÒÀÇ ±Õ¿·Î¼¸¸ Âɰ³Áö´Â ºÐÇÒÀÇ SQL ¸í·ÉÀ» »ç¿ëÇØ¼ ÇàÇØÁú ¼ö ÀÖ´Ù.
ORA-14074 °ú½Ç¿¡ ÀÌ·¸°Ô workaround ¶Ç´Â ÇØ°áÃ¥Àº µÚ¿¡ ¿À´Â SQL ÀÌ¹Ì ±¸ºÐ Å×ÀÌºí¿¡ »õ·Î¿î ºÐÇÒÀ» Ãß°¡Çϰųª âÁ¶Çϱâ À§ÇÏ¿© ¸ñÇ¥¸¦ ´Þ¼ºÇϵµ·Ï Åë¾î·ÐÀ» ÀÌ¿ëÇØ¼ ÀÌ´Ù:
Å×À̺í tablename¸¦ <¹Ù²Ù½Ê½Ã¿À> Âɰ³Áö´Â ºÐÇÒ
°¡µæ Â÷ÀÖ´Â Åë¾î·ÐÀº:
Å×À̺í table_name¸¦ <¹Ù²Ù½Ê½Ã¿À> Âɰ³Áö´Â ºÐÇÒ <partition_name> ¿¡ (<°¡Ä¡>)
·Î (ºÐÇÒ <new_partition>, ºÐÇÒ <next_partition (¶Ç´Â ¼±ÀÇ À§ °Í°ú °°ÀÌ partition_name>)
°»½Å ¼¼°èÀûÀÎ »öÀÎ;
ÁÖ: °»½Å ¼¼°èÀûÀÎ »öÀÎÀº ¼±Åà ÀÌ´Ù.
¿¹¸¦ µé¸é:
Å×ÀÌºí ¹ÎÁÖ´ç¿ø Âɰ³Áö´Â ºÐÇÒ pmaxvalue¸¦¿¡ (40)·Î ¹Ù²Ù½Ê½Ã¿À (ºÐÇÒ newpartition, ºÐÇÒ pmaxvalue);
Áß¿äÇÑ: À̰ÍÀº º¸Àå ¾øÀÌ "ÀÖ´Â ±×´ë·Î" Á¦°øµÇ´Â ±â°è ¹ø¿ª ÆäÀÌÁöÀÌ´Ù. ±â°è¹ø¿ªÀº ÀÌÇØÇϱ⠰ï¶õÇÒÁöµµ ¸ð¸¥´Ù. Âü°íÇϽʽÿÀ original English article whenever possible.
Share and contribute or get technical support and help at My Digital Life Forums.
Related Articles
- Create, Add or Split Oracle Database Partition Fails with ORA-14080 Error
- Oracle ORA-01658 Unable to Create INITIAL Extent for Segment in Tablespace Error
- Oracle Database Import Error 3113/3114
- ORA-01502 Oracle Index in Unusable State
- ORA-00942 Table or View Does Not Exist Oracle Error
- ORA-02449 Oracle Drop Table Error
- Manual and Clean Uninstall Oracle for Windows
- Oracle PL/SQL ORA-00947 Not Enough Values Error
- ORA-25153 Temporary Tablespace is Empty Error in Oracle
- How to Rename or Move Oracle Tablespace Datafile to Another Location

































November 8th, 2006 18:44
[...] Oracle table partitioning is important for optimum performance of the database, as it allows Oracle to process the specific and independat partition or part that is smaller in size, instead of entire full table or database. However, when you want to create a new partition to a table by adding or splitting partition, administrator may encounter errors such as ORA-14074. Other than that, Oracle error ORA-14080 can also happen, if you¡¯re not careful enough with the following symptom: [...]
April 7th, 2008 18:44
we have a partition D20080330 already created abd the maxvalue is D30001231.
Now we want to split the partition for D20080330.
ALTER TABLE TABLE_NAME SPLIT PARTITION D30001231
at (TO_DATE(¡¯20080401¡Ç, ¡®YYYYMMDD¡¯)) INTO (PARTITION D20080331, PARTITION D30001231);
fails with the error
ORA-14080: partition cannot be split along the specified high bound.
What am i missing in the above alter statement, any help would be appreciated