Oracle 12c创建scott用户

本文档介绍了在Oracle 12c中如何手动创建scott用户并进行授权、设置表空间,最后通过SQL Developer进行数据库操作。步骤包括创建c##scott用户,设置密码为tiger,授权,设定用户表空间,以及验证登录和使用数据库。
摘要由CSDN通过智能技术生成

备注: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)
);

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值