½ñÌìoracle DBA½ç´óʦ¼¶ÈËÎï¸Ç¹úÇ¿ÏÈÉúÀ´ÎÒÃǹ«Ë¾
2010Äê3ÔÂ5ÈÕ£¬ËäÈ»º®·ç´Ì¹Ç£¬µ«ÒÀÈ»µ²²»×¡¹«Ë¾Í¬ÊºÍÎÒ¹¤×÷µÄÈÈÇé.µÎ´ð¡¢µÎ´ð,ͬÊÂÊÖ»úÏìÁË£¬ÀÏ×ܸøËû´òµç»°£¬Ëµ¹ã¶«ÁªÍ¨ÍøÓÅƽ̨Êý¾Ý¿â³öÏÖÎÊÌ⣬ÓÉÓÚÊý¾ÝÁ¿È·Êµ¹ý´ó£¬Í¬ÊÂÒÔÇ°Ò²´¦Àí¹ýÄDZߵÄÎÊÌ⣬Ö÷ÒªÊÇËùÓÐÊý¾ÝÁ¿´óµÄ±íÿ¸ôÒ»Ì콨Á¢Ò»¸öË÷Òý£¬ÕâÑù²éѯÊý¾ÝËٶȱȽϿ졣µ«ÊǽøÐÐÊý¾Ý»ã×ܾÍ×½½ó¼ûÖâ¡£µ¼ÖÂ×îÖÕ´ÓÎÒÃǹ«Ë¾ÍøÓŹÜÀíƽ̨£¬²éѯÊý¾Ý¼«Âý¡£
ÌýÁËÀÏ×Üһϯ»°£¬Í¬Ê±¶¸ÐѹÁ¦£¬¹ã¶«ÁªÍ¨¾Ö·½ÎÞ·¨ÈÌÊÜ£¬ÒªÇóÎÒÃÇÔÚÒ»¸öÐÇÆÚÄÚ½â¾ö£¬ÎÞÄÎ֮ϣ¬Ö»ÓÐÇëÇóoracleÖйú¹«Ë¾Ìṩ֧³ÖÁË¡£
oracleÖйú¹«Ë¾¹¤³Ìʦ¿´ÁËʵµØ¿´ÁËÎÊÌâºó£¬ÎÞ·¨½â¾öÒªÏòÉϻ㱨Ìá¸ßÎÊÌâ´¦Àí¼¶±ð¡£ºóÀ´ÎÊÌâÌá½»µ½ÁËoracle¹«Ë¾×ܲ¿£¬×ܲ¿¹¤³Ìʦ¿ÉÒÔÌṩԶ³ÌÖ§³ÖºÍµç»°×Éѯ·þÎñ£¬µ«ÊÇÎÒµÄͬÊÂÊǸöÓ¢ÓïäÈË£¬ÎÞ·¨ÓëÍâ¹úÀϹµÍ¨£¬×îÖÕ´ËÊÂÒ²×÷°Õ¡£
¸Ç¹úÇ¿Õâ¸öÃû×Ö¶ÔÓÚ¸ãÈí¼þ¿ª·¢ÈËÀ´ËµÊÇÈçÀ×¹á¶ú£¬¸üÈÃ×öoracle¿ª·¢»ò¹ÜÀíÈÊÈË־ʿËàÈ»Æð¾´£¬oracle½çͬÈʶ¼³ÆºôΪ´óʦ¼¶±ðÈËÎ¹ýÁ˼¸Ììºó£¬¹«Ë¾ÀÏ×Ü°ÑËûÇëµ½ÁËÎÒÃǹ«Ë¾£¬Ô¶³Ì´¦Àí¹ã¶«ÁªÍ¨Êý¾Ý¿âÎÊÌ⣬ÔÚËû3¶àСʱµÄϸÐÄ·ÖÎöºó£¬ÖÕÓÚ²»¸ºÖÚÍû³¹µ×ÁËÈ´´ó¼ÒÐÄÖÐÄÑÌâ¡£
Ïà¹ØÎĵµ£º
Ò»£®ÒýÑÔ
ORACLEÊý¾Ý¿â×Ö·û¼¯£¬¼´OracleÈ«Çò»¯Ö§³Ö(Globalization Support)£¬»ò¼´¹ú¼ÒÓïÑÔÖ§³Ö£¨NLS£©Æä×÷ÓÃÊÇÓñ¾¹úÓïÑԺ͸ñʽÀ´´æ´¢¡¢´¦ÀíºÍ¼ìË÷Êý¾Ý¡£ÀûÓÃÈ«Çò»¯Ö§³Ö£¬ORACLEΪÓû§Ìṩ×Ô¼ºÊìϤµÄÊý¾Ý¿âĸÓï»·¾³£¬ÖîÈçÈÕÆÚ¸ñʽ¡¢Êý×Ö¸ñʽºÍ´æ´¢ÐòÁеȡ£Oracle¿ÉÒÔÖ§³Ö¶àÖÖÓïÑÔ¼°×Ö·û¼¯£¬ÆäÖÐoracle8 ......
#1. Ê×ÏÈÒÔ¹ÜÀíÔ±µÄÉí·ÝµÇ¼µ½oracleϵͳÖÐ
cmd;
sqlplus sys/sys as sysdba;
#2.´´½¨Óû§test,ÃÜÂëΪtest
create user test identified by test;
#3.´´½¨±í¿Õ¼ä,ÔÚDÅÌϽ¨Á¢50mµÄ±í¿Õ¼ädata_dbf
create tablespace ts_tablespace datefile 'D:\data_dbf' size 50m;
#4.ΪÓû§·ÖÅä±í¿Õ¼ä
alter user test default t ......
1.Ñ¡ÔñÄúËù°²×°OrcaleµÄĿ¼£¬ÀýÈ磺C:\Oracle
2.ÓÒ¼üµã»÷£¬µ¯³ö“ÊôÐÔ”¶Ô»°¿ò£¬Ñ¡Ôñ“°²È«”Ñ¡Ï
3.Ìí¼Ó“IUser_»ú×ÓÃû³Æ”Óû§µÄȨÏÞ£¬²ÉÓÃÍêÈ«¿ØÖƵķ½Ê½
4.È·¶¨Ó¦Óúó£¬ÔÚÑ¡Ôñ“°²È«”Ñ¡ÏÖÐÑ¡Ôñ“IUser_»ú×ÓÃû³Æ”Óû§£¬µã»÷¸ß¼¶
5.Ñ¡ÔñÑ¡Ôñ¿ò“ÓÃÔÚ ......
»¹ÊǽèÖúoracle sql developerÀ´²Ù×÷oracle£¬sql plus»¹ÊÇÂé·³Ò»µã¡£
¼òµ¥¿´ÁËһϣ¬Óï¾ä»ù±¾É϶¼ºÍÆäËûÊý¾Ý¿âµÄsql²î²»¶à£¬¼Ç¼һϲ»Í¬µÄµØ·½¡£
ÈÕÆÚÀàÐͱà¼
update student set stu_birthday = to_date('2010-03-06 13:14:20','yyyy-MM-dd HH24:mi:ss');
ÐèҪʹÓÃto_date()º¯Êý£¬SQLÖв»Çø·Ö´óСд£¬MMºÍmm± ......
oracle±í·ÖÇø
oracleÔÊÐíÓû§¶Ô±í½øÐнøÒ»²½¹æ»®£¬¼´¶Ô±í½øÐнøÒ»²½²ð·Ö£¬½«±í·Ö³ÉÈô¸É¸öÂß¼²¿·Ö£¬Ãð¸ö²»·Á³ÆÆäΪ±í·ÖÇø
·¶Î§·ÖÇø£º
¸ù¾Ý±íÖÐÁÐÖµµÄ·¶Î§½øÐзÖÇø
Óï·¨£ºPartition by range(×Ö¶ÎÃû)(
Partition ·ÖÇøÃû values less than (60), --60ÒÔÏÂ
Partition ·ÖÇøÃû values less than (75), --60¡«75
......