1. 登陆oracle用户
2. 修改/home/oracle/.bash_profile这个文件,里面应该有一行export ORACLE_SID = your_current_sid, 把它改成你现在的new_sid
3. source .bash_profile //让你的环境变量生效,如果不打这个命令的话,下次你登陆到oracle,才会生效
2. 修改/home/oracle/.bash_profile这个文件,里面应该有一行export ORACLE_SID = your_current_sid, 把它改成你现在的new_sid
3. source .bash_profile //让你的环境变量生效,如果不打这个命令的话,下次你登陆到oracle,才会生效