Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

using ctx_ddl.drop_preference

Posted on 2004-09-21
3
Medium Priority
?
1,873 Views
Last Modified: 2007-12-19
I'm trying to use ctx_ddl.drop_preference pl/sql package, but getting error while compiling store procedure
"identifier 'CTX_DDL' must be declared"
Can someone explain how and where this package should be used.
I'm lloking at somebody's code and apparently the purpose of it is to convert LONG to CLOB.
Looks like the person is trying to create index for clob value.

0
Comment
Question by:smena
3 Comments
 
LVL 3

Accepted Solution

by:
ToddBarry earned 500 total points
ID: 12117957
In order to make a call to CTX_DDL in a stored procedure, CTXSYS will need to 'grant execute on ctx_ddl to username'.  This direct grant is required - the CTXAPP role is not sufficient.

http://osi.oracle.com/~tkyte/Misc/RolesAndProcedures.html
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
Via a live example, show how to take different types of Oracle backups using RMAN.
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

972 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question