[img]http://dl2.iteye.com/upload/attachment/0096/7621/f517ffb3-ef87-346a-acf4-4e3a7b76ef2b.jpg[/img]
测试准备
1 创建表数据空间
SQL> create tablespace cat_data nologging
datafile '/home/Oracle/app/oracle/oradata/catdb/cat_data.dbf' size 4096M
extent management local autoallocate;
2,创建表索引空间
SQL> create tablespace cat_index nologging
datafile '/home/oracle/app/oracle/oradata/catdb/cat_index.dbf' size 4096M
extent management local autoallocate;
3,创建用户
SQL> create user cat identified by cat default tablespace cat_data account unlock;
SQL> grant connect, resource to cat;
SQL> grant select on v_$instance to cat;
SQL> grant select on v_$session to cat;
SQL> grant select any table to cat;
SQL> grant alter any sequence to cat;
SQL> grant create any trigger to cat;
SQL> grant create any directory to cat;
SQL> grant create any procedure to cat;
SQL> grant create any table to cat;
SQL> grant dba to cat;
测试准备
1 创建表数据空间
SQL> create tablespace cat_data nologging
datafile '/home/Oracle/app/oracle/oradata/catdb/cat_data.dbf' size 4096M
extent management local autoallocate;
2,创建表索引空间
SQL> create tablespace cat_index nologging
datafile '/home/oracle/app/oracle/oradata/catdb/cat_index.dbf' size 4096M
extent management local autoallocate;
3,创建用户
SQL> create user cat identified by cat default tablespace cat_data account unlock;
SQL> grant connect, resource to cat;
SQL> grant select on v_$instance to cat;
SQL> grant select on v_$session to cat;
SQL> grant select any table to cat;
SQL> grant alter any sequence to cat;
SQL> grant create any trigger to cat;
SQL> grant create any directory to cat;
SQL> grant create any procedure to cat;
SQL> grant create any table to cat;
SQL> grant dba to cat;
本文详细介绍了如何创建表空间、用户以及分配权限,包括数据空间、索引空间的创建,用户身份验证、资源访问控制等核心步骤,旨在帮助数据库管理员高效管理数据库资源。
2789

被折叠的 条评论
为什么被折叠?



