您好,登录后才能下订单哦!
这篇文章主要介绍Oracle RAC如何创建表空间和用户,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完!
创建表空间:
create tablespace hr6_Data datafile
'+DATA' size 5000M REUSE
autoextend on next 10M MAXSIZE Unlimited
extent management local autoallocate
permanent
online;
创建临时表空间:
create temporary tablespace hr6_TempData tempfile
'+DATA' size 200M REUSE
autoextend on next 10M MAXSIZE Unlimited
extent management local uniform size 256K;
查看表空间情况:
SELECT t.tablespace_name, round(SUM(bytes / (1024 * 1024)), 0) ts_size
FROM dba_tablespaces t, dba_data_files d
WHERE t.tablespace_name = d.tablespace_name
GROUP BY t.tablespace_name;
创建用户:
SQL> create user wmwhse6 profile SCEUSER identified by "XXXX"
default tablespace wmwhse6_Data temporary tablespace wmwhse6_TempData;
User created.
SQL> grant connect,resource to wmwhse6;
Grant succeeded.
SQL> grant dba to wmwhse6;
Grant succeeded.
SQL> create role r_wmwhse6 not identified;
Role created.
SQL> grant r_wmwhse6 to wmwhse6;
Grant succeeded.
删除临时表空间:
SQL> DROP TABLESPACE HR6_TEMPDATA INCLUDING CONTENTS AND DATAFILES;
Tablespace dropped.
删除表空间:
SQL> DROP TABLESPACE HR6_DATA INCLUDING CONTENTS AND DATAFILES;
Tablespace dropped.
以上是“Oracle RAC如何创建表空间和用户”这篇文章的所有内容,感谢各位的阅读!希望分享的内容对大家有帮助,更多相关知识,欢迎关注亿速云行业资讯频道!
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。