Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 766af11

Browse files
authored
Update proftab.sql
1 parent a8a0093 commit 766af11

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

source/core/coverage/proftab.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ begin
3333
select count(*) into l_tab_exist from
3434
(select table_name from all_tables where table_name = 'PLSQL_PROFILER_UNITS' and owner = sys_context('USERENV','CURRENT_SCHEMA')
3535
union all
36-
select synonym_name from user_synonyms where synonym_name = 'PLSQL_PROFILER_UNITS' and owner = sys_context('USERENV','CURRENT_SCHEMA'));
36+
select synonym_name from all_synonyms where synonym_name = 'PLSQL_PROFILER_UNITS' and owner = sys_context('USERENV','CURRENT_SCHEMA'));
3737
if l_tab_exist = 0 then
3838
execute immediate q'[create table plsql_profiler_units
3939
(
@@ -64,7 +64,7 @@ begin
6464
select count(*) into l_tab_exist from
6565
(select table_name from all_tables where table_name = 'PLSQL_PROFILER_DATA' and owner = sys_context('USERENV','CURRENT_SCHEMA')
6666
union all
67-
select synonym_name from user_synonyms where synonym_name = 'PLSQL_PROFILER_DATA' and owner = sys_context('USERENV','CURRENT_SCHEMA'));
67+
select synonym_name from all_synonyms where synonym_name = 'PLSQL_PROFILER_DATA' and owner = sys_context('USERENV','CURRENT_SCHEMA'));
6868
if l_tab_exist = 0 then
6969
execute immediate q'[create table plsql_profiler_data
7070
(
@@ -96,7 +96,7 @@ begin
9696
select count(*) into l_seq_exist from
9797
(select sequence_name from all_sequences where sequence_name = 'PLSQL_PROFILER_RUNNUMBER' and sequence_owner = sys_context('USERENV','CURRENT_SCHEMA')
9898
union all
99-
select synonym_name from user_synonyms where synonym_name = 'PLSQL_PROFILER_RUNNUMBER' and owner = sys_context('USERENV','CURRENT_SCHEMA'));
99+
select synonym_name from all_synonyms where synonym_name = 'PLSQL_PROFILER_RUNNUMBER' and owner = sys_context('USERENV','CURRENT_SCHEMA'));
100100
if l_seq_exist = 0 then
101101
execute immediate q'[create sequence plsql_profiler_runnumber start with 1 nocache]';
102102
dbms_output.put_line('Sequence PLSQL_PROFILER_RUNNUMBER created');

0 commit comments

Comments
 (0)