oracle11g创建表空间、用户及授权

来源:互联网 发布:编程单引号怎么打 编辑:程序博客网 时间:2024/06/05 09:54

1、安装完oracle数据库之后,首先在windows运行中,输入:sqlplus / as sysdba

出现如下提示表示成功连接到数据库


2、创建表空间:

输入:create tablespace test_temp datafile 'test_temp.ora' size 1000m;

test_temp:表空间名

test_temp.ora:表空间文件路径

3、创建用户:

输入:create user username identified by password default tablespace test_temp quota 500m on users;

4、给新用户授权:

输入:grant all privileges to username;

原创粉丝点击