oracle新建用户并授权

来源:互联网 发布:未来清单软件官方网站 编辑:程序博客网 时间:2024/05/22 13:03

1.创建用户的方法

create user <user_name> identified by <password>

default tablespace <tablespace>

temporary tablespace <temp_tablespace>

profile <profile>;

例子:

--创建表空间

create tablespace tablespace_test datafile 'D:\oracle\product\oradata\orcl\tablespace_test.dbf' size 50M autoextend on;

--创建临时表空间

create TEMPORARY tablespace tablespace_temp

'D:\oracle\product\oradata\orcl\tablespace_temp.dbf' size 20M autoextend on;

--创建用户

create user peter identified by picc_060933

default tablespace tablespace_test

temporary tablespace tablespace_temp

profile default;



授权部分:http://blog.csdn.net/fumin1987/article/details/5408462

0 0