which is wrong with the specified query?
I wrote a query to check the dependence of the indexed columns.but it's not retune all data. I checked individually for columns, and they are used. So why I don't get all the data from the below given query.
Select type, NAME, LINE, TEXT from all_source where upper (text) as
('''%'||' SELECT nom_de_colonne FROM all_ind_columns where table_name in
("WSF_PERSON",
"WSF_CODESET_TYPECODE",
"GTT_STUDENT_REC_UR",
"UPLOAD_ROSTER_LOG",
"WSF_CLASSOFFERING",
"PHCORE_CLASS_WORKGROUP",
"WSF_STUDENTENROLLMENTEVENT",
"WSF_SCHOOLYEAR",
"WSF_CLASSSTUDENT",
"WSF_GRADELEVEL_MASTER",
"NCS4S_ACCOUNT_INFO",
"WSF_EDUCATION_ORGUNIT",
"WSF_PERSONROLE",
WSF_STUDENT ")' | ' %''')
Hello
My guess is that you touch one ' too_many_quotes '...
Try this:
with cols as ( select column_name
from all_ind_columns
where table_name in ('WSF_PERSON',
'WSF_CODESET_TYPECODE',
'GTT_STUDENT_REC_UR',
'UPLOAD_ROSTER_LOG',
'WSF_CLASSOFFERING',
'PHCORE_CLASS_WORKGROUP',
'WSF_STUDENTENROLLMENTEVENT',
'WSF_SCHOOLYEAR',
'WSF_CLASSSTUDENT',
'WSF_GRADELEVEL_MASTER',
'NCS4S_ACCOUNT_INFO',
'WSF_EDUCATION_ORGUNIT',
'WSF_PERSONROLE',
'WSF_STUDENT')
)
select type
, name
, line
, text
from all_source
, cols
where upper(text) like '%'||column_name||'%';
(You can also add a restriction on the OWNER and/or use select distinct...)
Tags: Database
Similar Questions
-
Which is wrong with the supplier portal?
All I got is 503 service is temporarily unavailable since yesterday morning.
Any ideas?
Thank you, God bless you.
Clear your cache or try another browser. It seems to work for me.
-
Estimation of lines wrong with the size of the dynamic partition
Hi all
Version 11.1. RAC 4 knots. I met a sql that runs slowly because the bad LINES estimate. Here's the exectuion its plan.
Please note that the plan is just a part of the plan real exectuion. And I have collected statistics for all the tables involved, so I think that statistics should be updated.
Please see below. CBO estimated that only 640 lines for step 5 and 115 for this SQL totall. But the real result was almost 14K lines.
I don't know if the CBO made this mistake because of the size of the dynamic partition?
But I made another simple test, in which I just used a predict as partition_key =: b. the exectuion plan resemblesPLAN_TABLE_OUTPUT Plan hash value: 2984909170 -------------------------------------------------------------------------------------------------------------------- | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | Pstart| Pstop | -------------------------------------------------------------------------------------------------------------------- | 0 | SELECT STATEMENT | | 115 | 33005 | 2801 (8)| 00:00:09 | | | | 1 | NESTED LOOPS | | 115 | 33005 | 2801 (8)| 00:00:09 | | | | 2 | PARTITION LIST ALL | | 1 | 201 | 1482 (5)| 00:00:05 | 1 | 30 | |* 3 | TABLE ACCESS FULL | OPT_ACCT_ASDN_TYPE2_DIM | 1 | 201 | 1482 (5)| 00:00:05 | 1 | 30 | | 4 | PARTITION LIST ITERATOR| | 640 | 55040 | 1319 (12)| 00:00:05 | KEY | KEY | |* 5 | TABLE ACCESS FULL | OPT_FUND_GEN_SPNDG_FCT | 640 | 55040 | 1319 (12)| 00:00:05 | KEY | KEY | --------------------------------------------------------------------------------------------------------------------
The estimate is more reasonable this time. Can someone show me why CBO made this mistake or why think CBO, there are only 600 lines while in reality there are more than 20 k lines.PLAN_TABLE_OUTPUT Plan hash value: 1115434777 ---------------------------------------------------------------------------------------------------------------- | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | Pstart| Pstop | ---------------------------------------------------------------------------------------------------------------- | 0 | SELECT STATEMENT | | 980K| 80M| 1390 (17)| 00:00:05 | | | | 1 | PARTITION LIST SINGLE| | 980K| 80M| 1390 (17)| 00:00:05 | KEY | KEY | |* 2 | TABLE ACCESS FULL | OPT_FUND_GEN_SPNDG_FCT | 980K| 80M| 1390 (17)| 00:00:05 | KEY | KEY | ----------------------------------------------------------------------------------------------------------------
Best regards
Leon
Published by: user12064076 on March 2, 2011 12:10 AM
Published by: user12064076 on March 2, 2011 01:01
Published by: user12064076 on March 2, 2011 01:11The 'A-Time' is known to be wrong sometimes. However, the "buffers" are correct.
So the reading of the partition of the fact Table was 14Mo scan (1804 puts buffer @8 KB each). Which is really not much.
Yes, the cardinality estimate is off, but for a scan of 14Mo Oracle effort is not very high.Cardinality for the recovery of the fact table is based on the statistics of column for the BUS_UNIIT_SKID and the ACCT_SKID. Because Oracle does not know what BUS_UNIT_SKID and ACCT_SKID values will be extracted from the Dimension table that results in the query, it can't really come up with an accurate estimate - even more if the data are biased.
From the column of table-level statistics, the optimizer knows how many distinct values of BUS_UNIT_SKID exist in the table.
From the column of table-level statistics, the optimizer knows how many distinct values of ACCT_SKID exist in the table.But for a lost combination (BUS_UNIT_SKID, ACCT_SKID) in any unknown partition (the ' unknown' because it does not know the values or the partition during the query optimization) you can calculate an estimate only - the combined cardinality estimate is generally
(somewhat simplified)
Estimated_Number_of_Rows_of_Unknown_Partition X (1/Distinct_BUS_UNIT_SKIDs X 1/Distinct_ACCT_SKIDs) OR Estimated_Number_of_Rows_of_Unknown_Partition X (5% estimate X 5% estimate)
that will be very low.
You can run a plan to explain the "simplified" with the 10053 EVENT query
alter session set events '10053 trace name context forever, level 1'; explain plan for SELECT ...... exit
and display the trace file generated for more information on how Oracle considers the cardinality.
Your problem with the complex query is not likely here. You have to restyle the entire query instead of focusing on the estimation of cardinality for this fact table.
The query can be modified to help identify the Partition - Partition pruning - advance statistics?
The query can be modified in order to carry out the operations in a different sequence - get first performance and the effort of each step of the query Plan.(BTW: the Dimension table reading was the most expensive part of this performance)
Hemant K Collette
Published by: Hemant K Collette on March 3, 2011 11:50
-
What wrong with the search bar?
Firefox is seriously p * ing me off today, what's wrong with the browser, it serves to be one of the best, now an absolute piece of software of the waste processed sound.
Anway my problem is, AFTER upgrading firefox, I can't use my SEARCH BAR to look for anything!
I continue to redirect to this
file:///C:/users/Kamran/appdata/roaming/ToolbarInstaller/ToolbarInstaller/1.0.0.0/Google.html
which is not very useful!
I think it might be interesting to switch to google chrome and get rid of that junk!
Edited by a moderator because of the language. See the rules and lines guidelines .
Hi, I did what you said and disabled all add ons and one allowed them and managed to make it work. It was the 'googlebar update"add that I disabled it and everything went back to normal
Thank you very much
-
Count (*) with the nested query
Hello
I have a question about the count (*) with the nested query.
I have a table T1 with these columns:
Number of C1
Number of C2
Number of C3
Number of C4
Number of C5
(The type of each column is not relevant for example).
This query:
Select C1, C2, C3, C4
from T1
Group C1, C2
It is not correct becausa C3 and C4 are the columns specified in the GROUP BY expression.
If you run this query:
Select count (*)
(select C1, C2, C3, C4
from T1
Group C1, C2)
I don't have an error message (properly, the result is the number of records).
Why?
Thank you.
Best regards
Lucabecause the optimizer rewrites as
SELECT COUNT(*) FROM T1 GROUP BY C1, C2
G.
Edited by: g. March 1, 2011 09:19
-
I El capitan, but stopped opening safari says impossible to find something wrong with the application extension
You can open it by accessing it in the Applications folder? If so, you may have a corrupt Dock alias. Click and hold the alias and make it about 1 inch away from the docking station, then release. Then drag the application in the Applications folder in the Dock to create a new alias. When you have a new alias, control - click/Options/keep in Dock.
-
I have a question about the time machine. I recently updated my Quicken 2015 and there was something wrong with the update. Can I come back in all the Quicken file and restore from time Machine before I downloaded the update to do, I need to restore the entire computer?
Yes, you can just restore this file or application. Use Time Machine to back up or restore your Mac - Apple Support
-
'Something wrong with the credentials' sign in error
When I try to recover my gamertag, it says "sorry, but there is something wrong with the credentials you use to connect." How can I fix it?
Hello
Answers has no influence on the XBox or XBox Live must
contact with them.XBox - Support
http://support.Xbox.com/en-us/pages/default.aspxXBox - Contact us (support)
http://support.Xbox.com/en-us/contact-usXBox - Support Forums - and my XBox (top-right)
http://forums.Xbox.com/Xbox technical support phone number
- Toll-free: (800) 4MY-XBOX or (800) 469-9269
XBox LIVE - Service status
http://support.Xbox.com/en-us/Xbox-Live-statusManage the XBox Live account
http://support.Xbox.com/en-us/billing-and-subscriptions/account-management/Xbox-Live-account-managementXBox Live Sign-in problems
http://support.Xbox.com/en-us/billing-and-subscriptions/Windows-Live-ID/Xbox-Live-sign-in==================================================
If you have problems connecting with the Microsoft Account (formerly
Windows Live ID) and then check in this forum. (This thread has been
moved on this forum and a Moderator Microsoft should be along
to help.)Answers - Hotmail, Messenger, and SkyDrive (and all things Windows
Live webcam) - Microsoft - Forum login and logout account.
http://answers.Microsoft.com/en-us/windowslive/Forum/LiveID-signinI hope this helps.
Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="">-><- mark="" twain="" said="" it="">->
-
When I click on any icon in my control panel, a black window opens and C:WINDOWS\system32\rundll32.exe is what's wrong with the system
{Assuming the rundll32.exe file is not found}
See if them can restore the file rundll32.exe:
http://support.Microsoft.com/kb/812340 Ramesh Srinivasan, Microsoft MVP [Windows Desktop Experience] -
After editing an image in windows Photo Gallery can't save the picture. I get a message that tells me that something is wrong with the application. How to fix this problem?
Hello
I suggest you to refer to this link and check if it helps:
http://Windows.Microsoft.com/en-us/Windows-Vista/Windows-Photo-Gallery-frequently-asked-questions
It will be useful.
-
I was wondering if anyone has come across this problem before, who could give advice how to fix them:
Host of pre-production UCS ESXi migration of a Production vCenter on another network (routing in place)
Can ping both directions successfully - from vCenter Prod to the host of the pre-production
no firewall between the two.
902 port is open on the host
Host connects to the pre-production vCenter on the subnet even fine
VCenter production can add different hosts on the same network end
Even with the various guests of ESXi UCS.
ESXi host was completely disconnected and removed from vCenter inherited before attempting to add. No dvswitch physical or virtual.
Then try and add, enter the user name and password and get cannot communicate with the specified host.
Thank you
The solution to this. Used ESX host 5.5 3B (3248547) update that disables SSLv3. (Ref: VMware ESXi 5.5 updated Notes version 3B) one of the consequences of this is that older versions of vCenter (such as trying to move the host) can not add/connect host.
Enable SSLv3 to spend (port 443) on the resolved host (virtuallyPeculiar: connection A ESXi 5.5 U3b host to vCenter with a lower Version A.)
Note: should not enable SSLv3 to Port 902.
Ref:
The SSLv3 Protocol on vSphere 5.x configuration (2139396) | VMware KB
Many thanks to Suhas Savkoor of virtuallyPeculiar for resolution for this on his website display
-
What is the higher for Mac OS which is compatible with the Creative Suite CS5 Master programs?
What is the higher for Mac OS which is compatible with the Creative Suite CS5 Master programs? I use OS 10.6.8.
I think you're at max that he has been tested with:
Adobe - Creative Suite 5 Master Collection: System requirements
Later versions may or may not work.
-
Cannot, sign, only get a white screen, is there something wrong with the application?
[Duplicate message deleted... post the same question more than once is confusing... MOD]
[This is an open forum, not a direct line to Adobe support... you have to wait a response]
WHITE cloud screen http://forums.adobe.com/message/5484303 can help
- and step by step http://forums.adobe.com/thread/1440508?tstart=0
- and http://helpx.adobe.com/creative-cloud/kb/blank-white-screen-ccp.html
-
Hi, I tried to download the trial version free photoshops and after I sign in I get this pop up message saying ' unable to reach adobe servers please check your firewall settings ", I checked them and there is nothing wrong with the firewall, is there a problem with the adobe servers? can someone help me?
Please try the steps mentioned in: https://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html
-
Parameters of the obsolete system with the specified values:
Hello
I'm in the alerts log below:
Parameters of the obsolete system with the specified values:
REMOTE_OS_AUTHENT
It IS this setting is suppotable in 11G and also how can I remove it from SP. with bounce of the instance.
Thank you...(1) it is frowned upon in 11 g such as er your alert log message. http://docs.Oracle.com/CD/B28359_01/server.111/b28320/initparams199.htm
(2) define it in your spfile false who will return to the default value. This cannot be changed dynamically and you will need to restart your instance.
alter system set remote_os_authent=false scope=spfile;
Maybe you are looking for
-
When I make a change to my details, it won't stay on my phone. It always goes back to the old information. I have a lot of contacts and need to change the numbers. Help, please!
-
Finder is slow or unresponsive
I have a huge problem with the Finder on my iMac (late 2012). Finder does not often respond very slowly. It looks like it all started there, maybe after the last update of El Capitan weeks. I use Finder in combination with iCloud (by car), may be cau
-
Hi all, I have to create multiple instances of a VI using VI server method. I put the 'incoming' of the VI client properties. If I call the VI client under the name sub - VI I can create N instances without any problem. But if I use the VI server met
-
blue screen on screen start/start for a few seconds
As noted above, this blue screen appears on the start screen, with all the icons including the lower tray. This blue screen disappears in 6 seconds approximately and snaps in normal mode at a glance. I remember the dreaded blue screen of yester yea
-
It's the other, I get like this, returned the first. This is a whole new AXC-115-UR20. I press the power button and I get a continuous long beep, display lights never, ever computer of messages. Monitor, keyboard and mouse are connected.