首页 > 数据库 > Oracle > 正文

Oracle 10g创建表空间和用户并指定权限

2023-06-04 17:07:35
字体:
来源:转载
供稿:网友

SQLPLUS 以管理员(sys)登陆数据库

  #sqlplus '/as sysdba'

  创建临时表空间

  create temporary tablespace mven_temp

  tempfile '/opt/oracle/oradata/mven/mven_temp.dbf'

  size 128m;

  创建数据表空间

  create tablespace mven

  logging

  datafile '/opt/oracle/oradata/mven/mven.dbf'

  size 2048m;

  创建用户并指定表空间

  create user mven identified by OracleUserMven

  default tablespace mven

  temporary tablespace mven_temp;

  给用户授予权限

  grant connect,resource to mven;

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表