Can anyone help with a mysterious problem that has arisen since 'upgrading'
from 8 to 9.2.0.4?
The situation is this:
Queries that worked fine under 8 are now producing *really* strange results
under 9.2.0.4. The queries all involve functions, including built-in
functions
like NVL. The strangeness is that less than the expected number of rows is
returned *or* and ORA-01422 is generated. Here's an example:
-- This query yielded 54 records
select distinct worklistname Worklist_Name, worklistcreatet s Date_Created,
u2.fullname Created_by,samp lename, u2.fullname Closed_By, audittimestamp
Date_Closed
from wkls_histx, lmsuser u1, lmsuser u2
where audittimestamp between '&StartDate' and '&EndDate'
and samplename not like 'JAN-%'
and fullprocname not like '%OBMCLIBRARY%'
and fullprocname not like '%MICROLIBRARY% '
and fullprocname not like '%OBMMLIBRARY%'
and assignedanalyst not in ('None','Not Defined')
and u2.fullname not like 'ChemLMS%'
-- and nvl(u1.state,'N ULL') in ('NULL','*','d' )
-- and nvl(u2.state,'N ULL') in ('NULL','*','d' )
and u1.state <> '+'
and u2.state <> '+'
and assignedanalyst =u1.name
and auditusername=u 2.name
--
-- Same date range this query yielded 142 records
select distinct worklistname Worklist_Name, worklistcreatet s Date_Created,
u2.fullname Created_by,samp lename, u2.fullname Closed_By, audittimestamp
Date_Closed
from wkls_histx, lmsuser u1, lmsuser u2
where audittimestamp between '&StartDate' and '&EndDate'
and samplename not like 'JAN-%'
and fullprocname not like '%OBMCLIBRARY%'
and fullprocname not like '%MICROLIBRARY% '
and fullprocname not like '%OBMMLIBRARY%'
and assignedanalyst not in ('None','Not Defined')
and u2.fullname not like 'ChemLMS%'
and nvl(u1.state,'N ULL') in ('NULL','*','d' )
and nvl(u2.state,'N ULL') in ('NULL','*','d' )
-- and u1.state <> '+'
-- and u2.state <> '+'
and assignedanalyst =u1.name
and auditusername=u 2.name
The difference between the two is that in the second example the nvl
function has been replaced by something that is functionally equivalent. It
has been verified that under Oracle 8 the two queries return the same number
of rows.
In another example, using a user-defined function, the number of rows
returned depends on the breadth of the criteria (the query is too complex to
show here), with broader criteria returning *fewer* rows, until the point
when one of the criteria is LIKE '%' and an ORA-01422 is returned. This
query also worked fine under Oracle 8.
I suspect two things are happening here. One is we are getting hit by a bug
in 9i:
"Incorrect Results (instead of ORA-1422) Selecting Through A Function "
.... but the question is, why on earth should a function that can only
possibly return one row be trying to return more than one?
Has anyone seen anything like this before?
Apologies if any of this is unclear,
Steve S
--
Put the cats out before replying. 0 2494 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Bruce Davis |
last post by:
I'm having a problem on windows (both 2000 and XP) with a multi-threaded
tkinter gui application. The problem appears to be a deadlock condition
when a child thread pops up a
Pmw dialog window in the context of a main window. The problem does not
occur on HPUX or Linux. The following simple example code illustrates
the problem and the work around
I've come up with; However, I'd like, very much, to get rid of the kludgy
work around....
|
by: Stephen Boulet |
last post by:
I'm looking to install python on hpux 10.2. Anyone know of a site
hosting a depot file of a recent python? Thanks.
Stephen
|
by: Jorge |
last post by:
All,
I've got a process that creates some children and want to be alerted
when they die. To do this, the SIGCHLD signal is registered in the
process using sigaction to jump to a subprogram as soon as it's
received.
The problem comes when many children exit at the same time and their
father seems to miss some of them. This happens quite often, but not
always.
|
by: Jeremy Lemaire |
last post by:
Hello,
I am working on cross platform code that is displaying a huge memory
leak when compiled on 11.00 HPUX using the aCC -AA flag. It is not
leaking on NT, LINUX, Solaris, or HPUX without the -AA flag. In
another news group I came across some interesting (ok scarey)
information regarding memory leaks in the STL list<...> container. I
have compiled and executed the following code and verified that this
does in fact leak on my system.
|
by: Roy |
last post by:
Hey all,
strange problem here... query #1 displays 357 records correctly and all
is well. However, when placed within query #2 as a subquery, it updates
every single record in the lta table, what's going on here? any
thoughts?
1.) select *
from LTA INNER JOIN new_list
ON lta.voy = new_list.voy AND
| |
by: Bruce W.1 |
last post by:
BACKGROUND
My ASP.NET app has been running (or rather available) on a server for
about 4 months now. The server is at
http://www.webhost4life.com/
They don't add cookies to any of the sites they host.
The app was created with VS.NET v.7. And the server is running Windows
2000 Advanced Server.
|
by: kongkolvyu |
last post by:
Hi
The strptime function works just fine on Solaris.
Here is an example on how I use it:
struct tm tmpTm;
if(strptime("20010101010101","%Y%m%d%H%M%S",&tmpTm)==NULL)
printf("Error,String convert to time Error\n");
On the HPUX platform, this call to strptime always returns NULL.
Does anybody have an idea why this does not work.
|
by: David |
last post by:
We've developed a seismic-data processing app in VB.NET 1.1 which runs on XP
Pro using SQL2K. Like all seismic data apps, it deals with HUGE amounts of
binary data (we use NTFS sparse "flat files") ... a typical user will have a
20 Terabyte raid array.
During a particular operation that reads, formats and exports these files,
we've noticed that sometimes it runs rather slowly... like it might take 12
hours to finish exporting the same...
|
by: cousinoer5 |
last post by:
I'm trying to implement a shop in my game, right now I can buy anything in the shop and it works perfectly, but I can't sell anything because I get an error I can't figure out.
Here's the relevent code:
def shop(self, name):
self.name = name
if name == "sapphire":
if "sapphire" in self.inventory:
print "I can buy that for 10 gold."
self.inventory.remove_item("sapphire")
|
by: amit2781 |
last post by:
I am trying to build the my project on HPUX (HP-UX oscar B.11.11 U 9000/800 741028561 unlimited-user license) which access the Mysql library. But it is giving error as :
Error : MySQL51/lib/hpux/libmysqld.a(client.o) - shared library must be position independent. Use +z or +Z to recompile.
I am using this option in building:
aCC -Wl,+s,-E,+vnocompatwarnings -z -g0 -b -Wl,-Bsymbolic.
I also tried using the +Z, +z, also added...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |