Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Oracle ²ÎÊý·ÖÀà ºÍ ²ÎÊýµÄ²é¿´·½·¨


OracleÊý¾Ý¿âϵͳ¸ù¾Ý³õʼ»¯²ÎÊýÎļþinit.oraÖÐÉèÖõIJÎÊýÀ´ÅäÖÃ×ÔÉíµÄÆô¶¯£¬Ã¿¸öʵÀýÔÚÆô¶¯Ö®Ç°£¬Ê×ÏȶÁÈ¡ÕâЩ²ÎÊýÎļþÖÐÉèÖõIJ»Í¬²ÎÊý¡£
OracleϵͳÖеIJÎÊý£¬¸ù¾ÝϵͳʹÓÃÇé¿ö¿ÉÒÔ¼òµ¥·ÖΪÁ½´óÀࣺ
ÆÕͨ²ÎÊý£ºÒ²¾ÍÊÇOracleϵͳÕý³£Ê¹ÓõÄһЩ²ÎÊý£¬
·Ç·²²ÎÊý£º°üÀ¨ÈýÖÖ£¬¹ýʱ²ÎÊý¡¢Ç¿µ÷²ÎÊýºÍÒþ²Ø²ÎÊý¡£
Ëæ×ÅOracleÊý¾Ý¿âа汾µÄ·¢²¼£¬ÏàӦÿ´Î¶¼»áÔö¼Ó»òÕßɾ³ýһЩ²ÎÊý¡£ÏÂÃæ¾ßÌå½éÉÜÈçºÎ²éѯµ±Ç°ÏµÍ³°æ±¾Öеĸ÷ÖÖ²ÎÊýÇé¿ö¡£
 
 Ò»¡¢¹ýʱ²ÎÊý ºÍ Ç¿µ÷²ÎÊý
Oracle Êý¾Ý¿âÖУ¬ÏµÍ³ÌṩÁ˼¸¸öÊÓͼ¿ÉÒԲ鿴ϵͳ²ÎÊýµÄÇé¿ö¡£ÊÓͼ V$OBSOLETE_PARAMETER Öк¬ÓÐËùÓеĹýʱ (obsolete) ºÍÇ¿µ÷ (underscored) ²ÎÊý¡£
ÕâÀïÊ×ÏÈ˵Ã÷Ò»ÏÂʲôÊÇ Oracle µÄ¹ýʱ (obsolote) ºÍÇ¿µ÷ (underscored) ²ÎÊý£¬¹ýʱ²ÎÊý£¬¹ËÃû˼Òå¾ÍÊÇÔÚ Oracle ÒÔÇ°µÄ°æ±¾ÖдæÔÚ£¬µ«ÔÚа汾ÖÐÒѾ­ÌÔÌ­Á˵IJÎÊý£¬ÒѾ­²»ÔÙʹÓ㻶øÇ¿µ÷²ÎÊý£¬ÊÇÖ¸ÄÇЩÔÚа汾Öб£ÁôÁËÏÂÀ´£¬µ«Êdzý·Ç·Ç·²ÐèÒª²»Ï£ÍûÓû§Ê¹ÓõÄÄÇЩ²ÎÊý¡£ÔÚÊÓͼ V$OBSOLETE_PARAMETER ÖУ¬°üº¬ÕâЩ²ÎÊýµÄÃû³ÆºÍÒ»¸ö±êÖ¾×Ö ISSPECIFIED £¬¸Ã±êÖ¾×ÖÓÃÀ´Ö¸³öÕâ¸ö²ÎÊýÊÇ·ñÔÚ init.ora ÎļþÖÐÒÑʵ¼ÊÉèÖᣠÏÂÃæµÄ SQL ½Å±¾ÁгöÁ˵±Ç°ÏµÍ³ÖÐËùÓеĹýʱ²ÎÊýÃû³ÆÒÔ¼°ËüÃÇÊÇ·ñÔÚµ±Ç°ÏµÍ³ÖÐÉ趨¡£ 
/* Formatted on 2010-5-12 17:46:27 (QP5 v5.115.810.9015) */
SELECT   name, isspecified from v$obsolete_parameter;
ÉÏÃæ̸µ½£¬ Oracle ÏµÍ³²¢Ã»Óн« V$OBSOLETE_PARAMETER ÊÓͼÖеÄËùÓвÎÊý¾ù¶ªÆú£¬¶øÊǽ«ÆäÖеÄÒ»²¿·Öת»»ÎªÇ¿µ÷²ÎÊý£¬ÏÂÃæ¾ÍÀ´ÌÖÂÛÈçºÎ²é¿´ÕâЩ²ÎÊýÊÇÒѱ»¶ªÆú»¹ÊDZ»×ª»»¡£Õâ¿ÉÒÔͨ¹ýϵͳÊÓͼ X$KSPPO À´²é¿´£¬¸ÃÊÓͼÖаüº¬Ò»¸öÃûΪ KSPPOFLAG µÄ×ֶΣ¬ÓÃÀ´Ö¸Ã÷¸Ã²ÎÊýÔÚµ±Ç°°æ±¾ÖÐÊDZ»¶ªÆú»¹ÊDZ»Ç¿µ÷£¬¼ÙÈç¸ÃֵΪ 1 £¬Ôò±íʾ¸Ã²ÎÊýÒѱ»¶ªÆú£¬¸ÃֵΪ 2 £¬Ôò±íÃ÷¸Ã²ÎÊýÏÖΪǿµ÷²ÎÊý¡£
/* Formatted on 2010-5-12 17:46:06 (QP5 v5.115.810.9015) */
  SELECT   kspponm, DECODE (ksppoflg,
      &


Ïà¹ØÎĵµ£º

OracleÖ´ÐÐÍⲿÎļþ£º

OracleÖ´ÐÐÍⲿÎļþ£º
c:>sqlplus user/pwd@db
sql>@new.sql
Ö´Ðжà¸ösqlÎļþ:
1.°ÑËùÓеÄÎļþ¶¼·ÅÔÚͬһ¸öĿ¼Ï£¬È»ºóÔÚÃüÁîÐÐÀïÖ´ÐÐÃüÁ
         c:>dir/b > d:\1.sql
   »á°ÑËùÓеÄsqlÎļþÃû¶¼Êä³öµ½Ò»¸ösqlÎļþÖС£
2.ÓÃUltraEdit´ò¿ªÉú³ÉµÄ ......

oracle´ø²ÎÊýÓαêµÄʹÓÃ


¡¡¡¡´ÓÓαêÌáÈ¡Êý¾Ý
¡¡¡¡´ÓÓαêµÃµ½Ò»ÐÐÊý¾ÝʹÓÃFETCHÃüÁÿһ´ÎÌáÈ¡Êý¾Ýºó£¬Óα궼ָÏò½á¹û¼¯µÄÏÂÒ»ÐС£Óï·¨ÈçÏ£º
FETCH cursor_name INTO variable[,variable,...]
¡¡¡¡¶ÔÓÚSELECT¶¨ÒåµÄÓαêµÄÿһÁУ¬FETCH±äÁ¿ÁÐ±í¶¼Ó¦¸ÃÓÐÒ»¸ö±äÁ¿ÓëÖ®Ïà¶ÔÓ¦£¬±äÁ¿µÄÀàÐÍÒ²ÒªÏàͬ¡£
¡¡¡¡Àý£º
SET SERVERIUTPUT ON
DECLARE
......

oracleÖзÖÒ³µÄʵÏÖ·½Ê½.rownumµÄʹÓÃ

¶ÔÓÚrownumÀ´ËµËüÊÇoracleϵͳ˳Ðò·ÖÅäΪ´Ó²éѯ·µ»ØµÄÐеıàºÅ£¬·µ»ØµÄµÚÒ»ÐзÖÅäµÄÊÇ1£¬µÚ¶þÐÐÊÇ2£¬ÒÀ´ËÀàÍÆ£¬Õâ¸öα×ֶοÉÒÔÓÃÓÚÏÞÖƲéѯ·µ»ØµÄ×ÜÐÐÊý£¬¶øÇÒrownum²»ÄÜÒÔÈκαíµÄÃû³Æ×÷Ϊǰ׺¡£
 ¾ÙÀý˵Ã÷£º
ÀýÈç±í£ºstudent(ѧÉú)±í£¬±í½á¹¹Îª£º
ID¡¡¡¡¡¡    char(6)¡¡¡¡¡¡¡¡¡¡ --ѧºÅ
name¡¡¡¡ ......

²éѯOracle×ÊԴʹÓÃÇé¿ö

SELECT trim(NAME) ||'            '|| VALUE from v$parameter
WHERE NAME IN ('sga_max_size','db_cache_size','shared_pool_size',
'shared_pool_reserved_size','large_pool_size','java_pool_size',
'db_block_size','db_block_buffers','log_buffer','sort_area_si ......

oracleÖеÄrownumαÁÐÉî²ã·ÖÎö

¶ÔÓÚ Oracle µÄ rownum ÎÊÌ⣬ºÜ¶à×ÊÁ϶¼Ëµ²»Ö§³Ö>,>=,=,between...and£¬Ö»ÄÜÓÃÒÔÉÏ·ûºÅ(<¡¢<=¡¢!=)£¬²¢·Ç˵ÓÃ>,>=,=,between..and ʱ»áÌáʾSQLÓï·¨´íÎ󣬶øÊǾ­³£ÊDz鲻³öÒ»Ìõ¼Ç¼À´£¬»¹»á³öÏÖËƺõÊÇĪÃûÆäÃîµÄ½á¹ûÀ´£¬ÆäʵÄúÖ»ÒªÀí½âºÃÁËÕâ¸ö rownum αÁеÄÒâÒå¾Í²»Ó¦¸Ã¸Ðµ½¾ªÆ棬ͬÑùÊÇαÁУ¬rownum Ó ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ