`
loamy
  • 浏览: 316510 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

oracle 10g安装后部分问题解决

    博客分类:
  • db
阅读更多

 

 

一、启动监听时出TNS-12546错

症状:

$lsnrctl start

LSNRCTL for Solaris: Version 10.2.0.1.0 - Production on 19-APR-2007 16:38:17

Copyright (c) 1991, 2005, Oracle.  All rights reserved.

Starting /opt/oracle/oracle10/app/oracle10/product/10.2.0/Db_1/bin/tnslsnr: please wait...

TNSLSNR for Solaris: Version 10.2.0.1.0 - Production

System parameter file is /opt/oracle/oracle10/app/oracle10/product/10.2.0/Db_1/network/admin/listener.ora

Log messages written to /opt/oracle/oracle10/app/oracle10/product/10.2.0/Db_1/network/log/listener.log

Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))

TNS-12546: TNS:permission denied

 TNS-12560: TNS:protocol adapter error

  TNS-00516: Permission denied

   Solaris Error: 13: Permission denied

Listener failed to start. See the error message(s) above...

产生原因和解决办法:

The Unix permissions for the hidden directory /tmp/.oracle should be: 

Owner = the Oracle user who performed the database install, 

Group = the dba group of the Oracle user, 

and the directory's Unix permissions should be drwxrwxrwx

Change the permissions on the .oracle directory:

1) cd /var/tmp(on Solaris) or /tmp(on Hp and IBM)

2) Change the ownership and group of the ".oracle" directory to "oracle/dba":

# chown -R oracle10:dba .oracle

or 

3) Change the permissions on the directory:

# chmod 777 .oracle

 

二、通过sqlplus登陆出ORA-12514错

症状:

$ sqlplus wacos/oss@orcl10

SQL*Plus: Release 10.2.0.1.0 - Production on Thu Apr 19 17:03:30 2007

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

ERROR:

ORA-12514: TNS:listener does not currently know of service requested in connect

descriptor

产生原因和解决办法:

$ lsnrctl status

...

Services Summary...

Service "PLSExtProc" has 1 instance(s).

  Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...

The command completed successfully

发现并没有启动orcl10的监听,然后查看监听文件:

$ cd $ORACLE_HOME/network/admin

$ more listener.ora

...

SID_LIST_LISTENER =

  (SID_LIST =

    (SID_DESC =

      (SID_NAME = PLSExtProc)

      (ORACLE_HOME = /opt/oracle/oracle10/app/oracle10/product/10.2.0/Db_1)

      (PROGRAM = extproc)

    )

  )

...

发现SID_LIST_LISTENER段并没有包含实例orcl10的相关信息:

$ vi listener.ora

修改SID_LIST_LISTENER成以下这样:

SID_LIST_LISTENER =

  (SID_LIST =

    (SID_DESC =

      (SID_NAME = PLSExtProc)

      (ORACLE_HOME = /opt/oracle/oracle10/app/oracle10/product/10.2.0/Db_1)

      (PROGRAM = extproc)

    )

    (SID_DESC =

      (SID_NAME = orcl10)

      (ORACLE_HOME = /opt/oracle/oracle10/app/oracle10/product/10.2.0/Db_1)

      (PROGRAM = orcl10)

    )

  )

然后重启监听并查看验证:

$ lsnrctl stop

$ lsnrctl start

$ lsnrctl status

...

Services Summary...

Service "PLSExtProc" has 1 instance(s).

  Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...

Service "orcl10" has 1 instance(s).

  Instance "orcl10", status UNKNOWN, has 1 handler(s) for this service...

The command completed successfully

实例orcl10的监听也起来了。

现在可以登陆了:

$ sqlplus wacos/oss@orcl10

SQL*Plus: Release 10.2.0.1.0 - Production on Thu Apr 19 17:19:51 2007

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

Connected to:

Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production

With the Partitioning, OLAP and Data Mining options

SQL>

三、Oracle10g EM Database Console显示信息错误,和真实信息不一致

症状:

进入EM控制台(http://172.19.111.38:1158/em)后,没有输入用户名和密码就直接登陆并显示数据库状态信息;

另外刚开始数据库监听没有起来,所以EM控制台显示信息也是说监听没有起来,后来监听起来了,EM控制台还是显示旧信息,刷新页面也那样。

问题原因和解决办法:

重启控制台服务后也没有效果:

$ emctl status dbconsole

$ emctl stop dbconsole        

$ emctl start dbconsole

可能时原先监听未成功启动过,或者由于我修改过监听端口(1521改成1528)造成的。

重建em资料库:

$ emctl stop dbconsole

$ emca -repos recreate

...

Enter the following information:

Database SID: orcl10

Listener port number: 1528

Password for SYS user: oracle10 

Password for SYSMAN user: oracle10 

Do you wish to continue? [yes(Y)/no(N)]: y

...

INFO: Repository successfully created

Enterprise Manager configuration completed successfully

FINISHED EMCA at Apr 19, 2007 6:20:22 PM

配置dbcontrol:

$ emca -config dbcontrol db

Enter the following information:

Database SID: orcl10

Database Control is already configured for the database orcl10

You have chosen to configure Database Control for managing the database orcl10

This will remove the existing configuration and the default settings and perform a fresh configuration

Do you wish to continue? [yes(Y)/no(N)]: y

Listener port number: 1528

Password for SYS user: oracle10

Password for DBSNMP user: oracle10  

Password for SYSMAN user: oracle10 

Email address for notifications (optional): 

Outgoing Mail (SMTP) server for notifications (optional): 

...

Do you wish to continue? [yes(Y)/no(N)]: y

...

Enterprise Manager configuration completed successfully

FINISHED EMCA at Apr 19, 2007 6:27:44 PM

然后再进入 http://172.19.111.38:1158/em 查看正常了。

附emca和emctl常用的命令语法:

Oracle10G的EM采用了web方式,并且分成了2个产品,database control和grid control。Grid control需要下载单独的光盘安装。在用DBCA建库的时候,可以选择是否启用dbcontrol,启用的话需要在数据库中建立一个sysman的schema,用于保存EM的一些数据,这个就是EM的资料库(repository)。使用命令行工具emca可以创建,修改,重建或者删除dbcontrol的配置。

由于要在数据库中建EM资料库,数据库和监听都必须已经启动并正常工作。

emca -repos create 创建一个EM资料库

emca -repos recreate 重建一个EM资料库

emca -repos drop 删除一个EM资料库

emca -config dbcontrol db 配置数据库的 Database Control

emca -deconfig dbcontrol db 删除数据库的 Database Control配置

emca -reconfig ports 重新配置db control和agent的端口

emctl start console 启动EM console服务,使用前需要先设置ORACLE_SID环境变量

emctl stop console 停止EM console服务,使用前需要先设置ORACLE_SID环境变量

注:通过查看$ORACLE_HOME/install/portlist.ini 文件可以知道当前dbcontrol正在使用的端口,默认dbcontrol http端口1158,agent端口3938。如果要重新配置端口,可以使用如下命令:

emca -reconfig ports -dbcontrol_http_port 1159

emca -reconfig ports -agent_port 3939

使用命令行工具emctl可以启动/停止console服务,察看服务状态等。

分享到:
评论

相关推荐

    Windows Server 2019下Oracle 11g,19c安装部署-图文

    1:Windows Server 2019 下Oracle 11g、19c安装 2:NIC网络聚合配置说明 3:Oracle 19c Clent数据源连接详解(解决部分情况下客户端不能连接数据库问题)

    Linux安装Oracle11g及使用与部分报错解决方法

    Oracle11g从安装到启动,乱码解决,远程连接问题,数据库创建

    oracle10g宝典第二版part1

    书中内容涉及广泛,具体讲解了Oracle 10g对数据库原理的各种具体解决方案,及其体系结构、使用操作指南,最后给出了一个用PowerBuilder开发Oracle 10g数据库应用系统的例子。 全书写作结构明晰,例子丰富,是一本以...

    Oracle11g从入门到精通2

    《Oracle11g从入门到精通》面向数据库管理人员和数据库开发人员,从实际角度出发,系统地介绍了数据库和Oracle的相关概念和原理、Oracle的数据库管理(如安装与启动,用户权限、备份与恢复等),以及Oracle的应用...

    Windows Server 2019 下Oracle 19c安装部署-图文

    1:Windows Server 2019 下Oracle 19c安装 2:NIC网络聚合配置说明 3:Oracle 19c Clent数据源连接详解(解决部分情况下客户端不能连接数据库问题)

    临危不惧:Oracle11g数据库恢复技术

    资源名称:临危不惧:Oracle 11g数据库恢复技术内容简介:《临危不惧:Oracle 11g数据库恢复技术》分为三大部分:恢复的原理、恢复的工具、恢复的具体步骤与实战。第一部分能够让读者领略恢复操作的本质,是其他部分...

    Linux静默安装Oracle11g部分问题的解决方法

    主要为大家详细介绍了Linux静默安装Oracle11g部分问题的解决方法,具有一定的参考价值,感兴趣的小伙伴们可以参考一下

    oracle10gem登录报错解决办法

    oracle10g em 中国大部分地区登录后时间区不同导致红字解决方案

    oracle10g宝典part2

    书中内容涉及广泛,具体讲解了Oracle 10g对数据库原理的各种具体解决方案,及其体系结构、使用操作指南,最后给出了一个用PowerBuilder开发Oracle 10g数据库应用系统的例子。 全书写作结构明晰,例子丰富,是一本以...

    oracle11g rac bug处理

    ORACLE11G rac数据库,版本号是11.2.0.1,CRS启动不了的解决办法。

    Oracle11g从入门到精通

    《Oracle11g从入门到精通》面向数据库管理人员和数据库开发人员,从实际角度出发,系统地介绍了数据库和Oracle的相关概念和原理、Oracle的数据库管理(如安装与启动,用户权限、备份与恢复等),以及Oracle的应用...

    OCPOCA认证考试指南全册:Oracle Database 11g(1Z0-051,1Z0-052,1Z0-053)--详细书签版(第2/2部分)

     Bob Bryla是Oracle 9i和10g的认证专家,他在数据库设计、数据库应用程序开发、培训和Oracle数据库管理等方面拥有20多年的工作经验,他也足Dodgeville的Land'End公司的首席Internet数据库设计师和Oracle DBA. ...

    Oracle.11g.从入门到精通 (2/2)

    第2章 Oracle在Windows平台上的安装与配置 2.1 Oracle通用安装器 2.2 Oracle数据库软件的安装 2.3 Oracle数据库软件的卸载 2.3.1 停止所有的Oracle服务 2.3.2 用OUI卸载所有的Oracle组件 2.3.3 手动删除Oracle遗留的...

    Oracle.11g.从入门到精通 (1/2)

    第2章 Oracle在Windows平台上的安装与配置 2.1 Oracle通用安装器 2.2 Oracle数据库软件的安装 2.3 Oracle数据库软件的卸载 2.3.1 停止所有的Oracle服务 2.3.2 用OUI卸载所有的Oracle组件 2.3.3 手动删除Oracle遗留的...

    大话oracle rac

    大话Oracle RAC集群、高可用性、备份与恢复》以Oracle 10g为基础,对Oracle RAC进行了全面的介绍和分析。全书分为两个部分,共14章,第一部分是集群理论篇,这部分从集群基础知识入手,通过分析集群环境和单机环境的...

    ORACLE initialization or shutdown in process

    解决方法: 进入dos: 以DBA用户登录,具体命令是 sqlplus /NOLOG SQL>connect sys/change_on_install as sysdba 提示:已成功 SQL>shutdown normal 提示:数据库已经关闭 已经卸载数据库 ORACLE 例程已经关闭 ...

    Oracle分区技术和11g分区新特性

    《Oracle分区技术和11g分区新特性》,53页,解决大表问题 为何要数据分区(Data Partitioning) • 表与索引数据的爆炸性增长 • 在大型数据库系统中 表数据量通常 >> 10GB • 现在表的数据量比以前中等规模的数据库...

Global site tag (gtag.js) - Google Analytics