antoine_mc1
Follow / 15 Feb 2018 at 6:30am / Toad for Oracle
Latest post by on 16 Feb 2018 at 5:03am

result set or all rows fetched , sys_refcursor

Expand content
Please could you help me? I need to print the result set or all rows fetched about the query: CREATE OR REPLACE PROCEDURE get_emp_rs (p_deptno IN hr.employees.department_id%TYPE, p_recordset OUT...

Please could you help me?

I need to print the result set or all rows fetched about the query:

CREATE OR REPLACE
PROCEDURE get_emp_rs
(p_deptno IN hr.employees.department_id%TYPE,
p_recordset OUT SYS_REFCURSOR) AS
BEGIN
OPEN p_recordset FOR
SELECT first_name,
salary,
department_id
FROM hr.employees
WHERE department_id = p_deptno
ORDER BY first_name;
END get_emp_rs;
/

declare
v varchar2(4000);
z varchar2(4000);
begin
z:=get_emp_rs( 90, v);
dbms_output.put_line(z);
end;
/

ORA-06550: line 5, column 6:

PLS-00222: no function with name 'GET_EMP_RS' exists in this scope
ORA-06550: line 5, column 3:

I need the result set for example:

Steven  24000  90
Neena  17000  90
Lex       18000  90

Thanks a lot  :)

219 2 / Create an account to join the discussion.
antoine_mc1
Follow / 30 Jan 2018 at 6:11am / Toad for Oracle
Latest post by on 30 Jan 2018 at 8:10am

lists in plsql oracle

Expand content
Hello, Obviously this example is working declare cursor c_salary is select first_name, salary from hr.employees where salary in(9000, 6000, 4800); begin for s in c_salary loop dbms_output.put_line...

Hello,

Obviously this example is working

declare
 cursor c_salary is
 select first_name, salary from hr.employees 
 where salary in(9000, 6000, 4800);
begin
 for s in c_salary loop 
  dbms_output.put_line(s.first_name || ' ' || s.salary);
 end loop;
end;

Alexander 9000
Bruce 6000
David 4800
Valli 4800
Daniel 9000
Peter 9000
Allan 9000
Pat 6000

PL/SQL procedure successfully completed.

But I need another example which I can not see the data obtained

set serveroutput on;
declare
v_salary varchar2(50):= '9000,6000,4800'; -- I NEED THIS LIST
cursor c_salary is
select first_name, salary from hr.employees
where to_char(salary) in(v_salary);
begin
for s in c_salary loop
dbms_output.put_line(s.first_name || ' ' || s.salary);
end loop;
end;

PL/SQL procedure successfully completed.

I can not see the printing or output of data, do you have any idea that allows me to see the printing of data

Thanks a lot

:)

Unanswered 470 2 / Create an account to join the discussion.
Damir Vadas
Follow / 26 Jan 2018 at 12:14pm / Toad for Oracle
Latest post by on 29 Jan 2018 at 3:32am

Cost shows 0 when is actually Tera cost number?

501 1 / Create an account to join the discussion.
JDL_FRA
Follow / 4 Sep 2008 at 2:43pm / Toad for Oracle
Latest post by on 26 Jan 2018 at 10:57am

Alter session statements

Expand content
Hi I would like to test alter statement such as alter session set hash_join_enabled = false; alter session set "_optimizer_sortmerge_join_enabled" = false; as they will typically alter the explain...
Hi I would like to test alter statement such as
alter session set hash_join_enabled = false;
alter session set "_optimizer_sortmerge_join_enabled" = false;
as they will typically alter the explain plan of the SQL.
However as they are not listed in the Alter statemet nwwindows they are not available , is ther a workaround ?
7159 19 / Create an account to join the discussion.
Damir Vadas
Follow / 30 Nov 2017 at 2:18pm / Toad for Oracle
Latest post by on 7 Dec 2017 at 12:07pm

terminate option in second run

Expand content
SQL Optimizer 9.2.2.270 Add 5 scenarios and some number of bind sets. Run all 5 of them with option toi terminate according 110% of all time against original one Finish testing. Save Close Optimitzer...

SQL Optimizer 9.2.2.270

Add 5 scenarios and some number of bind sets.

Run all 5 of them with option toi terminate according 110% of all time against original one

Finish testing.

Save

Close Optimitzer

Open same test and now check original and only other 1-2 others.

Now there is no same termination policy as it was run on first run?.

Why?

1153 7 / Create an account to join the discussion.
Hans-Werner Schlote
Follow / 16 Nov 2017 at 12:21pm / Toad for Oracle
Latest post by on 22 Nov 2017 at 8:19am

Optimize context dependent queries

Expand content
Let's say we have a view depending on a package variable like this: <quote> CREATE OR REPLACE PACKAGE ptest AS ps_login VARCHAR2(100 CHAR); FUNCTION get_login RETURN VARCHAR2; PROCEDURE...

Let's say we have a view depending on a package variable like this:

<quote>

CREATE OR REPLACE PACKAGE ptest
AS
ps_login VARCHAR2(100 CHAR);

FUNCTION get_login
RETURN VARCHAR2;

PROCEDURE set_login(is_login IN VARCHAR2);
END ptest;
/


CREATE OR REPLACE PACKAGE BODY ptest
AS
PROCEDURE set_login(is_login IN VARCHAR2)
AS
BEGIN
ps_login := is_login;
END set_login;

FUNCTION get_login
RETURN VARCHAR2
AS
BEGIN
RETURN ps_login;
END get_login;
END ptest;
/

CREATE OR REPLACE VIEW v$test
AS
SELECT ptest.get_login FROM dual;

</quote>

Now I want to optimize a query to v$test like 

SELECT * FROM v$test;

Of course this is a very simple example.

The basic question is how to optimize context dependent queries with sql optimizer?

Answered 2402 6 / Create an account to join the discussion.
Damir Vadas
Follow / 20 Nov 2017 at 8:05am / Toad for Oracle
Latest post by on 22 Nov 2017 at 7:35am

Bug with graph after several alter scenario / bind set

Expand content
SQL Opt 9.2.2 (latest production). This happened when you alter several times scenarios and bind sets...graph shows what it wants (not showing real values). This happened when you test Alt12 and Org...

SQL Opt 9.2.2 (latest production).

This happened when you alter several times scenarios and bind sets...graph shows what it wants (not showing real values).
This happened when you test Alt12 and Org and do not touch Alt9 in this test.
Tried to switch between Performance variation and "overal", but seems that "SQL Optim" shows only Alt 9 and nothing more-like nothing exists.

Brg

Damir

1238 6 / Create an account to join the discussion.
Hans-Werner Schlote
Follow / 8 Nov 2017 at 2:31pm / Toad for Oracle
Latest post by on 13 Nov 2017 at 6:50am

ORA-01039

Expand content
SQL Optimizer for Oracle 9.2.2 SELECT owner, synonym_name, table_owner, table_name FROM dba_synonyms dba_syns WHERE table_owner = user AND (NOT EXISTS -- no target table/view (SELECT 0 FROM user_views...

SQL Optimizer for Oracle 9.2.2

SELECT owner,
synonym_name,
table_owner,
table_name
FROM dba_synonyms dba_syns
WHERE table_owner = user
AND (NOT EXISTS -- no target table/view
(SELECT 0
FROM user_views uv
WHERE uv.view_name = dba_syns.table_name
UNION
SELECT 0
FROM user_tables ut
WHERE ut.table_name = dba_syns.table_name
UNION
SELECT 0
FROM user_objects uo
WHERE uo.object_name = dba_syns.table_name)
OR NOT EXISTS -- no grant for target table/view
(SELECT 0
FROM table_privileges tp
WHERE tp.grantee = dba_syns.owner
AND tp.table_name = dba_syns.table_name));

returns ORA-01039 while getting plan

The statement runs absolutely well when executed in TOAD for Oracle 12.12.

Any ideas?

Answered 1010 2 / Create an account to join the discussion.
Damir Vadas
Follow / 13 Oct 2017 at 11:20am / Toad for Oracle
Latest post by on 19 Oct 2017 at 12:18pm

Sord order when scenarios were run in multiple times

Expand content
SQL Optimizer 9.2.2 I think I run one case in several times (parts). Then, when i wanted to sort by time, it was impossible to get the proper order. Why is this happening? brg Damir

SQL Optimizer 9.2.2

I think I run one case in several times (parts). Then, when i wanted to sort by time, it was impossible to get the proper order.

Why is this happening?

brg
Damir

Unanswered 1451 9 / Create an account to join the discussion.
Damir Vadas
Follow / 10 Aug 2017 at 1:34pm / Toad for Oracle
Latest post by on 15 Sep 2017 at 6:21am

How to remove scenarios

Expand content
Hi, SQL Opt 9.2.2 x64. Why can't I remove some scenarios in overall performance graph to have ability like in "performance variation" type where I see only clicked one? No way to...

Hi,

SQL Opt 9.2.2 x64.

Why can't I remove some scenarios in overall performance graph to have ability like in "performance variation" type where I see only clicked one?

No way to remove some as you see.

Brg

Damir

Unanswered 1490 5 / Create an account to join the discussion.
IbkIfe
Follow / 13 Sep 2017 at 5:23pm / Toad for Oracle
Latest post by on 13 Sep 2017 at 9:09pm

PLS-00103: encountered the symbol

Expand content
BEGIN FUNCTION coyname ( sql_id IN planchangetbl . sql_id% TYPE) RETURN VARCHAR2 IS echange planchangetbl . sql_id% TYPE; BEGIN select distinct s . sql_id , s . plan_hash_value , b . begin_interval_time...

BEGIN

FUNCTION coyname(sql_id IN planchangetbl.sql_id%TYPE)

RETURN VARCHAR2

IS

echange planchangetbl.sql_id%TYPE;

BEGIN

select distinct s.sql_id, s.plan_hash_value, b.begin_interval_time, b.end_interval_time,

s.min_snap_id, s.max_snap_id INTO echange from sys.hashchange s, sys.planchangetbl b

where s.sql_id = b.sql_id

and b.snap_id BETWEEN s.min_snap_id AND s.max_snap_id

RETURN echange;

EXCEPTION

WHEN NO_DATA_FOUND

THEN

RETURN NULL;

END;

END;

1298 2 / Create an account to join the discussion.
Damir Vadas
Follow / 10 Aug 2017 at 1:29pm / Toad for Oracle
Latest post by on 11 Aug 2017 at 3:35am

Change graph line colors

Expand content
Hi, SQL Opt 9.2.2 x64. Many times if you are unlucky, result graph have similar coluors so it is hard to see the difference in graph: Is there any way to change colours? Brg Damir

Hi,

SQL Opt 9.2.2 x64.

Many times if you are unlucky, result graph have similar coluors so it is hard to see the difference in graph:

Is there any way to change colours?
Brg

Damir

Answered 1379 1 / Create an account to join the discussion.
Damir Vadas
Follow / 10 Aug 2017 at 10:27am / Toad for Oracle
Latest post by on 11 Aug 2017 at 3:21am

Autosave option, is it existing?

Expand content
Hi, When dealing with lots of scenarios or lots of "different binds values" I noticed that SQL Optimizer hang sometimes (lost connection, connection timeout) or even worse, test environment...

Hi,

When dealing with lots of scenarios or lots of "different binds values" I noticed that SQL Optimizer hang sometimes (lost connection, connection timeout) or even worse, test environment db is restarted.

In all of those cases previous testing results (which may be bigger) are lost.

So I am wondering if there is existing option, or it could be added an option to save results (based on user choice). I.e.

  • Save after completed scenario
  • Save after n executions
  • Save after n minutes (on first available moment after)

In this case testing of bigger sessions would be highly easier.

Brg
Damir

P.S.

9.2.2 has fixed bug with ANSI encoding (non UTF 8) file recognition-now is automatic
Great.

1370 1 / Create an account to join the discussion.
T. Ung
Follow / 12 Jul 2017 at 4:13pm / Toad for Oracle
Latest post by on 25 Jul 2017 at 12:03pm

Why, How and When to concatenate '' to column values for comparisons...

Expand content
Hello All, I am new to using SQL Optimizer for Oracle. I am trying to understand why, how and when to concatenating column values with single quotes ('') to improve or optimize SQL performance...

Hello All, 

I am new to using SQL Optimizer for Oracle. I am trying to understand why, how and when to concatenating column values with single quotes ('') to improve or optimize SQL performance and cost?

For example, I have the following excerpt of the original and optimized query suggested by the Optimizer. An alternative query introduced 2 instances involving concatenation using the pipes ("||") operator and appending '' to column values for comparison.

  1. W.WOCLASS || '' = 'WORKORDER'
  2. W.OWNERGROUP = P2.PERSONGROUP || ''

What's the purpose of concatenating '' to values for comparisons? Is it because a column used in the comparison could be NULL thus adding a '' char to the nullable column implicitly makes the comparison quicker by not having to check for NULLs?

Thanks in advance.

Table WORKORDER

Column OWNERGROUP has DataType = VARCHAR2 (20 Byte) and NULL? = YES
Column WOCLASS has DataType = VARCHAR2 (16 Byte) and NULL? = NO

Table PERSONGROUP

Column PERSONGROUP has DataType = VARCHAR2 (20 Byte) and NULL?= NO

SQL Optimizer for Oracle v.8.7.0.2431

Excerpt of Original SQL:

SELECT (SUBSTR(P.DESCRIPTION, 1, INSTR(P.DESCRIPTION, '-') - 2)) SITEID,

W.PERSONGROUP WORKGROUP,
SUBSTR(W.WORKTYPE, 1, 2) WORKTYPE,
ROUND(AVG(W.ACTLABHRS), 2) HOURS

FROM WORKORDER W

JOIN PERSONGROUP P

ON P.OXY_PERSONGROUPTYPE LIKE 'A%'  

AND W.OWNERGROUP = P.PERSONGROUP 

WHERE W.WOCLASS = 'WORKORDER'

AND W.ISTASK = 0
AND W.STATUS IN ('MCOMP', 'COMP', 'CLOSE')
AND SUBSTR (W.WORKTYPE, 1, 2) < > 'NM'
AND W.WORKTYPE IS NOT NULL
AND W.STATUSDATE > SYSDATE - 365

GROUP BY (SUBSTR (P.DESCRIPTION, 1, INSTR (P.DESCRIPTION, '-') - 2)),

W.PERSONGROUP, SUBSTR (W.WORKTYPE, 1, 2)

Excerpt of Optimized Alternative:

SELECT SUBSTR(P2.DESCRIPTION, 1, INSTR(P2.DESCRIPTION, '-') - 2) SITEID,

W.PERSONGROUP WORKGROUP,
SUBSTR(W.WORKTYPE, 1, 2) WORKTYPE,
ROUND(AVG(W.ACTLABHRS), 2) HOURS

FROM PERSONGROUP P2,

WORKORDER W

WHERE W.WOCLASS || '' = 'WORKORDER'

AND W.ISTASK = 0
AND W.STATUS IN ('MCOMP', 'COMP', 'CLOSE')
AND SUBSTR (W.WORKTYPE, 1, 2) <> 'NM'
AND W.WORKTYPE IS NOT NULL
AND W.STATUSDATE > SYSDATE - 365
AND P2.OXY_PERSONGROUPTYPE LIKE 'A%'
AND W.OWNERGROUP = P2.PERSONGROUP || ''

GROUP BY SUBSTR (P2.DESCRIPTION, 1, INSTR (P2.DESCRIPTION, '-') - 2),

W.PERSONGROUP, SUBSTR (W.WORKTYPE, 1, 2)

Answered 1453 4 / Create an account to join the discussion.
Srivathsava
Follow / 25 Apr 2017 at 3:18pm / Toad for Oracle
Latest post by on 21 Jul 2017 at 7:52am

How the 'use_merge' hint works

Expand content
Hi Experts, We have seen a view in our account which is as below (Created by other resource long back) select /*+ use_merge(sub,seg1) PARALLEL(sub) */ sub."CATEGORY",sub."JE_BATCH_NAME"...

Hi Experts,

We have seen a view in our account which is as below (Created by other resource long back)

select /*+ use_merge(sub,seg1) PARALLEL(sub) */
sub."CATEGORY",sub."JE_BATCH_NAME",sub."JE_HEADER_DESCRIPTION",sub."JE_HEADER_NAME",sub."JE_LINE_DESCRIPTION",sub."DESCRIPTION",sub."NAME",sub."LOCATION",sub."TRANSACTION_NUMBER",sub."TRANSACTION_DATE",sub."DIST_LINE_NUMBER",sub."PO_NUMBER",sub."PAYMENT_NUMBER",sub."SALES_ORDER",sub."INVOICE_PAYMENT_STATUS",sub."CURRENCY_CODE",sub."EXCHANGE_RATE",sub."JE_ACCOUNTED_DR",sub."JE_ACCOUNTED_CR",sub."AMOUNT",sub."STATUS",sub."FISCAL_PERIOD",sub."FISCAL_YEAR",sub."PERIOD_NAME",sub."EFFECTIVE_DATE",sub."JE_SOURCE",sub."JE_CATEGORY",sub."TRANSACTION_TYPE",sub."DOCUMENT_NAME",sub."GL_ACCOUNT",sub."COMPANY",sub."DEPARTMENT",sub."ACCOUNT",sub."PROJECT",sub."PRODUCT",sub."CUSTOMER",sub."GL_DISTRIBUTION_DATE",sub."POSTED_DATE",sub."LAST_BUILD_DATE",sub."JE_BATCH_ID",sub."JE_HEADER_ID",sub."JE_LINE_NUM",sub."CODE_COMBINATION_ID",sub."AP_INVOICE_ID",sub."INVOICE_DISTRIBUTION_ID",sub."CUSTOMER_TRX_ID",sub."CUSTOMER_TRX_LINE_ID",sub."PO_HEADER_ID",sub."PO_LINE_ID",sub."ROW_ID",
seg1.description Company_Desc,
seg2.description Department_Desc,
seg3.description Account_Desc,
seg4.description Project_Desc,
seg5.description Product_Desc
from
apps.xx_fnd_flex_desc_v seg1,
apps.xx_fnd_flex_desc_v seg2,
apps.xx_fnd_flex_desc_v seg3,
apps.xx_fnd_flex_desc_v seg4,
apps.xx_fnd_flex_desc_v seg5,
apps.xx_gl_subledger_mv sub
where
sub.company = seg1.flex_value
and seg1.flex_value_set_id = 1003775
and sub.department = seg2.flex_value
and seg2.flex_value_set_id = 1003774
and sub.account = seg3.flex_value
and seg3.flex_value_set_id = 1002347
and sub.project = seg4.flex_value
and seg4.flex_value_set_id = 1002348
AND SUB.PRODUCT = SEG5.FLEX_VALUE
and seg5.flex_value_set_id = 1002349

But, I am not sure how this hint works. Can anyone please help me on how this hint works. I googled, but I didn't understood :(

Thanks in Advance

Unanswered 1655 2 / Create an account to join the discussion.
Damir Vadas
Follow / 17 Jul 2017 at 11:32am / Toad for Oracle
Latest post by on 18 Jul 2017 at 9:59am

SQL Optimizer 9.2.2

Expand content
Hi guys from SQL Optimizer, Just installed new version (SQL Optimizer 9.2.2) and may say only compliments. Fixed avg LIO (binds sets), execution thread is smooth, better performance by eye, stability...

Hi guys from SQL Optimizer,

Just installed new version (SQL Optimizer 9.2.2) and may say only compliments. Fixed avg LIO (binds sets), execution thread is smooth, better performance by eye, stability improved...great, great work.

Just this.

Brg
Damir

1433 1 / Create an account to join the discussion.
Damir Vadas
Follow / 17 Jul 2017 at 12:19pm / Toad for Oracle
Latest post by on 18 Jul 2017 at 9:57am

9.2.2 export binds set result in excel bug

Expand content
Hi SQL Optimizer 9.2.2 x64 (last official). When exporting general results into Excel, sheet has unnecessary grids drawings. This was not a case in 9.2.0 :-) Brg Damir

Hi

SQL Optimizer 9.2.2 x64 (last official).

When exporting general results into Excel, sheet has unnecessary grids drawings. This was not a case in 9.2.0

:-)

Brg
Damir

1219 1 / Create an account to join the discussion.
Damir Vadas
Follow / 11 Jul 2017 at 10:24am / Toad for Oracle
Latest post by on 11 Jul 2017 at 1:37pm

How to SQL Optimizer update?

Expand content
SQL Optimizer 9.2.0 x64 on Win7 I have license which allows me to make some updates. When I Open SQL Optimizer I get: When I click "Yes" I get this (look the opened file is local)...and...

SQL Optimizer 9.2.0 x64 on Win7

I have license which allows me to make some updates.

When I Open SQL Optimizer I get:

When I click "Yes" I get this (look the opened file is local)...and no way to get where is the update???

What to do to make update possible?

Brg

Damir

Answered 1801 10 / Create an account to join the discussion.
Damir Vadas
Follow / 26 Jun 2017 at 7:20am / Toad for Oracle
Latest post by on 29 Jun 2017 at 1:08pm

Really "static" SQL based execution

Expand content
Hi, Whenever you choose execution type (dynamic or static) on a lower value it is basically "dynamic". Because it generates hint by which you lately make some statistic analyses for each...

Hi,

Whenever you choose execution type (dynamic or static) on a lower value it is basically "dynamic".

Because it generates hint by which you lately make some statistic analyses for each execution. Here is brief case of mine words (taken while SQL Optimizer was executing):

SQL>@sql_id 1 72w638vps8zs1

SQL_FULLTEXT
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
select /*+ Set 40_00000000*624533 */ NVL(TOTAL_POINTS_BALANCE, 0)
  from CLUB_BILL_SUBSCRIBER
 where MEMBER_ID = :b1
   and CLUB_CODE = :b2
   and BAN = :b3
   and SUBSCRIBER_NO = :b4
   and BEN = :b5
   and BILL_SEQ_NO = (select /*+ USE_MERGE(B,CBS) */ max(CBS.BILL_SEQ_NO)
                        from CLUB_BILL_SUBSCRIBER CBS,
                             BILL B
                       where CBS.MEMBER_ID = :b1
                         and CBS.CLUB_CODE = :b2
                         and CBS.BAN = :b3
                         and CBS.SUBSCRIBER_NO = :b4
                         and CBS.BEN = :b5
                         and CBS.BAN = B.BAN
                         and CBS.BILL_SEQ_NO = B.BILL_SEQ_NO
                         and CBS.BEN = B.BEN
                         and B.CLUB_CALCULATION_STATUS = 'S')


Current sessions run that sql

no rows selected


gv$sql data ...

 IID  CH PLAN_HASH_V         EXECS         TIME Sleep         ROWS   AVG TIME Sleep     AVG ROWS          AVG LIO      AVG CPU Sleep LAST_LOAD      LAST_ACTIVE    SH SQL_PROFILE                  BA BS
---- --- ----------- ------------- ---------------- ------------ -------------- ------------ ---------------- ---------------- -------------- -------------- -- ---------------------------- -- --
   1   0  2570093969             1          0.96700            1        0.96656        1.000        258.00000        0.0030000 06-23/14:59:19 06-23/14:59:20 Y                               N  N


@sql_id [inst_id] [sql_id]
SQL>@sql_id 1 7pfurkfvyytrj

SQL_FULLTEXT
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
select /*+ Set 43_00000000*624610 */ NVL(TOTAL_POINTS_BALANCE, 0)
  from CLUB_BILL_SUBSCRIBER
 where MEMBER_ID = :b1
   and CLUB_CODE = :b2
   and BAN = :b3
   and SUBSCRIBER_NO = :b4
   and BEN = :b5
   and BILL_SEQ_NO = (select /*+ USE_MERGE(B,CBS) */ max(CBS.BILL_SEQ_NO)
                        from CLUB_BILL_SUBSCRIBER CBS,
                             BILL B
                       where CBS.MEMBER_ID = :b1
                         and CBS.CLUB_CODE = :b2
                         and CBS.BAN = :b3
                         and CBS.SUBSCRIBER_NO = :b4
                         and CBS.BEN = :b5
                         and CBS.BAN = B.BAN
                         and CBS.BILL_SEQ_NO = B.BILL_SEQ_NO
                         and CBS.BEN = B.BEN
                         and B.CLUB_CALCULATION_STATUS = 'S')


Current sessions run that sql

no rows selected


gv$sql data ...

 IID  CH PLAN_HASH_V         EXECS         TIME Sleep         ROWS   AVG TIME Sleep     AVG ROWS          AVG LIO      AVG CPU Sleep LAST_LOAD      LAST_ACTIVE    SH SQL_PROFILE                  BA BS
---- --- ----------- ------------- ---------------- ------------ -------------- ------------ ---------------- ---------------- -------------- -------------- -- ---------------------------- -- --
   1   0  2570093969             1          1.56600            1        1.56574        1.000        360.00000        0.0040000 06-23/14:59:26 06-23/14:59:27 Y                               N  N


@sql_id [inst_id] [sql_id]
SQL>

Mine question is to introduce "full static on server" execution type, which could be used ONLY in bind sets execution. This would mean to leave query as it is and just change binds sets in execution and make one sql calculation

Why?

In this case 100 of executions will have the one entry in gv$sql, this would be easy to find in ASH, AWR or parallel monitoring and on the end will be really summary for binds set use-like it is in real life-one sql_id for all executions.

Once again, stat for such a query would be only possible in binds set usage, will not have stat for each execution but for summary only.

Is that possible?

Thx

Damir

1639 8 / Create an account to join the discussion.
Damir Vadas
Follow / 27 Jun 2017 at 6:33am / Toad for Oracle
Latest post by on 28 Jun 2017 at 5:48pm

How to save test results for several scenarios in one Excel

Expand content
Hi, when have several scenarios, until now I was going into each and save each testing results one by one into separate Excel: How to do all in on Excel with each scenario in own sheet? Brg Dami...

Hi,

when have several scenarios, until now I was going into each and save each testing results one by one into separate Excel:

How to do all in on Excel with each scenario in own sheet?
Brg
Damir

Answered 1320 2 / Create an account to join the discussion.