JAKARTAPROJECT
JAKARTA TIPJSP TIPJSP Áú¹®&´äº¯DATABASE TIPJAVASCRIPT TIPWEBHACKING TIP±âŸ TIP
µ¥ÀÌÅͺ£À̽º ÆÁ
µ¥ÀÌÅͺ£À̽º ÆÁ
µ¥ÀÌÅͺ£À̽º ÆÁ °Ô½ÃÆÇ ÀÔ´Ï´Ù
Oracle Hint
GoodBug
À̹ÌÁö ½½¶óÀÌ´õ º¸±â

/*+ ALL_ROWS */
explicitly chooses the cost-based approach to optimize a statement
block with a goal of best throughput (that is, minimum
total resource consumption)
°¡Àå ÁÁÀº ´ÜÀ§ 󸮷®ÀÇ ¸ñÇ¥·Î ¹® ºí·ÏÀ» ÃÖÀûÈ­Çϱâ À§ÇØ cost-based
Á¢±Ù ¹æ¹ýÀ» ¼±ÅÃÇÕ´Ï´Ù. (Áï, ÀüüÀûÀÎ ÃÖ¼ÒÀÇ ÀÚ¿ø ¼Òºñ)

/*+ CHOOSE */
causes the optimizer to choose between the rule-based
approach and the cost-based approach for a SQL statement
based on the presence of statistics for the tables accessed by
the statement
ÃÖÀûÀÚ(optimizer)°¡ ±× ¹®¿¡ ÀÇÇØ Á¢±ÙµÈ Å×À̺íÀ» À§ÇØ Åë°èÀÇ Á¸Àç¿¡
±Ù°Å¸¦ µÎ´Â SQL ¹®À» À§ÇØ rule-based Á¢±Ù ¹æ¹ý°ú cot-based Á¢±Ù ¹æ¹ý
»çÀÌ¿¡ ¼±ÅÃÇÏ°Ô ÇÕ´Ï´Ù.

/*+ FIRST_ROWS */
explicitly chooses the cost-based approach to optimize a statement
block with a goal of best response time (minimum
resource usage to return first row)
°¡Àå ÁÁÀº ÀÀ´ä ½Ã°£ÀÇ ¸ñÇ¥·Î ¹® ºí·ÏÀ» ÃÖÀûÈ­Çϱâ À§ÇØ cost-based Á¢±Ù
¹æ¹ýÀ» ¼±ÅÃÇÕ´Ï´Ù. (ù¹ø° ÇàÀ» µÇµ¹·Á ÁÖ´Â ÃÖ¼ÒÀÇ ÀÚ¿ø »ç¿ë)

/*+ RULE */
explicitly chooses rule-based optimization for a statement
block
¹® ºí·ÏÀ» À§ÇÏ¿©, rule-based ÃÖÀûÈ­¸¦ °í¸£´Â



/*+ AND_EQUAL(table index) */
explicitly chooses an execution plan that uses an access path
that merges the scans on several single-column indexes
±×¸¸Å­ ½ÇÇà °èȹÀ» ¼±ÅÃÇÕ´Ï´Ù. ±×¸®°í ¿©·µÀÇ single-column »öÀο¡
±× scanÀ» ÇÕº´ÇÏ´Â Á¢±Ù °æ·Î¸¦ »ç¿ëÇÕ´Ï´Ù.

/*+ CLUSTER(table) */
explicitly chooses a cluster scan to access the specified table
¼±ÅÃÇÕ´Ï´Ù. ±×¸®°í, Ŭ·¯½ºÅÍ´Â ±× ¸í½ÃµÈ Å×À̺íÀ» Á¢±ÙÇϱâ À§ÇØ »ìÇÌ´Ï´Ù.

/*+ FULL(table) */
explicitly chooses a full table scan for the specified table
±× ¸í½ÃµÈ Å×À̺íÀ» À§ÇÏ¿©, Àüü Å×À̺í scanÀ» °í¸£´Â

/*+ HASH(table) */
explicitly chooses a hash scan to access the specified table
¼±ÅÃÇÕ´Ï´Ù. ±×¸®°í, Çؽ¬´Â ±× ¸í½ÃµÈ Å×À̺íÀ» Á¢±ÙÇϱâ À§ÇØ ¿îÀ²À» »ìÇÌ´Ï´Ù.

/*+ HASH_AJ(table) */
transforms a NOT IN subquery into a hash antijoin to access
the specified table
º¯È¯, ±× ¸í½ÃµÈ Å×À̺íÀ» Á¢±ÙÇÏ´Â Çؽ¬ antijoinÀ¸·ÎÀÇ NOT IN ºÎ¼Ó Á¶È¸

/*+ HASH_SJ (table) */
transforms a NOT IN subquery into a hash anti-join to access
the specified table
º¯È¯, ±× ¸í½ÃµÈ Å×À̺íÀ» Á¢±ÙÇÏ´Â Çؽ¬ anti-joinÀ¸·ÎÀÇ NOT IN ºÎ¼Ó Á¶È¸

/*+ INDEX(table index) */
explicitly chooses an index scan for the specified table
±× ¸í½ÃµÈ Å×À̺íÀ» À§ÇÏ¿©, »öÀÎ scanÀ» °í¸£´Â

/*+ INDEX_ASC(table index) */
explicitly chooses an ascending-range index scan for the specified
table
±× ¸í½ÃµÈ Å×À̺íÀ» À§ÇÏ¿©, ascending-range »öÀÎ scanÀ» °í¸£´Â

/*+ INDEX_COMBINE(table index) */
If no indexes are given as arguments for the INDEX_COMBINE
hint, the optimizer uses whatever Boolean combination
of bitmap indexes has the best cost estimate. If particular
indexes are given as arguments, the optimizer tries to use
some Boolean combination of those particular bitmap indexes.
¾î¶² »öÀεµ INDEX_COMBINE ¾Ï½Ã¸¦ À§ÇØ Àμö·Î¼­ ÁÖ¾îÁöÁö ¾Ê´Â´Ù¸é,
bitmap »öÀÎÀÇ °áÇÕÀÌ ¾î¶² ºÎ¿ïÀǸ¦ °¡Àå ÁÁÀº ¼öÇà ³­À̵µ Æò°¡¸¦ °¡Áö°í
ÀÖµçÁö ÃÖÀûÀÚ´Â ÀÌ¿ëÇÕ´Ï´Ù.
Ưº°ÇÑ »öÀÎÀÌ Àμö·Î¼­ ÁÖ¾îÁø´Ù¸é, ÃÖÀûÀÚ´Â ±× Ưº°ÇÑ bitmap »öÀÎÀÇ
¸î¸îÀÇ ºÎ¿ïÀÇ °áÇÕÀ» »ç¿ëÇÏ·Á°í ³ë·ÂÇÕ´Ï´Ù.

/*+ INDEX_DESC(table index) */
explicitly chooses a descending-range index scan for the specified
table
±× ¸í½ÃµÈ Å×À̺íÀ» À§ÇÏ¿©, descending-range »öÀÎ scanÀ» °í¸£´Â

/*+ INDEX_FFS(table index) */
causes a fast full index scan to be performed rather than a full
table scan
ºü¸¥ Àüü »öÀÎ scanÀÌ Àüü Å×À̺í scanÀ̶ó±âº¸´Ù´Â ¼öÇàµÇ°Ô ÇÕ´Ï´Ù.

/*+ MERGE_AJ (table) */
transforms a NOT IN subquery into a merge anti-join to access
the specified table
º¯È¯, NOT IN ºÎ¼Ó Á¶È¸, ±× ¸í½ÃµÈ Å×À̺íÀ» Á¢±ÙÇϱâ À§ÇØ anti-joinÀ»
ÇÕº´ÇÕ´Ï´Ù.

/*+ MERGE_SJ (table) */
transforms a correlated EXISTS subquery into a merge semi-join
to access the specified table
º¯È¯, °ü·ÃµÈ EXISTS ºÎ¼Ó Á¶È¸, Á¢±ÙÀ¸·Î semi-joinÀ» ÇÕº´ÇÕ´Ï´Ù,
±× ¸í½ÃµÈ Å×À̺í

/*+ ROWID(table) */
explicitly chooses a table scan by ROWID for the specified
table
±× ¸í½ÃµÈ Å×À̺íÀ» À§ÇÏ¿©, ROWID¿¡ ÀÇÇØ Å×À̺í scanÀ» °í¸£´Â

/*+ USE_CONCAT */
forces combined OR conditions in the WHERE clause of a
query to be transformed into a compound query using the
UNION ALL set operator
ÈûÀº ÁúÀÇÀÇ WHERE ¹®Àý¿¡ ÀÖ´Â UNION ALL ÁýÇÕ ¿¬»êÀÚ¸¦ »ç¿ëÇÏ´Â ÇÕ¼ºÀÇ
ÁúÀÇ·Î º¯ÇüµÇ´Â OR Á¶°ÇÀ» ÇÕÃƽÀ´Ï´Ù.



/*+ ORDERED */
causes Oracle to join tables in the order in which they appear
in the FROM clause
¿À¶óŬÀÌ ¾î´À °Í¿¡ ¼ø¼­·Î Å×À̺íÀ» °áÇÕ½ÃÅ°°Ô ÇÕ´Ï´Ù.

/*+ STAR */
forces the large table to be joined last using a nested-loops join
on the index
Å« ÀÖ´Â Å×À̺íÀÌ ÃÖÁ¾ »ç¿ë/ȸÀüÀ²¿¡ nested-loops¸¦ °áÇÕ½ÃŲ ÈûÀº
±× »öÀο¡ °áÇÕÇÕ´Ï´Ù.



/*+ DRIVING_SITE (table) */
forces query execution to be done at a different site from that
selected by Oracle
ÈûÀº ±×°Í°ú ´Ù¸¥ ¿À¶óŬ¿¡ ÀÇÇØ ¼±ÅÃµÈ »çÀÌÆ®¿¡ µÇ´Â ½ÇÇàÀ» ÁúÀÇÇÕ´Ï´Ù.

/*+ USE_HASH (table) */
causes Oracle to join each specified table with another row
source with a hash join
¿À¶óŬÀÌ Å×À̺íÀÌ ´Ù¸¥ Çà ÀÚ¿øÀ¸·Î Çؽ¬ Á¢ÇÕÀ¸·Î ¸í½ÃµÇ¸é¼­ °¢ÀÚ¿Í
ÇÕÄ¡°Ô ÇÕ´Ï´Ù.

/*+ USE_MERGE (table) */
causes Oracle to join each specified table with another row
source with a sort-merge join
¿À¶óŬÀÌ Å×À̺íÀÌ ´Ù¸¥ Çà ÀÚ¿øÀ¸·Î sort-merge Á¢ÇÕÀ¸·Î ¸í½ÃµÇ¸é¼­ °¢ÀÚ¿Í
ÇÕÄ¡°Ô ÇÕ´Ï´Ù.

/*+ USE_NL (table) */
causes Oracle to join each specified table to another row
source with a nested-loops join using the specified table as the
inner table
¿À¶óŬÀÌ ±× ¸í½ÃµÈ Å×À̺íÀ» ±× ¾ÈÀÇ Å×À̺í·Î »ç¿ëÇÏ´Â nested-loops Á¢ÇÕ°ú
°¢ÀÚ¿Í ´Ù¸¥ Çà ÀÚ¿ø¿¡ ´ëÇÑ ¸í½ÃµÈ Å×À̺íÀ» ÇÕÄ¡°Ô ÇÕ´Ï´Ù.



/*+ APPEND */ , /*+ NOAPPEND */
specifies that data is simply appended (or not) to a table; existing
free space is not used. Use these hints only following the
INSERT keyword.
µ¥ÀÌŸ°¡ Å×À̺í·Î ´Ü¼øÈ÷ µ¡ºÙ¿©Áø´Ù´Â (or not)°Í ¸í½ÃÇÕ´Ï´Ù; ¹«·áÀÎ
ÇöÁ¸ÇÏ´Â ¿µ¿ªÀº »ç¿ëµÇÁö ¾Ê½À´Ï´Ù.
´ÜÁö ±× »ðÀÔ Å° Çٽɾ µû¸£´Â ÀÌ ¾Ï½Ã¸¦ »ç¿ëÇϽÿÀ.

/*+ NOPARALLEL(table) */
disables parallel scanning of a table, even if the table was created
with a PARALLEL clause
±× Å×À̺íÀÌ PARALLEL ¹®Àý·Î »õ·Î ¸¸µé¾îÁ³´Ù¸é Å×À̺íÀÇ ÆòÇàÀÇ ¼øÂ÷ °Ë»öÀ»
¹«´ÉÇÏ°Ô ¸¸µì´Ï´Ù.

/*+ PARALLEL(table, instances) */
allows you to specify the desired number of concurrent slave
processes that can be used for the operation.
DELETE, INSERT, and UPDATE operations are considered for
parallelization only if the session is in a PARALLEL DML
enabled mode. (Use ALTER SESSION PARALLEL DML to
enter this mode.)
´ç½ÅÀÌ ±× ¿¬»êÀ» À§ÇØ »ç¿ëµÉ ¼ö ÀÖ´Â µ¿½ÃÀÇ ½½·¹À̺ê(slave) ÇÁ·Î¼¼½ºÀÇ
¿ä±¸µÈ ¼ö¸¦ ¸í½ÃÇÏ´Â °ÍÀ» Çã¶ôÇÕ´Ï´Ù.
±× ¼¼¼ÇÀÌ °¡´ÉÇÏ°Ô µÈ PARALLEL DML¿¡ ¸ðµå¸¦ ÀÖ´Ù¸é, DELETE, INSERT, UPDATE
¿¬»êÀº ´ÜÁö parallelization¿¡ ´ëÇØ °í·ÁµË´Ï´Ù. (»ç¿ëÀº ÀÌ ¸ðµå¿¡ µé¾î°¡±â
À§ÇØ ÆòÇàÀÇ ¼¼¼Ç DMLÀ» º¯°æÇÕ´Ï´Ù.)

/*+ PARALLEL_INDEX
allows you to parallelize fast full index scan for partitioned
and nonpartitioned indexes that have the PARALLEL attribute
parallelize¿¡ ´ç½Å¿¡°Ô ºü¸¥ °¡µæÇÑ »öÀÎ scanÀ» Çã¶ôÇÕ´Ï´Ù. ±×·±µ¥,
±×°ÍÀº PARALLEL ¼Ó¼ºÀ» °¡Áö°í ÀÖ´Â »öÀÎÀ» ºÐÇÒÇß°í nonpartitionedÇß½À´Ï´Ù.

/*+ NOPARALLEL_INDEX */
overrides a PARALLEL attribute setting on an index
º´·ÄÀÌ »öÀÎÀ» ³ª¾Æ°¡´Â °ÍÀ» ¼ÓÇÏ°Ô ÇÏ´Â ´ëü


/*+ CACHE */
specifies that the blocks retrieved for the table in the hint are
placed at the most recently used end of the LRU list in the
buffer cache when a full table scan is performed
±× ºí·ÏÀÌ Ã£¾Æ¼­ °¡Á®¿Ô´Ù´Â °ÍÀ» ¸í½ÃÇÕ´Ï´Ù. ±×¸®°í ±× Å×À̺íÀ» À§ÇØ
±× ¾Ï½Ã¿¡ ³õ¿©Áý´Ï´Ù. ±×·±µ¥, ±×°ÍÀº °¡Àå ¿äÁîÀ½ »ç¿ëµÈ ¾ðÁ¦ ±× ¹öÆÛ Ä³½¬,
°¡µæÇÑ Å×À̺í scan¿¡ ÀÖ´Â LRU ¸®½ºÆ®ÀÇ ³¡ÀÔ´Ï´Ù. ¼öÇàµË´Ï´Ù.

/*+ NOCACHE */
specifies that the blocks retrieved for this table are placed at
the least recently used end of the LRU list in the buffer cache
when a full table scan is performed
±× ¸í½ÃÇÕ´Ï´Ù. ±×¸®°í, ±× ºí·ÏÀº ÀÌ Å×À̺íÀ» À§ÇØ °Ë»öµÇ¸é¼­ ¿äÁîÀ½ »ç¿ëµÈ
¾ðÁ¦ ±× ¹öÆÛ Ä³½¬, °¡µæÇÑ Å×À̺í scan¿¡ ÀÖ´Â LRU ¸®½ºÆ®ÀÇ °¡Àå ÀÛÀº ³¡¿¡
³õ¿©Áý´Ï´Ù. ¼öÇàµË´Ï´Ù.

/*+ MERGE (table) */
causes Oracle to evaluate complex views or subqueries before
the surrounding query
¿À¶óŬÀÌ ±× µÑ·¯½Î´Â ÁúÀÇ Àü¿¡ º¹ÀâÇÑ ºä³ª ºÎ¼Ó Á¶È¸¸¦ Æò°¡ÇÏ°Ô ÇÕ´Ï´Ù.

/*+ NO_MERGE (table) */
causes Oracle not to merge mergeable views
¿À¶óŬÀÌ mergeable ºä¸¦ ÇÕº´ÇÏÁö ¾Ê°Ô ÇÏÁö ¾Ê½À´Ï´Ù

/*+ PUSH_JOIN_PRED (table) */
causes the optimizer to evaluate, on a cost basis, whether or
not to push individual join predicates into the view
°³°³ Á¢ÇÕÀ» ¹Ì´Â °ÍÀÌ ±× ºä ¾ÈÀ¸·Î ´ÜÁ¤ ÇÏµç °£¿¡ ºñ¿ë ¹æ½ÄÀ¸·Î ÃÖÀûÀÚ°¡
Æò°¡ÇÏ°Ô ÇÕ´Ï´Ù.

/*+ NO_PUSH_JOIN_PRED (table) */
Prevents pushing of a join predicate into the view
Á¢ÇÕ ¼úºÎ Áß¿¡¼­ ±× ºä·Î ¹Ð¸é¼­, ¸·´Â

/*+ PUSH_SUBQ */
causes nonmerged subqueries to be evaluated at the earliest
possible place in the execution plan
¿øÀÎÀº ±× ½ÇÇà °èȹ¿¡¼­ÀÇ °¡Àå À̸¥ °¡´ÉÇÑ Àå¼Ò¿¡ Æò°¡µÇ´Â ºÎ¼Ó Á¶È¸¸¦
nonmergedÇß½À´Ï´Ù.

/*+ STAR_TRANSFORMATION */
makes the optimizer use the best plan in which the transformation
has been used.
ÃÖÀûÀÚ°¡ ±× º¯ÇüÀÌ »ç¿ëµÈ °¡Àå ÁÁÀº °èȹÀ» »ç¿ëÇÏ´Â Á¦ÀÛ

 

from devworld.co.kr

2005-06-22 18:37:12
211.189.124.***

 

ÁÁÀº»ý°¢ ^^

0Á¡ (0¸í)
µ¡±Û 1°³ | ÅÂ±× 0°³ | °ü·Ã±Ûº¸±â
ű×ÀÔ·Â
½±Ç¥(,)±¸ºÐÀ¸·Î Çѹø¿¡ ¿©·¯ ű׸¦ ÀÔ·ÂÇÒ¼ö ÀÖ½À´Ï´Ù
Ǭǧǐǻ
(0) (0)
ÈùÆ®Àý Á¤¸® ÃÖ°íÀÔ´Ï´Ù. ´Ù¸¥ »çÀÌÆ®¿¡¼­µµ º¼ ¼ö´Â ÀÖ°ÚÁö¸¸ ±ÛµéÀÌ ³Ê¹« ¸¹¾ÆÁ®¼­ »ç½Ç ã±â¶õ ½±Áö ¾ÊÁÒ.. ã´Â ½Ã°£¸¸ Çصµ ¿À·¡ °É¸®´Âµ¥ ÀÌ ÀÚÄ«¸£Å¸ÇÁ·ÎÁ§Æ®¿¡ »¡¸® Ä£¼÷ÇØÁ®¾ß°Ú½À´Ï´Ù.
210.113.126.*** 2005-07-15 17:15:44
À̸§ ºñ¹Ð¹øÈ£
µ¥ÀÌÅͺ£À̽º ÆÁ
µ¥ÀÌÅͺ£À̽º ÆÁ °Ô½ÃÆÇ ÀÔ´Ï´Ù
! ¹øÈ£ Á¦¸ñ ±Û¾´ÀÌ ÀÏÀÚ Á¶È¸
181 import DB ºÎºÐÀûÀÎ µ¥ÀÌÅÍ export / import ¹æ¹ý 2 kaiser 2008-12-29 7,795
180 NOT IN NOT EXISTS not in °ú not existsÀÇ °³³ä ÀÌÇØ 1 kaiser 2008-12-17 19,574
179 IP Á¢¼ÓÀÚ ¾ÆÀÌÇÇ º¸±â 1 GoodBug 2008-06-27 9,451
178 meta ¿À¶óŬ ½ºÅ°¸¶ ½ºÅ©¸³Æ® ¹Þ±â 1 GoodBug 2008-06-05 19,843
177 ORA-00054 ORA-00054: resource busy and acquire with NOWAIT specified 1 GoodBug 2007-10-27 13,058
176 ÇÑ±Û MYSQL ¼­¹ö ij¸¯¼ÂÀÌ EUCKRÀÌ ¾Æ´Ò°æ¿ì Ŭ¶óÀ̾ðÆ® ¼³Á¤ 1 GoodBug 2007-10-09 8,344
175 archive ¾ÆÄ«ÀÌºê ¼º´É Çâ»ó 1 GoodBug 2007-10-02 7,939
174 Dictionary Dict table 1 GoodBug 2007-10-02 7,224
173 ¿À¶óŬƩ´× redo log file ±¸¼º ¸ð´ÏÅÍ 1 GoodBug 2007-09-20 7,905
172 dictionary ÀÚÁÖ¾²´Â µñ¼Å³Ê¸® Á¤º¸ 1 1 GoodBug 2007-09-20 8,352
171 TableSpace Tablespace º° »ç¿ë·® È®ÀÎ 1 GoodBug 2007-09-20 8,766
170 ¿À¶óŬ üũÆ÷ÀÎÆ® °ü·Ã ÆĶó¹ÌÅÍ 2 GoodBug 2007-09-20 7,420
169 ¿À¶óŬƩ´× Å×ÀÌºí ½ºÄµ Åë°è 1 GoodBug 2007-09-19 7,265
168 ¿À¶óŬƩ´× v$filestat·Î µð½ºÅ© I/O ¸¦ È®ÀÎÇغ¸ÀÚ 1 GoodBug 2007-09-19 10,248
167 ¿À¶óŬƩ´× ORA-04031 ¿¡·¯ ´ëó¹ý ¹× ¿¹¹æ¹ý 1 GoodBug 2007-09-17 13,717
166 ¿À¶óŬƩ´× DB_FILE_MULTIBLOCK_READ_COUNT 1 GoodBug 2007-09-17 7,272
165 TableSpace TableSpace °ü¸® (Dictionary, Locally) 1 GoodBug 2007-09-16 7,774
164 ¿À¶óŬƩ´× ¹®Á¦ÇØ°á ¹× Æ©´× °ü·Ã ºä 2 GoodBug 2007-09-16 7,698
163 segment ¿À¶óŬ SEGMENT 1 GoodBug 2007-09-16 8,628
162 startup ¿À¶óŬ startup½Ã ´Ü°èº° ¿ÀÇ ÆÄÀÏ 1 GoodBug 2007-09-16 7,531
copyright 2005-2024 by Unicorn