标签:ini tar reserve user 查看 def fine nmp env
解决oracle报Environment variable ORACLE_UNQNAME not definedSQL*Plus: Release 11.2.0.1.0 Production on 星期二 10月 16 19:24:32 2018
Copyright (c) 1982, 2010, Oracle. All rights reserved.
sql>sqlplus / as sysdba
sql>alter user dbsnmp identified by xxx;
2,删除早期DBCONSOLE创建的用户:
sql>drop role MGMT_USER;
sql>drop user MGMT_VIEW cascade;
sql>drop user sysman cascade;
3,删除早期DBCONSOLE创建的对象:
sql>drop PUBLIC SYNONYM MGMT_TARGET_BLACKOUTS;
sql>drop public synonym SETEMVIEWUSERCONTEXT;
sql>drop public synonym MGMT_AVAILABILITY;
sql>drop public synonym MGMT_CURRENT_AVAILABILITY;
sql>drop public synonym MGMT_SEVERITY_OBJ;
4,重新创建DBCONSOLE:
sql>$emca -config dbcontrol db -repos recreate;
根据提示,先输入SID,再输入Y继续;
输入端口1521,输入SYS密码,输入DBSNMP密码,输入SYSMAN 密码,输入Y继续
等待配置完成。
配置Oracle_SID
在计算机-属性-高级-环境变量
添加一条环境变量
变量名:ORACLE_SID
变量值:orcl(填写数据库的实例名)
查看em状态
C:\Users\Administrator>emctl status;
停止em
C:\Users\Administrator>emctl stop;
启动em
C:\Users\Administrator>emctl start;
最后测试访问em
解决oracle报Environment variable ORACLE_UNQNAME not d
标签:ini tar reserve user 查看 def fine nmp env
原文地址:http://blog.51cto.com/12266194/2300862