Oracle 表及表空间(一)
Oracle? 表空間
一個數據庫可以有多個表空間,一個表空間里可以有多個表。表空間就是存多個表的物理空間;可以指定表空間的大小位置等。
創建表空間:
create tablespace ts1 datafile 'C:\tablespace\ts1.dbf' size 50M;
自動擴展大小:
create tablespace ts2 datafile 'C:\tablespace\ts2.dbf' size 50M autoextend on next 10M;
設置最大空間:
create tablespace ts3 datafile 'C:\tablespace\ts3.dbf' size 50M autoextend on next 10M maxsize 1024M;
更改用戶默認表空間:
alter database default tablespace ts1;
表空間改名:
alter tablespace ts1 rename to tss1;
刪除表空間:
drop tablespace ts2 including contents and datafiles;
Oracle? 虛擬表 dual
Dual 表是 sys 用戶下的一張虛表;提供一些運算和日期操作時候用到;
select 2*3 from dual;
轉載于:https://www.cnblogs.com/hefeisf/p/4978223.html
總結
以上是生活随笔為你收集整理的Oracle 表及表空间(一)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 【转】java接口的性能测试
- 下一篇: mybatis generator ec