在数据库下新建表空间 用户 权限

1.在数据库文件夹下建立表空间 

create tablespace news_tablespace datafile 'E:\Oracle\admin\orcl\news_data.dbf' size 500M;  

(E:\Oracle\admin\orcl:新建数据库位置   news_tablespace :表空间名   news_data.dbf:表空间文件名)


2.在表空间下创建用户

create user person identified by password default tablespace news_tablespace;  

(person :用户名  password :用户密码   news_tablespace:表空间)


3.给新建的用户授权

grant connect,resource to person;  --表示把 connect,resource权限授予person用户

grant dba to person;  --表示把 dba权限授予给person用户


猜你喜欢

转载自blog.csdn.net/qq_39470834/article/details/80811328