–创建表空间
create tablespace itheima
datafile 'E:\oracle\workspace\itheima.dbf'
size 100m
autoextend on
next 10m;
–删除表空间
drop tablespace itheima;
–创建用户
create user itheima
identified by itheima
default tablespace itheima;
–给用户授权
–oracle数据库中常用角色
connect--连接角色,基本角色
resource--开发者角色
dba--超级管理员角色
–给itheima用户授予dba角色
grant dba to itheima;
–账号
sys ------系统管理员 登录必须是sysdba 或者sysoper权限用来启动数据库关闭
system ------管理员 基本操作功能
scott ------普通账户 出事使用时是lock,需要使用管理员来unlock 密码官方设置tiger
sqlplus 连接数据库使用conn 账号/密码 as 身份信息 如:dba
账号断开:disc
使用sys 对
数据库 关闭命令: shutdown
数据库 启动命令: startup
持续更新中…