oracle创建表空间、用户
2016-06-30 21:34
423 查看
--1:创建临时表空间
create temporary tablespace spa_authsys_temp
tempfile 'F:\soft64\ora11g\oradata\orcl\my\authsys_temp.dbf'
size 50m
autoextend on
next 50m maxsize 1024m
extent management local;
--2:创建数据表空间
create tablespace spa_authsys_data
logging
datafile 'F:\soft64\ora11g\oradata\orcl\my\authsys_data.dbf'
size 50m
autoextend on
next 50m maxsize 1024m
extent management local;
--第3步:创建用户并指定表空间
create user authsys identified by authsys
default tablespace spa_authsys_data
temporary tablespace spa_authsys_temp;
--第4步:给用户授予权限
grant connect,resource to authsys;
grant create any sequence to authsys;
grant create any table to authsys;
grant delete any table to authsys;
grant insert any table to authsys;
grant select any table to authsys;
grant unlimited tablespace to authsys;
grant execute any procedure to authsys;
grant update any table to authsys;
grant create any view to authsys;
create temporary tablespace spa_authsys_temp
tempfile 'F:\soft64\ora11g\oradata\orcl\my\authsys_temp.dbf'
size 50m
autoextend on
next 50m maxsize 1024m
extent management local;
--2:创建数据表空间
create tablespace spa_authsys_data
logging
datafile 'F:\soft64\ora11g\oradata\orcl\my\authsys_data.dbf'
size 50m
autoextend on
next 50m maxsize 1024m
extent management local;
--第3步:创建用户并指定表空间
create user authsys identified by authsys
default tablespace spa_authsys_data
temporary tablespace spa_authsys_temp;
--第4步:给用户授予权限
grant connect,resource to authsys;
grant create any sequence to authsys;
grant create any table to authsys;
grant delete any table to authsys;
grant insert any table to authsys;
grant select any table to authsys;
grant unlimited tablespace to authsys;
grant execute any procedure to authsys;
grant update any table to authsys;
grant create any view to authsys;
相关文章推荐
- oracle ORA_ROWSCN 行记录的更新时间
- Oracle dblink调用函数报ORA-00904 标识符无效
- ORACLE在dos管理命令
- oracle表碎片整理
- 【Oracle 优化器】自适应游标共享(Adaptive Cursor Sharing)功能
- 如何创建Oracle数据库
- Oracle导入导出提示EXP-0006:出现内部不一致的错误解决办法
- oracle存储过程将某张表一个字段的多值分开成多条数据插入到一张新表
- 通过sqoop增量传送oracle数据到hive
- Oracle java.sql.SQLException: 数字溢出
- Oracle的if else if
- Oracle:跳跃式索引(Skip Scan Index)浅析
- oracle数据库截取字符串
- oracle使用数据泵导入导出数据
- oracle扩展表空间以及清空临时表
- oracle数据库常见操作
- oracle spool导出数据和sqlldr导入数据
- Oracle EXP-00091解决方法
- Hibernate入门配置详解及例子
- ORACLE用户A导出给用户B