ORA-24375: cannot use V6 syntax when talking to a V8 server
Cause: V6 syntax is no longer supported in V8 server. Action: Change syntax to V7 syntax or higher.

解决方案 »

  1.   

    Problem Description ------------------- 
      When trying to run an OCI7 application with Net8 installed, you  receive the following error:      ORA-24375  Cannot use V6 syntax when talking to a V8 server    This occurs during runtime, when you reach the oparse() function call.Solution Description --------------------  
    Set the lngflg parameter of the oparse function to 1 or 2.   Explanation -----------  
    The wrong value was passed to the lngflg parameter of the oparse()  function call.  The lngflg parameter is the last parameter of the oparse() function call.   It determines how Oracle handles the SQL statement or anonymous PL/SQL  block.  
    There are the following three possibilities:  
       "0":  Specifies Version 6 behavior    
       "1":  Specifies the normal behavior for the database version          you are connected to   
       "2":  Specifies Oracle7 behavior 
     Oracle7's behavior in this regard is different from that of Oracle  Version 6.  When you are connected to an Oracle8 server, you cannot have this parameter set to "0"; otherwise you receive the ORA-24375 error.   Setting this parameter to "1" or "2" solves the problem.