当前位置:  数据库>oracle

Oracle 11gr2 RAC环境配置OEM 报ORA-12514错误

    来源: 互联网  发布时间:2017-05-11

    本文导语: 今天一个客户打电话过来说他们的OEM出了问题用不起,OEM这个东西得说了很多次,但是自己从来没有玩过。下面就在自己的测试环境来玩一点,结果报错了。 环境:OS:RHEL 5.6 X86_64  DB:11.2.0.2 RAC 1,开始配置OEM [Oracle@11rac1 ~]$ emca ...

今天一个客户打电话过来说他们的OEM出了问题用不起,OEM这个东西得说了很多次,但是自己从来没有玩过。下面就在自己的测试环境来玩一点,结果报错了。

环境:OS:RHEL 5.6 X86_64  DB:11.2.0.2 RAC

1,开始配置OEM

  • [Oracle@11rac1 ~]$ emca -config dbcontrol db -repos create -cluster
  • STARTED EMCA at Nov 7, 2012 11:00:18 PM
  • EM Configuration Assistant, Version 11.2.0.0.2 Production
  • Copyright (c) 2003, 2005, Oracle.  All rights reserved.
  • Enter the following information:
  • Databaseuniquename: power
  • Service name: power
  • Listener port number: 1521
  • Listener ORACLE_HOME [ /u01/app/11.2.0/grid ]: 
  • Passwordfor SYS user: 
  • Passwordfor DBSNMP user: 
  • Passwordfor SYSMAN user: 
  • Cluster name: test
  • Email address for notifications (optional): 
  • Outgoing Mail (SMTP) server for notifications (optional): 
  • ASM ORACLE_HOME [ /u01/app/11.2.0/grid ]: 
  • ASM port [ 1521 ]: 
  • ASM username [ ASMSNMP ]:
  • #这里报不能解析ASM
  • ASM userpassword: 
  • Nov 7, 2012 11:01:43 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngineRemotely
  • WARNING: Error during db connection : ORA-12514: TNS:listener does not currently know of service requested inconnect descriptor
  • Nov 7, 2012 11:01:48 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngineRemotely
  • WARNING: ORA-12154: TNS:could not resolve the connect identifier specified
  • Nov 7, 2012 11:01:49 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngineRemotely
  • WARNING: Error during db connection : ORA-12514: TNS:listener does not currently know of service requested inconnect descriptor
  • Nov 7, 2012 11:01:54 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngineRemotely
  • WARNING: ORA-12154: TNS:could not resolve the connect identifier specified
  • Password validation failed. Someof the possible reasons may be:
  •  
  • 1) Invalid username/password. 
  • 2) Databaseisnot up. 
  • 3) Scan listener not up. 
  • 4) Database service isnot registered with scan listener. 
  • 5) Password file may be missing or configured incorrectly. 
  • ASM userpassword: 
  • ASM userpassword: Nov 7, 2012 11:12:21 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngineRemotely
  • WARNING: Error during db connection : ORA-12514: TNS:listener does not currently know of service requested inconnect descriptor
  • Nov 7, 2012 11:12:26 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngineRemotely
  • WARNING: ORA-12154: TNS:could not resolve the connect identifier specified
  • Nov 7, 2012 11:12:26 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngineRemotely
  • WARNING: Error during db connection : ORA-12514: TNS:listener does not currently know of service requested inconnect descriptor
  • Nov 7, 2012 11:12:32 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngineRemotely
  • WARNING: ORA-12154: TNS:could not resolve the connect identifier specified
  • Password validation failed. Someof the possible reasons may be:
  •  
  • 1) Invalid username/password. 
  • 2) Databaseisnot up. 
  • 3) Scan listener not up. 
  • 4) Database service isnot registered with scan listener. 
  • 5) Password file may be missing or configured incorrectly. 
  • 2.查看监听消息

  • [grid@11rac1 ~]$ ps -ef|grep lsn
  • grid      3957    1  0 09:15 ?        00:00:00 /u01/app/11.2.0/grid/bin/tnslsnr LISTENER -inherit
  • grid      3990    1  0 09:15 ?        00:00:00 /u01/app/11.2.0/grid/bin/tnslsnr LISTENER_SCAN1 -inherit
  • grid      7006  6976  0 09:40 pts/0    00:00:00 grep lsn
  • [grid@11rac1 ~]$ lsnrctl status listener
  • LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 08-NOV-2012 09:40:51
  • Copyright (c) 1991, 2010, Oracle.  All rights reserved.
  • Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))
  • STATUS of the LISTENER
  • ------------------------
  • Alias                    LISTENER
  • Version                  TNSLSNR for Linux: Version 11.2.0.2.0 - Production
  • Start Date                08-NOV-2012 09:15:15
  • Uptime                    0 days 0 hr. 25 min. 36 sec
  • Trace Level              off
  • Security                  ON: Local OS Authentication
  • SNMP                      OFF
  • Listener Parameter File  /u01/app/11.2.0/grid/network/admin/listener.ora
  • Listener Log File        /u01/app/11.2.0/grid/log/diag/tnslsnr/11rac1/listener/alert/log.xml
  • Listening Endpoints Summary...
  •   (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
  •   (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.100.40)(PORT=1521)))
  •   (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.100.45)(PORT=1521)))
  • Services Summary...
  • Service "+ASM" has 1 instance(s).
  •   Instance "+ASM1", status READY, has 1 handler(s) for this service...
  • Service "power" has 1 instance(s).
  •   Instance "power1", status READY, has 1 handler(s) for this service...
  • Service "powerXDB" has 1 instance(s).
  •   Instance "power1", status READY, has 1 handler(s) for this service...
  • The command completed successfully
  • [grid@11rac1 ~]$ lsnrctl status listener_scan1
  • LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 08-NOV-2012 09:41:04
  • Copyright (c) 1991, 2010, Oracle.  All rights reserved.
  • Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1)))
  • STATUS of the LISTENER
  • ------------------------
  • Alias                    LISTENER_SCAN1
  • Version                  TNSLSNR for Linux: Version 11.2.0.2.0 - Production
  • Start Date                08-NOV-2012 09:15:18
  • Uptime                    0 days 0 hr. 25 min. 45 sec
  • Trace Level              off
  • Security                  ON: Local OS Authentication
  • SNMP                      OFF
  • Listener Parameter File  /u01/app/11.2.0/grid/network/admin/listener.ora
  • Listener Log File        /u01/app/11.2.0/grid/log/diag/tnslsnr/11rac1/listener_scan1/alert/log.xml
  • Listening Endpoints Summary...
  •   (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER_SCAN1)))
  •   (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.100.49)(PORT=1521)))
  • Services Summary...
  • Service "power" has 2 instance(s).
  •   Instance "power1", status READY, has 1 handler(s) for this service...
  •   Instance "power2", status READY, has 1 handler(s) for this service...
  • Service "powerXDB" has 2 instance(s).
  •   Instance "power1", status READY, has 1 handler(s) for this service...
  •   Instance "power2", status READY, has 1 handler(s) for this service...
  • The command completed successfully
  • [grid@11rac1 ~]$ sqlplus asmsnmp/oracle@scan:1521/+ASM as sysdba
  • SQL*Plus: Release 11.2.0.2.0 Production on Thu Nov 8 09:41:30 2012
  • Copyright (c) 1982, 2010, Oracle.  All rights reserved.
  • ERROR:
  • ORA-12514: TNS:listener does not currently know of service requested inconnect
  • descriptor
  • Enter user-name:   
  • [grid@11rac1 ~]$ sqlplus asmsnmp/oracle@192.168.100.40:1521/+ASM as sysdba
  • SQL*Plus: Release 11.2.0.2.0 Production on Thu Nov 8 09:44:57 2012
  • Copyright (c) 1982, 2010, Oracle.  All rights reserved.
  • Connected to:
  • Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
  • With the Real Application Clusters and Automatic Storage Management options
  • SQL> select instance_name from v$instance;
  • INSTANCE_NAME
  • ----------------
  • +ASM1
  • [grid@11rac1 ~]$ cd $ORACLE_HOME/network/admin
  • [grid@11rac1 admin]$ cat listener.ora
  • LISTENER=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER))))            # line added by Agent
  • LISTENER_SCAN1=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1))))                # line added by Agent
  • ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN1=ON                # line added by Agent
  • ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER=ON              # line added by Agent
  • [grid@11rac1 admin]$ cat endpoints_listener.ora
  • LISTENER_11RAC1=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=11rac1-vip)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.100.40)(PORT=1521)(IP=FIRST))))    # line added by Agent
  • 发现ASM的监听跑在LISTENER上面,没有注册到LISTENER_SCAN1里面,而OEM使用提LISTENER_SCAN1监听。

    3.手动注册监听,并查看状态

  • [grid@11rac1 ~]$ sqlplus / as sysdba
  • SQL*Plus: Release 11.2.0.2.0 Production on Thu Nov 8 12:07:09 2012
  • Copyright (c) 1982, 2010, Oracle.  All rights reserved.
  • Connected to:
  • Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
  • With the Real Application Clusters and Automatic Storage Management options
  • SQL> show parameter remote
  • NAME                                TYPE        VALUE
  • ------------------------------------ ----------- ------------------------------
  • remote_listener                      string
  • remote_login_passwordfile            string      EXCLUSIVE
  • remote_os_authent                    boolean    FALSE
  • remote_os_roles                      boolean    FALSE
  • SQL> alter system set remote_listener='scan:1521' scope=both sid='*';
  • System altered.
  • SQL> alter system register;
  • System altered.
  • SQL> exit
  • Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
  • With the Real Application Clusters and Automatic Storage Management options
  • [grid@11rac1 ~]$ ps -ef|grep lsn
  • grid      3957    1  0 09:15 ?        00:00:00 /u01/app/11.2.0/grid/bin/tnslsnr LISTENER -inherit
  • grid      3990    1  0 09:15 ?        00:00:00 /u01/app/11.2.0/grid/bin/tnslsnr LISTENER_SCAN1 -inherit
  • grid    16378 16263  0 12:08 pts/0    00:00:00 grep lsn
  • [grid@11rac1 ~]$ lsnrctl status listener_scan1
  • LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 08-NOV-2012 12:08:54
  • Copyright (c) 1991, 2010, Oracle.  All rights reserved.
  • Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1)))
  • STATUS of the LISTENER
  • ------------------------
  • Alias                    LISTENER_SCAN1
  • Version                  TNSLSNR for Linux: Version 11.2.0.2.0 - Production
  • Start Date                08-NOV-2012 09:15:18
  • Uptime                    0 days 2 hr. 53 min. 35 sec
  • Trace Level              off
  • Security                  ON: Local OS Authentication
  • SNMP                      OFF
  • Listener Parameter File  /u01/app/11.2.0/grid/network/admin/listener.ora
  • Listener Log File        /u01/app/11.2.0/grid/log/diag/tnslsnr/11rac1/listener_scan1/alert/log.xml
  • Listening Endpoints Summary...
  •   (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER_SCAN1)))
  •   (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.100.49)(PORT=1521)))
  • Services Summary...
  • Service "+ASM" has 2 instance(s).
  •   Instance "+ASM1", status READY, has 1 handler(s) for this service...
  •   Instance "+ASM2", status READY, has 1 handler(s) for this service...
  • Service "power" has 2 instance(s).
  •   Instance "power1", status READY, has 1 handler(s) for this service...
  •   Instance "power2", status READY, has 1 handler(s) for this service...
  • Service "powerXDB" has 2 instance(s).
  •   Instance "power1", status READY, has 1 handler(s) for this service...
  •   Instance "power2", status READY, has 1 handler(s) for this service...
  • The command completed successfully
  • 4.再次配置OEM

  • [oracle@11rac1 ~]$ emca -config dbcontrol db -repos recreate -cluster
  • STARTED EMCA at Nov 8, 2012 12:13:04 PM
  • EM Configuration Assistant, Version 11.2.0.0.2 Production
  • Copyright (c) 2003, 2005, Oracle.  All rights reserved.
  • Enter the following information:
  • Databaseuniquename: power
  • Service name: power
  • Listener port number: 1521
  • Listener ORACLE_HOME [ /u01/app/11.2.0/grid ]: 
  • Passwordfor SYS user: 
  • Passwordfor SYS user: oracle
  • Passwordfor SYSMAN user: 
  • Cluster name: test
  • Email address for notifications (optional): 
  • Outgoing Mail (SMTP) server for notifications (optional): 
  • ASM ORACLE_HOME [ /u01/app/11.2.0/grid ]: 
  • ASM port [ 1521 ]: 
  • ASM username [ ASMSNMP ]: 
  • ASM userpassword: 
  • -----------------------------------------------------------------
  • You have specified the following settings
  • Database ORACLE_HOME ................ /u01/app/oracle/product/11.2.0/db_1
  • Database instance hostname ................ Listener ORACLE_HOME ................ /u01/app/11.2.0/grid
  • Listener port number ................ 1521
  • Cluster name ................ test
  • Databaseuniquename ................ power
  • Email address for notifications ............... 
  • Outgoing Mail (SMTP) server for notifications ............... 
  • ASM ORACLE_HOME ................ /u01/app/11.2.0/grid
  • ASM port ................ 1521
  • ASM user role ................ SYSDBA
  • ASM username ................ ASMSNMP
  • -----------------------------------------------------------------
  • ----------------------------------------------------------------------
  • WARNING : While repository is dropped the database will be put in quiesce mode.
  • ----------------------------------------------------------------------
  • Do you wish tocontinue? [yes(Y)/no(N)]: Y
  • Nov 8, 2012 12:13:30 PM oracle.sysman.emcp.EMConfig perform
  • INFO: This operation is being logged at /u01/app/oracle/cfgtoollogs/emca/power/emca_2012_11_08_12_13_03.log.
  • Nov 8, 2012 12:13:32 PM oracle.sysman.emcp.EMReposConfig invoke
  • INFO: Dropping the EM repository (this may take a while) ...
  • Nov 8, 2012 12:16:59 PM oracle.sysman.emcp.EMReposConfig invoke
  • INFO: Repository successfully dropped
  • Nov 8, 2012 12:17:00 PM oracle.sysman.emcp.EMReposConfig createRepository
  • INFO: Creating the EM repository (this may take a while) ...
  • hNov 8, 2012 12:27:24 PM oracle.sysman.emcp.EMReposConfig invoke
  • INFO: Repository successfully created
  • Nov 8, 2012 12:27:33 PM oracle.sysman.emcp.EMReposConfig uploadConfigDataToRepository
  • INFO: Uploading configuration data to EM repository (this may take a while) ...
  • Nov 8, 2012 12:28:36 PM oracle.sysman.emcp.EMReposConfig invoke
  • INFO: Uploaded configuration data successfully
  • Nov 8, 2012 12:28:36 PM oracle.sysman.emcp.EMDBCConfig instantiateOC4JConfigFiles
  • INFO: Propagating /u01/app/oracle/product/11.2.0/db_1/oc4j/j2ee/OC4J_DBConsole_11rac1_power to remote nodes ...
  • Nov 8, 2012 12:28:39 PM oracle.sysman.emcp.EMDBCConfig instantiateOC4JConfigFiles
  • INFO: Propagating /u01/app/oracle/product/11.2.0/db_1/oc4j/j2ee/OC4J_DBConsole_11rac2_power to remote nodes ...
  • Nov 8, 2012 12:28:43 PM oracle.sysman.emcp.EMAgentConfig deployStateDirs
  • INFO: Propagating /u01/app/oracle/product/11.2.0/db_1/11rac1_power to remote nodes ...
  • Nov 8, 2012 12:28:45 PM oracle.sysman.emcp.EMAgentConfig deployStateDirs
  • INFO: Propagating /u01/app/oracle/product/11.2.0/db_1/11rac2_power to remote nodes ...
  • Nov 8, 2012 12:28:47 PM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
  • INFO: Securing Database Control (this may take a while) ...
  • Nov 8, 2012 12:29:08 PM oracle.sysman.emcp.util.DBControlUtil startOMS
  • INFO: Starting Database Control (this may take a while) ...
  • Nov 8, 2012 12:30:33 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
  • INFO: Database Control started successfully
  • Nov 8, 2012 12:30:33 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
  • INFO: >>>>>>>>>>> The Database Control URL is https://11rac1:5500/em

  •     
     
     

    您可能感兴趣的文章:

  • 安装Oracle加载数据库错误areasQueries的解决
  • 我在安装oracle的时候出现了这个错误,请懂行人赐教~~附图!~~
  • 记录Linux下一次oracle启动错误
  • shell如何获取oracle错误码 在线等
  • Linux系统下安装Oracle X11错误解决办法
  • 求助前辈们:solaris 10 x86 安装oracle 10g 错误
  • 有 ORACLE 错误码文档吗? 谢谢大家!
  • Eclipse连接Oracle数据库的ORA-00604 ORA-12705错误
  • ORACLE安装时/tmp/orainstRoot.sh 执行发生错误
  • 关于提高Oracle数据库性能的四个错误认识
  • C++使用OCCI连Oracle10g的错误
  • Linux上管理本机Oracle的时候出现找不到ServiceName的错误
  • Oracle的sqlcode对应的错误信息sqlerrm
  • 连接Oracle817数据库的错误提示
  • Oracle AS关键字 提示错误
  • rh9上装oracle817犯了个低级错误,如何挽回?
  • oracle错误迷惑
  • FC6下安装Oracle9i错误,请高手指教 在线等 解决即结贴
  • Oracle10201 RAC升级到10204后导出数据时报EXP-00056错误
  • 在tomcat下连接oracle8i的javabean出现如下错误,急!
  • 配置Oracle management server /Oracle启动OMS
  • 在Redhat7.2+Oracle8i如果硬件配置中用P4处理器,对oracle的安装有没有影响(100分)
  • weblogic 中怎样配置 oracle JDBC driver?
  • redhat 8.0+oracle 8.1.7下面配置proc环境的问题
  • linux下怎么配置jdbc 访问oracle ,知情者请告知
  • oracle的jdbc的配置
  • 一个jsp的数据库问题-oracle的服务端如何配置
  • 不会配置oracle怎么办?
  • JDBC from ORACLE 8.1.7的配置问题
  • Linux上怎么配置oracle的ODBC数据源?
  • 请问jboss+oracle文件怎样配置,数据库中文字段不为乱码
  •  
    本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
    本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。












  • 相关文章推荐
  • 在Red Hat Linux 9 和 Oracle 9.2 环境下,如何配制字符集,让Oracle能存入并显示日语里的假名?
  • window中oracle环境变量设置方法分享
  • linux环境下oracle条件导出数据的shell脚本怎么写
  • oracle环境变量保存问题求教
  • Oracle9i在Win2k环境下的完全卸载
  • Oracle与JSDK4.0环境变量冲突,如何解决(在线等待)?
  • windows下通过ie访问不到linux环境下的oracle em
  • 50分的题:如何给oracle减肥?在linux多目录的环境下查找体积最大的单个文件??
  • 请教:关于[linux/unix环境下连接到Oracle数据库后断开连接]的问题
  • 急急急!!!Solaris中JSP运行环境(tomcat)应如何设置才能使jsp连接到ORACLE???
  • 请教怎样在虚拟机中的linux系统安装 Java环境以及Oracle
  • Linux环境中Oracle数据导入与导出备份操作
  • Linux环境下完全删除Oracle
  • 技巧学习 在Python环境下连接Oracle数据库
  • 基于Linux环境的Oracle 11g数据库正式推出
  • Linux环境下搭建Oracle SOA Suite
  • 请高人指点:我准备在我的机子(winxp)上安装linux(双操作系统),然后在linux环境下 安装oracle817
  • CentOS 5 环境下安装oracle 10g 与 rhel 5下 安装有区别吗? [散分]
  • windows server 2003 sp1下.net 3.5(Oracle 9.2)环境配置
  • Linux平台配置Oracle ProC开发环境
  • Oracle 12c发布简单介绍及官方下载地址
  • 在linux下安装oracle,如何设置让oracle自动启动!也就是让oracle那个服务自动启动,不是手动的
  • oracle 11g最新版官方下载地址
  • 请问su oracle 和su - oracle有什么不同?
  • Oracle 数据库(oracle Database)Select 多表关联查询方式
  • 虚拟机装Oracle R12与Oracle10g
  • Oracle数据库(Oracle Database)体系结构及基本组成介绍
  • Oracle 数据库开发工具 Oracle SQL Developer
  • 如何设置让Oracle SQL Developer显示的时间包含时分秒
  • Oracle EBS R12 支持 Oracle Database 11g
  • Oracle 10g和Oracle 11g网格技术介绍


  • 站内导航:


    特别声明:169IT网站部分信息来自互联网,如果侵犯您的权利,请及时告知,本站将立即删除!

    ©2012-2021,