oracle lob ¼òµ¥½éÉÜ
ºÎΪLOB£¿
lobΪoracleÊý¾Ý¿âµÄÒ»¸ö´ó¶ÔÏóÊý¾ÝÀàÐÍ,¿ÉÒÔ´æ´¢³¬¹ý4000bytesµÄ×Ö·û´®£¬¶þ½øÖÆÊý¾Ý£¬OSÎļþµÈ´ó¶ÔÏóÐÅÏ¢.×î´ó¿É´æ´¢µÄÈÝÁ¿¸ùoracleµÄ°æ±¾ºÍoracle ¿é´óСÓйØ.
ÓÐÄǼ¸Öֿɹ©Ñ¡ÔñµÄLOBÀàÐÍ?
Ä¿Ç°ORACLEÌṩÁËCLOB£¬NCLOB£¬BLOB£¬BFILE¹²ËÄÖÖLOBÀàÐÍ,CLOB,NLOBΪ´ó×Ö·û´®ÀàÐÍ,NLOBΪ¶àÓïÑÔ¼¯×Ö·ûÀàÐÍ,ÀàËÆÓÚNVARCHARÀàÐÍ,ÓÃËûÃÇ´úÌæÒÔÇ°µÄLONGÀàÐÍ;BLOGΪ´ó¶þ½øÖÆÀàÐÍ,ÓÃÀ´´úÌæÒÔÇ°µÄLONG RAWÀàÐÍ;BFILE¿É´æ´¢²Ù×÷ϵͳÖеĸ÷ÖÖÎļþ.
ºÎΪInternal LOBs ¡¢External LOBs£¿
Internal LOBsÖ¸µÄÊÇLOBÊý¾Ý´æ´¢ÔÚoracleµÄtablespaceÖÐ,CLOB£¬NCLOB£¬BLOG¶¼ÊÇInternal LOBs; ¶øExternal LOBsÖ¸µÄÊÇLOBÊý¾Ý´æ´¢ÔÚÊý¾Ý¿âÍⲿµÄ²Ù×÷ϵͳÎļþÖÐ,BFIELÊÇΨһµÄExternal LOBs.BFILEÌṩÁËÈÃÎÒÃÇ¿ÉÒÔÔÚSQLÖзÃÎÊÍⲿÎļþµÄ·½·¨.
LOBµ½µ×ÄÜ´æ¶à´óµÄÊý¾ÝÄØ?
À´×ÔÓÚ10G Oracle Database reference
BFILE £ºMaximum size: 4 GB Maximum size of a file name: 255 characters Maximum size of a directory name: 30
characters Maximum number of open BFILEs: The maximum number of BFILEs is limited by the value of the
SESSION_MAX_OPEN_FILES initialization parameter, which is itself limited by the maximum number of open
files the operating system will allow.
BLOB£º Maximum size: (4 GB - 1) * DB_BLOCK_SIZE initialization parameter (8 TB to 128 TB) The number of LOB columns
per table is limited only by the maximum number of columns per table (that is,10001).
CLOB£º Maximum size: (4 GB - 1) * DB_BLOCK_SIZE initialization parameter (8 TB to 128 TB) The number of LOB columns
per table is limited onlyby the maximum number of columns per table (that is,10001).
NCLOB £ºMaximum size: (4 GB - 1) * DB_BLOCK_SIZE initialization parameter (8 TB to 128 TB) The number of LOB columns
per table is limited only by the maximum number of columns per table (that is,10001).
LOB¿ÉÒÔÓÃÔÚʲôµØ·½?
LOB³ýÁË¿ÉÒÔÓÃÔÚTABLEÖж¨ÒåÁеÄÀàÐÍÍâ,»¹¿ÉÒÔÓÃÀ´´æ´¢XMLÊý¾Ý,ORACLEµÄ¼¯ºÏÀàÐÍ,¿´ÏÂÃæµÄÀý×Ó:
1) create table lobtest(a varchar2(20), b clob, c blob) tablespace users; –lob±íµÄ¶¨Òå
2) LOB´æ´¢¼¯ºÏÀàÐÍ
create ta
Ïà¹ØÎĵµ£º
Ò»:½¨Á¢Óû§,Óû§×é:
groupadd dba
groupadd oinstall
useradd oracle -g oinstall -G dba
passwd oracle
¶þ:ÐÞ¸Ä˵Ã÷,¸ÄΪas4
vi /etc/redhat-release
Ð޸ĺóµÄÄÚÈÝ:
Red Hat Enterprise Linux AS release 4 (Nahant Update 4)
#Red Hat Enterprise Linux Server release 5.4 (Tikanga)
Èý:¸Ähost(²»±Ø,ÍøÉÏ˵ ......
Ò»
¡¢執ÐÐ ORACLE_HOME/rdbms/admin/dbmslock.sql À´´´½¨ dbms_lock;
-ÔÚDBAÉí·ÖÏÂgrant execute on dbms_lock to USERNAME;
-執ÐÐ測試´ú碼
begin
dbms_output.put_line(to_char(sysdate,'yyyymmddhh24miss'));
dbms_lock.sleep(60);
dbms_output.put_line(to_char(sysdate,'yyyymmdd ......
½¨DBLINK:
ʹÓÃpl/sql developer½¨£ºÕÒµ½Database Links,ÓÒ¼üн¨
Ãû³Æ£ºdblinkÃû Á¬½Óµ½Óû§Ãû£ºÄ¿±êÊý¾Ý¿âµÇ¼Ãû ÃÜÂ룺Ŀ±êÊý¾Ý¿âÃÜÂë
  ......
select * from user_recyclebin where original_name like 'FINANCE_%' order by droptime desc;
FLASHBACK TABLE FINANCE_CASE_FEE_ITEM TO BEFORE DROP
¼´ËùÓÐdropµÄ±í¶¼ÔÚ user_recyclebin Õâ¸öoracle»ØÊÕÕ¾ÀïÃæµÄ£¬ÔÙͨ¹ýflashbackÃüÁԼ´¿É¡£
¿´ÁËÍøÉÏ»¹¿ÉÒÔͨ¹ýµ÷Õûoracleʱ¼ä £¬»Øµ½É¾³ýµÄÄ ......
Oracleµ÷ÓÅ×ÛÊö
ÔÚ¹ýÈ¥µÄÊ®ÄêÖУ¬ Oracle ÒѾ³ÉΪÊÀ½çÉÏ×îרҵµÄÊý¾Ý¿âÖ®Ò»¡£¶ÔÓÚ IT ר¼ÒÀ´Ëµ£¬¾ÍÊÇҪȷ±£ÀûÓà Oracle µÄÇ¿´óÌØÐÔÀ´Ìá¸ßËûÃǹ«Ë¾µÄÉú²úÁ¦¡£×îÓÐЧµÄ·½·¨Ö®Ò»ÊÇͨ¹ý Oracle µ÷ÓÅ¡£ËüÓдóÁ¿µÄµ÷Õû²ÎÊýºÍ¼¼ÊõÀ´¸Ä½øÄãµÄ Oracle Êý¾Ý¿âµÄÐÔÄÜ¡£
Oracle µ÷ÓÅÊÇÒ»¸ö¸´ÔÓµÄÖ÷Ìâ¡£¹ØÓÚµ÷ÓÅ¿ ......