bd2007 发表于 2013-2-3 11:18:27

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)。

确定。

重新登录。
页: [1]
查看完整版本: Oracle创建用户 表空间