小编Ami*_*irT的帖子

如何解决ORA-02014:无法从DISTINCT,GROUP BY的视图中选择FOR UPDATE

我想使用以下查询锁定一组记录:

select *
  from (select *
          from event_table
         where status = 'S'
        order by creation_data asc
       )
 where rownum <=10
for update;
Run Code Online (Sandbox Code Playgroud)

event_table不是视图.这是一张常规表:

create table event_table
(
 id            number, 
 creation_date date, 
 status        number, 
 info          clob
);
Run Code Online (Sandbox Code Playgroud)

主键是字段ID.

我可以rownumselect for update吗?

是否有其他解决方案,使用select for update但只选择一组行而不是选择的所有结果?

例如,我有一个运行每个X内部并且需要select for update用于该表的任务,但是如果select返回500行,我只想每次处理100个(分页类型).这就是我rownum为此尝试的原因.

谢谢.

oracle ora-02014

9
推荐指数
1
解决办法
1万
查看次数

在没有客户端证书的情况下在Tcp上使用Wcf SSl证书(仅限服务器端)

有没有办法使用WCF SSL与NetTcpBinding,不需要在客户端计算机上安装客户端证书?(SSL V2,如果我没有记错的话).

我们希望服务器证书将在客户端的可信存储中进行身份验证,并通过服务器的公钥加密其消息,这意味着,只有服务器计算机将持有私钥证书.

我们在两边使用NetTcpBinding而不是customBinding.如果它可以完成,它的正确配置是什么?(在客户端和服务器配置上)

提前致谢.


这是我的wcf配置.

服务器配置:



    <configuration>
      <system.serviceModel>
        <bindings>
         <netTcpBinding>
            <binding name="TcpSecureBinding">
            <security mode="Transport">
              <transport clientCredentialType="Certificate"/>            
            </security>
       </binding>
         </netTcpBinding>
       </bindings>
       <behaviors>
         <serviceBehaviors>
           <behavior name="ServiceCredentialsBehavior">          
             <serviceDebug includeExceptionDetailInFaults="True" />
             <serviceMetadata httpGetEnabled="true" />
             <serviceAuthorization 
                 principalPermissionMode="UseWindowsGroups">
             </serviceAuthorization>
          <serviceCredentials>
               <windowsAuthentication includeWindowsGruops="true"            
                                      allowAnonymousLogons="false"/>
               <clientCertificate>
                     <authentication certificateValidationMode="none"/>
               </clientCertificate>
               <serverCertificate
                   findValue="thumbprint"
                   storelocation="LocalMachine"
                   x509FindType="FindMyThumbprint"
                   storeName="My"/>
           </serviceCredentials>
        </behavior>
       </serviceBehaviors>
      </behaviors>
    <services>
        <service behaviorConfiguration="ServiceCredentialsBehavior"
               name="ServiceModel.Calculator">
          <endpoint address="net.tcp://localhost:8040/Calculator"
                  binding="netTcpBinding"
                  bindingConfiguration="TcpSecureBinding"
                  contract="ServiceModel.ICalculator" >
           <identity>
               <dns value="localhost"/>
           </identity>
         </endpoint>
        </service>
     </services>
    </system.serviceModel>
    </configuration>
Run Code Online (Sandbox Code Playgroud)

客户配置:



    <configuration>
      <system.serviceModel>
        <client>
         <endpoint address="net.tcp://localhost:8040/Calculator"
                behaviorConfiguration="endpointCredentialBehavior"
                binding="netTcpBinding" 
                bindingConfiguration="Binding1" …
Run Code Online (Sandbox Code Playgroud)

ssl https wcf certificate

5
推荐指数
1
解决办法
5057
查看次数

标签 统计

certificate ×1

https ×1

ora-02014 ×1

oracle ×1

ssl ×1

wcf ×1