`
jasonw68
  • 浏览: 149432 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

oracle 创建表空间和用户

    博客分类:
  • SQL
阅读更多

1.E:\oracle\product\10.2.0\oradata\目录下新建test 文件夹

 

2.执行以下命令新建名为 test表空间

create tablespace test datafile 'E:\oracle\product\10.2.0\oradata\test\test_date.dbf' size 800M

 

3.创建新用户

create user shing identified by shing default tablespace test;

 

4.授权给新建用户

SQL> grant connect,resource to shing;

Grant succeeded

SQL> grant dba to shing;

Grant succeeded

 

5.修改为自动扩展
alter database datafile 'E:\ORACLEDB\SEHR.DBF' autoextend on next 100M maxsize 20000M

6.增加文件
alter tablespace sehr
add datafile 'E:\ORACLEDB\SEHR2.DBF' size 2000M autoextend on next 100M maxsize 20000M

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics