登錄SQL Plus
1、系統用戶
sys,system
sysman(操縱企業管理器使用)
scott
使用系統用戶登錄
[username/password][@server][as sysdba|sysoper]
如:使用system用戶登錄
System/Oracle12c @HYH as sysdba
HYH就是自己設置的服務名
2、查看登錄用戶
show user
命令
dba_users
數據字典
數據字典是數據庫提供的表,用於查看數據庫的信息
3、啓用scott用戶
(1)使用超級管理員登錄
conn sys/Oracle12c as sysdba;
(2)創建c##scott用戶
create user c##scott identified by tiger;
(3)爲用戶授權
grant connect,resource,unlimited tablespace to c##scott container=all;
(4)設置用戶使用的表空間
alter user c##scott default tablespace users;
alter user c##scott temporary tablespace temp;
(5)使用c##scott用戶登錄
connect c##scott/tiger