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

OracleÁÙʱ±í¿Õ¼ä¹ý´óµÄ½â¾ö°ì·¨

Temporary tablespaceÊÇoracleÀïÁÙʱ±í¿Õ¼ä£¬ÁÙʱ±í¿Õ¼äÖ÷ÒªÓÃ;ÊÇÔÚÊý¾Ý¿â½øÐÐÅÅÐòÔËËã¡¢¹ÜÀíË÷Òý¡¢·ÃÎÊÊÓͼµÈ²Ù×÷ʱÌṩÁÙʱµÄÔËËã¿Õ¼ä£¬µ±ÔËËãÍê³ÉÖ®ºóϵͳ»á×Ô¶¯ÇåÀí¡£µ±oracleÀïÐèÒªÓõ½sortµÄʱºò£¬PGAÖÐsort_area_size´óС²»¹»Ê±£¬½«»á°ÑÊý¾Ý·ÅÈëÁÙʱ±í¿Õ¼äÀï½øÐÐÅÅÐò£¬Í¬Ê±Èç¹ûÓÐÒì³£Çé¿öµÄ»°£¬Ò²»á±»·ÅÈëÁÙʱ±í¿Õ¼ä,Õý³£À´Ëµ£¬ÔÚÍê³ÉSelectÓï¾ä¡¢create indexµÈһЩʹÓÃTEMP±í¿Õ¼äµÄÅÅÐò²Ù×÷ºó£¬OracleÊÇ»á×Ô¶¯ÊͷŵôÁÙʱ¶ÎµÄ¡£µ«ÓÐЩÓкîÎÒÃÇÔò»áÓöµ½ÁÙʱ¶ÎûÓб»ÊÍ·Å£¬TEMP±í¿Õ¼ä¼¸ºõÂúµÄ×´¿ö£¬ÉõÖÁÊÇÎÒÃÇÖØÆôÁËÊý¾Ý¿âÈÔûÓнâ¾öÎÊÌâ¡£
ÅÅÐòÊǺܺÄ×ÊÔ´µÄ£¬Temp±í¿Õ¼äÂúÁË£¬¹Ø¼üÊÇÓÅ»¯ÄãµÄÓï¾ä£¬¾¡Á¿Ê¹ÅÅÐò¼õÉÙ²ÅÊÇÉϲߡ£
Temp±í¿Õ¼äÂúʱµÄ´¦Àí·½·¨£º
¡¡¡¡Ò»¡¢Ð޸IJÎÊý(½öÊÊÓÃÓÚ8i¼°8iÒÔÏ°汾)
¡¡¡¡ÐÞ¸ÄÒ»ÏÂTEMP±í¿Õ¼äµÄstorage²ÎÊý£¬ÈÃSmon½ø³Ì¹Û×¢Ò»ÏÂÁÙʱ¶Î£¬´Ó¶ø´ïµ½ÇåÀíºÍTEMP±í¿Õ¼äµÄÄ¿µÄ¡£
¡¡¡¡SQL>alter tablespace temp increase 1;
¡¡¡¡SQL>alter tablespace temp increase 0;
¡¡¡¡¶þ£ºkill session
¡¡¡¡1¡¢ ʹÓÃÈçÏÂÓï¾äa²é¿´Ò»ÏÂÈÏË­ÔÚÓÃÁÙʱ¶Î
            SELECT se.username, se.SID, se.serial#, se.sql_address, se.machine, se.program, su.TABLESPACE,
                               su.segtype,  su.CONTENTS from v$session se, v$sort_usage su
                                WHERE se.saddr = su.session_addr
¡¡¡¡2¡¢killÕýÔÚʹÓÃÁÙʱ¶ÎµÄ½ø³Ì
¡¡¡¡SQL>Alter system kill session 'sid,serial#';
¡¡¡¡3¡¢°ÑTEMP±í¿Õ¼ä»ØËõÒ»ÏÂ
¡¡¡¡SQL>Alter tablespace TEMP coalesce;
×¢£º
Õâ´¦·½·¨Ö»ÄÜÕë¶Ô×Öµä¹ÜÀí±í¿Õ¼ä(Dictionary Managed Tablespace)¡£ÓÚ±¾µØ¹ÜÀí±í¿Õ¼ä£¨LMT:Local Managed Tablespace£©£¬²»ÐèÒªÕûÀíµÄ¡£9iÒÔºóÖ»ÄÜ´´½¨±¾µØ¹ÜÀíµÄ±í¿Õ¼ä¡£
CREATE TABLESPACE TEST DATAFILE 'D:\TEST01.dbf' SIZE 5M EXTENT MANAGEMENT DICTIONARY
CREATE TABLESPACE TEST DATAFILE 'D:\TEST0


Ïà¹ØÎĵµ£º

OracleϵÁУº¼Ç¼Record

 OracleϵÁУº¼Ç¼£¨Record£©
Ò»£¬Ê²Ã´ÊǼǼ£¨Record£©£¿
 Óɵ¥ÐжàÁеıêÁ¿¹¹³ÉµÄ¸´ºÏ½á¹¹¡£¿ÉÒÔ¿´×öÊÇÒ»ÖÖÓû§×Ô¶¨ÒåÊý¾ÝÀàÐÍ¡£×é³ÉÀàËÆÓÚ¶àάÊý×é¡£
½«Ò»¸ö»ò¶à¸ö±êÁ¿·â×°³ÉÒ»¸ö¶ÔÏó½øÐвÙ×÷¡£ÊÇÒ»ÖÖÁÙʱ¸´ºÏ¶ÔÏóÀàÐÍ¡£
 
 ¼Ç¼¿ÉÒÔÖ±½Ó¸³Öµ¡£RECORD1 :=RECORD2£»
 ¼Ç¼²»¿ÉÒÔÕûÌå±È½Ï. ......

OracleÓû§¹ÜÀí

 Ò»£¬OracleÊý¾Ý¿âÓû§¼ò½é
 ÔÚOracleÊý¾Ý¿âÖÐÈκζÔÏó¶¼ÊôÓÚÒ»¸öÌض¨Óû§£¬»òÕß˵һ¸öÓû§ÓëͬÃûµÄģʽÏà¹ØÁª¡£
 ÒªÁ¬½Óµ½OracleÊý¾Ý¿âÐèÒªÒ»¸öÓû§ÕÊ»§£¬¸ù¾ÝÐèÒªÊÚÓèµÄ²Ù×÷ȨÏÞ¡£
 1£¬Ä¬ÈÏÊý¾Ý¿âÓû§Ä£Ê½£º
  Sys:Êý¾Ý¿â×ֵ䣨´æ´¢±»¹ÜÀí¶ÔÏóËùÓÐÐÅÏ¢£©ºÍÊÓͼ´æ´¢ÔÚ¸ÃģʽÖС£ÏµÍ³¼¶Óû§¡£ ......

Oracle Rman¿çresetlogs°æ±¾»Ö¸´

RMAN> startup nomount;
RMAN> sql 'alter session set nls_date_format=''yyyy-mm-dd hh24:mi:ss''";
--ÒòΪrmanĬÈÏÒÔ»·¾³±äÁ¿À´¶Áȡʱ¼ä¸ñʽ£¬ÓësqlplusµÄ¹Ì¶¨¸ñʽ²»Í¬£¬ËùÒÔ£¬´Ë´¦ÒªÉ趨ʱ¼ä¸ñʽ±äÁ¿¡£
RMAN> restore controlfile from autobackup until time '2009-03-10 18:15:00';
×¢Ò⣬ÈÔÈ»ÐèÒªÊʵ±µ ......

OracleÍⲿ±íСÀý

1)½¨Á¢²Ù×÷ϵͳĿ¼e:\test£¬×¼±¸Êý¾ÝÎļþdept.txt²¢ÖÃÓÚe:\testÖ®ÏÂ
"10","ACCOUNTING","NEW
YORK"
"20","RESEARCH","DALLAS"
"30","SALES","CHICAGO"
"40","OPERATIONS","BOSTON"
2)´´ ......

ÈçºÎÕýȷɾ³ýORACLE¹éµµÈÕÖ¾Îļþ

 ÎÒÃǶ¼¶¼ÖªµÀÔÚcontrolfileÖмǼ×Åÿһ¸öarchivelogµÄÏà¹ØÐÅÏ¢£¬µ±È»ÃÇÔÚOSÏ°ÑÕâЩÎïÀíÎļþdeleteµôºó£¬ÔÚÎÒÃǵÄ
controlfileÖÐÈÔÈ»¼Ç¼×ÅÕâЩarchivelogµÄÐÅÏ¢£¬ÔÚoracleµÄOEM¹ÜÀíÆ÷ÖÐÓпÉÊÓ»¯µÄÈÕÖ¾Õ¹ÏÖ³ö£¬µ±ÎÒÃÇÊÖ¹¤Çå³ýarchiveĿ¼ÏµÄÎļþºó£¬ÕâЩ¼Ç¼²¢Ã»Óб»ÎÒÃÇ´ÓcontrolfileÖÐÇå³ýµô£¬Ò²¾ÍÊÇoracle²¢²» ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ