oracle创建时已有的用户sys(超级管理员),system(系统管理员),scott(普通用户)
1.用system登录(normal),创建表空间
create tablespace 表名(ts_az)
datafile ‘路径(D:\app\Administrator\oradata\orcl\ts_az.dbf)size 10m(表空间的大小)’
2.创建用户,授权(connect,resource)
create user az
identified by "123"
default tablespace TS_AZ
temporary tablespace TEMP;
授权
grant connect to az;
grant resource to az;
grant resource to az;
3.用新创建的用户登录,创建表
create table t1(
id number not null primary key,
name varchar2(20)
);
id number not null primary key,
name varchar2(20)
);
本文介绍如何使用Oracle系统管理员用户system创建表空间、新用户及授权,并通过新用户创建表的基本步骤。涵盖表空间配置、用户权限设置及表结构定义等内容。
3331

被折叠的 条评论
为什么被折叠?



