|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
在Windows中MySQL以服务形式存在,在使用前应确保此服务已经启动,未启动可用netstartmysql命令启动。而Linux中启动时可用“/etc/rc.d/init.d/mysqldstart"命令,注意启动者应具有管理员权限。恢复|原创
prerequisite:被删除的表空间创立时入手下手,数据库一向在archivelog形式下
恢复详细操纵以下:
SQL>archiveloglist;
DatabaselogmodeArchiveMode
AutomaticarchivalEnabled
ArchivedestinationF:oracleora92RDBMS
Oldestonlinelogsequence23
Nextlogsequencetoarchive25
Currentlogsequence25
SQL>altertablespacebackuptestoffline;
altertablespacebackuptestoffline
*
ERRORatline1:
ORA-01109:databasenotopen
SQL>alterdatabasedatafilef:ackup.dbfoffline;
Databasealtered.
SQL>alterdatabaseopen;
Databasealtered.
SQL>altertablespacebackuptestofflineimmediate;
Tablespacealtered.
SQL>select*fromv$recover_file;
FILE#ONLINEONLINE_ERRORCHANGE#TIME
------------------------------------------------------------------------------------------------------------
11OFFLINEOFFLINEFILENOTFOUND0
SQL>alterdatabasecreatedatafilef:ackup.dbfasf:ackup.dbf;
Databasealtered.
SQL>select*fromv$recover_file;
FILE#ONLINEONLINE_ERRORCHANGE#TIME
------------------------------------------------------------------------------------------------------------
11OFFLINEOFFLINE307470603-NOV-04
SQL>recovertablespacebackuptest;
Mediarecoverycomplete.
SQL>altertablespacebackuptestonline;
Tablespacealtered.
SQL>select*frombackup;
ID
----------
1
2
至此,已完整恢复了^_^
支持多线程,充分利用CPU资源 |
|