这篇文章主要介绍Oracle RAC如何创建表空间和用户,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完!
创建表空间:
create tablespace hr6_Data datafile
‘+DATA’ size 5000M REUSE
autoextend on next 10M MAXSIZE Unlimited
extent manage免费主机域名ment local autoallocate
permanent
online;
创建临时表空间:
create temporary tablespace hr6_TempData tempfile
‘+DATA’ size 200M REUSE
autoe免费主机域名xtend 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如何创建表空间和用户”这篇文章的所有内容,感谢各位的阅读!希望分享的内容对大家有帮助,更多相关知识,欢迎关注云技术行业资讯频道!
相关推荐: MYSQL5中master slave数据同步如何配置
这篇文章将为大家详细讲解有关MYSQL5中master slave数据同步如何配置,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。测试环境.基本上数据是瞬间同步,希望对大家有帮助RedHat ES 3 update 3MYSQ…