File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -42,17 +42,23 @@ whenever sqlerror exit failure rollback
42
42
whenever oserror exit failure rollback
43
43
44
44
prompt &&sep
45
+ declare
46
+ l_object varchar2 (200 );
45
47
begin
46
- execute immediate q' [begin dbms_output.put_line(' User &&utplsql_v2_owner owns utPLSQL - version ' ||&&utplsql_v2_owner..utplsql.version()); end;]' ;
48
+ l_object := dbms_assert .sql_object_name (' &&utplsql_v2_owner..utplsql' );
49
+ execute immediate q' [begin dbms_output.put_line(' User &&utplsql_v2_owner owns utPLSQL v2' ); end;]' ;
47
50
exception
48
51
when others then
49
52
raise_application_error(- 20000 , ' User &&utplsql_v2_owner does not own utPLSQL v2 or current user(' || user|| ' ) does not have privileges to access it.' );
50
53
end;
51
54
/
52
55
53
56
prompt &&sep
57
+ declare
58
+ l_object varchar2 (200 );
54
59
begin
55
- execute immediate q' [begin dbms_output.put_line(' User &&utplsql_v3_owner owns ' ||&&utplsql_v3_owner..ut.version()); end;]' ;
60
+ l_object := dbms_assert .sql_object_name (' &&utplsql_v3_owner..ut' );
61
+ execute immediate q' [begin dbms_output.put_line(' User &&utplsql_v3_owner owns utPLSQL v3' ); end;]' ;
56
62
exception
57
63
when others then
58
64
raise_application_error(- 20000 , ' User &&utplsql_v3_owner does not own utPLSQL v3 or current user(' || user|| ' ) does not have privileges to access it.' );
You can’t perform that action at this time.
0 commit comments