Oracle数据库-建库、建表空间,建用户

1、选择的数据库目录

  *\product\10.1.0\oradata\目录下(*表示oracle的安装目录)

2、创建表空间

  格式:  create tablespace 表间名 datafile '数据文件名' size 表空间大小;、

   SQL> create tablespace  数据库名 datafile 'F:\oracle\product\10.1.0\oradata\news\database.dbf' size 500M;

3、创建用户

  格式:  create user  用户名 identified by 密码  default tablespace 表空间表;

  SQL> create user 用户 identified by 密码 default tablespace 表空间;

4、用户授权

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

  SQL> grant dba to news;  --表示把 dba权限授予给news用户

posted @ 2018-06-19 14:41  柒陆零柒伍伍柒玖零  阅读(134)  评论(0编辑  收藏  举报