备注: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)
);
本文档介绍了在Oracle 12c中如何手动创建scott用户并进行授权、设置表空间,最后通过SQL Developer进行数据库操作。步骤包括创建c##scott用户,设置密码为tiger,授权,设定用户表空间,以及验证登录和使用数据库。
755

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



