Start time of query
hi all,
How one can find the start time of a query.
v$sql gives only FIRST_LOAD_TIME.
user11232525 wrote:
I am currently using set time on but need to right it down before each query....is there a command line for this once i finish my query to display start time of execution?
If you are using SQL*Plus:
SET TIME ON -- displays timestamp at every prompt
SET TIMING ON -- displays statement elapsed timeFor example:
SQL> SET TIME ON
12:06:55 SQL> SET TIMING ON
12:07:03 SQL> SELECT COUNT(*) FROM DBA_OBJECTS
12:07:18 2 /
COUNT(*)
69354
Elapsed: 00:00:00.81
12:07:19 SQL> SY.
Similar Messages
-
a session is executing a query.I want to know at what time the query has started execution.Its a long running query and not yet finished execution?
Thankx..hi user,
try with this sql.
CREATE OR REPLACE VIEW time ("SCHEMA",
ora_user,
nt_user,
SID,
serial#,
machine,
status,
exec_time,
MIN,
logon_time,
lockwait,
TYPE,
program
AS
SELECT SUBSTR (schemaname, 1, 10) SCHEMA,
SUBSTR (username, 1, 10) ora_user, SUBSTR (osuser, 1, 10) nt_user,
SID, serial#, SUBSTR (machine, 1, 30) machine,
SUBSTR (status, 1, 10) status,
TO_CHAR (FLOOR (last_call_et / 3600), '990') time,
TO_CHAR (FLOOR (MOD (last_call_et, 3600) / 60), '990') MIN,logon_time,
lockwait, TYPE, program
FROM v_$session
WHERE username = ' ' -
Query in timesten taking more time than query in oracle database
Hi,
Can anyone please explain me why query in timesten taking more time
than query in oracle database.
I am mentioning in detail what are my settings and what have I done
step by step.........
1.This is the table I created in Oracle datababase
(Oracle Database 10g Enterprise Edition Release 10.2.0.1.0)...
CREATE TABLE student (
id NUMBER(9) primary keY ,
first_name VARCHAR2(10),
last_name VARCHAR2(10)
2.THIS IS THE ANONYMOUS BLOCK I USE TO
POPULATE THE STUDENT TABLE(TOTAL 2599999 ROWS)...
declare
firstname varchar2(12);
lastname varchar2(12);
catt number(9);
begin
for cntr in 1..2599999 loop
firstname:=(cntr+8)||'f';
lastname:=(cntr+2)||'l';
if cntr like '%9999' then
dbms_output.put_line(cntr);
end if;
insert into student values(cntr,firstname, lastname);
end loop;
end;
3. MY DSN IS SET THE FOLLWING WAY..
DATA STORE PATH- G:\dipesh3repo\db
LOG DIRECTORY- G:\dipesh3repo\log
PERM DATA SIZE-1000
TEMP DATA SIZE-1000
MY TIMESTEN VERSION-
C:\Documents and Settings\dipesh>ttversion
TimesTen Release 7.0.3.0.0 (32 bit NT) (tt70_32:17000) 2007-09-19T16:04:16Z
Instance admin: dipesh
Instance home directory: G:\TimestTen\TT70_32
Daemon home directory: G:\TimestTen\TT70_32\srv\info
THEN I CONNECT TO THE TIMESTEN DATABASE
C:\Documents and Settings\dipesh> ttisql
command>connect "dsn=dipesh3;oraclepwd=tiger";
4. THEN I START THE AGENT
call ttCacheUidPwdSet('SCOTT','TIGER');
Command> CALL ttCacheStart();
5.THEN I CREATE THE READ ONLY CACHE GROUP AND LOAD IT
create readonly cache group rc_student autorefresh
interval 5 seconds from student
(id int not null primary key, first_name varchar2(10), last_name varchar2(10));
load cache group rc_student commit every 100 rows;
6.NOW I CAN ACCESS THE TABLES FROM TIMESTEN AND PERFORM THE QUERY
I SET THE TIMING..
command>TIMING 1;
consider this query now..
Command> select * from student where first_name='2155666f';
< 2155658, 2155666f, 2155660l >
1 row found.
Execution time (SQLExecute + Fetch Loop) = 0.668822 seconds.
another query-
Command> SELECT * FROM STUDENTS WHERE FIRST_NAME='2340009f';
2206: Table SCOTT.STUDENTS not found
Execution time (SQLPrepare) = 0.074964 seconds.
The command failed.
Command> SELECT * FROM STUDENT where first_name='2093434f';
< 2093426, 2093434f, 2093428l >
1 row found.
Execution time (SQLExecute + Fetch Loop) = 0.585897 seconds.
Command>
7.NOW I PERFORM THE SIMILAR QUERIES FROM SQLPLUS...
SQL> SELECT * FROM STUDENT WHERE FIRST_NAME='1498671f';
ID FIRST_NAME LAST_NAME
1498663 1498671f 1498665l
Elapsed: 00:00:00.15
Can anyone please explain me why query in timesten taking more time
that query in oracle database.
Message was edited by: Dipesh Majumdar
user542575
Message was edited by:
user542575TimesTen
Hardware: Windows Server 2003 R2 Enterprise x64; 8 x Dual-core AMD 8216 2.41GHz processors; 32 GB RAM
Version: 7.0.4.0.0 64 bit
Schema:
create usermanaged cache group factCache from
MV_US_DATAMART
ORDER_DATE DATE,
IF_SYSTEM VARCHAR2(32) NOT NULL,
GROUPING_ID TT_BIGINT,
TIME_DIM_ID TT_INTEGER NOT NULL,
BUSINESS_DIM_ID TT_INTEGER NOT NULL,
ACCOUNT_DIM_ID TT_INTEGER NOT NULL,
ORDERTYPE_DIM_ID TT_INTEGER NOT NULL,
INSTR_DIM_ID TT_INTEGER NOT NULL,
EXECUTION_DIM_ID TT_INTEGER NOT NULL,
EXEC_EXCHANGE_DIM_ID TT_INTEGER NOT NULL,
NO_ORDERS TT_BIGINT,
FILLED_QUANTITY TT_BIGINT,
CNT_FILLED_QUANTITY TT_BIGINT,
QUANTITY TT_BIGINT,
CNT_QUANTITY TT_BIGINT,
COMMISSION BINARY_FLOAT,
CNT_COMMISSION TT_BIGINT,
FILLS_NUMBER TT_BIGINT,
CNT_FILLS_NUMBER TT_BIGINT,
AGGRESSIVE_FILLS TT_BIGINT,
CNT_AGGRESSIVE_FILLS TT_BIGINT,
NOTIONAL BINARY_FLOAT,
CNT_NOTIONAL TT_BIGINT,
TOTAL_PRICE BINARY_FLOAT,
CNT_TOTAL_PRICE TT_BIGINT,
CANCELLED_ORDERS_COUNT TT_BIGINT,
CNT_CANCELLED_ORDERS_COUNT TT_BIGINT,
ROUTED_ORDERS_NO TT_BIGINT,
CNT_ROUTED_ORDERS_NO TT_BIGINT,
ROUTED_LIQUIDITY_QTY TT_BIGINT,
CNT_ROUTED_LIQUIDITY_QTY TT_BIGINT,
REMOVED_LIQUIDITY_QTY TT_BIGINT,
CNT_REMOVED_LIQUIDITY_QTY TT_BIGINT,
ADDED_LIQUIDITY_QTY TT_BIGINT,
CNT_ADDED_LIQUIDITY_QTY TT_BIGINT,
AGENT_CHARGES BINARY_FLOAT,
CNT_AGENT_CHARGES TT_BIGINT,
CLEARING_CHARGES BINARY_FLOAT,
CNT_CLEARING_CHARGES TT_BIGINT,
EXECUTION_CHARGES BINARY_FLOAT,
CNT_EXECUTION_CHARGES TT_BIGINT,
TRANSACTION_CHARGES BINARY_FLOAT,
CNT_TRANSACTION_CHARGES TT_BIGINT,
ORDER_MANAGEMENT BINARY_FLOAT,
CNT_ORDER_MANAGEMENT TT_BIGINT,
SETTLEMENT_CHARGES BINARY_FLOAT,
CNT_SETTLEMENT_CHARGES TT_BIGINT,
RECOVERED_AGENT BINARY_FLOAT,
CNT_RECOVERED_AGENT TT_BIGINT,
RECOVERED_CLEARING BINARY_FLOAT,
CNT_RECOVERED_CLEARING TT_BIGINT,
RECOVERED_EXECUTION BINARY_FLOAT,
CNT_RECOVERED_EXECUTION TT_BIGINT,
RECOVERED_TRANSACTION BINARY_FLOAT,
CNT_RECOVERED_TRANSACTION TT_BIGINT,
RECOVERED_ORD_MGT BINARY_FLOAT,
CNT_RECOVERED_ORD_MGT TT_BIGINT,
RECOVERED_SETTLEMENT BINARY_FLOAT,
CNT_RECOVERED_SETTLEMENT TT_BIGINT,
CLIENT_AGENT BINARY_FLOAT,
CNT_CLIENT_AGENT TT_BIGINT,
CLIENT_ORDER_MGT BINARY_FLOAT,
CNT_CLIENT_ORDER_MGT TT_BIGINT,
CLIENT_EXEC BINARY_FLOAT,
CNT_CLIENT_EXEC TT_BIGINT,
CLIENT_TRANS BINARY_FLOAT,
CNT_CLIENT_TRANS TT_BIGINT,
CLIENT_CLEARING BINARY_FLOAT,
CNT_CLIENT_CLEARING TT_BIGINT,
CLIENT_SETTLE BINARY_FLOAT,
CNT_CLIENT_SETTLE TT_BIGINT,
CHARGEABLE_TAXES BINARY_FLOAT,
CNT_CHARGEABLE_TAXES TT_BIGINT,
VENDOR_CHARGE BINARY_FLOAT,
CNT_VENDOR_CHARGE TT_BIGINT,
ROUTING_CHARGES BINARY_FLOAT,
CNT_ROUTING_CHARGES TT_BIGINT,
RECOVERED_ROUTING BINARY_FLOAT,
CNT_RECOVERED_ROUTING TT_BIGINT,
CLIENT_ROUTING BINARY_FLOAT,
CNT_CLIENT_ROUTING TT_BIGINT,
TICKET_CHARGES BINARY_FLOAT,
CNT_TICKET_CHARGES TT_BIGINT,
RECOVERED_TICKET_CHARGES BINARY_FLOAT,
CNT_RECOVERED_TICKET_CHARGES TT_BIGINT,
PRIMARY KEY(ORDER_DATE, TIME_DIM_ID, BUSINESS_DIM_ID, ACCOUNT_DIM_ID, ORDERTYPE_DIM_ID, INSTR_DIM_ID, EXECUTION_DIM_ID,EXEC_EXCHANGE_DIM_ID),
READONLY);
No of rows: 2228558
Config:
< CkptFrequency, 600 >
< CkptLogVolume, 0 >
< CkptRate, 0 >
< ConnectionCharacterSet, US7ASCII >
< ConnectionName, tt_us_dma >
< Connections, 64 >
< DataBaseCharacterSet, AL32UTF8 >
< DataStore, e:\andrew\datacache\usDMA >
< DurableCommits, 0 >
< GroupRestrict, <NULL> >
< LockLevel, 0 >
< LockWait, 10 >
< LogBuffSize, 65536 >
< LogDir, e:\andrew\datacache\ >
< LogFileSize, 64 >
< LogFlushMethod, 1 >
< LogPurge, 0 >
< Logging, 1 >
< MemoryLock, 0 >
< NLS_LENGTH_SEMANTICS, BYTE >
< NLS_NCHAR_CONV_EXCP, 0 >
< NLS_SORT, BINARY >
< OracleID, NYCATP1 >
< PassThrough, 0 >
< PermSize, 4000 >
< PermWarnThreshold, 90 >
< PrivateCommands, 0 >
< Preallocate, 0 >
< QueryThreshold, 0 >
< RACCallback, 0 >
< SQLQueryTimeout, 0 >
< TempSize, 514 >
< TempWarnThreshold, 90 >
< Temporary, 1 >
< TransparentLoad, 0 >
< TypeMode, 0 >
< UID, OS_OWNER >
ORACLE:
Hardware: Sunos 5.10; 24x1.8Ghz (unsure of type); 82 GB RAM
Version 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
Schema:
CREATE MATERIALIZED VIEW OS_OWNER.MV_US_DATAMART
TABLESPACE TS_OS
PARTITION BY RANGE (ORDER_DATE)
PARTITION MV_US_DATAMART_MINVAL VALUES LESS THAN (TO_DATE(' 2007-11-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
LOGGING
NOCOMPRESS
TABLESPACE TS_OS,
PARTITION MV_US_DATAMART_07_NOV_D1 VALUES LESS THAN (TO_DATE(' 2007-11-11 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
LOGGING
NOCOMPRESS
TABLESPACE TS_OS,
PARTITION MV_US_DATAMART_07_NOV_D2 VALUES LESS THAN (TO_DATE(' 2007-11-21 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
LOGGING
NOCOMPRESS
TABLESPACE TS_OS,
PARTITION MV_US_DATAMART_07_NOV_D3 VALUES LESS THAN (TO_DATE(' 2007-12-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
LOGGING
NOCOMPRESS
TABLESPACE TS_OS,
PARTITION MV_US_DATAMART_07_DEC_D1 VALUES LESS THAN (TO_DATE(' 2007-12-11 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
LOGGING
NOCOMPRESS
TABLESPACE TS_OS,
PARTITION MV_US_DATAMART_07_DEC_D2 VALUES LESS THAN (TO_DATE(' 2007-12-21 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
LOGGING
NOCOMPRESS
TABLESPACE TS_OS,
PARTITION MV_US_DATAMART_07_DEC_D3 VALUES LESS THAN (TO_DATE(' 2008-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
LOGGING
NOCOMPRESS
TABLESPACE TS_OS,
PARTITION MV_US_DATAMART_08_JAN_D1 VALUES LESS THAN (TO_DATE(' 2008-01-11 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
LOGGING
NOCOMPRESS
TABLESPACE TS_OS,
PARTITION MV_US_DATAMART_08_JAN_D2 VALUES LESS THAN (TO_DATE(' 2008-01-21 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
LOGGING
NOCOMPRESS
TABLESPACE TS_OS,
PARTITION MV_US_DATAMART_08_JAN_D3 VALUES LESS THAN (TO_DATE(' 2008-02-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
LOGGING
NOCOMPRESS
TABLESPACE TS_OS,
PARTITION MV_US_DATAMART_MAXVAL VALUES LESS THAN (MAXVALUE)
LOGGING
NOCOMPRESS
TABLESPACE TS_OS
NOCACHE
NOCOMPRESS
NOPARALLEL
BUILD DEFERRED
USING INDEX
TABLESPACE TS_OS_INDEX
REFRESH FAST ON DEMAND
WITH PRIMARY KEY
ENABLE QUERY REWRITE
AS
SELECT order_date, if_system,
GROUPING_ID (order_date,
if_system,
business_dim_id,
time_dim_id,
account_dim_id,
ordertype_dim_id,
instr_dim_id,
execution_dim_id,
exec_exchange_dim_id
) GROUPING_ID,
/* ============ DIMENSIONS ============ */
time_dim_id, business_dim_id, account_dim_id, ordertype_dim_id,
instr_dim_id, execution_dim_id, exec_exchange_dim_id,
/* ============ MEASURES ============ */
-- o.FX_RATE /* FX_RATE */,
COUNT (*) no_orders,
-- SUM(NO_ORDERS) NO_ORDERS,
-- COUNT(NO_ORDERS) CNT_NO_ORDERS,
SUM (filled_quantity) filled_quantity,
COUNT (filled_quantity) cnt_filled_quantity, SUM (quantity) quantity,
COUNT (quantity) cnt_quantity, SUM (commission) commission,
COUNT (commission) cnt_commission, SUM (fills_number) fills_number,
COUNT (fills_number) cnt_fills_number,
SUM (aggressive_fills) aggressive_fills,
COUNT (aggressive_fills) cnt_aggressive_fills,
SUM (fx_rate * filled_quantity * average_price) notional,
COUNT (fx_rate * filled_quantity * average_price) cnt_notional,
SUM (fx_rate * fills_number * average_price) total_price,
COUNT (fx_rate * fills_number * average_price) cnt_total_price,
SUM (CASE
WHEN order_status = 'C'
THEN 1
ELSE 0
END) cancelled_orders_count,
COUNT (CASE
WHEN order_status = 'C'
THEN 1
ELSE 0
END
) cnt_cancelled_orders_count,
-- SUM(t.FX_RATE*t.NO_FILLS*t.AVG_PRICE) AVERAGE_PRICE,
-- SUM(FILLS_NUMBER*AVERAGE_PRICE) STAGING_AVERAGE_PRICE,
-- COUNT(FILLS_NUMBER*AVERAGE_PRICE) CNT_STAGING_AVERAGE_PRICE,
SUM (routed_orders_no) routed_orders_no,
COUNT (routed_orders_no) cnt_routed_orders_no,
SUM (routed_liquidity_qty) routed_liquidity_qty,
COUNT (routed_liquidity_qty) cnt_routed_liquidity_qty,
SUM (removed_liquidity_qty) removed_liquidity_qty,
COUNT (removed_liquidity_qty) cnt_removed_liquidity_qty,
SUM (added_liquidity_qty) added_liquidity_qty,
COUNT (added_liquidity_qty) cnt_added_liquidity_qty,
SUM (agent_charges) agent_charges,
COUNT (agent_charges) cnt_agent_charges,
SUM (clearing_charges) clearing_charges,
COUNT (clearing_charges) cnt_clearing_charges,
SUM (execution_charges) execution_charges,
COUNT (execution_charges) cnt_execution_charges,
SUM (transaction_charges) transaction_charges,
COUNT (transaction_charges) cnt_transaction_charges,
SUM (order_management) order_management,
COUNT (order_management) cnt_order_management,
SUM (settlement_charges) settlement_charges,
COUNT (settlement_charges) cnt_settlement_charges,
SUM (recovered_agent) recovered_agent,
COUNT (recovered_agent) cnt_recovered_agent,
SUM (recovered_clearing) recovered_clearing,
COUNT (recovered_clearing) cnt_recovered_clearing,
SUM (recovered_execution) recovered_execution,
COUNT (recovered_execution) cnt_recovered_execution,
SUM (recovered_transaction) recovered_transaction,
COUNT (recovered_transaction) cnt_recovered_transaction,
SUM (recovered_ord_mgt) recovered_ord_mgt,
COUNT (recovered_ord_mgt) cnt_recovered_ord_mgt,
SUM (recovered_settlement) recovered_settlement,
COUNT (recovered_settlement) cnt_recovered_settlement,
SUM (client_agent) client_agent,
COUNT (client_agent) cnt_client_agent,
SUM (client_order_mgt) client_order_mgt,
COUNT (client_order_mgt) cnt_client_order_mgt,
SUM (client_exec) client_exec, COUNT (client_exec) cnt_client_exec,
SUM (client_trans) client_trans,
COUNT (client_trans) cnt_client_trans,
SUM (client_clearing) client_clearing,
COUNT (client_clearing) cnt_client_clearing,
SUM (client_settle) client_settle,
COUNT (client_settle) cnt_client_settle,
SUM (chargeable_taxes) chargeable_taxes,
COUNT (chargeable_taxes) cnt_chargeable_taxes,
SUM (vendor_charge) vendor_charge,
COUNT (vendor_charge) cnt_vendor_charge,
SUM (routing_charges) routing_charges,
COUNT (routing_charges) cnt_routing_charges,
SUM (recovered_routing) recovered_routing,
COUNT (recovered_routing) cnt_recovered_routing,
SUM (client_routing) client_routing,
COUNT (client_routing) cnt_client_routing,
SUM (ticket_charges) ticket_charges,
COUNT (ticket_charges) cnt_ticket_charges,
SUM (recovered_ticket_charges) recovered_ticket_charges,
COUNT (recovered_ticket_charges) cnt_recovered_ticket_charges
FROM us_datamart_raw
GROUP BY order_date,
if_system,
business_dim_id,
time_dim_id,
account_dim_id,
ordertype_dim_id,
instr_dim_id,
execution_dim_id,
exec_exchange_dim_id;
-- Note: Index I_SNAP$_MV_US_DATAMART will be created automatically
-- by Oracle with the associated materialized view.
CREATE UNIQUE INDEX OS_OWNER.MV_US_DATAMART_UDX ON OS_OWNER.MV_US_DATAMART
(ORDER_DATE, TIME_DIM_ID, BUSINESS_DIM_ID, ACCOUNT_DIM_ID, ORDERTYPE_DIM_ID,
INSTR_DIM_ID, EXECUTION_DIM_ID, EXEC_EXCHANGE_DIM_ID)
NOLOGGING
NOPARALLEL
COMPRESS 7;
No of rows: 2228558
The query (taken Mondrian) I run against each of them is:
select sum("MV_US_DATAMART"."NOTIONAL") as "m0"
--, sum("MV_US_DATAMART"."FILLED_QUANTITY") as "m1"
--, sum("MV_US_DATAMART"."AGENT_CHARGES") as "m2"
--, sum("MV_US_DATAMART"."CLEARING_CHARGES") as "m3"
--, sum("MV_US_DATAMART"."EXECUTION_CHARGES") as "m4"
--, sum("MV_US_DATAMART"."TRANSACTION_CHARGES") as "m5"
--, sum("MV_US_DATAMART"."ROUTING_CHARGES") as "m6"
--, sum("MV_US_DATAMART"."ORDER_MANAGEMENT") as "m7"
--, sum("MV_US_DATAMART"."SETTLEMENT_CHARGES") as "m8"
--, sum("MV_US_DATAMART"."COMMISSION") as "m9"
--, sum("MV_US_DATAMART"."RECOVERED_AGENT") as "m10"
--, sum("MV_US_DATAMART"."RECOVERED_CLEARING") as "m11"
--,sum("MV_US_DATAMART"."RECOVERED_EXECUTION") as "m12"
--,sum("MV_US_DATAMART"."RECOVERED_TRANSACTION") as "m13"
--, sum("MV_US_DATAMART"."RECOVERED_ROUTING") as "m14"
--, sum("MV_US_DATAMART"."RECOVERED_ORD_MGT") as "m15"
--, sum("MV_US_DATAMART"."RECOVERED_SETTLEMENT") as "m16"
--, sum("MV_US_DATAMART"."RECOVERED_TICKET_CHARGES") as "m17"
--,sum("MV_US_DATAMART"."TICKET_CHARGES") as "m18"
--, sum("MV_US_DATAMART"."VENDOR_CHARGE") as "m19"
from "OS_OWNER"."MV_US_DATAMART" "MV_US_DATAMART"
where I uncomment a column at a time and rerun. I improved the TimesTen results since my first post, by retyping the NUMBER columns to BINARY_FLOAT. The results I got were:
No Columns ORACLE TimesTen
1 1.05 0.94
2 1.07 1.47
3 2.04 1.8
4 2.06 2.08
5 2.09 2.4
6 3.01 2.67
7 4.02 3.06
8 4.03 3.37
9 4.04 3.62
10 4.06 4.02
11 4.08 4.31
12 4.09 4.61
13 5.01 4.76
14 5.02 5.06
15 5.04 5.25
16 5.05 5.48
17 5.08 5.84
18 6 6.21
19 6.02 6.34
20 6.04 6.75 -
I would like to have the ending times shown on my monthly calendar. As of now, it only shows the start time. The end times show up on the weekly calendar, but I don't want to print from the weekly view.
Hi,
I see two issues,
1. the url is not correct for the image, www.mountjay.com/Home/MountJayDesign.jpg
2. meta property should go in to head section, at the moment, it is under body (if you insert the code as html). go to page properties-> Metadata-> head. Paste this here, and check the site again,
Please let me know if you have any other query. -
How to get process start time from BI BPM Data Source
Hi,
I would like to get the process start time using the VC data source BI_BPM_MY_PROCESSES_DS.
The return parameter BI_START_TIME_VALUE returns numbers like 1.271.858.563.350,00. This seems to be ms beginning from 1970.
I tried the following to get the current date/time but it didn't work:
=DTADD(DATETIME(1970,01,01,00,00),@BI_START_TIME_VALUE,'Z')
Any idea how to do this?
Thanks,
KevinHi Experts,
Do you have ideas for this SQL query ?
Regards. -
<header style="box-sizing:border-box;color:#777777;line-height:1;font-size:13px;padding-right:46px;margin-bottom:3px;font-family:'Helvetica Neue', arial, sans-serif;">
</header>
I'm doing SP app development and have the following problem.
I need to check Start time and End Time in SharePoint Calendar using CAML query and then add a new event to Calendar list using the Start time and End Time that user has entered in 2 datapickers
in the form.
function AddCalendarListItems() {
var SD = document.getElementById("datepicker1").value;
var SThh = document.getElementById("St1").value;
var STmm = document.getElementById("St2").value;
var ED = document.getElementById("datepicker2").value;
var EThh = document.getElementById("Et1").value;
var ETmm = document.getElementById("Et2").value;
var T = document.getElementById("Title").value;
var S1 = SThh;
SD = SD.slice(6, 10) + "-" + SD.slice(0, 2) + "-" + SD.slice(3, 5) + "T" + SThh + STmm + ":00Z";
ED = ED.slice(6, 10) + "-" + ED.slice(0, 2) + "-" + ED.slice(3, 5) + "T" + EThh + ETmm + ":00Z";
//alert("SD= " + SD + " , ED= " + ED);
var siteUrl = SiteCollurl + "/SharePointApp11";
var clientContext = new SP.ClientContext(siteUrl);
var oList = clientContext.get_web().get_lists().getByTitle('Calendar');
var ListItemCInfo = new SP.ListItemCreationInformation();
var newEvent = oList.addItem(ListItemCInfo);
newEvent.set_item("Title", T);
newEvent.set_item("EventDate", SD);
newEvent.set_item("EndDate", ED);
newEvent.update();
clientContext.executeQueryAsync(Function.createDelegate(this, this.onQueryAddCalendarSucceeded2), Function.createDelegate(this, this.onQueryAddCalendarFailed2));
function onQueryAddCalendarSucceeded2(sender, args) {
alert("Success");
function onQueryAddCalendarFailed2(sender, args) {
alert('Add new item to the calendar failed. ' + args.get_message() + '\n' + args.get_stackTrace());
But I receive the following error:
Add new item to the Calendar failed. Column 'Start time' does not exist. It may have been deleted by another user.
I've checked and 'Start time' does exist. So it seems in SharePoint Calendar lists, field [Start Time] and [End Time] exist but do not exist at the Site Column level.
Please advise.Hi Khojasteh,
Use “EventDate” for Start Time field, and “EndDate” for End Time field. They are the internal name of the two fields, you can check it in the column settings page url like “Field=EndDate”.
If it isn’t the issue, please debug the code, in which line the error occurs.
Thanks,
Qiao
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Qiao Wei
TechNet Community Support -
Start time and endtime of a procedure
Hi all,
I want to findout the start time and edn time of a procedure that was executed now.
How i can do this using oracle. Is there any table that will store this information??
or is there any aproach??
My exact requirement is
i am developing a shell script to execute the procedure.
at the end of the unix shell script i i will capture sql/plsql information in a .log file.
i will search for the start and end times from that .log file.
so i want to capture the start time and end time using oracle.
kindly reply soonn... very urgent
Thanks.Hi,
There is a table called V$SYS_TIME_MODEL. You can use it as follows to find the time spent in executing a PL/SQL procedure.
SELECT VALUE FROM WHERE
STAT_NAME = 'PL/SQL execution elapsed time');
Execute the above query before and after execution of the pl/sql procedure. The difference should give you the time spent in the procedure.
Hope this helps,
Regards,
Sumit -
How to capture the job start time
Hi,
how do i capture the time the job start running and the time the job end? when i query this
SQL> select * from user_jobs;no column are showing when the job start time (only last_sec and next_sec). I want to copy user_jobs view into ajob_history table, like this:
Job history table
Job_start Job_end
(?) (last_sec)Why not add a log time into the job call itself? That way, you can collect the information yourself for the jobs you're interested in.
So instead of the "what" parameter being "my_proc(p1, p2....)", change it to something like:
declare
v_start_time TIMESTAMP;
v_end_time TIMESTAMP;
begin
v_start_time := systimestamp;
my_proc(p1, p2....);
v_end_time := systimestamp;
log_job_time('Unique identifier', v_start_time, v_end_time);
end;and have the log_job_time process insert a row into a logging table that captures the name of the job and it's start and end time.
That's if you can't include the timings in your procedure, of course. -
Hi,
We have a lot of jobs scheduled in our environment. While monitoring topas I find
out the havily running job. I have a process Id information and which sql has
running also. My actual problem is i will grep the above process id, It shows
database started time. I have issued the below command in unix environment.
PROMPT> ps -ef grep pid
Any one help to guide me.
Thanks in advance,
Upendran .AI assume you want to find how long a specific job (from dbms_job) is running, i.e. when was it started.
Oracle uses SNP processes to "host" sessions for jobs. These SNP processes are started at the same time the database instance is started or the number of job_queue_processes is changed via alter system (the number of SNP processed = the maximum number of concurrent running jobs = the value of job_queue_processes parameter).
But, if you look into v$session, then the session hosting your job will show the starting time of the apropriate job call in the LOGON_TIME attribute (as the logon_time for SNP processes changes each time the job queue is changed). You can link the v$session information to OS pid using join between v$session and v$process:
select s.sid, s.serial#,
s.status,
s.username,
s.osuser,
s.machine,
TRIM(s.program || ' ' || s.module || ' ' || s.action) as Program,
p.spid,
to_char(s.logon_time, 'DD.MM.YY HH24:MI:SS') as logon_time
from v$session s, v$process p
where s.paddr = p.addr (+);
Alternatively, you can query the dba_jobs view (or user_jobs), the attribute THIS_TIME shows the time when the job was started for a running job. Again, using the SID you can link this to v$session and v$process.
Regards, Martin -
Requested start time during job scheduling population in local time.
Hello Experts,
Could you please help on the issue.
Requested start time during job scheduling populated with local time even though we have assigned the GMT time zone.
Could you please help , how to change the settings of request start time calender icon to populate the GMT time.
thanks,
Suresh.Hello Gerben,
Thanks for the reply, even though the default time zone set as GMT in user settings, the requested start time calender pop up the local time instead of GMT time.
Previously requested start time poped up the GMT time, we have observed this change once we have ran the redwood script for time window elements change and imported some of the job definitions, applications & time windows from other system.
Below is the script we have ran thought shell script
Script Fuctionality
1. Take the mentioned time window
2. iteratate thought the time window elements and add 1 hour to the "time to day from" & "time to day to" parameters.
3. set the changed parametes to time window and persist the changes.
// Variable Declarations
String timewindow = null;
String query = null;
TimeWindow tw = null;
TimeWindowElement twe = null;
long otdvalue = 3600000;
long l1 = 0;
long l2 = 0;
long threshold = 0 ;
long expvalue = 82800000;
long expvalue1 = 85500000;
long indto1 = 0;
long indfrom1 = 300999;
long indto2 = 2700000;
long indfrom2 = 3000999;
Job job = null;
//Declare all the time windows in array
String[] timewindows = {"XX_TIMEWINDOW_01_GMT"};
for( int i = 0 ; i < timewindows.length; i++)
timewindow = timewindows<i>;
jcsOut.println("TimeWindow"i":"+timewindows<i>);
tw = jcsSession.getTimeWindowByName(timewindow);
for (Iterator it1 = tw.getTimeWindowElements(); it1.hasNext();)
twe = (TimeWindowElement) it1.next();
Long otd = new Long(otdvalue);
jcsOut.println("************************");
jcsOut.println(twe.getTimeOfDayFrom());
jcsOut.println(twe.getTimeOfDayTo());
jcsOut.println("************************");
Long todf = (Long) twe.getTimeOfDayFrom();
Long todt = (Long) twe.getTimeOfDayTo();
threshold = todf.longValue();
// if timeday from equal to 23 GMT assign the 0 GMT
if(threshold == expvalue )
jcsOut.println("timewindow with 23 GMT");
l1 = indto1;
l2 = indfrom1;
//if timedayfrom equal to 23:45 GMT assign 0:45 GMT
else if(threshold == expvalue1)
jcsOut.println("timewindow with 23:45 GMT");
l1 = indto2;
l2 = indfrom2;
// Add 1 hour for current time of day from
else
l1 = todf.longValue() + otdvalue;
l2 = todt.longValue() + otdvalue;
Long ll1 = new Long(l1);
Long ll2 = new Long(l2);
twe.setTimeOfDayFrom(ll1);
twe.setTimeOfDayTo(ll2);
jcsOut.println("After Change:"+ twe.getTimeOfDayFrom());
jcsSession.persist();
Once after the script competetion the time window time zone remains in GMT.
Could you please check script once and help us the time zone change caused the by script or not?
Thanks,
Suresh -
Publishing Ical in weekly view with start time I want
I have my Ical set up to start at 11am and end at 9pm. When I publish my calendar it still shows start time at 7am on weekly view. How do I publish my Ical with the start and end times I want?
Thanksepee91,
What setting do you have in System Preferences...>Language & Region>First day of week:? -
The drives I have are Seagate 1TB GoFlex portable drives (one has UBS 3.0, the other USB 2.0), and a WesternDigital 1TB passport (USB 3.0). I originally tried to backup with Time Machine using the Seagate USB 3.0, and when that didnt work, Seagate suggested maybe since my operating system is a little older, that I try with a USB 2.0, so they sent me another NEW external hard drive, with the USB 2.0. Had the same issue. Frustrated and convinced that Seagate just sucked, I went and bought the 1TB WesternDigital passport (USB 3.0). Have the exact same issue again. Every drive was new, and formatted for mac. When I started time machine it started to back up my files, but froze after copying give or take 250 MB (usually 252.5MB, to be exact). I went and tried the drive on several other macs, and none of them presented any problems. I also tried dragging individual files, but it still freezes on pretty much anything bigger than +/- 100MB. Disk Utility says that all the drives are fine. Obviously this is a problem with my computer, and not the 3 brand new external drives. I thought about upgrading to OSX 10.6, but don't know if this'll help or not (plus, I'd really prefer to have all the files backed up on a drive before doing that, just in case). I dont know what else to do.. called apple, but I'm not about to pay them $50 to have them MAYBE give me a solution (done that twice now for previous unrelated issues, and each time they just told me to take it to a computer repair place.) Just seeing if anyone out there has a solution before I cave and take it back to the certified computer guys for them to figure it out.. Also, I live in Montana and theres no apple store anywhere close (not suprising), so taking it to an Apple Store is just not an option.
Side note: Seagate tech support is awesome; they tried everything to solve the problem, and they even bent their rules a little to send me a new drive, even though it wasn't a malfunction issue with their drive. Really helpful, friendly people, which is much more than I can say for Apple at this point...this is what you need to do to exclude everything apart from desktop.
on time machine preferences, click on Options
click plus sign, on the new window, click macintosh HD
do a Control + A then deselect users then click okay
go to options again, plus sign, go to users, control +A then deselect your user account
go to options again, plus sign, go to your user account, control + A, deselect desktop
start the back up. -
Process Chain changing start time?
hi guysm i have 76 process chains that run every day in BWD system, so i removed all the timings from the start variant and in the infopackages, but it seems some process chains are still running, i did do the following steps on chnaging the time from a particular time to immediate, Save, Check and activate, i didnt schedule it as i dont want it to load right away .
do i have to hit check , save , schedule once i change the time from a particular time to immediate load or activate will work as well.?
what else could be the cause of process chains still loading even there are no events, or time given to any process chains at all.
i went to sm 37 and i can see the bi process are all running at the time they were orignially set up on.
so any suggestions would help,
is there any way from sm 37 i can tell which process chain is triggered off?
thanks
Dante(devils never cry)Dante, the start conditions on the infopackages do not affect when they run in process chains. The process chains have their own start job. If you want to change the start time of a process chain, then you need to go to maintain the process chain, right-click on the Start process and select Displaying Scheduled Job(s)... . Here you will see a job called BI_PROCESS_TRIGGER. Change the start conditions of this job.
The start job for all process chains is BI_PROCESS_TRIGGER, so using SM37 may be difficult to identify which BI_PROCESS_TRIGGER job is associated to a particular chain.
Also, to let you know, each process in a process chain has an associated job. All jobs called BI_PROCESS_xxxxx are jobs associated with a process chain.
Eg.
BI_PROCESS_LOADING is an infopackage.
BI_PROCESS_TRIGGER is the start job
Does this help? -
I shortened a song in my PC iTunes music library by using "get info" options and start time. The change shows up in my PC iTunes library for the song and after syncing, in my ipad2 music library when hooked up via USB. The song plays at original length on my ipad2. Weirdly enough, after syncing with my iPod, the song plays at the shortened length on the iPod. A previous sync with the ipad2 sent the shortened version to the iPad with no problems. The next time I synced, and 50 times later, all I got was the long version. It's a trivial matter but I need the song for a slide show presentation at a high school and the first few seconds of the song feature an expletive that I obviously can't use. Help! This is maddening.
We are Apple users here, and we answer technical questions.
Sorry, we cannot help you. -
Show only Start Time in List View?
When I print my iCal calendar in List View, it prints out Start and End times for each event. This, despite the fact that I don't create End Times for these events. Just the Start Times. So everything shows up like this:
9AM (1/25) to 9AM (1/25) Breakfast meeting
11AM (1/25) to 11AM (1/25) Sales Meeting
12:30PM (1/25) to 12:30PM (1/25) Lunch
... etc.
Is there some way to get it not to print the End Time if it's the same as the Start Time? Or, failing that, just not print the End Time regardless if it's the same as the Start Time or not?---
Maybe you are looking for
-
Error while creating iViews after implementing custom hover menu in NW 7.3
Dear Experts, We recently implemented a customized hover menu in Portal 7.3. Since then while creating an iView we are getting the following error : java.net.MalformedURLException: Illegal character in query at index 1023: /irj/servlet/prt/portal/prt
-
Add new field in the Create Support Message Popup Screen
Hi Experts, I need to create Project Code Field in the standard popup screen Create Support Message Suggest me any Badi or FM or Bapi or Enhancement to create a new field and update the field value to the Support Message created. Please let me know i
-
HT1363 We are having trouble getting my I pod to charge it is a third generation I Pod Nano
We have tried to chargers and it is not conecting to my computer and is not charging.
-
I bought i tunes card but in the app i cannot buy from it and when i click buy it deny it says contact support
-
I"m setting up a 11g RAC cluster and will be using APEX. My question is: can http server run off of all nodes in the cluster or just one?