Query to display time gap information
Question
How do you produce an hourly view of time, based on 2 dates?
Script to create demo table and data
create table komponenter ( komp_id number, issue_begin date, issue_end date);
declare
big_bang_tim date := to_date('05-05-2011 13:12:11', 'DD-MM-YYYY HH24:MI:SS');
begin
insert into komponenter values (1, big_bang_tim - 4.52, big_bang_tim - 4.51);
insert into komponenter values (1, big_bang_tim - 4.46, big_bang_tim - 4.41);
insert into komponenter values (1, big_bang_tim - 4.38, big_bang_tim - 4.21);
commit;
end;
Query:
What I'm trying to do is get information about how much time of every hour, an issue has been "active". So from the data above, the following output is what I'm trying to get:
<pre>
komp_id day_hour issue_activity
====== =========== ==================
1 01-05-2011 00 14 minutes and 24 seconds
1 01-05-2011 01 0 minutes
1 01-05-2011 02 50 minutes and 13 seconds
1 01-05-2011 03 21 minutes and 47 seconds
1 01-05-2011 04 55 minutes and 01 seconds
1 01-05-2011 05 60 minutes
1 01-05-2011 06 60 minutes
1 01-05-2011 07 60 minutes
1 01-05-2011 08 9 minutes and 47 seconds
1 01-05-2011 09 0 minutes
1 01-05-2011 10 0 minutes
</pre>
Hi,
Welcome to the forum!
Here's one way:
WITH all_hours AS
SELECT TO_DATE ( '01-05-2011 00'
, 'DD-MM-YYYY HH24'
) + ( (LEVEL - 1)
/ 24
) AS hour_begin
FROM dual
CONNECT BY LEVEL <= 11
, got_seconds AS
SELECT k.komp_id
, h.hour_begin
, ROUND ( SUM ( GREATEST ( ( LEAST (k.issue_end, h.hour_begin + (1 / 24))
- GREATEST (k.issue_begin, h.hour_begin)
, 0
)* 24 * 60 * 60
) AS seconds
FROM komponenter k
CROSS JOIN all_hours h
GROUP BY k.komp_id
, h.hour_begin
SELECT komp_id
, TO_CHAR ( hour_begin
, 'DD-MM-YYYY HH24'
) AS day_hour
, TRUNC (seconds / 60) || ' minutes'
|| CASE
WHEN MOD (seconds, 60) > 0
THEN ' and ' || MOD (seconds, 60)
|| ' seconds'
END AS issue_activity
FROM got_seconds
ORDER BY komp_id
, hour_begin
;Output:
` KOMP_ID DAY_HOUR ISSUE_ACTIVITY
1 01-05-2011 00 14 minutes and 24 seconds
1 01-05-2011 01 0 minutes
1 01-05-2011 02 50 minutes and 13 seconds
1 01-05-2011 03 21 minutes and 47 seconds
1 01-05-2011 04 55 minutes and 1 seconds
1 01-05-2011 05 60 minutes
1 01-05-2011 06 60 minutes
1 01-05-2011 07 60 minutes
1 01-05-2011 08 9 minutes and 47 seconds
1 01-05-2011 09 0 minutes
1 01-05-2011 10 0 minutesThe approach is similar to Nicosa's, but this shows the hours with 0 minutes, as you requested.
Similar Messages
-
Bex Query timestamp InfoObjects does not display time in Webi
A BW InfoObject, defined as NUMC14 (TIMES), will display data like "09/13/2011 13:40:26" in a Bex Analyzer query.
How do you get this type of display in Webi? Currently, my webi report (based on the Bex query connection) displays the field like "09/13/2011 13"Hello,
any ideas? Any additional information needed?
Best Regards,
Hannes -
How to display time took executed on a query.
hi,
i have a long running query, and don't have dba access.
how to show the time it took from the query to display after executing a query?user1035690 wrote:
great, how come the set timing off has no effect on my SQL developer?
i can't set timing off (or on).
thanks.Because SQLDeveloper is not SQLPLUS?
That's like asking why does my motorbike have 2 wheels when my car has 4 ... they're different products :) -
Query taking long time for EXTRACTING the data more than 24 hours
Hi ,
Query taking long time for EXTRACTING the data more than 24 hours please find the query and explain plan details below even indexes avilable on table's goe's to FULL TABLE SCAN. please suggest me.......
SQL> explain plan for select a.account_id,round(a.account_balance,2) account_balance,
2 nvl(ah.invoice_id,ah.adjustment_id) transaction_id,
to_char(ah.effective_start_date,'DD-MON-YYYY') transaction_date,
to_char(nvl(i.payment_due_date,
to_date('30-12-9999','dd-mm-yyyy')),'DD-MON-YYYY')
due_date, ah.current_balance-ah.previous_balance amount,
decode(ah.invoice_id,null,'A','I') transaction_type
3 4 5 6 7 8 from account a,account_history ah,invoice i_+
where a.account_id=ah.account_id
and a.account_type_id=1000002
and round(a.account_balance,2) > 0
and (ah.invoice_id is not null or ah.adjustment_id is not null)
and ah.CURRENT_BALANCE > ah.previous_balance
and ah.invoice_id=i.invoice_id(+)
AND a.account_balance > 0
order by a.account_id,ah.effective_start_date desc; 9 10 11 12 13 14 15 16
Explained.
SQL> select * from table(dbms_xplan.display);
PLAN_TABLE_OUTPUT
| Id | Operation | Name | Rows | Bytes |TempSpc| Cost (%CPU)|
| 0 | SELECT STATEMENT | | 544K| 30M| | 693K (20)|
| 1 | SORT ORDER BY | | 544K| 30M| 75M| 693K (20)|
|* 2 | HASH JOIN | | 544K| 30M| | 689K (20)|
|* 3 | TABLE ACCESS FULL | ACCOUNT | 20080 | 294K| | 6220 (18)|
|* 4 | HASH JOIN OUTER | | 131M| 5532M| 5155M| 678K (20)|
|* 5 | TABLE ACCESS FULL| ACCOUNT_HISTORY | 131M| 3646M| | 197K (25)|
| 6 | TABLE ACCESS FULL| INVOICE | 262M| 3758M| | 306K (18)|
Predicate Information (identified by operation id):
2 - access("A"."ACCOUNT_ID"="AH"."ACCOUNT_ID")
3 - filter("A"."ACCOUNT_TYPE_ID"=1000002 AND "A"."ACCOUNT_BALANCE">0 AND
ROUND("A"."ACCOUNT_BALANCE",2)>0)
4 - access("AH"."INVOICE_ID"="I"."INVOICE_ID"(+))
5 - filter("AH"."CURRENT_BALANCE">"AH"."PREVIOUS_BALANCE" AND ("AH"."INVOICE_ID"
IS NOT NULL OR "AH"."ADJUSTMENT_ID" IS NOT NULL))
22 rows selected.
Index Details:+_
SQL> select INDEX_OWNER,INDEX_NAME,COLUMN_NAME,TABLE_NAME from dba_ind_columns where
2 table_name in ('INVOICE','ACCOUNT','ACCOUNT_HISTORY') order by 4;
INDEX_OWNER INDEX_NAME COLUMN_NAME TABLE_NAME
OPS$SVM_SRV4 P_ACCOUNT ACCOUNT_ID ACCOUNT
OPS$SVM_SRV4 U_ACCOUNT_NAME ACCOUNT_NAME ACCOUNT
OPS$SVM_SRV4 U_ACCOUNT CUSTOMER_NODE_ID ACCOUNT
OPS$SVM_SRV4 U_ACCOUNT ACCOUNT_TYPE_ID ACCOUNT
OPS$SVM_SRV4 I_ACCOUNT_ACCOUNT_TYPE ACCOUNT_TYPE_ID ACCOUNT
OPS$SVM_SRV4 I_ACCOUNT_INVOICE INVOICE_ID ACCOUNT
OPS$SVM_SRV4 I_ACCOUNT_PREVIOUS_INVOICE PREVIOUS_INVOICE_ID ACCOUNT
OPS$SVM_SRV4 U_ACCOUNT_NAME_ID ACCOUNT_NAME ACCOUNT
OPS$SVM_SRV4 U_ACCOUNT_NAME_ID ACCOUNT_ID ACCOUNT
OPS$SVM_SRV4 I_LAST_MODIFIED_ACCOUNT LAST_MODIFIED ACCOUNT
OPS$SVM_SRV4 I_ACCOUNT_INVOICE_ACCOUNT INVOICE_ACCOUNT_ID ACCOUNT
OPS$SVM_SRV4 I_ACCOUNT_HISTORY_ACCOUNT ACCOUNT_ID ACCOUNT_HISTORY
OPS$SVM_SRV4 I_ACCOUNT_HISTORY_ACCOUNT SEQNR ACCOUNT_HISTORY
OPS$SVM_SRV4 I_ACCOUNT_HISTORY_INVOICE INVOICE_ID ACCOUNT_HISTORY
OPS$SVM_SRV4 I_ACCOUNT_HISTORY_ADINV INVOICE_ID ACCOUNT_HISTORY
OPS$SVM_SRV4 I_ACCOUNT_HISTORY_CIA CURRENT_BALANCE ACCOUNT_HISTORY
OPS$SVM_SRV4 I_ACCOUNT_HISTORY_CIA INVOICE_ID ACCOUNT_HISTORY
OPS$SVM_SRV4 I_ACCOUNT_HISTORY_CIA ADJUSTMENT_ID ACCOUNT_HISTORY
OPS$SVM_SRV4 I_ACCOUNT_HISTORY_CIA ACCOUNT_ID ACCOUNT_HISTORY
OPS$SVM_SRV4 I_ACCOUNT_HISTORY_LMOD LAST_MODIFIED ACCOUNT_HISTORY
OPS$SVM_SRV4 I_ACCOUNT_HISTORY_ADINV ADJUSTMENT_ID ACCOUNT_HISTORY
OPS$SVM_SRV4 I_ACCOUNT_HISTORY_PAYMENT PAYMENT_ID ACCOUNT_HISTORY
OPS$SVM_SRV4 I_ACCOUNT_HISTORY_ADJUSTMENT ADJUSTMENT_ID ACCOUNT_HISTORY
OPS$SVM_SRV4 I_ACCOUNT_HISTORY_APPLIED_DT APPLIED_DATE ACCOUNT_HISTORY
OPS$SVM_SRV4 P_INVOICE INVOICE_ID INVOICE
OPS$SVM_SRV4 U_INVOICE CUSTOMER_INVOICE_STR INVOICE
OPS$SVM_SRV4 I_LAST_MODIFIED_INVOICE LAST_MODIFIED INVOICE
OPS$SVM_SRV4 U_INVOICE_ACCOUNT ACCOUNT_ID INVOICE
OPS$SVM_SRV4 U_INVOICE_ACCOUNT BILL_RUN_ID INVOICE
OPS$SVM_SRV4 I_INVOICE_BILL_RUN BILL_RUN_ID INVOICE
OPS$SVM_SRV4 I_INVOICE_INVOICE_TYPE INVOICE_TYPE_ID INVOICE
OPS$SVM_SRV4 I_INVOICE_CUSTOMER_NODE CUSTOMER_NODE_ID INVOICE
32 rows selected.
Regards,
Bathula
Oracle-DBAI have some suggestions. But first, you realize that you have some redundant indexes, right? You have an index on account(account_name) and also account(account_name, account_id), and also account_history(invoice_id) and account_history(invoice_id, adjustment_id). No matter, I will suggest some new composite indexes.
Also, you do not need two lines for these conditions:
and round(a.account_balance, 2) > 0
AND a.account_balance > 0
You can just use: and a.account_balance >= 0.005
So the formatted query isselect a.account_id,
round(a.account_balance, 2) account_balance,
nvl(ah.invoice_id, ah.adjustment_id) transaction_id,
to_char(ah.effective_start_date, 'DD-MON-YYYY') transaction_date,
to_char(nvl(i.payment_due_date, to_date('30-12-9999', 'dd-mm-yyyy')),
'DD-MON-YYYY') due_date,
ah.current_balance - ah.previous_balance amount,
decode(ah.invoice_id, null, 'A', 'I') transaction_type
from account a, account_history ah, invoice i
where a.account_id = ah.account_id
and a.account_type_id = 1000002
and (ah.invoice_id is not null or ah.adjustment_id is not null)
and ah.CURRENT_BALANCE > ah.previous_balance
and ah.invoice_id = i.invoice_id(+)
AND a.account_balance >= .005
order by a.account_id, ah.effective_start_date desc;You will probably want to select:
1. From ACCOUNT first (your smaller table), for which you supply a literal on account_type_id. That should limit the accounts retrieved from ACCOUNT_HISTORY
2. From ACCOUNT_HISTORY. We want to limit the records as much as possible on this table because of the outer join.
3. INVOICE we want to access last because it seems to be least restricted, it is the biggest, and it has the outer join condition so it will manufacture rows to match as many rows as come back from account_history.
Try the query above after creating the following composite indexes. The order of the columns is important:create index account_composite_i on account(account_type_id, account_balance, account_id);
create index acct_history_comp_i on account_history(account_id, invoice_id, adjustment_id, current_balance, previous_balance, effective_start_date);
create index invoice_composite_i on invoice(invoice_id, payment_due_date);All the columns used in the where clause will be indexed, in a logical order suited to the needs of the query. Plus each selected column is indexed as well so that we should not need to touch the tables at all to satisfy the query.
Try the query after creating these indexes.
A final suggestion is to try larger sort and hash area sizes and a manual workarea policy.alter session set workarea_size_policy = manual;
alter session set sort_area_size = 2147483647;
alter session set hash_area_size = 2147483647; -
Read / Write Security from Query and Display Templates
When you assign a role to the READ access of the Security tab of either the Query or Display template, this means the user can only view the report on the screen.
My question is...
When you assign a role to the WRITE access of the Security tab of either the Query or Display template, DOES this means the user can enter information on the screen? Or is there another meaning to the WRITE section?Please look at the bottom of this page:
<a href="http://help.sap.com/saphelp_xmii115/helpdata/en/Getting_Started/Template_Editor/Query_Editor.htm">http://help.sap.com/saphelp_xmii115/helpdata/en/Getting_Started/Template_Editor/Query_Editor.htm</a>
Writer Roles is a design time template editor permission to make physical changes to the template itself.
Regards,
Jeremy Good -
SQL Query for real time resource stats
Does anyone know what the query would be to duplicate the real time resource stats page in version 8 or above of UCCX? I need to build a custom web page that displays the same information. I've got all the connectivity to the database just fine and can query it and display information. Just can't figure out what the SQL would be that would extract that information.
Michael,
you can try :
SELECT x.resourceName, t.eventType, x.datetime FROM (SELECT t1.resourceID, t1.resourceName, MAX(t2.eventDateTime) AS datetime FROM Resource AS t1 INNER JOIN AgentStateDetail AS t2 ON t2.agentID = t1.resourceID GROUP BY t1.resourceID, t1.resourceName ) AS x INNER JOIN AgentStateDetail AS t ON t.agentID = x.resourceID AND t.eventDateTime = x.datetime ORDER BY x.resourceName
You will need to translate the eventType into the "readable" status like Talking or Not Ready with an IF or Case statement.
Regards,
Jeroen -
Access to run time type information
Hi,
I am looking for some information on how I can enumerate run time type information (lists of properties and methods) from within LabVIEW. For instance, I would like to be able to generate a list of controls on a front panel (this I figgured out), and then dynamically generate a list of properties for a selected control. Anyone know how to do this one?
Thanks,
-10Thanks Ankita. I might poke around a bit more. Most languages have hooks into run-time type information for controls and components (like an activeX control) you can query it to get this information and then display it in a property-setting dialog box. There is most likely something like this in LabVIEW too.
-10 -
How can I correct time zone information
Yesterday Europe/Moscow zone was changet from GMT+4 to GMT+3
I've managed to adjust ical4j.jar library replacing Moscow.ics by this very simple zone file
BEGIN:VCALENDAR
PRODID:-//Oracle//Calendar Server//EN
VERSION:2.0
BEGIN:VTIMEZONE
TZID:Europe/Moscow
X-LIC-LOCATION:Europe/Moscow
BEGIN:STANDARD
TZOFFSETFROM:+0300
TZOFFSETTO:+0300
TZNAME:MSK
DTSTART:19700101T000000
END:STANDARD
END:VTIMEZONE
END:VCALENDAR
After init-config for both davserver and Convergence this jar file is deployed and I see It into
/opt/glassfish3/glassfish/domains/domain1/applications/davserver/WEB-INF/lib/
directory.
Moreover I found modified zoneinfo file into
opt/glassfish3/glassfish/domains/domain1/generated/jsp/davserver/loader_27469283/zoneinfo/Europe/Moscow.ics
I see in the Convegence Options Time Zone Europe Moscow GMT+0300
So far so good.
Bad news when I export calendar via Convergence calendar interface I see in the head of ICS file the following time zone information
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Oracle Corporation/CS 7.0.4.15.0//EN
BEGIN:VTIMEZONE
TZID:Europe/Moscow
X-LIC-LOCATION:Europe/Moscow
BEGIN:STANDARD
TZOFFSETFROM:+0400
TZOFFSETTO:+0400
TZNAME:MSK
DTSTART:19700101T000000
END:STANDARD
END:VTIMEZONE
BEGIN:VEVENT
The offset +0400 is absolutely wrong!
Since I see in convergence all events shifted by one hour back respect to lightning data.
I found a lot of information about how to add time zone alias, but have no info about correction existing time zone.
Any comments are welcome.
Thank you, Monk.
P.S.
Operating system time zone information is right.
Java time zone is updated too.Yes I know about time zone information into VEVENT Object.
Can You provide me URL where I can download plugin you are talking about?
Plugin can be for Firefox or Chrome.
Till now I can only use export calendar button of Convergence Calendar interface.
Here you can find two event
th-17 and th-19 created by Lightning
th-17 - started 17-00
th-19 - started 19-00
According to the Convergence them start at 16-00 and 18-00 respectively.
By the way .Lightning show them correct but fire alarm one hour earlier.
15-45
17-45
Seams that Lightning took wrong time zone information from the server with +4 offset.
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Oracle Corporation/CS 7.0.4.15.0//EN
BEGIN:VTIMEZONE
TZID:Europe/Moscow
X-LIC-LOCATION:Europe/Moscow
BEGIN:STANDARD
TZOFFSETFROM:+0400
TZOFFSETTO:+0400
TZNAME:MSK
DTSTART:19700101T000000
END:STANDARD
END:VTIMEZONE
BEGIN:VEVENT
UID:e22635db-e82a-4422-be31-b2f0adb00c21
DTSTAMP:20141027T125056Z
SUMMARY:th-17
DTSTART;TZID=Europe/Moscow:20141027T170000
DTEND;TZID=Europe/Moscow:20141027T180000
CREATED:20141027T122644Z
LAST-MODIFIED:20141027T125056Z
TRANSP:OPAQUE
X-MOZ-GENERATION:2
X-MOZ-LASTACK:20141027T124511Z
BEGIN:VALARM
DESCRIPTION:Default Mozilla Description
ACTION:DISPLAY
TRIGGER;VALUE=DURATION:-PT15M
END:VALARM
END:VEVENT
BEGIN:VEVENT
UID:d0c3b01f-970b-4d5a-97cc-999f8a3e8e90
DTSTAMP:20141027T144856Z
SUMMARY:th-19
DTSTART;TZID=Europe/Moscow:20141027T190000
DTEND;TZID=Europe/Moscow:20141027T200000
CREATED:20141027T124446Z
LAST-MODIFIED:20141027T144856Z
TRANSP:OPAQUE
X-MOZ-GENERATION:1
X-MOZ-LASTACK:20141027T144856Z
X-MOZ-SNOOZE-TIME:20141027T145356Z
BEGIN:VALARM
DESCRIPTION:Default Mozilla Description
ACTION:DISPLAY
TRIGGER;VALUE=DURATION:-PT15M
END:VALARM
END:VEVENT
X-NSCP-WCAP-ERRNO:0
END:VCALENDAR -
After I publish my video it just plays but there is no indication of how much time is remaining on the video while watching. How do I display this
It is possible, but you have to know 'time' is bit different, depending if you are talking about the 'editors' time or the real time spent by the the trainee. Have a look at this old blog post, that tries to explain:
http://blog.lilybiri.com/display-time-information
Time can show on the TOC (editors time), and if you have a playbar with a progress bar that gives some indication as well, but both for pure linear projects. -
Stopping a Query taking more time to execute in runtime in Oracle Forms.
Hi,
In the present application one of the oracle form screen is taking long time to execute a query, user wanted an option to stop the query in between and browse the result (whatever has been fetched before stopping the query).
We have tried three approach.
1. set max fetch record in form and block level.
2. set max fetch time in form and block level.
in above two method does not provide the appropiate solution for us.
3. the third approach we applied is setting the interaction mode to "NON BLOCKING" at the form level.
It seems to be worked, while the query took long time to execute, oracle app server prompts an message to press Esc to cancel the query and it a displaying the results fetched upto that point.
But the drawback is one pressing esc, its killing the session itself. which is causing the entire application to collapse.
Please suggest if there is any alternative approach for this or how to overcome this perticular scenario.
This kind of facility is alreday present in TOAD and PL/SQL developer where we can stop an executing query and browse the results fetched upto that point, is the similar facility is avialable in oracle forms ,please suggest.
Thanks and Regards,
Suraj
Edited by: user10673131 on Jun 25, 2009 4:55 AMHello Friend,
You query will definitely take more time or even fail in PROD,becuase the way it is written. Here are my few observations, may be it can help :-
1. XLA_AR_INV_AEL_SL_V XLA_AEL_SL_V : Never use a view inside such a long query , becuase View is just a window to the records.
and when used to join other table records, then all those tables which are used to create a view also becomes part of joining conition.
First of all please check if you really need this view. I guess you are using to check if the records have been created as Journal entries or not ?
Please check the possbility of finding it through other AR tables.
2. Remove _ALL tables instead use the corresponding org specific views (if you are in 11i ) or the sysnonymns ( in R12 )
For example : For ra_cust_trx_types_all use ra_cust_trx_types.
This will ensure that the query will execute only for those ORG_IDs which are assigned to that responsibility.
3. Check with the DBA whether the GATHER SCHEMA STATS have been run atleast for ONT and RA tables.
You can also check the same using
SELECT LAST_ANALYZED FROM ALL_TABLES WHERE TABLE_NAME = 'ra_customer_trx_all'.
If the tables are not analyzed , the CBO will not be able to tune your query.
4. Try to remove the DISTINCT keyword. This is the MAJOR reason for this problem.
5. If its a report , try to separate the logic in separate queries ( using a procedure ) and then populate the whole data in custom table, and use this custom table for generating the
report.
Thanks,
Neeraj Shrivastava
[email protected]
Edited by: user9352949 on Oct 1, 2010 8:02 PM
Edited by: user9352949 on Oct 1, 2010 8:03 PM -
Hi All,
I have cloned KSB1 tcode to custom one as required by business.
Below query takes more time than excepted.
Here V_DB_TABLE = COVP.
Values in Where clause are as follows
OBNJR in ( KSBB010000001224 BT KSBB012157221571)
GJAHR in blank
VERSN in '000'
WRTTP in '04' and '11'
all others are blank
VT_VAR_COND = ( CPUDT BETWEEN '20091201' and '20091208' )
SELECT (VT_FIELDS) INTO CORRESPONDING FIELDS OF GS_COVP_EXT
FROM (V_DB_TABLE)
WHERE LEDNR = '00'
AND OBJNR IN LR_OBJNR
AND GJAHR IN GR_GJAHR
AND VERSN IN GR_VERSN
AND WRTTP IN GR_WRTTP
AND KSTAR IN LR_KSTAR
AND PERIO IN GR_PERIO
AND BUDAT IN GR_BUDAT
AND PAROB IN GR_PAROB
AND (VT_VAR_COND).
Checked in table for this condition it has only 92 entries.
But when i execute program takes long time as 3 Hrs.
Could any one help me on this>1.Dont use SELECT/ENDSELECT instead use INTO TABLE addition .
> 2.Avoid using corresponding addition.create a type and reference it.
> If the select is going for dump beacause of storage limitations ,then use Cursors.
you got three large NOs .... all three recommendations are wrong!
The SE16 test is going in the right direction ... but what was filled. Nobody knows!!!!
Select options:
Did you ever try to trace the SE16? The generic statement has for every field an in-condition!
Without the information what was actually filled, nobody can say something there
are at least 2**n combinations possible!
Use ST05 for SE16 and check actual statement plus explain! -
Bex report doesn't display full text information......
Hi Experts,
My bex report is not displaying full text information.
I have set that particular infoobject length as 40 and also have selected long text and Long Description in Bex Tab of the InfoObject.
In my DSO the data is available in complete lenght but in my Bex report it just displays half information
Instead of displaying Service Order Released its displays Service Order Rel
Can anyone help me to resolve this issue please.
ThanksHello,
Setting up the BEx Property for Object, is not sufficient enough to display in the query output. You can always overwrite the object level settings in the query designing.
Moreover, when you create a query, system always overwrite your object level settings and apply the query level settings.
Make sure, you have selected Long Text in the query for that characteristic.
- Danny -
Apple TV display times out after a period of time.
Hi TonyWash,
Welcome to the Support Communities!
Is the Apple TV timing out while you are Home Sharing, using Airplay with a device, or working directly from the Apple TV menu? Without knowing the specifics, I'll provide some basic troubleshooting for your Apple TV:
One of the first troubleshooting steps is on Page 26 of the Apple TV User Guide:
manuals.info.apple.com/MANUALS/1000/MA1607/en_US/apple_tv_3rd_gen_setup.pdf
Try resetting your equipment by disconnecting Apple TV, your TV, your wireless networking equipment or base station, and your router
from the power outlet. Wait 30 seconds, and then reconnect everything.
Additional troubleshooting steps can be found here:
Apple TV (2nd and 3rd generation): Troubleshooting Wi-Fi networks and connections
http://support.apple.com/kb/TS4546
I hope this information helps ....
- Judy -
Change displayed time zone within a JSpinner - Help!
Hi,
I have a JSpinner formated to use a date model. The format of the text displayed includes the time zone. The time zone displayed is my local time zone and I would like it to be a different time zone (Etc/UTC). I have tried setting the time zone of date the spinner is intialized with as well as the SimpleDateFormat string passed into the editor, but the spinner still displays the local time zone. I have been searching online and in the forums and while I've found lots of issues with using the date model spinner, I haven't found this particular issue. Any help is greatly appreciated!!
Here is my code:
// Save off the current date and time
GregorianCalendar now = new GregorianCalendar();
// Set the timezone to be UTC
now.setTimeZone(TimeZone.getTimeZone("Etc/UTC"));
// Create a date/time spinner with a default value of the current
// date and time, no upper or lower bounds, and can be
// incremented by the minute.
JSpinner myTimeSpinner = new JSpinner(
new SpinnerDateModel(now, null, null, Calendar.MINUTE)
// This empty method is needed for the MINUTE increment
// to work; otherwise it increments by the first field
// in the display
public void setCalendarField(int field){}
// Define a time format to be used
SimpleDateFormat myTimeFormat =
new SimpleDateFormat("yyyy-MM-dd HH:mm:ss z");
// Set the time zone on the format
myTimeFormat.setTimeZone(TimeZone.getTimeZone("Etc/UTC"));
// Set the editor to use the defined time format
myTimeSpinner.setEditor(
new JSpinner.DateEditor(myTimeSpinner,
myTimeFormat.toPattern()));Thanks again!
NaomiWhen you call myTimeFormat.toPattern(), you are losing the time zone information. You need to instantiate the JSpinner.DateEditor, then call:
editor.getFormat().setTimeZone(TimeZone.getTimeZone("Etc/UTC")) -
Using Materilaized view in a query .. query is taking time????
Hi I have a query :-
SELECT rownum as id, u.last_name, u.first_name,u.phone phone, u.empid,u.supervisor id
FROM emp_view u -- using view
CONNECT BY PRIOR u.empid = u.supervisor_id
START WITH u.sbcuid = 'ph2755';
here emp_view is a view .
------ The above query is taking 3 sec to execute.
Then I created Materialuized view emp_mv and the the MV query is same as emp_view view query.
After this i executed following sql
SELECT rownum as id, u.last_name, u.first_name,u.phone phone, u.empid,u.supervisor id
FROM emp_mv u -- using materialized view
CONNECT BY PRIOR u.empid = u.supervisor_id
START WITH u.sbcuid = 'ph2755';
this query is taking 15 sec to execute..... :(
can anyone please tell me why MV query is taking time????Hi,
In your first case you query a view, meaning that you query the underlying tables. These probably have indexes and stats are updated.
In you second case you query a materialized view, meaning that you query the underlying base table of that mview.
This probably do not have the same indexes to support that query.
But of course, I'm just guessing based on the little information provided.
If you want to take this further, please search for "When your query takes too long" and "How to post a tuning request".
These two threads holds valuable information, not only on how to ask this kind of question, but also how to start solving it on your own.
Regards
Peter
Maybe you are looking for
-
How do I know if the home button is too weak and/or sunken ?
Hello, On Dec 22nd I purchased an IPT5 and while it works just fine, the home button seems to have a very short 'travel' behind it when pressing it. It does appear a little bit 'loose' also just by 'tapping lightly' on it you can feel it does not 'ho
-
KALC (recons) eliminated in ECC 6.0 with New GL?
Hello all, In ECC 6.0, New GL functionality, is transaction KALC, where the reconciliation postings happen between CO-FI eliminated? So the allocations for that matter would not be a Month end activity? All types of allocations and therefore their re
-
Converting .au file to wav
What utility should i use to convert this file? Thanks
-
How do I get the old version of Java back?
A few days ago I was prompted to download the latest Java update, which deleted and disabled Java. I need it for several work-related functions, so I downloaded the latest version - but the latest version doesn't work. Applications I need fail to lau
-
Direct GL posting through Lockbox?
Hello all, We have a scenario where we received checks from non-customers, example sometime Employee send us the check for some of the non-reimbursable expenses or plant made some deposit in to the HQ account or any other kind of non-customer related