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

Oracle ÃÜÂëÎļþѧϰ

½ñÌìÔÚÍøÉÏÂҹ䣬¿´µ½Ò»Æª²»´íµÄÎÄÕ£¬¹ØÓÚORACLEÃÜÂëÎļþµÄ£¬ÀíÂÛѧϰ+¸öÈËʵ¼ù£¬ºÇºÇ£¬¸´ÖƹýÀ´£¬·½±ãÒÔºóѧϰ¡£
===============================================================================
ÀíÂÛ²¿·Ö
Oracle¹ØϵÊý¾Ý¿âϵͳÒÔÆä׿ԽµÄÐÔÄÜ»ñµÃÁ˹㷺µÄÓ¦Ó㬶ø±£Ö¤Êý¾Ý¿â°²È«ÐÔÊÇÊý¾Ý¿â¹ÜÀí¹¤×÷µÄÖØÒªÄÚÈÝ¡£±¾ÎÄÔÚ×ܽáOracleÊý¾Ý¿â°²È«¹ÜÀí¹¤×÷µÄ»ù´¡ÉÏ£¬¶ÔOracleÊý¾Ý¿âϵͳÃÜÂëÎļþµÄ´´½¨¡¢Ê¹ÓúÍά»¤×÷ÁËÏêϸµÄ½éÉÜ£¬¹©´ó¼Ò²Î¿¼¡£
ÔÚOracleÊý¾Ý¿âϵͳÖУ¬Óû§Èç¹ûÒªÒÔÌØȨÓû§Éí·Ý£¨INTERNAL£¯SYSDBA£¯SYSOPER£©µÇ¼OracleÊý¾Ý¿â¿ÉÒÔÓÐÁ½ÖÖÉí·ÝÑéÖ¤µÄ·½·¨£º¼´Ê¹ÓÃÓë²Ù×÷ϵͳ¼¯³ÉµÄÉí·ÝÑéÖ¤»òʹÓÃOracleÊý¾Ý¿âµÄÃÜÂëÎļþ½øÐÐÉí·ÝÑéÖ¤¡£Òò´Ë£¬¹ÜÀíºÃÃÜÂëÎļþ£¬¶ÔÓÚ¿ØÖÆÊÚȨÓû§´ÓÔ¶¶Ë»ò±¾»úµÇ¼OracleÊý¾Ý¿âϵͳ£¬Ö´ÐÐÊý¾Ý¿â¹ÜÀí¹¤×÷£¬¾ßÓÐÖØÒªµÄÒâÒå¡£
OracleÊý¾Ý¿âµÄÃÜÂëÎļþ´æ·ÅÓг¬¼¶Óû§INTERNAL£¯SYSµÄ¿ÚÁî¼°ÆäËûÌØȨÓû§µÄÓû§Ãû£¯¿ÚÁËüÒ»°ã´æ·ÅÔÚORACLE_HOME£ÜDATABASEĿ¼Ï¡£
Ò»¡¢ÃÜÂëÎļþµÄ´´½¨
ÔÚʹÓÃOracle Instance Manager´´½¨Ò»Êý¾Ý¿âʵÀýµÄʱºî£¬ÔÚORACLE_HOME£ÜDATABASEĿ¼Ï»¹×Ô¶¯´´½¨ÁËÒ»¸öÓëÖ®¶ÔÓ¦µÄÃÜÂëÎļþ£¬ÎļþÃûΪPWDSID.ORA£¬ÆäÖÐSID´ú±íÏàÓ¦µÄOracleÊý¾Ý¿âϵͳ±êʶ·û¡£´ËÃÜÂëÎļþÊǽøÐгõʼÊý¾Ý¿â¹ÜÀí¹¤×÷µÄ»ù´£ÔÚ´ËÖ®ºó£¬¹ÜÀíÔ±Ò²¿ÉÒÔ¸ù¾ÝÐèÒª£¬Ê¹Óù¤¾ßORAPWD.EXEÊÖ¹¤´´½¨ÃÜÂëÎļþ£¬ÃüÁî¸ñʽÈçÏ£º
C:£Ü >ORAPWD FILE=£¼FILENAME £¾ PASSWORD =£¼PASSWORD £¾ ENTRIES=< MAX_USERS >
¸÷ÃüÁî²ÎÊýµÄº¬ÒåΪ£º
FILENAME£ºÃÜÂëÎļþÃû£»
PASSWORD£ºÉèÖÃINTERNAL£¯SYSÕʺŵĿÚÁ
MAX_USERS£ºÃÜÂëÎļþÖпÉÒÔ´æ·ÅµÄ×î´óÓû§Êý£¬¶ÔÓ¦ÓÚÔÊÐíÒÔSYSDBA£¯SYSOPERȨÏ޵ǼÊý¾Ý¿âµÄ×î´óÓû§Êý¡£ÓÉÓÚÔÚÒÔºóµÄά»¤ÖУ¬ÈôÓû§Êý³¬³öÁË´ËÏÞÖÆ£¬ÔòÐèÒªÖؽ¨ÃÜÂëÎļþ£¬ËùÒԴ˲ÎÊý¿ÉÒÔ¸ù¾ÝÐèÒªÉèÖõôóһЩ¡£
ÓÐÁËÃÜÂëÎļþÖ®ºó£¬ÐèÒªÉèÖóõʼ»¯²ÎÊýREMOTE_LOGIN_PASSWORDFILEÀ´¿ØÖÆÃÜÂëÎļþµÄʹÓÃ״̬¡£
¶þ¡¢ÉèÖóõʼ»¯²ÎÊýREMOTE_LOGIN_PASSWORDFILE
ÔÚOracleÊý¾Ý¿âʵÀýµÄ³õʼ»¯²ÎÊýÎļþÖУ¬´Ë²ÎÊý¿ØÖÆ×ÅÃÜÂëÎļþµÄʹÓü°Æä״̬¡£Ëü¿ÉÒÔÓÐÒÔϼ¸¸öÑ¡Ï
NONE£ºÖ¸Ê¾Oracleϵͳ²»Ê¹ÓÃÃÜÂëÎļþ£¬ÌØȨÓû§µÄµÇ¼ͨ¹ý²Ù×÷ϵͳ½øÐÐÉí·ÝÑéÖ¤£»
EXCLUSIVE£ºÖ¸Ê¾Ö»ÓÐÒ»¸öÊý¾Ý¿âʵÀý¿ÉÒÔʹÓôËÃÜÂëÎļþ¡£Ö»ÓÐÔÚ´ËÉèÖÃϵÄÃÜÂëÎļþ¿ÉÒÔ°üº¬ÓгýINTERNAL£¯SYSÒÔÍâµÄÓû§ÐÅÏ¢£¬¼´ÔÊÐí½«ÏµÍ³È¨ÏÞSYSOPER£¯SYSDBAÊ


Ïà¹ØÎĵµ£º

Oracle¶¯Ì¬ÐÔÄܱí

±¾ÊÓͼ°üÀ¨Shared poolÖÐSQLÓï¾äµÄÍêÕûÎı¾£¬Ò»ÌõSQLÓï¾ä¿ÉÄֳܷɶà¸ö¿é±»±£´æÓÚ¶à¸ö¼Ç¼ÄÚ¡£
V$SQLTEXTÖеij£ÓÃÁÐ
HASH_VALUE£ºSQLÓï¾äµÄHashÖµ
ADDRESS£ºsqlÓï¾äÔÚSGAÖеĵØÖ·
SQL_TEXT£ºSQLÎı¾¡£
PIECE£ºSQLÓï¾ä¿éµÄÐòºÅ
V$SQLTEXTÖеÄÁ¬½ÓÁÐ
Column      View     ......

Oracle¼ÆËãʱ¼ä²î±í´ïʽ

--»ñÈ¡Á½Ê±¼äµÄÏà²îºÀÃëÊý
select ceil((To_date('2008-05-02 00:00:00' , 'yyyy-mm-dd hh24-mi-ss') - To_date('2008-04-30 23:59:59' , 'yyyy-mm-dd hh24-mi-ss')) * 24 * 60 * 60 * 1000) Ïà²îºÀÃëÊý from DUAL;
/*
Ïà²îºÀÃëÊý
----------
  86401000
1 row selected
*/
--»ñÈ¡Á½Ê±¼äµÄÏà²îÃëÊý
select ce ......

Oracle·ÖÎöº¯ÊýÓ¦ÓÃ(Analytic Functions)

Oracle ·ÖÎöº¯ÊýʹÓýéÉÜ
   ·ÖÎöº¯ÊýÊÇoracle816ÒýÈëµÄÒ»¸öȫеĸÅÄî,ΪÎÒÃÇ·ÖÎöÊý¾ÝÌṩÁËÒ»ÖÖ¼òµ¥¸ßЧµÄ´¦Àí·½Ê½.ÔÚ·ÖÎöº¯Êý³öÏÖÒÔÇ°,ÎÒÃDZØÐëʹÓÃ×ÔÁª²éѯ,×Ó²éѯ»òÕßÄÚÁªÊÓͼ,ÉõÖÁ¸´ÔӵĴ洢¹ý³ÌʵÏÖµÄÓï¾ä,ÏÖÔÚÖ»ÒªÒ»Ìõ¼òµ¥µÄsqlÓï¾ä¾Í¿ÉÒÔʵÏÖÁË,¶øÇÒÔÚÖ´ÐÐЧÂÊ·½ÃæÒ²ÓÐÏ൱´óµÄÌá¸ß.ÏÂÃæÎÒ½«Õë¶Ô·ÖÎöº¯ ......

Oracleɾ³ýÖظ´Ðд«ÖDz¥¿Í

 ²éѯ¼°É¾³ýÖظ´¼Ç¼µÄSQLÓï¾ä
1¡¢²éÕÒ±íÖжàÓàµÄÖظ´¼Ç¼£¬Öظ´¼Ç¼ÊǸù¾Ýµ¥¸ö×ֶΣ¨peopleId£©À´ÅжÏ
select * from people
where peopleId in (select   peopleId from   people group by   peopleId having count(peopleId) > 1)
2¡¢É¾³ý±íÖжàÓàµÄÖظ´¼Ç¼£¬Öظ´¼Ç¼ÊǸù¾Ý ......

Oracle¸´Öƽâ¾ö·½°¸

ת×Ô£ºhttp://tech.it168.com/a2009/1023/788/000000788673.shtml
1¡¢·¶Î§
¡¡¡¡±¾ÎÄÌÖÂÛµÄÊÇOracleÊý¾Ý¿âÌṩµÄÊý¾Ý¸´ÖÆ»úÖÆ£¬ËùÌÖÂ۵Ľâ¾ö·½°¸È«²¿Óëƽ̨Î޹ء£
¡¡¡¡2¡¢½éÉÜ
¡¡¡¡¸´ÖÆÊÇÄ¿±êÊý¾Ý¿âÓëÔ´Êý¾Ý¿âÖ®¼äÊý¾Ý±£³Öͬ²½µÄÒ»ÖÖ»úÖÆ£¬¸´ÖÆ¿ÉÒԷֳɲ»Í¬µÄÀàÐÍ£¬È磺
¡¡¡¡2.1Êý¾Ý¿âÄڵĸ´ÖÆ
¡¡¡¡ÔÚÕâÖÖÇé¿öÏ£¬Ò»¸ö ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ