ora-01002 "Fetch out of Sequence"
posted 22 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Hi
We are using WebLogic 5.1 and Oracle 8.1.7.2.
We just recently switched to Service pack 13 and have been getting this ora-01002 "Fetch out of Sequence" error within JAVA code that was running
fine before the conversion.
The requests are not request "FOR UPDATE".
Any ideas???
Any help would be appreciated! Please contact me at [email protected] or or post a reply.
It's not a PL/SQL code, here is a part of our code :
public Vector getListeCommuniques(int numEnt,boolean cor )
{
ora=new Oracle(Oracle.PoolSGDCWebmaster);
Vector vListeCommuniques = new Vector();
try
{
if (debug) System.out.println(this.getClass().getName() +"getListeCommuniques");
String req ="SELECT ID_COMMUNIQUENET AS ID, SUBSTR(TITRE, 1 ,40) AS TIT, TO_CHAR(DEBUTVALID_DAT, 'DD/MM/YYYY') AS DEB, TO_CHAR(FINVALID_DAT, 'DD/MM/YYYY') AS FIN FROM COMMUNIQUENET ";
req+= "WHERE ENT_CD=" + numEnt + " AND FK_LANGUESNET =" + IdLangue;
if (cor)
{
req+= " AND FLAG = 1 ORDER BY FINVALID_DAT DESC";
}
else
{
req+= " AND FLAG = 0 ORDER BY FINVALID_DAT DESC";
}
if (debug) System.out.println(this.getClass().getName() +"getListeCommuniques : requ�te = "+req);
final String REQUETE=req;
ora.ouvrirConnexion();
ora.executerRequete(REQUETE);
while (ora.rs.next()) {
Vector vUneListe = new Vector();
vUneListe.addElement(ora.rs.getString(1));
String strTitre = ora.rs.getString(2).trim();
vUneListe.addElement(strTitre);
vUneListe.addElement(ora.rs.getString(3));
vUneListe.addElement(ora.rs.getString(4));
vListeCommuniques.addElement(vUneListe);
}
}
catch(Exception ex) {
this.sendLog("Exception dans m�thode getListeCommuniques :" + ex);
}
finally {
ora.fermerConnexion(this.getClass().getName(),"getListeCommuniques"); // On ne ferme pas pour pouvoir exploiter le result set � partir des jsp
return vListeCommuniques;
}
}
Thanks.
We are using WebLogic 5.1 and Oracle 8.1.7.2.
We just recently switched to Service pack 13 and have been getting this ora-01002 "Fetch out of Sequence" error within JAVA code that was running
fine before the conversion.
The requests are not request "FOR UPDATE".
Any ideas???
Any help would be appreciated! Please contact me at [email protected] or or post a reply.
It's not a PL/SQL code, here is a part of our code :
public Vector getListeCommuniques(int numEnt,boolean cor )
{
ora=new Oracle(Oracle.PoolSGDCWebmaster);
Vector vListeCommuniques = new Vector();
try
{
if (debug) System.out.println(this.getClass().getName() +"getListeCommuniques");
String req ="SELECT ID_COMMUNIQUENET AS ID, SUBSTR(TITRE, 1 ,40) AS TIT, TO_CHAR(DEBUTVALID_DAT, 'DD/MM/YYYY') AS DEB, TO_CHAR(FINVALID_DAT, 'DD/MM/YYYY') AS FIN FROM COMMUNIQUENET ";
req+= "WHERE ENT_CD=" + numEnt + " AND FK_LANGUESNET =" + IdLangue;
if (cor)
{
req+= " AND FLAG = 1 ORDER BY FINVALID_DAT DESC";
}
else
{
req+= " AND FLAG = 0 ORDER BY FINVALID_DAT DESC";
}
if (debug) System.out.println(this.getClass().getName() +"getListeCommuniques : requ�te = "+req);
final String REQUETE=req;
ora.ouvrirConnexion();
ora.executerRequete(REQUETE);
while (ora.rs.next()) {
Vector vUneListe = new Vector();
vUneListe.addElement(ora.rs.getString(1));
String strTitre = ora.rs.getString(2).trim();
vUneListe.addElement(strTitre);
vUneListe.addElement(ora.rs.getString(3));
vUneListe.addElement(ora.rs.getString(4));
vListeCommuniques.addElement(vUneListe);
}
}
catch(Exception ex) {
this.sendLog("Exception dans m�thode getListeCommuniques :" + ex);
}
finally {
ora.fermerConnexion(this.getClass().getName(),"getListeCommuniques"); // On ne ferme pas pour pouvoir exploiter le result set � partir des jsp
return vListeCommuniques;
}
}
Thanks.

posted 19 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Hi,
I've the same problem's but actually i don't have resolved it, if you have can say me in which way ? Thank's a lot
Giuseppe
I've the same problem's but actually i don't have resolved it, if you have can say me in which way ? Thank's a lot
Giuseppe
posted 19 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
If you are using WebLogic 5.1 and Oracle 8.1.7.2 like the original poster from over three years ago, I am so sorry.
There is rarely a point to resurrecting such old posts (seeDontWakeTheZombies).
You should really start your own post and tell us the details.
There is rarely a point to resurrecting such old posts (seeDontWakeTheZombies).
You should really start your own post and tell us the details.
| All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad: The new gardening playing cards kickstarter is now live! https://www.kickstarter.com/projects/paulwheaton/garden-cards |






