Home > Database > Mysql Tutorial > body text

重建控制文件--Rebuild controlfile

WBOY
Release: 2016-06-07 17:40:08
Original
930 people have browsed it

重建控制文件时DBA需要知道,但是也许整个职业生涯都不会再生产系统上遇见。首先强调,备份是最安全,快捷,有效的恢复方式,一个DBA,如果没有规划好有效的备份

    重建控制文件时DBA需要知道,但是也许整个职业生涯都不会再生产系统上遇见。

    首先强调,备份是最安全,快捷,有效的恢复方式,一个DBA,如果没有规划好有效的备份,终有一天,香港服务器,他会被噩梦惊醒。

       梦醒之后,就是无奈的,繁杂的手工恢复。而且,恢复到什么程度,香港空间,就要看天,看命,反正不能看自己了,因为没有备份,你已经将主动权完全交个别人。这里就记录一下controlfile的重建

     在其他正常的数据库上创建controlfile trace

  •        trace 文件路径在user_dump_dest下

     

        一个完整的trace请参考附件

        你可以修改trace文件的路径等具体参数值,并提取其中的创建脚本  

       注册archivelog

        其实重建控制文件,就是相当于手动重新建库,把现有的数据库资源,逐一添加到controlfile中,最后注册目前的archivelog文件。

        同时,重建controlfile分为NORESETLOGS和RESETLOGS两种,根据需求选择相应的脚本。

        最后的最后,这一切,都是噩梦,还是做好有效备份,美国空间,有备无患,才是王道!!

     

     

    本文出自 “小小狗窝” 博客,请务必保留此出处

  • Related labels:
    source:php.cn
    Statement of this Website
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
    Popular Tutorials
    More>
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!