Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

¼à¿ØOracleÊý¾Ý¿âµÄ³£ÓÃshell½Å±¾(ת)

Ç°ÑÔ
ÕâƪÎÄÕ½éÉÜÁËDBAÿÌìÔÚ¼à¿ØOracleÊý¾Ý¿â·½ÃæµÄÖ°Ô𣬽²ÊöÁËÈçºÎͨ¹ýshell½Å±¾À´Íê³ÉÕâЩÖظ´µÄ¼à¿Ø¹¤×÷¡£±¾ÎÄÊ×ÏȻعËÁËһЩDBA³£ÓõÄUnixÃüÁÒÔ¼°½âÊÍÁËÈçºÎͨ¹ýUnix CronÀ´¶¨Ê±Ö´ÐÐDBA½Å±¾¡£Í¬Ê±ÎÄÕ»¹½éÉÜÁË8¸öÖØÒªµÄ½Å±¾À´¼à¿ØOracleÊý¾Ý¿â£º
¼ì²éʵÀýµÄ¿ÉÓÃÐÔ
¼ì²é¼àÌýÆ÷µÄ¿ÉÓÃÐÔ
¼ì²éalertÈÕÖ¾ÎļþÖеĴíÎóÐÅÏ¢
ÔÚ´æ·ÅlogÎļþµÄµØ·½ÂúÒÔÇ°Çå¿Õ¾ÉµÄlogÎļþ
·ÖÎötableºÍindexÒÔ»ñµÃ¸üºÃµÄÐÔÄÜ
¼ì²é±í¿Õ¼äµÄʹÓÃÇé¿ö
ÕÒ³öÎÞЧµÄ¶ÔÏó
¼à¿ØÓû§ºÍÊÂÎñ
DBAÐèÒªµÄUnix»ù±¾ÖªÊ¶
»ù±¾µÄUNIXÃüÁî
ÒÔÏÂÊÇһЩ³£ÓõÄUnixÃüÁ
ps--ÏÔʾ½ø³Ì¡¡grep--ËÑË÷ÎļþÖеÄijÖÖÎı¾Ä£Ê½¡¡mailx--¶ÁÈ¡»òÕß·¢ËÍmail¡¡cat--Á¬½ÓÎļþ»òÕßÏÔʾËüÃÇ¡¡cut--Ñ¡ÔñÏÔʾµÄÁС¡awk--ģʽƥÅäÓïÑÔ¡¡df--ÏÔʾʣÓàµÄ´ÅÅÌ¿Õ¼ä
ÒÔÏÂÊÇDBAÈçºÎʹÓÃÕâЩÃüÁîµÄһЩÀý×Ó£º
ÏÔʾ·þÎñÆ÷ÉϵĿÉÓÃʵÀý£º
$ ps -ef | grep smon
oracle 21832 1 0 Feb 24 ? 19:05 ora_smon_oradb1
oracle 898 1 0 Feb 15 ? 0:00 ora_smon_oradb2
dliu 25199 19038 0 10:48:57 pts/6 0:00 grep smon
oracle 27798 1 0 05:43:54 ? 0:00 ora_smon_oradb3
oracle 28781 1 0 Mar 03 ? 0:01 ora_smon_oradb4¡¢ÏÔʾ·þÎñÆ÷ÉϵĿÉÓüàÌýÆ÷£º

$ ps -ef | grep listener | grep -v grep
£¨ÒëÕß×¢£ºgrepÃüÁîÓ¦¸Ã¼ÓÉÏ-i²ÎÊý£¬¼´grep -i listener£¬
¸Ã²ÎÊýµÄ×÷ÓÃÊǺöÂÔ´óСд£¬ÒòΪÓÐЩʱºòlistenerÊÇ´óдµÄ£¬Õâʱ¾Í»á¿´²»µ½½á¹û£©
oracle 23879 1 0 Feb 24 ? 33:36 /8.1.7/bin/tnslsnr listener_db1 -inherit
oracle 27939 1 0 05:44:02 ? 0:00 /8.1.7/bin/tnslsnr listener_db2 -inherit
oracle 23536 1 0 Feb 12 ? 4:19 /8.1.7/bin/tnslsnr listener_db3 -inherit
oracle 28891 1 0 Mar 03 ? 0:01 /8.1.7/bin/tnslsnr listener_db4 -inherit²é¿´Oracle´æµµÄ¿Â¼µÄÎļþϵͳʹÓÃÇé¿ö

$ df -k | grep oraarch
/dev/vx/dsk/proddg/oraarch 71123968 4754872 65850768 7% /u09/oraarchͳ¼Æalter.logÎļþÖеÄÐÐÊý£º

$ cat alert.log | wc -l
2984
Áгöalert.logÎļþÖеÄÈ«²¿Oracle´íÎóÐÅÏ¢£º

$ grep ORA- alert.log
ORA-00600: internal error code, arguments: [kcrrrfswda.1], [], [], [], [], []
ORA-00600: internal error code, arguments: [1881], [25860496], [25857716], []
CRONTAB»ù±¾
Ò»¸öcro


Ïà¹ØÎĵµ£º

ORACLE ÁÙʱ±í¿Õ¼äʹÓÃÂʹý¸ßµÄÔ­Òò¼°½â¾ö·½°¸

ORACLE ÁÙʱ±í¿Õ¼äʹÓÃÂʹý¸ßµÄÔ­Òò¼°½â¾ö·½°¸(2009-11-14 19:59:02)
±êÇ©£ºoracle ÁÙʱ±í¿Õ¼ä ʹÓÃÂÊ100 ½â¾ö·½°¸ it
·ÖÀࣺ¼¼Êõ²©ÂÛ
ÔÚÊý¾Ý¿âµÄÈÕ³£Ñ§Ï°ÖУ¬·¢ÏÖ¹«Ë¾Éú²úÊý¾Ý¿âµÄĬÈÏÁÙʱ±í¿Õ¼ätempʹÓÃÇé¿ö´ïµ½ÁË30G£¬Ê¹ÓÃÂÊ´ïµ½ÁË100%£» ´ýµ÷ÕûΪ32Gºó£¬Ê¹ÓÃÂÊ»¹ÊÇΪ100%£¬µ¼Ö´ÅÅÌ¿Õ¼äʹÓýôÕÅ¡£¸ù¾ÝÁÙʱ±í¿Õ¼äµÄÖ÷ ......

OracleÌåϵ½á¹¹£ºÄÚ´æ½á¹¹ºÍ½ø³Ì½á¹¹

OracleÌåϵ½á¹¹£ºÄÚ´æ½á¹¹ºÍ½ø³Ì½á¹¹
2009-11-24 21:48
¡¡£¨Ò»£©ÄÚ´æ½á¹¹ºÍ½ø³Ì½á¹¹ OracleÊý¾Ý¿âµÄ×ÜÌå½á¹¹ÈçÏÂͼ£º
1£ºOracleʵÀý£¨Instance£©        
   ÔÚÒ»¸ö·þÎñÆ÷ÖУ¬Ã¿Ò»¸öÔËÐеÄOracleÊý¾Ý¿â¶¼ÓëÒ»¸öÊý¾Ý¿âʵÀýÏàÁªÏµ£¬ÊµÀýÊÇÎÒÃÇ
·ÃÎÊÊý¾Ý¿âµÄÊֶΡ£
......

³õѧORACLEµÄÀ§»ó

     ¶Ô³õѧORACLEµÄÈËһʱºÜÄÑ·ÖÇåORACLEÖйØÓÚ“¿Õ¼ä”µÄ¸ÅÄ±ÈÈç±í¿Õ¼ä ÁÙʱ±í¿Õ¼ä Óû§±í¿Õ¼äµÈ£¬¶ÔÓÚÓÉSQLתµ½ORACLEµÄ¾Í¸ü¼Ó»ìÏýÁË£¬ÈÃÈ˸оõORACLE·±Ëö£»·±ËöÔÚÄĶù£¬ÎÒÕûÀíÂÞÁÐÈçÏ£º
1.ORACLE×Ô´ø¹¤¾ß²»Ê®·ÖÒ×Óã»
2.ORACLEµÚÈý·½¹¤¾ßÒ×ÉÏÊÖ£¬µ«ÄÑÉîÈ룻
   &n ......

¡¶TOADÓëOracleÍŶӿª·¢Á÷³ÌÔÙÔì¡·¼¼Êõ½²×ù

      Éí¾ÓOracle ¹Ø¼üÓ¦ÓõĿª·¢ºÍά»¤ÍŶӣ¬ÄúÒ»¶¨ÉîÖªÑз¢¹ÜÀíµÄÖØÒª¡£ÈçºÎÀûÓÃרҵ»¯Oracle ÍŶӿª·¢½â¾ö·½°¸£¬ÊµÏÖ¸ßЧµÄÍŶӿª·¢¡¢×î¼ÑÓ¦ÓÃÐÔÄܺÍÀíÏëµÄ½»¸¶ÖÊÁ¿£¬ÊÇQuest Software±¾´ÎÓëÄú̽ÌֵĺËÐÄ»°Ìâ¡£
 
      ´ÓÊý¾Ý¿âµÄÉè¼Æ¡¢½¨Ä£¡¢±àÂ룬µ½Ó ......

oracleÖ®°Ñ±íÎļþµ¼³ö³ÉÎı¾Îļþ

1 spool
spool d:\test\table.dat
select * from table_name;
spool off
2 sqlplus user/password@sid @test.sql > table.dat
test.sql
     select * from table_name;
     exit; ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ