备注:Oracle 11g中有scott用户,当我们安装Oracle 12c的过程中,惊奇的发现没有scott用户,所以我们自己创建。
1.创建c##scott用户,密码tiger
create user c##scott identified by tiger
2.给c##scott用户授权
grant connect,resource,unlimited tablespace to c##scott container=all;
3.设置用户表空间
alter user c##scott default tablespace users;
alter user c##scott temporary tablespace temp;
4.使用c##scott用户登录
connect c##scott/tiger
5.显示当前用户
show user;
6.使用SQL Developer操作数据库
#创建表
create table tb_emp1
(
id number(11),
name varchar2(25),
deptId number(11),
salary number(9,2)
);