1.实例切换
有三个数据库test,eBuy,BookData,现在需要切换
export ORACLE_SID=eBuy
sqlplus /nolog 或者sqlplus / as sysdba
connect / as sysdba
startup
exit
2 查看当前数据库与用户
show user;
select instance_name from v$instance;
3 账户被锁住了
sqlplus sys/密码 as sysdba # 先用管理员登陆
alter user scott account unlock; #解锁
4 使用alter user来改密码(现在某个实例下登录某数据库,然后修改密码)
sqlplus "/as sysdba"
alter user sys identified by oracle;
Linux下怎样启动和关闭Oracle数据库
https://www.linuxidc.com/Linux/2017-10/147395.htm