oracle Ŀ¼½á¹¹
Oracle 10g×î¼ÑÁé»îÌåϵ½á¹¹£¨Optimal Flexible Architecture£¬¼òдΪOFA£©£¬ÊÇÖ¸OracleÈí¼þºÍÊý¾Ý¿âÎļþ¼°Ä¿Â¼µÄÃüÃûÔ¼¶¨ºÍ´æ´¢Î»ÖùæÔò£¬¿ÉÒÔ½«ËüÏëÏñΪһ×éºÃµÄÏ°¹ß£¬ËüʹÓû§¿ÉÒÔºÜÈÝÒ×µØÕÒµ½ÓëOracleÊý¾Ý¿âÏà¹ØµÄÎļþ¼¯ºÏ¡£
ʹÓÃ×î¼ÑÁé»îÌåϵ½á¹¹£¬Äܹ»¼ò»¯Êý¾Ý¿âϵͳµÄ¹ÜÀí¹¤×÷£¬Ê¹Êý¾Ý¿â¹ÜÀíÔ±¸ü¼ÓÈÝÒ׵ض¨Î»Îļþ£¬»òÌí¼ÓÎļþ¡£»¹¿ÉÒÔ½«OracleϵͳµÄÖ´ÐÐÎļþ¡¢¹ÜÀíÎļþ¡¢Êý¾ÝÎļþ·Ö±ð´æ´¢µ½²»Í¬µÄÓ²ÅÌÉÏ£¬´Ó¶øÓÐЧµØʹÓÃÓû§ÏµÍ³ÖеÄËùÓд洢¿Õ¼ä¡¢¿Ë·þij¸ö£¨Ð©£©Ó²ÅÌ´æ´¢¿Õ¼äµÄÏÞÖÆ£¬ºÏÀí·ÖÅä´æ´¢¸ºµ££¬»¹ÄܽµµÍµ¥¸öÓ²ÅÌ´æ´¢Ëٶȷ½ÃæµÄÆ¿¾±£¬Ìá¸ßÕû¸öϵͳµÄ´æ´¢Ð§ÂÊ¡£
°´ÕÕOFA¹æÔò£¬°²×°Oracle 10gÈí¼þºÍÊý¾Ý¿âÎļþÖ®ºó£¬ÆäĿ¼½á¹¹ÎªÒ»¸öÊ÷Ðͽṹ¡£
Ê÷µÄ¸ù±»³ÆΪOracle¸ùĿ¼£¨Oracle_Base£©¡£Èç¹ûÔÚһ̨¼ÆËã»úÉÏÊ״ΰ²×°Oracle 10g²¢Ê¹ÓÃĬÈÏÉèÖÃʱ£¬¸ùĿ¼µÄĬÈÏλÖÃΪ£º“C:\oracle\product\10.1.0”¡£OracleÖ÷Ŀ¼£¨ORACLE_HOME£©Ö¸Ïò¸ùĿ¼µÄÏÂÒ»¼¶Ä¿Â¼£¬Îª“C:\oracle\product\10.1.0\db_1”¡£
ÓÉÓÚ°²×°ÉèÖã¨È磬°²×°ÀàÐÍ£©ºÍ°²×°»·¾³£¨È磬ÊÇ·ñÓÐÆäËüOracleÊý¾Ý¿â£©µÄ²»Í¬£¬ÎļþĿ¼½á¹¹Ò²¿ÉÄܲ»Í¬¡£°´ÕÕ±¾Êé½éÉܵÄÇé¿ö£¬°²×°Íê³Éºó£¬ÔÚC:\oracle\product\10.1.0Ŀ¼Ï£¬ÓÐadmin¡¢db_1µÈĿ¼¡£Êý¾Ý¿âµÄÈí¼þÎļþ¡¢¹ÜÀíÎļþµÈÎļþ¾ù´æ´¢ÔÚÕâЩĿ¼µÄ¸÷¸ö×ÓĿ¼ÖУ¬
“Ìá ʾ”OracleÒѾ½«±È½ÏÖØÒªºÍ³£ÓõÄĿ¼¶¼Óôóд±íʾ¡£
ÔÚͼ1.33µÄadmin×ÓĿ¼Ï£¬Ã¿¸öÊý¾Ý¿â¶¼ÓÐÒ»¸öÒÔÊý¾Ý¿âÃû³ÆÃüÃûµÄ×ÓĿ¼£¬¼´DB_NAMEĿ¼£¨È磺oamis£©¡£¸ÃĿ¼Ïµļ¸¸ö×ÓĿ¼·Ö±ðÓÃÓÚ±£´æºǫ́½ø³Ì¸ú×ÙÎļþ£¨bdump£©¡¢·¢Éú±ÀÀ£Ê±²Ù×÷ϵͳ½ø³ÌÓÃÀ´Ð´ÈëÄÚºËת´¢Îļþ£¨cdump£©¡¢×î³õÓÃÀ´´´½¨Êý¾Ý¿âµÄÎļþ£¨create£©¡¢³õʼ»¯²ÎÊýÎļþ£¨pfile£©¡¢Óû§½ø³ÌËùÉú³ÉµÄÈκθú×ÙÎļþ£¨udump£©¡£
¿ÉÒÔ¾³£½«bdumpĿ¼¡¢udumpĿ¼ÖеIJ»ÔÙÐèÒªµÄÎļþɾ³ý£¬ÒÔÃâÆäÖеÄÎļþ¸öÊýÌ«¶à£¬²¢Õ¼ÓÃÌ«¶àµÄ¿Õ¼ä¡£
ÔÚC:\oracle\product\10.1.0\oradataĿ¼Ï£¬Ã¿¸öÊý¾Ý¿â¶¼ÓÐÒ»¸öÒÔÊý¾Ý¿âÃû³ÆÃüÃûµÄ×ÓĿ¼£¬¼´DB_NAMEĿ¼£¨Èçoamis£©¡£¸ÃÊý¾Ý¿âµÄ¿ØÖÆÎļþ£¨.ctl£©¡¢ÖØ×öÈÕÖ¾Îļþ£¨.log£©¡¢Êý¾ÝÎļþ£¨.dbf£©µÈ¾ù´æ´¢ÔÚ¸ÃĿ¼ÖÐ
Çë×¢Ò⣬ΪÁ˱£³Ö×î³õ´´½¨µÄÊý¾Ý¿âµÄÔʼ״̬£¬ÒÔ±ãÔÚ±ØҪʱ»Ö¸´Õâ¸öÔʼ״̬£¬Ìرð½¨Ò齫ÈçÏÂ3¸öĿ¼¼°Æä×ÓĿ¼ÖеÄÄÚÈݱ¸·Ýµ½ÆäËû
Ïà¹ØÎĵµ£º
1¡¢startup nomount
·Ç°²×°Æô¶¯£¬ÕâÖÖ·½Ê½Æô¶¯Ï¿ÉÖ´ÐУºÖؽ¨¿ØÖÆÎļþ¡¢Öؽ¨Êý¾Ý¿â¶ÁÈ¡init.oraÎļþ£¬Æô¶¯instance£¬¼´Æô¶¯SGAºÍºǫ́½ø³Ì£¬ÕâÖÖÆô¶¯Ö»ÐèÒªinit.oraÎļþ¡£
2¡¢startup mount dbname
°²×°Æô¶¯£¬ÕâÖÖ·½Ê½Æô¶¯Ï¿ÉÖ´ÐУº
Êý¾Ý¿âÈÕÖ¾¹éµµ¡¢
Êý¾Ý¿â½éÖʻָ´¡¢
ʹÊý¾ÝÎļþÁª»ú»òÍÑ»ú£¬
ÖØж¨Î»Êý¾ÝÎļþ¡¢Ö ......
ÍêÈ«¸ÉµôOracleËÀËø½ø³Ì
1.²éÄĸö¹ý³Ì±»Ëø:
²éV$DB_OBJECT_CACHEÊÓͼ:SELECT * from V$DB_OBJECT_CACHE WHERE OWNER='¹ý³ÌµÄËùÊôÓû§' AND CLOCKS!='0';
2. ²éÊÇÄÄÒ»¸öSID,ͨ¹ýSID¿ÉÖªµÀÊÇÄĸöSESSION:
²éV$ACCESSÊÓͼ:SELECT * from V$ACCESS WHERE OWNER='¹ý³ÌµÄËùÊôÓû§' AND NAME='¸Õ²Å²éµ½µÄ¹ý³ÌÃû';
3. ²é³öSI ......
Õª×Ô¡¶½âÎöoracleµÄrownum¡·×÷Õߣºchen_liang
¶ÔÓÚrownumÀ´ËµËüÊÇoracleϵͳ˳Ðò·ÖÅäΪ´Ó²éѯ·µ»ØµÄÐеıàºÅ£¬·µ»ØµÄµÚÒ»ÐзÖÅäµÄÊÇ1£¬µÚ¶þÐÐÊÇ2£¬ÒÀ´ËÀàÍÆ£¬Õâ¸öα×ֶοÉÒÔÓÃÓÚÏÞÖƲéѯ·µ»ØµÄ×ÜÐÐÊý£¬ÇÒrownum²»ÄÜÒÔÈκαíµÄÃû³Æ×÷Ϊǰ׺¡£
(1) rownum ¶ÔÓÚµÈÓÚijֵµÄ²éѯÌõ¼þ
Èç¹ûÏ£ÍûÕÒµ½Ñ§Éú±íÖеÚÒ»ÌõѧÉúµÄÐÅÏ¢ ......
µÍ³É±¾»ñÈ¡OracleÏà¹ØÈÏÖ¤£¬È«Ãæ¿ìËÙÕÆÎÕOracle¼¼Êõ
ÔÚÆóҵȺÌåÖУ¬È«Çò500Ç¿£¬ÓÐ98%ÔÚʹÓÃOracle¼¼Êõ£»È«ÇòÊ®´óÒøÐоù²ÉÓÃÁËOracleÓ¦ÓÃϵͳ£¬ÔÚÖйú£¬ÅÅÃûÇ°20λµÄÒøÐж¼ÔÚʹÓÃOracle¼¼Êõ£»ÔÚͨÐÅÁìÓò£¬È«Çò20¼Ò¶¥¼¶Í¨ÐŹ«Ë¾È«²¿¶¼ÔÚʹÓÃOracleÓ¦ÓòúÆ·¡£ÔÚÖйú£¬ËùÓеĵçÐÅÓªÔËÉ ......
ÔÚ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½øÐ ......