troubleshooting Question

Useage of GV$

Avatar of GNOVAK
GNOVAKFlag for United States of America asked on
Oracle Database
8 Comments1 Solution301 ViewsLast Modified:
I have PLSQL CODE that I inhertied and am trying to understand.  In the Package Spec, there is a cursor defined and a gv$ var:

where index_type = 'NORMAL';

gv$nt_type     abp1.nt_type%type;

If my understanding is correct, the GV$IND collects the indexes and is global in scope
The gv$nt_type is global in scope and is of the same type as abp1.nt_type.

In looking through the package body, I can not find any reference to GV$IND.
I find one reference in a line that sets gv$_nt_type:= '11' but is not present in the rest of the package body.
I'm tempted to delete the cursor and the gv$nt_type from the code since it doesnt seem to be used anywhere. I've looked in all the objects for that schema and cant see any references to these at all.

Is there something going on behind the scenes potentially, or do I have to look anywhere else?
Join our community to see this answer!
Unlock 1 Answer and 8 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros