oracle11g创建表空间 sql语法

--oracle 11g创建有限制大小的永久表空间
--create tablespace czc_data
--datafile 'E:\app\lenovo\oradata\orcl\czc_data.dbf' size 1M
--autoextend on next 2M maxsize 1024M;
   --修改表空间大小:
      --alter database datafile 'D:\oracle\product\10.2.0\oradata\orcl\DATAFILEitsm.dbf' resize
      --800M autoextend on next 51M maxsize 1000M;
      --创建有限制大小的临时表空间
--create temporary tablespace temp02
   -- tempfile 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\TEMP02.DBF'
  -- size 4M autoextend on maxsize 10M;


--oracle 11g 创建永久表空间语法
CREATE TABLESPACE czc_data  DATAFILE'E:\app\lenovo\oradata\orcl\czc_data.dbf'
SIZE 1M autoextend on  next 50M  maxsize unlimited

--oracle 11g 创建临时表空间语法
create temporary tablespace czc_temp_data
    tempfile 'E:\app\lenovo\oradata\orcl\czc_temp_data.dbf'
    size 4M autoextend on;

猜你喜欢

转载自skyfar666.iteye.com/blog/1754774