How to get full SQL of a SQL HASH_VALUE
Dear all,I have Oracle 9.2.0.8 RAC on AIX. I'm followed by long-running queries by gv$ session_longops and also I use Stats Pack report to find the best CPU / time DB SQL in the time base.
What is the best way of
1 download sql full top HASH of SQL, which is the report of MS.
2. download a SQL running full SQL.
I use views for the same, but not always I have full SQL.
Thanks in advance
Concerning
Published by: user7699943 on October 10, 2011 13:49
Lack on the part of Oracle 9i. Instead, you can query V$ SQLTEXT_WITH_NEWLINES in 9i. Join them based on HASH_VALUE and order per PIECE.
http://download.Oracle.com/docs/CD/B10501_01/server.920/a96536/ch3206.htm#1126550
Tags: Database
Similar Questions
-
How to get full screen windows media center monitor config
units Windows media center config monitor, how to get full screen like boxee and Houla, have an acer 23 monitor
Hello deanallen,
Thanks for posting on the Microsoft answers Forum.
I suggest that you look at the tutorial on the Microsoft Web site for media center. It will help guide you through the configuration steps.
http://www.Microsoft.com/Windows/Windows-Media-Center/learn-more/custom-settings/tutorials/custom-settings-picture.aspxIf this is not answering your question, please let us know that you do not give many details.
Sincerely,
Marilyn
Microsoft Answers Support Engineer
Visit our Microsoft answers feedback Forum and let us know what you think -
How to get the SQL if I get exception
I get this exception and do not know what was the actual sql with the variables of liaison who was executed.
sqlmesg = error in the select query to retrieve the segment associated with a pair of cables: ORA-01006: there is no bind variable
y at - it a way to get the real sql executed so I know what mistake I did.I thought your question was about how to view the SQL statement and bind variables in the exception. The answer to that is to put variables in the exception message.
The root cause of the problem seems to be that your dynamic SQL statement may require 3 or4 variable bind but your USING clause specifies always 4 values if the underlying SQL statement has 3 positions, it will lead to an error.
Justin
-
How to get the sql query result?
Hello
Currently I use LV2012 to connect to an Oracle database server. After the Oracle Express and Oracle ODBC driver facilities/settings made.
I managed to use the SQL command to query the data through my command prompt window.
Now the problem is, how to do the same task in Labview using database connectivity tools?
I have build a VI to query as being attached, but I have no idea of what range to use to get the result of the query.
Please help me ~ ~
Here is a piece of code that I use to test the SQL commands, you can use the part that retrieves the results of sql.
It is also possible to get the rear column headers, but it's for the next lesson!
;-)
-
How to get to SQL schema, not type variable motor?
Today, when I was doing research on DBMS_MVIEW. EXPLAIN_MVIEW, I found the following script. I just run it and it works. However, I do not understand how is the work of SELECT statement? I mean msg_array variable declare in PL/SQL. And how to achieve SQL engine to the msg_array?
As far as I know, it should create the nested table of TYPE SCHEMA to use the nested in SQL table. In the following example, the msg_array said in anonymous pl/sql block.
declare
msg_array SYS. ExplainMVArrayType;
Start
DBMS_MVIEW. EXPLAIN_MVIEW ("MV_M", msg_array);
for rec in (possible, msgno, select capability_name from table msgtxt (cast (msg_array as EXPLAINMVARRAYTYPE)) by seq)
loop
dbms_output.put_line (rec.capability_name |) » '|| Rec.possible |' '|| Rec.msgno |' '|| Rec.msgtxt);
end loop;
end;
Select * from version of v$.
Oracle Database 11 g Release 11.2.0.4.0 - 64 bit Production
Concerning
But you have a schema type: SYS. ExplainMVArrayType
As long as you are in the P/SQL block, it is passed to the SQL engine. You can't just access it from outside of the block.
Concerning
Marcus
-
How to get the SQL query running of af: search?
I use JDeveloper 11.1.2.3.0. I have a page where I've set up an af:query and an array of result. The problem is that I can't get the exact query that is used during the execution of this component in a managed bean method. Is it possible to get the query string that is run within the af: query?
Thank you
Hello
Method of the ViewObject getQuery() returns what you need;
You can replace the executeQueryForCollection(), and prior to calling super, you can print the result of getQuery() method:
public void executeQueryForCollection (rowset Object,
Object [] params,
{int noUserParams)
System.out.println ("SQL =" + getQuery());
call the super method here...
}
-
Hello
I already set date value as below.
SET THE VALUE OF START_TIME = 2011-08-12 09:00
and executes the table based on the defined date as below,
DEFINE END_TIME = 2011-08-12 10:00
Select * from my_table
) but now I want to query the table based on the time,
where
(to_date (Accounting_Start_Time,'yyyy-mm-dd HH24:MI:SS) > = to_date ('& start_time ',' yyyy-mm-dd HH24:MI:SS) and to_date (Accounting_Stop_Time,'yyyy-mm-dd HH24:MI:SS) < = to_date ('& end_time ',' yyyy-mm-dd HH24:MI:SS))
GOLD to_date (Accounting_Start_Time,'yyyy-mm-dd HH24:MI:SS) > = to_date ('& start_time ',' yyyy-mm-dd HH24:MI:SS) and to_date (Accounting_Stop_Time,'yyyy-mm-dd HH24:MI:SS) > = to_date ('& end_time ',' yyyy-mm-dd HH24:MI:SS) and to_date (Accounting_Start_Time,'yyyy-mm-dd HH24:MI:SS) < = to_date ('& end_time ',' yyyy-mm-dd HH24:MI:SS)
GOLD to_date (Accounting_Start_Time,'yyyy-mm-dd HH24:MI:SS) < = to_date ('& start_time ',' yyyy-mm-dd HH24:MI:SS) and to_date (Accounting_Stop_Time,'yyyy-mm-dd HH24:MI:SS) < = to_date ('& end_time ',' yyyy-mm-dd HH24:MI:SS) and to_date (Accounting_Stop_Time,'yyyy-mm-dd HH24:MI:SS) > = to_date ('& start_time ',' yyyy-mm-dd HH24:MI:SS)
GOLD to_date (Accounting_Start_Time,'yyyy-mm-dd HH24:MI:SS) < = to_date ('& start_time ',' yyyy-mm-dd HH24:MI:SS) and to_date (Accounting_Stop_Time,'yyyy-mm-dd HH24:MI:SS) > = to_date ('& end_time ',' yyyy-mm-dd HH24:MI:SS));
Any help please,.Hello
It is not very hard in SQL * more.
First of all, put your query in a script file, like this one, called hour_query.sql:
-- hour_query.sql Show data from my_table for a given time period PROMPT The data below shows the period from &1 to &2 PROMPT SELECT * FROM my_table WHERE accounting_start_time <= '&2' AND '&1' <= accounting_stop_time ;
Parameters & 1 and & 2 are beginning and end of time, for example "2011-08-12 09:00".
Note that this does not use TO_DATE. If you have incorrect strings in columns that must be DATEs, no errors occur.Assuming that hour_query.sql is located on p:\some_dir\, you want another script that runs hour_query.sql 24 times, like this one, which I will call all_hours.sql:
@p:\some_dir\hour_query "2011-08-12 09:00:00" "2011-08-12 10:00:00" @p:\some_dir\hour_query "2011-08-12 10:00:00" "2011-08-12 11:00:00" @p:\some_dir\hour_query "2011-08-12 11:00:00" "2011-08-12 12:00:00" ...
(I just did 3 hours to test. You can easily make that 24 hours).
The following code creates and then runs all_hours.sql:
-- Turn off SQL*Plus features that interfere with raw output SET FEEDBACK OFF SET PAGESIZE 0 SET VERIFY OFF -- Write all_hours.sql SPOOL p:\&some_dir\all_hours.sql WITH got_start_time AS ( SELECT TO_DATE ( '2011-08-12 09:00:00' , 'YYYY-MM-DD HH24:MI:SS' ) AS start_time FROM dual ) SELECT '@p:\some_dir\hour_query "' || TO_CHAR ( start_time + ((LEVEL - 1) / 24) , 'YYYY-MM-DD HH24:MI:SS' ) || '" "' || TO_CHAR ( start_time + ( LEVEL / 24) , 'YYYY-MM-DD HH24:MI:SS' ) || '"' FROM got_start_time CONNECT BY LEVEL <= 3 -- You can make this 24, or any other number ; SPOOL OFF -- Turn on SQL*Plus features turned off earlier SET FEEDBACK ON SET PAGESIZE 50 -- Except VERIFY. leave that OFF while all_hours runs --SET VERIFY OFF -- Run all_hours.sql @p:\some_dir\all_hours.sql SET VERIFY ON
-
Sam S300 - how to get full Supervisor Password Prompt to enter BIOS?
Have a Satellite PRO S300 (PSSB0A - 06500T), who is with Stop 7B BSOD-ing and I go into the solid part of the BIOS so I can reset the boot order to allow me to re - install Win XP.
ESC - F1 puts me right in the small part of Page 1 of the ACPI BIOS configuration. I know the supervisor password! So, how do to a password prompt that will allow me in the two pages of the configuration of the BIOS.
I tried F12 at startup to enter the boot options on the Toshiba splash screen, but it does not work.
I think you hold a key in the market. Try holding the "INS" key to get the supervisor password to appear prompt.
-
How to get full offline installers
How is it that we can't not Full Offline installers for Adobe Shockwave and Adobe Flash?
Many users prefer the offline installation programs I can download on a single machine, then move them
to another (perhaps no internet access) to install. These Stub installers are the
absolute worst idea than some silly programmer never imagined. And when it comes to Adobe
push additional downloads with download of Flash or Shockwave? .. McAffee security analysis
and desired... Most of the people do not want and do not know what they are.
This information seems to be correct. If all goes well, it will stay like this.
Now all I need to do is check months what version I have on the
test page and it will tell me if a newer version is released. Then download and
Install them.
Thank you
-
How to get full screen Fennec for android project source code?
Hello
First of all, I'm sure that it wasn't the right category to post this question, but I couldn't really understand better. I hope that you will be moving to a better place.
We would like to take advantage of Fennec with HTML5 framework by wrapping it in a slightly WebView like you can do it on Android. The native implementation of the webview on Android is proving to be very disappointing so far while Fennec runs seamlessly.
Could you recommend us advice to do it properly the Android app of the Fennec project?
Basically, we want to just be able to call out a new instance of class FennecWebView() in our code (instead of the formerly new WebView()) which will work in full screen and will not call any other things like, bookmark manager, highlight. We want just that scale up to a strict minimum in order to launch our Web framework in a native application thanks to its engine Fennec.
Thank you very much!
BR,
Armand
I've seen some interest from others. It was suggested that they are building a web application manifest.
https://developer.Mozilla.org/en-us/docs/apps/Getting_Started
https://hacks.Mozilla.org/2013/01/join-us-for-Firefox-OS-app-days/
-
Satellite L775-13D: how to get full screen, Blu - ray playback on TV
Hello
I want to play DVD bluray s directly from my laptop to my 42 in LG plasma. I can connect via HDMI, but a small part of the sides and the bottom are cut on the TV. How to make the image plays on my TV without quality loss, as if I had a Blu - Ray player connected to my TV? I hope someone can helpThank you
GeoffWhen this happens peak appears on TV only?
-
What caused this and how to convert back? I have not saved to computer.
I just wanted to THANK EVERYONE for their advice! I fixed this by changing the resolution that I've never touched before, and it worked. Maybe it just fixed itself. I hope that yo all had a CHRISTMAS MERRYY and will have a HAPPY NEW YEAR!
-
How to get full oracle apps R12 help text?
Is it possible that I can get all the help texts of Oracle Apps R12 file .html.Naya,
Download the patch on your local computer file and extract it. You should have all the help files on the spot then.
-
How to get full administrator access?
Hello
I am a 'old' WinXP user who has just installed Win8 Pro and am lost. I am the only user and so an Admin account, but I can't access some files (for example, local settings) when necessary. Can someone tell me what I'm missing? TIA...
Thanks for the reply and the informative explanation. However, I still have the problem of access to the "Local Settings" folder, where program temporary files are often stored. I need to manually delete the temporary files. Perhaps they were moved, too?
Hello
Local settings is a junction, so it is not accessible.
The new location for the locale is the C:\Users\your name\AppData\ Local folder (where your name is the name of the account that you are using).
You will find the Temp folder at this location.
Here are some other common folder junctions and their new location in Windows 8. The junction is bold and the new location is in parentheses.
Application data [C:\Users\your name\AppData\Roaming]
Cookies [C:\Users\your name\AppData\Roaming\Microsoft\Windows\Cookies] Local settings [C:\Users\your name\AppData\Local]
My Documents [C:\Users\your documents]
These last [C:\Users\your name\AppData\Roaming\Microsoft\Windows\Recent]
SendTo [C:\Users\your name\AppData\Roaming\Microsoft\Windows\SendTo Concerning
-
How to get the create view sql statement
I have a technical problem
There is a view in the database, for example "topstudentsview" and sql statement is ' select * student where scores > 90;
My question is how to get the sql statement of the view. I want to get the sql statement in the topstudentsview
Is the equivalent in MS Sql
sp_helptext 'topstudentsview '.
How in Oracle?
Thank youuser10182401 wrote:
My question is how to get the sql statement of the view.Simple answer: use a tool. Almost every development tool will give you an option for this requirement.
In Oracle SQL Developer (free), it's as simple as:
Connect to the database with the user and click on "views".
Select the appropriate view, and then click the SQL tab.
Maybe you are looking for
-
Portfolio &; Apple pay lack of parameters
Just noticed that I couldn't use my credit car. removed to add it again, but could not. Began to scroll to the top and he don parameters without finding the icon Wallet & Apple pay, he is gone. Why? and how do I get that back. My wallet with all othe
-
Hey all,. I hope someone can help me, I have an iPhone 6s +, an iPad 2 Air and a Macbook 12 ". My problem is that my notes on my Macbook are not syncing with my iPhone or iPad. Two mobile devices talk to each other perfectly. I checked my settings >
-
Just had a phone call (at 18:45 on Friday night) saying that my microsoft warranty is now expired, and they wanted me to allow them to connect to my computer remotely to solve some problems that are apparently past in the background. Also, they wante
-
How can I see the cluster move in Disk Defragmenter, when I run the program
How can I see the clusters move in Disk Defragmenter when I run on my old computer I could see and my step dad had told me that anyone who has a computer can display when they run this program
-
Remember - this is a public forum so never post private information such as numbers of mail or telephone! Ideas: You have problems with programs Error messages Recent changes to your computer What you have already tried to solve the problem I have pr