zoukankan      html  css  js  c++  java
  • 创建表空间时ora-01119和ora-27040的处理

    创建时出错:

    SQL> create tablespace gaotbs logging datafile '/u01/app/datafiles/gaodata1.dbf'                                
      2  size 50M autoextend on next 50M maxsize 2048M                                
      3  extent management local;                                
    create tablespace gaotbs logging datafile '/u01/app/datafiles/gaodata1.dbf'                                
    *                                
    ERROR at line 1:                                
    ORA-01119: error in creating database file '/u01/app/datafiles/gaodata1.dbf'                                
    ORA-27040: file create error, unable to create file                                
    Linux-x86_64 Error: 2: No such file or directory   

    这是因为,目录尚未建立:

    [root@o_target ~]# su - oracle                            
    [oracle@o_target ~]$ cd /u01/app                            
    [oracle@o_target app]$ ls                            
    arch  arch1_6_842088414.dbf  oracle  oraInventory                            
    [oracle@o_target app]$ mkdir datafiles                            
    [oracle@o_target app]$ ls                            
    arch  arch1_6_842088414.dbf  datafiles  oracle  oraInventory                            
    [oracle@o_target app]$                             

    建立好目录后,再次执行:

    SQL> create tablespace gaotbs logging datafile '/u01/app/datafiles/gaodata1.dbf'                            
      2  size 50M autoextend on next 50M maxsize 2048M                            
      3  extent management local;                            
                                
    Tablespace created.                            
                                
    SQL>                             

              

  • 相关阅读:
    跟光磊学Python开发-面向对象入门
    插件调用下推操作
    K3Wise老单获取单据行数
    git 添加和删除 global 的 remote.origin.url
    CSV转Excel格式
    java 下载文件
    windows下安装redis并设置自启动
    linxu jdk安装
    Linux安装部署Redis
    CentOS上安装MySQL(使用国内源)
  • 原文地址:https://www.cnblogs.com/gaojian/p/3612845.html
Copyright © 2011-2022 走看看