oracle

来源:互联网 发布:局域网视频软件 编辑:程序博客网 时间:2024/06/06 08:32

create database:
create database test …..

create sequence
create sequence seq_test
minvalue 1
maxvalue 99999999
increment by 1
start with 1
nocache
order no cycle;

create tablespace
create tablespace tbs_test
datafile ‘D:\oracle\product\10.2.0\oracle\test\tbs_test.dbf’
size 50M
autoextend on next 50M
maxsize unlimited;

tablespace_info
SELECT
t.tablespace_name,
ROUND(SUM(bytes/(1024*1024)),0) ts_size
FROM
dba_tablespaces t,
dba_data_files d
WHERE
t.tablespace_name=d.tablespace_name
GROUP BY
t.tablespace_name;

==================未完待续===============