һЩoracleµÄÃüÁî¼°º¯Êý °üÀ¨decodeµÈ
1¡¢set linesize 100; ÉèÖó¤¶È
2¡¢set pagesize 30; ÉèÖÃÿҳÏÔʾÊýÄ¿
3¡¢em a.sql ´ò¿ª¼Çʱ¾
4¡¢@ a Ö´ÐÐÎļþaÖеĴúÂ룬¿ÉÖ¸¶¨ÎļþµÄ·¾¶ @d:a.txt
5¡¢conn Óû§Ãû/ÃÜÂë ¸ù¾ÝÓû§ÃûºÍÃÜÂëÁ¬½ÓÊý¾Ý¿â Èç¹ûÁ¬½Ó³¬¼¶¹ÜÀíÔ±(sys) ÔòÓ¦¼ÓÉÏas sysdba;
6¡¢show user; ÏÔʾµ±Ç°Á¬½ÓµÄÓû§
7¡¢select * from tab; µÃµ½µ±Ç°Óû§ÏµÄËùÓбí
8¡¢desc temp; ²é¿´±í½á¹¹
9¡¢/ ¼ÌÐøÖ´ÐÐÉÏÒ»¸ö²éѯÓï¾ä
clear scr; ÇåÆÁ
×Ö·ûº¯Êý
10¡¢select upper('coolszy') from dual; ½«Ð¡Ð´×Öĸת»»³É´óд£¬dual ΪһÐé±í
11¡¢select lower('KUKA') from dual; ½«´óд×Öĸת»»³ÉСд
12¡¢select initcap('kuka') from dual; ½«Ê××Öĸ´óд
13¡¢select concat('Hello',' world') from dual; Á¬½Ó×Ö·û´®£¬µ«Ã»ÓÐ||ºÃÓÃselect concat('Hello','world') from dual;
14¡¢select substr('hello',1,3) from dual; ½ØÈ¡×Ö·û´®
15¡¢select length('hello') from dual; Çó×Ö·û´®³¤¶È
16¡¢select replace('hello','l','x') from dual; Ìæ»»×Ö·û´®
17¡¢select substr('hello',-3,3) from dual; ½ØÈ¡ºóÈýλ
ÊýÖµº¯Êý
18¡¢select round(789.536) from dual; ËÄÉáÎåÈ룬ÉáȥСÊý
19¡¢select round(789.536,2) from dual; ±£ÁôÁ½Î»Ð¡Êý
20¡¢select round(789.536,-1) from dual; ¶ÔÕûÊý½øÐÐËÄÉáÎåÈë
21¡¢select trunc(789.536) from&n
Ïà¹ØÎĵµ£º
DBWn½ø³Ì¸ºÔð½«ÔàÊý¾Ý¿éдÈë´ÅÅÌ¡£ËüÊÇÒ»¸ö·Ç³£ÖØÒªµÄ½ø³Ì£¬Ëæ×ÅÄÚ´æµÄÔö¼Ó£¬Ò»¸öDBWn½ø³Ì¿ÉÄܲ»¹»ÓÃÁË¡£´Óoracle8iÆð£¬ÎÒÃÇ¿ÉÒÔΪϵͳÅäÖöà¸öDBWn½ø³Ì¡£³õʼ»¯²ÎÊýdb_writer_process¾ö¶¨ÁËÆô¶¯¶àÉÙ¸öDBWn½ø³Ì¡£Ã¿¸öDBWn½ø³Ì¶¼»á·ÖÅäÒ»¸öcache lru chain latch¡£
DBWn×÷Ϊһ¸öºǫ́½ø³Ì£¬ ......
ÔÚÕâÀïÎÒÃǽ«½éÉÜOracleÊý¾Ý¿âÓÅ»¯·½°¸Óëʵ¼ù£¬²»Í¬µÄ»·¾³»áÓв»Í¬µÄµ÷ÊÔ£¬µ«ÊÇÒ²»áÓвî±ð£¬Ï£Íû´ó¼ÒÄܺÏÀíµÄÎüÊÕ¡£ Ò»¡¢Ç°ÑÔ ¶þ¡¢ORACLEÊý¾Ý¿âÓÅ»¯¸ÅÊö 1¡¢ÄÚ´æµÈ²ÎÊýÅäÖõÄÓÅ»¯ 2¡¢¼õÉÙÎïÀí¶ÁдµÄÓÅ»¯ 3¡¢ÅúÁ¿Öظ´²Ù×÷µÄSQLÓï¾ä¼°´ó±í²Ù×÷µÄÓÅ»¯ ¶þ¡¢ORACLEÊý¾Ý¿âÓÅ»¯·½°¸ 1¡¢ÄÚ´æµÈOracleϵͳ²ÎÊýÅäÖà 2¡¢Ê ......
Oracle±íµÄ¹ÜÀí
±íÃûºÍÁÐÃûµÄÃüÃû¹æÔò£º
1±ØÐëÒÔ×Öĸ¿ªÍ·
2³¤¶È²»Äܳ¬¹ý30¸ö×Ö·û
3²»ÄÜʹÓÃOracleµÄ±£Áô×Ö
4Ö»ÄÜʹÓÃÈçÏÂ×Ö·û£ºA-Z,a-z,0-9,$,#µÈ
OracleÖ§³ÖµÄÊý¾ÝÀàÐÍ£º
1char ¶¨³¤£¬×î´ó2000×Ö·û
Àý×Ó£ºchar(10) ‘Ïþ»Ô’ Ç°Ëĸö×Ö·û·Å’Ïþ»Ô’£¬ºóÌíÁù¸ö¿Õ¸ñ²¹È«
2varchar2(20) ±ä³¤£¬×î´ ......
OracleÖÐKill sessionµÄÑо¿
×÷Õߣºeygle |English Version ¡¾×ªÔØʱÇëÒÔ³¬Á´½ÓÐÎʽ±êÃ÷ÎÄÕ³ö´¦ºÍ×÷ÕßÐÅÏ¢¼°±¾ÉùÃ÷¡¿
Á´½Ó£ºhttp://www.eygle.com/archives/2004/06/kill_session.html
ÎÒÃÇÖªµÀ,ÔÚOracleÊý¾Ý¿âÖÐ,¿ÉÒÔͨ¹ýkill sessionµÄ·½Ê½À´ÖÕÖ¹Ò»¸ö½ø³Ì,Æä»ù±¾Óï·¨½á¹¹Îª:
alter system kill session 'sid,serial# ......
2008-09-02
J2EE²Ù×÷OracleµÄclobÀàÐÍ×Ö¶Î
¹Ø¼ü×Ö: java
OracleÖУ¬Varchar2Ö§³ÖµÄ×î´ó×Ö½ÚÊýΪ4KB£¬ËùÒÔ¶ÔÓÚijЩ³¤×Ö·û´®µÄ´¦Àí£¬ÎÒÃÇÐèÒªÓÃCLOBÀàÐ͵Ä×ֶΣ¬CLOB×Ö¶Î×î´óÖ§³Ö4GB¡£
»¹ÓÐÆäËû¼¸ÖÖÀàÐÍ£º
blob:¶þ½øÖÆ,Èç¹ûexe,zip
clob:µ¥×Ö½ÚÂë,±ÈÈçÒ»°ãµÄÎı¾Îļþ.
nlob:¶à×Ö½ÚÂë,ÈçUTF¸ñʽµÄÎļþ.
ÒÔÏÂ¾Í ......