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

orale tablespace&datafile oracle±í¿Õ¼ä

ÔÚÇ°ÃæѧϰOracleÊý¾Ý¿â»ù´¡¼Ü¹¹Ê±£¬ÒѾ­Á˽âÁËOracleµÄ´æ´¢½á¹¹£¬Âß¼­ÉÏ£¬OracleµÄÊý¾Ý´æ·ÅÔÚtablespacesÖУ¬ÎïÀíÉÏ´æ·ÅÔÚdatafilesÖС£Ò»¸ötablespaceÖ»ÄÜÊôÓÚÒ»¸öÊý¾Ý¿â(Ò»¸öÊý¾Ý¿â¿É°üÀ¨¶à¸ötablespace)£¬°üÀ¨ÁË1¸ö»ò¶à¸öÊý¾ÝÎļþ¡£Tablespace¿É½øÒ»²½·ÖΪsegments¡¢extentsºÍblocks¡£Ò»¸ödatafileÖ»ÊôÓÚÒ»¸öÊý¾Ý¿âµÄÒ»¸ötablespace¡£
TablespaceµÄ·ÖÀàÓÐ2ÖÖ£¬Ò»ÖÖ·ÖΪSYSTEM tablespaceºÍNon-SYSTEM tablespace¡£
SYSTEM tablespaceÊÇËæÊý¾Ý¿âµÄ´´½¨¶ø´´½¨µÄ£¬°üº¬ÁËÊý¾Ý×ÖµäºÍSYSTEM undo segment£»Non-SYSTEM tablespace°üÀ¨ÁË·ÖÅä¸øÓû§µÄ¿Õ¼ä±ãÓÚÊý¾Ý¿âµÄ¿Õ¼ä¹ÜÀí¡£
ÁíÒ»ÖÖ·ÖΪpermanent¡¢undo¡¢temporaryÈýÖÖtablespace¡£Ò»°ã²»¼ÓÌرð˵Ã÷ʱËù´´½¨µÄpermanent tablespace£¬±£´æÓÀ¾ÃÐÔ¶ÔÏó£»undo tablespaceÓÃÓÚ±£´æundo segmentsÒÔ±ãÓڻعö²Ù×÷£¬¶ø²»ÄÜ°üº¬ÆäËû¶ÔÏó£»temporary tablespaceÊÇÓÃÓÚ½øÐÐÅÅÐò²Ù×÷£¬Äܹ»±»¶à¸öÓû§¹²Ïí£¬²»ÄÜ°üº¬ÓÀ¾ÃÐÔ¶ÔÏó.
Temporary tablespaceÖÐÓÐÒ»¸ödefault temporary tablespace£¬Ö¸¶¨ÁËÒ»¸öÈ«¾ÖµÄĬÈÏÁÙʱ±í¿Õ¼ä£¬Èç¹ûûÓÐÕâ¸ö±í¿Õ¼ä£¬Ä¬ÈÏÇé¿öÏ£¬ÊÇʹÓÃSYSTEM tablespaceÀ´´æ´¢ÁÙʱÊý¾ÝµÄ£¬ÏÔÈ»£¬ÕâÊDz»ºÃµÄ£¬Ä¬ÈÏÁÙʱ±í¿Õ¼äÖ»ÓÐÒ»¸ö£¬¿ÉÒÔ´Ó±ídatabase_propertiesÖв鿴default temp tablespace£¬ÔÚеÄdefault temp tablespace±»´´½¨Ö®Ç°£¬ÊDz»Äܱ»droppedµÄ¡£
ºÍtablespaceÒÔ¼°datafileÏà¹ØµÄÊý¾Ý×ÖµäÓÐ:dba_tablespaces¡¢v$tablespace¡¢dba_data_files¡¢v$datafile¡¢dba_temp_files¡¢v$tempfile¡£
1¡¢´´½¨±í¿Õ¼ä
´´½¨±í¿Õ¼äµÄÍêÕûÃüÁî:
Create [undo] tablespace <ts_name>
datafile <file_spec1> [,<file_spec2>]
mininum extent <m> k|m
blocksize <n> [k]
logging clause
force logging
default storage_clause
online | offline
permanent | temporary
extent_manager_clause
segment_manager_clause
1)¡¢undoÖ¸¶¨ÏµÍ³½«´´½¨Ò»¸ö»Ø¹ö±í¿Õ¼ä
2£©¡¢tablespaceÖ¸¶¨±í¿Õ¼äÃû³Æ
3)¡¢datafileÖ¸¶¨Êý¾ÝÎļþµÄ·¾¶¡¢Ãû³Æ¡¢´óС¼°×ÔÔö³¤×´¿ö£º¾ßÌåÐÎÈç'E:\oracle\product\10.2.0\oradata\orcl\TEST.DBF' size 50M autoextend on next 10M maxsize 500M£¬Ò²¿ÉÒÔÖ¸¶¨onΪoff£¬¾ÍûÓкóÃæµÄµÝÔöºÍ×î´ó³ß´çÁË£¬Ò²¿ÉÒÔÔÚmaxsizeºóÃæÖ¸¶¨×î´ó³ß´çunlimited˵Ã÷±í¿Õ¼äÎÞÏÞ´ó¡£
4)¡¢mininum extent <m> k|mÖ¸³öÔÚ±í¿Õ¼äµÄextentµÄ×îСֵ£¬Õâ¸ö²ÎÊý¿É


Ïà¹ØÎĵµ£º

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 ......

ÍêȫжÔØOracleÊý¾Ý¿â

ʵÏÖ·½·¨£º
1¡¢¿ªÊ¼->ÉèÖÃ->¿ØÖÆÃæ°å->¹ÜÀí¹¤¾ß->·þÎñ
Í£Ö¹ËùÓÐOracle·þÎñ¡£
2¡¢¿ªÊ¼->³ÌÐò->Oracle - OraHome81->Oracle Installation Products->
Universal Installer
жװËùÓÐOracle²úÆ·£¬µ«Universal Installer±¾Éí²»Äܱ»É¾³ý
5¡¢ÔËÐÐregedit£¬Ñ¡ÔñHKEY_LOCAL_MACHINESOFTWAREORACLE£¬°´ ......

oracle ¼ì²é±»ËøµÄ±í¼°½âËø

´¦Àí·½·¨Ò» £º
¼ì²éÄǸö±í±»Ëø
select sess.sid,sess.serial#, lo.oracle_username,lo.os_user_name,ao.object_name,lo.locked_mode
from v$locked_object lo,dba_objects ao,v$session sess
where ao.object_id = lo.object_id
and lo.session_id = sess.sid;
½âËø
alter system kill session '273,45';
´¦Àí·½·¨¶ ......

oracle¼ì²âËø£¬ÊÍ·ÅËø

¼ì²âËø£º
SELECT A.OWNER,
A.OBJECT_NAME,
B.XIDUSN,
B.XIDSLOT,
B.XIDSQN,
B.SESSION_ID,
B.ORACLE_USERNAME,
B.OS_USER_NAME,
B.PROCESS,
B.LOCKED_MODE,
C.MACHINE,
C.STATUS,
C.SERVER,
C.SID,
C.SERIAL#,
C.PROGRAM
from ALL_OBJECTS A,
V$LOCKED_OBJECT B,
SYS.GV_$SESSION C
WHERE ( A.OBJE ......

Oracle´¥·¢Æ÷µÄʹÓÃ

´¥·¢Æ÷ÊÇÖ¸´æ·ÅÔÚÊý¾Ý¿âÖУ¬²¢±»Òþ²ØÖ´ÐеĴ洢¹ý³Ì¡£ÔÚOracle8i֮ǰ£¬Ö»ÔÊÐí»ùÓÚ±í»òÊÓͼµÄDML²Ù×÷(insert,update,delete)½¨Á¢´¥·¢Æ÷£¬ÔÚoracle8iÖ®ºó£¬²»½öÖ§³ÖDML²Ù×÷£¬Ò²ÔÊÐí»ùÓÚϵͳʼþ(Æô¶¯Êý¾Ý¿â£¬¹Ø±ÕÊý¾Ý¿â£¬µÇ¼)ºÍDDL²Ù×÷½¨Á¢´¥·¢Æ÷¡£
Ò»¡¢´¥·¢Æ÷¼ò½é
   ´¥·¢Æ÷ÊÇÖ¸Òþº¬Ö´ÐеĴ洢¹ý³Ì£¬Ëü¿ÉÒÔʹ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ