-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript3c.sql
53 lines (45 loc) · 838 Bytes
/
script3c.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
set sqlformat ansiconsole
create or replace procedure woo_proc3
( p_result out sys_refcursor
)
is
begin
open p_result for
select * from my_customers_vw;
end;
/
create or replace function woo_func3
return sys_refcursor
is
p_result sys_refcursor;
begin
open p_result for
select * from my_customers_vw;
return p_result;
end;
/
begin
ords.enable_object
( p_object => 'WOO_PROC3'
, p_object_type => 'PROCEDURE'
, p_object_alias => 'proc3'
);
commit;
end;
/
begin
ords.enable_object
( p_object => 'WOO_FUNC3'
, p_object_type => 'FUNCTION'
, p_object_alias => 'func3'
);
commit;
end;
/
select parsing_object, object_alias, type
from user_ords_enabled_objects
/
select method, base_path, pattern, name
from user_ords_services
/
exit;