打开数据库报错

    问题:打开数据库时候提示log日志错误

    SQL>startup

    ORACLE instance started

    total system global area 232323444bytes

    fixed size         1212987 bytes

    variable size   102839483 bytes

    database buffers 171829283 bytes

    redo buffers        715800 bytes

    database mounted

    ORA-16014:log 3 sequence# 241 not archived,no avalilable destinations

    ORA-00312:online log 3 thread 1:‘/home/app/oracle/oracle/oradata/test/redo03,log‘

    解决:

    $ rman target /

    Recovery Manager: Release 10.2.0.1.0 - Production on 星期日 3月 4 04:26:46 2012

    Copyright (c) 1982, 2005, Oracle.  All rights reserved.

    connected to target database: CRM (DBID=3556636747, not open)

    RMAN> crosscheck archivelog all;

    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=150 devtype=DISK
    validation failed for archived log
    archive log filename=/home/app/oracle/flash_recovery_area/CRM/archivelog/2011_06_13/o1_mf_1_228_6zczymlz_.arc recid=1 stamp=753686248
    validation failed for archived log
    archive log filename=/home/app/oracle/flash_recovery_area/CRM/archivelog/2011_06_13/o1_mf_1_229_6zd1gj6n_.arc recid=2 stamp=753687776
    validation failed for archived log
    archive log filename=/home/app/oracle/flash_recovery_area/CRM/archivelog/2011_10_19/o1_mf_1_230_79xkjjm4_.arc recid=3 stamp=764919847
    validation succeeded for archived log
    archive log filename=/home/app/oracle/flash_recovery_area/CRM/archivelog/2012_01_05/o1_mf_1_231_7jcc3znb_.arc recid=4 stamp=771746324
    validation succeeded for archived log
    archive log filename=/home/app/oracle/flash_recovery_area/CRM/archivelog/2012_02_08/o1_mf_1_232_7m4t8pbk_.arc recid=5 stamp=774678171
    validation succeeded for archived log
    archive log filename=/home/app/oracle/flash_recovery_area/CRM/archivelog/2012_02_13/o1_mf_1_233_7ml3dqs3_.arc recid=6 stamp=775113500
    validation succeeded for archived log
    archive log filename=/home/app/oracle/flash_recovery_area/CRM/archivelog/2012_02_25/o1_mf_1_234_7nm9qylv_.arc recid=7 stamp=776201347
    validation succeeded for archived log
    archive log filename=/home/app/oracle/flash_recovery_area/CRM/archivelog/2012_02_25/o1_mf_1_235_7nmogwh0_.arc recid=8 stamp=776213344
    validation succeeded for archived log
    archive log filename=/home/app/oracle/flash_recovery_area/CRM/archivelog/2012_02_25/o1_mf_1_236_7nmojqdc_.arc recid=9 stamp=776213399
    validation succeeded for archived log
    archive log filename=/home/app/oracle/flash_recovery_area/CRM/archivelog/2012_02_26/o1_mf_1_237_7nmvs3k6_.arc recid=10 stamp=776219816
    validation succeeded for archived log
    archive log filename=/home/app/oracle/flash_recovery_area/CRM/archivelog/2012_02_26/o1_mf_1_238_7nmwxkgx_.arc recid=11 stamp=776220977
    validation succeeded for archived log
    archive log filename=/home/app/oracle/flash_recovery_area/CRM/archivelog/2012_02_26/o1_mf_1_239_7nmwyn3q_.arc recid=12 stamp=776221012
    validation succeeded for archived log
    archive log filename=/home/app/oracle/flash_recovery_area/CRM/archivelog/2012_02_26/o1_mf_1_240_7nmwzk2o_.arc recid=13 stamp=776221041
    Crosschecked 13 objects

    RMAN>delete expired archivelog all;

    released channel: ORA_DISK_1
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=150 devtype=DISK

    List of Archived Log Copies
    Key     Thrd Seq     S Low Time   Name
    ------- ---- ------- - ---------- ----
    1       1    228     X 17-5月 -11 /home/app/oracle/flash_recovery_area/CRM/archivelog/2011_06_13/o1_mf_1_228_6zczymlz_.arc
    2       1    229     X 13-6月 -11 /home/app/oracle/flash_recovery_area/CRM/archivelog/2011_06_13/o1_mf_1_229_6zd1gj6n_.arc
    3       1    230     X 13-6月 -11 /home/app/oracle/flash_recovery_area/CRM/archivelog/2011_10_19/o1_mf_1_230_79xkjjm4_.arc

    Do you really want to delete the above objects (enter YES or NO)? YES
    deleted archive log
    archive log filename=/home/app/oracle/flash_recovery_area/CRM/archivelog/2011_06_13/o1_mf_1_228_6zczymlz_.arc recid=1 stamp=753686248
    deleted archive log
    archive log filename=/home/app/oracle/flash_recovery_area/CRM/archivelog/2011_06_13/o1_mf_1_229_6zd1gj6n_.arc recid=2 stamp=753687776
    deleted archive log
    archive log filename=/home/app/oracle/flash_recovery_area/CRM/archivelog/2011_10_19/o1_mf_1_230_79xkjjm4_.arc recid=3 stamp=764919847
    Deleted 3 EXPIRED objects

    RMAN> alter database open;

    database opened

    时间: 2024-10-22 23:28:26

    打开数据库报错的相关文章

    附加数据库报错:无法打开物理文件 XXX.mdf",操作系统错误 5:"5(拒绝访问。)"

    今天在附加数据库的时候出现如图报错信息: 无法打开物理文件 XXX.mdf",操作系统错误 5:"5(拒绝访问.)"错信息如图:(是不是远程服务器数据库附加出现只读那个情况,也可以这样解决??,经测试,是这样的,不过远的用户是user,改成完全控制允许) 首先,我的数据库安装根目录和附加的数据库不是同一个目录,在安装数据库的时候根目录是默认的,为C盘下的目录,而我要附加的数据库的目录为E盘下,所以:解决方案一:使用windows账户登进,将被附加的数据库移植到根目录下,如图:

    oracle 11g 手动删除表空间文件导致数据库报错处理方法

    简单说下原因:当时图方便没进数据库,直接在datafile目录下删除了表空间对应的数据文件 导致后来数据库报错,并且不能删除表空间 错误如下:ORA-01116:error in opening database ****ORA-01110:data file 54:'/home3/datafile/arrange/NewArrange.dbf'ORA-27041:unable to open fileLinux Error:2: No Such file or directoryAdditio

    修改mysql存储引擎备份数据库报错及解决方案

    备份数据库报错 原因:由于监控服务器最近cpu负载比较高.(cpu4核心,负载2.7左右)感觉很奇怪,因为别的服务器mysql占用的资源并不多,因此我首先优化了数据库的配置文件.cpu稍微下降了一点,但是没有特别明显的变化. 于是,从mysql的存储引擎和日志考虑,结果发现默认用的引擎是myisam.好吧.换成innodb,(由于事先我没备份,就在配置文件修改了引擎,因为日志除了二进制其他并没有开启.所以没动它.重启数据库. ok 早就听说这两个引擎,区别,看来性能差别真大啊! 好吧.备份数据库

    MyEclipse打开 HTML 报错Failed to create the part's controls

    拷贝代码时有时会弹出这个错误,页面仍然可以访问,但是无法编辑很郁闷. MyEclipse默认打开编辑页面是MyEclipse visual html designer 右击html页面选择open with,点击 MyEclipse html Editer即可. MyEclipse打开 HTML 报错Failed to create the part's controls

    [Android]打开eclipse报错:发现了以元素 'd:skin' 开头的无效内容。此处不应含有子元素。

    [错误] 打开eclipse报错:发现了以元素 'd:skin' 开头的无效内容.此处不应含有子元素. [具体报错信息] Error parsing D:\android-sdks\system-images\android-22\android-wear\armeabi-v7a\devices.xml cvc-complex-type.2.4.d: 发现了以元素 'd:skin' 开头的无效内容.此处不应含有子元素. Error: Error parsing D:\android-sdks\s

    转:Loadrunner打开https报错“Internet…

    Loadrunner 录制htpps 协议通过IE打开页面,报错“Internet Explorer cannot display the webpage”. 但是直接打开IE不通过 loadrunner打开https页面却可以正常打开. 问题解决如下(Windows 7): 执行:cmd 然后执行命令:certutil -setreg chain\minRSAPubKeyBitLength 512 重启电脑,问题解决. 参考文章: http://eyeontesting.com/questio

    MySql 插入数据库报错 Incorrect string value: '\xF0\xA0\x86\xA2'

    今天从nginx日志分析搜索关键字,然后把关键字插入到Mysql数据库里,出现如下错误 SQL state [HY000]; error code [1366]; Incorrect string value: '\xF0\xA0\x86\xA2' for column 'XXXX' at row 38; nested exception is java.sql.SQLException: Incorrect string value: '\xF0\xA0\x86\xA2' for column

    开着idea,死机了,关机重启。重启之后,重新打开idea报错java.lang.AssertionError:upexpected content storage modification

    开着idea,死机了,关机重启.重启之后,重新打开idea报错java.lang.AssertionError:upexpected content storage modification. goole得到: If you cannot even open your project in IntelliJ: Close IntelliJ Go to the directory <your_home>/.IntelliJIdeaXX/system/cache where XX is your

    Emoji表情符号录入MySQL数据库报错的解决方案

    前言:手机app应用评论的时候,恢复表情符号,提示失败.?1,查看tomcat后台日志,核心报错信息如下:  Caused by: java.sql.SQLException: Incorrect string value: '\xF0\x9F\x98\x97\xF0\x9F...' for column 'CONTENT' at row 1at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1074)at com.mysql.