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

oracleϵͳ±í²éѯ

Êý¾Ý×Öµädict×ÜÊÇÊôÓÚOracleÓû§sysµÄ¡£
¡¡¡¡1¡¢Óû§£º
¡¡¡¡¡¡select username from dba_users;
¡¡¡¡¸Ä¿ÚÁî
¡¡¡¡¡¡alter user spgroup identified by spgtest;
¡¡¡¡2¡¢±í¿Õ¼ä£º
¡¡¡¡¡¡select * from dba_data_files;
¡¡¡¡¡¡select * from dba_tablespaces;//±í¿Õ¼ä
¡¡¡¡¡¡select tablespace_name,sum(bytes), sum(blocks)
¡¡¡¡¡¡¡¡from dba_free_space group by tablespace_name;//¿ÕÏбí¿Õ¼ä
¡¡¡¡¡¡select * from dba_data_files
¡¡¡¡¡¡¡¡where tablespace_name='RBS';//±í¿Õ¼ä¶ÔÓ¦µÄÊý¾ÝÎļþ
¡¡¡¡¡¡select * from dba_segments
¡¡¡¡¡¡¡¡where tablespace_name='INDEXS';
¡¡¡¡3¡¢Êý¾Ý¿â¶ÔÏó£º
¡¡¡¡¡¡select * from dba_objects;
¡¡¡¡¡¡CLUSTER¡¢DATABASE LINK¡¢FUNCTION¡¢INDEX¡¢LIBRARY¡¢PACKAGE¡¢PACKAGE BODY¡¢
¡¡¡¡¡¡PROCEDURE¡¢SEQUENCE¡¢SYNONYM¡¢TABLE¡¢TRIGGER¡¢TYPE¡¢UNDEFINED¡¢VIEW¡£
¡¡¡¡4¡¢±í£º
¡¡¡¡¡¡select * from dba_tables;
¡¡¡¡¡¡analyze my_table compute statistics;->dba_tablesºó6ÁÐ
¡¡¡¡¡¡select extent_id,bytes from dba_extents
¡¡¡¡¡¡where segment_name='CUSTOMERS' and segment_type='TABLE'
¡¡¡¡¡¡order by extent_id;//±íʹÓõÄextentµÄÐÅÏ¢¡£segment_type='ROLLBACK'²é¿´»Ø¹ö¶ÎµÄ¿Õ¼ä·ÖÅäÐÅÏ¢
¡¡¡¡¡¡ÁÐÐÅÏ¢£º
¡¡¡¡¡¡¡¡select distinct table_name
¡¡¡¡¡¡¡¡from user_tab_columns
¡¡¡¡¡¡¡¡where column_name='SO_TYPE_ID';
¡¡¡¡5¡¢Ë÷Òý£º¡¡
¡¡¡¡¡¡select * from dba_indexes;//Ë÷Òý£¬°üÀ¨Ö÷¼üË÷Òý
¡¡¡¡¡¡select * from dba_ind_columns;//Ë÷ÒýÁÐ
¡¡¡¡¡¡select i.index_name,i.uniqueness,c.column_name
¡¡¡¡¡¡¡¡from user_indexes i,user_ind_columns c
¡¡¡¡¡¡¡¡¡¡where i.index_name=c.index_name
¡¡¡¡¡¡¡¡¡¡and i.table_name ='ACC_NBR';//Áª½ÓʹÓÃ
¡¡¡¡6¡¢ÐòÁУº
¡¡¡¡¡¡select * from dba_sequences;
¡¡¡¡7¡¢ÊÓͼ£º
¡¡¡¡¡¡select * from dba_views;
¡¡¡¡¡¡select * from all_views;
¡¡¡¡text ¿ÉÓÃÓÚ²éѯÊÓͼÉú³ÉµÄ½Å±¾
¡¡¡¡8¡¢¾Û´Ø£º
¡¡¡¡¡¡select * from dba_clusters;
¡¡¡¡9¡¢¿ìÕÕ£º
¡¡¡¡¡¡select * from dba_snapshots;
¡¡¡¡¿ìÕÕ¡¢·ÖÇøÓ¦´æÔÚÏàÓ¦µÄ±í¿Õ¼ä¡£
¡¡¡¡10¡¢Í¬Òå´Ê£º
¡¡¡¡¡¡select * from dba_synonyms
¡¡¡¡¡¡¡¡where table_owner='SPGROUP';
¡¡¡¡¡¡¡¡//if owner is PUBLIC,then the synonyms


Ïà¹ØÎĵµ£º

ORACLE±¸·Ý²ßÂÔ(ORACLE BACKUP STRATEGY)

ORACLE±¸·Ý²ßÂÔ(ORACLE BACKUP STRATEGY)
2007Äê11ÔÂ02ÈÕ ÐÇÆÚÎå 16:03
¸ÅÒª
1¡¢Á˽âʲôÊDZ¸·Ý
2¡¢Á˽ⱸ·ÝµÄÖØÒªÐÔ
3¡¢Àí½âÊý¾Ý¿âµÄÁ½ÖÖÔËÐз½Ê½
4¡¢Àí½â²»Í¬µÄ±¸·Ý·½Ê½¼°ÆäÇø±ð
5¡¢Á˽âÕýÈ·µÄ±¸·Ý²ßÂÔ¼°ÆäºÃ´¦
  
Ò»¡¢Á˽ⱸ·ÝµÄÖØÒªÐÔ
¿ÉÒÔ˵£¬´Ó¼ÆËã»úϵͳ³öÊÀµÄÄÇÌìÆ𣬾ÍÓÐÁ˱¸·ÝÕâ¸ö¸ÅÄ ......

ORACLEÊý¾Ý¿âÓû§ÓëȨÏÞ¹ÜÀí


ORACLEÊǶàÓû§ÏµÍ³£¬ËüÔÊÐíÐí¶àÓû§¹²Ïíϵͳ×ÊÔ´¡£ÎªÁ˱£Ö¤Êý¾Ý¿âϵͳµÄ°²È«£¬Êý¾Ý¿â¹ÜÀíϵͳÅäÖÃÁËÁ¼ºÃµÄ°²È«»úÖÆ¡£

2. 1 ORACLEÊý¾Ý¿â°²È«²ßÂÔ

½¨Á¢ÏµÍ³¼¶µÄ°²È«±£Ö¤
ϵͳ¼¶ÌØȨÊÇͨ¹ýÊÚÓèÓ ......

ORACLE³£ÓÃÊýÖµº¯Êý¡¢×ª»»º¯Êý¡¢×Ö·û´®º¯Êý½éÉÜ


µ¥Öµº¯ÊýÔÚ²éѯÖзµ»Øµ¥¸öÖµ£¬¿É±»Ó¦Óõ½select£¬where×Ӿ䣬start withÒÔ¼°connect by ×Ó¾äºÍhaving×Ӿ䡣
(Ò»).ÊýÖµÐͺ¯Êý(Number Functions)
    ÊýÖµÐͺ¯ÊýÊäÈëÊý×ÖÐͲÎÊý²¢·µ»ØÊýÖµÐ͵ÄÖµ¡£¶àÊý¸ÃÀຯÊýµÄ·µ»ØÖµÖ§³Ö38λСÊýµã£¬ÖîÈ磺COS, COSH, EXP, LN, LOG,
SIN, SINH, SQRT, TAN, and TANH Ö ......

Oracle Database Tuning ADDM

ADDM (Automatic Database Diagnostic Monitor) implements the Oracle performance method and analyzes statistics to provide automatic diagnosis of major performance problems. Because ADDM can significantly shorten the time required to improve the performance of a system, it is one of the most used perf ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ