保捱科技网
您的当前位置:首页Oracle创建表用户、空间

Oracle创建表用户、空间

来源:保捱科技网


oracle创建用户、表空间 无 /*查看表空间文件位置*/select *from dba_data_files;--创建arcgis 表空间、用户/*第1步:创建临时表空间 */create temporary tablespace test_temp tempfile '/home/oracle/app/orcl/test_temp.dbf' //上面查询出的表空间文件路径

oracle 创建用户、表空间 <无> $velocityCount-->
/*查看表空间文件位置*/
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;
显示全文