Skip to Main Content

SQL & PL/SQL

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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Oracle - how to find columns in a table + stored procedures dependent on th

725293Sep 30 2009 — edited Oct 1 2009
Scenario:

I need to list all the columns in a table1 and all stored procedures that depends on those columns of this table1. I need to populate column name and stored procedures to a new table.

I created new_table(col1, sProc) and tried to populate the column name and respective stored procedure on this new_table. Code I wrote is given below:

Declare
Beginfor i in (select column_name from user_tab_columns where lower(table_name) like 'table1') loop
insert into new_table

select i.column_name, name from user_source where lower(text) like '%' || i.column_name || '%';
commit;
end loop;
end;

Result: The scripts run successfully but the no data is populated on this new_table.

Stress: I tried to solve it for 1 whole day and could not figure it out. Any help on this would be greately appreciated. Thank you once again.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 29 2009
Added on Sep 30 2009
4 comments
5,099 views