用system用户登陆
1.创建表空间
create tablespace sciarr DATAFILE '/opt/oracle/sciarr.dbf' SIZE 5000M AUTOEXTEND ON NEXT 200M
2.创建用户
create user sciarry identified by sciarry default tablespace sciarr
3. 授权
grant connect to 用户 grant resource to 用户 grant create sequence to 用户 grant create view to 用户
4.建表
create table table1 (idno number(10),idname varchar2(10));
(1)用system 登录
conn system/system
(2)创建用户
created User user identified by aaa11 default tablespace user (默认表空间)
(3)让system给 user 进行授权 让他可以链接数据库 和可以创建表的能力
grant connect,resource to 用户
(4)用user用户登录
conn user/aaa11
(5)可以创建表
created table bb(id number(10),name varchar2(10));
授权,是在建数据库时赋予的...还有表空间也是..在建数据库时赋予的....