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

8¸öDBA×î³£Óõļà¿ØOracleÊý¾Ý¿âµÄ³£ÓÃshell½Å±¾

±¾ÎĽéÉÜÁË8¸ö³£Óõļà¿ØÊý¾Ýshell½Å±¾¡£Ê×ÏȻعËÁËһЩDBA³£ÓõÄUnixÃüÁÒÔ¼°½âÊÍÁËÈçºÎͨ¹ýUnix CronÀ´¶¨Ê±Ö´ÐÐDBA½Å±¾¡£ÍøÉÏÒ²ÓкöàÀàËƵÄÎÄÕ£¬µ«»ù±¾É϶¼²»ÄÜÕý³£ÔËÐУ¬»¨µãʱ¼äÖØÐÂÕûÀíÁËÏ£¬ÒÔºó¾ÍÄÜÖ±½ÓʹÓÃÁË¡£
Ò»£®Í¬Ê±ÎÄÕ»¹½éÉÜÁË8¸öÖØÒªµÄ½Å±¾À´¼à¿ØOracleÊý¾Ý¿â£º
1.¼ì²éʵÀýµÄ¿ÉÓÃÐÔ
2.¼ì²é¼àÌýÆ÷µÄ¿ÉÓÃÐÔ
3.¼ì²éalertÈÕÖ¾ÎļþÖеĴíÎóÐÅÏ¢
4.ÔÚ´æ·ÅlogÎļþµÄµØ·½ÂúÒÔÇ°Çå¿Õ¾ÉµÄlogÎļþ
5.·ÖÎötableºÍindexÒÔ»ñµÃ¸üºÃµÄÐÔÄÜ
6.¼ì²é±í¿Õ¼äµÄʹÓÃÇé¿ö
7.ÕÒ³öÎÞЧµÄ¶ÔÏó
8.¼à¿ØÓû§ºÍÊÂÎñ
¶þ£®DBAÐèÒªµÄUnix»ù±¾ÖªÊ¶
»ù±¾µÄUNIXÃüÁÒÔÏÂÊÇһЩ³£ÓõÄUnixÃüÁ
ps--ÏÔʾ½ø³Ì
grep--ËÑË÷ÎļþÖеÄijÖÖÎı¾Ä£Ê½
mailx--¶ÁÈ¡»òÕß·¢ËÍmail
cat--Á¬½ÓÎļþ»òÕßÏÔʾËüÃÇ
cut--Ñ¡ÔñÏÔʾµÄÁÐ
awk--ģʽƥÅäÓïÑÔ
df--ÏÔʾʣÓàµÄ´ÅÅÌ¿Õ¼ä
ÒÔÏÂÊÇDBAÈçºÎʹÓÃÕâЩÃüÁîµÄһЩÀý×Ó£º
1. ÏÔʾ·þÎñÆ÷ÉϵĿÉÓÃʵÀý£º
$ ps -ef| grep smon
  oracle 22086     1  0 02:32:24 ?        0:04 ora_smon_PPRD10
oracle  5215 28972  0 08:10:19 pts/4    0:00 grep smon
2. ÏÔʾ·þÎñÆ÷ÉϵĿÉÓüàÌýÆ÷£º
$ ps -ef grep listener grep -v grep
£¨grepÃüÁîÓ¦¸Ã¼ÓÉÏ-i²ÎÊý£¬¼´grep -i listener£¬¸Ã²ÎÊýµÄ×÷ÓÃÊǺöÂÔ´óСд£¬ÒòΪÓÐЩʱºòlistenerÊÇ´óдµÄ£¬Õâʱ¾Í»á¿´²»µ½½á¹û£©
$ ps -ef|grep -i listener
  oracle  9655     1  0   Mar 12 ?        0:01 /data/app/oracle/9.2.0/bin/tnslsnr LISTENER -inherit
  oracle 22610     1  0 02:45:02 ?        0:02 /data/app/oracle/10.2.0/bin/tnslsnr LISTENER -inherit
oracle  5268 28972  0 08:13:02 pts/4    0:00 grep -i listener
3. ²é¿´Oracle´æµµÄ¿Â¼µÄÎļþϵͳʹÓÃÇé¿ö
$ df -k | grep /data
/dev/md/dsk/d50      104977675 88610542 15317357    86%    /data
4. ͳ¼Æalter.logÎļþÖе


Ïà¹ØÎĵµ£º

OracleÓëSQL ServerÊý¾Ý»¥Ò×ÐÔ£¨1£©

×÷Õß Haidong Ji ·­Òë GoodKid
ÎÒÃǵ±ÖеĴ󲿷ÖÈ˹¤×÷ÔÚÒ»¸öµ¥Ò»µÄ RDBMS ϵͳÖУ¬Èç MSSQL, Oracle, or IBM DB2¡£È»¶ø£¬ÎÒÃÇÈÕÒæ¸Ð¾õµ½£¬ÎÒÃÇÕý´¦ÓÚ²»Í¬µÄÊý¾Ý¿â»·¾³µ±Öв¢ÇÒÐèÒª½â¾öÊý¾ÝµÄ»¥ÓÃÐÔÎÊÌâ¡£
¾¡¹ÜÖ÷ÒªµÄ RDBMS ³§ÉÌÊÔͼȥ×ñÑ­¹ØϵÊý¾Ý¿âÄ£ÐÍÔ­Àí£¬²¢ÇÒÓ÷dz£Ð¡µÄ²îÒìȥʵÏÖËüÃÇ¡£ÁíÍ⣬¼¸ºõÖ÷ÒªµÄ ......

oracle ³£ÓñêÁ¿ÀàÐÍ

 £¨1£© varchar2(n):¸ÃÊý¾ÝÀàÐÍÓÃÓÚ¶¨Òå¿É±ä³¤¶ÈµÄ×Ö·û´®£¬ÆäÖÐ n ÓÃÓÚÖ¸¶¨×Ö·û´®µÄ×î´ó³¤¶È£¬Æä×î´óֵΪ 32767 ×Ö½Ú¡£µ±Ê¹ÓøÃÊý¾ÝÀàÐͶ¨Òå±äÁ¿ÊÇ£¬±ØÐë×¢Ò⣬ÔÚPL/SQL¿éÖÐʹÓøÃÊý¾ÝÀàÐͲÙ×Ývarchar2±íÁÐʱ£¬ÆäÊýÖµµÄ³¤¶È²»Ó¦¸Ã³¬¹ý 4000 ×Ö½Ú¡£
......

Oracle 10G Êý¾Ý¿âÎļþĿ¼½á¹¹

Oracle 10G Êý¾Ý¿âÎļþĿ¼½á¹¹ 
ÔÚOracle Database 10gÖÐ,OracleµÄĿ¼½á¹¹ÊÇÓÉOracle_Base¼°Æä×ÓĿ¼Oracle_Home¡¢admin¡¢flash_recovery_areaºÍoradataĿ¼¹¹³ÉµÄ¡£Îª·½±ãÌÖÂÛ£¬ÓÃOracle_Base´ú±íOracleĿ¼Ê÷µÄ¸ù£¬ÓÃOracle_Home±íʾ¸ùĿ¼ÏµÄÖ÷Ŀ¼¡£
1.Oracle_BaseĿ¼
Oracle_Base´ú±íOracleĿ¼Ê÷µÄ¸ù¡£ ......

PHPÁ¬½ÓOracle²¢·ÖÒ³·ÃÎÊ

ʹÓõÄÊÇADODB¿â,ÐèÒªÓÐOCI8¿â.
<?php

//require("adodb5/adodb-exceptions.inc.php");
require("adodb5/adodb.inc.php");
$conn = NewADOConnection("oci8");
$conn->Connect($url, $user, $password, $service_name);
$rs;
try {
$rs = $conn->Execu ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ