Q1.Oracle9不支持以下语句?
A1:oracle不支持别名条件.Q2
ORA-03113 end-of-file on communication channelCause: An unexpected end-of-file was processed on the communication channel. The problem could not be handled by the Net8 two-task software. This message could occur if the shadow two-task process associated with a Net8 connect has terminated abnormally, or if there is a physical failure of the interprocess communication vehicle, that is, the network or server machine went down.In addition, this message could occur when any of the following statements/commands have been issued:ALTER SYSTEM KILL SESSION ... IMMEDIATE
ALTER SYSTEM DISCONNECT SESSION ... IMMEDIATE
SHUTDOWN ABORT/IMMEDIATE/TRANSACTIONAL
Action: If this message occurs during a connection attempt, check the setup files for the appropriate Net8 driver and confirm Net8 software is correctly installed on the server. If the message occurs after a connection is well established, and the error is not due to a physical failure, check if a trace file was generated on the server at failure time. Existence of a trace file may suggest an Oracle internal error that requires the assistance of Oracle Support Services.
ORA-03114 not connected to ORACLECause: A call to Oracle was attempted when no connection was established. Usually this happens because a user-written program has not logged on. It may happen if communication trouble causes a disconnection. In addition, this message could occur when ALTER SYSTEM KILL SESSION or ALTER SYSTEM DISCONNECT SESSION were issued with the IMMEDIATE qualifier because, in those cases, the client's connection to the database is terminated without waiting for the client to issue a request.Action: Try again. If the message recurs and the program is user written, check the program.

解决方案 »

  1.   

    在同一层的where里面使用别名是不可以的,只能通过写列名,或者嵌套
      

  2.   

    只有一个问题:oracle里面不能在用一语句的条件中直接调用字段别名,因为你的表只认识字段名,这个与oracle的执行机制有关。
      

  3.   

    是这样的,你的别名f其结果只可能是'是'或者'否',并不是sid,因此会报错;
    你在子查询中定义了别名tCbo,这是在主查询中就可以调用tCbo作为字段的替代名了。
      

  4.   

    ORA-03113:end-of-file on communication channel 产生原因:通讯不正常结束,从而导致通讯通道终止 解决方法:1>.检查是否有服进程不正常死机,可从alert.log得知 2>.检查sql*Net Driver是否连接到ORACLE可执行程序 3>.检查服务器网络是否正常,如网络不通或不稳定等 4>.检查同一个网上是否有两个同样名字的节点 5>.检查同一个网上是否有重复的IP地址 
      

  5.   

    to hlooo(天穹飞雨) :
    可我的服务器在本地机上,而且通过plsql developer执行其他sql语句没问题,再执行这条就出问题了,然后再执行其他的sql也没问题。
      

  6.   

    select * from(select sid || sname as tCbo from t1) where tCbo='bbb'