Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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ÏÂɾ³ýµ±Ç°Óû§ÏÂËùÓжÔÏóµÄSQL

ORACLEÏÂɾ³ýµ±Ç°Óû§ÏÂËùÓжÔÏóµÄSQL
Sql´úÂë
--ɾ³ýij¸öÓû§ÏµĶÔÏó   
set heading off;   
set feedback off;   
spool c:\dropobj.sql;   
  prompt --Drop constraint   
 select 'alter t ......

΢Èí£º×ö×Ô¼ºµÄÇ¨ÒÆ¹¤¾ß£¬ÈÃOracleÈ¥×ż±°É£¡

   ¿ªÔ´¿çƽ̨±à³ÌÓïÑÔJava¼ÓÉÏ¿ªÔ´Êý¾Ý¿âMySQL£¡×ÔSunÊÕ¹ºMySQL¿ªÊ¼£¬±¾ÒÔΪSun½«´óÕ¹ºêͼ¡£È»SunȴûÓаÑÎÕ»ú»á£¬·´¶øÃ»ÓнûµÃס½ðÈÚΣ»úµÄ³å»÷¡£ÂäµÃ¸öÃæÁÙÊÕ¹ºµÄ¾ÖÃæ¡£»òÐíMySQLÖ®¸¸Richard StallmanÒ²¾ø¶ÔûÓÐÏëµ½£¬ÈÃSunÊÕ¹ºMySQL£¬È´ÊǰÑMySQLÍÆÏòÁËÉîÔ¨¡£MySQLµÄºÎÈ¥ºÎ´Ó£¡
  Ãæ¶ÔÕâ¸öÎÊÌ⣬MySQLÖ ......

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

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

ORACLE Êý¾Ý±í´´½¨²½Öè

1.´´½¨ÁÙʱ±í¿Õ¼ä
CREATE TEMPORARY TABLESPACE Test_temp
TEMPFILE 'E:\Test\TEST_temp.dbf'
SIZE 32M
AUTOEXTEND ON
NEXT 32M MAXSIZE 2048M
EXTENT MANAGEMENT LOCAL;
2.´´½¨Óû§±í¿Õ¼ä
create tablespace TEST
datafile 'E:\TEST\TEST.dbf'
size  100M
autoextend on maxsize     ......

oracleÖв鿴Óû§È¨ÏÞ

ORACLEÖÐÊý¾Ý×ÖµäÊÓͼ·ÖΪ3´óÀà,     ÓÃÇ°×ºÇø±ð£¬·Ö±ðΪ£ºUSER£¬ALL ºÍ DBA£¬Ðí¶àÊý¾Ý×ÖµäÊÓͼ°üº¬ÏàËÆµÄÐÅÏ¢¡£
USER_*:ÓйØÓû§ËùÓµÓеĶÔÏóÐÅÏ¢£¬¼´Óû§×Ô¼º´´½¨µÄ¶ÔÏóÐÅÏ¢
ALL_*£ºÓйØÓû§¿ÉÒÔ·ÃÎʵĶÔÏóµÄÐÅÏ¢£¬¼´Óû§×Ô¼º´´½¨µÄ¶ÔÏóµÄÐÅÏ¢¼ÓÉÏÆäËûÓû§´´½¨µÄ¶ÔÏ󵫸ÃÓû§ÓÐȨ·ÃÎʵÄÐÅÏ¢
DBA_* ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ