oracle 常用命令

来源:互联网 发布:matlab将数组写入txt 编辑:程序博客网 时间:2024/05/14 20:43

-- 创建临时表空间
02create temporary tablespace os_temp
03tempfile 'C:/Oracle/product/10.2.0/oradata/os_temp.dbf'
04size 100m
05autoextend on
06next 100m maxsize 1024m
07extent management local;
08 
09-- 创建数据表空间
10create tablespace os_data
11datafile 'C:/Oracle/product/10.2.0/oradata/os_data.dbf'
12size 100m
13autoextend on
14next 100m maxsize 1024m
15extent management local;
16 
17-- 创建用户
18create user os identified by os
19default tablespace os_data
20temporary tablespace os_temp;
21 
22-- 给用户授予权限
23grant connect,resource to os;
24 
25-- 删除表空间
26drop tablespace os_data including contents and datafiles;

原创粉丝点击