Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Export your saved SQL

user-skyworker_4418598Jun 20 2017 — edited Jun 26 2017

I've written a lot of code blocks in the Saved SQL portion of the Command Processor in ApEx 5.1. I'd like to be able to export all of it. It's got to be stored some place in the database. Is it possible to find it?

I tried the below code to get a row count of all user tables. I figured I could find the table with the same number of Saved SQL blocks but it didn't work. Any ideas? Thank you.

Bill

declare

cursor c1 is select * from dictionary where table_name like 'USER%';

p_count number(5);

p_sql varchar2(300);

begin

for a1 in c1 loop

p_sql := 'select count(1) from ' || a1.table_name;

execute immediate p_sql into p_count;

if p_count > 0 then

htp.p(a1.table_name || ' - ' || p_count);

end if;

end loop;

end;

This post has been answered by fac586 on Jun 20 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 24 2017
Added on Jun 20 2017
6 comments
442 views