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

Oracle PackageÖд洢¹ý³Ì·µ»ØÓαê

Ò»¡¢Oracle PackageµÄ×÷ÓÃ
1¡¢¶¨ÒåÓë˵Ã÷
  a. Ïà¹Ø¶ÔÏó£¨×Ô¶¨ÒåÀàÐÍ¡¢º¯Êý¡¢´æ´¢¹ý³ÌµÈ£©µÄ·â×°
  b. ³ÌÐò°üµÄ¸÷²¿·Ö
    - ³ÌÐò°ü¹æ¸ñ˵Ã÷
          ÉùÃ÷×Ó³ÌÐò
   - ³ÌÐò°üÖ÷Ìå
          ¶¨Òå×Ó³ÌÐò
2¡¢Ê¹ÓóÌÐò°üµÄÓŵã
  - Ä£¿é»¯
  - ¸üÇáËɵÄÓ¦ÓóÌÐòÉè¼Æ
  - ÐÅÏ¢Òþ²Ø
  - ÐÂÔö¹¦ÄÜ
  - ÐÔÄܸü¼Ñ
3¡¢¹«ÓÐÏîºÍ˽ÓÐÏîµÄÇø±ð
¹«ÓÐÏÔÚ³ÌÐò°ü˵Ã÷²¿·Ö¶¨ÒåµÄ±äÁ¿¡¢¹ý³Ì¡¢º¯Êý
˽ÓÐÏÔÚ³ÌÐò°üÖ÷Ì岿·Ö¶¨ÒåµÄ±äÁ¿¡¢¹ý³Ì¡¢º¯Êý
¹«ÓÐÏî                          ˽ÓÐÏî
¿ÉÒÔÔÚ³ÌÐò°üÖ®ÍâÒýÓà                  ²»ÄÜÔÚ³ÌÐò°üÖ®ÍâÒýÓÃ
ÊÇÔÚ³ÌÐò°ü¹æ¸ñ˵Ã÷Öж¨ÒåµÄ                ÊÇÔÚ³ÌÐò°üÖ÷ÌåÖж¨ÒåµÄ
ÓÃÓÚÈ«¾ÖÄ¿µÄ                       ÓÃÓÚ¾Ö²¿Ä¿µÄ  
 
¶þ¡¢¶¨ÒåPackage
ÓÃÓÚ¶¨ÒåPackageÖÐʹÓõÄ×Ô¶¨ÒåÀàÐÍ¡¢º¯Êý¡¢´æ´¢¹ý³ÌµÈ...
ʾÀý£º
CREATE OR REPLACE PACKAGE PKG_SYS_SEARCH is
       --¶¨Òå·µ»ØµÄÓαê
       TYPE VLD_RESULT IS REF CURSOR;
       --´ø·µ»ØÀàÐÍΪÓαê±äÁ¿µÄ´æ´¢¹ý³Ì
       PROCEDURE GET_SEARCH_RESULT(SEARCH_CONDITION IN VARCHAR2,RETURN_VAL OUT VLD_RESULT);
END PKG_SYS_SEARCH;
Èý¡¢Íê³ÉPackage Body
¶ÔPackageÖеÄ×Ô¶¨ÒåÀàÐÍ¡¢º¯Êý¡¢´æ´¢¹ý³ÌµÈ¶ÔÏóµÄ¾ßÌåʵÏÖ¡£
ʾÀý£º
CREATE OR REPLACE PACKAGE BODY PKG_SYS_SEARCH
AS
  PROCEDURE GET_SEARCH_RESULT(SEARCH_CONDITION IN VARCHAR2,RETURN_VAL OUT VLD_RESULT)
  AS
  BEGIN
    --ÉèÖ÷µ»ØÖµ
   


Ïà¹ØÎĵµ£º

ÔÚORACLE 10gµÇ½´´½¨ÐÂÓû§

ÔÚORACLE 10gµÇ½´´½¨ÐÂÓû§£º
 
ÔÚORACLE 10gµÇ½´´½¨ÐÂÓû§£º
1¡¢ÓÃsys Óû§µÇ¼
2¡¢create user test1 identified by test123;
3¡¢grant connect,resource to test1;
ÓÃtest1µÇ½£º sqlplus test1/test123
°²×°ÍêÁËOracleÊý¾Ý¿â£¬ÍüÁËÔÚ¿ÚÁî¹ÜÀíÖиøSCOTT½âËøÔõô°ì
 
 
 
ÎÊÌâ²¹³ä ......

¹ØÓÚÊý¾Ý¿â·½ÃæoracleÖг£Óõ½µÃº¯Êý

º¯ÊýÊÇÒ»ÖÖÓÐÁã¸ö»ò¶à¸ö²ÎÊý²¢ÇÒÓÐÒ»¸ö·µ»ØÖµµÄ³ÌÐò¡£ÔÚSQLÖÐOracleÄÚ½¨ÁËһϵÁк¯Êý£¬ÕâЩº¯Êý¶¼¿É±»³ÆΪSQL»òPL/SQLÓï¾ä£¬º¯ÊýÖ÷Òª·ÖΪÁ½´óÀࣺ
µ¥Ðк¯Êý£¬×麯Êý
SQLÖеĵ¥Ðк¯Êý
SQLºÍPL/SQLÖÐ×Ô´øºÜ¶àÀàÐ͵ĺ¯Êý£¬ÓÐ×Ö·û¡¢Êý×Ö¡¢ÈÕÆÚ¡¢×ª»»¡¢ºÍ»ìºÏÐ͵ȶàÖÖº¯ÊýÓÃÓÚ´¦Àíµ¥ÐÐÊý¾Ý£¬Òò´ËÕâЩ¶¼¿É±»Í³³ÆΪµ¥Ðк¯Êý¡£ ......

ORACLE NLS_LANG²ÎÊýÏê½â

NLS_LANG²ÎÊýÓÉÒÔϲ¿·Ö×é³É:
NLS_LANG= <Language>_ <Territory>. <Clients Characterset>
ÆäÖУº
LANGUAGEÖ¸¶¨:
-OracleÏûϢʹÓõÄÓïÑÔ
-ÈÕÆÚÖÐÔ·ݺÍÈÕÏÔʾ
TERRITORYÖ¸¶¨
-»õ±ÒºÍÊý×Ö¸ñʽ
-µØÇøºÍ¼ÆËãÐÇÆÚ¼°ÈÕÆÚµÄÏ°¹ß
CHARACTERSET:
-¿ØÖÆ¿Í»§¶ËÓ¦ÓóÌÐòʹÓõÄ×Ö·û¼¯ ......

oracle µÝ¹é²éѯ


Start with...Connect By×Ó¾äµÝ¹é²éѯһ°ãÓÃÓÚÒ»¸ö±íά»¤Ê÷ÐνṹµÄÓ¦Óá£
´´½¨Ê¾Àý±í£º
CREATE TABLE TBL_TEST
(
  ID    NUMBER,
  NAME  VARCHAR2(100 BYTE),
  PID   NUMBER             &nbs ......

Oracle 10.2.0.3 Patch°²×°

      Oracle 10.2.0.1µÄPatchµµÖð½¥ÐγÉÁ˼Ò×åÌåϵÁË,ÏÖÔÚÈôó¼ÒÀ´ÈÏʶһÏÂÕâ¸öÌåϵ°É!µ½Ä¿Ç°Ëù·¢²¼µÄÖ÷ÒªµÄPatchÓÐ10.2.0.2,10.2.0.3,10.2.0.4,10.2.0.4.1,10.2.0.4.2,10.2.0.4.3,10.2.0.5.
      ֮ǰÔÚ32λºÍ64λLinuxÏ°²×°Á˽ÏΪÎȶ¨µÄOracle 10G for Linux x86º ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ