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

Oracle´´½¨Íⲿ¹ÜÀí±í

ÒÔsystem»òÆäËû¹ÜÀíÔ±µÇ¼ ´´½¨Oracle¹Ü¿ØÄ¿Â¼
CREATE DIRECTORY hc_name_data_dir AS 'c:\ora\external\hc_name\';
CREATE DIRECTORY hc_name_log_dir AS 'c:\ora\external\hc_name\'; È·ÈÏ
SELECT * from dba_directories WHERE directory_name like '%HC%'; ÊÚÓèĿ¼ÏàӦȨÏÞ¸øÐèÒª´´½¨Íⲿ±íµÄÓû§
GRANT WRITE ON DIRECTORY hc_name_log_dir TO scott;
GRANT READ ON DIRECTORY hc_name_data_dir TO scott; È·ÈÏ
SELECT * from dba_tab_privs WHERE table_name like '%_DIR' AND grantee = 'SCOTT'; ÒÔ¸ÃÓû§Éí·ÝµÇ¼,ÈçÀýÖеÄscott ´´½¨Íⲿ¹ÜÀí±í
CREATE TABLE name(id number(6), firstname VARCHAR2(100), surname VARCHAR(36)) ORGANIZATION EXTERNAL(TYPE oracle_loader DEFAULT DIRECTORY HC_NAME_DATA_DIR ACCESS PARAMETERS(RECORDS DELIMITED BY NEWLINE CHARACTERSET US7ASCII BADFILE 'HC_NAME_LOG_DIR' : 'name.bad' LOGFILE 'HC_NAME_LOG_DIR' : 'name.log' FIELDS TERMINATED BY " " OPTIONALLY ENCLOSED BY '\t') LOCATION ('name.txt')) REJECT LIMIT UNLIMITED; È·ÈÏ
SELECT table_name, default_directory_owner, default_directory_name from user_external_tables;

    ×¢ÒâÍⲿ¹ÜÀí±íÖ»¿É¶Á,ÇÒ²»¹éÊôÓÚÈκαí¿Õ¼ä.


Ïà¹ØÎĵµ£º

ORACLE ³£ÓõÄSQLÓï·¨ºÍÊý¾Ý¶ÔÏó

 Ò».Êý¾Ý¿ØÖÆÓï¾ä (DML) ²¿·Ö
            1.Insert (ÍùÊý¾Ý±íÀï²åÈë¼Ç¼µÄÓï¾ä)
            Insert INTO ±íÃû(×Ö¶ÎÃû1, ×Ö¶ÎÃû2, ……) VALUES ( Öµ1, Öµ2, ……);
&nb ......

ORACLEºÍSQLÓï·¨Çø±ð¹éÄÉ

ORACLEºÍSQLÓï·¨Çø±ð¹éÄÉ
Êý¾ÝÀàÐͱȽÏ
ÀàÐÍÃû³Æ
Oracle
SQLServer
±È½Ï
×Ö·ûÊý¾ÝÀàÐÍ CHAR CHAR ¶¼Êǹ̶¨³¤¶È×Ö·û×ÊÁϵ«oracleÀïÃæ×î´ó¶ÈΪ2kb£¬SQLServerÀïÃæ×î´ó³¤¶ÈΪ8kb
±ä³¤×Ö·ûÊý¾ÝÀàÐÍ VARCHAR2 VARCHAR OracleÀïÃæ×î´ó³¤¶ÈΪ4kb£¬SQLServerÀïÃæ×î´ó³¤¶ÈΪ8kb
¸ù¾Ý×Ö·û¼¯¶ø¶¨µÄ¹Ì¶¨³¤¶È×Ö·û´® NCHAR NCHA ......

ÐèÒªÕÒµ½Ôì³Éoracle Èȵã¿éµÄsql

Ò»°ãÇé¿öÏÂÊǺ¬ÓÐÈ«±íɨÃèµÄsql»áÔì³ÉÈȵã¿é¡£
1¡¢ÕÒµ½×îÈȵÄÊý¾Ý¿éµÄlatchºÍbufferÐÅÏ¢
select   b.addr,a.ts#,a.dbarfil,a.dbablk,a.tch,b.gets,b.misses,b.sleeps   from  
(select   *   from   (select   addr,ts#,file#,dbarfil,dbablk,tch,hladdr   from   x$bh ......

[ת]Oracle½ÇÉ«¡¢È¨ÏÞ

OracleÄÚÖýÇÉ«connectÓëresourceµÄȨÏÞ
============================================================
Ò»¡¢ºÎΪ½ÇÉ«£¿
¡¡¡¡Èç¹ûÓÐÒ»×éÈË£¬ËûÃǵÄËùÐèµÄȨÏÞÊÇÒ»ÑùµÄ£¬¶ÔËûÃǵÄȨÏÞ½øÐйÜÀíµÄʱºò»á²»·½±ã¡£ÒòΪÄãÒª¶ÔÕâ×éÖеÄÿ¸öÓû§µÄȨÏÞ¶¼½øÐйÜÀí¡£
¡¡¡¡ÓÐÒ»¸öºÜºÃµÄ½â¾ö°ì·¨¾ÍÊÇ£º½ÇÉ«¡£½ÇÉ«ÊÇÒ»×éȨÏ޵ļ ......

ÀûÓÃOracleµÄutl_smtp ·¢ËÍÓʼþ£¨¹«ÍøÓʼþºÍ·þÎñÆ÷£©

CREATE OR REPLACE PROCEDURE send_mail(  
     p_recipient VARCHAR2, -- Óʼþ½ÓÊÕÈË  
     p_subject   VARCHAR2, -- Óʼþ±êÌâ  
     p_message   VARCHAR2  -- ÓʼþÕýÎÄ  
) ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ