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

Oracle 10G Êý¾Ý¿âÎļþĿ¼½á¹¹

ÔÚOracle Database 10gÖÐ,OracleµÄĿ¼½á¹¹ÊÇÓÉOracle_Base¼°Æä×ÓĿ¼Oracle_Home¡¢admin¡¢flash_recovery_areaºÍoradataĿ¼¹¹³ÉµÄ¡£Îª·½±ãÌÖÂÛ£¬ÓÃOracle_Base´ú±íOracleĿ¼Ê÷µÄ¸ù£¬ÓÃOracle_Home±íʾ¸ùĿ¼ÏµÄÖ÷Ŀ¼¡£
1.Oracle_BaseĿ¼
Oracle_Base´ú±íOracleĿ¼Ê÷µÄ¸ù¡£Èç¹ûʹÓÃOracle Universal Installer½øÐа²×°,ÔòOracle_BaseÊÇÖ¸system_drive:\oracle\product\10.2.0¡£
2.Oracle_HomeĿ¼
Oracle_HomeÖ÷Ŀ¼λÓÚsystem_drive:\Oracle_Base֮ϣ¬Ëü°üº¬ÓëOracleÈí¼þÔËÐÐÓйصÄ×ÓĿ¼ºÍÍøÂçÎļþÒÔ¼°Ñ¡¶¨µÄ×é¼þµÈ£»ÈôÔÚÖ÷»úÉϵÚÒ»´ÎÇÒÖ»°²×°ÁËOracleÊý¾Ý¿â,ûÓÐÆäËûOracle²úÆ·£¬ÔòʹÓÃĬÈϵÄÖ÷Ŀ¼\db_1£»Èç¹ûÔÚͬһ̨Ö÷»úµÄͬһ¸ö¸ùĿ¼Ï°²×°¶à¸ö²úÆ·»ò°²×°Á˵Ú2´Î£¬ÔòOracle_HomeÖ÷Ŀ¼»áÒÔdb_nµÄÐÎʽ³öÏÖ,¼´db_2¡¢db_3µÈ¡£ÕâÒ²ÊÇΪʲôÔÚOracle_BaseĿ¼¿ÉÒÔÓжà¸öOracle_HomeĿ¼µÄÔµ¹Ê¡£
Oracle_HomeĿ¼ÖаüÀ¨µÄÖ÷Òª×ÓĿ¼ÓÐ:
?\BIN——Ö÷Òª°üº¬ÓÃÓÚÊý¾Ý¿â¹ÜÀíµÄ¸÷ÖÖÃüÁîµÈ¡£
?\css——ÓëOracle Cluster Synchronization·þÎñÓйصÄÎļþ¡£
?\dbs——´æ·ÅÊý¾Ý¿â·þÎñÆ÷¶ËµÄ²ÎÊýÎļþSpfile¡£
?\demo——´æ·ÅÊý¾Ý¿âʵÀýģʽµÄ½Å±¾µÈ¡£
? \install——ÓÃÓÚ´æ´¢ORACLE°²×°ºóµÄ¶Ë¿ÚºÅ,iSQL*PlusÒÔ¼°Enterprise Manager Database ControlÆô¶¯²¢µÇ¼µÄ·½Ê½µÈ¡£
?\network\admin——ÓйؼàÌýÆ÷listener.oraºÍsqlnet.oraÒÔ¼°tnsnames.oraµÈ¡£
?\sysman\config——ÓÃÓÚÓëOracle Enterprise ManagementÓйصĶ˿ڹÜÀíµÈ¡£
3.adminĿ¼
Êý¾Ý¿â¹ÜÀíÎļþ¾ù´æ´¢ÔÚoracle_base\admin\db_nameĿ¼Ï¡£¸÷¸ö×ÓĿ¼µÄÖ÷Òªº¬ÒåÈçÏÂ:
?\bdump——ºǫ́½ø³Ì¸ú×ÙÎļþ¡£
?\cdump——ÐÅϢת´¢Îļþ£¨core dump£©¡£
?\create——Êý¾Ý¿â´´½¨Îļþ¡£
?\exp——Êý¾Ý¿âµ¼³öÎļþ¡£
?\pfile——³õʼ»¯²ÎÊýÎļþ¡£
?\udump——Óû§SQL×·×ÙÎļþ¡£
4.OradataĿ¼
Êý¾Ý¿âÎļþ´æ´¢ÔÚOracle_Base\oradata\db_nameĿ¼ÏÂ,¸ÃĿ¼Ö÷Òª´æ´¢Êý¾Ý¿âµÄ¿ØÖÆÎļþ¡¢Êý¾ÝÎļþ¡¢ÖØ×öÈÕÖ¾Îļþ¡£ÆäÖÐ*.dbfÎļþ¶ÔÓ¦Êý¾Ý¿âÖÐÿ¸ö±í¿Õ¼ä£».ctlÎļþΪ¿ØÖÆÎļþ£».logÎļþ¶ÔÓ¦ÖØ×öÈÕÖ¾Îļþ×é¼°Æä³ÉÔ±¡£
5.flash_recovery_areaĿ¼
flash_recovery_areaĿ¼´æ´¢²¢¹ÜÀíÓ뱸·ÝºÍ»Ö¸´ÓйصÄÎļþ¡£Ëü°üº¬ÏµÍ³ÖÐÿ¸öÊý


Ïà¹ØÎĵµ£º

¡¾Oracle¡¿SQLÓÅ»¯µÄÖØÒª¹¤¾ß AUTOTRACE

¡¾AUTOTRACE¡¿SQLÓÅ»¯µÄÖØÒª¹¤¾ß--AUTOTRACE
Ìáµ½SQLÓÅ»¯£¬²»Äܲ»ÌáAUTOTRACEµÄÇ¿´ó¹¦ÄÜ¡£Ê¹ÓÃÆðÀ´·Ç³£±ã½Ý£¬²»¹ýÔÚÊÇʹÓÃ֮ǰ£¬ÐèÒª×öһЩÅäÖõŤ×÷¡£¼òÒªµÄÃèÊöÒ»ÏÂÕâ¸ö¹ý³Ì£¬¹©Ã»ÓÐʹÓùýµÄÅóÓѲο¼¡£
1.ʹÓÃsysÓû§Ö´ÐÐplustrce½Å±¾
sys@ora10g> @?/sqlplus/admin/plustrce
sys@ora10g> drop role plustrace ......

oracleµÄ×óÓÒÁ¬½Ó

¶Ô×óÁ¬½Ó¡¢ÓÒÁ¬½ÓµÄÒÉ»óµÃµ½½â¾ö¡£
ÔÚOracle PL-SQLÖУ¬×óÁ¬½ÓºÍÓÒÁ¬½ÓÒÔÈçÏ·½Ê½À´ÊµÏÖ
²é¿´ÈçÏÂÓï¾ä£º
SELECT emp_name, dept_name
FORM Employee, Department
WHERE Employee.emp_deptid(+) = Department.deptid
      ´ËSQLʹÓÃÁËÓÒÁ¬½Ó£¬¼´“(+)”ËùÔÚλÖõÄÁíÒ»²àΪÁ¬½Óµ ......

OracleÅÅÐòÒÔ¼°ÐòºÅµÄÏÔʾ

   ÔÚÒ»°ãSelectÓï¾äÖÐÎÒÃÇͨ¹ýOrder by ...Asc/DescÀ´½øÐÐÅÅÐò¡£µ«ÊÇÕâÖÖÅÅÐò·½Ê½ÔÚÊä³öʱ£¬²»°üº¬ÅÅÐòºóµÄÐòºÅÐÅÏ¢¡£
   ÏÖÔÚ½éÉÜÒ»ÏÂOracleÖпÉÒÔÓÃÓÚÅÅÐòÊä³öµÄ·½·¨¡£
   1. RANK ( ) OVER ( [query_partition_clause] order_by_clause )
   RANK ( ) OVER ( [query_p ......

³£ÓÃSQLÓï¾ä£¨Oracle£©(ת)

ORACLEÖÐ×ֶεÄÊý¾ÝÀàÐÍ
   ×Ö·ûÐÍ    char        ·¶Î§  ×î´ó2000¸ö×Ö½Ú ¶¨³¤
               char(10)   'ÕÅÈý' ºóÌí¿Õ¸ñ6¸ö°Ñ10¸ö×Ö½Ú²¹Âú  'ÕÅÈý &nb ......

oracle ¸´ÖÆ

[root@localhost bin]# pwd
/usr/local/bin
[root@localhost bin]# ls
coraenv  dbhome  oraenv
[root@localhost bin]#
[root@localhost etc]# ls -la ora*
-rw-r--r-- 1 root   root      60 2008-09-19 oraInst.loc
-rw-rw-r-- 1 oracle oinstall 731 2008-09-19 or ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ