銆愯档寮鸿€佸笀銆戠涓€涓狾racle鐨勬墜宸ュ浠藉拰鎭㈠

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了銆愯档寮鸿€佸笀銆戠涓€涓狾racle鐨勬墜宸ュ浠藉拰鎭㈠相关的知识,希望对你有一定的参考价值。

鏍囩锛?a href='http://www.mamicode.com/so/1/ddc' title='ddc'>ddc   oracle   tar   oracl   lan   data   缂虹偣   ror   ble   

鎶€鏈浘鐗? src=

涓€銆佷粈涔堟槸鎵嬪伐绠$悊鐨勫浠戒笌鎭㈠锛?/h1>

灏界鍦∣racle涓紝宸茬粡鏈変簡RMAN鐨勫浠戒笌鎭㈠銆備絾鏄綔涓篛racle澶囦唤鎭㈠鐨勪竴绉嶆柟寮忥紝鎴戜滑灏嗗湪鏈枃涓€氳繃涓€涓緥瀛愭潵涓哄ぇ瀹朵粙缁嶅浣曚娇鐢ㄦ墜宸ョ殑鏂瑰紡鏉ュ畬鎴怬racle鐨勫浠戒笌鎭㈠銆?strong>鎵嬪伐鏂瑰紡鐨勬湰璐ㄦ槸閫氳繃鎿嶄綔绯荤粺鐨刢p鍛戒护瀹屾垚锛?/strong>浣嗘槸鍦ㄥ浠戒笌鎭㈠鐨勬椂鍊欙紝闇€瑕佹妸鏁版嵁鍧楃疆涓烘纭殑鐘舵€併€?/p>

鎵嬪伐鏂瑰紡涓嬩篃瀛樺湪涓€浜涚己鐐癸紝渚嬪锛氶渶瑕佹墜宸ョ鐞嗗浠藉唴瀹癸紝瀹规槗涓㈠け锛屼笉鍒╀簬绠$悊

浜屻€佺涓€涓墜宸ョ鐞嗙殑澶囦唤涓庢仮澶?/h1>

杩欓噷鎴戜滑浠ヤ竴涓〃绌洪棿鐨勫浠戒笌鎭㈠涓轰緥銆?/p>

  • 鍑嗗娴嬭瘯鏁版嵁
create tablespace mytbs datafile 鈥?home/oracle/mytbs01.dbf鈥?size 50M;
alter user scott quota unlimited on mytbs;
create table scott.test1 tablespace mytbs as select ename,sal from scott.emp;
create table scott.test2 tablespace mytbs as select * from scott.dept;
  • 鎵ц鎵嬪伐澶囦唤
alter tablespace mytbs begin backup;
host cp /home/oracle/mytbs01.dbf /home/oracle/backup/demo1/mytbs01.dbf
alter tablespace mytbs end backup;
  • 鎵ц鐮村潖鎬ф搷浣?/li>
鍒犻櫎鏁版嵁鏂囦欢锛屾ā鎷熸暟鎹涪澶?rm -rf /home/oracle/mytbs01.dbf

鎵撳紑鏁版嵁搴擄細startup

鍑虹幇浠ヤ笅閿欒锛?ORA-01157: cannot identify/lock data file 5 - see DBWR trace file
ORA-01110: data file 5: 鈥?home/oracle/mytbs01.dbf鈥?
鏌ヨ閿欒淇℃伅锛?SQL> select FILE#,ERROR from V$RECOVER_FILE;
     FILE# ERROR
---------- ---------------------------------------------------
     5 FILE NOT FOUND

鏌ョ湅褰撳墠鏁版嵁搴撶殑鐘舵€侊細
SQL> select OPEN_MODE from v$database;
OPEN_MODE
--------------------
MOUNTED
  • 鎵ц鎵嬪伐鎭㈠
杞偍鏁版嵁鏂囦欢锛氬皢澶囦唤鎷疯礉鍥炲師鏉ョ殑浣嶇疆
cp /home/oracle/backup/demo1/mytbs01.dbf /home/oracle/mytbs01.dbf

鎭㈠锛?recover datafile 8; 

鎵撳紑鏁版嵁搴擄細
alter database open;
  • 妫€鏌ユ暟鎹簱鏄惁鎭㈠

鎶€鏈浘鐗? src=

以上是关于銆愯档寮鸿€佸笀銆戠涓€涓狾racle鐨勬墜宸ュ浠藉拰鎭㈠的主要内容,如果未能解决你的问题,请参考以下文章

Y-BOSS楂樼瀹氬埗Chromehearts鍏嬬綏蹇冨叚鑺掓槦绾墜宸?25閾?鎴掓寚

銆怬racle Database銆慜racle RAC锛堜節锛夛細绠$悊宸ュ叿--crsctl & srvctl

鍝嶅簲寮忚璁♀€斺€斾互鍙婂紑鍙戝湪璁捐涓殑浣滅敤

銆愯浆銆戙€怱alesfoece銆慉pproval Process 鍦?Apex 涓殑浣跨敤

銆愯绋嬭璁★綔C++銆慍++绋嬪簭璁捐鍩虹锛氱煩闃佃繍绠楀櫒