Oracle建立表空间和用户
来源:互联网 发布:公开课推荐 知乎 编辑:程序博客网 时间:2024/06/18 08:41
建立用户并授权
建立:create user 用户名 identified by "密码"; 授权:grant create session to 用户名; grant create table to 用户名; grant create tablespace to 用户名; grant create view to 用户名;
建立表空间
create tablespace 表空间名 datafile ' 路径(要先建好路径)\***.dbf ' size *M tempfile ' 路径\***.dbf ' size *M autoextend on --自动增长 --还有一些定义大小的命令,看需要 default storage( initial 100K, next 100k, );
授予用户使用表空间的权限
alter user 用户名 quota unlimited on 表空间; 或 alter user 用户名 quota *M on 表空间;
举例
--1.建表空间 CREATE TABLESPACE sdt DATAFILE 'F:\tablespace\demo' size 800M EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO; --2.建索引表空间 CREATE TABLESPACE sdt_Index DATAFILE 'F:\tablespace\demo' size 512M EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO; --3.建用户 create user demo identified by demo default tablespace std; --4.赋权 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;
阅读全文
0 0
- Oracle建立表空间和用户
- Oracle建立表空间和用户
- Oracle建立表空间和用户
- Oracle建立表空间和用户
- oracle建立表空间和数据库用户
- Oracle建立表空间和用户
- Oracle建立用户和表空间问题
- Oracle建立表空间和用户 、备份
- Oracle建立表空间和用户
- Oracle建立表空间和用户
- Oracle建立表空间和用户
- Oracle建立表空间和用户
- Oracle建立表空间和用户
- Oracle建立表空间和用户
- Oracle建立表空间和用户
- Oracle建立表空间和用户
- Oracle建立表空间和用户
- Oracle建立表空间和用户
- Codeforces Round #434 (Div. 2, based on Technocup 2018 Elimination Round 1) D
- ActiveX,NPAPI,COM总结
- new Option()函数的作用
- 对Excel工作表Sheet1快速隐藏行和列无需手动一个个选择
- C中不安全的函数以解决办法汇总
- Oracle建立表空间和用户
- Ocacle函数,三层嵌套分页
- c语言入门(1)
- 第十二天、图像膨胀腐蚀
- Nginx源码启动过程分析(图)
- 微信小程序语音识别服务搭建全过程解析(内附免费的供小程序语音识别的https服务)
- [MYSQL -19]插入数据
- VMware虚拟机下安装CentOS7.0超详细图文教程
- eclipse中使用java working set