Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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Êý¾Ý¿âµ¼Èëµ¼³ö

¸ù¾ÝÓû§µ¼³öÓï¾ä£º
1.Êý¾Ý¿âµ¼³ö
exp system/jade@JADE_166.111.134.26 file=d:\jade.dmp statistics=none
˵Ã÷£º
systeÊÇÓû§Ãû
jadeÊÇÃÜÂë
JADE_166.111.134.26ÊÇSID±êʾ
file=d:\jade.dmp Êǵ¼³öÎļþµÄ·¾¶¼°ÎļþÃû
2.Êý¾Ý¿âµ¼Èë
imp system/jade@JADE_166.111.134.26  file=d:\jade.dmp fromuser=syst ......

oracleÊÂÎñ´¦Àí

1.»ØÍËÊÂÎñ
×îºÃÉèÖÃÒ»¸ö±£´æµã£¬Àýsavepoint a,»òÕßÖ´ÐÐ exec dbms_transaction.savepoint('a')(Ö´ÐÐǰÐèÒªÖ´ÐÐset serveroutput onÓï¾ä)£»È¡Ïû²¿·ÖÊÂÎñ¾Í¿ÉÒÔʹÓÃrollback to a,»òÕßÖ´ÐÐexec dbms_transaction.rollback_savepoint('a');È¡ÏûÈ«²¿ÊÂÎñ¿ÉÒÔÖ´ÐÐrollback,»òÕßexec dbms_transaction.rollback;
2.Ö»¶ÁÊÂÎñ
......

oracle²¹¶¡ÏÂÔØµØÖ·

oracle²¹¶¡ÏÂÔØµØÖ·
DB   2009-10-28 18:00   ÔĶÁ56   ÆÀÂÛ0  
×ֺţº ´ó´ó  ÖÐÖР СС
Oracle 11g 11.1.0.7
ftp://updates.oracle.com/6890831/p6890831_111070_AIX5L_1of2.zip
ftp://updates.oracle.com/6890831/p6890831_111070_AIX5L_2of2.zip
ftp://upda ......

²é¿´¡¢ÐÞ¸Äoracle×Ö·û¼¯£¬²é¿´oracle°æ±¾

1¡¢²é¿´Êý¾Ý¿â×Ö·û¼¯
Êý¾Ý¿â·þÎñÆ÷×Ö·û¼¯select * from nls_database_parameters£¬ÆäÀ´Ô´ÓÚprops$£¬ÊDZíʾÊý¾Ý¿âµÄ×Ö·û¼¯¡£
¡¡¡¡
¡¡¡¡¿Í»§¶Ë×Ö·û¼¯»·¾³select * from nls_instance_parameters,ÆäÀ´Ô´ÓÚv$parameter£¬
¡¡¡¡
¡¡¡¡±íʾ¿Í»§¶ËµÄ×Ö·û¼¯µÄÉèÖ㬿ÉÄÜÊDzÎÊýÎļþ£¬»·¾³±äÁ¿»òÕßÊÇ×¢²á±í
¡¡¡¡
¡¡¡¡»á»°×Ö·û¼¯» ......

oracleÖÐsqlÓï¾äÖеÄinµÄÌõ¼þÊýÁ¿´óÓÚ1000ÓÐÎÊÌâ

oracleÖÐsqlÓï¾äÖÐselect * from t_Test t where  t.Id in(1,2,3......)/*ÊýÁ¿²»ÄÜ´óÓÚ1000¸ö*/
½â¾ö·½·¨ ·Ö¸î³É¶à´Îin È»ºóÔÙ»òÉÏ  Èç select * from t_Test t where  t.Id in(1,2,3......800) or  t.Id in(801,802,803......1300)
ÔÚʹÓÃÖÐ×îºÃÄܲ»Ê¹ÓÃÆäËûÌõ¼þÀ´´úÌæin
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ