oracle dbaÓ¦¸Ã¶¨ÆÚ×öʲô£¡
ÔØ×ÔoracleÖÐÎļ¼ÊõÂÛ̳¡£´ÓÕûÌåÉϽéÉÜÁËÒ»¸ödbaµÄÖ°ÔðºÍÈÎÎñµÈµÈ¡£¡¡¡¡
ORACLEÊý¾Ý¿â¹ÜÀíÔ±Ó¦°´ÈçÏ·½Ê½¶ÔORACLEÊý¾Ý¿âϵͳ×ö¶¨ÆÚ¼à¿Ø£º
(1). ÿÌì¶ÔORACLEÊý¾Ý¿âµÄÔËÐÐ״̬,ÈÕÖ¾Îļþ,±¸·ÝÇé¿ö,Êý¾Ý
¿âµÄ¿Õ¼äʹÓÃÇé¿ö,ϵͳ×ÊÔ´µÄʹÓÃÇé¿ö½øÐмì²é,·¢ÏÖ²¢½â¾ö
ÎÊÌâ¡£
(2). ÿÖܶÔÊý¾Ý¿â¶ÔÏóµÄ¿Õ¼äÀ©Õ¹Çé¿ö,Êý¾ÝµÄÔö³¤Çé¿ö½øÐмà¿Ø,¶ÔÊý¾Ý¿â×ö½¡¿µ¼ì²é,¶ÔÊý¾Ý¿â¶ÔÏóµÄ״̬×ö¼ì²é¡£
(3). ÿÔ¶ԱíºÍË÷ÒýµÈ½øÐÐAnalyze,¼ì²é±í¿Õ¼äËéƬ,Ñ°ÕÒÊý¾Ý¿â
ÐÔÄܵ÷ÕûµÄ»ú»á,½øÐÐÊý¾Ý¿âÐÔÄܵ÷Õû,Ìá³öÏÂÒ»²½¿Õ¼ä¹ÜÀí
¼Æ»®¡£¶ÔORACLEÊý¾Ý¿â״̬½øÐÐÒ»´ÎÈ«Ãæ¼ì²é¡£
ÿÌìµÄ¹¤×÷
(1).È·ÈÏËùÓеÄINSTANCE״̬Õý³£
µÇ½µ½ËùÓÐÊý¾Ý¿â»òÀý³Ì,¼ì²âORACLEºǫ́½ø³Ì:
$ps –ef|grep ora
(2). ¼ì²éÎļþϵͳµÄʹÓã¨Ê£Óà¿Õ¼ä£©¡£Èç¹ûÎļþϵͳµÄÊ£Óà¿Õ¼äСÓÚ20%£¬Ðèɾ³ý²»ÓõÄÎļþÒÔÊͷſռ䡣
$df –k
(3). ¼ì²éÈÕÖ¾ÎļþºÍtraceÎļþ¼Ç¼alertºÍtraceÎļþÖеĴíÎó¡£
Á¬½Óµ½Ã¿¸öÐè¹ÜÀíµÄϵͳ
? ʹÓÃ’telnet’
? ¶Ôÿ¸öÊý¾Ý¿â,cd µ½bdumpĿ¼,ͨ³£ÊÇ$ORACLE_BASE/<SID>;/bdump
? ʹÓà Unix ‘tail’ÃüÁîÀ´²é¿´alert_<SID>;.logÎļþ
? Èç¹û·¢ÏÖÈκÎеÄORA- ´íÎó,¼Ç¼²¢½â¾ö
(4). ¼ì²éÊý¾Ý¿âµ±ÈÕ±¸·ÝµÄÓÐЧÐÔ¡£
¶ÔRMAN±¸·Ý·½Ê½:
¼ì²éµÚÈý·½±¸·Ý¹¤¾ßµÄ±¸·ÝÈÕÖ¾ÒÔÈ·¶¨±¸·ÝÊÇ·ñ³É¹¦
¶ÔEXPORT±¸·Ý·½Ê½:
¼ì²éexpÈÕÖ¾ÎļþÒÔÈ·¶¨±¸·ÝÊÇ·ñ³É¹¦
¶ÔÆäËû±¸·Ý·½Ê½:
¼ì²éÏàÓ¦µÄÈÕÖ¾Îļþ
(5). ¼ì²éÊý¾ÝÎļþµÄ״̬¼Ç¼״̬²»ÊÇ“online”µÄÊý¾ÝÎļþ£¬²¢×ö»Ö¸´¡£
Select file_name from dba_data_files where status=’OFFLINE’
(6). ¼ì²é±í¿Õ¼äµÄʹÓÃÇé¿ö
SELECT tablespace_name, max_m, count_blocks free_blk_cnt, sum_free_m,to_char(100*sum_free_m/sum_m, '99.99') || '%' AS pct_free
from ( SELECT tablespace_name,sum(bytes)/1024/1024 AS sum_m from dba_data_files GROUP BY tablespace_name),
( SELECT tablespace_name AS fs_ts_name, max(bytes)/1024/1024 AS max_m, count(blocks) AS count_blocks, sum(bytes/1024/1024) AS sum_free_m fr
Ïà¹ØÎĵµ£º
oracle±í¿Õ¼ä²Ù×÷Ïê½â
1
2
3×÷Õߣº À´Ô´£º ¸üÐÂÈÕÆÚ£º2006-01-04
5
6
7½¨Á¢±í¿Õ¼ä
8
9CREATE TABLESPACE data01
10DATAFILE '/ora ......
extent--×îС¿Õ¼ä·ÖÅ䵥λ --tablespace management
block --×îСi/oµ¥Î» --segment management
create tablespace james
datafile '/export/home/oracle/oradata/james.dbf'
size 100M ¡¡¡¡¡¡¡¡¡¡¡¡--³õʼµÄÎļþ´óС¡¡
autoextend On¡¡¡¡¡¡¡¡ --×Ô¶¯Ôö³¤
next 10M¡ ......
¡¾IT168 ¼¼ÊõÎĵµ¡¿Ëæ×ÅÍøÂçÓ¦Óú͵ç×ÓÉÌÎñµÄ²»¶Ï·¢Õ¹£¬¸÷¸öÕ¾µãµÄ·ÃÎÊÁ¿Ô½À´Ô½´ó£¬ÈçºÎʹÓÐÏ޵ļÆËã»úϵͳ×ÊԴΪ¸ü¶àµÄÓû§·þÎñ£¿ÈçºÎ±£Ö¤Óû§µÄÏìÓ¦ËٶȺͷþÎñÖÊÁ¿£¿ÕâЩÎÊÌⶼÊôÓÚ·þÎñÆ÷ÐÔÄÜÓÅ»¯µÄ·¶³ë¡£×÷Ϊ½Ï³É¹¦µÄÊý¾Ý¿â³§ÉÌ£¬Oracle¹«Ë¾Êý¾Ý¿âµÄÐÔÄÜÓÅ»¯ÊÇÈçºÎ½øÐеÄ
¡¡¡¡ ÓÅ»¯²ßÂÔ
¡¡¡¡ ΪÁ˱£Ö¤OracleÊý ......
OracleµÄÈ«ÎÄË÷Òý³ýÁËÖ§³ÖÎÄ×ÖÆ¥Åä²éѯ£¬»¹Ö§³Ö¶ÔÎÄÕºÒåµÄ²éѯ¡£ÕâÊÇͨ¹ýABOUT²Ù×÷ʵÏֵġ£
OracleĬÈÏÇé¿öÏÂÖ§³ÖÓ¢Îĺͷ¨ÎĵÄÎÄÕºÒåÖ§³Ö¡£ÆäËûÓïÑÔ¿ÉÒÔÌí¼Óͨ¹ýÓû§×Ô¶¨ÒåµÄÓïÑÔ¿âÀ´ÊµÏÖÏàÓ¦µÄ¹¦ÄÜ¡£
ÔÚ
Õâ֮ǰÐèÒªÏÈ°²×°Companion CD µÄOracle Database 10g Products Installation
Type,ÆäÖаüÀ¨ÁËOracle Text Su ......
×î½ü£¬¹¤×÷µÄÉÏÐèÒª´¦ÀíÒ»ÏÂÏîÄ¿Öеļ«ÉÙÁ¿Êý¾ÝµÄÖظ´ÎÊÌâ¡£¾¹ý·ÖÎö£¬½á¹û·¢ÏÖÊdzÌÐò²¢·¢Ã»Óд¦ÀíºÃ¶øµ¼Öµġ£¾¹ýÒ»·¬ÃþË÷£¬¶ÔÊý¾Ý¿âÖеÄËø¼°³ÌÐòµÄ²¢·¢ÓÐÁËÒ»µãµãСµÄÐĵá£ÌØдµ½´ËÀ´Óë´ó¼Ò·ÖÏíһϡ£
Ê×ÏÈ£¬ÎÒÃÇÀ´Á˽âÒ»ÏÂʲô½Ð×öËø¡£
......