ÇÁ·ÎÆÄÀÏÀº ´ÙÀ½°ú °°Àº ½Ã½ºÅÛ ÀÚ¿ø°ú ¾ÏÈ£ Á¦ÇÑÀÇ ÁýÇÕ¿¡ À̸§À» ÁöÁ¤ÇÑ °ÍÀÔ´Ï´Ù.
- CPU
ÀÌ¿ë½Ã°£
- I/O ÀÛ¾÷
- ÈÞÁö ½Ã°£(idle time)
- Á¢¼Ó ½Ã°£(connect
time)
- ¸Þ¸ð¸® °ø°£(MTSÀÇ °æ¿ì¿¡¼ ÇÁ¶óÀ̺ñÆ® SQL ¿µ¿ª)
- µ¿½Ã
¼¼¼Ç
- ¾ÏÈ£ aging°ú ±â°£ ¸¸·á
- ¾ÏÈ£ ÀÌ·Â
- ¾ÏÈ£ º¹À⼺
°ËÁõ
- °èÁ¤ Àá±Ý
ÇÁ·ÎÆÄÀÏÀÌ »ý¼ºµÈ ÈÄ µ¥ÀÌÅͺ£À̽º °ü¸®ÀÚ´Â ÇÁ·ÎÆÄÀÏÀ» °¢ »ç¿ëÀÚ¿¡°Ô ÁöÁ¤ÇÒ ¼ö ÀÖ½À´Ï´Ù. ÀÚ¿ø Á¦ÇÑÀÌ
enableµÇ¾î ÀÖÀ¸¸é ¿À¶óŬ ¼¹ö´Â µ¥ÀÌÅͺ£À̽º »ç¿ë°ú ÀÚ¿øÀ» °¢ »ç¿ëÀÚ¿¡°Ô ÁöÁ¤µÈ ÇÁ·ÎÆÄÀÏ¿¡ µû¶ó Á¦ÇÑÇÕ´Ï´Ù.
DEFAULT ÇÁ·ÎÆÄÀÏ
¿À¶óŬ
¼¹ö´Â µ¥ÀÌÅͺ£À̽º°¡ »ý¼ºµÉ ¶§ ÀÚµ¿ÀûÀ¸·Î DEFAULT ÇÁ·ÎÆÄÀÏÀ» »ý¼ºÇÕ´Ï´Ù.
¸í½ÃÀûÀ¸·Î ƯÁ¤ ÇÁ·ÎÆÄÀÏÀ» ÁöÁ¤¹ÞÁö ¸øÇÑ »ç¿ëÀÚ´Â
DEFAULT ÇÁ·ÎÆÄÀÏÀÇ ¸ðµç Á¦ÇÑÀ» µû¸£°Ô µË´Ï´Ù. DEFAULT ÇÁ·ÎÆÄÀÏÀÇ ¸ðµç Á¦ÇÑÀº óÀ½¿¡´Â ¹«Á¦ÇÑÀ¸·Î µÇ¾î ÀÖ½À´Ï´Ù.ÇÏÁö¸¸ µ¥ÀÌÅͺ£À̽º
°ü¸®ÀÚ°¡ ±× °ªµéÀ» º¯°æÇÏ¿© º¯°æµÈ °ªÀÌ ¸ðµç »ç¿ëÀÚ¿¡°Ô ±âº»À¸·Î Àû¿ëµÉ ¼ö ÀÖµµ·Ï ÇÒ ¼ö ÀÖ½À´Ï´Ù.
ÄÝ(Call)°ú ¼¼¼Ç ·¹º§ Á¦ÇÑ
ÇÁ·ÎÆÄÀÏ Á¦ÇÑÀº ¼¼¼Ç ·¹º§À̳ª ÄÝ ·¹º§, ¶Ç´Â ¾çÂÊ ¸ðµÎ¿¡¼ ½ÃÇàµÉ ¼ö ÀÖ½À´Ï´Ù. ¼¼¼Ç ·¹º§ Á¦ÇÑÀº °¢ Á¢¼Ó¸¶´Ù
½ÃÇàµË´Ï´Ù.
¼¼¼Ç ·¹º§ Á¦ÇÑÀÌ ÃÊ°úµÇ¸é:
- ¿¹¸¦ µé¾î ´ÙÀ½°ú °°Àº ¿¡·¯ ¸Þ½ÃÁö°¡
¸®Åϵ˴ϴÙ.
ORA-02391: exceed simultaneous SESSIONS_PER_USER
limit
- ¿À¶óŬ ¼¹ö°¡ »ç¿ëÀÚÀÇ Á¢¼ÓÀ» Â÷´ÜÇÕ´Ï´Ù.
ÄÝ ·¹º§ Á¦ÇÑÀº SQL ¹®À» ¼öÇàÇÒ ¶§ ¸¸µé¾îÁø °¢ Äݸ¶´Ù
½ÃÇàµË´Ï´Ù.
ÄÝ ·¹º§ Á¦ÇÑÀÌ ÃÊ°úµÇ¸é:
- ¸í·É¹®ÀÇ Ã³¸®°¡ ÁßÁöµË´Ï´Ù.
- ¸í·É¹®ÀÌ
·Ñ¹éµË´Ï´Ù.
- ÀÌ¹Ì ¼öÇàµÈ ¸í·É¹®Àº À¯È¿ÇÏ°Ô ³²¾Æ ÀÖ½À´Ï´Ù.
- »ç¿ëÀÚÀÇ ¼¼¼ÇÀº ¿¬°áµÈ ä·Î ³²¾Æ
ÀÖ½À´Ï´Ù.
ÇÁ·ÎÆÄÀÏ »ç¿ë
- »ç¿ëÀÚ°¡ °úÁßÇÑ ÀÚ¿ø »ç¿ëÀ» ¿äÇÏ´Â ÀÛ¾÷À» ¼öÇàÇÏ´Â °ÍÀ» Á¦ÇÑÇÕ´Ï´Ù.
- »ç¿ëÀÚ°¡ ÀÚ½ÅÀÇ
¼¼¼ÇÀ» ÀÏÁ¤ ½Ã°£ µ¿¾È ÈÞÁö(idle) »óÅ·ΠµÑ ¶§´Â µ¥ÀÌÅͺ£À̽º¸¦ ·Î±× ¾Æ¿ô½ÃÅ°µµ·Ï ÇÕ´Ï´Ù.
- ºñ½ÁÇÑ »ç¿ëÀڵ鿡°Ô ±×·ì
Â÷¿øÀÇ ÀÚ¿ø Á¦ÇÑÀ» °¡´ÉÇÏ°Ô ÇÕ´Ï´Ù.
- »ç¿ëÀÚ¿¡°Ô ÀÚ¿ø Á¦ÇÑÀ» ½±°Ô ÇÒ´çÇÕ´Ï´Ù.
- Å©°í º¹ÀâÇÏ¸ç ¸¹Àº
»ç¿ëÀÚ°¡ »ç¿ëÇÏ´Â µ¥ÀÌÅͺ£À̽º
½Ã½ºÅÛ¿¡¼ ÀÚ¿ø »ç¿ëÀ» °ü¸®ÇÕ´Ï´Ù.
- ¾ÏÈ£ »ç¿ëÀ» Á¦¾îÇÕ´Ï´Ù.
ÇÁ·ÎÆÄÀÏ·Î ÀÚ¿ø »ç¿ëÀ» Á¦¾îÇÏ·Á¸é ´ÙÀ½ ´Ü°è¸¦ µû¸£½Ê½Ã¿À. 1 CREATE PROFILE ¸í·ÉÀ¸·Î ÇÁ·ÎÆÄÀÏÀ» »ý¼ºÇÏ°í ÀÚ¿ø°ú
¾ÏÈ£ Á¦ÇÑÀ» °áÁ¤ÇϽʽÿÀ. 2 CREATE USER ¶Ç´Â ALTER USER ¸í·ÉÀ¸·Î ÇÁ·ÎÆÄÀÏÀ»
ÁöÁ¤ÇϽʽÿÀ. 3 ALTER SYSTEM ¸í·ÉÀ» »ç¿ëÇϰųª, ¶Ç´Â ÃʱâÈ ÆĶó¹ÌÅÍ ÆÄÀÏÀ» ÆíÁýÇÏ¿© ÀÚ¿ø Á¦ÇÑÀ»
½ÃÇàÇϽʽÿÀ.(±×¸®°í ÀνºÅϽº¸¦ ÁßÁöÇÑ ÈÄ Àç½ÃÀÛÇϽʽÿÀ.) À§ ´Ü°è´Â ´ÙÀ½ Àý¿¡¼ ÀÚ¼¼È÷ ´Ù·ç¾î Áý´Ï´Ù.
ÁÖ ¿À¶óŬ ¾ÏÈ£ °ü¸®¸¦
enableÇϱâ À§ÇØ ÀÚ¿ø Á¦ÇÑÀ» ½ÃÇàÇÒ ÇÊ¿ä´Â ¾ø½À´Ï´Ù. |
´ÙÀ½ÀÇ CREATE PROFILE ¸í·ÉÀ» »ç¿ëÇÏ¿© ÇÁ·ÎÆÄÀÏÀ»
»ý¼ºÇϽʽÿÀ. CREATE PROFILE profile LIMIT
[SESSIONS_PER_USER max_value] [CPU_PER_SESSION
max_value] [CPU_PER_CALL
max_value] [CONNTECT_TIME
max_value] [IDLE_TIME
max_value] [LOGICAL_READS_PER_SESSION
max_value] [LOGICAL_READS_PER_CALL max_value]
[COMPOSITE_LIMIT max_value] [PRIVATE_SGA
max_value]
max_value :== {integer | UNLIMITED |
DEFAULT} max_value :== {integer [ K | M ] | UNLIMITIED |
DEFAULT}
±¸¹®¿¡¼: profile ÇÁ·ÎÆÄÀÏ
À̸§ UNLIMITED ÁöÁ¤¹ÞÀº »ç¿ëÀÚ´Â ÇØ´ç ÀÚ¿øÀ» ¹«Á¦ÇÑÀ¸·Î »ç¿ëÇÒ
¼ö ÀÖ´Ù´Â °ÍÀ» ³ªÅ¸³À´Ï´Ù. DEFAULT
DEFAULT ÇÁ·ÎÆÄÀÏ¿¡ ÁöÁ¤µÈ ´ë·Î ÀÚ¿øÀ» Á¦ÇÑÇÑ´Ù
´Â °ÍÀ» ³ªÅ¸³À´Ï´Ù. COMPOSITE_LIMIT
¼ºñ½º ´ÜÀ§(service unit)·Î ³ªÅ¸³½, ¼¼¼Ç ´ç ÃÑ ÀÚ¿ø
¼ÒºñÀÇ Á¦ÇÑÀÔ´Ï´Ù.
¿À¶óŬÀº ´ÙÀ½¿¡ ´ëÇÑ °¡ÁßÄ¡ ÇÕÀ¸·Î½á ÃÑ ÀÚ¿ø ¼Òºñ¸¦
°è»êÇÕ´Ï´Ù.
CPU_PER_SESSION
CONNECT_TIME
LOGICAL_READS_PER_SESSION
PRIVATE_SGA
ÁÖ µ¥ÀÌÅÍ µñ¼Å³Ê¸® ºä
RESOURCE_COST´Â ¿©·¯ °¡Áö ÀÚ¿ø¿¡ ´ëÇÑ °¡ÁßÄ¡¸¦ Á¦°øÇÕ´Ï´Ù. °¢ ¼¼¼Ç ÀÚ¿ø¿¡ ´ëÇÑ °¡ÁßÄ¡¸¦ ÁöÁ¤ÇÏ´Â ¹æ¹ýÀ» ¾Ë°í ½ÍÀ¸¸é SQL
Reference GuideÀÇ ALTER RESOURCE COST ¸í·ÉÀ» º¸½Ê½Ã¿À.
OEM 1
Security Manager¸¦ »ç¿ëÇϽʽÿÀ. 2 Profile->Create¸¦ ¼±ÅÃÇϽʽÿÀ. 3
Property sheetÀÇ General ÆäÀÌÁö¿¡ ¼¼¼ÇÀÇ À̸§°ú ¼¼ºÎ »çÇ×, CPU ÀÌ¿ë½Ã°£, Á¢¼Ó ½Ã°£,ÈÞÁö ½Ã°£, ±×¸®°í
µ¥ÀÌÅͺ£À̽º ¼ºñ½º ÆĶó¹ÌÅÍ¿¡ ´ëÇÑ °ªÀ» ÀÔ·ÂÇϽʽÿÀ. 4 Apply¸¦
Ŭ¸¯ÇϽʽÿÀ. |
Áöħ »çÇ×
- ¼¹ö ÇÁ·Î¼¼½º¿¡ ´ëÇؼ¸¸
IDLE_TIMEÀÌ °è»êµË´Ï´Ù. ÀÀ¿ëÇÁ·Î±×·¥ ÀÛ¾÷Àº Æ÷ÇÔµÇÁö ¾Ê½À´Ï´Ù. IDLE_TIMEÀº ¿À·£½Ã°£ ¼öÇàµÇ´Â ÁúÀdzª ´Ù¸¥ ÀÛ¾÷µéÀº Æ÷ÇÔÇÏÁö
¾Ê½À´Ï´Ù.
- LOGICAL_READS_PER_SESSIONÀº ¸Þ¸ð¸®¿Í µð½ºÅ© ¸ðµÎ¿¡°Ô¼ Àд ÃÑ È½¼ö¸¦ Á¦ÇÑÇÕ´Ï´Ù. ÀÌ°ÍÀ»
¾²´Â ÀÌÀ¯´Â I/O ÁýÁß ¸í·É¹®ÀÌ ¸Þ¸ð¸®¿Í µð½ºÅ©¸¦ µ¶Â÷ÁöÇÏÁö ¸øÇϵµ·Ï Çϱâ À§Çؼ ÀÔ´Ï´Ù.
- PRIVATE_SGA´Â ´ÙÁß
½º·¹µå ¼¹ö(MTS) ±¸¼º À϶§¸¸ Àû¿ëµÇ¸ç M, ¶Ç´Â K·Î ÁöÁ¤µÉ ¼ö ÀÖ½À´Ï´Ù.
ÁÖ
MTS ±¸Á¶´Â Oracle8: Network Administation °úÁ¤¿¡¼
´Ù·ç¾î Áý´Ï´Ù.
ÇÁ·ÎÆÄÀÏ ÁöÁ¤ CREATE USER
¸í·ÉÀ̳ª ALTER USER ¸í·ÉÀ¸·Î ÇÁ·ÎÆÄÀÏÀ» ÁöÁ¤ÇÒ ¼ö ÀÖ½À´Ï´Ù. °¢ »ç¿ëÀÚ´Â ÇÑ ¹ø¿¡ ÇϳªÀÇ ÇÁ·ÎÆÄÀϸ¸À» ÁöÁ¤¹ÞÀ» ¼ö
ÀÖ½À´Ï´Ù.
¿¹ 1 CREATE USER
¸í·ÉÀ» »ç¿ëÇÏ¿© USER3¶ó´Â ¾ÏÈ£¸¦ °®´Â »ç¿ëÀÚ USER3¸¦ »ý¼ºÇÏ°í DEVELOPER_PROF ÇÁ·ÎÆÄÀÏÀ» ÁöÁ¤ÇϽʽÿÀ.
¿¹2 SCOTTÀ̶ó´Â »ç¿ëÀÚ¿¡°Ô
DEVELOPER_PROF ÇÁ·ÎÆÄÀÏÀ» ÁöÁ¤ÇϽʽÿÀ. OEMÀ¸·Î ALTER USER ¸í·ÉÀ» »ý¼ºÇÏ·Á¸é ´ÙÀ½ ´Ü°è¸¦
µû¸£½Ê½Ã¿À.
OEM 1
Security Manager¸¦ »ç¿ëÇϽʽÿÀ. 2 Prifile?Assign Prifile to users¸¦
¼±ÅÃÇϽʽÿÀ. 3 Assign Profile ÆäÀÌÁö¿¡¼ »ç¿ëÀÚ¸¦ ¼±ÅÃÇϽʽÿÀ. 4 OK¸¦
Ŭ¸¯ÇϽʽÿÀ.
ÇÁ·ÎÆÄÀÏ Æ¯¼º - ÇÁ·ÎÆÄÀÏ ÁöÁ¤ÀÌ ÇöÀçÀÇ ¼¼¼Ç¿¡´Â ¿µÇâÀ» ÁÖÁö ¾Ê½À´Ï´Ù. - ÇÁ·ÎÆÄÀÏÀº ·ÑÀ̳ª ´Ù¸¥
ÇÁ·ÎÆÄÀÏ¿¡´Â ÁöÁ¤ÇÒ ¼ö ¾ø°í »ç¿ëÀÚ¿¡°Ô¸¸ ÁöÁ¤ÇÒ ¼ö ÀÖ½À´Ï´Ù. - »ç¿ëÀÚ¸¦ »ý¼ºÇÒ ¶§ ÇÁ·ÎÆÄÀÏÀ» ÁöÁ¤ÇÏÁö ¾ÊÀ¸¸é ÀÚµ¿ÀûÀ¸·Î
DEFAULT ÇÁ·ÎÆÄÀÏÀ» ÁöÁ¤ ¹Þ°Ô µË´Ï´Ù. |
RESOURCE_LIMIT ÃʱâÈ ÆĶó¹ÌÅ͸¦ ¼öÁ¤Çϰųª ALTER SYSTEM ¸í·ÉÀ» »ç¿ëÇÏ¿© ÀÚ¿ø Á¦ÇÑ ½ÃÇàÀ» enableÇϰųª
disableÇÕ´Ï´Ù.
RESOURCE_LIMIT ÃʱâÈ ÆĶó¹ÌÅÍ
- ÀÚ¿ø Á¦ÇÑ ½ÃÇàÀ» enableÇϰųª disableÇÏ·Á¸é ÃʱâÈ ÆÄÀÏ¿¡ µé¾îÀÖ´Â
RESOURCE_LIMIT ÆĶó¹ÌÅ͸¦ ¼öÁ¤ÇÑ ÈÄ ÀνºÅϽº¸¦ Àç½ÃÀÛÇϽʽÿÀ.
- TRUE °ªÀº ½ÃÇàÀ»
enableÇÕ´Ï´Ù.
- FALSE °ªÀº ½ÃÇàÀ» disableÇÕ´Ï´Ù.(±âº»°ª)
- µ¥ÀÌÅͺ£À̽º¸¦ Á¾·áÇÒ ¼ö
ÀÖÀ» ¶§ »ç¿ëÇϽʽÿÀ.
ALTER SYSTEM ¸í·É
- ÀνºÅϽº¿¡ ´ëÇØ ÀÚ¿ø Á¦ÇÑ ½ÃÇàÀ» enableÇϰųª disableÇÏ·Á¸é ALTER SYSTEM ¸í·ÉÀ»
»ç¿ëÇϽʽÿÀ.
- ALTER SYSTEMÀ» »ç¿ëÇÏ¿© ÁöÁ¤µÈ ¼³Á¤Àº ¶Ç´Ù½Ã ¼öÁ¤µÇ°Å³ª µ¥ÀÌÅͺ£À̽º°¡ Á¾·áµÉ ¶§±îÁö À¯È¿ÇÏ°Ô
³²¾Æ ÀÖ½À´Ï´Ù.
- µ¥ÀÌÅͺ£À̽º¸¦ Á¾·áÇÒ ¼ö ¾øÀ» ¶§ »ç¿ëÇϽʽÿÀ.
ÇÁ·ÎÆÄÀÏ ¼öÁ¤
ÇÁ·ÎÆÄÀÏ¿¡ ÁöÁ¤µÈ ÀÚ¿ø Á¦ÇÑÀ» º¯°æÇÏ·Á¸é ALTER PROFILE
¸í·ÉÀ» »ç¿ëÇϽʽÿÀ.
ALTER PROFILE profile LIMIT
[SESSIONS_PER_USER max_value]
[CPU_PER_SESSION
max_value]
[CPU_PER_CALL
max_value]
[CONNECT_TIME
max_value]
[IDLE_TIME
max_value]
[LOGICAL_READS_PER_SESSION
max_value]
[LOGICAL_READS_PER_CALL max_value]
[COMPOSITE_LIMIT max_value]
[PRIVATE_SGA
max_value]
OEM
1
Security Manager¸¦ »ç¿ëÇϽʽÿÀ.
2 Profile ³ëµå¸¦ È®ÀåÇϽʽÿÀ.
3 ÇÁ·ÎÆÄÀÏÀ»
¼±ÅÃÇϽʽÿÀ.
4 General ÆäÀÌÁö¿¡¼ ¼¼¼Ç¿¡ ´ëÇÑ ¼¼ºÎ »çÇ×, CPU ÀÌ¿ë½Ã°£, Á¢¼Ó ½Ã°£, ÈÞÁö ½Ã°£, ¶Ç´Â
µ¥ÀÌÅͺ£À̽º ¼ºñ½º ÆĶó¹ÌÅÍÀÇ °ªÀ» º¯°æÇϽʽÿÀ.
5 Apply¸¦ Ŭ¸¯ÇϽʽÿÀ.
Áöħ »çÇ×
- ÇÁ·ÎÆÄÀÏÀ» º¯°æÇÑ °ÍÀº ÇöÀçÀÇ ¼¼¼Ç¿¡ ¿µÇâÀ» ÁÖÁö´Â ¾Ê½À´Ï´Ù. º¯°æ »çÇ×Àº ±× ÀÌÈÄÀÇ ¼¼¼Ç¿¡¼¸¸
Àû¿ëµË´Ï´Ù.
- CONNECT_TIME, LOGICAL_READS_PER_SESSION, ±×¸®°í
LOGICAL_READS_PER_CALL¿¡ ´ëÇÑ ÇöÀç±îÁöÀÇ ±â·Ï Á¤º¸¸¦ º¸·Á¸é AUDIT SESSION ¿É¼ÇÀ»
»ç¿ëÇϽʽÿÀ.(¡°°¨»ç(Auditing)¡± ÀåÀ» ÂüÁ¶ÇϽʽÿÀ.)
ÇÁ·ÎÆÄÀÏ »èÁ¦ DROP PROFILE
¸í·ÉÀ» »ç¿ëÇÏ¿© ÇÁ·ÎÆÄÀÏÀ» »èÁ¦ÇϽʽÿÀ. DROP PROFILE profile
[CASCADE] ±¸¹®¿¡¼: profile »èÁ¦ÇÒ ÇÁ·ÎÆÄÀÏ
À̸§ CASCADE »èÁ¦ÇÒ ÇÁ·ÎÆÄÀÏÀÌ ÁöÁ¤µÈ »ç¿ëÀڷκÎÅÍ ÇÁ·ÎÆÄÀÏÀ»
¹«È¿ÈÇÕ´Ï´Ù.(¿À¶óŬ ¼¹ö´Â ÀÌ·± »ç¿ëÀÚ¿¡°Ô ÀÚµ¿ÀûÀ¸·Î
DEFAULT ÇÁ·ÎÆÄÀÏÀ» ÁöÁ¤ÇÕ´Ï´Ù. ÇöÀç »ç¿ëÀÚ¿¡°Ô ÁöÁ¤µÇ
¾î ÀÖ´Â ÇÁ·ÎÆÄÀÏÀ» »èÁ¦ÇÏ·Á¸é ÀÌ ¿É¼ÇÀ» ÁöÁ¤ÇϽʽÿÀ.)
Áöħ »çÇ× - DEFAULT ÇÁ·ÎÆÄÀÏÀº »èÁ¦ÇÒ ¼ö ¾ø½À´Ï´Ù. - ÇÁ·ÎÆÄÀÏÀÌ »èÁ¦µÇ´Â °æ¿ì, ÀÌ·¯ÇÑ º¯°æÀº
ÀÌÈÄ¿¡ »ý¼ºµÇ´Â ¼¼¼Ç¿¡¸¸ Àû¿ëµÇ°í ÇöÀçÀÇ ¼¼¼Ç¿¡´Â Àû¿ëµÇÁö ¾Ê½À´Ï´Ù.
OEM 1
Security Manager¸¦ »ç¿ëÇϽʽÿÀ. 2 Profile ³ëµå¸¦ È®ÀåÇϽʽÿÀ. 3 ÇÁ·ÎÆÄÀÏÀ»
¼±ÅÃÇϽʽÿÀ. 4 Profile?Remove¸¦ ¼±ÅÃÇϽʽÿÀ. 5 OK¸¦
Ŭ¸¯ÇϽʽÿÀ. |
»ç¿ëÀÚ SCOTT¿¡ ´ëÇÑ ÀÚ¿ø Á¦ÇÑÀ» º¸·Á¸é µ¥ÀÌÅÍ
µñ¼Å³Ê¸® ºä DBA_USERS¿Í DBA_PROFILES¸¦ Á¶ÀÎÇϽʽÿÀ.
SVRMGR1> SELECT p.profile, p.resource_name,
p.limit 2> FROM dba_users u, dba_profiles
p 3> WHERE p.profile=u.profile AND username=¡®SCOTT¡¯
AND 4> p.resource_type=¡®KERNEL¡¯;
PROFILE RESOURCE_NAME
LIMIT ---------------
------------------------------- --------- DEVELOPER_PROF
COMPOSITE_LIMIT DEFAULT DEVELOPER_PROF
SESSIONS_PER_USER
2 DEVELOPER_PROF CPU_PER_SESSION
10000 DEVELOPER_PROF CPU_PER_CALL
DEFAULT DEVELOPER_PROF
LOGICAL_READS_PER_SESSION DEFAULT DEVELOPER_PROF
LOGICAL_READS_PER_CALL DEFAULT DEVELOPER_PROF
IDLE_TIME
60 DEVELOPER_PROF
CONNECT_TIME
480 DEVELOPER_PROF
PRIVATE_SGA DEFAULT 9 rows
selected. |
´õ ³ªÀº µ¥ÀÌÅͺ£À̽º º¸¾ÈÀ» À§ÇØ µ¥ÀÌÅͺ£À̽º °ü¸®ÀÚ´Â ÇÁ·ÎÆÄÀÏ·Î ¿À¶óŬ ¾ÏÈ£ °ü¸®¸¦ Á¦¾îÇÕ´Ï´Ù.
´ÙÀ½ ÀýÀº »ç¿ë °¡´ÉÇÑ ¾ÏÈ£ °ü¸® ±â´ÉÀ»
¼³¸íÇÕ´Ï´Ù.
- °èÁ¤ Àá±Ý: »ç¿ëÀÚ°¡ ÁöÁ¤µÈ ½Ãµµ Ƚ¼ö ³»¿¡ ½Ã½ºÅÛ¿¡ ·Î±×ÀÎÇÏÁö ¸øÇßÀ» °æ¿ì ÀÚµ¿ÀûÀ¸·Î °èÁ¤À» Àá±×µµ·Ï
ÇÕ´Ï´Ù.(¡°»ç¿ëÀÚ °ü¸®¡± Àå¿¡¼ »ç¿ëÀÚÀÇ ¸í½ÃÀû Àá±ÝÀº ÀÌ¹Ì ¼Ò°³Çß½À´Ï´Ù.)
- ¾ÏÈ£ÀÇ aging°ú ±â°£ ¸¸·á: ¾ÏÈ£°¡
¼ö¸íÀ» °®µµ·Ï ÇÏ¿© ±× ±â°£ÀÌ Áö³ª¸é º¯°æÇؾ߸¸ Çϵµ·Ï ÇÕ´Ï´Ù.
- ¾ÏÈ£ÀÇ ÇöÀç±îÁöÀÇ ±â·Ï: ¾ÏÈ£¸¦ °Ë»çÇÏ¿© ÁöÁ¤µÈ ½Ã°£
µ¿¾ÈÀ̳ª ÁöÁ¤µÈ Ƚ¼ö ÀÌ»ó »ç¿ëµÇÁö ¾Êµµ·Ï ÇÕ´Ï´Ù.
- ¾ÏÈ£ÀÇ º¹À⼺ °ËÁõ: ¾ÏÈ£¸¦ ÃßÃøÇÏ¿© ½Ã½ºÅÛ¿¡ Á¤´çÄ¡ ¾Ê°Ô µé¾î¿À·Á
Çϴ ħÀÔÀÚ¸¦ ¸·±â¿¡ ¾ÏÈ£°¡ ÃæºÐÈ÷ º¹ÀâÇÑÁö¸¦ °ËÁõÇÕ´Ï´Ù.
ÀÚ¿ø Á¦ÇÑ ¼³Á¤°ú ºñ½ÁÇÏ°Ô CREATE³ª ALTER USER ¸í·ÉÀ» »ç¿ëÇÏ¿© ¾ÏÈ£ ¼³Á¤À» Á¦ÇÑÇϵµ·Ï ÇÁ·ÎÆÄÀÏÀ» »ý¼ºÇÏ¿© »ç¿ëÀÚ¿¡°Ô ÁöÁ¤ÇÒ ¼ö
ÀÖ½À´Ï´Ù. SESSIONS_PER_USER °°Àº ´Ù¸¥ Á¦ÇѵéÀº ÃʱâÈ ÆĶó¹ÌÅͳª ALTER SYSTEM ¸í·ÉÀ¸·Î ÀÚ¿ø Á¦ÇÑÀÌ
enableµÇ¾î ÀÖÀ» ¶§¿¡¸¸ ½ÃÇàµÇ´Â ¹Ý¸é, ÇÁ·ÎÆÄÀÏÀÇ ¾ÏÈ£ ¼³Á¤Àº Ç×»ó ½ÃÇàµË´Ï´Ù. ¾ÏÈ£ °ü¸®°¡ enableµÇ¸é »ç¿ëÀÚ °èÁ¤Àº
CREATE USER³ª ALTER USER ¸í·ÉÀ» »ç¿ëÇÏ¿© Àá±×°Å³ª Àá±ÝÀ» ÇØÁ¦ÇÒ ¼ö
ÀÖ½À´Ï´Ù. |
¾ÏÈ£¸¦ °ü¸®ÇÏ·Á¸é ´ÙÀ½ CREATE PROFILE ¸í·ÉÀ» »ç¿ëÇϽʽÿÀ.
CREATE PROFILE profile
LIMIT
[FAILED_LOGIN_ATTEMPTS max_value]
[PASSWORD_LIFE_TIME max_value]
[
{PASSWORD_REUSE_TIME
|PASSWORD_REUSE_MAX}
max_value]
[ACCOUNT_LOCK_TIME max_value]
[PASSWORD_GRACE_TIME max_value]
[PASSWORD_VERIFY_FUNCTION
{function | NULL | DEFAULT}
]
OEM
1 Security Manager¸¦ »ç¿ëÇϽʽÿÀ.
2
Profile->Create¸¦ ¼±ÅÃÇϽʽÿÀ.
3 Password Property sheet¿¡ °èÁ¤ ¾ÏÈ£
ÆĶó¹ÌÅ͸¦ ÀÔ·ÂÇϽʽÿÀ.
4 Apply¸¦ Ŭ¸¯ÇϽʽÿÀ.
°èÁ¤ Àá±Ý ¿À¶óŬ ¼¹ö´Â FAILED_LOGIN_ATTEMPTS °ª¿¡ µµ´ÞÇϸé
ÀÚµ¿ÀûÀ¸·Î °èÁ¤À» Àá±Þ´Ï´Ù. °èÁ¤Àº ÁöÁ¤µÈ ½Ã°£(PASSWORD_LOCK_TIME)ÀÌ Áö³ ÈÄ ÀÚµ¿ÀûÀ¸·Î Àá±ÝÀÌ ÇØÁ¦µÇ°Å³ª µ¥ÀÌÅͺ£À̽º °ü¸®ÀÚ°¡
ALTER USER ¸í·ÉÀ¸·Î Àá±ÝÀ» ÇØÁ¦ÇØ¾ß ÇÕ´Ï´Ù. µ¥ÀÌÅͺ£À̽º °èÁ¤Àº ALTER USER ¸í·ÉÀ» »ç¿ëÇÏ¿© ¸í½ÃÀûÀ¸·Î Àá±Û ¼öµµ
ÀÖ½À´Ï´Ù. ÀÌ·¸°Ô ÇÏ¸é °èÁ¤Àº ÀÚµ¿ÀûÀ¸·Î Àá±Ý ÇØÁ¦µÇÁö ¾Ê½À´Ï´Ù.
¾ÏÈ£ Aging°ú ±â°£ ¸¸·á PASSWORD_LIFE_TIME ÆĶó¹ÌÅÍ´Â ¼ö¸íÀ» ¼³Á¤ÇÕ´Ï´Ù. ÀÌ ±â°£ÀÌ Áö³ª¸é ¾ÏÈ£¸¦ º¯°æÇØ¾ß ÇÕ´Ï´Ù. µ¥ÀÌÅͺ£À̽º
°ü¸®ÀÚ´Â À¯¿¹ ±â°£(PASSWORD_GRACE_TIME)À» ÁöÁ¤ÇÒ ¼ö ÀÖ½À´Ï´Ù. ÀÌ ±â°£Àº ¾ÏÈ£°¡ ±â°£ ¸¸·áµÈ ÈÄ µ¥ÀÌÅͺ£À̽º¿¡ óÀ½ Á¢¼ÓÇÑ
¶§ºÎÅÍ ½ÃÀ۵˴ϴÙ. À¯¿¹ ±â°£ÀÌ ³¡³¯ ¶§±îÁö´Â »ç¿ëÀÚ°¡ ¸Å¹ø Á¢¼ÓÇÏ·Á ÇÒ ¶§¸¶´Ù °æ°í ¸Þ½ÃÁö°¡ ¹ß»ýµË´Ï´Ù. »ç¿ëÀÚ´Â À¯¿¹ ±â°£ ³»¿¡ ¾ÏÈ£¸¦
º¯°æÇØ¾ß ÇÕ´Ï´Ù. ¾ÏÈ£°¡ º¯°æµÇÁö ¾ÊÀ¸¸é °èÁ¤Àº Àá°ÜÁý´Ï´Ù. ¾ÏÈ£¸¦ ±â°£ ¸¸·áµÈ °ÍÀ¸·Î ¸í½ÃÀûÀ¸·Î ¼³Á¤ÇÏ¸é »ç¿ëÀÚÀÇ °èÁ¤ »óÅ´Â
EXPIRED·Î º¯°æµË´Ï´Ù. ÀÌ·¸°Ô µÇ¸é, »ç¿ëÀÚ°¡ ·Î±×ÀÎ ÇÒ ¶§ °èÁ¤Àº À¯¿¹ ±â°£À¸·Î ³Ñ¾î °©´Ï´Ù. ¿¹¸¦ µéÀÚ¸é, »õ·Î¿î °èÁ¤À»
»ý¼ºÇÒ ¶§ À¯¿ëÇÕ´Ï´Ù.
¾ÏÈ£ÀÇ ÇöÀç±îÁöÀÇ ±â·Ï ¾ÏÈ£ÀÇ
ÇöÀç±îÁöÀÇ ±â·ÏÀº »ç¿ëÀÚ°¡ ÁöÁ¤µÈ ±â°£ µ¿¾È ¾ÏÈ£¸¦ Àç»ç¿ëÇÏÁö ¸øÇÏ°Ô ÇÕ´Ï´Ù. ÀÌ°ÍÀº ´ÙÀ½ Áß ÇÑ °¡Áö ¹æ¹ýÀ¸·Î ±¸ÇöÇÒ ¼ö
ÀÖ½À´Ï´Ù. - PASSWORD_REUSE_TIME: ÁÖ¾îÁø ³¯ ¼ö µ¿¾È ¾ÏÈ£¸¦ Àç»ç¿ëÇÒ ¼ö ¾øµµ·Ï
ÁöÁ¤ - PASSWORD_REUSE_MAX: ¿¹Àü¿¡ »ç¿ëÇÑ ¾ÏÈ£¿Í µ¿ÀÏÇÑ °ÍÀ» »ç¿ëÇÏÁö ¸øÇϵµ·Ï ½ÃÇà À̵é ÆĶó¹ÌÅÍ Áß
Çϳª°¡ DEFAULT³ª UNLIMITED°¡ ¾Æ´Ñ ´Ù¸¥ °ªÀ¸·Î ¼³Á¤µÇ¸é ³ª¸ÓÁö ÆĶó¹ÌÅÍ´Â UNLIMITED·Î ¼³Á¤µÇ¾î¾ß¸¸
ÇÕ´Ï´Ù. |
»õ·Î¿î ¾ÏÈ£ °ËÁõ ÇÔ¼ö¸¦ Ãß°¡ÇÒ ¶§ µ¥ÀÌÅͺ£À̽º °ü¸®ÀÚ´Â ´ÙÀ½ Á¦ÇÑ »çÇ×À» °í·ÁÇؾ߸¸ ÇÕ´Ï´Ù.
- ÇÁ·Î½ÃÀú´Â ½½¶óÀ̵忡 º¸¿©Áø
Çü½Ä¿¡ µû¶ó¾ß ÇÕ´Ï´Ù.
- ÇÁ·Î½ÃÀú´Â ¼º°ø½Ã TRUE °ªÀ» ½ÇÆÐÇßÀ» ½Ã FALSE °ªÀ» ¸®ÅÏÇÕ´Ï´Ù.
- ¾ÏÈ£
ÇÔ¼ö¿¡ ¿¹¿Ü°¡ »ý±â¸é ¿¡·¯°¡ ¸®Åϵǰí ALTER USER, ¶Ç´Â CREATE USER ¸í·ÉÀº
Á¾·áµË´Ï´Ù.
- ¾ÏÈ£ ÇÔ¼ö´Â SYS°¡ ¼ÒÀ¯ÇÕ´Ï´Ù.
- ¾ÏÈ£ ÇÔ¼ö°¡ ºÎÀûÀýÇÏ°Ô µÇ¸é ¿¡·¯ ¸Þ½ÃÁö°¡ ¸®Åϵǰí
ALTER USER ¶Ç´Â CREATE USER ¸í·ÉÀº Á¾·áµË´Ï´Ù.
¿À¶óŬÀº º¹À⼺ °ËÁõ ÇÔ¼ö¸¦ Á¦°øÇÕ´Ï´Ù. utlpwdmg.sql ½ºÅ©¸³Æ®¿¡ ÀÇÇØ VERIFY_FUNCTIONÀ̶ó´Â µðÆúÆ® PL/SQL ÇÔ¼ö
ÇüÅ·ΠÁ¦°øµÇ¸ç ¹Ýµå½Ã SYS ½ºÅ°¸¶¿¡¼ ½ÇÇàµÇ¾î¾ß ÇÕ´Ï´Ù. Utlpwdmg.sql ½ºÅ©¸³Æ®°¡ ½ÇÇàµÇ´Â µ¿¾È ¿À¶óŬ ¼¹ö´Â
VERIFY_FUNCTIONÀ» »ý¼ºÇϸç DEFAULT ÇÁ·ÎÆÄÀÏÀ» ´ÙÀ½ ALTER PROFILE ¸í·ÉÀ» »ç¿ëÇÏ¿©
º¯°æÇÕ´Ï´Ù. ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME
60 PASSWORD_GRACE_TIME 10 PASSWORD_REUSE_TIME
1800 PASSWORD_REUSE_MAX UNLIMITED FAILED_LOGIN_ATTEMPTS
3 PASSWORD_LOCK_TIME 1/1440 PASSWORD_VERIFY_FUNCTION
verify_function; |
±â°£ ¸¸·á¿Í Àá±Ý ³¯Â¥, ±×¸®°í °èÁ¤ »óÅ¿¡ ´ëÇÑ Á¤º¸¸¦ ¾ò°í ½ÍÀ¸¸é DBA_USERS¸¦ »ç¿ëÇϽʽÿÀ. SVRMGR>
SELECT username, password, account_status, 2>
lock_date, expiry_date 3> FROM
dba_users; USERNAME PASSWORD ACCOUNT_STATUS LOCK_DATE
EXPIRY_DA --------- ------------------ -------------- ---------
--------- SYS D4C5016086B2DC6 OPEN
19-DEC-97 SYSTEM D4DF7931AB130E3 OPEN
19-DEC-97 TEST 7A0F2B316C212D6 OPEN
31-JAN-98 SCOTT F894844C34402B5 OPEN
19-DEC-97 DBSNMP E066D214D5421CC OPEN
19-DEC-97 USER3 94152F9F5B35B10 OPEN
12-FEB-98 6 rows selected.
¾ÏÈ£ ÇÁ·ÎÆÄÀÏ Á¤º¸¸¦ Ãâ·ÂÇÏ·Á¸é DBA_PROFILE ºä¸¦
ÁúÀÇÇϽʽÿÀ. SVRMGR> SELECT * FROM dba_profiles
2> WHERE resource_type=¡®PASSWORD¡¯; PROFILE
RESOURCE_NAME
LIMIT --------------------
---------------------------- ---------- DEFAULT
FAILED_LOGIN_ATTEMPTS
3 DEVELOPER_PROF FAILED_LOGIN_ATTEMPTS
DEFAULT DEFAULT
PASSWORD_LIFE_TIME
60 DEVELOPER_PROF
PASSWORD_LIFE_TIME DEFAULT DEFAULT
PASSWORD_REUSE_TIME
1800 DEVELOPER_PROF PASSWORD_REUSE_TIME
DEFAULT DEFAULT
PASSWORD_REUSE_MAX
UNLIMITED DEVELOPER_PROF PASSWORD_REUSE_MAX
DEFAULT DEFAULT
PASSWORD_VERIFY_FUNCTION
VERIFY_FUNCTION DEVELOPER_PROF PASSWORD_VERIFY_FUNCTION
DEFAULT DEFAULT PASSWORD_LOCK_TIME
.0006 DEVELOPER_PROF PASSWORD_LOCK_TIME
DEFAULT DEFAULT
PASSWORD_GRACE_TIME
10 DEVELOPER_PROF PASSWORD_GRACE_TIME
DEFAULT 14 rows
selected. |
¿ä¾à ÂüÁ¶
°ü·Ã³»¿ë
|
ÂüÁ¶ |
ÃʱâÈ ÆĶó¹ÌÅÍ |
RESOURCE_LIMIT |
µ¿Àû ¼º´É ºä |
|
µ¥ÀÌÅÍ µñ¼Å³Ê¸® ºä |
DBA_PROFILES DBA_USERS |
¸í·É¾î |
CREATE PPROFILE ALTER PROFILE DROP
PROFILE CREATE USER ALTER USER |
ÀúÀå ÇÁ·Î½ÃÀú¿Í ÇÔ¼ö |
VERIFY_FUNCTION | |