Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Determine process of index build - HOW
Content-Type: text/plain
This is a query I build to see this, midnight Saturday
Comment welcome
column "% Done" format 999.99
column opname format a15
column sql_text format a70
column "T Left" format 99999
select
a.sid, (a.sofar/a.totalwork)*100 "% Done", to_char(a.last_update_time, 'HH24:MI:SS'), a.username, a.time_remaining "T Left", a.opname , s.sql_text
George
You Have The Obligation to Inform One Honestly of the risk, And As a Person
You Are Committed to Educate Yourself to the Total Risk In Any Activity!
Once Informed & Totally Aware of the Risk, Every Fool Has the Right to Kill
or Injure Themselves as They See Fit!
-----Original Message-----
Sent: 30 September 2002 14:38 PM
To: Multiple recipients of list ORACLE-L
v$session_longops .... select with last_update_time desc and use the sid ...
it is pretty cool .. it will also tell you for "current operation" how many
seconds are remaining.
Raj
QOTD: Any clod can have facts, but having an opinion is an art!
This message contains information intended solely for the addressee, which is confidential or private in nature and subject to legal privilege. If you are not the intended recipient, you may not peruse, use, disseminate, distribute or copy this message or any file attached to this message. Any such unauthorised use is prohibited and may be unlawful. If you have received this message in error, please notify the sender immediately by e-mail, facsimile or telephone and thereafter delete the original message from your machine.
Furthermore, the information contained in this message, and any attachments thereto, is for information purposes only and may contain the personal views and opinions of the author, which are not necessarily the views and opinions of Dimension Data (South Africa) (Proprietary) Limited or its subsidiaries and associated companies ("Dimension Data"). Dimension Data therefore does not accept liability for any claims, loss or damages of whatsoever nature, arising as a result of the reliance on such information by anyone.
Whilst all reasonable steps are taken to ensure the accuracy and integrity of information transmitted electronically and to preserve the confidentiality thereof, Dimension Data accepts no liability or responsibility whatsoever if information or data is, for whatsoever reason, incorrect, corrupted or does not reach its intended destination.
------_=_NextPart_001_01C2687E.3798BD40
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <html xmlns:o=3D"urn:schemas-microsoft-com:office:office" xmlns:w=3D"urn:sc= hemas-microsoft-com:office:word" xmlns:st1=3D"urn:schemas-microsoft-com:off= ice:smarttags" xmlns=3D"http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; charset=3Dus-ascii">
<meta name=3DProgId content=3DWord.Document> <meta name=3DGenerator content=3D"Microsoft Word 10"> <meta name=3DOriginator content=3D"Microsoft Word 10"> <link rel=3DFile-List href=3D"cid:filelist.xml_at_01C2688F.2FFCBDA0"> <title>RE: Determine process of index build - HOW</title> <o:SmartTagType namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"name=3D"time"/>
<w:SpellingState>Clean</w:SpellingState> <w:GrammarState>Clean</w:GrammarState> <w:DocumentKind>DocumentEmail</w:DocumentKind> <w:EnvelopeVis/> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel></w:WordDocument>
</style> <![endif]--> <style> <!--
{font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:1627421319 -2147483648 8 0 66047 0;}/* Style Definitions */
{mso-style-parent:""; margin:0cm; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline; text-underline:single;} a:visited, span.MsoHyperlinkFollowed {color:purple; text-decoration:underline; text-underline:single;} p {mso-margin-top-alt:auto; margin-right:0cm; mso-margin-bottom-alt:auto; margin-left:0cm; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} span.EmailStyle18 {mso-style-type:personal-reply; mso-style-noshow:yes; mso-ansi-font-size:10.0pt; mso-bidi-font-size:10.0pt; font-family:Arial; mso-ascii-font-family:Arial; mso-hansi-font-family:Arial; mso-bidi-font-family:Arial; color:navy;} span.SpellE {mso-style-name:""; mso-spl-e:yes;} span.GramE {mso-style-name:""; mso-gram-e:yes;} @page Section1 {size:612.0pt 792.0pt; margin:72.0pt 90.0pt 72.0pt 90.0pt; mso-header-margin:35.4pt; mso-footer-margin:35.4pt; mso-paper-source:0;} div.Section1 {page:Section1;}
</style> <!--[if gte mso 10]> <style>
{mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman";} </style>
<body lang=3DEN-US link=3Dblue vlink=3Dpurple style=3D'tab-interval:36.0pt'>
<div class=3DSection1>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span style=
=3D'font-size:
10.0pt;font-family:Arial;color:navy'>This is a query I build to see this, <=
/span></font><st1:time
Hour=3D"0" Minute=3D"0"><font size=3D2 color=3Dnavy face=3DArial><span styl=
e=3D'font-size:
10.0pt;font-family:Arial;color:navy'>midnight</span></font></st1:time><font
size=3D2 color=3Dnavy face=3DArial><span style=3D'font-size:10.0pt;font-fam=
ily:Arial;
color:navy'> Saturday<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span style=
=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span style=
=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Comment welcome<o:p></o:p></span></fon=
t></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span style=
=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><span class=3DGramE><font size=3D2 color=3Dnavy face=
=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>column</span></font=
></span><font
size=3D2 color=3Dnavy face=3DArial><span style=3D'font-size:10.0pt;font-fam=
ily:Arial;
color:navy'> "% Done" format 999.99<o:p></o:p></span></font></p>
<p class=3DMsoNormal><span class=3DGramE><font size=3D2 color=3Dnavy face=
=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>column</span></font=
></span><font
size=3D2 color=3Dnavy face=3DArial><span style=3D'font-size:10.0pt;font-fam=
ily:Arial;
color:navy'> <span class=3DSpellE>opname</span> format a15<o:p></o:p></span=
></font></p>
<p class=3DMsoNormal><span class=3DGramE><font size=3D2 color=3Dnavy face=
=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>column</span></font=
></span><font
size=3D2 color=3Dnavy face=3DArial><span style=3D'font-size:10.0pt;font-fam=
ily:Arial;
color:navy'> <span class=3DSpellE>sql_text</span> format a70<o:p></o:p></sp=
an></font></p>
<p class=3DMsoNormal><span class=3DGramE><font size=3D2 color=3Dnavy face=
=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>column</span></font=
></span><font
size=3D2 color=3Dnavy face=3DArial><span style=3D'font-size:10.0pt;font-fam=
ily:Arial;
color:navy'> "T Left" format 99999<o:p></o:p></span></font></p>
<p class=3DMsoNormal><span class=3DGramE><font size=3D2 color=3Dnavy face=
=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>select</span></font=
></span><font
size=3D2 color=3Dnavy face=3DArial><span style=3D'font-size:10.0pt;font-fam=
ily:Arial;
color:navy'><o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span style=
=3D'font-size:
10.0pt;font-family:Arial;color:navy'><span style=3D'mso-tab-count:1'> =
</span><span
class=3DSpellE>a.sid</span>,<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span style=
=3D'font-size:
10.0pt;font-family:Arial;color:navy'><span style=3D'mso-tab-count:1'> =
</span>(<span
class=3DSpellE>a.sofar/a.totalwork</span>)*100 "% Done",<o:p></o:=
p></span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span style=
=3D'font-size:
10.0pt;font-family:Arial;color:navy'><span style=3D'mso-tab-count:1'> =
</span><span
class=3DSpellE>to_<span class=3DGramE>char</span></span><span class=3DGramE=
>(</span><span
class=3DSpellE>a.last_update_time</span>, 'HH24:MI:SS'),<o:p></o:p></span><=
/font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span style=
=3D'font-size:
10.0pt;font-family:Arial;color:navy'><span style=3D'mso-tab-count:1'> =
</span><span
class=3DSpellE>a.username</span>,<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span style=
=3D'font-size:
10.0pt;font-family:Arial;color:navy'><span style=3D'mso-tab-count:1'> =
</span><span
class=3DSpellE>a.time_remaining</span> "T Left",<o:p></o:p></span=
></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span style=
=3D'font-size:
10.0pt;font-family:Arial;color:navy'><span style=3D'mso-tab-count:1'> =
</span><span
class=3DSpellE><span class=3DGramE>a.opname</span></span><span class=3DGram=
E> ,</span><o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span style=
=3D'font-size:
10.0pt;font-family:Arial;color:navy'><span style=3D'mso-tab-count:1'> =
</span><span
class=3DSpellE>s.sql_text</span><o:p></o:p></span></font></p>
<p class=3DMsoNormal><span class=3DGramE><font size=3D2 color=3Dnavy face=
=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>from</span></font><=
/span><font
size=3D2 color=3Dnavy face=3DArial><span style=3D'font-size:10.0pt;font-fam=
ily:Arial;
color:navy'> <span class=3DSpellE>v$session_longops</span> a, <span class=
=3DSpellE>v$session</span>
b, <span class=3DSpellE>v$sqltext</span> s<o:p></o:p></span></font></p>
<p class=3DMsoNormal><span class=3DGramE><font size=3D2 color=3Dnavy face=
=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>where</span></font>=
</span><font
size=3D2 color=3Dnavy face=3DArial><span style=3D'font-size:10.0pt;font-fam=
ily:Arial;
color:navy'> <span class=3DSpellE>a.sid</span> =3D<span class=3DSpellE>b.si=
d</span><o:p></o:p></span></font></p>
<p class=3DMsoNormal><span class=3DGramE><font size=3D2 color=3Dnavy face=
=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>and</span></font></=
span><font
size=3D2 color=3Dnavy face=3DArial><span style=3D'font-size:10.0pt;font-fam=
ily:Arial;
color:navy'> <span class=3DSpellE>b.sql_address</span> =3D <span class=3DSp=
ellE>s.address</span><o:p></o:p></span></font></p>
<p class=3DMsoNormal><span class=3DGramE><font size=3D2 color=3Dnavy face=
=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>and</span></font></=
span><font
size=3D2 color=3Dnavy face=3DArial><span style=3D'font-size:10.0pt;font-fam=
ily:Arial;
color:navy'> <span class=3DSpellE>a.sofar</span> <> <span class=3DSpe=
llE>a.totalwork</span><o:p></o:p></span></font></p>
<p class=3DMsoNormal><span class=3DGramE><font size=3D2 color=3Dnavy face=
=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>order</span></font>=
</span><font
size=3D2 color=3Dnavy face=3DArial><span style=3D'font-size:10.0pt;font-fam=
ily:Arial;
color:navy'> by <span class=3DSpellE>b.sid</span>, <span class=3DSpellE>las=
t_update_time</span><o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span style=
=3D'font-size:
10.0pt;font-family:Arial;color:navy'>/<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span style=
=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span style=
=3D'font-size:
10.0pt;font-family:Arial;color:navy;mso-no-proof:yes'>George</span></font><=
font
color=3Dnavy><span style=3D'color:navy;mso-no-proof:yes'><o:p></o:p></span>=
</font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span style= =3D'font-size:
10.0pt;font-family:Arial;color:navy;mso-no-proof:yes'>_____________________= ___________________________</span></font><fontcolor=3Dnavy><span style=3D'color:navy;mso-no-proof:yes'><o:p></o:p></span>= </font></p>
<p class=3DMsoNormal><st1:PersonName><font size=3D2 color=3Dnavy face=3DAri=
al><span
style=3D'font-size:10.0pt;font-family:Arial;color:navy;mso-no-proof:yes'>G=
eorge
Leonard</span></font></st1:PersonName><font color=3Dnavy><span style=3D'co=
lor:
navy;mso-no-proof:yes'><o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span style=
=3D'font-size:
10.0pt;font-family:Arial;color:navy;mso-no-proof:yes'>Oracle Database
Administrator</span></font><font color=3Dnavy><span style=3D'color:navy;mso=
-no-proof:
yes'><o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span style=
=3D'font-size:
10.0pt;font-family:Arial;color:navy;mso-no-proof:yes'>Dimension Data (Pty) =
Ltd</span></font><font
color=3Dnavy><span style=3D'color:navy;mso-no-proof:yes'><o:p></o:p></span>=
</font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span style=
=3D'font-size:
10.0pt;font-family:Arial;color:navy;mso-no-proof:yes'>(Reg. No. 1987/006597=
/07)</span></font><font
color=3Dnavy><span style=3D'color:navy;mso-no-proof:yes'><o:p></o:p></span>=
</font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span style=
=3D'font-size:
10.0pt;font-family:Arial;color:navy;mso-no-proof:yes'>Tel: (+27 11) 575
0573</span></font><font color=3Dnavy><span style=3D'color:navy;mso-no-proof=
:yes'><o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span style=
=3D'font-size:
10.0pt;font-family:Arial;color:navy;mso-no-proof:yes'>Fax: (+27 11) 576
0573</span></font><font color=3Dnavy><span style=3D'color:navy;mso-no-proof=
:yes'><o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span style=
=3D'font-size:
10.0pt;font-family:Arial;color:navy;mso-no-proof:yes'>E-mail:george.leonard=
@za.didata.com</span></font><font
color=3Dnavy><span style=3D'color:navy;mso-no-proof:yes'><o:p></o:p></span>=
</font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span style=
=3D'font-size:
10.0pt;font-family:Arial;color:navy;mso-no-proof:yes'>Web: <a
href=3D"http://www.didata.co.za">http://www.didata.co.za</a></span></font><=
font
color=3Dnavy><span style=3D'color:navy;mso-no-proof:yes'><o:p></o:p></span>=
</font></p>
<p class=3DMsoNormal><font size=3D3 color=3Dnavy face=3D"Times New Roman"><=
span
style=3D'font-size:12.0pt;color:navy;mso-no-proof:yes'> <o:p></o:p></s=
pan></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span style=
=3D'font-size:
10.0pt;font-family:Arial;color:navy;mso-no-proof:yes'>You Have The Obligati=
on
to Inform One Honestly of the risk, And As a Person</span></font><font
color=3Dnavy><span style=3D'color:navy;mso-no-proof:yes'><o:p></o:p></span>=
</font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span style=
=3D'font-size:
10.0pt;font-family:Arial;color:navy;mso-no-proof:yes'>You Are Committed to
Educate Yourself to the Total Risk In Any Activity!</span></font><font
color=3Dnavy><span style=3D'color:navy;mso-no-proof:yes'><o:p></o:p></span>=
</font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span style=
=3D'font-size:
10.0pt;font-family:Arial;color:navy;mso-no-proof:yes'>Once Informed &
Totally Aware of the Risk, Every Fool Has the Right to Kill or Injure
Themselves as They See Fit!</span></font><o:p></o:p></p>
</div>
<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 face=3DTah=
oma><span
style=3D'font-size:10.0pt;font-family:Tahoma'>-----Original Message-----<br>
<b><span style=3D'font-weight:bold'>From:</span></b> Jamadagni, Rajendra
[mailto:Rajendra.Jamadagni_at_espn.com<span class=3DGramE>] <br>
<b><span style=3D'font-weight:bold'>Sent</span></b></span><b><span
style=3D'font-weight:bold'>:</span></b> 30 September 2002 14:38 PM<br>
<b><span style=3D'font-weight:bold'>To:</span></b> Multiple recipients of l=
ist
ORACLE-L<br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> RE: Determine proce=
ss of
index build - HOW</span></font></p>
<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'><o:p> </o:p>= </span></font></p>
<p style=3D'margin-left:36.0pt'><font size=3D2 face=3D"Times New Roman"><sp=
an
style=3D'font-size:10.0pt'>v$session_longops .... select with last_update_t=
ime
desc and use the sid ... it is pretty cool .. it will also tell you for
"current operation" how many seconds are remaining.</span></font>=
<o:p></o:p></p>
<p style=3D'margin-left:36.0pt'><font size=3D2 face=3D"Times New Roman"><sp=
an
style=3D'font-size:10.0pt'>Raj</span></font> <br>
<font size=3D2><span style=3D'font-size:10.0pt'>___________________________= ___________________________</span></font><br>
</div>
<CODE><FONT SIZE=3D3><BR>
<BR>
***************************************************************************=************<BR>
***************************************************************************= **********<BR> <BR>
</html>
------_=_NextPart_001_01C2687E.3798BD40--
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: George Leonard (ZA) INET: George.Leonard_at_za.didata.com Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Mon Sep 30 2002 - 08:38:23 CDT
![]() |
![]() |