How to find START and END block number in a datafile?
Hi Guys,
I am trying to use dbverify utility with "start" and "end" flags in it. How can I find the starting block # and ending block # of a datafile. I checked v$datafile query but its not very helpful. Any help would be appreciated.
MM
If you mean used blocks, then check out DBA_EXTENTS
Similar Messages
-
Find start and end execution time of a sql statement?
I am have databases with 10.2.0.3 and 9.2.0.8 on HP UNIX 11i and Windows 200x.
I am not in a position to turn on sql tracing in production environment. Yet, I want to find when a sql statement started executing and when it ended. When I look at v$sql, it has information such FIRST_LOAD_TIME, LAST_LOAD_TIME etc. No where it has information last time statement began execution and when it ended execution.. It shows no of executions, elapsed time etc, but they are cumulative. Is there a way to find individual times (time information each time a sql statement was executed. – its start time, its end time ….)? If I were to write my own program how will I do it?
Along the same line, when an AWR snapshot is shown, does it only include statements executed during that snapshot or it can have statements from the past if they have not been flushed from shared memory. If it only has statements executed in the snapshot period, how does it know when statement began execution?Hi,
For oracle 10g you can use below query to find start and end time, you can see data for last seven days.
select min(to_char(a.sample_time,'DD-MON-YY HH24:MI:SS')) "Start time", max(to_char(a.sample_time,'DD-MON-YY HH24:MI:SS')) "End Time", b.sql_text
from dba_HIST_ACTIVE_SESS_HISTORY a,DBA_HIST_SQLTEXT b where
a.sql_id=b.sql_id
order by 1;
Regards
Jafar -
Problems with replace file name with starting and ending Bates number
When applying Bates numbers to a set of Acrobat pdf files I am unable to replace file names with the starting and ending Bates number. This is important
for me in a legal application.
The Bates numbers are applied to each page of each of file without any problem as required.
The Bates log file indicates that the files have been renamed as I wanted.
I am running Adobe Acrobat Professional 9 with the update to 9.1.9 and Windows XP Service Pack 3 (the last or current service pack)
In all other respects Adobe Acrobat 9 is running to my satisfaction.
Has anyone else had this problem and found a solution?
HRKExonThanks for asking the question, I hadn't heard of Bates numbers before and this gave me a chance to look up something new.
When I googled for ' bates number legal index ' I found this document:
http://www.adobe.com/devnet/acrobat/pdfs/batesnumbering9.pdf
Maybe that will help.
Scott Bonacker CPA
Springfield, MO -
How to retrieve start and end date values from sharepoint 2013
Hi,
How to retrieve start and end date values from new event form of calendar in SharePoint foundation2013
Thanks
Gowri BalaguruHi Srini
Yes i need to have parallel flow for both and in the cube where my reporting will be on monthly basis i need to read these 2 master data and get the required attributes ( considering last/first day of that month as per the requirement).......but i am just wondering this is common scenario....while there are so many threads written for populating 0employee from 0person......don't they have such requirement.....
Thanks
Tripple k -
PowerShell - Get-MessageTrackingReport how to specify start and end time of current process
could you please help me? I need to specify start and end time of current process with Get-MessageTrackingReport command. I know you
can do it with Get-MessageTrackingLog:
$start = (Get-Date).Addhours(-1)
$end = (Get-Date)
Get-MessageTrackingLog -EvenId Receive -Start $start -End $end
But for my purposes I really need to do it with Get-MessageTrackingReport command, so how can I do it?
Thanks in advance!That's not the context you would use
Get-MessageTrackingReport in,
Get-MessageTrackingReport is used to get extra information on messages that you have found in the MessageTracking log using Search-MessageTrackingReport . That's why the most common example you see will look like
$Temp = Search-MessageTrackingReport -Identity "David Jones" -Recipients "[email protected]"
Get-MessageTrackingReport -Identity $Temp.MessageTrackingReportID -ReportTemplate Summary
The most important parameter for that cmdlet and the reason it won't work like your trying to use it is the
Identity ""The Identity parameter specifies the ID of the message tracking report ID to retrieve.You should run the Search-MessageTrackingReport cmdlet
to find the message tracking report ID for the specific message you're tracking, and then pass the value of the MessageTrackingReportID field
to this parameter." see http://technet.microsoft.com/en-us/library/dd351082%28v=exchg.150%29.aspx
It's more appropriate to use Get-MessageTrackingLog when you want to search the log based on time or use
Search-MessageTrackingReport and then limit the results this returns before you pass the MessageTrackingReportId to get-MessageTrackingReport
Cheers
Glen -
How to get start and end time of an ESB instance in SOA 10.1.3.4
Hi All,
I am using soa 10.1.3.4 and want to track the esb instance start and end time. (For example, in case of bpel we can query the cube instance table to get creation and modify time of an instance. )
How to get that in esb?
Thank you.
Regards,
SatishHi Satish
You may enable instance tracking option on the ESB Console and track the instances audit information and also from the logs(log.xml) when ESB loggers are set to DEBUG mode.
Regards
A -
0Person to 0employee loading, how to handle start and end date
Hi
I need help on some basic understanding of time dependent master data object.
In my scenario i am loading 0employee and 0Person from R/3. I need to update 0employee from 0person.
0employee
BEGDA ENDDA PERNR Position....................So many fields
10.10.2001 10.10.2004 8000123 Associate
11.10.2004 10.10.2008 8000123 Consultant
11.10.2008 31.12.9999 8000123 Senior Consultant
0Person
BEGDA ENDDA PERNR City....................So many fields
10.10.2001 10.10.2003 8000123 Singapore
11.10.2003 10.10.2007 8000123 Tokyo
11.10.2007 31.12.9999 8000123 Newyork
As the begining and end date are different i can't simply read City from 0person into 0employee. If i go for checking the city for the start and end date in 0employee, i will get multiple records ( If try to get city for 0employee's first record, i will get 2 city Singapore and Tokyo).
Please help me out how to handle this ...... i think i am missing somelink somewhere
Thanks
Tripple kHi Srini
Yes i need to have parallel flow for both and in the cube where my reporting will be on monthly basis i need to read these 2 master data and get the required attributes ( considering last/first day of that month as per the requirement).......but i am just wondering this is common scenario....while there are so many threads written for populating 0employee from 0person......don't they have such requirement.....
Thanks
Tripple k -
How to make start and end curve pieces of selected tab transparent in custom theme in FF33?
I created my own theme using a background image but it seems I cannot code it right in browser.css to make the start and end curve pieces of selected tab transparent. They remain colored, I guess using the operating system's (which is Win XP) dialog color. The middle piece is fine, though, as well as the hovering.
I built my theme based on https://developer.mozilla.org/en-US/docs/Building_a_Theme but customised it.
Your answer would be highly appreciated!
Best regards,
ChaperonThere is a Theme Development forum over here - http://forums.mozillazine.org/viewforum.php?f=18&sid=8c2f1ca97805f897689772e80e351023
You'll need to register and login to that website, which isn't part of Mozilla Support, but far more theme developers hang out over there then what we get here. -
How to return start and end time in Unix epoch format
Hi: I have a integer field (utime) in a table that stores the UNIX epoch time for a record. Every sunday around 2:00AM, I am running a query which should return records from last week. I want my condition to have the following in it's where
WHERE utime between
(convert sysdate-7 12:00AM to Unix time)
AND
(convert yesterday 11:59PM to Unix time)
Can someone help me create this convert?
Thanks
RayYes, you seem to have worked out the logic of the expression correctly. Though, in your earlier post you had said that you want records within the range:
WHERE utime between
(convert sysdate-7 12:00AM to Unix time)
AND
(convert yesterday 11:59PM to Unix time)But now you are adding 14400 (4hrs) and deducting 72000 (20hrs) in your expression
SELECT * from TABLE
WHERE utime between
((TRUNC(SYSDATE,'DD')-TO_DATE('01/01/1970','MM/DD/YYYY'))*(24*60*60))+14400 AND
((TRUNC(SYSDATE-6,'DD')-TO_DATE('01/01/1970','MM/DD/YYYY'))*(24*60*60))-72000;Which makes your new condition to be:
WHERE utime between
(convert sysdate 04:00AM to Unix time)
AND
(convert sysdate-7 04:00AM to Unix time)
Are you sure you need records from 4am-to-4am and not midnight-to-midnight? And yes, with BETWEEN condition you need to use expression '<low-value> AND <high-value>' and not '<high-value> AND <low-value>'!
Besides this,
1. You might want to use bind variables rather than hard-coded expressions in your statement. Infact your expression uses SYSDATE, so Oracle would need to get current SYSDATE for each row to evaluate the expression. Which is going to have its impact on performance. As your start-time and end-time values are not dependent on table data maybe you could have a code like this (assuming it is PLSQL code):
start_time constant number := (convert sysdate-7 12:00AM to Unix time);
end_time constant number := (convert yesterday 11:59PM to Unix time);
<DML or Cursor with condition>
WHERE utime between start_time and end_time;
2. You said that your table already has values in unix-epoch-time in column 'utime'. How are these values inserted in the first place? Is there a function in your application that converts any given time to unix-epoch-time? Is yes, then use that in your code.
3. If such a function does not exists, than rather than using hard-coded expressions it might be a good idea to create new functions for converting to and from unix-epoch-time and to get current unix-epoch-time from server.
Using a function in the above case:
start_time constant number := f_convert_to_unix_time( trunc( sysdate-7 ));
end_time constant number := f_convert_to_unix_time( trunc( sysdate )) - 1;
<DML or Cursor with condition>
WHERE utime between start_time and end_time;
And lastly, some of us might not know about Unix time, so here is a useful link http://en.wikipedia.org/wiki/Unix_time -
Hi All,
I need to get the start date and end date of a month by passing parameter like 'MAy-2011'
Result should be start date - 01-MAY-2011 and end date - 31-MAY-2011
thnxsI did the documentation drill down for you :
http://tahiti.oracle.com/
http://www.oracle.com/pls/db112/homepage?remark=tahiti
http://www.oracle.com/pls/db112/portal.all_books
http://www.oracle.com/pls/db112/portal.all_books#index-SQL
http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/toc.htm
http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/functions.htm#i1482196
http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/functions002.htm#i88891
from here on you should be able to find a solution on yout own. -
How to find first and last day of last month?.
Hello,
I am using Crystal Report XI.
Reports will be generated on first of every month for
previous month. I want to find start and end date of previous month
dynamic.
For august, Start date is July 1st and End date July 31st.
For September, start date is Aug 1st and Aug 31st.
How can i get first of previous month as start date and last
day of the previous month as end date?.
Same kind of thing I want to do for future report ..find next
month start date and end date.
ThanksAdomacro,
you could do a function, like this
<cffunction name="getReportdates" returntype="struct"
hint="Given an arbitrary month and year, the function returns a
structure containing the first and last day of the previous
month">
<!--- Take current month and current year as the default
--->
<cfargument name="mnth" type="string" required="No"
default="#monthAsString(month(now()))#">
<cfargument name="yr" type="numeric" required="No"
default="#year(now())#">
<cfset firstDayOfGivenMonth = parseDateTime("1 " &
arguments.mnth & " #arguments.yr#")>
<cfset lastDayOfPreviousMonth =
dateAdd("d",-1,firstDayOfGivenMonth)>
<cfset numberOfDaysOfPreviousMonth =
daysInMonth(lastDayOfPreviousMonth)>
<cfset firstDayOfPreviousMonth =
dateAdd("d",-#numberOfDaysOfPreviousMonth#,firstDayOfGivenMonth)>
<cfset reportDates = structNew()>
<cfset reportDates.firstDayOfPreviousMonth =
firstDayOfPreviousMonth>
<cfset reportDates.lastDayOfPreviousMonth =
lastDayOfPreviousMonth>
<cfreturn reportDates>
</cffunction>
<!--- Example usage --->
<p>
Given month: <strong>March
2004</strong><br>
begin date:
<cfoutput>#dateFormat(getReportdates('March',2004).firstDayOfPreviousMonth,"d
mmm yyyy")#</cfoutput><br>
end date:
<cfoutput>#dateFormat(getReportdates('March',2004).lastDayOfPreviousMonth,"d
mmm yyyy")#</cfoutput><br>
</p>
<p>
Given month: <strong>August
2007</strong><br>
begin date:
<cfoutput>#dateFormat(getReportdates('August',2007).firstDayOfPreviousMonth,"d
mmm yyyy")#</cfoutput><br>
end date:
<cfoutput>#dateFormat(getReportdates('August',2007).lastDayOfPreviousMonth,"d
mmm yyyy")#</cfoutput><br>
</p> -
How to find first and last day of previous month?.
Based on current month, I want to find start and end day of
previous month.
For example,
For august, Start date is July 1st and End date July 31st.
How can i get first of previous month as start date and last
day of the previous month as end date?.
Same way,
i want to find start date of current month and end date of
next month.
Example:
For august,
i want to get start date, august 1st and end date : september
30.
How can i do this from current date or now().
I am looking for best and easy way to find start and end
dates..
Thanks<cfset today = now()>
<cfset firstOfThisMonth = createDate(year(today),
month(today), 1)>
<cfset lastOfNextMonth = dateAdd("d", -1, dateAdd("m", 2,
firstOfThisMonth))>
<cfoutput>
today = #today#<br>
firstOfThisMonth = #firstOfThisMonth#<br>
lastOfNextMonth = #lastOfNextMonth#<br>
</cfoutput>
Edit - To find the start and end day of previous month, get
the first of THIS month. Use Subtract 1 month ("m") to get the
start date. Subtract 1 day ("d") to get the end date. -
What parameters determine Planned order production start and end dates?
Greetings
We are using the graphical planning table @ MF50 to firm Planned Orders (Basically checking off "Firm Order" field within the Planned Order). We are on ECC 6.0
Whenever I backflush, the production start and end dates get overwritten (The Basic dates do not change).
I would like to prevent this. Can someone advise me on what parameter controls how the production start and end dates getting changed?
Thank you
HanarinHi,
Calculating production dates ( Lead time scheduling) are explained in detail in the SAP help URL as below:
If "Automatci Scheduling indicator" is set in the customizing for scheduling parameters then after every change relevant to scheduling, the production order is also automatically rescheduled before saving.
You need to check these settings.
regards
Datta -
How to find the start and ending dates of a quarter of a particular fiscal
Hi Experts,
I need a function mudule which returns starting and ending date s of a particular quarter of a particular fiscal year .
For Example: if pass 1 quarter and 2002 or 2 quarter 2002 it has to give me the star and end dates of that particular quarter na d fiscal year.
Please help me which is urgent for me.Hi Kishan thanks for reply.
But given function module the 2nd one is full but it is giving me the calender year dates but i need fiscal yea dates.
fro example: if i pass 1 st quarte and 2006 it is to give me the 1st-april to 30-jun2006.
And need this quater starting date and ending date for as per USA fiscal year calender.
If u get any idea plz let me know.
thanks.
Dashmantha. -
XML Publisher pdf output need each page wise start and end number
Hi ,
I have xml publisher out put in PDF. Now i need on each page header and detail part.
In header for each page it should repeat and should be print the min and maximam number of the columns.
I mean in the header start and end number of the column value for that particular page.
I did many ways but there is no luck.
Can you please suggest me how to do.
Thanks
Sampathpls give me reply on this if any body have the answer
Maybe you are looking for
-
Consulta de status de lote: erro de sistema PI
Pessoal, bom dia. Em alguns casos ocorre erro de comunicação na consulta do status do lote. Após o GRC enviar o lote pra SEFAZ, ele fica consultando o status do lote até n vezes (conforme atualizado nas configurações do lote no monitor do GRC), certo
-
Hi everyone, kind of an odd problem I've started having today. DMG's mount fine but don't open in a window any more. For instance, if I wanted to install an app and it was a DMG file i would double click it, it would mount and I would see a window wi
-
Forcing Black and White in JPEG
HI, I must output a jpeg with only 2 colors 000000 and FFFFFF I've done everything I can think of... no anti-aliasing..feathering...... however... when i save as jpeg.. enevitably i end up with a few pixels at 010101 and 020202 instead of 000000. any
-
WebLogic Server 7.0 and MS SQL Server 2000
Hi, I'm trying to create a connection pool in WebLogic Server 7.0 for MS SQL Server 2000, but I always get the following error message: <Error> <JDBC> <001060> <Cannot startup connection pool "mcp-ConnectionPool " weblogic.common.ResourceException: w
-
Is it possible to open a numeric link instead of calling it?
When you click on a numeric link in the web browser it tries to dial it, even if it's not a phone number (even when it doesn't look anything like a phone number, although I guess it's hard to tell with international numbers.) There seems to be no opt