oracle建表空间、用户
2016-07-04 16:51
363 查看
--表空间
CREATE TABLESPACE sdt
DATAFILE 'F:\tablespace\demo' size 800M
EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO;
--索引表空间
CREATE TABLESPACE sdt_Index
DATAFILE 'F:\tablespace\demo' size 512M
EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO;
--2.建用户
create user demo identified by demo
default tablespace demo;
--3.赋权
grant connect,resource to demo;
grant create any sequence to demo;
grant create any table to demo;
grant delete any table to demo;
grant insert any table to demo;
grant select any table to demo;
grant unlimited tablespace to demo;
grant execute any procedure to demo;
grant update any table to demo;
grant create any view to demo;
[sql] view
plain copy
--导入导出命令
ip导出方式: exp demo/demo@127.0.0.1:1521/orcl file=f:/f.dmp full=y
exp demo/demo@orcl file=f:/f.dmp full=y
imp demo/demo@orcl file=f:/f.dmp full=y ignore=y
CREATE TABLESPACE sdt
DATAFILE 'F:\tablespace\demo' size 800M
EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO;
--索引表空间
CREATE TABLESPACE sdt_Index
DATAFILE 'F:\tablespace\demo' size 512M
EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO;
--2.建用户
create user demo identified by demo
default tablespace demo;
--3.赋权
grant connect,resource to demo;
grant create any sequence to demo;
grant create any table to demo;
grant delete any table to demo;
grant insert any table to demo;
grant select any table to demo;
grant unlimited tablespace to demo;
grant execute any procedure to demo;
grant update any table to demo;
grant create any view to demo;
[sql] view
plain copy
--导入导出命令
ip导出方式: exp demo/demo@127.0.0.1:1521/orcl file=f:/f.dmp full=y
exp demo/demo@orcl file=f:/f.dmp full=y
imp demo/demo@orcl file=f:/f.dmp full=y ignore=y
相关文章推荐
- oracle存储过程定义游标用动态sql
- Oracle----oracle 事务总结
- C# 处理批量插入数据(事物) mysql oracle sqlserver三个版本
- Oracle体系结构详细图解
- Oracle存储过程给变量赋值的方法
- Entity Framework6 with Oracle(可实现code first)
- ORACLE客户端安装--ODP.NET用于VS2013
- Linux下安装Oracle11g
- 使用JDBC处理Oracle大数据
- oracle数据库如何保存SQL语句?
- Oracle 账户锁定问题解决办法
- Java使用JDBC或MyBatis框架向Oracle中插入XMLType数据
- 不用安装Oracle客户端,远程连接Oracle数据库
- Oracle 动态SQL语句
- Oracle建立表空间和用户
- Oracle游标总结
- Oracle PL/SQL入门
- Oracle PL/SQL进阶
- Oracle PL/SQL基础知识
- oracle表分区详解