oracle12 关于数据库pdb cdb切换
cdb数据库中创建用户 名称前要加 c##
alter pluggable database "pdbname" open/close; 开启可插入数据库开启、关闭
alter session set container="pdbname/cdbname"; 切换到对应数据库(cdb或pdb)
alter user "username" account unlock/lock; 给用户解锁/上锁
select con_id, dbid, guid, name , open_mode from v$pdbs; 查看pdb数据库有哪些
select usernamefrom dba_users where username like '%SCOTT%'; 查看用户