首页 > 解决方案 > ORA-03134: 不再支持与此服务器版本的连接

问题描述

环境:Microsoft .NET Framework 版本:4.0.30319;ASP.NET 版本:4.6.1586.0

后端:Oracle 9i

工具:Visual Studio 2012,ODAC 11.2 版本

当我通过 Visual Studio 2012 进行调试时,该应用程序运行良好,并且所有 CRUD 操作都运行良好。

但是当我将它部署到 IIS 服务器时,它说“ORA-03134:不再支持与此服务器版本的连接,如下图所示”

在此处输入图像描述

IIS 配置(应用程序池)如下:

在此处输入图像描述

标签: asp.net.netoracleiis

解决方案


您可以使用网关数据库版本 11.2 访问旧数据库 9.2.0.8。从网关数据库版本 11.2 为旧数据库 9.2.0.8 创建一个 dblink。

C:\oracle\instantclient_12_2>.\sqlplus.exe  scott/tiger@oracle11

SQL*Plus: Release 12.2.0.1.0 Production on Mon Feb 18 07:31:38 2019

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


Connected to:
Oracle Database 11g Release 11.2.0.3.0 - 64bit Production

SQL> select * from dept@oracle9;

    DEPTNO DNAME          LOC
---------- -------------- -------------
        12 RESEARCH       SARATOGA
        10 ACCOUNTING     CLEVELAND
        11 ART            SALEM
        13 FINANCE        BOSTON
        21 SALES          PHILA.
        22 SALES          ROCHESTER
        42 INT'L          SAN FRAN

7 rows selected.

Oracle 客户端 11.2.0.4 可以连接到 Oracle RDBMS 9.2.0.8。

C:\oracle\instantclient_11_2>.\sqlplus.exe  scott/tiger@oracle9

SQL*Plus: Release 11.2.0.4.0 Production on Mon Feb 18 07:37:22 2019

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


Connected to:
Oracle9i Enterprise Edition Release 9.2.0.8.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.8.0 - Production

SQL>

Oracle 客户端 12.2.0.1 无法连接到 Oracle RDBMS 9.2.0.8。

C:\oracle\instantclient_12_2>.\sqlplus.exe  scott/tiger@oracle9

SQL*Plus: Release 12.2.0.1.0 Production on Mon Feb 18 07:36:45 2019

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

ERROR:
ORA-03134: Connections to this server version are no longer supported.

推荐阅读