OracleѧϰµÄһЩ½¨Òé
¡¡¡¡Ñ§Ï°OracleÊÇÒ»¸öÂþ³¤¼èÐÁµÄ¹ý³Ì¡£Èç¹ûûÓÐÐËȤ£¬Ö»ÊDZ»ÆÈѧϰ£¬ÄÇôÊǺÜÄÑѧºÃµÄ¡£Ñ§Ï°µ½Ò»¶¨³Ì¶ÈµÄʱºò£¬ÒªÏë½øÒ»²½Ìá¸ß£¬¾Í²»µÃ²»½Ó´¥ºÜ¶àOracleÖ®ÍâµÄ¶«Î÷£¬ÈçUnix£¬ÈçÍøÂç¡¢´æ´¢µÈ¡£Òò´Ë£¬ÒªÕæµÄ¾öÐÄѧºÃOracle£¬¾ÍÒ»¶¨ÒªÓÐÐËȤ¡£ÓÐÁËÐËȤ£¬¾Í»áÒ»ÇбäµÃ¼òµ¥¿ìÀÖÆðÀ´¡£¼òµ¥×ܽáһϣ¬ÄǾÍÊÇ£ºÐËȤ¡¢Ñ§Ï°¡¢Êµ¼ù¡£
¡¡¡¡ÈçºÎÈëÃÅÊÇÐí¶à³õѧÕß×îÍ·ÌÛµÄÊÂÇé¡£OracleÉæ¼°µÄ·½ÃæÌ«¶àÁË£ºSQL¡¢¹ÜÀí¡¢ÓÅ»¯¡¢±¸·Ý»Ö¸´……ÄÇô´ÓÄÄ¿ªÊ¼Ñ§ºÃÄØ?Èç¹ûÔÚ´óѧÆÚ¼äѧ¹ýÊý¾Ý¿âÀíÂÛ£¬»òÓÐÒ»¶¨µÄÊý¾Ý¿â»ù´¡×ÔÈ»ºÜºÃ;Èç¹ûûÓеĻ°£¬ÕæµÄÊǸö´óÎÊÌâ¡£ÎÒ¸öÈËÈÏΪ»¹ÊÇÓ¦¸Ã´ÓSQLÓï¾äѧÆ𡣱ȽϺõĽ̲ÄÊÇOracle
OCPÈÏÖ¤µÄ¡¶SQL and PL/SQL¡·¡£Ñ§Ï°SQLµÄʱºò£¬¾¡¿ÉÄܼá³ÖʹÓÃOracle×Ô´øµÄ¹¤¾ß£ºSQLPLUS¡£
¡¡¡¡ÓÐÁËÒ»¶¨µÄSQL»ù´¡ºó£¬¾ÍÒª¾¡¿ÉÄܵÄÁ˽âOracleµÄÌåϵ½á¹¹£¬Õâ¾ÍÉæ¼°µ½ÁËOracle¹ÜÀíµÄÄÚÈÝÁË¡£ÎÒѧϰµÄʱºò£¬»úе¹¤Òµ³ö°æÉçµÄ¡¶Oracle9i DBAÊֲᡷÕâ±¾Êé¶ÔÎҵİïÖúͦ´ó¡£»òÐíÏÖÔÚ¶¼³ö11g°æ±¾µÄÁË°É¡£Oracle¹«Ë¾µÄ¡¶Oracle Concepts¡·ÊǷdz£°ôµÄÊ飬¶ÔÁ˽âOracleÌåϵ½á¹¹ºÜÓкô¦¡£Ã¿¸öOracle°æ±¾¶¼ÓжÔÓ¦µÄ°æ±¾£¬¿ÉÒÔÈÏÕæ¶à¶Á¼¸´Î£¬Ã¿´Î¶¼»áÓÐеÄÊÕ»ñ¡£
¡¡¡¡¹«Ë¾µÄ²úÆ·ÏÖÔÚ¼¸ºõ¶¼²ÉÓÃOracleÁË£¬ÎÒÃÇ×öά»¤µÄʱºò£¬±¸·ÝÓë»Ö¸´ÊDz»µÃ²»½Ó´¥µÄÄÚÈÝ¡£Êý¾ÝÁ¿Éٵģ¬±ÈÈç20¡¢30¶à¸öG£¬»¹¿ÉÒÔ¿¼ÂÇÓÃexp/impÀ´±¸·ÝÓë»Ö¸´£¬µ«Êý¾ÝÁ¿´óÁË£¬ÕâÖÖ·½·¨¾Í¸ù±¾²»ÊʺÏÁË¡£ÓÚÊÇѧϰOracle±¸·ÝÓë»Ö¸´¼¼ÊõÒ²ÊDZØÈ»µÄÊÂÇé¡£´óÊý¾ÝÁ¿Çé¿öÏ£¬Oracle½¨ÒéÓÃRMANÀ´½øÐÐÊý¾ÝµÄ±¸·ÝÓë»Ö¸´¡£Ä¿Ç°Êг¡ÉÏÓкܶàÊý¾Ý¿â±¸·Ý»Ö¸´Èí¼þ£¬ÆäʵºÃ¶àÒ²ÊǺǫ́µ÷ÓÃRMAN¡£Ç廪´óѧ³ö°æÉç³ö°æµÄ¡¶Oracle
9i RMAN ±¸·ÝÓë»Ö¸´¼¼Êõ¡·ÊÇÒ»±¾·Ç³£²»´íµÄ½éÉÜRMANµÄÊé¡£
¡¡¡¡ÓÐÁËÒÔÉϵĻù´¡£¬¿ÉÒÔ˵ÒѾÈëÃÅÁË£¬¶ÔÓöµ½µÄһЩ³õ¼¶OracleÎÊÌ⽫²»ÔÙÊøÊÖÎ޲ߡ£È»¶øÎÒÃǵÄѧϰ֮·ÈÔÈ»»¹ºÜÂþ³¤¡£ÎÒÃǵÄÓû§¿ÉÄܾ³£±§Ô¹Êý¾Ý¿âÔËÐлºÂý¡£Õâʱ£¬Èç¹ûÓÐÒ»¶¨µÄÓÅ»¯ÖªÊ¶£¬ÄǾͺðìÁË¡£ÓÐʱÄã»á¿´µ½ÓÅ»¯Ç°ÐèÒªÔËÐм¸¸öСʱµÄ×÷Òµ£¬ÓÅ»¯ºóÒ²Ðí¼¸ÃëÖÓ¾ÍÄÜÍê³É!Oracle9iµÄÐÔÄÜÕï¶Ï¹¤¾ß°üstatspack¡¢Oracle10g/11gµÄ×Ô¶¯¹¤×÷·ûºÏ´æ´¢¿âAWR¶¼Êǵ÷ÓŵĺðïÊÖ¡£»úе¹¤Òµ³ö°æÉç³ö°æµÄ¡¶Oracle9i STATSPACK¸ßÐÔÄܵ÷Õû¡·ÊÇѧϰstatspack²»´íµÄÊé¡£
¡¡¡¡ÔÚÊý¾Ý¿âÌåϵ½á¹¹¡¢±à³ÌÓÅ»¯·½Ã棬ÓÐÒ»±¾Êé·Ç³£°ô£¬Õâ¾ÍÊÇÊÀ½ç¶¥¼¶µÄOracleר¼ÒThomas
Kyte±àдµÄ¡¶Oracle9i&10g±à³ÌÒÕÊõ¡·(Ó¢ÎÄÃûΪ“Expert Ora
Ïà¹ØÎĵµ£º
ÎÒÃǶ¼ÖªµÀÔÚOracleÖÐÿÌõSQLÓï¾äÔÚÖ´ÐÐ֮ǰ¶¼ÐèÒª¾¹ý½âÎö£¬ÕâÀïÃæÓÖ·ÖΪÈí½âÎöºÍÓ²½âÎö¡£ÄÇôÕâÁ½ÖÖ½âÎöÓкβ»Í¬Ö®´¦ÄØ£¿ËüÃÇÓÖ·Ö±ðÊÇÈçºÎ½øÐнâÎöÄØ£¿OracleÄÚ²¿½âÎöµÄ²½ÖèÓÖÊÇÈçºÎ½øÐеÄÄØ£¿ÏÂÃæÎÒÃǾÍÕâЩ»°Ìâ½øÐй²Í¬Ì½ÌÖ¡£ ÔÚOracleÖдæÔÚÁ½ÖÖÀàÐ͵ÄSQLÓï¾ä£¬Ò»ÀàΪDDLÓï¾ä£¬ËûÃÇÊÇ´ÓÀ´²»»á¹²ÏíʹÓõģ¬Ò²¾ÍÊÇÿ´ÎÖ´ ......
1. NLS_LANG
²ÎÊý×é³É
NLS_LANG
²ÎÊýÓÉÒÔϲ¿·Ö×é³É:
NLS_LANG
=<Language>_<Territory>.<Clients
Characterset>
NLS_LANG
¸÷²¿·Öº¬ÒåÈçÏÂ:
LANGUAGEÖ¸¶¨:
-OracleÏûϢʹÓõÄÓïÑÔ
-ÈÕÆÚÖÐÔ·ݺÍÈÕÏÔʾ
TERRITORYÖ¸¶¨
-»õ±ÒºÍÊý×Ö¸ñʽ
-µØÇøºÍ¼ÆËãÐÇÆÚ¼°ÈÕÆÚµÄÏ°¹ß
CHARACTERSET:
-¿Ø ......
ÏîÄ¿ÀïÒ»¸ö¹¦ÄÜÒªÓõ½Ëæ»úÅÅÐò£¬µ«ÊǺóÀ´ÓÖÒòΪÊý¾ÝÁ¿´óµÄÔÒò£¬Òª·Öҳȥ²éѯÊý¾Ý£¬½á¹ûµ¼Ö²éѯ³öÀ´µÄÊý¾Ý³öÏÖÖظ´¡£
ÔsqlÈçÏÂselect * from ( select row_.*, rownum rownum_ from
(select * from tble order by dbms_random.random) row_ where rownum <= 12) where rownum_ > 10;
ºóÀ´½â¾ö°ì·¨£¬²åÈ ......
Oracle Flashback ¼¼Êõ×ܽá
Flashback ¼¼ÊõÊÇÒÔUndo segmentÖеÄÄÚÈÝΪ»ù´¡µÄ£¬ Òò´ËÊÜÏÞÓÚUNDO_RETENTON²ÎÊý¡£ÒªÊ¹ÓÃflashback µÄÌØÐÔ£¬±ØÐëÆôÓÃ×Ô¶¯³·Ïú¹ÜÀí±í¿Õ¼ä¡£
ÔÚOracle 10gÖУ¬ Flash back¼Ò×å·ÖΪÒÔϳÉÔ±£º Flashback Database£¬ Flashback Drop£¬Flashback Query(·ÖFlashback Query,Flashback Version Query ......
Ò»¡¢³£ÓÃÊý¾ÝÀàÐÍ£º
Number£ºÊý×ÖÀàÐÍ
Int£ºÕûÊýÐÍ
Pls_integer£ºÕûÊýÐÍ£¬²úÉúÒç³öµÄ´íÎó
Binary_integer£ºÕûÊýÐÍ
Char£º¶¨³¤×Ö·û£¬×255¸ö×Ö·û
Varchar2£º±ä³¤×Ö·û£¬×2000¸ö×Ö·û
Long£º±ä³¤×Ö·û£¬×2GB
Date£ºÈÕÆÚÐÍ
Boolean£º²¼¶ûÐÍ
¶þ¡¢¶¨Òå³£Á¿
¸ñʽ£º³£Á¿Ãû constant &nbs ......