Oracle 11g SECUREFILES
Oracle Êý¾Ý¿â 11gÃæÏò DBA ºÍ¿ª·¢ÈËÔ±µÄÖØÒªÐÂÌØÐÔ:SecureFiles£º
1¡¢SecureFiles£ºÐ LOB
Á˽âÈçºÎʹÓÃÐÂÒ»´ú LOB£ºSeureFiles¡£SecureFiles ¼¯ÍⲿÎļþºÍÊý¾Ý¿â LOB ·½·¨µÄÓŵãÓÚÒ»Éí£¬¿ÉÒÔ´æ´¢·Ç½á¹¹»¯Êý¾Ý£¬ÔÊÐí¼ÓÃÜ¡¢Ñ¹Ëõ¡¢Öظ´Ïû³ýµÈµÈ¡£
Êý¾Ý¿âפÁô BLOBS »ò OS Îļþ
ÄúÔÚ Oracle Êý¾Ý¿âÖд洢ʲô£¿Í¨³££¬Äú»áÒÔ¹Øϵ¸ñʽ´æ´¢Êý¾ÝÒÔ±ãÓÚÓ³É䵽ijЩ¶¨ÒåģʽµÄÀàÐÍ£¬»òÕßÒÔ¿Í»§ÐÕÃû¡¢ÕÊ»§Óà¶î¡¢×´Ì¬´úÂëµÈ¶¨ÒåµÄÊý¾ÝÀàÐÍ´æ´¢Êý¾Ý¡£µ«ÊÇ£¬ÒԷǽṹ»¯»ò°ë½á¹¹»¯¸ñʽ´æ´¢ÐÅÏ¢µÄÐèÇóÒ²ÈÕÒæÔö¼Ó¡£ÀýÈ磬ÕÕƬ¡¢×Ö´¦ÀíÎĵµ¡¢µç×Ó±í¸ñ¡¢XML ÎļþµÈµÈ¡£ÕâЩÀàÐ͵ÄÊý¾ÝÈçºÎ´æ´¢£¿
ͨ³£ÓÐÁ½ÖÖ·½·¨£ºÕâЩÊý¾Ý×÷Ϊ LOB ×ֶΣ¨BLOB ÓÃÓÚ´æ´¢¶þ½øÖÆÊý¾Ý£¬CLOB ÓÃÓÚ´æ´¢×Ö·ûÊý¾Ý£©´æ´¢ÔÚÊý¾Ý¿âÖУ¬»òÕßͨ¹ýÒýÓô洢ÔÚÊý¾Ý¿âÖеÄÎļþ´æ´¢ÔÚ OS ÎļþÖС£
ÿÖÖ·½·¨¶¼¸÷¾ßÓÅȱµã¡£OS Îļþ¿ÉÒÔÓÉ OS ºÍÈÕÖ¾Îļþϵͳ»º´æÒÔ¼ÓËÙ±ÀÀ£ºóµÄ»Ö¸´¡£ÓÉÓڿɽøÐÐѹËõ£¬Òò´Ë OS ÎļþÕ¼ÓõĿռäͨ³£Ò²±ÈÊý¾Ý¿âÖеÄÊý¾ÝÒªÉÙ¡£
»¹ÓÐһЩ¹¤¾ß¿ÉÒÔÖÇÄܵØʶ±ðÎļþģʽ²¢Ïû³ýÖظ´´Ó¶øÌá¸ß´æ´¢Ð§ÂÊ£»µ«ÊÇ OS ÎļþλÓÚÊý¾Ý¿âÍⲿ£¬Òò´ËÊý¾Ý¿âÊôÐÔ²»ÊÊÓÃÓÚËüÃÇ¡£ÕâЩÎļþ²»½øÐб¸·Ý¡¢Ï¸Á£¶È°²È«ÐÔ²»ÊÊÓÃÓÚËüÃÇ£¬´ËÀàÎļþ²»ÊÇÊÂÎñµÄÒ»²¿·Ö — Òò´Ë Oracle Êý¾Ý¿â¹ÌÓеĶÁÈ¡Ò»ÖÂÐԵȸøÅÄî²»ÊÊÓÃÓÚËüÃÇ¡£
Èç¹ûÄܼ¯Á½ÖÖ·½·¨µÄÓŵãÓÚÒ»Éí»áÔõÑù£¿Oracle Êý¾Ý¿â 11g ÖÐµÄ SecureFiles ΪÄúÌṩÁ˴𰸡£SecureFiles ÊÇÊý¾Ý¿âÖÐÒ»¸öȫеĻù´¡¼Ü¹¹£¬¿ÉÌṩ×î¼ÑµÄÊý¾Ý¿âפÁô LOB ºÍ OS ÎļþÐÔÄÜ¡£ÈÃÎÒÃÇ¿´Ò»¿´ÕâÖÖ·½°¸µÄʵÏÖ·½Ê½¡££¨Ë³±ã˵Ã÷µÄÊÇ£¬´«Í³ LOB ÈÔÈ»ÒÔ BasicFiles ¸ñʽÌṩ¡££©
2¡¢Êµ¼ÊʾÀý
ͨ¹ýÒ»¸ö¼òµ¥µÄʾÀýÀ´½éÉÜ SecureFiles ¸ÅÄî»òÐíÊÇÒ»ÖÖ×î¼Ñ·½Ê½¡£¼ÙÉèÄúÒª¿ª·¢Ò»¸öºÏͬ¹ÜÀíϵͳ£¬ÔÚ¸ÃϵͳÖÐÄúÏ£Íû½«ËùÓкÏͬµÄ¸±±¾¶¼·ÅÔÚÒ»¸ö±íÖС£É¨ÃèµÄÎĵµÍ¨³£ÊÇ PDF Îļþ¶ø·ÇÎı¾¡£Ä³Ð©¿ÉÄÜÊÇ MS Word Îĵµ»òÕßÉõÖÁÊÇɨÃèµÄÕÕƬ¡£ÕâÊÇ BLOB µÄ×î¼ÑʹÓð¸Àý£¬ÒòΪÁбØÐèÄܹ»Ö§³Ö¶þ½øÖÆÊý¾Ý¡£
ͨ³££¬ÔÚ Oracle Êý¾Ý¿â 11g ÍƳö֮ǰ£¬Äú¿ÉÄܻᰴÕÕÒÔÏ·½Ê½¶¨Òå±í£º
create table contracts_basic
(
contract_id number(12),
Ïà¹ØÎĵµ£º
ÒÔÏÂÒÔ½ØͼÐÎʽ¼òÊö¹ØÓÚÔÚIBMСÐÍ»úÉÏ°²×°µ¥»ú°æOracleÊý¾Ý¿âµÄ¹ý³Ì¡£ÒÔ¹©´ó¼Ò²Î¿¼£¬ÒÔ±ã¶ÔÓÚIBMСÐÍ»ú&AIX&Oracle½øÐгõ²½µÄÁ˽⡣ Machine£ºIBM POWER 520 OS&Version£ºAIX_5300-07 Oracle Version:10.2.0.1 ÒÔÏÂÊÇÏêϸ½Øͼ£º 1_OS_Check&Filesets_Check 2_ÀûÓÃsmitty installpÃüÁî½øÈëÈí¼þ£¨°ü£ ......
red hat linux Ï°²×° oracle 10g
racle¿¼×ÊÁÏ:
Oracle¹Ù·½ÍøÕ¾: http://download.oracle.com/docs/html/B10813_01/toc.htm
Ò»¡¢ÒÔrootÓû§µÇ¼, ½øÐÐÈçϲÙ×÷£º
1 ¼ì²éÓ²¼þÒªÇó
* Ö÷Òª°üÀ¨£º
********************************************************************
* ÄÚ´æ: & ......
Temporary TablesÁÙʱ±í
1¼ò½é
ORACLEÊý¾Ý¿â³ýÁË¿ÉÒÔ±£´æÓÀ¾Ã±íÍ⣬»¹¿ÉÒÔ½¨Á¢ÁÙʱ±ítemporary tables¡£ÕâЩÁÙʱ±íÓÃÀ´±£´æÒ»¸ö»á»°SESSIONµÄÊý¾Ý£¬
»òÕß±£´æÔÚÒ»¸öÊÂÎñÖÐÐèÒªµÄÊý¾Ý¡£µ±»á»°Í˳ö»òÕßÓû§Ìá½»commitºÍ»Ø¹örollbackÊÂÎñµÄʱºò£¬ÁÙʱ±íµÄÊý¾Ý×Ô¶¯Çå¿Õ£¬
µ«ÊÇÁÙʱ± ......
ÎÊÌ⣺Çë½ÌHINTд·¨
ÎÒÓÐÒ»¸öSQLÌí¼ÓÈçÏÂhint,Ä¿µÄÊÇÖ¸¶¨hash_join·½Ê½¡£
select /*+ordered use_hash(a,b,c,d) */ *
from a,b,c,d
Where ...
ÆäÖÐ,
aÖ»ÓëbÓйØÁª¹Øϵ£¬bÖ»ÓëcÓйØÁª¹Øϵ£¬bÖ»ÓëcÓйØÁª¹Øϵ,cÖ»ÓëdÓйØÁª¹Øϵ£¬
ÊýÁ¿¼¶£ºa:1000Ìõ, b:100 ÍòÌõ£¬ ......
½¨Á¢ÁÙʱ±í½á¹¹
create global temporary table myemp as select * from emp;
Ð޸ıí½á¹¹
alter table dept modify (Dname char(20));
alter table dept add (headcount number(3));
¸´ÖÆÒ»¸ö±í
create table emp3 as select * from emp;
²ÎÕÕij¸öÒÑ´æÔÚµÄ±í½¨Á¢Ò»¸ö±í½á¹¹£¬²»ÐèÒªÊý¾Ý
create table emp4 as selec ......