问题描述:由于普通用户C##TEST登陆不上sqlplus后,返回安装oracle 的服务器,由于服务器非本人安装,也不太熟因此解锁,耗费了大量的时间,因此记录以下
[oracle@i-bjh8bxaj bin]$ cat /home/oracle/.bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/.local/bin:$HOME/bin
export PATH
umask 022
export ORACLE_BASE=/orc/app/oracle
export ORACLE_HOME=/home/oracle/app/oracle/product/12.2.0/dbhome_1/
export PATH=$PATH:$ORACLE_HOME/bin
export ORACLE_SID=orcl
export NLS_LANG="SIMPLIFIED CHINESE_CHINA".UTF8
export PATH=$PATH:$HOME/.local/bin:$HOME/bin:$ORACLE_HOME/bin
export LANG=zh_CN.UTF-8
export PATH LANG NLS_LANG ORACLE_BASE ORACLE_HOME ORACLE_SID
找到oracle安装目录在ORACLE_HOME=/home/oracle/app/oracle/product/12.2.0/dbhome_1/
进入oracle 用户 su -oracle 密码是123456 默认密码
[oracle@i-bjh8bxaj ~]$ su - ora