ORA-12154 : TNS : 지정된 연결 식별자를 확인할 수없고 ORA-06413 : 연결이 열리지 않습니다

Bhhruguni

64 비트 및 Oracle 10g 데이터베이스와 Visual Studio 2015가있는 Windows 2008 운영 체제를 설치했습니다.

Oracle 데이터베이스 10g에 연결할 수 없습니다.

oracle 10g 데이터베이스를 사용하여 Windows XP에서 작동하는 Visual Studio 2010으로 개발 된 기존 개발 응용 프로그램입니다.

제발 도와주세요.

Santhosh
Can you try the below

1. Include Oracle.ManagedDataAccess.dll in your solution.
2. In web.config, Under Configuration and connectionstrings, include the below

    <oracle.manageddataaccess.client>
        <version number="*">
          <dataSources>
            <dataSource alias="UATDB" descriptor="(DESCRIPTION =(ADDRESS = (PROTOCOL = TCP)(HOST = ORACLEDBIP)(PORT = PORT))(CONNECT_DATA =(SERVER = DEDICATED)(SERVICE_NAME = ORACLE)))"/>
        </dataSources>
        </version>
      </oracle.manageddataaccess.client>

        <connectionStrings>
        <add name="UATCONNECTIONSTRING" connectionString="Data Source=UATDB;User Id=username;Password=password;Min Pool Size=10; Connection Lifetime=300;Connection Timeout=300;Incr Pool Size=5;Decr Pool Size=2;" providerName="Oracle.DataAccess.Client"/>  
      </connectionStrings>


3. Refer the dll in your application

    using Oracle.ManagedDataAccess;

    using (OracleConnection oraConn = new OracleConnection(strOracleConn))
    {
        oraConn.Open();
        OracleCommand oraCommand = new OracleCommand();
        oraCommand.CommandType = System.Data.CommandType.StoredProcedure;
        oraCommand.CommandText = "sp name";
        oraCommand.Connection = oraConn;
    }



Web.config file

<?xml version="1.0"?>
<configuration>
  <configSections>
    <section name="oracle.manageddataaccess.client" type="OracleInternal.Common.ODPMSectionHandler, Oracle.ManagedDataAccess"/>
  </configSections>
  <oracle.manageddataaccess.client>
    <version number="*">
      <dataSources>
        <dataSource alias="UATDB" descriptor="(DESCRIPTION =(ADDRESS = (PROTOCOL = TCP)(HOST = IP)(PORT = PORT))(CONNECT_DATA =(SERVER = DEDICATED)(SERVICE_NAME = ORACLE)))"/>
      </dataSources>
    </version>
  </oracle.manageddataaccess.client>
  <system.web>
    <compilation debug="true" targetFramework="4.6.1"/>
    <customErrors mode="Off"/>
    <httpRuntime executionTimeout="600"/>
    <authentication mode="Windows"/>
    <authorization>
      <deny users="?"/>
    </authorization>
    <pages controlRenderingCompatibilityVersion="4.0">
      <namespaces>
        <add namespace="System.Web.Optimization"/>
      </namespaces>
      <controls>
        <add assembly="Microsoft.AspNet.Web.Optimization.WebForms" namespace="Microsoft.AspNet.Web.Optimization.WebForms" tagPrefix="webopt"/>
      </controls>
    </pages>
    <httpModules>
      <add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web"/>
    </httpModules>
  </system.web>
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed"/>
        <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0"/>
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="WebGrease" culture="neutral" publicKeyToken="31bf3856ad364e35"/>
        <bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234"/>
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
  <system.codedom>
    <compilers>
      <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:6 /nowarn:1659;1699;1701"/>
      <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:14 /nowarn:41008 /define:_MYTYPE=\&quot;Web\&quot; /optionInfer+"/>
    </compilers>
  </system.codedom>
  <connectionStrings>
    <add name="UATCONNECTIONSTRING" connectionString="Data Source=UATDB;User Id=user1;Password=pass12;Min Pool Size=10; Connection Lifetime=300;Connection Timeout=300;Incr Pool Size=5;Decr Pool Size=2;" providerName="Oracle.DataAccess.Client"/>
  </connectionStrings>
  <appSettings>
  </appSettings>
  <system.webServer>
    <validation validateIntegratedModeConfiguration="false"/>
    <modules>
      <remove name="ApplicationInsightsWebTracking"/>
      <add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" preCondition="managedHandler"/>
    </modules>
  </system.webServer>
    <appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender">
      <file type="log4net.Util.PatternString">
        <conversionPattern value="../Logs/RunningLog/WrapperRunningLog-" />
      </file>
      <rollingStyle value="Date" />
      <datePattern value="yyyyMMddHH.lo\g" />
      <staticLogFileName value="false" />
      <layout type="log4net.Layout.PatternLayout">
        <conversionPattern value="%date %level - %message%newline" />
      </layout>
    </appender>
    <appender name="RollingLogFileAppenderUpdateStatus" type="log4net.Appender.RollingFileAppender">
      <file type="log4net.Util.PatternString">
        <conversionPattern value="../Logs/UpdateStatusLog/StatusLog-" />
      </file>
      <rollingStyle value="Date" />
      <datePattern value="yyyyMMdd.log" />
      <staticLogFileName value="false" />
      <layout type="log4net.Layout.PatternLayout">
        <conversionPattern value="%date %level - %message%newline" />
      </layout>
    </appender>
    <root>
      <level value="ALL" />
    </root>
    <logger name="RunningLog">
      <level value="ALL" />
      <appender-ref ref="RollingLogFileAppender"   />
    </logger>
    <logger name="UpdateStatusLog">
      <level value="ALL" />
      <appender-ref ref="RollingLogFileAppenderUpdateStatus" />
      <appender-ref ref="RollingLogFileAppender"   />
    </logger>
  </log4net>
</configuration>

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

BizTalk WCF ORA-12154 : TNS : 지정된 연결 식별자를 확인할 수 없습니다.

"ORA-12154 : TNS : 지정된 연결 식별자를 확인할 수 없습니다"

ORA-12154 : TNS : TeamCity로 지정된 연결 식별자를 확인할 수 없습니다.

"ORA-12154 : TNS : 지정된 연결 식별자를 확인할 수 없습니다"오류가 발생하는 이유는 무엇입니까?

SQL Server에 액세스하면 오류가 발생합니다-ORA-12154 : TNS : 지정된 연결 식별자를 확인할 수 없습니다.

Windows 7에서 TOAD를 사용할 때 오류가 나타납니다. ORA-06413 : 연결이 열리지 않음

TNS : 연결 식별자 지정 오류를 해결할 수 없습니다.

unixODBC는 ORA-12154 TNS 해결 오류를 생성하지만 sqlplus는 정상적으로 작동합니다.

(ORA-12154) VS 2017의 마이그레이션 된 SSIS 프로젝트에서 tnsnames.ora의 데이터 소스에 연결할 수 없습니다.

ORA-12505, TNS : listener는 현재 연결 대상에 지정된 SID를 알지 못합니다.

ORA-12505, TNS : listener는 현재 연결에 지정된 SID를 알지 못합니다.

ORA-12543: TNS:대상 호스트에 연결할 수 없습니다.

ORA-12518, TNS : 리스너가 클라이언트 연결 오라클 11g를 전달할 수 없습니다.

Oracle 로컬 데이터베이스에 연결할 수 없습니다-cx_Oracle.DatabaseError : ORA-12541 : TNS : no listener

Azure에서 Oracle 서버에 연결할 수 없음 - ORA-12514: TNS:listener가 현재 연결 설명자에서 요청된 서비스를 알지 못합니다.

Oracle 데이터베이스 오류 12514 : ORA-12514 : TNS : 리스너가 현재 연결 설명자에서 요청 된 서비스를 알지 못합니다.

SQL Developer를 사용하여 데이터베이스에 연결할 수 없습니다 (tnsnames.ora에서 선택하지 않음).

ORA-12514 : TNS : 리스너는 현재 연결 기술자에서 요청 된 서비스를 알지 못합니다

Oracle Express : SQL Plus를 사용하여 연결하려고 할 때 ORA-12154 오류 발생

TNS를 통한 Oracle 연결이 작동하지 않습니다.

ORA-00942 : 다른 사용자와 연결하는 테이블 또는 뷰가 존재하지 않습니다

docker의 oracle에서 방금 생성 된 새 사용자에 연결할 수 없습니다 (ORA-01017).

Xcode 5.1.1이로드되지 않고 iPad를 연결할 수 없습니다.

전체 연결 문자열 및 EZCONNECT를 사용하여 tnsnames.ora를 우회 할 때 "ORA-12560 : TNS : 프로토콜 어댑터 오류"발생

연결된 Pandas 시리즈에 열 이름을 지정할 수 없습니다.

ORA-01719 : 외부 결합 연산자 (+)는 OR 또는 IN의 피연산자에 허용되지 않습니다

ora-01017 유효하지 않은 사용자 이름 / 암호 로그온 거부 됨 새 연결로 로그온 할 수 없음

지정된 MySQL 호스트를 연결할 수 없습니다

BlobServiceClient는 연결 문자열로 연결할 수 없습니다. 버퍼가 정의되지 않았습니다.

TOP 리스트

  1. 1

    ImageJ-히스토그램 빈을 변경할 때 최대, 최소 값이 변경되는 이유는 무엇입니까?

  2. 2

    상황에 맞는 메뉴 색상

  3. 3

    Excel : 합계가 N보다 크거나 같은 상위 값 찾기

  4. 4

    Oracle VirtualBox-설치를 위해 게스트를 부팅 할 때 호스트 시스템이 충돌 함

  5. 5

    ExecuteNonQuery- 연결 속성이 초기화되지 않았습니다.

  6. 6

    Cassandra에서 버전이 지정된 계층의 효율적인 모델링

  7. 7

    원-사각형 충돌의 충돌 측면을 찾는 문제

  8. 8

    Matlab의 반복 Sortino 비율

  9. 9

    Apache POI를 사용하여 xlsx를 읽는 동안 주 스레드의 NoSuchMethodError

  10. 10

    Android에서 Drawable을 int로 또는 그 반대로 변환하는 방법

  11. 11

    어떻게 같은 CustomInfoWindow 다른 이벤트를 할 수 있습니다

  12. 12

    openCV python을 사용하여 텍스트 문서에서 워터 마크를 제거하는 방법은 무엇입니까?

  13. 13

    JQuery datepicker 기능이 인식되지 않거나 새 프로젝트에서 작동하지 않음

  14. 14

    PyCharm에서 프로젝트를 제거하는 방법은 무엇입니까?

  15. 15

    regedit에서 방금 내 보낸 Windows 레지스트리 가져 오기 문제

  16. 16

    C ++ VSCode에서 같은 줄에 중괄호 서식 지정

  17. 17

    Python 사전을 사용하는 동안 "ValueError : could not convert string to float :"발생

  18. 18

    자바 스크립트로 duolingo 형 문장 연습을 개발 중입니다. 구현했지만 더 개선이 필요합니다

  19. 19

    react-redux 저장소의 상태 변수는 console.log 후에 정의되지 않습니까?

  20. 20

    cURL 명령은 git bash에서는 작동하지만 cmd 및 powershell에서는 작동하지 않습니다.

  21. 21

    JavaFX : TilePane을 중앙에 배치하고 TilePane 자식을 왼쪽에서 오른쪽으로 배치하는 방법은 무엇입니까?

뜨겁다태그

보관