ºÍÍøÓÑ̽ÌÖ ÈçºÎѧϰOracle
http://www.inthirties.com/thread-757-1-1.html
ºÜÈÙÐÒ£¬±»ÑûÇëΪCSDNѧϰ´ó±¾ÓªÀïµÄOracleÀÏʦ¡£ÓиöÍøÓÑ·¢ÏûÏ¢¹ýÀ´£¬Ò»Æð̽ÌÖÈçºÎѧϰOracle£¬Ò»ÏÂÊǻظ´£¬ºÍ´ó¼ÒÒ»Æð̽ÌÖ¡£
Ê×ÏÈ£¬ÒªÃ÷È·ÄãµÄ·½ÏòºÍÄ¿±ê¡£
¶ÔÓÚOracleÀ´Ëµ£¬Õâ¸öÌåϵÊDZȽÏÅÓ´óµÄ£¬ËùÒÔÃ÷È·Ò»¸öÄ¿±êºÍÄãµÄ·½ÏòÊÇÔÚѧϰǰÐèҪ˼¿¼µÄÎÊÌâ¡£ ¹ÜÀí£¬¿ª·¢£¬Êý¾ÝÍÚ¾ò»òÕßÊǸü¸ß¼¶µÄÄÚÈÝ¡£
ѧϰµÄÔ½ÉîÈ룬ÐèÒªÁ˽⵽µÄ֪ʶ¾ÍÔ½ÐèÒªÉîÈë¡£
ѧϰµÄʱºò£¬¿ÉÒÔÏÈ´Ó×Ôѧ¿ªÊ¼£¬ÎÒÒ²ÊÇ´Ó×Ôѧ¿ªÊ¼µÄ£¬ÏÈ¿ÉÒÔÑ¡ÔñһЩ»ù´¡µÄÊé¼®×ÅÊÖ£¬´óÖµÄÁ˽âOracleµÄһЩ»ù±¾µÄ֪ʶ£¬¸ÅÄîºÍÌåϵ»ù´¡¡£ Èç¹ûÒ»ÉÏÊÖ£¬´ó¸´ÔÓÁË£¬ÈÝÒ×´òÏûµôÄãµÄ»ý¼«ÐÔ¡£ ´Ó¶øºÜÈÝÒ×Íü¼Ç¡£ ÕÆÎÕµ½Ò»¶¨µÄ»ù´¡ÒԺ󣬾ͿÉÒÔ°´ÄãµÄ·½Ïò½øÐиüÉîÈëµÄһЩѧϰÁË£¬ÓÉÓÚÉîÈëµÄ¹ý³ÌÖÐÊƱØÓÐһЩÄѵãºÍÒɵ㣬ÕâʱºòÄãÐèÒª½èÖúÍøÂçµÄÁ¦Á¿ Í»ÆÆËûÃÇ£¬µ±È»Èç¹ûÕâʱºòÓбȽϺõÄÒýµ¼×Å°ïÄãÒ»Æð½â¾öÕâЩÒɵ㣬ÄѵãµÄ»°£¬»áÓиüºÃµÄЧ¹û¡£
OracleµÄѧϰ²»µ¥µ¥ÊǸöѧµÄ¹ý³Ì£¬ËûÊÇÒ»¸ö·Ç³£¸´ÔÓµÄÌåϵ£¬Èç¹ûµ¥µ¥ÊÇѧ£¬½ö½öÊÇÕÆÎÕһЩµãÉϵÄ֪ʶ£¬ÕâÑùµÄ֪ʶÊÇÏÁյģ¬ÊǺÜÈÝÒ×ÈÃÄãÔÚһЩÉæ¼°µ½ÌåϵÉϵÄÎÊÌâʱ£¬²úÉúÀ§»óµÄ£¬ËùÒÔOracleµÄѧϰ£¬¸üҪͻ³ö¸ö“Ï°”£¬ ÈçºÎ×öºÃÕâ¸ö“Ï°”£¬¶ÔÓÚÄãµÄÉîÈëÊǺÜÖØÒªµÄ£¬ Òª¾³£¹á´©ÐԵĽøÐÐ˼¿¼£¬Ò»¸öÎÊÌâ³öÏÖÁËÒÔºó£¬ÓÐʱ»¹Òª¶à´ÓÃ棬²ã´ÎÉÏÈ¥½øÐÐ˼¿¼ºÍ×ܽᣬ֪ʶµã²ÅÄÜÓÐЧµÄ·á¸»ÆðÀ´£¬¶ø²»ÖÁÓÚÄÇôµ¥±¡£¬ÕâÑù²ÅÄÜÔÚÎÊÌâÖÐÓÐÒ»¸öºÜ׼ȷµÄ˼¿¼·½Ïò¡£
ѧϰOracleÊÇÒ»¸ö²»Ò׵Ĺý³Ì£¬ËùÒÔҪѧ»áÈ¥¼¤·¢×Ô¼ºÑ§Ï°µÄÐËȤ£¬ÐËȤÊÇ×îºÃµÄÀÏʦ£¬ÌرðÊÇÉîÈëµÄѧϰ£¬ÓкܶàÎÊÌâµÄ³öÏÖÊÇ»áÈÃÄã²»ÖªËù´ëµÄ£¬Èç¹ûÄãÓÐÐËȤÁË£¬ÕâÀïµÄÎÊÌâÈ´¿ÉÒÔ³ÉΪÄã²»¶Ï̽Ë÷²»¶Ï½ø²½µÄÒýÏߣ¬¶ø²»ÖÁÓÚ·ÅÆú¡£
ËÑË÷¸ü¶àÏà¹ØÖ÷ÌâµÄÌû×Ó: oracle study
ÌṩOracle¹ÜÀí/¹ÊÕÏ´¦Àí/ÓÅ»¯/°²×°/RAC/±¸·Ý»Ö¸´¼¼Êõ·þÎñ,ÌṩרҵµÄOracleÅàѵºÍ×Éѯ·þÎñ
רҵÂÛ̳ http://www.inthirties.com
¼¼Êõ²©¿Í http://blog.csdn.net/inthirties
¸öÈËÕ¾µã http://blog.inthirties.com
Ïà¹ØÎĵµ£º
ASM
ASM¿ÉÒÔÌõ´ø»¯ºÍ¾µÏñ´ÅÅÌ£¬Òò´Ë¿ÉÒÔÔÚÊý¾Ý¿â±¸¼ÓÔصÄÇé¿öÏÂÌí¼Ó¡¢É¾³ý´ÅÅÌ¡¢ÒÔ¼°×Ô¶¯Æ½ºâIO¡£
ASM²»ÊÇÒ»¸öÎļþϵͳ£¬ËùÒÔÎÞ·¨´Ó²Ù×÷ϵͳ·ÃÎÊASM´æ´¢µÄÎļþ£¬¶ÔÓÚʹÓÃASMµÄÊý¾Ý¿âÖ»ÄÜÓÃRMAN½øÐб¸·ÝºÍ»Ö¸´¡£
ASM×÷Ϊµ¥¶ÀµÄORACLEʵÀýʵʩ£¬Ö»ÓÐASMÔËÐÐʱÊý¾Ý¿â²ÅÄÜ·ÃÎÊ¡£
Ò»¡¢´ÅÅÌ×é
ASMÌṩÁËÈýÖдÅÅÌ×éÀà ......
¾³£×öһЩÊý¾Ý¿â²Ù×÷£¬ÔÚ½¨Á¢±íµÄʱºò£¬Ñ¡Ôñ×Ö¶ÎÀàÐÍʱ£¬ÓйØ×Ö·û´®ÀàÐ͵ÄÑ¡Ôñ×ÜÊÇÓÐЩģºý¡£
¡£char
¡£varchar2
¡£nvarchar2
¡£nchar
¹ØÓÚÉÏÃæÁ½¸öÎÒÓеãÓ¡Ïó¡£CHARµÄ³¤¶ÈÊǹ̶¨µÄ£¬¶øVARCHAR2µÄ³¤¶ÈÊÇ¿ÉÒԱ仯µÄ£¬±ÈÈ磬´æ´¢×Ö·û´®“abc"£¬¶ÔÓÚCHAR (20)£¬±íʾÄã´æ´¢µÄ×Ö·û½«Õ¼20¸ö×Ö½Ú(°üÀ¨17¸ö¿Õ×Ö·û)£ ......
1.¾¡¿ÉÄܵØʹÓð󶨱äÁ¿ ²»Óÿª¹ØCURSOR_SHARING=FORCE
Èç¹ûÄãÔ¸Ò⣬Õâ¸öÌØÐÔ»áʵÏÖÒ»¸ö×Ô¶¯°ó¶¨Æ÷£¨auto-binder£©¡£
Èç¹ûÓÐÒ»¸ö²éѯ±àдΪSELECT * from EMP WHERE EMPNO = 1234£¬×Ô¶¯°ó¶¨Æ÷»áÇÄÎÞÉùÏ¢µØ°ÑËü¸Äд³É
SELECT * from EMP WHERE EMPNO = :x¡£ÕâȷʵÄܶ¯Ì¬µØ´ó´ó¼õÉÙÓ²½âÎöÊý£¬²¢¼õÉÙÇ°ÃæÌÖÂÛµ ......
ÕâÒ»ÕÂÖУ¬ÎÒÃǽ«·ÖÎö¹¹³ÉÊý¾Ý¿âºÍʵÀýµÄ8 ÖÖÎļþÀàÐÍ¡£
ÓëʵÀýÏà¹ØµÄÎļþÖ»ÓУº
²ÎÊýÎļþ£¨parameter file£©£ºÕâЩÎļþ¸æËßOracle ʵÀýÔÚÄÄÀï¿ÉÒÔÕÒµ½¿ØÖÆÎļþ£¬²¢ÇÒÖ¸
¶¨Ä³Ð©³õʼ»¯²ÎÊý£¬ÕâЩ²ÎÊý¶¨ÒåÁËijÖÖÄÚ´æ½á¹¹Óжà´óµÈÉèÖá£ÎÒÃÇ»¹»á½éÉÜ´æ´¢Êý¾Ý¿â²Î
ÊýÎļþµÄÁ½ÖÖÑ¡Ôñ¡£
¸ú×ÙÎļþ£¨trace file£ ......
°Ñ×Ô¼ºËѼ¯µÄ×ÊÁÏÌù³öÀ´£¬Ñ§Ï°¹¤×÷·½±ãÕ¼¡£
SQLÖеĵ¥¼Ç¼º¯Êý
1.ASCII
·µ»ØÓëÖ¸¶¨µÄ×Ö·û¶ÔÓ¦µÄÊ®½øÖÆÊý;
SQL> select ascii('A') A,ascii('a') a,ascii('0') zero,ascii(' ') space from dual;
A A ZERO SPACE
--------- --------- --------- ---------
65 97 48 32
2.CHR
¸ø³öÕûÊý,·µ»Ø¶ÔÓ¦µÄ×Ö·û;
SQ ......