oracle 建表空间和用户 简单的
2016-03-15 16:02
435 查看
--表空间
CREATE TABLESPACE nongji
DATAFILE 'D://nongji.file' size 800M
EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO;
--索引表空间
CREATE TABLESPACE nongji_Index
DATAFILE 'D://nongji.file_index' size 512M
EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO;
--2.建用户
create user nongji identified by "123456"
default tablespace nongji ;
--3.赋权
grant connect,resource to nongji ;
grant create any sequence to nongji ;
grant create any table to nongji ;
grant delete any table to nongji ;
grant insert any table to nongji ;
grant select any table to nongji ;
grant unlimited tablespace to nongji ;
grant execute any procedure to nongji ;
grant update any table to nongji ;
grant create any view to nongji ;
CREATE TABLESPACE nongji
DATAFILE 'D://nongji.file' size 800M
EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO;
--索引表空间
CREATE TABLESPACE nongji_Index
DATAFILE 'D://nongji.file_index' size 512M
EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO;
--2.建用户
create user nongji identified by "123456"
default tablespace nongji ;
--3.赋权
grant connect,resource to nongji ;
grant create any sequence to nongji ;
grant create any table to nongji ;
grant delete any table to nongji ;
grant insert any table to nongji ;
grant select any table to nongji ;
grant unlimited tablespace to nongji ;
grant execute any procedure to nongji ;
grant update any table to nongji ;
grant create any view to nongji ;
相关文章推荐
- ORACLE调整归档日志大小
- oracle的jdbc连接方式:oci和thin
- oracle数据库导入导出命令!
- oracle-函数
- Oracle12c中新建用户
- Oracle Linux 6.5 RPM安装Mysql 5.7.11
- oracle中database links的使用
- Oracle查询性能优化
- navicat连接MSSQL和ORACLE
- Oracle物化视图
- Oracle 11g 64位 下载
- ORACLE分页查询SQL语法——最高效的分页
- Oracle 删除数据的几种方法
- Windows下Oracle安装图解----oracle-win-64-11g 详细安装步骤
- 最新 php oracle 数据库连接 数据库分页
- oracle 转 mysql 最新有效法
- Oracle 第三方管理工具整理
- php 替换 oracle 数据字段中“看不见”换行符号
- windows xp 环境下 Oracle8i 双击安装文件无反应的解决办法
- oracle——SQL复习03