Skip to content

Commit 55b6091

Browse files
authored
Create create-spa-task.sql
1 parent ab0cb5d commit 55b6091

File tree

1 file changed

+16
-0
lines changed
  • data-platform/core-converged-db/real-application-testing/sql-performance-analyzer/scripts-spa

1 file changed

+16
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
REM Script create-spa-task.sql
2+
REM Create a SQL Performance Analyzer task
3+
4+
-- drop existing task if required
5+
-- execute dbms_sqlpa.drop_analysis_task(task_name => '&%taskname%');
6+
7+
-- create task, add STS name and owner of the STS
8+
-- print task name
9+
10+
set serveroutput on
11+
declare tname varchar2(100);
12+
begin
13+
tname := dbms_sqlpa.create_analysis_task(sqlset_name => '&STSname', sqlset_owner=>'DWH_DATA');
14+
dbms_output.put_line( 'task name: ' || tname);
15+
end;
16+
/

0 commit comments

Comments
 (0)