²ËÄñ¹ØÓÚÊý¾Ýµ¼ÈëOracleµÄÎÊÌâ - Oracle / »ù´¡ºÍ¹ÜÀí
1¡¢½«ACCESSÖеÄÒ»¸ö±íµ¼³öΪasd.txtºó£¬·ÅÔÚ×ÀÃæÉÏ£¬ÔÚCMD.EXEÖÐÔËÐÐ
C:\Documents and Settings\Administrator>type asd.txt
ÀÏÌáʾ¡°ÏµÍ³ÕÒ²»µ½Ö¸¶¨Îļþ¡±¡£
2¡¢ÁíÍ⣬ÇëÎÊload1.ctlÕâ¸ö¿ØÖÆÎļþÊÇÔÚʲô»·¾³ÏÂдµÄ£¿ÎÒÏÈÊÇÔÚ.txtÎļþÖÐд
load data
infile 'asd.txt'
into table asd
fields terminated by "," optionally enclosed by '"'
(col1,col2)
ÕâЩÓï¾ä,È»ºó°Ñºó׺.txtÖ±½Ó¸Ä³É.ctl¡£È»ºóÔÙÔÚCMD.EXEÖÐÔËÐÐ
C:\Documents and Settings\Administrator>sqlldr userid=scott/tiger control=load1.ctl
ÀÏÊÇÌáʾÎļþ²»´æÔÚ¡£
Çë¸ßÊÖ¾ÍÉÏÃæÁ½¸öÎÊÌâ¼°aqlloaderµÄʹÓò½ÖèÖ¸µãÒ»¶þ£¬Ð»ÁË£¡
Documents and Settings Óпոñ£¬¹À¼Æ²»Ö§³Ö
Ïà¹ØÎÊ´ð£º
ÓÃPL/SQL µÇ½ʱµ¯³ö±¨´í´°¿Ú£¬´íÎóÈçÏ£¡
ORA-01034:ORACLE not available
ORA-27101:shared memory realm does not exist
ÇëÎÊ£¬ÓÐûÓÐÈËÓöµ½ÕâÖÖÇé¿ö£¬Ôõô½â¾ö£¿Ð»Ð»£¡
1. Oracle sid ÕýÈ ......
×öÍædata guard ºó
ÔÚPrimary·þÎñÆ÷ Ö´ÐÐ
SQL>SELECT SEQUENCE#,APPLIED from V$ARCHIVED_LOG ORDER BY SEQUENCE#;
SEQUENCE# APP
---------- ---
13 NO
13 YES ......
ͨ¹ýNAME×Ö¶ÎÌõ¼þ²éѯһ¸öÊý¾Ý±í£¬¼ÙÉèÎÒÓÐ100¸öÐÕÃû£¬ÓÐÒÔÏÂÁ½¸ö·½·¨£¬
·½·¨1£º
°Ñ100¸öName ×é³ÉÒ»¸öSQLÓï¾ä£¬±ÈÈç Select * from tmp_table where Name='ÕÅÈý' or Name ='ÀîËÄ' Or ...Or Name='µÚÒ»°Ù¸öÐÕÃû'
......
ÎÒÓÃmyeclipseÁ¬½ÓOracleÒ»Ö±±¨´í£¬Ò»ÏÂÊDZ¨´í½Øͼ£¬
Çó¸ßÈËÏàÖú¡£
ÎÞͼÎÞÕæÏà....
file:///C:/Documents%20and%20Settings/Administrator/×ÀÃæ/SF/Oracle%20JDBCÁ¬½Ó´íÎó.png
....
Äã¿´¿´Çý¶¯ºÍORACLEµÄ°æ ......