Oracle DBAÊÖ¼ÇÖ®¡°V$SQLÊÓͼÏÔʾ½á¹ûÒì³£µÄÕï¶Ï¡±
±¾ÎĽÚÑ¡×Ô¡¶Oracle DBAÊּǗ—Êý¾Ý¿âÕï¶Ï°¸ÀýÓëÐÔÄÜÓÅ»¯Êµ¼ù¡·µÚ2Õ“YangtingkunµÄDBA¹¤×÷Êּǔ £¨×÷ÕߣºÑîÍ¢çû£©
V$SQLÊÓͼÏÔʾ½á¹ûÒì³£µÄÕï¶Ï
ÓÐÒ»´ÎÅöµ½Ò»¸öºÜÆæ¹ÖµÄÎÊÌ⣬ÔÚ¼ì²é»á»°ËùÖ´ÐеÄSQLʱ£¬·¢ÏÖV$SQLÊÓͼÖÐSQL_TEXTÁÐÖеÄÊý¾ÝÊDz»Õý³£µÄ¡£
ÓÉÓÚV$SQLÊǶ¯Ì¬ÐÔÄÜÊÓͼ£¬ÀïÃæ±£´æµÄÊǵ±Ç°¹²Ïí³ØÖмÓÔØµÄSQLÓï¾ä£¬ËùÒÔÈç¹ûÕâ¸öSQL²»ÊÇÖ´ÐÐºÜÆµ·±µÄ»°£¬ÄÇôËüºÜ¿ÉÄÜ»á±»Ìæ»»³ö¹²Ïí³Ø¡£»òÕßÊý¾Ý¿âÒâÍâÖØÆô£¬Ò²»áµ¼ÖÂÕâ¸öSQL³¹µ×¶ªÊ§¡£ÄÇôÊ×ÒªÈÎÎñ¾ÍÊDZ£ÁôÏÖ³¡£¬Ò»µ©´íÎ󲻿ÉÔÙÏÖ£¬ÄÇôËùÓеÄÎÊÌâ¾Í¶¼ÎÞ´Ó²éÆðÁË¡£
½«ÏÔʾÒì³£µÄV$SQL¼Ç¼±¸·Ýµ½ÁËBAK_V$SQL±íÖУ¬Ê×ÏÈ¿´Ò»ÏÂÒì³£µÄSQLÓï¾ä£º
SQL> SELECT SQL_TEXT from BAK_V$SQL;
SQL_TEXT
----------------------------------------------------------------------------------------
info.CONTRACT_ITEM_ID,info.BUYER_ORG_ID a
elδ³Ðŵ'DISCOUNT_STEP is null or INC.NUM_STEP is null then
to_char(INC.DISCOUNT_STEP * 100,'0.0') || '%'Û¿ÛÂ?' ||
'δ CASH.CASH is null and CASH.CASH_THIRTY is null then
'ÏÖ¿î:' || to_char(CASH.CASH * 100,'0.0'
'30ÈÕ½á¿î:'SH_THIRTY is not null then
case whend end as CASH_DISCOUNT,0,'0.0') || '%;'
en info.modify_date > inc.modify_date and info.modify_date > cash.modify_date then info.mo
ÏÔÈ»Õâ¸öSQLÓï¾äÊDz»Õý³£µÄ£¬Óï¾äÖÐÉõÖÁÁ¬select¡¢insert¡¢update¡¢deleteÃüÁî¶¼²»°üÀ¨¡£µ«ÊÇÕâ¸öSQLÓÖ²»ÍêÈ«ÊÇÂÒÂ룬´ÓÏÔʾµÄ²¿·Ö¿´£¬´ó²¿·ÖÊÇÓÐÒ»¶¨Âß¼ÔÚÀïÃæµÄ¡£
¹Û²ìÕâ¸öSQL£¬µÚÒ»¸Ð¾õÏñÊÇV$SQLÊÓͼÖÐÏÔʾÁ˲¿·ÖSQL£¬¶øÃ»ÓдÓSQLÓï¾äµÄ¿ªÍ·²¿·Ö¿ªÊ¼ÏÔʾ¡£¶øÇÒ¼´Ê¹ÊDz¿·ÖSQL£¬Ò²²»ÊÇÁ¬ÐøÏÔʾµÄ£¬ÒòΪÁ¬ÐøµÄÁ½Ðв¢²»Á¬¹á¡£
Ê×ÏÈÏëµ½µÄ¾ÍÊÇOracleµÄBug£¬ÒòΪ³ýÁËÕâÒ»µã£¬ÔÝʱûÓÐÏëµ½ÆäËûµÄÔÒòÀ´½âÊÍÕâ¸öÏÖÏó¡£ÄÇôÈç¹ûȷʵÊÇÓÉÓÚBug£¬µ¼ÖÂV$SQLÏÔʾ²»ÍêÕû£¬ÄÇôÍêÕûµÄSQLÓÖÊÇÊ
Ïà¹ØÎĵµ£º
ORACLE±¸·Ý²ßÂÔ(ORACLE BACKUP STRATEGY)
2007Äê11ÔÂ02ÈÕ ÐÇÆÚÎå 16:03
¸ÅÒª
1¡¢Á˽âʲôÊDZ¸·Ý
2¡¢Á˽ⱸ·ÝµÄÖØÒªÐÔ
3¡¢Àí½âÊý¾Ý¿âµÄÁ½ÖÖÔËÐз½Ê½
4¡¢Àí½â²»Í¬µÄ±¸·Ý·½Ê½¼°ÆäÇø±ð
5¡¢Á˽âÕýÈ·µÄ±¸·Ý²ßÂÔ¼°ÆäºÃ´¦
Ò»¡¢Á˽ⱸ·ÝµÄÖØÒªÐÔ
¿ÉÒÔ˵£¬´Ó¼ÆËã»úϵͳ³öÊÀµÄÄÇÌìÆð£¬¾ÍÓÐÁ˱¸·ÝÕâ¸ö¸ÅÄ ......
extent--×îС¿Õ¼ä·ÖÅ䵥λ --tablespace management
block --×îСi/oµ¥Î» --segment management
create tablespace james
datafile '/export/home/oracle/oradata/james.dbf'
size 100M ¡¡¡¡¡¡¡¡¡¡¡¡--³õʼµÄÎļþ´óС¡¡
autoextend On¡¡¡¡¡¡¡¡ --×Ô¶¯Ôö³¤
next 10M¡ ......
485. DBA_2PC_NEIGHBORS
°üº¬Î´¾öÊÂÎñµÄÒýÈë»òÁ÷³öµÄÁ¬½ÓÐÅÏ¢.
486. DBA_ALL_TABLES
ÏÔʾÊý¾Ý¿âÖÐËùÓбíµÄÃèÊö.
487. DBA_APPLICATION_ROLES
ËùÓеľßÓк¯Êý¶¨ÒåµÄÑéÖ¤²ßÂԵĽÇÉ«.
488. DBA_ASSOCIATIONS
ÏÔʾÓû§¶¨ÒåµÄͳ¼ÆÐÅÏ¢.
489. DBA_AUDIT_EXISTS
ÁгöAUDIT NOT EXISTSºÍAUDIT EXISTS²úÉúµÄÉ󼯏ú×Ù.
490. ......
String strServerName = "·þÎñÆ÷Ãû»òIP";
String strUserID = "Êý¾Ý¿âÓû§Ãû";
String strPSW= "Êý¾Ý¿âÃÜÂë";
DataTable DBNameTable = new DataTable();
OleDbConnection Connection = new OleDbConnection(String.Format("Provider=SQLOLEDB;Data Source={0};User ID={1};PWD={2}", strServerName, strUserID, strPS ......
1. Ïû³ýtriggerµÄǶÌ×µ÷Óá£×îºÃ²»ÒªÓà EXEC sp_configure 'nested triggers', '0'£¬ Ó¦¸ÃÔÚtriggerÖÐʹÓÃÅжÏÓï¾ä£¬ ÀýÈ磺if not update (name) return¡£
2. ʹÓà not for replication ½ûÖ¹ÔÚ¸´ÖƵÄʱºò´¥·¢trigger¡£
3. ´´½¨publisher articleµÄʱºò£¬ ÉèÖà copy user triggersΪ true¡£
ÕâÑù±£Ö¤£ºtrigger²»»áǶÌ×µ÷ ......