BACKRUSH  À¯´Ð½º¸í·É  ´ÙÀ½  ÀÚ·á½Ç  Ascii Table   ¿ø°ÝÁ¢¼Ó  ´Þ·Â,½Ã°£   ÇÁ·Î¼¼½º   ½©
ÁöÇÏö³ë¼±   RFC¹®¼­   SUN FAQ   SUN FAQ1   C¸Þ´º¾ó   PHP¸Þ´º¾ó   ³Ê±¸¸®   ¾Æ½ºÅ°¿ùµå ¾ÆÀÌÇǼ­Ä¡

±Û¾´ÀÌ: ¿ÀÆÐÄ¡ Opatch ¹æ¹ý Á¶È¸¼ö: 12458


(V9.2) OPATCH ±â´É ¹× »ç¿ë°¡À̵å
================================

PURPOSE
-------

ÀÌ ¹®¼­´Â 9iÀÇ »õ ±â´ÉÀÎ Opatch¿¡ ´ëÇÑ ¼Ò°³¿Í ±â´É,
»ç¿ë ¹æ¹ý¿¡ ´ëÇÑ ³»¿ëÀ» ¼Ò°³ÇÑ´Ù.


Explanation
-----------

1. Opatch ¼Ò°³

Oracle Server 9.2.0.2.0 ºÎÅÍ´Â interim patch(one-off patch, Áï
single patch)¸¦ Àû¿ëÇÒ ¶§ 'opatch'¶ó´Â toolÀ» »ç¿ëÇÑ´Ù.

Metalink¿¡¼­ Ç×»ó ÃֽŠOpatch tool À» download¹ÞÀ» ¼ö ÀÖµµ·Ï
°»½ÅµÈ´Ù.
Opatch´Â OPATCH ARU PLACEHOLDER. ¿¡¼­ download¹ÞÀ» ¼ö ÀÖ´Ù.
2004³â 11¿ù 9ÀÏ ÇöÀç, 10¿ù 22ÀÏ¿¡ releaseµÈ ÃֽŠ¹öÁ¯ 10.1.0.2.0À»
¹ÞÀ¸¸é µÈ´Ù.


2. Opatch ±â´É

Opatch´Â interim patch¸¦ Àû¿ëÇϰųª ´Ù½Ã rollbackÇÒ ¶§ »ç¿ëÇÏ´Â
ÀÏÁ¾ÀÇ perl-based utilityÀÌ´Ù. Unix platformÀ̳ª Windows platform
¿¡ Opatch¸¦ »ç¿ëÇÒ ¼ö ÀÖ´Ù.
Opatch´Â ±âÁ¸¿¡ ¿À¶óŬ µ¥ÀÌŸº£À̽º¿¡ Àû¿ëµÇ¾î ÀÖ´Â patch list¸¦
¾Ë°Ô ÇØÁÖ°í, ±â Àû¿ëµÇ¾î ÀÖ´Â patch¿Í Ãæµ¹ ¿©ºÎµµ È®ÀÎÇÒ ¼ö ÀÖ´Â
±â´ÉÀÌ ÀÖ´Ù.


3. Opatch »ç¿ë ȯ°æ

1) Opatch¸¦ »ç¿ëÇϱâ À§ÇÑ Áغñ»çÇ×

Perl versionÀº ÃÖ¼ÒÇÑ 5.005_03 ÀÌ»óÀ» ¿ä±¸ÇÏ¸ç °¡±ÞÀû 5.6 ÀÌ»óÀ»
±ÇÀåÇÑ´Ù.
JRE´Â $ORACLE_HOME¿¡ ¼³Ä¡µÈ JRE¸¦ »ç¿ëÇÑ´Ù.


2) inventory

Inventory´Â Oracle RDBMS ¼³Ä¡ ½Ã µÎ °³ÀÇ inventory°¡ »ý¼ºµÈ´Ù.
Çϳª´Â oraInst.loc¿¡¼­ ÁöÁ¤µÈ inventory directoryÀÌ°í, ÀÌ°ÍÀ»
central inventory¶ó°í ÇÑ´Ù.
´Ù¸¥ Çϳª´Â $ORACLE_HOME ¾Æ·¡¿¡ »ý¼ºµÇ´Â inventory directoryÀ̸ç
ÀÌ°ÍÀ» Local inventory¶ó°í ÇÑ´Ù. Opatch Àû¿ë ½Ã ¹Ýµå½Ã ÀÌ µÎ °³ÀÇ
inventory°¡ Á¤»óÀûÀ¸·Î À¯ÁöµÇ¾î¾ß ÇÑ´Ù.

3) RAC ȯ°æÀÎ °æ¿ì Oracle°ú Cluster¿ÍÀÇ ÀÎÅÍÆäÀ̽º¸¦ À§ÇÏ¿©
oracle library¸¦ »ç¿ëÇϴµ¥ ´ÙÀ½ °æ·Î°¡ library path¿¡ Æ÷ÇԵǾî
ÀÖ¾î¾ß ÇÑ´Ù.
Sun solarisÀÇ °æ¿ì LD_LIBRARY_PATH ÀÌ°í, HP-UXÀÇ °æ¿ì SHLIB_PATHÀÌ´Ù.


4. Opatch ¼³Ä¡

1) Metalink¿¡¼­ ÃֽŠ¹öÁ¯ Opatch¸¦ download¹ÞÀ¸¸é p2617419_10102_GENERIC.zip
À̶ó´Â À̸§À¸·Î È­ÀÏÀÌ Á¸ÀçÇÑ´Ù.
ÀÌ È­ÀÏÀ» OS¿¡ COPY ÈÄ, ¾ÐÃàÀ» Ǭ´Ù.
»ç¿ëÀÚ°¡ ÀÓÀÇ·Î ¿øÇÏ´Â µð·ºÅ丮¸¦ ¸¸µé¾î¼­ ±× µð·ºÅ丮¿¡ È­ÀÏÀ» Ǭ´Ù.

$ unzip p2617419_10102_GENERIC.zip

2) OSÀÇ ¾î´À µð·ºÅ丮¿¡¼­ »ç¿ëÇϵçÁö »ó°ü¾øµµ·Ï Çϱâ À§ÇØ È¯°æº¯¼ö
PATH¿¡ Opatch°¡ ¼³Ä¡µÇ¾î ÀÖ´Â µð·ºÅ丮¸¦ ±â¼úÇÑ´Ù.

¿¹) export PATH=$PATH:/oracle/opatch/Opatch
setenv PATH $PATH:/oracle/opatch/Opatch


5. ÁÖÀÇ »çÇ×

Opatch Àû¿ë ½Ã¿¡´Â ¹Ýµå½Ã ±âÁ¸ÀÇ inventory Áï, $ORACLE_HOME/inventory¿Í
oraInst.loc¿¡¼­ Áö½ÃÇÏ´Â central inventory¸¦ backup¹Þ¾Æ µÎ¾î¾ß ÇÑ´Ù.
WindowsÀÇ °æ¿ì winzip, unix¿¡¼­´Â tar¸¦ »ç¿ëÇÏ¸é µÈ´Ù.


<Âü°í>
oraInst.loc Àº Unix¸¶´Ù Á¶±Ý ´Ù¸¥µ¥ ´ÙÀ½ À§Ä¡¿¡ Á¸ÀçÇÑ´Ù.

- AIX¿Í Linux : /etc directory
- ´Ù¸¥ Unix ±âÁ¾ : /var/opt/oracle
- Windows : registry -> HKEY_LOCAL_MACHINE -> Software ->
Oracle -> inst_loc ¿¡¼­ ÁöÁ¤µÈ À§Ä¡.


Example
-------
1. opatch apply

apply [ ] [-force] [-oh ]
opatch apply -invPrtLoc $ORACLE_HOME/oraInst.loc

ÀÌ ¸í·É¾î´Â oraInst.loc È­ÀÏÀÇ À§Ä¡°¡ default directory°¡ ¾Æ´Ñ
°æ¿ì ÇØ´ç À§Ä¡¸¦ ÁöÁ¤ÇÏ¿© patch¸¦ Àû¿ëÇÏ´Â ¸í·ÉÀÌ´Ù.
-local ¿É¼ÇÀº RAC ȯ°æ¿¡¼­ patch¸¦ ´Ù¸¥ ³ëµå¿¡ ÀüÆÄÇÏÁö ¾Ê°í
Local ³ëµå¿¡¸¸ Àû¿ëÇÒ ¶§ »ç¿ëÇÑ´Ù. ÀÌ °æ¿ì ¸ðµç ³ëµå¿¡¼­ °³º°ÀûÀ¸·Î
patch°¡ ÁøÇàµÇ¾î¾ß ÇÑ´Ù.
-force ¿É¼ÇÀº ÀÌÀü¿¡ ¼³Ä¡ÇÑ patch¿Í Ãæµ¹ÀÌ ÀÖÀ» ¶§ À̸¦ ¹«½ÃÇÏ°í
ÁøÇàÇϵµ·Ï ÇÑ´Ù.


2. opatch rollback

rollback [ -id ] [ -oh ] [ -ph ]
opatch rollback -id 3113008 -ph /opt/oracle/3113008

ÀÌ ¸í·É¾î´Â patch id 3113008À» depatchÇϸç, ÀÌ ¶§ ±âÁ¸ patch fileÀÌ
ÀÖ´Â directory¸¦ -ph argument¸¦ ÀÌ¿ëÇÏ¿© Áö½ÃÇÑ´Ù.
±âº»ÀûÀ¸·Î »ç¿ëÇÏ´Â ¿É¼ÇÀº -id ÀÌ´Ù. -id´Â depatchÇÏ·Á´Â patch ¹øÈ£ÀÌ´Ù.

-local ¿É¼ÇÀº RAC ȯ°æ¿¡¼­ depatch¸¦ ´Ù¸¥ ³ëµå¿¡ ÀüÆÄÇÏÁö ¾Ê°í
Local ³ëµå¿¡¸¸ Àû¿ëÇÒ ¶§ »ç¿ëÇÑ´Ù. ÀÌ °æ¿ì ¸ðµç ³ëµå¿¡¼­ °³º°ÀûÀ¸·Î
depatch°¡ ÁøÇàµÇ¾î¾ß ÇÑ´Ù.


3. opatch lsinventory

lsinventory [-all] [-oh ]
opatch lsinventory -all -oh /opt/oracle

ÀÌ ¸í·É¾î´Â ÇöÀç db ¼­¹ö¿¡ Àû¿ëµÇ¾î ÀÖ´Â patch list¸¦ º¸¿©ÁØ´Ù.
-all ¿É¼ÇÀº Central inventory¿¡ µî·ÏµÈ ¸ðµç $ORACLE_HOMEÀÇ À̸§°ú
°æ·Î¸¦ º¸¿©ÁØ´Ù.
-oh ¿É¼ÇÀº ±âÁ¸ÀÇ $ORACLE_HOME À» ¹«½ÃÇÏ°í »õ·Î¿î $ORACLE_HOMEÀ»
ÁöÁ¤ÇÒ ¶§ »ç¿ëÇÑ´Ù.
-detail ¿É¼ÇÀ» »ç¿ëÇϸé installµÈ oracle product list¸¦ version°ú
ÇÔ²² º¸¿©ÁØ´Ù.


¿¹) $ opatch lsinventory -all

PRODUCT NAME VERSION
============ =======
Advanced Queueing (AQ) API 9.2.0.1.0
Advanced Replication 9.2.0.1.0
Agent Required Support Files 9.2.0.1.0
.
.
.
XML Transx 9.2.0.1.0
XSQL Servlet 9.2.0.1.0

Installed Patch List:

1) Patch 3574853 applied on Sun Apr 25 03:27:43 JST 2004
[ Base Bug(s): 3111457 ]
2) Patch 3400911 applied on Sun Apr 25 03:24:40 JST 2004
[ Base Bug(s): 3304290 ]
3) Patch 3508417 applied on Sun Apr 04 22:53:59 JST 2004
[ Base Bug(s): 3046394 ]
4) Patch 3213774 applied on Sun Apr 04 09:12:08 JST 2004
[ Base Bug(s): 3186503 3210293 ]
5) Patch 3226815 applied on Sun Apr 04 09:09:22 JST 2004
[ Base Bug(s): 3157063 ]
6) Patch 3118677 applied on Sun Apr 04 09:06:28 JST 2004
[ Base Bug(s): 3118677 ]
7) Patch 3113003 applied on Sun Apr 04 09:04:45 JST 2004
[ Base Bug(s): 2968709 ]


4. opatch query

ÀÌ ¸í·É¾î´Â interim patch¿¡ ´ëÇÑ Á¤º¸¸¦ Á¶È¸ÇÑ´Ù.
-get_base_bug ¿É¼ÇÀº ÇØ´ç interim patch¿¡ ÀÇÇØ fixµÈ base bug¸¦ Á¶È¸ÇÑ´Ù.
-get_component ¿É¼ÇÀº ÇØ´ç interim patch¸¦ Àû¿ë ½Ã ¿ä±¸µÇ´Â
oracle component ¸¦ ³ªÅ¸³½´Ù.
-get_date ¿É¼ÇÀº interim patch¸¦ »ý¼ºÇÑ ³¯Â¥¸¦ º¸¿©ÁØ´Ù.
-get_os ¿É¼ÇÀº ÇØ´ç interim patch°¡ Áö¿øÇÏ´Â platformÀ» º¸¿©ÁØ´Ù.
-is_rolling ¿É¼ÇÀº rolling patch¸¦ Áö¿øÇÏ´ÂÁö¿¡ ´ëÇÑ ¿©ºÎ¸¦ ¾Ë·ÁÁØ´Ù.
-all optionÀº À§ÀÇ ¸ðµç Á¤º¸µéÀ» ¾Ë·ÁÁØ´Ù.


5. opatch version

ÀÌ ¸í·É¾î´Â »ç¿ëÇÏ´Â opatch À¯Æ¿¸®Æ¼ÀÇ versionÀ» º¸¿©ÁØ´Ù.


6. ¸ðµç opatch ¸í·É¾î´Â °¢ ¸í·É¾î¿¡ ´ëÇÑ »ó¼¼ÇÑ usage¸¦ º¸¿©ÁÖ´Â
-help ¿É¼ÇÀ» °¡Áø´Ù.

opatch.pl [ -h[elp] { [ apply | lsinventory | rollback | version ] }


Reference Documents
-------------------




°ü·Ã±Û : ¾øÀ½ ±Û¾´½Ã°£ : 2007/02/23 22:33 from 203.253.32.72

  Raw device ¼³°è¼­ ¸ñ·Ïº¸±â »õ±Û ¾²±â Áö¿ì±â ÀÀ´ä±Û ¾²±â ±Û ¼öÁ¤ ORA-00081 ¿¡·¯  
BACKRUSH  À¯´Ð½º¸í·É  ´ÙÀ½  ÀÚ·á½Ç  Ascii Table   ¿ø°ÝÁ¢¼Ó  ´Þ·Â,½Ã°£   ÇÁ·Î¼¼½º   ½©
ÁöÇÏö³ë¼±   RFC¹®¼­   SUN FAQ   SUN FAQ1   C¸Þ´º¾ó   PHP¸Þ´º¾ó   ³Ê±¸¸®   ¾Æ½ºÅ°¿ùµå ¾ÆÀÌÇǼ­Ä¡