zoukankan      html  css  js  c++  java
  • oracle学习笔记:重建临时表空间

    重建临时表空间

    1、创建中转临时表空间

    create temporary tablespace TEMP1 tempfile '/oradata/HXDB/datafile/temp02.dbf' size 256M reuse autoextend on next 16M maxsize 1024M;

    2、修改缺省临时表空间

    alter database default temporary tablespace temp1;

    3、删除原来临时表空间

    drop tablespace temp including contents and datafiles;

    4、重建临时表空间

    create temporary tablespace TEMP tempfile '/oradata/HXDB/datafile/temp01.dbf' size 256M reuse autoextend on next 16M maxsize 1024M;

    5、修改缺省临时表空间

    alter database default temporary tablespace temp;

    6、删除中转用临时表空间

    drop tablespace temp1 including contents and datafiles;

    注意:执行该条语句时数据库会一直处于等待中,原因是这个会话仍然在使用temp1表空间,解决办法是退出该会话,重新登录并删除。

  • 相关阅读:
    Netty
    HttpClient 该知道一些概念
    Hibernate QBC 简单收集
    IUAP--单点登录
    js图片压缩和上传并显示
    vue移动端项目
    js自定义滚动条
    mysql5.7以上版本安装
    学习webpack
    学习es6
  • 原文地址:https://www.cnblogs.com/myheart-new/p/11926440.html
Copyright © 2011-2022 走看看