Ð޸ĵçÄÔµÄÖ÷»úÃûoracle agent ·þÎñͻȻÎÞ·¨Æô¶¯
½ñÌìÓöµ½ÕâÑùµÄÎÊÌ⣬ÐÞ¸ÄÖ÷»úÃûºóoracle agent ·þÎñͻȻÎÞ·¨Æô¶¯£¬ÉÏÍøÕÒÁËÒ»»á×öÈçϲÙ×÷¡£¿ÉÒÔÕý³£Ê¹ÓÃÁË
1¡¢½«%oracle_home\ora92\network\adminϵÄlistener.oraºÍtnsnames.oraÄÚµÄËùÓÐÔÖ÷»úÃû¸ÄΪÏÖÓÐÖ÷»úÃû»òÕ߹̶¨IPµØÖ·£¨ÒÔ±ã¿Í»§¶Ë»úÆ÷Äܹ»·ÃÎÊServer£©£¬µ±È»Èç¹ûϵͳÖØÆôºó×Ô¶¯¸ÄÕý£¬¿ÉºöÂԴ˲½Öè¡£
2¡¢½«%oracle_home\ora92\network\agentϵÄservices.oraÄÚµÄÔÖ÷»úÃûÒ²ÐÞ¸ÄΪÏÖÓÐÖ÷»úÃû»òÕßIPµØÖ·¡£
3¡¢½«%oracle_home\ora92\network\agentĿ¼ÏµÄËùÓÐ*.qÎļþÈ«²¿É¾³ý£¬ÖØÆôµçÄÔ¡£
Ïà¹ØÎĵµ£º
Oracle°æ±¾µÄÇø±ðÓÐÄÇЩ
http://database.51cto.com/art/201004/196494.htm
http://database.51cto.com
2010-04-23 15:20 ØýÃû »¥ÁªÍø ÎÒÒªÆÀÂÛ(
0
)
ͻ񻣼
ÒÔϵÄÎÄÕÂÖ÷ÒªÊǶÔOracle°æ±¾µÄÇø±ðµÄ¼òÊö£¬Èç¹ûÄã¶ÔÆäµÄÏà¹ØÄÚÈݸÐÐËȤµÄ
»°£¬ÒÔϵÄÎÄÕÂÖ÷Òª¾ÍÊǶÔÆäÏà¹ØÄÚÈÝµÄ ......
·ÖÒ³²éѯ¸ñʽ£º
SELECT * from
(
SELECT A.*, ROWNUM RN
from (SELECT * from TABLE_NAME) A
WHERE ROWNUM <= 40
)
WHERE RN >= 21
ÆäÖÐ×îÄÚ²ãµÄ²éѯSELECT * from TABLE_NAME±íʾ²»½øÐзҳµÄÔʼ²éѯÓï¾ä¡£ROWNUM <= 40ºÍRN >= 21¿ØÖÆ·ÖÒ³²éѯµÄÿҳµÄ·¶Î§¡£
ÉÏÃæ¸ø³öµÄÕâ¸ö·ÖÒ³²éѯÓï¾ä£¬ÔÚ´ó¶à ......
ÉÏһƪÎÄÕÂдÁËÒ»¸öoracleµÄÒ»¸öÐÐתÁеÄÀý×Ó£¬ÀïÃæÓõ½ÁËoracleÖÐÖØÒªµÄº¯Êý decode,ÕâƪÎÄÕ¾ÍÀ´¼òµ¥µÄѧϰÕâ¸öº¯Êý
DECODEº¯ÊýºÍÎÒÃÇÓïÑԽṹÖеÄÌõ¼þÓï¾ä£¨IF£©ÏàËÆ¡£Ëü½«ÊäÈëÊýÖµÓ뺯ÊýÖеIJÎÊýÁбíÏà±È½Ï£¬¸ù¾ÝÊäÈëÖµ·µ»ØÒ»¸ö¶ÔÓ¦Öµ¡£
DECODEº¯ÊýÏ൱ÓÚÒ»Ìõ¼þÓï¾ä(IF).Ëü½«ÊäÈëÊýÖµÓ뺯ÊýÖеIJÎÊýÁбíÏà±È½Ï£¬¸ù¾ÝÊ ......
create or replace type mytype IS TABLE OF varchar2(20);
declare type1 mytype :=mytype('1','2','3','4');
i number:=1;
var_str varchar(20):='liaomin';
begin
type1.EXTEND;
type1(type1.COUNT):=var_str;
loop
dbms_output.put_line(type1(i));
i:=i+1;
exit when i=type1.count+1; ......
˵Ã÷:ÏÂÎÄÖеÄһЩ˵Ã÷ºÍʾÀý´úÂëÕª×ÔCSDN,Ë¡²»Ò»Ò»Ö¸Ã÷³ö´¦,ÔÚ´ËÒ»²¢¶ÔÏà¹Ø×÷Õß±íʾ¸Ðл!
¡¡¡¡1 Óï·¨
¡¡¡¡ÔÚOracleÖУ¬¿ÉÒÔ´´½¨ÒÔÏÂÁ½ÖÖÁÙʱ±í£º
¡¡¡¡1) »á»°ÌØÓеÄÁÙʱ±í
¡¡¡¡CREATE GLOBAL TEMPORARY ( )
¡¡¡¡ON COMMIT PRESERVE ROWS£»
¡¡¡¡2) ÊÂÎñÌØÓеÄÁÙʱ±í
¡¡¡¡CREATE GLOBAL TEMPORARY ( )
¡¡¡¡O ......