启动em 报错如下:
- [oracle@server253 bin]$ emctl start dbconsole
- Environment variable ORACLE_UNQNAME not defined. Please set ORACLE_UNQNAME to database unique name.
解决方法:
oracle的环境变量UNQNAME没设或设置不正确
export ORACLE_UNQNAME=benguo(换上你自己的)export这个参数和em企业管理器有关。
- [oracle@server253 bin]$ vim /home/oracle/.bash_profile
- ORACLE_SID=benguo
- # .bash_profile
- # Get the aliases and functions
- if [ -f ~/.bashrc ]; then
- . ~/.bashrc
- fi
- # Oracle profile
- ORACLE_OWENR=oracle
- ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
- ORACLE_BASH=/u01/app/oracle
- ORACLE_SID=benguo
- ORACLE_UNQNAME=benguo
- NLS_LANG="SIMPLIFIED CHINESE_CHINA.ZHS16GBK"
- LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib
- # User specific environment and startup programs
- PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin
- export PATH ORACLE_OWENR ORACLE_HOME ORACLE_SID ORACLE_BASH NLS_LANG LD_LIBRARY_PATH
- ~
- ~
- "~/.bash_profile" 20L, 511C 已写入
转载于:https://blog.51cto.com/icooke/937496