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

ORACLEѧϰ±Ê¼Ç ORACLE£¨»ù±¾ÃüÁ ORACLEµÚÒ»Õ£º


--
²é¿´VGAÐÅÏ¢£º
 show sga;
 
select
 
*
 
from
 v$sgastat;
--
¿ÉÒÔͨ¹ýÒÔϼ¸¸ö¶¯Ì¬ÐÔÄÜÊÓͼ²é¿´ÐÅÏ¢£º
 V$sysstat                ÏµÍ³Í³¼ÆÐÅÏ¢
 V$sesstat                Óû§»á»°Í³¼ÆÐÅÏ¢ 
 V$pgastat               ÏÔʾÄÚ´æÊ¹ÓÃͳ¼ÆÐÅÏ¢
 V$sql_workarea          SQLÓαêËùÓù¤×÷ÇøµÄÐÅÏ¢
 V$ sql_workarea_active    µ±Ç°ÏµÍ³¹¤×÷ÇøµÄÐÅÏ¢
data_file:dba_data_files;
control_file:´Óinit.oraÀïÃæ¿ÉÒÔ¿´µ½£¬D:ora92adminora92pfileinit.ora.
redo_log:v$logfile;
ʵ¼ÊÉÏD:ora92oradataora92ÀïÃæ·ÅןܶණÎ÷¡£
select
 
*
 
from
 v$
database
;ÀïÃæ¿ÉÒÔ²éѯarchivelogµÄÐÅÏ¢¡£
¶Î£ºdba_segments
Çø£ºdba_extents
--
ÔÚV$process¶¯Ì¬ÐÔÄÜÊÓͼÖпÉÒÔ²éѯµ½Ã¿¸öOracle½ø³ÌµÄPGA·ÖÅäµÄÄÚ´æºÍÒÑʹÓõÄÄÚ´æÇé¿ö£¬
--
ÆäÖÐPGA_used_mem±íʾÒÑʹÓõģ¬pag_alloc_mem±íʾÒÑ·ÖÅäµÄ£¬pga_max_men±íʾPGAµÄ×î´óÖµ¡£
 SQL
>
 
select
 pid,pga_used_mem,pga_alloc_mem,pga_max_mem 
from
 v$process;
--
²é¿´ºǫ́½ø³Ì£º
SELECT
 
*
 
from
 v$bgprocess 
WHERE
 paddr 
<>
 
'
00
'
;
--
²é¿´ËùÓеıí¿Õ¼ä£»
 SQL
>
 
select
 tablespace_name 
from
 dba_data_files  
order
 
by
 tablespace_name;
--
²é¿´±í¿Õ¼äµÄÃû×Ö¼°´óС:
 SQL
>
 
select
 t.tablespace_name, 
round
(
sum
(bytes
/
(
1024
*
1024
)),
0
) ts_size    
 
from
 dba_tablespaces t, dba_data_files d    
where
 t.tablespace_name 
=
 d.tablespace_name   
 
group
 
by
 t.


Ïà¹ØÎĵµ£º

Oracle±í¿Õ¼ä¹ÜÀí

extent--×îС¿Õ¼ä·ÖÅ䵥λ --tablespace management
block --×îСi/oµ¥Î»      --segment    management
create tablespace james
datafile '/export/home/oracle/oradata/james.dbf'
size 100M ¡¡¡¡¡¡¡¡¡¡¡¡--³õʼµÄÎļþ´óС¡¡
autoextend On¡¡¡¡¡¡¡¡ --×Ô¶¯Ôö³¤
next 10M¡ ......

OracleÁ½±í(¶à±í)¹ØÁªupdateµÄд·¨

update customers a
   set    city_name=(select b.city_name from tmp_cust_city b where b.customer_id=a.customer_id)
   where  exists (select 1
                  from  ......

OracleµÄÔÚÏßÖØ¶¨Òå

Basic Steps for Manual Online Reorganization Commands and procedures used:
1.DBMS_REDEFINITION.CAN_REDEF_TABLE
2.CREATE TABLE …
3.DBMS_REDEFINITION.START_REDEF_TABLE
4.DBMS_REDEFINITION.COPY_TABLE_DEPENDENTS and DBMS_REDEFINITION.CONS_ORIG_PAGRAMS
SELECT object_name,base_table_name, ......

ORACLEµÄ¼¸ÖÖÆô¶¯·½Ê½


[¾«»ª] ORACLEµÄ¼¸ÖÖÆô¶¯·½Ê½
http://www.chinaunix.net ×÷Õß:wuwenlong  ·¢±íÓÚ£º2003-07-27 16:58:57
¡¾·¢±íÆÀÂÛ¡¿ ¡¾²é¿´Ô­ÎÄ¡¿ ¡¾OracleÌÖÂÛÇø¡¿¡¾¹Ø±Õ¡¿
1¡¢startup nomount 
   ·Ç°²×°Æô¶¯£¬ÕâÖÖ·½Ê½Æô¶¯Ï¿ÉÖ´ÐУºÖؽ¨¿ØÖÆÎļþ¡¢Öؽ¨Êý¾Ý¿â 
   ¶ÁÈ¡ ......

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


ORACLEÊǶàÓû§ÏµÍ³£¬ËüÔÊÐíÐí¶àÓû§¹²Ïíϵͳ×ÊÔ´¡£ÎªÁ˱£Ö¤Êý¾Ý¿âϵͳµÄ°²È«£¬Êý¾Ý¿â¹ÜÀíϵͳÅäÖÃÁËÁ¼ºÃµÄ°²È«»úÖÆ¡£

2. 1 ORACLEÊý¾Ý¿â°²È«²ßÂÔ

½¨Á¢ÏµÍ³¼¶µÄ°²È«±£Ö¤
ϵͳ¼¶ÌØÈ¨ÊÇͨ¹ýÊÚÓèÓ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ