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

¡¾×ª¡¿Oracle Tablespace´´½¨

 Tablespace
ORACLEÖУ¬±í¿Õ¼äÊÇÊý¾Ý¹ÜÀíµÄ»ù±¾·½·¨£¬ËùÓÐÓû§µÄ¶ÔÏóÒª´æ·ÅÔÚ±í¿Õ¼äÖУ¬Ò²¾ÍÊÇÓû§ÓпռäµÄʹÓÃȨ£¬²ÅÄÜ´´½¨Óû§¶ÔÏó£®·ñÔòÊDz»³äÐí´´½¨¶ÔÏó£¬ÒòΪ¾ÍÊÇÏë´´½¨¶ÔÏó,Èç±í,Ë÷ÒýµÈ£¬Ò²Ã»Óеط½´æ·Å,Oracle»áÌáʾ:ûÓд洢Åä¶î£®
¡¡¡¡Òò´Ë£¬ÔÚ´´½¨¶ÔÏó֮ǰ£¬Ê×ÏÈÒª·ÖÅä´æ´¢¿Õ¼ä£®¡¡¡¡
  ·ÖÅä´æ´¢£¬¾ÍÒª´´½¨±í¿Õ¼ä£º¡¡¡¡
  ´´½¨±í¿Õ¼äʾÀýÈçÏ£º
  CREATE TABLESPACE "SAMPLE"
    LOGGING
    DATAFILE 'D:\ORACLE\ORADATA\ORA92\LUNTAN.ora' SIZE 5M
    EXTENT    MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO 
ÉÏÃæµÄÓï¾ä·ÖÒÔϼ¸²¿·Ö£º
µÚÒ»: CREATE TABLESPACE "SAMPLE" ¡¡´´½¨Ò»¸öÃûΪ "SAMPLE" µÄ±í¿Õ¼ä.    ¶Ô±í¿Õ¼äµÄÃüÃû,×ñÊØOracle µÄÃüÃû¹æ·¶¾Í¿ÉÁË.   ORACLE¿ÉÒÔ´´½¨µÄ±í¿Õ¼äÓÐÈýÖÖÀàÐÍ:(1)TEMPORARY: ÁÙʱ±í¿Õ¼ä,ÓÃÓÚÁÙʱÊý¾ÝµÄ´æ·Å;´´½¨ÁÙʱ±í¿Õ¼äµÄÓï·¨ÈçÏÂ:CREATE TEMPORARY TABLESPACE "SAMPLE"......   (2)UNDO : »¹Ô­±í¿Õ¼ä. ÓÃÓÚ´æÈëÖØ×öÈÕÖ¾Îļþ. ´´½¨»¹Ô­±í¿Õ¼äµÄÓï·¨ÈçÏÂ:CREATE UNDO TABLESPACE "SAMPLE"......(3)Óû§±í¿Õ¼ä: ×îÖØÒª,Ò²ÊÇÓÃÓÚ´æ·ÅÓû§Êý¾Ý±í¿Õ¼ä    ¿ÉÒÔÖ±½Óд³É: CREATE TABLESPACE "SAMPLE"TEMPORARY ºÍ UNDO ±í¿Õ¼äÊÇORACLE ¹ÜÀíµÄÌØÊâµÄ±í¿Õ¼ä.Ö»ÓÃÓÚ´æ·ÅϵͳÏà¹ØÊý¾Ý.µÚ¶þ:   LOGGING
ÓÐ NOLOGGING ºÍ LOGGING Á½¸öÑ¡Ïî,      NOLOGGING: ´´½¨±í¿Õ¼äʱ,²»´´½¨ÖØ×öÈÕÖ¾.     LOGGING ºÍNOLOGGINGÕýºÃÏà·´, ¾ÍÊÇÔÚ´´½¨±í¿Õ¼äʱÉú³ÉÖØ×öÈÕÖ¾.ÓÃNOLOGGINGʱ,ºÃ´¦ÔÚÓÚ´´½¨Ê±²»ÓÃÉú³ÉÈÕÖ¾,ÕâÑù±í¿Õ¼äµÄ´´½¨½Ï¿ì,µ«ÊÇûÄÜÈÕÖ¾,Êý¾Ý¶ªÊ§ºó,²»Äָܻ´,µ«ÊÇÒ»°ãÎÒÃÇÔÚ´´½¨±í¿Õ¼äʱ,ÊÇûÓÐÊý¾ÝµÄ,°´Í¨³£µÄ×ö·¨,Êǽ¨Íê±í¿Õ¼ä,²¢µ¼ÈëÊý¾Ýºó,ÊÇÒª¶ÔÊý¾Ý×ö±¸·ÝµÄ,ËùÒÔͨ³£²»ÐèÒª±í¿Õ¼äµÄ´´½¨ÈÕÖ¾,Òò´Ë,ÔÚ´´½¨±í¿Õ¼äʱ,Ñ¡Ôñ NOLOGGING,ÒÔ¼Ó¿ì±í¿Õ¼äµÄ´´½¨ËÙ¶È.
µÚÈý: DATAFILE ÓÃÓÚÖ¸¶¨Êý¾ÝÎļþµÄ¾ßÌåλÖúʹóС.Èç: DATAFILE 'D:\ORACLE\ORADATA\ORA92\LUNTAN.ora' SIZE 5M ˵Ã÷ÎļþµÄ´æ·ÅλÖÃÊÇ 'D:\ORACLE\ORADATA\ORA92\LUNTAN.ora' , ÎļþµÄ´óСΪ5M.Èç¹ûÓжà¸öÎļþ,¿ÉÒÔÓöººÅ¸ô¿ª:DATAFILE 'D:\ORACLE\ORADATA\ORA92\LUNTAN.ora' SIZE 5M,
  &nbs


Ïà¹ØÎĵµ£º

OracleÖÐNVL2 ºÍNULLIFµÄÓ÷¨

NULLÖ¸µÄÊÇ¿ÕÖµ£¬»òÕß·Ç·¨Öµ¡£
NVL (expr1, expr2)->expr1ΪNULL£¬·µ»Øexpr2£»²»ÎªNULL£¬·µ»Øexpr1¡£×¢ÒâÁ½ÕßµÄÀàÐÍÒªÒ»ÖÂ
NVL2 (expr1, expr2, expr3) ->expr1²»ÎªNULL£¬·µ»Øexpr2£»ÎªNULL£¬·µ»Øexpr3¡£expr2ºÍexpr3ÀàÐͲ»Í¬µÄ»°£¬expr3»áת»»Îªexpr2µÄÀàÐÍ
NULLIF (expr1, expr2) ->ÏàµÈ·µ»ØNULL£¬²»µÈ·µ»Øex ......

Oracle Óï¾ä¼¶´¥·¢Æ÷

Ïȹ¹ÔìÒ»¸ö±í:
create table emp2(
id number(2),
name varchar(10),
currdate date,
action varchar2(1)
)
´´½¨´¥·¢Æ÷£º
create or replace trigger d_i_u_emp2
after insert or update or delete on mysort
begin
if inserting then
insert into emp2 values (12,'dog',sysdate,'i');
elsif deleting then ......

Oracle °ó¶¨±äÁ¿


oracle ÖУ¬¶ÔÓÚÒ»¸öÌá½»µÄsqlÓï¾ä,´æÔÚÁ½ÖÖ¿ÉÑ¡µÄ½âÎö¹ý³Ì, Ò»ÖÖ½Ð×öÓ²½âÎö,Ò»ÖÖ½Ð×öÈí½âÎö.
Ò»¸öÓ²½âÎöÐèÒª¾­½âÎö,Öƶ¨Ö´Ðз¾¶,ÓÅ»¯·ÃÎʼƻ®µÈÐí¶àµÄ²½Öè.Ó²½âÊͲ»½ö½öºÄ·Ñ´óÁ¿µÄcpu£¬¸üÖØÒªµÄÊÇ»áÕ¼¾ÝÖØÒªµÄÃÇãÅ£¨latch£©×ÊÔ´£¬ÑÏÖصÄÓ°ÏìϵͳµÄ¹æÄ£µÄÀ©´ó£¨¼´ÏÞÖÆÁËϵͳµÄ²¢·¢ÐУ©£¬ ¶øÇÒÒýÆðµÄÎÊÌâ ......

½éÉÜORACLE DATA GUARD

¡¾IT168¼¼ÊõÎĵµ¡¿
     DATA GUARDµÄ×îÖ÷ÒªµÄ¹¦ÄÜÊÇÈßÔÖ¡£µ±È»¸ù¾ÝÅäÖõIJ»Í¬£¬DATA GUARD»¹¿ÉÒԾ߱¸ÒÔÏÂÌص㣺¸ß¿ÉÓá¢ÐÔÄÜÌáÉý¡¢Êý¾Ý±£»¤ÒÔ¼°¹ÊÕϻָ´µÈ¡£
    DATA GUARD¿ÉÒÔ·ÖΪÎïÀíSTANDBYºÍÂß¼­STANDBYÁ½ÖÖ¡£¶þÕßµÄ×î´ó²î±ðÔÚÓÚ£¬ÎïÀíSTANDBYÓ¦ÓõÄÊÇÖ÷¿âµÄ¹éµµÈÕÖ¾£¬¶ø ......

OracleϵÁУºÍ¼Æ¬µÄ´æ´¢

 OracleϵÁУºÍ¼Æ¬µÄ´æ´¢
Ò»£ºÊ²Ã´ÊÇ´ó¶ÔÏ󣬴ó¶ÔÏó»ù±¾²Ù×÷£¿
 ²Î¼ûÎÒµÄBLOG£ºOracleϵÁУºLOB´ó¶ÔÏó´¦Àí
 http://blog.csdn.net/qfs_v/archive/2008/05/21/2464599.aspx
 
¶þ£¬Í¼Æ¬µÄ´æ´¢»ò¶þ½øÖÆÎļþµÄ´æ´¢
 1£¬ÏȲåÈëÆÕͨÊý¾Ý£¬Óöµ½´ó¶ÔÏóÁÐʹÓÃempty_blob()¹¹Ôì¿ÕµÄÖ¸Õë¡£
  Àý× ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ