Records query
i have a data
date---------------------------------------------------------id----------------------------amount
7/23/2010 9:51:28 AM------------------------------2------------------------------ 0
7/23/2010 9:51:28 AM------------------------------1------------------------------ 100
7/23/2010 10:01:30 AM----------------------------1------------------------------ 0i want the output look like dis
date---------------------------------------------------------id----------------------------amount
7/23/2010 9:51:28 AM------------------------------2------------------------------ 0
7/23/2010 10:01:30 AM----------------------------1------------------------------ 0MAXIMUM DATE WISE GROUPING ID WISE
how to i retrieve this? sql query help
using oracle 9i , toad 10.1
May be like this:
SELECT DATE1,ID,AMT
FROM TABLE_NAME
WHERE DATE1 IN(
SELECT MAX(DATE1) FROM TABLE_NAME
GROUP BY ID)
Similar Messages
-
Rows to columns/Transpose the records Query and Display output
hi ,
can anyone help me query this and transpose it to this format?
i am still a beginner in sql.
thanks for help!
Rows to columns/Transpose the records Query and Display output
id startdate endate
1111 1/2/2001 11/3/2001
1111 2/5/2002 4/3/2002
1111 2/6/2000 2/5/2001
3333 5/2/2003 11/3/2003
3333 6/2/2003 12/3/2003
3333 2/6/2005 2/5/2005
desired output
id startdate1 endate1 startdate2 endate2 startdate3 endate3
1111 1/2/2001 11/3/2001 2/5/2002 4/3/2002 2/6/2000 2/5/2001
3333 5/2/2003 11/3/2003 6/2/2003 12/3/2003 2/6/2005 2/5/2005Have you only 3 dates for each id ?
So, try :
SQL> l
1 with tbl as
2 (select 1111 as id, to_date('01/02/2001','DD/MM/YYYY') startdate, to_date('11/03/2001','DD/MM/YYYY') enddate from dual union all
3 select 1111 as id, to_date('02/05/2002','DD/MM/YYYY') startdate, to_date('04/03/2002','DD/MM/YYYY') enddate from dual union all
4 select 1111 as id, to_date('02/06/2000','DD/MM/YYYY') startdate, to_date('02/05/2001','DD/MM/YYYY') enddate from dual union all
5 select 3333 as id, to_date('05/02/2003','DD/MM/YYYY') startdate, to_date('11/03/2003','DD/MM/YYYY') enddate from dual union all
6 select 3333 as id, to_date('06/02/2003','DD/MM/YYYY') startdate, to_date('12/03/2003','DD/MM/YYYY') enddate from dual union all
7 select 3333 as id, to_date('02/06/2005','DD/MM/YYYY') startdate, to_date('02/05/2005','DD/MM/YYYY') enddate from dual )
8 select id, max(decode(dr,1,startdate)) start1,
9 max(decode(dr,1,enddate)) end1,
10 max(decode(dr,2,startdate)) start2,
11 max(decode(dr,2,enddate)) end2,
12 max(decode(dr,3,startdate)) start3,
13 max(decode(dr,3,enddate)) end3
14 from (select id, startdate,enddate, dense_rank() over (partition by id order by startdate) dr from tbl)
15* group by id
SQL> /
ID START1 END1 START2 END2 START3 END3
1111 02/06/00 02/05/01 01/02/01 11/03/01 02/05/02 04/03/02
3333 05/02/03 11/03/03 06/02/03 12/03/03 02/06/05 02/05/05
SQL> HTH,
Nicolas. -
40357-invalid string in example record query not issued
hello experts,
i am using forms 10g.in query mode i face that error 40357-invalid string in example record query not issued.
i used these code in key-next-item trigger
PROCEDURE KN_FOR_QUERY IS
BEGIN
IF :global.navigation = 'D' AND :global.mode = 'M'
THEN
IF NAME_IN(:SYSTEM.CURSOR_ITEM) IS NOT NULL
THEN
:global.temp_div_code:= :po_m.po_div_code;
:global.temp_po_num := :po_m.po_num;
:global.temp_po_ex_work := :PUR_DELV_D.DELV_EX_WORK;
:global.temp_modi_num:= :po_m.po_modi_num;
IF GET_BLOCK_PROPERTY(:SYSTEM.CURSOR_BLOCK,QUERY_HITS)=0
THEN
-- message('1---'||:SYSTEM.CURSOR_BLOCK);
-- message('2---'||:SYSTEM.CURSOR_BLOCK);
GO_BLOCK(:SYSTEM.CURSOR_BLOCK);
CLEAR_BLOCK(no_validate);
EXECUTE_QUERY;
-- ELSE
-- NEXT_ITEM;
END IF;
-- ELSE
-- mess(GET_ITEM_PROPERTY(:SYSTEM.CURSOR_ITEM,PROMPT_TEXT)||' Must Be Entered For Query...');
END IF;
ELSIF :global.navigation = 'D' and :global.mode = 'Q'
THEN
IF NAME_IN(:SYSTEM.CURSOR_ITEM) IS NOT NULL
THEN
MESS('Press Execute query button');
go_item('tools.execute_query');
ELSE
mess(GET_ITEM_PROPERTY(:SYSTEM.CURSOR_ITEM,PROMPT_TEXT)||' Must Be Entered For Query...');
END IF;
ELSIF :global.navigation = 'D' and :global.mode = 'A'
THEN
IF NAME_IN(:SYSTEM.CURSOR_ITEM) IS NOT NULL
THEN
NEXT_ITEM;
ELSE
mess(GET_ITEM_PROPERTY(:SYSTEM.CURSOR_ITEM,PROMPT_TEXT)||' Must Be Entered...');
END IF;
END IF;
END;
Thanks
RaviHi Ravi
u may need to debug to find out where and when the error exist pls note the following
Error Message: FRM-40357: Invalid string in example record. Query not issued.Error Cause:In query mode, you entered an invalid ALPHA or CHAR value in the example record.
Action:Correct the entry and retry the query. Level: >25
Type: Errorpls verifying that u r entering 1 char for global variable to be assigned so any number between 2single coat is considered a character not s number .
Amatu Allah -
6 million + records, query takes more than 50 min to execute.
Hi
I am trying to get records from a table which has more than 6 million of records.
The value set of the particular col IND can be
NULL
'0'
'1'
and other value like A B '6'
The data type of IND is varchar.
I want all the records where the value is other than NULL, 0 and 1
I tried this simple query
SELECT ID, IND
FROM tablename
WHERE
IND IS NOT NULL
AND IND <> '0'
AND IND <> '1'
Now this query is taking more than 30-40 min. Is this a way I can speed up this query. Also I can't index on the column.
any suggestions ?I don't know anything about your tables or hardware (nor your Oracle version because you didn't post it) but 30 - 40 minutes seems excessive for a full table scan on only 6 million rows.
On my lowly test instance, this full table scan takes a little over a minute:
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 1 | 4 | 4800 (2)| 00:01:11 |
| 1 | SORT AGGREGATE | | 1 | 4 | | |
| 2 | TABLE ACCESS FULL| ATLAS_SALES_HISTORY | 6618K| 25M| 4800 (2)| 00:01:11 |
Statistics
631 recursive calls
0 db block gets
55740 consistent gets
55609 physical reads
0 redo size
415 bytes sent via SQL*Net to client
346 bytes received via SQL*Net from client
2 SQL*Net roundtrips to/from client
15 sorts (memory)
0 sorts (disk)
1 rows processedAre you pulling all 6 million rows across the network to your client machine? (And waiting for the rows to scroll?) -
Cash Management's BAI data file Record Query
Hi All,
I need to upload and Reconcile the BAI data file which consists of Wire Transactions and Check Payments.
For Wire transactions, the client has mentioned that he will populate the Transaction number TRN#0357238745932 in 88th Record, which is -1 field of the 16th Record. Also he is populating the Check Number in 16th Record's last field having the 88th record as the continuation record.i.e, Check number is in -2 field of the 16th record.
Now if i need to Reconcile these two transactions for a particular Bank Account Number, then i have to Map the BANK_TRX_NUMBER to -1 in case of Wire transaction and map as -2 in case of Check Payments, which i think is not possible at a single point of time(Mapping two positions to a single Column)
How can i achieve this?Without customization it is not possible to map two fields to single column and alternatively I have told to write trigger to achieve this, which will not impact standard Oracle process as you are updating interface data only according to your requirement.
once the data is loaded into interface table, the same data will be available in the ce_stmt_int_tmp table and you can query the records from the tmp table and you can get the data from tmp table update on interface table if the data is not loading into the interface table (or you can find complete text in trx_text in interface table). -
Help with Finding Duplicate records Query
HI,
I am trying to write a query that will find duplicate records/cases.
This query will be used in a report.
So, here are the requirements:
I need to find duplicate cases/records based on the following fields:
DOB, DOCKET, SENT_DATEI was able to do that with the following query. The query below is able to give me all duplicate records based on the Criteria above
SELECT DEF.BIRTH_DATE DOB,
S.DOCKET DOCKET,
S.SENT_VIO_DATE SENT_DATE, COUNT(*)
FROM SENTENCES S,
DEFENDANTS DEF
WHERE S.DEF_ID = DEF.DEF_ID
AND S.CASE_TYPE_CODE = 10
GROUP BY DEF.BIRTH_DATE, S.DOCKET, S.SENT_VIO_DATE
HAVING COUNT(*) > 1;
//I AM GOING TO CALL THIS QUERY 'X'Now, the information to be displayed on the report: defendants Name, DOB, District, Docket, Def Num, Sent Date, and PACTS Num if possible.
The problem that I need help on is how to combine those queries together (what I mean is a sub query). the 'X' query returns multiple values. please have a look at the comments on the query below to see what I'm trying to achieve.
here is the main query:
SELECT INITCAP(DEF.LAST_NAME) || ' ' || INITCAP(DEF.FIRST_NAME) || ' ' || INITCAP(DEF.MIDDLE_NAME) DEFENDANT_NAME,
DEF.BIRTH_DATE DOB,
TRIM(DIST.DISTRICT_NAME) DISTRICT_NAME,
S.DOCKET DOCKET,
S.DEF_NUM DEF_NUM,
S.SENT_VIO_DATE SENT_DATE,
DEF.PACTS_ID PACTS_NUM
FROM USSC_CASES.DEFENDANTS DEF,
USSC_CASES.SENTENCES S,
LOOKUP.DISTRICTS DIST
WHERE DEF.DEF_ID = S.DEF_ID
AND S.DIST_ID = DIST.USSC_DISTRICT_ID
AND S.CASE_TYPE_CODE = 10
AND S.USSC_ID IS NOT NULL
AND // what i'm trying to do is: DOB, DOCKET, SENT_DATE IN ('X' QUERY), is this possible ??
ORDER BY DEFENDANT_NAME; thanks in advance.
I am using Oracle 11g, and sql developer.
if my approach doesn't work, is there a better approach ?
Edited by: Rooney on Jul 11, 2012 3:50 PMIf I got it right, you want to join table USSC_CASES.DEFENDANTS to duplicate rows in USSC_CASES. If so:
SELECT INITCAP(DEF.LAST_NAME) || ' ' || INITCAP(DEF.FIRST_NAME) || ' ' || INITCAP(DEF.MIDDLE_NAME) DEFENDANT_NAME,
DEF.BIRTH_DATE DOB,
TRIM(DIST.DISTRICT_NAME) DISTRICT_NAME,
S.DOCKET DOCKET,
S.DEF_NUM DEF_NUM,
S.SENT_VIO_DATE SENT_DATE,
DEF.PACTS_ID PACTS_NUM
FROM USSC_CASES.DEFENDANTS DEF,
SELECT *
FROM (
SELECT S.*,
COUNT(*) OVER(PARTITION BY DEF.BIRTH_DATE, S.DOCKET, S.SENT_VIO_DATE) CNT
FROM USSC_CASES.SENTENCES S
WHERE CNT > 1
) S,
LOOKUP.DISTRICTS DIST
WHERE DEF.DEF_ID = S.DEF_ID
AND S.DIST_ID = DIST.USSC_DISTRICT_ID
AND S.CASE_TYPE_CODE = 10
AND S.USSC_ID IS NOT NULL
ORDER BY DEFENDANT_NAME;If you want to exclude duplicates from the query and do not care which row out of duplicate rows to choose:
SELECT INITCAP(DEF.LAST_NAME) || ' ' || INITCAP(DEF.FIRST_NAME) || ' ' || INITCAP(DEF.MIDDLE_NAME) DEFENDANT_NAME,
DEF.BIRTH_DATE DOB,
TRIM(DIST.DISTRICT_NAME) DISTRICT_NAME,
S.DOCKET DOCKET,
S.DEF_NUM DEF_NUM,
S.SENT_VIO_DATE SENT_DATE,
DEF.PACTS_ID PACTS_NUM
FROM USSC_CASES.DEFENDANTS DEF,
SELECT *
FROM (
SELECT S.*,
ROW_NUMBER() OVER(PARTITION BY DEF.BIRTH_DATE, S.DOCKET, S.SENT_VIO_DATE ORDER BY 1) RN
FROM USSC_CASES.SENTENCES S
WHERE RN = 1
) S,
LOOKUP.DISTRICTS DIST
WHERE DEF.DEF_ID = S.DEF_ID
AND S.DIST_ID = DIST.USSC_DISTRICT_ID
AND S.CASE_TYPE_CODE = 10
AND S.USSC_ID IS NOT NULL
ORDER BY DEFENDANT_NAME;SY. -
HI Team,
I have gone though some Docs and they specified that Name server will specify the name server for the particular domain.
Can anyone tell me the exact function of this record in DNS and when this will use ?
Whether DNS round robin is finding the name servers in the name server tab for resolution ??
Thanks in Advance..
Regards
Sajin P SHi Sajin P S,
The name server (NS) resource record is used to notate which DNS servers are designated as authoritative for the zone. This means that any server specified in the NS RR is to be considered
an authoritative source by others, and is able to answer with certainty any queries made for names included in the zone.
Round robin is a local balancing mechanism used by DNS servers to share and distribute network resource loads. You can use it to rotate
all resource record(RR) types contained in a query answer
if multiple RRs are found. It just rotates the order of resource records when answering client requests.
For more details, please refer to the article below,
Managing authority records
http://technet.microsoft.com/en-us/library/cc779148(v=WS.10).aspx
Configuring round robin
http://technet.microsoft.com/en-us/library/cc787484(v=WS.10).aspx
Best Regards,
Tina
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] -
Hi Folks - I have a table of students and a table of student test scores. I want to create a query that lists students that do not have a score. Do-able?
MichaelHi,
You can write a function like this in a variable.
let the variable be ABC.
ABC = [student] where(isnull([test score])), where [student] is the dimension and [test score] is the key figure.This will bring up the students with no Test Scores.
Hope this will help you.
Regards,
ArunKG -
Copy the Last Record queried to the new record in a Multi - Record Block
Hi Team
When i enter a new record in a Multi - Record Block the last record should get copied to the new record.
Please help me.
ThanksHi
pls use...
DUPLICATE_RECORD;Amatu Allah -
I have been caught out a few times where the programme being recorded has switched itself off too early. In the past, with my old recorders , whether VCR or HDD, I would often just press record and leave it on perhaps to record 2 separate programmes separated by another rather than set the timer and just fast forward to watch what I wanted or to just start recording a programme early as I was on my way out. It seems with the vision box that this cannot be done. Is it the case that everything is programme specific. eg. I pressed record a few minutes before the end of one programme expecting it to carry on recording the following one but instead it switched off at the end of the first(unwanted ) programme.
Solved!
Go to Solution.All digital video recorders work off a programme schedule. If you press record you are telling the box not to start recording, but to record the current programme. It does take a bit of getting used to, but there's nothing wrong with your box. To do what you want you now have to call up the TV guide and flag the next few programmes for recording.
The other way you can do it is to press the i button, press record settings and change the end time by a couple of hours, but that's more button presses.
You will also notice that if the box has been switched to the channel for some time and you press record half way through, your recording will also contain the part of the programme BEFORE you pressed record. This is because the channel you're switched to is being stored in a buffer for up to 90 minutes and the box is able to use any of that data in the recording. This can either be handy or annoying depending on your view. If you want your recording to start exactly when you press the record button, switch to another channel, switch back again and then press record. -
Tune Query with Millions of Records
Hi everyone,
I've got an Oracle 11g tuning task set before me and I'm pretty novice when it comes to tuning.
The query itself is only about 10-15 lines of SQL, however, it's hitting four tables, one of them is 100 million records and one is 8 million. The other two are pretty small comparatively ( 6,000 and 300 records). The problem I am having is that the query actually needs to aggregate 3 million records.
I found an article about using the star_transformation_enabled = true parameter, then on the fact table I set all the foreign key to bitmaps and the dimensions have a standard primary key defined on the surrogate key. This strategy works but it still takes a long time for the query to crunch the 3 million records (takes about 30 minutes).
I know there's also the option of doing materialized views and using query re-write to take advantage of the MV, but my problem with that is that we're using OBIEE and we can't control how many different variations of these query's we see. So we would have to make a ton of MVs.
What are the best ways to tackle high volume queries like this from a system wide perspective?
Are there any benchmarks for what I should be seeing in terms of a 3 million record query? Is expecting under a minute even reasonable?
Any help would be appreciated!
Thanks!
-JoeHere is the trace information:
SQL> set autotrace traceonly arraysize 1000
SQL> SELECT SUM(T91573.ACTIVITY_GLOBAL1_AMT) AS c2,
2 SUM(
3 CASE
4 WHEN T91573.DB_CR_IND = 'CREDIT'
5 THEN T91573.ACTIVITY_GLOBAL1_AMT
END ) AS c3,
T91397.GL_ACCOUNT_NAME AS c4,
6 7 8 T91397.GROUP_ACCOUNT_NUM AS c5,
9 SUM(T91573.BALANCE_GLOBAL1_AMT) AS c6,
10 T156337.ROW_WID AS c7
11 FROM W_MCAL_DAY_D T156337
12 /* Dim_W_MCAL_DAY_D_Fiscal_Day */
13 ,
14 W_INT_ORG_D T111515
/* Dim_W_INT_ORG_D_Company */
15 16 ,
W_GL_ACCOUNT_D T91397
17 18 /* Dim_W_GL_ACCOUNT_D */
19 ,
20 W_GL_BALANCE_F T91573
/* Fact_W_GL_BALANCE_F */
21 22 WHERE ( T91397.ROW_WID = T91573.GL_ACCOUNT_WID
23 AND T91573.COMPANY_ORG_WID = T111515.ROW_WID
24 AND T91573.BALANCE_DT_WID = T156337.ROW_WID
AND T111515.COMPANY_FLG = 'Y'
AND T111515.ORG_NUM = '02000'
25 26 27 AND T156337.MCAL_PER_NAME_QTR = '2010 Q 1' )
28 GROUP BY T91397.GL_ACCOUNT_NAME,
T91397.GROUP_ACCOUNT_NUM,
29 30 T156337.ROW_WID
31 ;
522 rows selected.
Execution Plan
Plan hash value: 2761996426
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 7882 | 700K| 7330 (1)| 00:01:28 |
| 1 | HASH GROUP BY | | 7882 | 700K| 7330 (1)| 00:01:28 |
|* 2 | HASH JOIN | | 7882 | 700K| 7329 (1)| 00:01:28 |
| 3 | VIEW | VW_GBC_13 | 7837 | 390K| 6534 (1)| 00:01:19 |
| 4 | TEMP TABLE TRANSFORMATION | | | | | |
| 5 | LOAD AS SELECT | SYS_TEMP_0FD9D7416_F97A325 | | | | |
|* 6 | VIEW | index$_join$_114 | 572 | 10296 | 191 (9)| 00:00:03 |
|* 7 | HASH JOIN | | | | | |
| 8 | BITMAP CONVERSION TO ROWIDS | | 572 | 10296 | 1 (0)| 00:00:01 |
|* 9 | BITMAP INDEX SINGLE VALUE | W_MCAL_DAY_D_F46 | | | | |
| 10 | INDEX FAST FULL SCAN | W_MCAL_DAY_D_P1 | 572 | 10296 | 217 (1)| 00:00:03 |
| 11 | HASH GROUP BY | | 7837 | 290K| 6343 (1)| 00:01:17 |
|* 12 | HASH JOIN | | 26186 | 971K| 6337 (1)| 00:01:17 |
| 13 | TABLE ACCESS FULL | SYS_TEMP_0FD9D7416_F97A325 | 572 | 5148 | 2 (0)| 00:00:01 |
| 14 | TABLE ACCESS BY INDEX ROWID | W_GL_BALANCE_F | 26186 | 741K| 6334 (1)| 00:01:17 |
| 15 | BITMAP CONVERSION TO ROWIDS | | | | | |
| 16 | BITMAP AND | | | | | |
| 17 | BITMAP MERGE | | | | | |
| 18 | BITMAP KEY ITERATION | | | | | |
|* 19 | TABLE ACCESS BY INDEX ROWID| W_INT_ORG_D | 2 | 32 | 3 (0)| 00:00:01 |
|* 20 | INDEX RANGE SCAN | W_INT_ORG_ORG_NUM | 2 | | 1 (0)| 00:00:01 |
|* 21 | BITMAP INDEX RANGE SCAN | W_GL_BALANCE_F_F4 | | | | |
| 22 | BITMAP MERGE | | | | | |
| 23 | BITMAP KEY ITERATION | | | | | |
| 24 | TABLE ACCESS FULL | SYS_TEMP_0FD9D7416_F97A325 | 572 | 5148 | 2 (0)| 00:00:01 |
|* 25 | BITMAP INDEX RANGE SCAN | W_GL_BALANCE_F_F1 | | | | |
| 26 | VIEW | index$_join$_003 | 199K| 7775K| 794 (5)| 00:00:10 |
|* 27 | HASH JOIN | | | | | |
|* 28 | HASH JOIN | | | | | |
| 29 | BITMAP CONVERSION TO ROWIDS | | 199K| 7775K| 26 (0)| 00:00:01 |
| 30 | BITMAP INDEX FULL SCAN | W_GL_ACCOUNT_D_M1 | | | | |
| 31 | BITMAP CONVERSION TO ROWIDS | | 199K| 7775K| 118 (0)| 00:00:02 |
| 32 | BITMAP INDEX FULL SCAN | W_GL_ACCOUNT_D_M10 | | | | |
| 33 | INDEX FAST FULL SCAN | W_GL_ACCOUNT_D_M18 | 199K| 7775K| 733 (1)| 00:00:09 |
Predicate Information (identified by operation id):
2 - access("T91397"."ROW_WID"="ITEM_1")
6 - filter("T156337"."MCAL_PER_NAME_QTR"='2010 Q 1')
7 - access(ROWID=ROWID)
9 - access("T156337"."MCAL_PER_NAME_QTR"='2010 Q 1')
12 - access("T91573"."BALANCE_DT_WID"="C0")
19 - filter("T111515"."COMPANY_FLG"='Y')
20 - access("T111515"."ORG_NUM"='02000')
21 - access("T91573"."COMPANY_ORG_WID"="T111515"."ROW_WID")
25 - access("T91573"."BALANCE_DT_WID"="C0")
27 - access(ROWID=ROWID)
28 - access(ROWID=ROWID)
Note
- star transformation used for this statement
Statistics
1067 recursive calls
9 db block gets
417513 consistent gets
296603 physical reads
6708 redo size
25220 bytes sent via SQL*Net to client
520 bytes received via SQL*Net from client
2 SQL*Net roundtrips to/from client
6 sorts (memory)
0 sorts (disk)
522 rows processedAnd here is the cursor details:
SQL> select * from table(dbms_xplan.display_cursor(null, null, 'ALLSTATS LAST'));
PLAN_TABLE_OUTPUT
SQL_ID 6s625d3821nq3, child number 0
SELECT /*+ gather_plan_statistics */ SUM(T91573.ACTIVITY_GLOBAL1_AMT)
AS c2, SUM( CASE WHEN T91573.DB_CR_IND = 'CREDIT' THEN
T91573.ACTIVITY_GLOBAL1_AMT END ) AS c3,
T91397.GL_ACCOUNT_NAME AS c4, T91397.GROUP_ACCOUNT_NUM
AS c5, SUM(T91573.BALANCE_GLOBAL1_AMT) AS c6, T156337.ROW_WID
AS c7 FROM W_MCAL_DAY_D T156337 /*
Dim_W_MCAL_DAY_D_Fiscal_Day */ , W_INT_ORG_D T111515 /*
Dim_W_INT_ORG_D_Company */ , W_GL_ACCOUNT_D T91397 /*
Dim_W_GL_ACCOUNT_D */ , W_GL_BALANCE_F T91573 /*
PLAN_TABLE_OUTPUT
Fact_W_GL_BALANCE_F */ WHERE ( T91397.ROW_WID =
T91573.GL_ACCOUNT_WID AND T91573.COMPANY_ORG_WID = T111515.ROW_WID
AND T91573.BALANCE_DT_WID = T156337.ROW_WID AND T111515.COMPANY_FLG
= 'Y' AND T111515.ORG_NUM = '02000' AND
T156337.MCAL_PER_NAME_QTR = '2010 Q 1' ) GROUP BY
T91397.GL_ACCOUNT_NAME, T91397.GROUP_ACCOUNT_NUM, T156337.ROW_WID
Plan hash value: 3262111942
PLAN_TABLE_OUTPUT
| Id | Operation | Name | Starts | E-Rows | A-Rows | A-Time | Buffers | Reads | Writes | OMem | 1Mem| Used-Mem |
| 0 | SELECT STATEMENT | | 1 | | 522 |00:51:34.16 | 424K| 111K| 2 | | | |
| 1 | HASH GROUP BY | | 1 | 7882 | 522 |00:51:34.16 | 424K| 111K| 2 | 748K| 748K| 1416K (0)|
|* 2 | HASH JOIN | | 1 | 7882 | 5127 |00:51:34.00 | 424K| 111K| 2 | 1035K| 1035K| 1561K (0)|
| 3 | VIEW | VW_GBC_13 | 1 | 7837 | 5127 |00:51:32.65 | 423K| 111K| 2 | | | |
| 4 | TEMP TABLE TRANSFORMATION | | 1 | | 5127 |00:51:32.64 | 423K| 111K| 2 | | | |
| 5 | LOAD AS SELECT | | 1 | | 0 |00:00:00.09 | 188 | 0 | 2 | 269K| 269K| 269K (0)|
|* 6 | VIEW | index$_join$_114 | 1 | 572 | 724 |00:00:00.01 | 183 | 0 | 0 | | | |
|* 7 | HASH JOIN | | 1 | | 724 |00:00:00.01 | 183 | 0 | 0 | 1011K| 1011K| 1573K (0)|
| 8 | BITMAP CONVERSION TO ROWIDS | | 1 | 572 | 724 |00:00:00.01 | 3 | 0 | 0 | | | |
|* 9 | BITMAP INDEX SINGLE VALUE | W_MCAL_DAY_D_F46 | 1 | | 1 |00:00:00.01 | 3 | 0 | 0 | | | |
| 10 | INDEX FAST FULL SCAN | W_MCAL_DAY_D_P1 | 1 | 572 | 64822 |00:00:00.06 | 180 | 0 | 0 | | | |
| 11 | HASH GROUP BY | | 1 | 7837 | 5127 |00:51:32.54 | 423K| 111K| 0 | 1168K| 1038K| 2598K (0)|
|* 12 | HASH JOIN | | 1 | 26186 | 3267K|03:18:27.02 | 423K| 111K| 0 | 1236K| 1236K| 1248K (0)|
| 13 | TABLE ACCESS FULL | SYS_TEMP_0FD9D73B3_F97A325 | 1 | 572 | 724 |00:00:00.02 | 7 | 2 | 0 | | | |
| 14 | TABLE ACCESS BY INDEX ROWID | W_GL_BALANCE_F | 1 | 26186 | 3267K|03:18:12.81 | 423K| 111K| 0 | | | |
| 15 | BITMAP CONVERSION TO ROWIDS | | 1 | | 3267K|00:00:06.29 | 16142 | 1421 | 0 | | | |
| 16 | BITMAP AND | | 1 | | 74 |00:00:03.06 | 16142 | 1421 | 0 | | | |
| 17 | BITMAP MERGE | | 1 | | 83 |00:00:00.08 | 393 | 0 | 0 | 1024K| 512K| 2754K (0)|
| 18 | BITMAP KEY ITERATION | | 1 | | 764 |00:00:00.01 | 393 | 0 | 0 | | | |
|* 19 | TABLE ACCESS BY INDEX ROWID| W_INT_ORG_D | 1 | 2 | 2 |00:00:00.01 | 3 | 0 | 0 | | | |
|* 20 | INDEX RANGE SCAN | W_INT_ORG_ORG_NUM | 1 | 2 | 2 |00:00:00.01 | 1 | 0 | 0 | | | |
|* 21 | BITMAP INDEX RANGE SCAN | W_GL_BALANCE_F_F4 | 2 | | 764 |00:00:00.01 | 390 | 0 | 0 | | | |
| 22 | BITMAP MERGE | | 1 | | 210 |00:00:03.12 | 15749 | 1421 | 0 | 57M| 7389K| 17M (3)|
| 23 | BITMAP KEY ITERATION | | 4 | | 16405 |00:00:15.36 | 15749 | 1421 | 0 | | | |
| 24 | TABLE ACCESS FULL | SYS_TEMP_0FD9D73B3_F97A325 | 4 | 572 | 2896 |00:00:00.05 | 16 | 6 | 0 | | | |
|* 25 | BITMAP INDEX RANGE SCAN | W_GL_BALANCE_F_F1 |2896 | | 16405 |00:00:24.99 | 15733 | 1415 | 0 | | | |
| 26 | VIEW | index$_join$_003 | 1 | 199K| 199K|00:00:02.50 | 737 | 1 | 0 | | | |
|* 27 | HASH JOIN | | 1 | | 199K|00:00:02.18 | 737 | 1 | 0 | 14M| 2306K| 17M (0)|
|* 28 | HASH JOIN | | 1 | | 199K|00:00:01.94 | 144 | 1 | 0 | 10M| 2639K| 13M (0)|
| 29 | BITMAP CONVERSION TO ROWIDS | | 1 | 199K| 199K|00:00:00.19 | 26 | 0 | 0 | | | |
| 30 | BITMAP INDEX FULL SCAN | W_GL_ACCOUNT_D_M1 | 1 | | 93 |00:00:00.01 | 26 | 0 | 0 | | | |
| 31 | BITMAP CONVERSION TO ROWIDS | | 1 | 199K| 199K|00:00:01.05 | 118 | 1 | 0 | | | |
| 32 | BITMAP INDEX FULL SCAN | W_GL_ACCOUNT_D_M10 | 1 | | 5791 |00:00:00.01 | 118 | 1 | 0 | | | |
| 33 | INDEX FAST FULL SCAN | W_GL_ACCOUNT_D_M18 | 1 | 199K| 199K|00:00:00.19 | 593 | 0 | 0 | | | |
Predicate Information (identified by operation id):
PLAN_TABLE_OUTPUT
2 - access("T91397"."ROW_WID"="ITEM_1")
6 - filter("T156337"."MCAL_PER_NAME_QTR"='2010 Q 1')
7 - access(ROWID=ROWID)
9 - access("T156337"."MCAL_PER_NAME_QTR"='2010 Q 1')
12 - access("T91573"."BALANCE_DT_WID"="C0")
19 - filter("T111515"."COMPANY_FLG"='Y')
20 - access("T111515"."ORG_NUM"='02000')
21 - access("T91573"."COMPANY_ORG_WID"="T111515"."ROW_WID")
25 - access("T91573"."BALANCE_DT_WID"="C0")
27 - access(ROWID=ROWID)
28 - access(ROWID=ROWID)
PLAN_TABLE_OUTPUT
Note
- star transformation used for this statement
78 rows selected.Can any suggest a way to improve the performance? Or even hint at a good place for me to start looking?
Please let me know if there is any additional information I can give.
-Joe -
Error: Setting the record status to 'NEW' after assigning a value
Hi everyone,
The user name is assigned programatically( like an Initial value) to a field in When New Form Instance and the record status is set back to NEW STATUS using set_record_property.
The value is seen in the field and the moment you enter into any of the fields in the form the value disapears. when you key in something and do a 'clear_form' you get a message 'You cannot create records here'.
Almost a similar problem with QUERY_STATUS for the records queried.
Can anyone help me out to overcome this problem?
Thanks.
BrijeshHi,
I think I went through similar problems some time ago.
Be careful with FORM STATUS (Query or Normal Mode) and RECORD STATUS (there are 4, as you know).
You cannot create new records in the Query mode. Find some descriptions about Form Status
in your online help.
I too had to think about it some time to understand it =)
Hope this helps.
Jan -
DCDIAG /test:dns result is pested here.
C:\Users\administrator.SUD>dcdiag /test:dns
Directory Server Diagnosis
Performing initial setup:
Trying to find home server...
Home Server = MUM-ADS-01
* Identified AD Forest.
Done gathering initial info.
Doing initial required tests
Testing server: Default-First-Site-Name\MUM-ADS-01
Starting test: Connectivity
......................... MUM-ADS-01 passed test Connectivity
Doing primary tests
Testing server: Default-First-Site-Name\MUM-ADS-01
Starting test: DNS
DNS Tests are running and not hung. Please wait a few minutes...
......................... MUM-ADS-01 passed test DNS
Running partition tests on : ForestDnsZones
Running partition tests on : DomainDnsZones
Running partition tests on : Schema
Running partition tests on : Configuration
Running partition tests on : sud
Running enterprise tests on : sud.in
Starting test: DNS
Test results for domain controllers:
DC: MUM-ADS-01.sud.in
Domain: sud.in
TEST: Basic (Basc)
Warning: The AAAA record for this DC was not found
TEST: Forwarders/Root hints (Forw)
Error: Root hints list has invalid root hint server:
a.root-servers.net. (198.41.0.4)
Error: Root hints list has invalid root hint server:
b.root-servers.net. (128.9.0.107)
Error: Root hints list has invalid root hint server:
c.root-servers.net. (192.33.4.12)
Error: Root hints list has invalid root hint server:
d.root-servers.net. (128.8.10.90)
Error: Root hints list has invalid root hint server:
e.root-servers.net. (192.203.230.10)
Error: Root hints list has invalid root hint server:
f.root-servers.net. (192.5.5.241)
Error: Root hints list has invalid root hint server:
g.root-servers.net. (192.112.36.4)
Error: Root hints list has invalid root hint server:
h.root-servers.net. (128.63.2.53)
Error: Root hints list has invalid root hint server:
i.root-servers.net. (192.36.148.17)
Error: Root hints list has invalid root hint server:
j.root-servers.net. (192.58.128.30)
Error: Root hints list has invalid root hint server:
k.root-servers.net. (193.0.14.129)
Error: Root hints list has invalid root hint server:
l.root-servers.net. (198.32.64.12)
Error: Root hints list has invalid root hint server:
m.root-servers.net. (202.12.27.33)
TEST: Delegations (Del)
Error: DNS server: sud-ad.sud.in. IP:<Unavailable>
[Missing glue A record]
TEST: Records registration (RReg)
Network Adapter
[00000006] Intel(R) PRO/1000 MT Network Connection:
Warning:
Missing AAAA record at DNS server 10.1.6.132:
MUM-ADS-01.sud.in
Warning:
Missing AAAA record at DNS server 10.1.6.132:
gc._msdcs.sud.in
Warning:
Missing AAAA record at DNS server 10.1.6.133:
MUM-ADS-01.sud.in
Warning:
Missing AAAA record at DNS server 10.1.6.133:
gc._msdcs.sud.in
Warning: Record Registrations not found in some network adapters
Summary of test results for DNS servers used by the above domain
controllers:
DNS server: 128.63.2.53 (h.root-servers.net.)
1 test failure on this DNS server
PTR record query for the 1.0.0.127.in-addr.arpa. failed on the DN
S server 128.63.2.53
DNS server: 128.8.10.90 (d.root-servers.net.)
1 test failure on this DNS server
PTR record query for the 1.0.0.127.in-addr.arpa. failed on the DN
S server 128.8.10.90
DNS server: 128.9.0.107 (b.root-servers.net.)
1 test failure on this DNS server
PTR record query for the 1.0.0.127.in-addr.arpa. failed on the DN
S server 128.9.0.107
DNS server: 192.112.36.4 (g.root-servers.net.)
1 test failure on this DNS server
PTR record query for the 1.0.0.127.in-addr.arpa. failed on the DN
S server 192.112.36.4
DNS server: 192.203.230.10 (e.root-servers.net.)
1 test failure on this DNS server
PTR record query for the 1.0.0.127.in-addr.arpa. failed on the DN
S server 192.203.230.10
DNS server: 192.33.4.12 (c.root-servers.net.)
1 test failure on this DNS server
PTR record query for the 1.0.0.127.in-addr.arpa. failed on the DN
S server 192.33.4.12
DNS server: 192.36.148.17 (i.root-servers.net.)
1 test failure on this DNS server
PTR record query for the 1.0.0.127.in-addr.arpa. failed on the DN
S server 192.36.148.17
DNS server: 192.5.5.241 (f.root-servers.net.)
1 test failure on this DNS server
PTR record query for the 1.0.0.127.in-addr.arpa. failed on the DN
S server 192.5.5.241
DNS server: 192.58.128.30 (j.root-servers.net.)
1 test failure on this DNS server
PTR record query for the 1.0.0.127.in-addr.arpa. failed on the DN
S server 192.58.128.30
DNS server: 193.0.14.129 (k.root-servers.net.)
1 test failure on this DNS server
PTR record query for the 1.0.0.127.in-addr.arpa. failed on the DN
S server 193.0.14.129
DNS server: 198.32.64.12 (l.root-servers.net.)
1 test failure on this DNS server
PTR record query for the 1.0.0.127.in-addr.arpa. failed on the DN
S server 198.32.64.12
DNS server: 198.41.0.4 (a.root-servers.net.)
1 test failure on this DNS server
PTR record query for the 1.0.0.127.in-addr.arpa. failed on the DN
S server 198.41.0.4
DNS server: 202.12.27.33 (m.root-servers.net.)
1 test failure on this DNS server
PTR record query for the 1.0.0.127.in-addr.arpa. failed on the DN
S server 202.12.27.33
Summary of DNS test results:
Auth Basc Forw Del Dyn RReg Ext
Domain: sud.in
MUM-ADS-01 PASS WARN FAIL FAIL PASS WARN n/a
......................... sud.in failed test DNSHi Meinolf,
Please find the IP Details as well as DNS test results.
C:\Users\Administrator.SCI>dcdiag /test:dns
Directory Server Diagnosis
Performing initial setup:
Trying to find home server...
Home Server = MDCDCDNS
* Identified AD Forest.
Done gathering initial info.
Doing initial required tests
Testing server: MDC-Powai\MDCDCDNS
Starting test: Connectivity
......................... MDCDCDNS passed test Connectivity
Doing primary tests
Testing server: MDC-Powai\MDCDCDNS
Starting test: DNS
DNS Tests are running and not hung. Please wait a few minutes...
ERROR: NO DNS servers for IPV6 stack was found
......................... MDCDCDNS passed test DNS
Running partition tests on : ForestDnsZones
Running partition tests on : DomainDnsZones
Running partition tests on : Schema
Running partition tests on : Configuration
Running partition tests on : sci
Running enterprise tests on : sci.com
Starting test: DNS
Test results for domain controllers:
DC: MDCDCDNS.sci.com
Domain: sci.com
TEST: Basic (Basc)
Warning: The AAAA record for this DC was not found
TEST: Records registration (RReg)
Network Adapter
[00000009] Microsoft Virtual Network Switch Adapter:
Warning:
Missing AAAA record at DNS server 10.64.7.32:
MDCDCDNS.sci.com
Warning:
Missing AAAA record at DNS server 10.64.7.32:
gc._msdcs.sci.com
Warning:
Missing AAAA record at DNS server 10.64.7.35:
MDCDCDNS.sci.com
Warning:
Missing AAAA record at DNS server 10.64.7.35:
gc._msdcs.sci.com
Warning:
Missing AAAA record at DNS server 10.20.33.72:
MDCDCDNS.sci.com
Warning:
Missing AAAA record at DNS server 10.20.33.72:
gc._msdcs.sci.com
Warning:
Missing AAAA record at DNS server 10.20.33.71:
MDCDCDNS.sci.com
Warning:
Missing AAAA record at DNS server 10.20.33.71:
gc._msdcs.sci.com
Warning: Record Registrations not found in some network adapters
MDCDCDNS PASS WARN PASS PASS PASS WARN n/a
......................... sci.com passed test DNS
C:\Users\Administrator.SCI>ipconfig /all
Windows IP Configuration
Host Name . . . . . . . . . . . . : MDCDCDNS
Primary Dns Suffix . . . . . . . : sci.com
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : sci.com
Ethernet adapter Local Area Connection 7:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : External Internal Virtual Network
Physical Address. . . . . . . . . : 00-14-4F-CA-83-AC
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
IPv4 Address. . . . . . . . . . . : 10.64.7.32(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 10.64.7.1
DNS Servers . . . . . . . . . . . : 10.64.7.32
10.64.7.35
10.20.33.72
10.20.33.71
NetBIOS over Tcpip. . . . . . . . : Disabled
Ethernet adapter Local Area Connection 6:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : TEAM : Team #1
Physical Address. . . . . . . . . : 00-14-4F-CA-83-AC
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Autoconfiguration IPv4 Address. . : 169.254.105.163(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.0.0
Default Gateway . . . . . . . . . :
NetBIOS over Tcpip. . . . . . . . : Enabled
Tunnel adapter Local Area Connection* 8:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : isatap.{2D5A4A27-298F-48E5-A376-EA886EF1E
42A}
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Tunnel adapter Local Area Connection* 9:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : isatap.{14FA7CD4-8B69-4C86-A58B-056793B7D
901}
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Please check and revert back for any queries..
Thanks...
Deva Self-trust is the first secret of success. -
Customizing the Enjoy PO document overview for Purchase Info Records (PIR)
Greetings!
I am looking to use purchase info records to store material pricing information but we donu2019t want to lose the document overview functionality that SAP delivers with the enjoy PO screens (ME21n, ME22n, ME23n).
Has anyone had success implementing user exit MEQUERY1 to customize the document overview so that a purchase info record query can be added to the document overview & the attributes of the purchase info record can be copied over to the PO?
Iu2019d be curious to know what solutions other SAP shops came up with.
Thanks.
Richard WortmannNick,
Thanks for the reply. We will have the source list generated for the purchase info records (PIRs) however the gap I'm looking to solve for is mainly for non-MRP material buys.
Our current business situation allows material handlers to run a query in the document overview to ID specific materials on a purchasing contract (aka outline agreement) and drag those materials to the shopping cart on the PO. This provides a very easy process for the buyer to ID materials & supplier relationships.
Since we are moving away from purchasing contracts we want to continue with the same drag and drop process but only allow PIR's to be selected in the query.
Looks like in OSS note 377180 SAP provides a user exit to implement this functionality (via MEQUERY1)- I'm just wondering if anyone has had success adding a PIR query to the document overview and creating POu2019s with reference to that query.
Thanks.
Rich Wortmann -
Dimension values display order and record details
Hi All,
I have explicitly ordered my dimension values to be in a logical order instead of alphabetical. Ex: Small, Medium, Large. This works great in the navigation tree but when I view a specific record and it has those 3 dimvals they are listed in alphabetical order.
Is there a when doing a record query to ask Endeca to respect the same display order as in the nav query?
Thanks,
LucWe are used to add two dummy records in each dimension.
We add the following data:
We use '-1' (surr-key) for Invalids and '-2' for Unknown.
Easy way to populate these dimensions is to add a script together with all objects when you release new functionality. Beware you use the same descriptions.
Even better is to think of a more general solution (more easy to maintain) and store these values in a support table. In such a table you will be able to add more columns to get more details per row. Use this reference table when you load youre dimension. Also you will find the opportunity to add more error handling cases. Especially when you add the dimension in this support table.
Regards
Moscowic
Maybe you are looking for
-
File Type Associations for JDev 10.1.2
Every time I start JDeveloper, I get the file type association dialog and the welcome screen. It would seem that wherever JDeveloper is trying to store the associations, it is unsuccessful - yet I receive no errors or indication of what the problem m
-
I have space for one display in my space challenged abode. I love the 27" imac and would like to connect it to my cable TV so I can take advantage of the killer display quality on the Imac. How do I do that?
-
Hello, we have several possibilities to show dynamic rows (table, row repeater, multi pane), is there any possibility to achieve this for dynamic columns? I have a table with two columns: - TEXT - VALUE I want to show this table in ONE line, is there
-
I want to get discount benefit as company enrollment
Hi, I am (name removed). I hope get a discount as enrolling my company. I work for GlobalFoundries. So, Would you help me out. Thank you Private information removed as required by the Terms of Service. Message was edited by: Admin Moderator
-
[kde] "Only show tasks from the current desktop" doesn't work for max
Hi, I have two monitor setup (laptop + main monitor) and I would love to use "Only show tasks from the current desktop" option in KDE Task Manager but for some strange reason it doesn't work for me. Well, it works but only partially - for restored/un