• 误删表空间处理办法


    该类问题通常是由于表空间操作不当引起的。
    解决方法:

    SQL*Plus无法连接,显示以下错误:
    ORA-01033:Oracle initialization or shutdown in progress,Enterprise Manager Console中也是同样的错误。

    运行cmd,进入DOS环境。

    C:UsersAdministrator>sqlplus

    SQL*Plus: Release 10.2.0.1.0 - Production on 星期五 4月 22 09:28:44 2016

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

    请输入用户名: sys/sys as sysdba

    连接到:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options

    SQL> alter database open;
    alter database open
    *
    第 1 行出现错误:
    ORA-01113: 文件 6 需要介质恢复
    ORA-01110: 数据文件 6: 'E:TEST.ORA'


    SQL> alter database datafile 6 offline drop;

    数据库已更改。

    SQL> alter database open;

    数据库已更改。

    SQL> drop user TEST cascade;//注意:这个TEST要和上面的'E:TEST.ORA'中的TEST对应起来

    用户已删除。

    SQL> drop tablespace TEST including contents;

    表空间已删除。

    至此,SQL*Plus和Enterprise Manager Console等都可以正常登陆了。

    接下来就是重建在问题解决过程中删除的表空间和用户。

    SQL>create tablespace TEST datafile 'E: est.dbf' size 100m reuse autoextend on next 10m maxsize unlimited extent management 
    local; 
    SQL>create user TEST default tablespace TEST indentified by windows;






  • 相关阅读:
    spring 09-Spring框架基于QuartZ实现调度任务
    spring 08-Spring框架Resource资源注入
    spring 07-Spring框架Resource读取不同资源
    spring 06-Spring框架基于Annotation的依赖注入配置
    html 默认跳转
    poi 设置样式
    支付宝扫码支付回调验证签名
    构造器初始化
    cxf webservice
    CSS3 border-image 属性
  • 原文地址:https://www.cnblogs.com/zuifengke/p/7752033a770c7516b7aef6b3b694396f.html
Copyright © 2020-2023  润新知