±ØÐëÒýÆðDBAÖØÊÓµÄOracleÊý¾Ý¿âËéƬ
À´Ô´£º[url]http://www.wangchao.net.cn/bbsdetail_1788053.html[/url]
Ä¿Ç°£¬OracleÒѾ¹ã·ºµÄÓ¦ÓÃÓÚ¸÷¸öÐÐÒµ¡£×÷ΪһÃûDBA£¬¼°Ê±·¢ÏÖ²¢ÕûÀíËéƬÒѾ³ÉΪDBAÈÕ³£¹¤×÷ÖеÄÒ»ÏîÖØҪά»¤ÄÚÈÝ¡£ 1¡¢ËéƬÊÇÈçºÎ²úÉúµÄ µ±Éú³ÉÒ»¸öÊý¾Ý¿âʱ£¬Ëü»á·Ö³É³ÆΪ±í¿Õ¼ä(tablespace)µÄ¶à¸öÂß¼¶Î(segment)£¬Èçϵͳ(system)±í¿Õ¼ä,ÁÙʱ(temporary)±í¿Õ¼äµÈ¡£Ò»¸ö±í¿Õ¼ä¿ÉÒÔ°üº¬¶à¸öÊý¾Ý·¶Î§(extent)ºÍÒ»¸ö»ò¶à¸ö×ÔÓÉ·¶Î§¿é£¬¼´×ÔÓÉ¿Õ¼ä(free space)¡£ ±í¿Õ¼ä¡¢¶Î¡¢·¶Î§¡¢×ÔÓÉ¿Õ¼äµÄÂß¼¹ØϵÈçÏÂ: µ±±í¿Õ¼äÖÐÉú³ÉÒ»¸ö¶Îʱ£¬½«´Ó±í¿Õ¼äÓÐЧ×ÔÓÉ¿Õ¼äÖÐΪÕâ¸ö¶ÎµÄ³õʼ·¶Î§·ÖÅä¿Õ¼ä¡£ÔÚÕâЩ³õʼ·¶Î§³äÂúÊý¾Ýʱ£¬¶Î»áÇëÇóÔö¼ÓÁíÒ»¸ö·¶Î§¡£ÕâÑùµÄÀ©Õ¹¹ý³Ì»áÒ»Ö±¼ÌÐøÏÂÈ¥£¬Ö±µ½´ïµ½×î´óµÄ·¶Î§Öµ£¬»òÕßÔÚ±í¿Õ¼äÖÐÒѾûÓÐ×ÔÓÉ¿Õ¼äÓÃÓÚÏÂÒ»¸ö·¶Î§¡£×îÀíÏëµÄ״̬¾ÍÊÇÒ»¸ö¶ÎµÄÊý¾Ý¿É±»´æÔÚµ¥Ò»µÄÒ»¸ö·¶Î§ÖС£ÕâÑù£¬ËùÓеÄÊý¾Ý´æ´¢Ê±¿¿½ü¶ÎÄÚÆäËüÊý¾Ý£¬²¢ÇÒÑ°ÕÒÊý¾Ý¿ÉÉÙÓÃһЩָÕë¡£µ«ÊÇÒ»¸ö¶Î°üº¬¶à¸ö·¶Î§µÄÇé¿öÊÇ´óÁ¿´æÔڵģ¬Ã»ÓÐÈκδëÊ©¿ÉÒÔ±£Ö¤ÕâЩ·¶Î§ÊÇÏàÁÚ´æ´¢µÄ£¬Èçͼ¡´1¡µ¡£µ±ÒªÂú×ãÒ»¸ö¿Õ¼äÒªÇóʱ£¬Êý¾Ý¿â²»Ôٺϲ¢ÏàÁÚµÄ×ÔÓÉ·¶Î§(³ý·Ç±ðÎÞÑ¡Ôñ)£¬ ¶øÊÇÑ°ÕÒ±í¿Õ¼äÖÐ×î´óµÄ×ÔÓÉ·¶Î§À´Ê¹Óá£ÕâÑù½«Öð½¥ÐγÉÔ½À´Ô½¶àµÄÀëÉ¢µÄ¡¢·Ö¸ôµÄ¡¢½ÏСµÄ×ÔÓɿռ䣬¼´ËéƬ¡£ 2¡¢ËéƬ¶ÔϵͳµÄÓ°Ïì Ëæ×Åʱ¼äÍÆÒÆ£¬»ùÓÚÊý¾Ý¿âµÄÓ¦ÓÃϵͳµÄ¹ã·ºÊ¹Ó㬲úÉúµÄËéƬ»áÔ½À´Ô½¶à£¬½«¶ÔÊý¾Ý¿âÓÐÒÔÏÂÁ½µãÖ÷ÒªÓ°Ïì: (1)µ¼ÖÂϵͳÐÔÄܼõÈõ ÈçÉÏËùÊö£¬µ±ÒªÂú×ãÒ»¸ö¿Õ¼äÒªÇóʱ£¬Êý¾Ý¿â½«Ê×ÏȲéÕÒµ±Ç°×î´óµÄ×ÔÓÉ·¶Î§£¬¶ø"×î´ó"×ÔÓÉ·¶Î§Öð½¥±äС£¬ÒªÕÒµ½Ò»¸ö×ã¹»´óµÄ×ÔÓÉ·¶Î§ÒѱäµÃÔ½À´Ô½À§ÄÑ£¬´Ó¶øµ¼Ö±í¿Õ¼äÖеÄËÙ¶ÈÕÏ°£¬Ê¹Êý¾Ý¿âµÄ¿Õ¼ä·ÖÅäÓú·¢Ô¶ÀëÀíÏë״̬; (2)ÀË·Ñ´óÁ¿µÄ±í¿Õ¼ä ¾¡¹ÜÓÐÒ»²¿·Ö×ÔÓÉ·¶Î§(Èç±í¿Õ¼äµÄpctincreaseΪ·Ç0)½«»á±»smon(ϵͳ¼à¿Ø)ºǫ́½ø³ÌÖÜÆÚÐԵغϲ¢£¬µ«Ê¼ÖÕÓÐÒ»²¿·Ö×ÔÓÉ·¶Î§ÎÞ·¨µÃÒÔ×Ô¶¯ºÏ²¢£¬ÀË·ÑÁË´óÁ¿µÄ±í¿Õ¼ä¡£ 3¡¢×ÔÓÉ·¶Î§µÄËéƬ¼ÆËã ÓÉÓÚ×ÔÓÉ¿Õ¼äËéƬÊÇÓɼ¸²¿·Ö×é³É£¬È緶ΧÊýÁ¿¡¢×î´ó·¶Î§³ß´çµÈ£¬ÎÒÃÇ¿ÉÓÃfsfi--free space fragmentation index(×ÔÓÉ¿Õ¼äËéƬË÷Òý)ÖµÀ´Ö±¹ÛÌåÏÖ: fsfi=100*sqrt(max(extent)/sum(extents))*1/sqrt(sqrt(count(extents))) ¿ÉÒÔ¿´³ö£¬fsfiµÄ×î´ó¿ÉÄÜֵΪ100(Ò»¸öÀíÏëµÄµ¥Îļþ±í¿Õ¼ä)¡£Ëæ×Å·¶Î§µÄÔö¼Ó£¬fsfiÖµ»ºÂýϽµ£¬¶øËæ×Å×î´ó·¶Î§³ß´çµÄ¼õÉÙ£¬fsfiÖµ»áѸËÙϽµ¡£ ÏÂÃæµÄ½Å±¾¿ÉÒÔÓÃÀ´¼ÆËãfsfiÖµ: rem fsfi value compute rem fsfi.sql
Ïà¹ØÎĵµ£º
OracleÓ¦ÓÃϵͳµÄÓÅ»¯Ëĸö·½Ãæ
1.¡¡¡¡¡¡ Ó¦ÓóÌÐòSQLÓï¾äÓÅ»¯;
2.¡¡¡¡¡¡ ORACLEÊý¾Ý¿â²ÎÊýµ÷Õû;
3.¡¡¡¡¡¡ ²Ù×÷ϵͳ²ÎÊýµ÷Õû;
4.¡¡¡¡¡¡ ÍøÂçÐÔÄܵ÷Õû.
oracleÓ¦ÓÃϵͳµÄÐÔÄÜÖ¸±ê
1.¡¡¡¡¡¡ Êý¾Ý¿âÍÌÍÂÁ¿;
2.¡¡¡¡¡¡ Êý¾Ý¿âÓû§ÏìӦʱ¼ä.
ORACLEÊý¾Ý¿âÐÔÄÜÓÅ»¯µÄ¼¸¸ö²¿·Ö
Êý¾Ý¿âÐÔÄÜÓÅ»¯°üÀ¨Èçϼ¸¸ö²¿·Ö£º
1¡¢1¡¢µ÷Õ ......
ÀûÓÃosÉóºË
µÇ¼oracleʱÔÚWinÖÐʵÏÖ¶ÔosµÄÉóºËÓÐÈçϼ¸²½£º
1¡¢ create os user id
2¡¢ create os group ora_dba(Õâ¸ö×éÖÐÓû§¾ßÓйÜÀíËùÓÐoracle database µÄȨÏÞ),
ora_sid_dba£¨Ö»ÄܶÔÓ¦µ½ÏàÓ¦sidµ ......
1 oracle ʵÀý
°²×°--È«¾ÖÊý¾Ý¿âÃû£º¿ÉÒÔ¼ÓÀ©Õ¹Ãû£º±ÈÈçtest.com.cn£¨¶øÊý¾Ý¿âʵÀýÃûΪtest£©
Êý¾Ý¿â¿ÚÁî:ΪÊý¾Ý¿âϵͳÕÊ»§£ºsys,system,sysman,dbsnmpÌṩÃÜÂë
¸ß¼¶°²×°£ºÎªÃ¿¸öÓû§Ìṩ²»Í¬µÄÃÜÂë
sys: change_on_install
system:manager
sysman:oem_temp
dbsnmp:dbsnmp
internal: orcale
scott:tiger
demo: ......
ÎÒÃǾ³£Ì¸¼°OracleµÄȨÏÞ£¬±ÈÈçConnect£¬DBA£¬resource£¬ sysdba, select any
table,
select_catelog_roleÕâÑùһЩȨÏÞ£¬ÈÃÎÒÃÇÑÛ»¨çÔÂҵģ¬ÄÇôÈçºÎÀ´Çø·ÖÕâЩÖÖÀà·±¶àµÄprivilegeÖв»ÖÁÓÚÑÛÃÔÀëÄØ£¬Õâ¸öÎÄÕ½«
»á¶ÔÄãÔÚÕâ·½ÃæµÄÁ˽âÆðµ½°ïÖú¡£
ÒÔÉÏÎÒÃÇ¿´µ½µÄÕâЩȨÏÞ£¬¶¼ÊÇ¿ÉÒÔͨ¹ýg ......