銆愯档寮鸿€佸笀銆戠涓€涓狾racle鐨勬墜宸ュ浠藉拰鎭㈠
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了銆愯档寮鸿€佸笀銆戠涓€涓狾racle鐨勬墜宸ュ浠藉拰鎭㈠相关的知识,希望对你有一定的参考价值。
鏍囩锛?a href='http://www.mamicode.com/so/1/ddc' title='ddc'>ddc
涓€銆佷粈涔堟槸鎵嬪伐绠$悊鐨勫浠戒笌鎭㈠锛?/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;
- 妫€鏌ユ暟鎹簱鏄惁鎭㈠
以上是关于銆愯档寮鸿€佸笀銆戠涓€涓狾racle鐨勬墜宸ュ浠藉拰鎭㈠的主要内容,如果未能解决你的问题,请参考以下文章
Y-BOSS楂樼瀹氬埗Chromehearts鍏嬬綏蹇冨叚鑺掓槦绾墜宸?25閾?鎴掓寚
銆怬racle Database銆慜racle RAC锛堜節锛夛細绠$悊宸ュ叿--crsctl & srvctl