基本命令
启动监听
lsnrctl start(stop关闭,还有reload和status)
启动数据库
sqlplus /nolog
conn /as sysdba
startup
查看pdb(需要连接用户)
show pdbs(状态为mounted为关闭)
打开pdb
alter pluggable database xxx oepn;xxx为pdb名,xxx改成all将打开所有pdb
创建pdb用户
alter session set container=xxx;xxxpdb名
create user 用户名 identified by 密码
授权
grant dba to 用户名;设置为管理员
grant create session to 用户名;登录的权限
关闭oracle
shutdown immediate
退出
quit