windows2008安装oracle19c后监听无法启动

2023-11-22 13:10

本文主要是介绍windows2008安装oracle19c后监听无法启动,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

window7和windows2008不支持oracle19c

原先在主机上安装了oracle10.2.0.5然后再安装oracle19c,注册表中能清理的都已经清理,能修改都已经修改,很是奇怪,还以为是冲突,折腾了半天,发现是oracle19c的监听在windows2008上根本不支持。

但依然报错如下:

D:\oracle19c\diag\tnslsnr\WIN-4GQNG01G4AR\listener\trace

以 pid=3164 开始
监听: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=WIN-4GQNG01G4AR)(PORT=1521)))
监听该对象时出错: (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
TNS-12557: TNS: 协议适配器不可加载
 TNS-12560: TNS: 协议适配器错误
  TNS-00527: 协议适配器不可加载

不再监听: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=WIN-4GQNG01G4AR)(PORT=1521)))

以 pid=3164 开始
监听: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=WIN-4GQNG01G4AR)(PORT=1521)))
监听该对象时出错: (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
TNS-12557: TNS: 协议适配器不可加载
 TNS-12560: TNS: 协议适配器错误
  TNS-00527: 协议适配器不可加载

不再监听: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=WIN-4GQNG01G4AR)(PORT=1521)))

以 pid=3164 开始
监听: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=WIN-4GQNG01G4AR)(PORT=1521)))
监听该对象时出错: (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
TNS-12557: TNS: 协议适配器不可加载
 TNS-12560: TNS: 协议适配器错误
  TNS-00527: 协议适配器不可加载

不再监听: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=WIN-4GQNG01G4AR)(PORT=1521)))

相关参考:

https://cloud.tencent.com/developer/article/1601516?from=information.detail.%E6%97%A0%E6%B3%95%E5%AE%9A%E4%BD%8D%E7%A8%8B%E5%BA%8F%E8%BE%93%E5%85%A5%E7%82%B9getoverlappedresultex

https://blog.csdn.net/lhshu2008/article/details/17529883

处理过程中遇到的其它问题:

 C:\Users\Administrator>netca

 

Oracle Net Services 配置:

配置监听程序:LISTENER

ServiceAliasException: 无法保存服务别名: TNS-04406: 对象已经存在

默认本地命名配置完成。

监听程序配置完成。

成功完成 Oracle Net Services 配置。退出代码是0

解决办法:设定TNS_ADMIN的环境变量。

Oracle Net Services - Version 10.2.0.5 to 11.2.0.3 [Release 10.2 to 11.2]
Information in this document applies to any platform.
This problem can occur on any platform.


 

SYMPTOMS

Attempting to use Net CA or Net Configuration Assistant to create or edit an existing configuration.  Upon pressing the finish button, the following error is thrown:  ServiceAliasException: Could not save Service Alias: TNS-04415: File I/O error.

CHANGES

It is likely that the $TNS_ADMIN variable was changed recently or the directory to which it pointed has been removed or made inaccessible.  It is likely that the Net Manager (Netmgr) tool will successfully create or edit a tnsnames.ora file in this same environment despite the NetCA failure.

CAUSE

The $TNS_ADMIN environment variable pointed to a directory that did not exist.  This caused the file I/O error.   A check of the $TNS_ADMIN variable:  echo $TNS_ADMIN or on Windows:  echo %TNS_ADMIN%.  If this failure is present, you would see TNS_ADMIN pointing to a non-existent directory location..

SOLUTION

Set the $TNS_ADMIN environment variable to point to the $ORACLE_HOME/network/admin directory or any other existing directory where NetCA can write a file.

Oracle Net Services - Version 8.1.7.0 to 11.2.0.3 [Release 8.1.7 to 11.2]
Information in this document applies to any platform.
***Checked for relevance on 23-AUG-2013***


 

SYMPTOMS

Listener start fails with the following errors:

On  Solaris:

LSNRCTL> start LISTDPRNRJ  
    Starting /oracle10g/product/10.2.0/bin/tnslsnr: please wait...  
      
    TNSLSNR for Solaris: Version 10.2.0.2.0 - Production  
    System parameter file is /oracle10g/product/10.2.0/network/admin/listener.ora  
    Log messages written to /oracle10g/product/10.2.0/network/log/listdprnrj.log  
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=XX.X.XXX.XX)(PORT=1523)))  
    Error listening on: (ADDRESS=(PROTOCOL=tcp)(IP=LOOPBACK))  
    TNS-01191: Failed to initialize the local OS authentication subsystem  
     TNS-12545: Connect failed because target host or object does not exist  
      TNS-12560: TNS:protocol adapter error  
       TNS-00515: Connect failed because target host or object does not exist  
        Solaris Error: 126: Cannot assign requested address


 

On Linux : 
----------

[oracle@testnet shashi]$ lsnrctl start listener_105  

LSNRCTL for Linux: Version 10.2.0.4.0 - Production on 12-AUG-2009 05:44:37  

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

Starting /home/oracle/oracle/product/10.2.0.4/db_1/bin/tnslsnr: please wait...  

TNSLSNR for Linux: Version 10.2.0.4.0 - Production  
System parameter file is /home/oracle/users/shashi/listener.ora  
Log messages written to /home/oracle/oracle/product/10.2.0.4/db_1/network/log/listener_105.log  
Trace information written to /tmp/list_105g.trc  
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=myhostname.com)(PORT=1523)))  

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=myhostname)(PORT=1523)))  
TNS-12532: TNS:invalid argument  
 TNS-12560: TNS:protocol adapter error  
  TNS-00502: Invalid argument  
   Linux Error: 22: Invalid argument 

 The listener trace shows the following :

[12-AUG-2009 05:44:38:309] nttbnd2addr: using host IP address: 127.0.0.1 
[12-AUG-2009 05:44:38:309] snlinFreeAddrInfo: entry 
[12-AUG-2009 05:44:38:309] snlinFreeAddrInfo: exit 
[12-AUG-2009 05:44:38:309] nttbnd2addr: exit 
[12-AUG-2009 05:44:38:309] nttcon: entry 
[12-AUG-2009 05:44:38:309] nttcon: toc = 2 
[12-AUG-2009 05:44:38:309] nttcnp: entry 
[12-AUG-2009 05:44:38:309] nttcnp: creating a socket. 
[12-AUG-2009 05:44:38:309] nttcnp: binding an address to a socket. 
[12-AUG-2009 05:44:38:309] ntt2err: entry 
[12-AUG-2009 05:44:38:309] ntt2err: soc 12 error - operation=1, ntresnt[0]=515, ntresnt[1]=99, ntresnt[2]=0

PS: The ntresnt[1]=126 on Solaris.  On linux ntresnt[1]=99

Though the netstat output shows the listener is listening ,

[oracle@testnet ~]$ netstat -an | grep 1523 
tcp        0      0 0.0.0.0:1523                0.0.0.0:*                   LISTEN

Local connections and remote connections to the database fail with ORA-12157 as shown below: 

Local connection: 
----------------

Local connection:  
---------------- 
[oracle@testnet ~]$ sqlplus /nolog  

SQL*Plus: Release 10.2.0.3.0 - Production on Wed Aug 12 06:25:11 2009  

Copyright (c) 1982, 2006, Oracle.  All Rights Reserved.  

SQL> conn sys as sysdba  
Enter password:  
ERROR:  
ORA-12157: TNS:internal network communication error

Remote Connection: 
-------------------

[oracle@testnet shashi]$ sqlplus scott/tiger@testnet  

SQL*Plus: Release 10.2.0.3.0 - Production on Wed Aug 12 06:30:56 2009  

Copyright (c) 1982, 2006, Oracle.  All Rights Reserved.  

ERROR:  
ORA-12157: TNS:internal network communication error

CAUSE

The  errors are caused by the operating system loopback interface not being started

On Solaris you may see the loopback interface not listed as shown below :

 $ ifconfig -a  
    lo0:1: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1  
            inet 10.1.0.19 netmask ff000000  
    ce0:1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2  
            inet 192.168.0.7 netmask ffffff00 broadcast 192.168.0.255  
    ce1:1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3  
            inet 192.168.3.7 netmask ffffff00 broadcast 192.168.3.255

 

Please note that the loopback interface 'lo0' is not listed in the above ouput . The interface 'lo0:1' is the zone interface which had been plumbed .

On linux operating system , you may see the below output if the loopback interface is down :

#ifconfig -a 
lo        Link encap:Local Loopback 
          LOOPBACK  MTU:16436  Metric:1 
          RX packets:2339794 errors:0 dropped:0 overruns:0 frame:0 
          TX packets:2339794 errors:0 dropped:0 overruns:0 carrier:0 
          collisions:0 txqueuelen:0 
          RX bytes:159193174 (151.8 MiB)  TX bytes:159193174 (151.8 MiB)

SOLUTION

Involve your system / network administrator and get the loopback interface up and running  and restart the listener.

1] Make sure you have the loopback IP address mapped to the localhost as below : 

$ cat /etc/hosts 
127.0.0.1 localhost 
....... 
......... 

2] On Solaris: 
     ----------- 
#ifconfig lo0 up (this brings up the loopback interface) 

Once the loopback interface is up , the ifconfig output should show as below : 

For example : 
------------

[celcsol3]/bin> /sbin/ifconfig -a 

lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1 
        inet 127.0.0.1 netmask ff000000


3] On Linux : 
     ----------

#ifup lo  (this brings up the loopback interface)

For Example : 
--------------

[root@testnet ~]#ifconfig -a 

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0 
          inet6 addr: ::1/128 Scope:Host 
          UP LOOPBACK RUNNING  MTU:16436  Metric:1 
          RX packets:2413323 errors:0 dropped:0 overruns:0 frame:0 
          TX packets:2413323 errors:0 dropped:0 overruns:0 carrier:0 
          collisions:0 txqueuelen:0 
          RX bytes:165596646 (157.9 MiB)  TX bytes:165596646 (157.9 MiB)

这篇关于windows2008安装oracle19c后监听无法启动的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/410363

相关文章

Zookeeper安装和配置说明

一、Zookeeper的搭建方式 Zookeeper安装方式有三种,单机模式和集群模式以及伪集群模式。 ■ 单机模式:Zookeeper只运行在一台服务器上,适合测试环境; ■ 伪集群模式:就是在一台物理机上运行多个Zookeeper 实例; ■ 集群模式:Zookeeper运行于一个集群上,适合生产环境,这个计算机集群被称为一个“集合体”(ensemble) Zookeeper通过复制来实现

CentOS7安装配置mysql5.7 tar免安装版

一、CentOS7.4系统自带mariadb # 查看系统自带的Mariadb[root@localhost~]# rpm -qa|grep mariadbmariadb-libs-5.5.44-2.el7.centos.x86_64# 卸载系统自带的Mariadb[root@localhost ~]# rpm -e --nodeps mariadb-libs-5.5.44-2.el7

Centos7安装Mongodb4

1、下载源码包 curl -O https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-rhel70-4.2.1.tgz 2、解压 放到 /usr/local/ 目录下 tar -zxvf mongodb-linux-x86_64-rhel70-4.2.1.tgzmv mongodb-linux-x86_64-rhel70-4.2.1/

MySQL数据库宕机,启动不起来,教你一招搞定!

作者介绍:老苏,10余年DBA工作运维经验,擅长Oracle、MySQL、PG、Mongodb数据库运维(如安装迁移,性能优化、故障应急处理等)公众号:老苏畅谈运维欢迎关注本人公众号,更多精彩与您分享。 MySQL数据库宕机,数据页损坏问题,启动不起来,该如何排查和解决,本文将为你说明具体的排查过程。 查看MySQL error日志 查看 MySQL error日志,排查哪个表(表空间

三国地理揭秘:为何北伐之路如此艰难,为何诸葛亮无法攻克陇右小城?

俗话说:天时不如地利,不是随便说说,诸葛亮六出祁山,连关中陇右的几座小城都攻不下来,行军山高路险,无法携带和建造攻城器械,是最难的,所以在汉中,无论从哪一方进攻,防守方都是一夫当关,万夫莫开;再加上千里运粮,根本不需要打,司马懿只需要坚守城池拼消耗就能不战而屈人之兵。 另一边,洛阳的虎牢关,一旦突破,洛阳就无险可守,这样的进军路线,才是顺势而为的用兵之道。 读历史的时候我们常常看到某一方势

Centos7安装JDK1.8保姆版

工欲善其事,必先利其器。这句话同样适用于学习Java编程。在开始Java的学习旅程之前,我们必须首先配置好适合的开发环境。 通过事先准备好这些工具和配置,我们可以避免在学习过程中遇到因环境问题导致的代码异常或错误。一个稳定、高效的开发环境能够让我们更加专注于代码的学习和编写,提升学习效率,减少不必要的困扰和挫折感。因此,在学习Java之初,投入一些时间和精力来配置好开发环境是非常值得的。这将为我

springboot3打包成war包,用tomcat8启动

1、在pom中,将打包类型改为war <packaging>war</packaging> 2、pom中排除SpringBoot内置的Tomcat容器并添加Tomcat依赖,用于编译和测试,         *依赖时一定设置 scope 为 provided (相当于 tomcat 依赖只在本地运行和测试的时候有效,         打包的时候会排除这个依赖)<scope>provided

内核启动时减少log的方式

内核引导选项 内核引导选项大体上可以分为两类:一类与设备无关、另一类与设备有关。与设备有关的引导选项多如牛毛,需要你自己阅读内核中的相应驱动程序源码以获取其能够接受的引导选项。比如,如果你想知道可以向 AHA1542 SCSI 驱动程序传递哪些引导选项,那么就查看 drivers/scsi/aha1542.c 文件,一般在前面 100 行注释里就可以找到所接受的引导选项说明。大多数选项是通过"_

安装nodejs环境

本文介绍了如何通过nvm(NodeVersionManager)安装和管理Node.js及npm的不同版本,包括下载安装脚本、检查版本并安装特定版本的方法。 1、安装nvm curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash 2、查看nvm版本 nvm --version 3、安装

用命令行的方式启动.netcore webapi

用命令行的方式启动.netcore web项目 进入指定的项目文件夹,比如我发布后的代码放在下面文件夹中 在此地址栏中输入“cmd”,打开命令提示符,进入到发布代码目录 命令行启动.netcore项目的命令为:  dotnet 项目启动文件.dll --urls="http://*:对外端口" --ip="本机ip" --port=项目内部端口 例: dotnet Imagine.M