ÈçºÎ´ÓÍêºÃµÄÊý¾ÝÎļþ»Ö¸´oracleÊý¾Ý¿â
Ò»¡£ÓÐÊý¾ÝÎļþ¡¢¿ØÖÆÎļþºÍÈÕÖ¾ÎļþµÄ±¸·Ý1.·þÎñÆ÷ÖØ×°Á˲Ù×÷ϵͳ£¬oracleÒ²ÖØ×°ÁË¡£Èç¹ûÖØ×°µÄoracleºÍÒÔÇ°Ë𻵵ÄÊý¾Ý¿âÊÇһģһÑùµÄ½á¹¹£¬ÄÇô´ËʱµÄ»Ö¸´ÊDZȽϼòµ¥µÄ¡£
1£©É¾³ýµôн¨Êý¾Ý¿âµÄËùÓÐÊý¾ÝÎļþ¡¢¿ØÖÆÎļþºÍÈÕÖ¾Îļþ¡£CopyÔÊý¾Ý¿âµÄÊý¾ÝÎļþ¡¢¿ØÖÆÎļþºÍÈÕÖ¾Îļþµ½¶ÔӦĿ¼Ï¡£
2£©
Cmd>sqlplus /nolog
Sql>conn as sysdba
Óû§Ãû£ºsystem
ÃÜÂ룺£¨´Ë´¦ÃÜÂëΪд´½¨Êý¾Ý¿âµÄÃÜÂ룩
Sql>shutdown immediate
Sql>startup nomount
Sql>alter database mount
´Ëʱ¿´Êý¾Ý¿âÊDz»ÊÇÄÜmountÆðÀ´£¬ÓÐʱ»áÌáʾûÓпÚÁîÎļþPWDdemo.oraÎļþÕÒ²»µ½¡£²é¿´¶ÔÓ¦µÄĿ¼£¨databaseÏ£©»á·¢ÏÖ¸ÃÎļþÊÇ´æÔڵġ£´ËʱÐèҪעÒ⣬¸Ã¿ÚÁîÎļþÊÇа²×°Êý¾Ý¿âºó´´½¨ÊµÀýʱÉú³ÉµÄ¿ÚÁîÎļþ£¬²»ÊÇÒÔÇ°ËùÓÃÊý¾Ý¿âµÄ¿ÚÁîÎļþ£¬¶øÏÖÔÚ£¬ÎÒÃÇÊÇÓÃÒÔÇ°Êý¾Ý¿âµÄ¿ØÖÆÎļþºÍÊý¾ÝÎļþÀ´´ò¿ªÒÔÇ°µÄÊý¾Ý¿â£¬ËùÒÔ´ËʱÐèÒªÖØд´½¨Ò»¸ö¿ÚÁîÎļþ¡£
Sql>shutdown immediate
Sql>host orapwd file=c£º\oracle9i\database\PWDdemo.ora password=oracle
Entries=10 £¨·ÅÔÚdatabase Ŀ¼Ï£©
Sql>startup nomount
Sql>alter database mount
Sql>alter database open
´ò¿ªÊý¾Ý¿â
2.Èç¹ûÐÂÊý¾Ý¿âµÄ°²×°Ä¿Â¼ºÍÔÓÐÊý¾Ý¿âµÄĿ¼²»Ò»Ñù£¬ÄÇô´Ëʱ¿ÉÒÔÖؽ¨¿ØÖÆÎļþÀ´´ò¿ªÊý¾Ý¿â¡£ÒòΪԿØÖÆÎļþÖмǼµÄÊý¾ÝÎļþµØÖ·ºÍÏÖÓеÄÊý¾ÝÎļþλÖò»Ò»Ñù¡£´ËʱºÍÏÂÃæµÚ¶þÖÐÇé¿öÒ»Ñù¡£µ±È»£¬´ËʱҲ¿ÉÒÔ´´½¨ºÍÔÊý¾Ý¿âÒ»ÑùµÄĿ¼½á¹¹£¨Ç°ÌáÊÇÒª¼ÇµÃÔÊý¾Ý¿âµÄĿ¼½á¹¹£©£¬ÐèҪעÒâµÄ¾ÍÊDzÎÊýÎļþÖмǼµÄ¿ØÖÆÎļþλÖúͿØÖÆÎļþÖмǼµÄÊý¾ÝÎļþλÖá£
˵Ã÷£ºÎÒÃÇÐèÒªÇå³þÊý¾Ý¿âÔÚ´ò¿ªµÄÈý¸ö½×¶ÎÖУ¬ÐèÒª¶ÁÈ¡µÄÎļþ
Sql>startup nomount £¨´Ëʱ¶ÁÈ¡²ÎÊýÎļþ£©
Sql>alter database mount £¨¸ù¾Ý²ÎÊýÎļþÖмǼµÄ¿ØÖÆÎļþµØÖ·£¬È¥¶ÁÈ¡¿ØÖÆÎļþ£©
Sql>alter database open £¨¸ù¾Ý¿ØÖÆÎļþÖмÇ
Ïà¹ØÎĵµ£º
oracle±í¿Õ¼ä²Ù×÷Ïê½â
1
2
3×÷Õߣº À´Ô´£º ¸üÐÂÈÕÆÚ£º2006-01-04
5
6
7½¨Á¢±í¿Õ¼ä
8
9CREATE TABLESPACE data01
10DATAFILE '/ora ......
Ò»£¬OracleÊý¾Ý¿âÓû§¼ò½é
ÔÚOracleÊý¾Ý¿âÖÐÈκζÔÏó¶¼ÊôÓÚÒ»¸öÌض¨Óû§£¬»òÕß˵һ¸öÓû§ÓëͬÃûµÄģʽÏà¹ØÁª¡£
ÒªÁ¬½Óµ½OracleÊý¾Ý¿âÐèÒªÒ»¸öÓû§ÕÊ»§£¬¸ù¾ÝÐèÒªÊÚÓèµÄ²Ù×÷ȨÏÞ¡£
1£¬Ä¬ÈÏÊý¾Ý¿âÓû§Ä£Ê½£º
Sys:Êý¾Ý¿â×ֵ䣨´æ´¢±»¹ÜÀí¶ÔÏóËùÓÐÐÅÏ¢£©ºÍÊÓͼ´æ´¢ÔÚ¸ÃģʽÖС£ÏµÍ³¼¶Óû§¡£ ......
Ò»¡¢Enterprise Manager 10g
ĬÈÏÇé¿öÏ£¬°²×°Oracleʱ£¬»á°²×°EM¡£ËüÊÇλÓÚÊý¾Ý¿â·þÎñÆ÷ÉϵÄHTTP·þÎñÆ÷¡£
£¨1£©Æô¶¯EM
Ҫȷ±£OracleDBConsole<SID>·þÎñÒѾÆô¶¯¡£
Æô¶¯·þÎñ£ºemctl start dbconsole
¹Ø±Õ·þÎñ£ºemctl stop dbconsole
·ÃÎÊEM£ºhttp://·þÎñÆ÷Ãû³Æ£º¶Ë¿ÚºÅ/em
¶Ë¿ÚºÅ¿ÉÔÚ$ORACLE_HOME/install/pro ......
Ô´´ÓÚ2007Äê04ÔÂ12ÈÕ£¬2009Äê10ÔÂ15ÈÕǨÒÆÖÁ´Ë¡£
windows xp£¬Êý¾Ý¿âoracle 10.2.0¡£1
ûÓб¸·Ý£¬»ù±¾ÉÏÊÇĬÈÏ°²×°£¬ºÃÏñ»¹²»Êǹ鵵ģʽ
Ö¢×´£ºsqlplusÖ»ÓÐsysdbaÓû§ÄܽøÈ¥£¬ÆäËûÓû§½øÈ¥Ò»¸Å±¨£ºora-01033£ºoracleÕýÔÚ³õʼ»¯»ò¹Ø±Õ
¶øÇÒsysdbaÓû§½øÈ¥Ö®ºóÄÜÖ´ÐÐselect sysdate from dual£¬µ«ÊÇÖ´ÐÐselect use ......
HWMÊÇoracleÖÐblockÓÐûÓÐʹÓõķֽçÏߣ¬Ëü»áËæ×ÅÊý¾ÝµÄinsert¶øÉÏÉý£¬µ«Ëü²¢²»»áËæÊý¾ÝµÄdelete¶øϽµ£¬Òò´ËÈ«±íɨÃèµÄʱ¼ä²¢²»ÒòÊý¾ÝµÄdelete¶ø¼õÉÙ£¬Ïà·´¿ÉÄÜÓÉÓÚ¿éÇå³ý·´¶øÈ«±íɨÃèʱ¼äÔö¼Ó£¬¿ÉÒÔÓÃÏÂÃæ·½·¨µÄÈÎÒ»Ò»ÖÖÀ´½µµÍHWM£º
µÚÒ»ÖÖ£ºshrink
ÊÊÓÃÓÚ10gÒÔºóµÄ°æ±¾£¬Ç°ÌáÊÇÕâ¸ö±í£¬Ë÷Òý£¬ÎﻯÊÓͼ»òÎﻯÊÓͼlogËùÔ ......