黑马oracle_day01:02.oracle的基本操作

01.oracle体系结构

02.oracle的基本操作

03.oracle的查询

04.oracle对象

05.oracle编程

02.oracle的基本操作

04创建表空间创建用户以及用户授权

 

 

-- 创建表空间
create tablespace itheima
datafile 'c:\oracle\itheima.dbf'
size 100m
autoextend on
next 10m;

-- 删除表空间
drop tablespace itheima;
-- 创建用户
create user kangmianfeng
-- 设置用户密码
identified by root
-- 设置所属表空间
default tablespace itheima;
-- 给用户授权
-- oracle数据库中常用角色
connect --连接角色,基本角色
resource --开发者角色
dba --超级管理员
-- 给kangmianfeng授予dba角色
grant dba to kangmianfeng;

-- 切换到kangmianfeng用户下(Session-Logoff-all ---> Session-Logon-kangmianfeng)

05数据类型介绍和表的创建

===================

end

猜你喜欢

转载自www.cnblogs.com/MarlonKang/p/11531336.html