torwin
17th November 2003, 13:31
Hello,
I was wondering if anyone else had hit this issue....
When we use the Oracle8 driver on Oracle 9i, it adds the "WAIT 999" statement to some generated SQL. For example :
SQL> SELECT /*+ index(a tcspss957731$idx1) */ t$reqi,t$reqd,t$prog,t$obs,t$wbs,t$ccn,t$act,t$stat,t$stdt,t$user,t$repg,t$Refcntd,t$Refcntu FROM baan.tcspss95773
1 a WHERE t$reqi= :1 AND t$reqd= :2 AND t$prog= :3 FOR UPDATE WAIT 999
This is no problem when running on Oracle9i which support this syntax, however some of our Oracle9i baan tables are VIEWS to other tables in Oracle 8 databases. When SQL including these 'WAIT 999' statements are run against these tables we get errors due to this syntax not being supported on Oracle8.
If we switch to the Oracle 7 driver we do not get this error. I believe that we can configure the tabledef6.1 file to use a specific driver against a named table but this would involve, in my opinion, unnecessary additional configuration/administration.
Anyone run into this ?
I was wondering if anyone else had hit this issue....
When we use the Oracle8 driver on Oracle 9i, it adds the "WAIT 999" statement to some generated SQL. For example :
SQL> SELECT /*+ index(a tcspss957731$idx1) */ t$reqi,t$reqd,t$prog,t$obs,t$wbs,t$ccn,t$act,t$stat,t$stdt,t$user,t$repg,t$Refcntd,t$Refcntu FROM baan.tcspss95773
1 a WHERE t$reqi= :1 AND t$reqd= :2 AND t$prog= :3 FOR UPDATE WAIT 999
This is no problem when running on Oracle9i which support this syntax, however some of our Oracle9i baan tables are VIEWS to other tables in Oracle 8 databases. When SQL including these 'WAIT 999' statements are run against these tables we get errors due to this syntax not being supported on Oracle8.
If we switch to the Oracle 7 driver we do not get this error. I believe that we can configure the tabledef6.1 file to use a specific driver against a named table but this would involve, in my opinion, unnecessary additional configuration/administration.
Anyone run into this ?