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

Oracle¼ì²é¶ÔÏó[µÚ°ËÕ±ʼÇ]

 
Oracle ¼ì²é¶ÔÏó
8.3. Oracle¶ÔÏóµÄ״̬
¹²·ÖÁù¸ö²¿·Ö£¬·Ö±ðΪ£º¼ì²éOracle¿ØÖÆÎļþ״̬£»¼ì²éOracleÔÚÏßÈÕ־״̬£»¼ì²éOracle±í¿Õ¼äµÄ״̬£»¼ì²éOracleËùÓÐÊý¾ÝÎļþ״̬£»¼ì²éOracleËùÓÐ±í¡¢Ë÷Òý¡¢´æ´¢¹ý³Ì¡¢´¥·¢Æ÷¡¢°üµÈ¶ÔÏóµÄ״̬£»¼ì²éOracleËùÓлعö¶ÎµÄ״̬¡£
8.3.1. Oracle¿ØÖÆÎļþ״̬
¼ì²é¿ØÖÆÎļþ״̬ÊÇ·ñÕý³£¡£
$sqlplus system/manager
sql>select * from v$controlfile;
Êä³ö½á¹ûÓ¦¸ÃÓÐ3ÌõÒÔÉÏ£¨°üº¬3Ìõ£©µÄ¼Ç¼£¬“STATUS”Ó¦¸ÃΪ¿Õ¡£×´Ì¬Îª¿Õ±íʾ¿ØÖÆÎļþ״̬Õý³£¡£
8.3.2. OracleÔÚÏßÈÕ־״̬
¼ì²éÔÚÏßÈÕ־״̬ÊÇ·ñÕý³£¡£
$sqlplus system/manager
sql>select * from v$logfile;
Êä³ö½á¹ûÓ¦¸ÃÓÐ3ÌõÒÔÉÏ£¨°üº¬3Ìõ£©¼Ç¼£¬“STATUS”Ó¦¸ÃΪ·Ç“INVALID”£¬·Ç“DELETED”¡£
×¢£º“STATUS”ÏÔʾΪ¿Õ±íʾÕý³£¡£
8.3.3. Oracle±í¿Õ¼ä״̬
¼ì²éÓ¦ÓÃÏà¹Ø±í¿Õ¼ä״̬ÊÇ·ñΪ“ONLINE”¡£
$sqlplus system/manager
sql>select tablespace_name,status from dba_tablespaces;
ÆäÖГSTATUS”Ó¦¸Ã¶¼Îª“ONLINE”£¬¼Ó´ÖÊä³öÏÔʾµÄ²¿·ÖΪÎÒÃÇÓ¦ÓÃÏà¹ØµÄ±í¿Õ¼ä¡£
8.3.4. OracleËùÓÐÊý¾ÝÎļþ״̬
¼ì²éÊý¾ÝÎļþ״̬ÊÇ·ñΪ“ONLINE”¡£
$sqlplus system/manager
col NAME form a50
col STATUS form a10
sql>select name,status from v$datafile;
Êä³ö½á¹ûÖГSTATUS”Ó¦¸Ã¶¼Îª“ONLINE”¡£
8.3.5. OracleËùÓÐ±í¡¢Ë÷Òý¡¢´æ´¢¹ý³Ì¡¢´¥·¢Æ÷¡¢°üµÈ¶ÔÏóµÄ״̬
¼ì²éϵͳÊÇ·ñ´æÔÚÎÞЧ¶ÔÏó£¬ÎÞЧ¶ÔÏóÊÇ·ñÓëÓ¦ÓÃÏà¹Ø¡£
$sqlplus system/manager
sql>select owner,object_name,object_type
from dba_objects where status!=’VALID’ and owner!=’SYS’ and owner!=’SYSTEM’;
Èç¹ûÓмǼ·µ»Ø£¬Ôò˵Ã÷´æÔÚÎÞЧµÄ¶ÔÏó¡£ÈôÕâЩ¶ÔÏóÓëÎÒÃÇÓ¦ÓÃÏà¹Ø£¬ÄÇôÐèÒªÖØÐÂÉú³ÉÕâ¸ö¶ÔÏó¡£
8.3.6. OracleËùÓлعö¶ÎµÄ״̬
¼ì²é»Ø¹ö¶Î״̬ÊÇ·ñÕý³£¡£
$sqlplus system/manager
sql>select segment_name,status from dba_rollback_segs;
Ó¦¸ÃÓÐÈô¸ÉÌõ¼Ç¼·µ»Ø£¬²¢ÇÒÊä³ö½á¹ûÖÐËùÓлعö¶ÎµÄ“STATUS”Ó¦¸ÃΪ“ONLINE”¡£
8.4. OracleÏà¹Ø×ÊÔ´µÄʹÓÃÇé¿ö
¹²·ÖÎå¸ö²¿·Ö£¬·Ö±ðΪ£º¼ì²éOracle³õʼ»¯ÎļþÖÐÏà¹ØµÄ²ÎÊýÖµ£¬¼ì²éOracle¸÷¸ö±í¿Õ¼äµÄÔö³


Ïà¹ØÎĵµ£º

oracle³£Óñí

 dba_users Êý¾Ý¿âÓû§ÐÅÏ¢
dba_segments ±í¶ÎÐÅÏ¢
dba_extents Êý¾ÝÇøÐÅÏ¢
dba_objects Êý¾Ý¿â¶ÔÏóÐÅÏ¢
dba_tablespaces Êý¾Ý¿â±í¿Õ¼äÐÅÏ¢
dba_data_files Êý¾ÝÎļþÉèÖÃÐÅÏ¢
dba_temp_files ÁÙʱÊý¾ÝÎļþÐÅÏ¢
dba_rollback_segs »Ø¹ö¶ÎÐÅÏ¢
dba_ts_quotas Óû§±í¿Õ¼äÅä¶îÐÅÏ¢
dba_free_space Êý¾Ý¿â¿ÕÏпռä ......

oracle³£ÓÃÊÓͼ

 v$database Êý¾Ý¿âÐÅÏ¢
v$datafile Êý¾ÝÎļþÐÅÏ¢
v$controlfile ¿ØÖÆÎļþÐÅÏ¢
v$logfile ÖØ×öÈÕÖ¾ÐÅÏ¢
v$instance Êý¾Ý¿âʵÀýÐÅÏ¢
v$log ÈÕÖ¾×éÐÅÏ¢
v$loghist ÈÕÖ¾ÀúÊ·ÐÅÏ¢
v$sga Êý¾Ý¿âSGAÐÅÏ¢
v$parameter ³õʼ»¯²ÎÊýÐÅÏ¢
v$process Êý¾Ý¿â·þÎñÆ÷½ø³ÌÐÅÏ¢
v$bgprocess Êý¾Ý¿âºǫ́½ø³ÌÐÅÏ¢
v$controlfil ......

OracleÊý¾Ý¿âÖÐË÷ÒýµÄά»¤

±¾ÎÄÖ»ÌÖÂÛOracleÖÐ×î³£¼ûµÄË÷Òý£¬¼´ÊÇB-treeË÷Òý¡£±¾ÎÄÖÐÉæ¼°µÄÊý¾Ý¿â°æ±¾ÊÇOracle8i¡£
¡¡¡¡Ò». ²é¿´ÏµÍ³±íÖеÄÓû§Ë÷Òý
¡¡¡¡ÔÚOracleÖУ¬SYSTEM±íÊÇ°²×°Êý¾Ý¿âʱ×Ô¶¯½¨Á¢µÄ£¬Ëü°üº¬Êý¾Ý¿âµÄÈ«²¿Êý¾Ý×ֵ䣬´æ´¢¹ý³Ì¡¢°ü¡¢º¯ÊýºÍ´¥·¢Æ÷µÄ¶¨ÒåÒÔ¼°ÏµÍ³»Ø¹ö¶Î¡£
¡¡¡¡Ò»°ãÀ´Ëµ£¬Ó¦¸Ã¾¡Á¿±ÜÃâÔÚSYSTEM±íÖд洢·ÇSYSTEMÓû§µÄ ......

Oracle Êý¾Ý¿âµÄ¸÷ÀàÃû³Æ¸ÅÄî

Êý¾Ý¿âÃû¡¢ÊµÀýÃû¡¢Êý¾Ý¿âÓòÃû¡¢È«¾ÖÊý¾Ý¿âÃû¡¢·þÎñÃû£¬
ÕâÊǼ¸¸öÁîºÜ¶à³õѧÕßÈÝÒ×»ìÏýµÄ¸ÅÄî¡£ÏàÐźܶà³õѧÕ߶¼ÓëÎÒÒ»Ñù±»±êÌâÉÏÕâЩ¸ö¸ÅÄî¸ãµÃһͷÎíË®¡£ÎÒÃÇÏÖÔÚ¾ÍÀ´°ÑËüÃÇŪ¸öÃ÷°×¡£
Ò»¡¢Êý¾Ý¿âÃû
ʲôÊÇÊý¾Ý¿âÃû£¿
Êý¾Ý¿âÃû¾ÍÊÇÒ»¸öÊý¾Ý¿âµÄ±êʶ£¬¾ÍÏñÈ˵ÄÉí·ÝÖ¤ºÅÒ»Ñù¡£ËûÓòÎÊýDB_NAME±íʾ£¬Èç¹ûһ̨»úÆ÷ÉÏ×°ÁË ......

oracle 10g pl/sql ѧϰ

Ñ¡Ôñ10gÊÇÒòΪ¶ÔÍø¸ñ¼¼Êõ±È½ÏºÃÆ棬ºÃÏñ»¹Ã»µÃµ½¹ã·ºÓ¦Óã¬Ò²¾ÍÎÞËùνÓëÇ°Ãæ°æ±¾ÓкܴóÇø±ðÁË¡£
ÔÚѸÀ×ÉÏÏÂÁ˸öÈí¼þ£¬ÔËÐÐsqlplusw£¬È»ºóÕÕ×ÅÊ飬¿ñÇÃÁËÒ»·­£¬ÓÐÔÚÍøÉÏÏÂÁ˸öÊÓƵ½Ì³Ì£¨MLDNħÀֿƼ¼_Oracle¿ÎÌã©£¬½²µÃͦºÃµÄ£¬¾ÍÊÇʱ¼ä³¤Á˵㣬²»Èç¿´ÊéÀ´µÃ¿ì¡£·´ÕýÏÖÔÚÖ»ÊÇÏëÊìϤһÏ»ù±¾Óï¾ä¡£
¿´ÁËÁ½ÌìÊéÁË¡£Á˽âÁËÒ» ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ