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!

Replacement for USER_IND_EXPRESSIONS without LONG

dhalekDec 17 2015 — edited Jan 19 2016

Hello out there,

i'd like to compare the indexes of two databases via database link. Recently I discovered a couple of function based indexes so I have to extend my script to also use USER_IND_EXPRESSIONS but the interesting column COLUMN_EXPRESSION is of datatype LONG, so that I cannot apply substr or any other function to it.

So is there any other data dictionary view I could use?

My script does something like this:

select i.index_name, i.table_name, i.uniqueness, substr(c.column_name, 1, 30) spalte

from user_indexes@dblink i , user_ind_columns@dblink c

where i.index_name = c.index_name

minus

select i.index_name, i.table_name, i.uniqueness, substr(c.column_name, 1, 30) spalte

from user_indexes i, user_ind_columns c

where i.index_name = c.index_name;

This is spooled to a file using SQL*Plus. I'm Using Oracle 11.2.0.2 on Windows if that matters.

Regards,

dhalek

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 16 2016
Added on Dec 17 2015
11 comments
637 views