关于ORACLE中配置文件的问题

关于windows服务和oracle的问题的解决

 

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2"/>
</startup>
<!--
<connectionStrings>
<add name="ConnectionString" connectionString="Data Source=cdms;User Id=UPCDMS;Password=UPCDMS;" providerName="System.Data.OracleClient"/>
<add name="dealConnect" connectionString="Data Source=cdms;User Id=CDMS;Password=CDMS;" providerName="System.Data.OracleClient"/>
</connectionStrings>
-->
<appSettings>
<add key="Oracle_CDMS" value="Data Source=cdms;User ID=cdmszz;Password=cdms;" />  

今天在这个地方遇到了一个小问题,关于连接oracle服务器的问题,在服务器上,进行配置的时候,没有意识到这里如果写IP地址,会发生监听程序的错误,将oracle数据库的名字取代IP地址,这样在运行的时候就不会报错!

<add key="_LOGPATH" value="D:\llll"/>
<add key="_REPEATNo" value="1"/>
<add key ="_Work" value="0"/><!-- 当_Work为0的时候,为中支服务;当_Work为1的时候为所有人服务。-->
<add key="_UnitZz" value="bc25736a-d4de-4fe5-a86e-036fac9a1112"/>
<!--
<add key="_STARTTIME_FTP" value="12"/>
<add key="_STARTMinute_FTP" value="10"/>
-->
<add key="_STARTTIME_STOCKINFO" value="14"/>
<add key="_STARTMinute_STOCKINFO" value="00"/>
<add key="ClientSettingsProvider.ServiceUri" value=""/>
</appSettings>
<system.web>
<membership defaultProvider="ClientAuthenticationMembershipProvider">
<providers>
<add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri=""/>
</providers>
</membership>
<roleManager defaultProvider="ClientRoleProvider" enabled="true">
<providers>
<add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400"/>
</providers>
</roleManager>
</system.web>
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="SyncLocalToRemoteSoap" />
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://www.bankmaster.com/cdms/SyncLocalToRemote.asmx"
binding="basicHttpBinding" bindingConfiguration="SyncLocalToRemoteSoap"
contract="SyncRemoteRef.SyncLocalToRemoteSoap" name="SyncLocalToRemoteSoap" />
</client>
</system.serviceModel>
</configuration>

posted @ 2016-12-20 14:09  孫志峰  阅读(1952)  评论(0编辑  收藏  举报