首页 > 代码库 > Oracle创建 表空间 用户 给用户授权命令

Oracle创建 表空间 用户 给用户授权命令

技术分享

//创建表空间

create tablespace ACHARTS
datafile ‘D:\oradata\orcl\ACHARTS01.DBF‘ size 800m
autoextend on next 10m maxsize 3000m

//删除表空间
drop tablespace ACHARTS

//创建用户""内是密码
create user acharts identified by "acharts";

//删除用户
drop user tcuser2

//给acharts用户授权
grant connect,resource to acharts;
alter user acharts default tablespace ACHARTS;

 

 

试登录

C:\Users\wd>sqlplus

SQL*Plus: Release 11.2.0.1.0 Production on Sat Jun 10 10:07:21 2017

Copyright (c) 1982, 2010, Oracle. All rights reserved.

Enter user-name: jeesite
Enter password:

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL>

Oracle创建 表空间 用户 给用户授权命令