»ØÍû£¬ÎÒµÄOracle֮·
¡¡¡¡´óѧµÄʱºò£¬ÎÒÊǹÜÀíѧԺµÄ£¬ºóÀ´Ï¸·ÖרҵµÄʱºòÑ¡ÔñÁËÐÅÏ¢¹ÜÀí¡£ÓÚÊǹÜÀí¡¢»á¼Æ¡¢²ÆÎñ¡¢»úе¡¢µç×Ó£¬ÉõÖÁ˵Ç鱨¼ìË÷¶¼Ñ§¹ý£¬µ±È»Ò²°üÀ¨¼ÆËã»ú¡£
¡¡¡¡Èç¹û²»ËãfoxbaseºÍfoxproµÄ»°£¬Êý¾Ý¿â·½Ãæ½ö½öѧ¹ýÒ»ÃÅÊý¾Ý¿âÔÀí£¬ÓõĽ̲ÄÊÇStanfordµÄÓ°Ó¡°æ¡£
¡¡¡¡µ±Ê±ÓÐÒ»¸öΤÀÏʦ£¬×ÜÊÇ´µËýÀϹ«ÊÇMITµÄ²©Ê¿£¬ºÜNB¡£×ÜÊǶÔÎÒÃÇ˵£¬ÒªÓÐ×ÔÐÅ£¬Òª¸ÒÓÚ³¢ÊÔÁôѧһÀàµÄ¶«Î÷£¬Ñ¡ÓÃÕâ¸ö½Ì²ÄºÃÏñ¾ÍÊÇËýÍƼöµÄ¡£
¡¡¡¡ºóÀ´ÊµÐе¼Ê¦Öƶȣ¬´øÎÒÃǵÄÊÇÁ½¸ö²©Ê¿Éú£¬Âí»ÔÃñºÍ³Ìº£·¼ÀÏʦ¡£¸ú×ÅËûÃÇ×öʵϰ£¬ÓÃpb
6.0Á¬ÉÏoracle 7.3´´½¨ÁËһЩ±íºÍÊÓͼ£¬Ð´ÁËһЩpower
script¡£ÆäʵҲ֪µÀ×öµÄ²»Ì«ºÃ£¬³ÌÀÏʦ±íÑïÎÒ×öµÄ»¹²»´í£¬ÓÚÊǶÔÕâ¸ö¸ÕÀ´ÉÏ¿Îʱ»¹»áÁ³ºì,µ½ºóÀ´È´´ø×ÅÄ«¾µÔÚУ԰Àï°é¿áµÄMM£¬¶àÉÙ¶àÉÙÓÐÁ˵ãºÃ¸Ð¡£
¡¡¡¡ÕÒ¹¤×÷µÄʱºò£¬´ó¼Ò¶¼ËµÓùýµÄ½Ð×÷ÊìϤ£¬Ìý˵¹ýµÄ½Ð×÷Á˽⡣Ҳ²»ºÃÒâ˼дÁ˽⣬ÓÚÊǼòÀúÉÏдÁËÊìϤOracle¡£¹¤×÷ÒÔºó×öProjectºÍSQL
Server·½ÃæµÄ¶«Î÷£¬ºóÀ´ÔÚÉîÛÚÒøºÓÅàѵSQL ServerµÄʱºò£¬ÀÏʦ˵SQL ServerºÜ¼òµ¥£¬Oracle²ÅÊDz©´ó¾«Éî¡£¶ÔOracle¿ªÊ¼ÓеãºÃÆæ¡£
¡¡¡¡²»¾ÃÒÔºó»»Á˹¤×÷,¿ªÊ¼Ê¹ÓÃOracleÊý¾Ý¿â,Ö÷ÒªÊÇ×ö±¨±íÊÓͼ¡¢Ð´PL/SQL³ÌÐò¡¢Êý¾Ý¿â½¨Ä£,ÖªµÀÁ˺ܶàС¼¼ÇÉ£¬Èç±í°´Ê²Ã´Ë³ÐòÁ¬½Ó£¬Ê²Ã´Ê±ºòÒªÓÃË÷Òý£¬Ê²Ã´²»Ó¦¸ÃÓÃË÷Òý£¬ÔõÑù±ÜÃâËÀËø¡£Ó¡ÏóÖÐÊé¿´µÄ×î¶àµÄ¾ÍÊÇ»úе¹¤Òµ³ö°æÉçÄÇÌ×Oracle8´ÔÊéÖеÄOracle³õѧÕßÖ¸ÄÏ,PL/SQL³ÌÐòÉè¼ÆÖ¸ÄÏ,PL/SQL¸ß¼¶³ÌÐòÉè¼ÆÖ¸ÄÏ¡£Ò²ÒþÒþÔ¼Ô¼ÖªµÀOracleÖÐÓиöSGA£¬Óиö½Ð×ö³Ø×ӵĶ«Î÷¡£²¢ÔÚLinuxÉÏ×ÔºÀµÄ×°ÉÏÁËOracle 815,²»µ½Ò»ÄêµÄʱ¼äºÜ¿ì¹ýÈ¥ÁË¡£
¡¡¡¡µÚ¶þÄ꿪ʼÃÔÁµÉÏÁËOracleµÄ½á¹¹£¬SGA,ÖªµÀÁËʲô½Ð×öDB Buffer,ʲô½Ð×öLog Buffer,ÈçºÎ·ÖÅ䣬ºÜÁýͳµÄ¸ÅÄ“DB BufferÒ»°ãÒª¸øSGAµÄ80%×óÓÒ”£¬ÖªµÀÁ˸ßËÙ»º´æÂʵȵȶà¸ÅÄ»¹ÖªµÀÁË¿ØÖÆÎļþºÜÖØÒª£¬ÓÐÈËÎÊÎÒ¼ÙÈç¿ØÖÆÎļþÈ«²¿¶ªÊ§ÁË£¬Ö»ÓÐÊý¾ÝÎļþºÍÈÕÖ¾Îļþ£¬Äܲ»Äָܻ´£¬ÎÒ²»ÊǺÜÈ·¶¨µÄ˵²»ÄÜ°É£¬½á¹û¶Ô·½ºÜÇáÃïµØ¶Ô´ý×Ô¼º£¬»°ÓïÖÁ½ñ»¹¼ÇÒäÓÈС£
¡¡¡¡ÓÚÊÇÔÚÄǸöÏÄÌ죬ÎÒÖªµÀÁËscn,´óÖÂÃ÷°×Á˱¸·ÝÓë»Ö¸´µÄÔÀí£¬ÖªµÀÁËÈçºÎ´´½¨¿ØÖÆÎļþ£¬Ê²Ã´Ê±ºòÓÃresetlogs,ʲôʱºòÓÃnoresetlogs,µ«ÊÇΪʲô²»ÖªµÀ¡£½Ó×ÅÖªµÀÁËDBWR,LGWR,CPKTµÈµÈµÄ×÷Ó㬻¹¿´ÁË"oracle8i internal services for waits, latches, locks"ÄDZ¾Ê飬Ã÷°×latch,lock,semphoreµÄ¸÷ÖÖÀàÐͺÍÈ·ÇÐÓÃ;¡£ÖªµÀÁËfree
list,pct free,´óÖÂÃ÷°×ÁËDb buffer¡¢Log
Buffer,
Ïà¹ØÎĵµ£º
oracle±í¿Õ¼ä²Ù×÷Ïê½â
1
2
3×÷Õߣº À´Ô´£º ¸üÐÂÈÕÆÚ£º2006-01-04
5
6
7½¨Á¢±í¿Õ¼ä
8
9CREATE TABLESPACE data01
10DATAFILE '/ora ......
CLOB:ÓÃÀ´´æ´¢µ¥×Ö½ÚµÄ×Ö·ûÊý¾Ý
NCLOB:ÓÃÀ´´æ´¢¶à×Ö½ÚµÄ×Ö·ûÊý¾Ý
BLOB£ºÓÃÓÚ´æ´¢¶þ½øÖÆÊý¾Ý
BFILE:´æ´¢ÔÚÎļþÖеĶþ½øÖÆÊý¾Ý£¬Õâ¸öÎļþÖеÄÊý¾ÝÖ»Äܱ»Ö»¶Á·Ã¡£µ«¸ÃÎļþ²»°üº¬ÔÚÊý¾Ý¿âÄÚ¡£
CLOB£¬NCLOB£¬BLOB¶¼ÊÇÄÚ²¿µÄLOBÀàÐÍ£¬×4G£¬Ã»ÓÐLONGÖ»ÄÜÓÐÒ»ÁеÄÏÞÖÆ¡£
select lpad(to_number(nvl(max(classid),to_number( ......
Ò». Óû§¹ÜÀí
1.1 ½¨Á¢Óû§£¨Êý¾Ý¿âÑéÖ¤£©
CREATE USER DAVE IDENTIFIED BY pwd
DEFAULT TABLESPACE users
TEMPORARY TABLESPACE temp
QUOTA 5m ON users;
1.2 ÐÞ¸ÄÓû§
......
²éѯ£º
select distinct(empno) , name , age from t_person t where (t.age between 21 and 25 or name like '%Íõ%') and
empno like '32%';
¸üУº
update t_person set name = 'ww' where empno = '321654';
update t_person set(empno,name,age) = (select empno,name,age f ......
ORACLE to_date ÏÝÚå
oracle Öв»´øʱ·ÖÃëµÄ×Ö·û´® to_date ת»»Ê±¼äºóÓë´øʱ·ÖÃëµÄdateÐÍ×Ö¶Î×ö´øµÈÖµµÄ±È½Ï (>=,<=,=)ʱ£¬ÓÉÓÚ×Ö·û´®²»´øʱ·ÖÃ룬ËùÒÔת»»ºóʱ·ÖÃëĬÈÏΪ00:00:00,oracleÖбȽÏdateÊÇÒÔÒ»¸öʱ¼äµãÀ´±È½ÏµÄ£¬¾«È·µ½ÃëÉõÖÁºÁÃë΢ÃëÄÉÃë,ËùÒÔdate×ֶεÄʱ·ÖÃ벻Ϊ00:00:00µÄ¾ÍÓë²»´øʱ·ÖÃë×Ö·û´®×ª»»º ......