读书人

Oracle创办用户 表空间

发布时间: 2012-07-02 17:46:23 作者: rapoo

Oracle创建用户 表空间
--创建临时表空间

create temporary tablespace oraclespace_temp
tempfile 'G:\oracle\product\10.2.0\oradata\oraclespace\oraclespace_temp.dbf'
size 32M
autoextend on
next 32M maxsize 2048M
extent management local;

--创建数据表空间

create tablespace oraclespace_data
logging
datafile 'G:\oracle\product\10.2.0\oradata\oraclespace\oraclespace_data.dbf'
size 32M
autoextend on
next 32M maxsize 2048M
extent management local;


--创建用户并指定表空间


create user edu identified by edu
default tablespace oraclespace_data
temporary tablespace oraclespace_temp;

--给用户授予权限



grant dba to edu;
revoke dba from edu;
grant connect,resource to edu;



登陆PL/SQL,提示“在这个数据库里,你没有被允许使用PL/SQL Developer。在PL/SQL Developer的授权表中,你没有使用权限。

解决办法:



先用DBA用户(sys或SYSTEM)登录PL/SQL.

在file(文件)菜单中的author...(授权)那个菜单里边

在上面的对话框里选择用户。选中这个用户。

在下面的对话框里给权限,选择(ALL)。

确定。

重新登录。


读书人网 >其他数据库

热点推荐