Possibility of query showing deviated behaviour
I have a strange problem which I am facing, I would explain that after giving the background. I have a front-end application web application with Oracle 11g as the database, in one of the screen of our GUI we have filters based on different criteria. I would simulate the problem faced with a simple example, say we have a GUI screen showing details of employee table and we put a search for a particular employee Id, the problem here is that details of all the employees are shown sometimes but rarely and not always. Is it possible that the "where" clause running in the background could be causing this deviated behaviour in a random fashion but not always. Could it be dependent on that some browsers do not support some things?
I hope my query is clear that the web-based front-end application with Oracle database as the back-end is showing erratic behaviour on rare occasions of showing all results in a search condition whereas it should show a filtered set of records.
Please revert with the reply to my query.
Regards
You haven't given us much to work on but I will go out on a limb and guess that your GUI front end is constructing the SQL dynamically and under some conditions are causing the variance in results. Did you instrument your application? Can you see the SQL query that is being passed to the backend database to verify that it is correct?
Similar Messages
-
Is it possible to query which databases are on a databaseserver
I am trying to create a list of databases to which a specified user can connect.
The user has to specify the database server, user name and password and I want to show a list of possible databases.
Can this be accomplished?
Thanks.Thanks for the help. The code below lists the databases in a MS SQL Server. For MySql I think the trick is to use the query "SHOW DATABASES;" with as column name 'Database', but I don't have a MySql Server here at this moment to test it.
public static List getDatabases(final Connection dbCon) throws Exception {
List databases = new ArrayList();
try {
String databaseName = null;
ResultSet rs;
Statement stat;
stat = dbCon.createStatement();
rs = stat.executeQuery("exec sp_databases");
while (rs.next()) {
databaseName = rs.getString("DATABASE_NAME");
if (!databases.contains(databaseName)) {
databases.add(databaseName);
} catch (SQLException e) {
throw new Exception("Get databases failed:" + e.getMessage());
return databases;
} -
Is it possible the query in view object is dynamic?
Is it possible the query in view object is dynamic?
Generally, make the column list dynamic.
I think this is related to whether view object can be assembled at runtime based on a dynamic cursor in a procedure?
I ask this because I would like to know how we can use OA framework to simulate crosstab workbook in Discoverer?
Anybody has some clues, please advise.
Thanks.Hi Shay,
Let me tell you briefly... I am sending input as customerId,customerNumber,CustomerName to the web service, if the record is available i am getting the response and i am displaying those records on page as a table. Now when i click a row i need to populate another table with all sale orders of that customer. From webservice datacontrol i have only customer object, I dont have Sales Order Object. For this i need master detail relation. In this case how to proceed. Thats why i am thinking to create a vO and EO object for sales orders table and i want to create view link for this sales order and customers. As i don't have customer VO and EO object to create view link. -
How To Make Search Query Showing the Result As List of Buttons.
Can some one give me an idea how to start to make a Search Query showing the results as list of buttons.. i have already have my buttons with names. i just dont know how to make a search query.
this is my on screen keyboard i made..
im making a system that the result were a list of buttons.. showing like this
This was supposed to be the output of the query that i need to do..
Please help me.. i just need a idea or tips how to make this one.Here is code I posted recently for another question
Public Class Form1
Const BUTTON_SIZE As Integer = 20
Const SPACE As Integer = 5
Sub New()
' This call is required by the Windows Form Designer.
InitializeComponent()
' Add any initialization after the InitializeComponent() call.
Dim buttons As New List(Of List(Of MyRadioButton))
For row = 1 To 6
Dim newRow As New List(Of MyRadioButton)
buttons.Add(newRow)
For col = 1 To 6
Dim button As New MyRadioButton()
button.row = row
button.col = col
button.Height = BUTTON_SIZE
button.Width = BUTTON_SIZE
button.Left = col * (BUTTON_SIZE + SPACE)
button.Top = row * (BUTTON_SIZE + SPACE)
button.Name = String.Format("radGr1{0}_{1}", row.ToString(), col.ToString())
Me.Controls.Add(button)
newRow.Add(button)
AddHandler button.CheckedChanged, AddressOf Radio_Change
Next col
Next row
End Sub
Private Sub Radio_Change(ByVal sender As Object, ByVal e As System.EventArgs)
Dim button As MyRadioButton = CType(sender, MyRadioButton)
Dim row As Integer = button.row
Dim col As Integer = button.col
End Sub
End Class
Public Class MyRadioButton
Inherits RadioButton
Public row As Integer
Public col As Integer
End Class
jdweng -
I am trying to assign a show hide behavior to my portfolio. I already have an image rollover in place on 15 individual images in a grid, basically a brighter version of the thumbnail when on hover.
What I also want to do is assign a show/hide behaviour to each individual thumbnail as well as the rollover which will show a paragraph about each piece of artwork when hovering over the thumbnail. I can implement the rollover easily enough but when the show hide is added the div I am trying to show just flickers briefly on hover then dissapears...
Any info would get greatly appreciated?
HeggieI already have an image rollover in place on 15 individual images in a grid, basically a brighter version of the thumbnail when on hover.
FYI: You could do this with much less code and only one set of images using CSS opacity.
CSS:
#thumbnail img {opacity: 0.5 }
#thumbnail img:hover {opacity: 1.0}
HTML:
<div id="thumbnail">
<img src="image1.jpg">
<img src="image2.jpg">
<img src="image3.jpg">
<img src="image4.jpg">
</div>
Anyway, to answer your original question. IMO Show/Hide behaviors work best with onClick event triggers. onMouseover triggers are squirrely especially for touch screen devices.
See demo below, view source to see the code.
http://alt-web.com/DEMOS/Show-Hide-Layers.html
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/ -
Is it possible to just show new posts of selected forums?
Hi there,
is there a possibility to just show new posts of selected forums? At vbulletin forums you can do this via search.php?include=1,2,3 so I tried search.php?action=show_new&fid=20,30,33,47,42,24,50 here. But it only searches for the new posts of forum with the id 20 and ignores all the other parameters.. Any ideas? Did I overlook this function anywhere?
Thanks in advance
aosndfasidf
Last edited by aosndfasidf (2014-02-25 20:53:00)So yeah it's inconvenient because my mailbox will explode
Question to the administration: Is it possible to implement this feature? As for now I can search each forum for new posts with search.php?action=show_new&fid=20 for example. So it shouldn't be that complex to implement a search with multiple forum IDs like search.php?action=show_new&fid=20,21,22,23?
Would be really great..
To the suggestion with "New" threads or new posts in threads (search.php?action=show_new): It's a lot to search through and I don't want to spend too much time for it
Last edited by aosndfasidf (2014-02-27 21:41:53) -
Query Show deptno 20 Last record to End
Oracle 9i Database
I want to create a query that show records, Deptno 20 last record to End.
blow query show all records that are in emp table.
SQL> select empno,ename,job,deptno, row_number() over (order by deptno) rno from emp;
EMPNO ENAME JOB DEPTNO RNO
7782 CLARK MANAGER 10 1
7839 KING PRESIDENT 10 2
7934 MILLER CLERK 10 3
7369 SMITH CLERK 20 4
7876 ADAMS CLERK 20 5
7902 FORD ANALYST 20 6
7788 SCOTT ANALYST 20 7
7566 JONES MANAGER 20 8
7499 ALLEN SALESMAN 30 9
7698 BLAKE MANAGER 30 10
7654 MARTIN SALESMAN 30 11
EMPNO ENAME JOB DEPTNO RNO
7900 JAMES CLERK 30 12
7844 TURNER SALESMAN 30 13
7521 WARD SALESMAN 30 14
14 rows selected.
SQL> I want result
EMPNO ENAME JOB DEPTNO RNO
7566 JONES MANAGER 20 8
7499 ALLEN SALESMAN 30 9
7698 BLAKE MANAGER 30 10
7654 MARTIN SALESMAN 30 11
7900 JAMES CLERK 30 12
7844 TURNER SALESMAN 30 13
7521 WARD SALESMAN 30 14Regardswith t as
( select 7782 e1,'CKING ' e2 , ' PRESIDENT ' e3 , 10 e4 from dual union all
select 7934, 'MILLER' , 'CLERK ' , 10 from dual union all
select 7369, 'SMITH ' , 'CLERK ' , 20 from dual union all
select 7876, 'ADAMS' , 'CLERK ' , 20 from dual union all
select 7902, 'FORD ' , 'ANALYST ' , 20 from dual union all
select 7788, 'SCOTT' , 'ANALYST ' , 20 from dual union all
select 7788 ,' SCOTT ' ,'ANALYST ' , 20 from dual union all
select 7566, 'JONES ', 'MANAGER ' , 20 from dual union all
select 7499, 'ALLEN ' , 'SALESMAN' , 30 from dual union all
select 7698, 'BLAKE ' , 'MANAGER ' , 30 from dual union all
select 7654, 'MARTIN' , 'SALESMAN ' , 30 from dual union all
select 7900, 'JAMES ' , 'CLERK ' , 30 from dual union all
select 7844, 'TURNER' , 'SALESMAN ' , 30 from dual union all
select 7521 ,'WARD ' , 'SALESMAN ' , 30 from dual
SELECT o.*
FROM (SELECT p.*,
MAX (CASE
WHEN p.e4 = 20
THEN p.rno
END) OVER (ORDER BY p.e4) AS mx
FROM (SELECT a.*, ROW_NUMBER () OVER (ORDER BY e4) rno
FROM t a) p) o
WHERE o.rno >= o.mx -
Question about the new Dock - is it possible to only show certain things?
I'm wondering if it is possible to only show the things I want in the dock, like my apps, my stacks, etc, but to NOT show all of my open windows in the dock?
For instance I often have up to ten or more apps running at the same time, and all of the windows for those appear in the right side of the dock, so I end up with a normal dock icon for Itunes, but then another Itunes icon on the far right for that window, I have the main Ical icon and then also another ical icon on the right, etc....
It ends up with all of those "extra" icons on the right making my dock icons so small and hard to read.
thanks,
JeffIf an application has several windows open the application will always show in the Dock.
However, if you click on the icon in the Dock and hold down on the mouse button a menu will appear the allows you to choose Hide.
Hide removes any open windows, for that application, from view, either on the desktop or in the Dock.
You can also utilize Spaces which allows you to create separate workspace configurations with only certain windows open in each. -
My iPhone 5 shows weird behaviour.
I bought a new factory unlocked no contract iPhone in Pakistan. The phone is from the United Kingdom, the first thing I would like to tell you that this phone has dreadful battery life, the battery drops 1% every minute when I'm texting and while I'm on facebook, drops even faster when I'm playing some game like Asphalt 7 (this is acceptable but the battery drains faster than my iPhone 4S) moreover the phone shows weird behaviour, sometimes when I charge it to 100%, it stays there for some time but then suddenly the battery drops to around 70% within an instant and sometimes when the battery is low and I plug it in, the battery percentage suddenly jumps from 18% to around 40% and this happens the moment I plug it in (both the computer and the wall charger) and the last thing is that this phone charges amazingly fast like from 2% to 1% in about 30 minutes. I saw a video on the internet for reference and in that video, the guys' iPhone 5 charges from 5% to 100% in 2 hours and 10 minutes. So could something be wrong with my battery or charger or both ???
I have Brightness set to auto and I mostly stay indoors
Location services are off
Diagnostics and Usage are set to Don't Send
iOS is 6.1.4 (the latest available)
Push Notifications for all apps are off
WiFi remains on most of the day
3G is set to off as it is not available in Pakistan
Cellular Data is off
Bluetooth is off
Time and Date automatic adjustment is off
Mail is set to Fetch Manually
Only 2.5 GB storage is in use
and I set it up as a new iPhone and I've restored it 3 times in just 1 week.How would I know when the battery is totally discharged to 0? Because all it shows is this
-
Is it possible to query Google finance using Flex?
Google Finance has an open API for programmers. Is it possible to query Google Finance using Flex?
Regards,
Pooja GuptaTo hold a servo motor at constant torque, all you need to do is provide a constant voltage. You can accomplish this using the analog output (DAC) of a FlexMotion board. To gain access to the DAC, configure the axis as an open loop stepper, then use the Load DAC.flx VI to output an analog voltage. The downside to this is that you won't have feedback, so you'll have no way to determine your position.
-
IMPDP |Possible using Query option
HI PPL,
I wanted to Know whether IMPDP is possible using query option, as i have taken full expdp dump of the mentioned table and want to import only select rows.
impdp arup/arup directory=demo_dir dumpfile=employees.dmp
query=employees:\"where salary\>10000\ order by salary" tables=employees
version:10gR2
platform:UNIX
regardsHello,
Yes you can use QUERY parameter with IMPDP.
But the syntax may be a little bit different than with the old IMP utility:
QUERY
Default: There is no default
Purpose
Allows you to specify a query clause that filters the data that gets imported.
Syntax and Description
QUERY=[[schema_name.]table_name:]query_clauseYou may have more examples on the following link:
http://download.oracle.com/docs/cd/E11882_01/server.112/e10701/dp_import.htm#BEHFGIGF
Hope this help.
Best regards,
Jean-Valentin -
Bex Query - Show rows from another characteristic
Hi Guys,
I have a problem, I need to create a query to be displayed in Excel that shows accounting informacion by number, like this:
Account Balance
12110201 1 USD
12110202 1 USD
12110204 1 USD
That works so far, the problem is that I need to add 2 more columns and in 1 of the new columns I need to show only some accounts, like this:
Account Balance NewColumn1
12110201 1 USD
12110202 1 USD Balance of 12110202
12110204 1 USD
the other one is more challenging because it need to show informacion from a different account, like this:
Account Balance NewColumn1 NewColumn2
12110201 1 USD
12110202 1 USD Balance of 12110202
12110204 1 USD Balance of 2406910000
the first values came from my accounts tables that contain balance from sub accounts, but the value 2406910000 is in fact a sub account value.
Can some of you expers can help me on this? Is it possible?
Please help.hmmmm
let me ask this:
You have multiprovider A
in that u have Chars
Account
Subaccount
Source of subaccount
& Keyfigures
$ amounts
okey now, lets say u want to display the data as follow:
$amount-----newcolumn1
Account----
2244--$2200--
2245--$3200--
bal. of 1234
2246--$4200--
2247--$1200-----bal. of 734
is that what u are asking to display....
if yes, bring Account in Rows
bring $amount in Collumns
add new selection1, in that add $amounts, then add Subaccounts from characteristics
that way it will show $ for subaccount
for e.g. in above case it will show $value for 1234 which is subaccount of 2245.
My question is when you say "Balance of 22140000" what is that you intend to display here....you want to show $ of Balance i.e $45, $56 etc, or
do you want to show Subaccount Number i.e 1234 or
do u want to show specific texts "Balance of 22140000"
my response above was related to this only, what is that you want to show in ur reports?
what is available in ur multiprovider?
if you wanna show specific texts "Balance of 22140000", this cannot be done because you cannot just create texts in Query designers.
If you wanna show specific $ amounts for that subaccount, answer is create restricted keyfigure
if you wanna show Subaccount Number i.e 1234 etc, that means you will have to create Replacement path variable and then replace values of Subaccount number into that column.
Maybe you will not need cell definition then.
i hope you understand what i am trying to explain..
dont hesitate to reply with detailed explaination, and any questions. -
Bex Query showing incorrect data
Hi Experts,
I have a Bex query on an infoset. The infoset is based on Sales Order Line Item DSO and Sales Order Condition DSO. I am refering Net value from Sales Order Line Item DSO. In the query, the values of Net Value is not coming correctly. When i check the value in Sales Order Line Item DSO it shows 100. However, in the query it shows 500. When i checked the infoset, it had 5 records. In each record, the net value was 100. What should i do to get the correct value of Net Value in the query.
Have anyone faced similar problem ?
Please reply as soon as possible.
Thanks,
SaachiHi Sachi,
This is a common problem in infoset.
Sales order line item - SLI say
Sales order condition - SC say.
The value you see in your net value field depends on your join condition in the infoset.
Currently you have join in such a way that 1 record in SLI correspods to 5 records in SLC (this is as per your join condition), hence you see this error. Youcan manupilate your join condition to get the required result, if this is viable.
However, in most cases you may not be able to alleviate the fields defining the join.
Say your sales order and item form the joining fields, then in sales order condition DSO you have 5 records for that sales order and item.
The way you could probably avoid net value getting multiplied 5 times is by using exception aggregation with reference char a characteristic in the query.
The ref char should uniquely identify the 5 sales order item condition lines.
(basic principle - we have to net value/ no of lines in Sales order condition DSO [5 in this case] .)
The problem, however is, whenever you consider uniqueness defining fields, you would look at the keys of DSO, because they define uniqueness. One could have multiple infoobject when defining a DSO key.
So you would'nt be able to define any record with only one particular infoobject(ref char), based on which you could define the exception aggreation.
You could define one more data field in the DSO which is a concatenation of all of its keys and then use it in exception aggreg as a reference char in the query.
One more way is to load data from the two DSO to further cubes to achieve the requirement.
I think, this is the limitation with the infoset.
Please let me know if you find any other solution.
Hope it helps,
Regards,
Sunmit. -
SQL_Monitor for query shows DONE(ERROR) red X but Session still active
Hi. I'm just a developer so I was wondering if someone might be able to answer my question relating to the subject.
Basically I have a query that has been running for quite a while (12H) now. Thats not a problem. However, I'm confused about one thing. When I click on the SQL_Monitor tab for that query within my still Active Session it shows the SQL as having errored out. Nothing for my particular user shows up in V$SESSION_longops either. Its Oracle 11G with EM of same type. I believe that my session is still active as it still seems to be consuming resources. I don't need help optimizing my query, I've already managed to do that. I'd actually just like an answer to the following questions.
How can I tell if a query has really died?
Is it possible that a session will remain active while a query errors out and how could I detect this in my application?
is it possible for a query to be running that does not appear in V$SESSION_LONGOPS (or sql_monitoring in EM which I'm assuming are nearly the same thing)?
Is my only recourse to #2 if possible, to kill the session and start my query again?
Anyways, thanks a lot in advance. (No need to optimize this query as I've got the one that prompted this question down to about 3H and it ran fine.Tom:
Were you able to resolve this problem? I too have a similar problem where I imported the image, went into the shared components of the app, definition, and under logo selected a logo type of 'image', and the logo attributes of #workspace_images#cmclogo.gif
This gets me a box with a red x in it, but no image and no clue what's wrong.
Any help is appreciated! -
Discoverer Report showing Null VS Show SQL query showing results !!!
I created a simple Cross Tab Discoverer report from a custom SQL which has a calculation for balances. The output is giving all null values even though there are balances. The output doesn't seem right. So I copied the query from Tools-->Show SQL and ran the query in the TOAD where I'm showing balances for the report. I don't understand why it is not showing in the discoverer. Please help.
Thanks
Edited by: PA1B on Jan 27, 2010 11:40 AMSorry for late reply.
Below is the Show SQL query. I don't think the query is application dependent. C_1 is my calculation.
SELECT o279709.SEGMENT3 as E279727,
o279709.SEGMENT4 as E279728,
CASE WHEN o279709.CURRENCY_CODE = 'USD' AND o279709.TRANSLATED_FLAG <> 'Y' THEN SUM(o279709.ENDING_BAL) ELSE 0 END as C_1,
GROUPING_ID(o279709.CURRENCY_CODE,o279709.SEGMENT3,o279709.SEGMENT4,o279709.TRANSLATED_FLAG) as GID
FROM ( --Foriegn Entity USD Balances
SELECT B.SEGMENT1,
B.SEGMENT2,
B.SEGMENT3,
(select distinct substr(cat.COMPILED_VALUE_ATTRIBUTES,5,1) from apps.fnd_flex_values cat
where FLEX_VALUE_SET_ID = (select bat.FLEX_VALUE_SET_ID from apps.fnd_id_flex_structures_vl aat, apps.fnd_id_flex_segments_vl bat
where bat.id_flex_code = 'GL#' and
bat.id_flex_code = aat.id_flex_code and
aat.APPLICATION_ID = bat.APPLICATION_ID and
aat.APPLICATION_ID = 101 and
bat.SEGMENT_NAME = 'Prime Account' and
aat.id_flex_num = bat.id_flex_num
and bat.id_flex_num in (select distinct chart_of_accounts_id from apps.gl_code_combinations gat
where gat.code_combination_id = A.code_combination_id))
and cat.flex_value = b.segment3) ACCT_TYPE ,
B.SEGMENT4,
B.SEGMENT5,
B.SEGMENT6,
B.SEGMENT7,
B.SEGMENT8,
B.SEGMENT9,
B.SEGMENT10,
B.SEGMENT11,
B.SEGMENT12,
B.SEGMENT13,
C.NAME,
A.SET_OF_BOOKS_ID,
A.CURRENCY_CODE,A.TRANSLATED_FLAG,
SUM(NVL(A.BEGIN_BALANCE_DR,0) - NVL(A.BEGIN_BALANCE_CR,0)) BEG_BAL,
SUM(NVL(A.PERIOD_NET_DR,0)) DEBITS,
SUM( NVL(A.PERIOD_NET_CR,0)) CREDITS ,
A.PERIOD_NAME,
SUM(NVL(A.BEGIN_BALANCE_DR,0) - NVL(A.BEGIN_BALANCE_CR,0))+ SUM(NVL(A.PERIOD_NET_DR,0) - NVL(A.PERIOD_NET_CR,0)) ENDING_BAL
FROM APPS.GL_BALANCES A ,
APPS.GL_CODE_COMBINATIONS B,
APPS.GL_SETS_OF_BOOKS C
WHERE A.CODE_COMBINATION_ID = B.CODE_COMBINATION_ID
--AND A.PERIOD_NAME = 'SEP-09'
AND C.SET_OF_BOOKS_ID = A.SET_OF_BOOKS_ID
--AND A.TRANSLATED_FLAG <> 'Y'
--AND B.SEGMENT1 = '83101'
--AND B.SEGMENT3 = '14602'
--AND A.SET_OF_BOOKS_ID = 77
--AND A.CURRENCY_CODE = 'USD'
GROUP BY A.CODE_COMBINATION_ID,
B.SEGMENT1,
B.SEGMENT2,
B.SEGMENT3,
B.SEGMENT4,
B.SEGMENT5,
B.SEGMENT6,
B.SEGMENT7,
B.SEGMENT8,
B.SEGMENT9,
B.SEGMENT10,
B.SEGMENT11,
B.SEGMENT12,
B.SEGMENT13,
A.CURRENCY_CODE,
A.TRANSLATED_FLAG,
C.NAME,A.PERIOD_NAME,
A.SET_OF_BOOKS_ID
) o279709
WHERE (o279709.PERIOD_NAME = 'DEC-09')
AND (o279709.SET_OF_BOOKS_ID <> 72)
AND (o279709.SEGMENT12 = '000')
AND (o279709.SEGMENT3 IN ('10101','10301','10502','12001'))
AND (o279709.SEGMENT1 IN ('82901','82902','82903','83001','83003','83201'))
GROUP BY GROUPING SETS(( o279709.CURRENCY_CODE,o279709.SEGMENT3,o279709.SEGMENT4,o279709.TRANSLATED_FLAG ),( o279709.SEGMENT3,o279709.SEGMENT4 ),( o279709.SEGMENT3 ))
HAVING (GROUP_ID()=0)
ORDER BY GID DESC;
Thanks,
PA1
Edited by: PA1B on Jan 29, 2010 12:50 PM
Maybe you are looking for
-
How can I put the contents of an array into a set of write local variable clusters?
I have a set of controls that a user fills in. The controls are clustered by rows, then combined into a 1D array, then written to a file. When I read the file, I want to feed the array back into the clusters with write local variables. Is there a sim
-
hi Suppose I have generated an import PO. In that Basic price is $100. Also I have put 1EGP (Egyptian pound : project is in Egypt) for Customs conditon type and for Freight also put 1 EGP and for both of this , I have assigned different vendor ie cle
-
Poll: What is Your Web Start Project of the Year 2003?
Hi, The Saturn Times announced the nominations for the "Web Start Project of the Year 2003" award today. The line-up includes: * NetX * OpenJNLP * Xito BootStrap * JDistro/Warf * Web Application Launcher (WAL) * Web Start Services Pack * Apollo * Rac
-
Non-scripter attempting a metatagging script
my script is doing everything i want except it is converting all spaces and periods to semicolons in the final metatag and i cannot figure out why. It will be VERY obvious that the attached script is nothing but a bunch of snippets clipped together t
-
Style not receiving all email messages
I recently changed mail-servers. Neither the current nor the previous mail server are in house. We route our in-house email through MS Exchange Server. We do not run BB Enterprise Server so I have set up my BB Style to go directly to the external mai