Oracle 创建表用户、空间

2015-10-16 0 142
Oracle 创建表用户、空间
/*查看表空间文件位置*/
select *from dba_data_files;

--创建arcgis 表空间、用户
/*第1步:创建临时表空间  */
create temporary tablespace test_temp  
tempfile '/home/oracle/app/orcl/test_temp.dbf' //上面查询出的表空间文件路径,也可以自定义
size 50m  //初始大小
autoextend on  
next 30m maxsize unlimited;//每次自增大小 
 
/*第2步:创建数据表空间  */
create tablespace test  
logging  
datafile '/home/oracle/app/orcltest.dbf' 
size 50m  
autoextend on  
next 30m maxsize unlimited;  
 
/*第3步:创建用户并指定表空间  */
create user testuser identified by testpass
default tablespace test  
temporary tablespace test_temp; 

/*第4步:给用户授予权限  */
grant connect,resource to testuser;

遇见资源网 sql Oracle 创建表用户、空间 http://www.ox520.com/17891.html

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务