oracleһЩ²Ù×÷
1.²é¿´±í¿Õ¼ä:
SELECT A.TABLESPACE_NAME,A.BYTES TOTAL,B.BYTES USED, C.BYTES FREE,
(B.BYTES*100)/A.BYTES "% USED",(C.BYTES*100)/A.BYTES "% FREE"
from SYS.SM$TS_AVAIL A,SYS.SM$TS_USED B,SYS.SM$TS_FREE C
WHERE A.TABLESPACE_NAME=B.TABLESPACE_NAME AND A.TABLESPACE_NAME=C.TABLESPACE_NAME;
2.µ±oracleËÀÁ˵ÄʱºòµÄ²Ù×÷:
ÖÕÖ¹ÓëORACLE_SIDÓйصÄËùÓÐOracle¹ý³Ì.
ÓÃipcs –pmbÃüÁîÀ´Ê¶±ðËùÓÐÕ¼ÓõÄRAMÄÚ´æƬ¶Ï¡£
ÓÃipcrm -m ÃüÁîÀ´´ÓUNIXÖÐÊÍ·ÅÕ¼ÓõÄRAMÄÚ´æ¡£
Ö»¶ÔNon-AIX£ºÓÃipcs -saÃüÁîÀ´ÏÔʾռÓñê¼Ç£¬ÓÃipcrm –sÃüÁîÀ´ÊͷŸÃʵÀýµÄÕ¼Óñê¼Ç
´´½¨µ¥Ò»ÃüÁîÀ´ÖÕÖ¹Óë¹ÒÆð£¨hung£©µÄÊý¾Ý¿âʵÀýÓйصÄOracle¹ý³ÌÊǺܼòµ¥µÄ¡£ÔÚÏÂÃæµÄÀý×ÓÖ®ÖУ¬
ÎÒÃÇÓÃpsÖ¸ÁîÀ´Ê¶±ðOracle¹ý³Ì£¬È»ºóÓÃawk³ÌÐòÀ´»ñÈ¡Oracle¹ý³ÌµÄ¹ý³ÌID£¨process ID£¬PID£©¡£
È»ºó£¬ÎÒÃǰѹý³ÌIDÊäÈëµ½UNIXµÄkillÃüÁîÖ®ÖС£
oracleÓû§> ps -ef|grep $ORACLE_SID| grep -v \ grep|awk '{print $2}'|xargs -i kill -9 {}
ÔÚÖÕÖ¹ËùÓÐOracle¹ý³ÌÖ®ºó£¬ÎÒÃÇ¿ÉÒÔÓÃipcs –pmbÖ¸ÁîÀ´¼ì²éÕ¼ÓõÄÄÚ´æ²¢Çå³ýÊý¾Ý¿âËùÕ¼ÓõÄÄÚ´æ¡£
ÎÒÃÇÊ×ÏÈÏÔʾ³öÊý¾Ý¿â·þÎñÆ÷ÉÏËùÓÐÕ¼ÓÃÄڴ棺
IPC
Ïà¹ØÎĵµ£º
ËäȻѧϰJavaºÜ¾ÃÁË£¬×Ô¼ºÒ²Á¬½Ó¹ýһЩÊý¾Ý¿â£¬±ÈÈçmysqlÖ®ÀàµÄ£¬Èç½ñÄØ£¬Ò²Ñ§Ï°ÁËÒ»¶Îʱ¼äµÄOracle£¬È»¶øÄØ£¬½ñÌìÊÇÎÒµÚÒ»´ÎÁ¬½ÓOracle£¬ºÙºÙ£¬Ó¦¸Ã»¹²»ËãÌ«³Ù°É¡£
½ñÌìÄØ£¬Óе㱿׾£¬´ó¼ÒĪЦ£¡
ÎÒÕâÊÇÒ»¸ö²éѯÀý×Ó
Ê×ÏÈ£¬Ô ......
ѧϰOracle DBAÒ²°ë¸ö¶àѧÆÚÁË£¬½ñÌìÃÍÈ»²Å·¢ÏÖ£¬ÔÀ´ÎÒµÄÊ黹ÊǺÜеģ¬ÉϿβÙ×÷ʱºòÒ²Ö»ÊÇÖªµÀ´ó¸ÅÔõô×ö£¬µ«ÊÇÒªÕæµÄÈ«²¿×Ô¼º×ö£¬¶ø²»È¥·Ê黹ÊÇÓÐÒ»¶¨µÄÄѶȵģ¬ËùÒÔÄØ£¬½ñÌ쿪ʼ½«DBA´ÓÍ·¸´Ï°Ò»±é£¬Í¬Ê±ÔÙ²Ù×÷Ò»±é¡£
µÚÒ»Õ£¬Ñ§µÄÊÇOracleµÄÌåϵ½á¹¹£ ......
µÚÒ»²½:ÏÂÔØ°²×°Oracle 10g Release 2 ¿Í»§¶ËÈí¼þ,ÏÂÔØÁ¬½ÓÊÇ:
http://download.oracle.com/otn/nt/oracle10g/10201/10201_database_win32.zip
ÏÂÔغó°²×°
µÚ¶þ²½:ÏÂÔØ°²×°Oracle ODAC,ÏÂÔØÁ¬½ÓÊÇ:
http://download.oracle.com/otn/other/ole-oo4o/ODAC1020221.exe
µÚÈý²½: ÖØÆôMS SQ ......
1 ²é¿´Ä³ÕűíµÄindexµÄÏêϸÐÅÏ¢¡££¨column_position´ú±íÑ¡Ôñ˳Ðò£©
select table_name, index_name, column_name, column_position
from user_ind_columns
where table_name = 'T_BASE_DATA_DICTIONARY'
order by table_name, index_name, column_position;
2 ÔÚ´´½¨±íʱ¶ÔÁÐÖ¸¶¨NOT NULLºó»á½ûÓÃN ......
Ä¿Ç°£¬ÕýÔò±í´ïʽÒѾÔںܶàÈí¼þÖеõ½¹ã·ºµÄÓ¦Ó㬰üÀ¨*nix£¨Linux, UnixµÈ£©£¬HPµÈ²Ù×÷ϵͳ£¬PHP£¬C#£¬JavaµÈ¿ª·¢»·¾³¡£
Oracle 10gÕýÔò±í´ïʽÌá¸ßÁËSQLÁé»îÐÔ¡£ÓÐЧµÄ½â¾öÁËÊý¾ÝÓÐЧÐÔ£¬ Öظ´´ÊµÄ±æÈÏ, Î޹صĿհ׼ì²â£¬»òÕß·Ö½â¶à¸öÕýÔò×é³É
µÄ×Ö·û´®µÈÎÊÌâ¡£
Oracle 10gÖ§³ÖÕýÔò±í´ïʽµÄËĸöк¯Êý ......