oracleÍⲿ±í£¨External Table£©µÄʹÓÃ
ÔÎĵØÖ·£ºhttp://arvinnan.javaeye.com/blog/308638
²Î¿¼
http://www.blogjava.net/wxqxs/archive/2008/10/13/237180.html?opt=admin
http://hi.baidu.com/ray315/blog/item/153c97a33cd26caacbefd0de.html
¶¨Òå
External tables access data in
external sources
as if it were in a table in the database.
You can connect to the database and create metadata for the external table
using DDL
.
The DDL for an external table consists of two parts:
one part that describes the Oracle
column types
, and
another part (the access parameters) that describes the mapping of
the external data to the Oracle
data columns.
u
´´½¨µÄÓï·¨ÀàËÆÓÚ£º "CREATE TABLE ... ORGANIZATION EXTERNAL"
u
Êý¾ÝÔÚÊý¾Ý¿âµÄÍⲿ×éÖ¯£¬ÊDzÙ×÷ϵͳÎļþ¡£
u
²Ù×÷ϵͳÎļþÔÚÊý¾Ý¿âÖеıêÖ¾ÊÇ
ͨ¹ýÒ»¸öÂ߼Ŀ¼À´Ó³Éä
µÄ¡£
u
Êý¾ÝÊÇ
Ö»¶Á
µÄ¡££¨Íⲿ±íÏ൱ÓÚÒ»¸öÖ»¶ÁµÄÐé±í£©
u
²»¿ÉÒÔÔÚÉÏÃæÔËÐÐÈκΠDML ²Ù×÷
£¬
²»¿ÉÒÔ´´½¨Ë÷Òý
¡£
u
¿ÉÒÔ²éѯ²Ù×÷ºÍÁ¬½Ó
¡£¿ÉÒÔ²¢ÐвÙ×÷¡£
½¨Á¢Íⲿ±íµÄ²½Öè
£º
1¡¢´´½¨ÒÔ“,”·Ö¸ôµÄÎļþ“TestTable.csv”ÖÁ“D:\Test
”
2¡¢´´½¨Ò»¸öDirectory£º
create
directory
TestTable_dir
as
'D:\Test'
;
3¡¢´´½¨Ò»¸öÍⲿ±í£º
create
table
TestTable(
ID
varchar2
(
10
),
 
Ïà¹ØÎĵµ£º
Oracle Application Development Framework
¡¡¡¡
Oracle ADF
ÊÇÒ»¸ö¶Ëµ½¶ËµÄ
J2EE
¿ò¼Ü£¬Ëüͨ¹ýÌṩÏֳɵĻù´¡¼Ü¹¹·þÎñÒÔ¼°¿ÉÊӵġ¢ÉùÃ÷ʽ¿ª·¢ÌåÑé¼ò»¯ÁË¿ª·¢¡£
ΪÁ˼ò»¯
J2EE
³ÌÐò¿ª·¢¸´ÔÓÐÔ¶ø×¨ÃÅ¿ª·¢µÄÒ»ÖÖ½â¾ö·½°¸¡£
ADF
......
½¨DBLINK:
ʹÓÃpl/sql developer½¨£ºÕÒµ½Database Links,ÓÒ¼üн¨
Ãû³Æ£ºdblinkÃû Á¬½Óµ½Óû§Ãû£ºÄ¿±êÊý¾Ý¿âµÇ¼Ãû ÃÜÂ룺Ŀ±êÊý¾Ý¿âÃÜÂë
  ......
1¡¢ÊýÖµÐͳ£Óú¯Êý
¡¡
¡¡º¯Êý¡¡¡¡·µ»ØÖµ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ÑùÀý¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ÏÔʾ
ceil(n) ´óÓÚ»òµÈÓÚÊýÖµnµÄ×îСÕûÊý¡¡¡¡select ceil(10.6) from dual; 11
floor(n) СÓÚµÈÓÚÊýÖµnµÄ×î´óÕûÊý¡¡ select ceil(10.6) from dual; 10
mod(m,n) m³ýÒÔnµÄÓàÊý,Èôn=0,Ôò·µ»Øm select mod(7,5) from dual; 2
p ......
1.Ñ¡ÓÃÊʺϵÄOracleÓÅ»¯Æ÷
OracleµÄÓÅ»¯Æ÷¹²ÓÐ3ÖÖ£º
a.RULE(»ùÓÚ¹æÔò)
b.COST(»ùÓڳɱ¾)
c.CHOOSE(Ñ¡ÔñÐÔ)
ÉèÖÃȱʡµÄÓÅ»¯Æ÷£¬¿ÉÒÔͨ¹ý¶Ôinit.oraÎļþÖÐOPTIMIZER_MODE²ÎÊýµÄ
¸÷ÖÖÉùÃ÷£¬ÈçRULE¡¢COST¡¢CHOOSE¡¢ALL_ROWS¡¢FIRST_ROWS¡£Ä㵱ȻҲÔÚSQL¾ä¼¶»òÊǻỰ(session)¼¶¶ÔÆä½øÐи²
¸Ç¡£
ΪÁËʹÓûùÓڳɱ¾µÄÓÅ»¯Æ ......
¡¡¡¡1. Oracle°²裝Íê³ÉºóµÄ³õʼ¿ÚÁ
¡¡¡¡internal/oracle
¡¡¡¡sys/change_on_install
¡¡¡¡system/manager
¡¡¡¡scott/tiger
¡¡¡¡sysman/oem_temp
¡¡¡¡2. ORACLE9IAS WEB CACHEµÄ³õʼĬÈÏÓû§ºÍÃÜÂ룿
¡¡¡¡administrator/administrator
¡¡¡¡3. oracle 8.0.5Ôõô´´½¨Êý¾Ý¿â£¿
¡¡¡¡ÓÃorainst¡£Èç¹ûÓ ......