1銆乻hutdown normal
姝e父鏂瑰紡鍏抽棴鏁版嵁搴撱?nbsp;
2銆乻hutdown immediate
绔嬪嵆鏂瑰紡鍏抽棴鏁版嵁搴撱?nbsp;
鍦⊿VRMGRL涓墽琛宻hutdown immediate錛屾暟鎹簱騫朵笉绔嬪嵆鍏抽棴錛?nbsp;
鑰屾槸鍦∣racle鎵ц鏌愪簺娓呴櫎宸ヤ綔鍚庢墠鍏抽棴錛堢粓姝細璇濄侀噴鏀句細璇濊祫婧愶級錛?nbsp;
褰撲嬌鐢╯hutdown涓嶈兘鍏抽棴鏁版嵁搴撴椂錛宻hutdown immediate鍙互瀹屾垚鏁版嵁搴撳叧闂殑鎿嶄綔銆?
3銆乻hutdown abort 鑻ユ鏌ョ偣淇℃伅涓鑷達紝鍒欏仛宕╂簝鎭㈠ 榪欎簺闂閮藉ソ澶勭悊錛屾渶鎬曠殑闂鏄繖涓椂鍊欑郴緇熸湁澶ч噺IO錛岀粨鏋滆繖鏍烽犳垚鍐欑殑紿佺劧涓柇錛岀宸ч犳垚鏂囦歡鍧楃殑閫昏緫鍧忓潡錛岄偅楹葷儲姣旇緝澶т竴浜涳紝灝ゅ叾鏄郴緇熻〃絀洪棿鐨刡lock鎹熷潖 鍦∣racle8i閲岋紝褰撴暟鎹簱澶卞幓鍝嶅簲浠ュ悗錛屼綘鍦ㄦ搷浣滅郴緇熶笂鏉鎺夌敤鎴瘋繘紼嬪悗錛屼竴鑸暟鎹簱灝卞彲浠ユ仮澶嶆甯鎬簡 鐒跺悗涓嶈鍐嶉噸鏂皊hutdown abort 鍏跺疄璧蜂笉鏉ヤ篃鏄洜涓簅s鐨勭紭鏁咃紝鍦ㄦ枃浠舵鍦ㄥ啓鐨勬椂鍊欏嚭鐜伴棶棰樺鑷存枃浠朵笉涓鑷存垨鑰呮崯鍧?#8230;…
鐩存帴鍏抽棴鏁版嵁搴擄紝姝e湪璁塊棶鏁版嵁搴撶殑浼氳瘽浼氳紿佺劧緇堟錛?nbsp;
濡傛灉鏁版嵁搴撲腑鏈夊ぇ閲忔搷浣滄鍦ㄦ墽琛岋紝榪欐椂鎵цshutdown abort鍚庯紝閲嶆柊鍚姩鏁版嵁搴撻渶瑕佸緢闀挎椂闂?
--------------------------------------------------------
shutdown abort 鐨勬椂鍊欙紝璺?/strong>kill 榪涚▼鏄竴鏍風殑鏁堟灉
鏁版嵁搴撶珛鍗沖叧闂紝榪欎釜鏃跺欐枃浠剁姸鎬佸彲鑳戒笉涓鑷?
鍥犱負姝e父鍏抽棴鏁版嵁搴撲細鍚屾鏍¢獙鍚勬枃浠訛紝浣垮緱閲嶆柊鍚姩鐨勬椂鍊欐枃浠舵椂闂寸偣涓鑷村茍涓斾笉鐢ㄨ繘琛屽穿婧冩仮澶?/p>
鑻ユ鏌ョ偣淇℃伅涓嶄竴鑷達紙姝eソ鍦ㄦ洿鏂版枃浠跺ご錛夊垯闇瑕佸仛浠嬭川鎭㈠
铏界劧shutdown abort 鍑洪敊鐨勫嚑鐜囧緢灝忥紝1000涓漢鍙兘鍙湁涓涓漢紕板埌錛屼絾鏄垜浠繕鏄灝忓績銆?
姝g‘鐨勫鐞嗘祦紼嬫槸錛宻hutdown immediate ,鑻ユ暟鎹簱榪熻繜涓嶈兘down涓嬫潵錛屽湪os涓婅瀵烮O鐘跺喌錛屽嚑涔庢病鏈塱o鐨勬椂鍊欙紝鍙﹀紑涓紿楀彛shutdown abort 錛屽嚑涔庝笉浼氬嚭闂浜?br />--------------------------------------------------------
http://www.itpub.net/showthread.php?threadid=180315&pagenumber=
鍏堢敤IMMEDIATE鏉OWN錛屽疄鍦ㄤ笉琛屼簡錛岀湅涓涓嬫暟鎹簱鏂囦歡涓婃病IO浜嗭紝鍐嶇敤ABORT
------------------------------------------------------------------------------
浣犲彲浠ュ皾璇曞厛鍦ㄧ郴緇熺駭鏉鎺夐潪鍚庡彴Oracle榪涚▼錛屽湪榪炴帴shutdown immediate灝卞畨鍏ㄥ浜?/p>
-------------------------------------------------------------------------------
鍏?shutdown immediate 搴旇鏄閫?/p>
]]>
榪欐牱鐨勯敊璇?br />
SQL> startup
ORACLE instance started.
Total System Global Area 538514184 bytes
Fixed Size 451336 bytes
Variable Size 503316480 bytes
Database Buffers 33554432 bytes
Redo Buffers 1191936 bytes
Database mounted.
ORA-01113: file 26 needs media recovery
ORA-01110: data file 26: '/opt/ora9/product/oradata/NTDB/EXAMPLE02.dbf'
瑙e喅鏂規硶錛?br />
SQL> recover datafile '/opt/ora9/product/oradata/NTDB/EXAMPLE02.dbf'
ORA-00279: change 244674111 generated at 09/24/2013 15:20:41 needed for thread
1
ORA-00289: suggestion : /opt/ora9/product/oracle/dbs/arch1_1123.dbf
ORA-00280: change 244674111 for thread 1 is in sequence #1123
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
auto
Log applied.
Media recovery complete.
SQL> alter database open;
Database altered.
Connected to: Oracle9i Enterprise Edition Release 9.2.0.8.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.8.0 - Production
Export done in ZHS16GBK character set and AL16UTF16 NCHAR character set
About to export the entire database ...
. exporting tablespace definitions
EXP-00008: ORACLE error 1187 encountered
ORA-01187: cannot read from file 201 because it failed verification tests
ORA-01110: data file 201: '/opt/ora9/product/oradata/NTDB/temp1.dbf'
EXP-00000: Export terminated unsuccessfully
浠庝笂闈㈢殑閿欒淇℃伅鍙互鐪嬪嚭鏄痶emp涓存椂琛ㄧ┖闂寸殑鏁版嵁鏂囦歡鏈夐棶棰橈紝瑙e喅鍔炴硶錛?br />1銆佸垹闄や復鏃惰〃絀洪棿錛?nbsp;alter database tempfile '/opt/ora9/product/oradata/NTDB/temp1.dbf' drop;
2銆侀噸寤烘暟鎹枃浠訛細
alter tablespace temp add tempfile '/opt/ora9/product/oradata/NTDB/temp01.dbf' size 512M REUSE AUTOEXTEND ON NEXT 1M MAXSIZE UNLIMITED;
閫氳繃涓婅堪涓や釜姝ラ灝卞彲浠ヨВ鍐沖湪榪涜鏁版嵁搴撳浠芥椂鍑虹幇鐨凮RACLE error 1187 encountered閿欒銆?/p>
[oracle@readhatAS53 etc]$ cat /etc/oratab
#
# This file is used by ORACLE utilities. It is created by root.sh
# and updated by the Database Configuration Assistant when creating
# a database.
# A colon, ':', is used as the field terminator. A new line terminates
# the entry. Lines beginning with a pound sign, '#', are comments.
#
# Entries are of the form:
# $ORACLE_SID:$ORACLE_HOME:<N|Y>:
#
# The first and second fields are the system identifier and home
# directory of the database respectively. The third filed indicates
# to the dbstart utility that the database should , "Y", or should not,
# "N", be brought up at system boot time.
#
# Multiple entries with the same $ORACLE_SID are not allowed.
#
#
ORCL:/u01/oracle/product/ora10g:Y
褰?ORACLE_SID:$ORACLE_HOME:<N|Y> 璁劇疆涓篩鏃訛紝鍏佽瀹炰緥鑷惎鍔紝褰撹緗負N鏃訛紝鍒欎笉鍏佽鑷惎鍔ㄣ?榪欎釜鏂囦歡閲岀殑閰嶇疆浠呬粎璧蜂竴涓紑鍏崇殑浣滅敤錛屽叾騫朵笉浼氬叿浣撶殑鎵ц鍚姩鍜屽叧闂紝鍏蜂綋鐨勬搷浣滅敱$ORACLE_HOME/bin/dbstart鍜宒bshut 鑴氭湰鏉ュ疄鐜般?榪?涓剼鏈湪鎵ц鏃朵細媯鏌?etc/oratab 鏂囦歡閲岀殑閰嶇疆錛屼負Y鏃舵墠鑳界戶緇墽琛屻傚洜姝ゅ彧瑕佸皢ORCL:/u01/oracle/product/ora10g:N淇敼涓篩灝辮浜嗐?br />2銆佷嬌鐢╮oot鐢ㄦ埛鍦?font face="Verdana">/etc/rc.d/rc.local榪欎釜鏂囦歡涓坊鍔犲涓嬪唴瀹癸細
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
su - oracle -c'lsnrctl start'//鍚姩oracle鏁版嵁搴撶洃鍚?br />su - oracle -c'/u01/oracle/product/ora10g/bin/dbstart start'//鍚姩oracle鏁版嵁搴撳疄渚?br />su - oracle -c'/opt/tomcat/apache-tomcat-6.0.20/bin/startup.sh'//鍚姩tomcat鏈嶅姟鍣ㄧ殑閰嶇疆銆?br />
3銆乺eboot緋葷粺錛宱racle鏁版嵁搴撲笌tomcat鏈嶅姟鍣ㄥ氨鍙互鑷姩鍚姩浜嗐?br />