getClob() method

All posts relating to Oracle database administration.

Moderator: Tim...

getClob() method

Postby dnicolle » Thu Dec 06, 2012 5:44 pm

Hi,

I'm running oracle version 10.2.0.4. I have a select statement to access a table but part of the select statement invokes the getClob() method. The select statement fails when it reaches the getClob(). When I remove the getClob() method it succeeds! What permission is required that would allow a user to call this method?

Script

SELECT
E.XXXXX_ID, E.YYYYYYYY_ID, E.ZZZZZZZZ_ID,
E.MESSAGE_TYPE, E.IIP_ID, E.XXXXXXX_UI.getClob() as msg,
E.CREATE_TIME, E.STATUS, E.SENDER_ID,
E.RECEIVER_ID
FROM RERERE.BHU_MESSAGE_REFS E
--WHERE E.XXXXXXX_ID = '1111111111111'
WHERE E.YYYYYYYYY_ID = '123456789-asdfghjk';
dnicolle
Member
 
Posts: 2
Joined: Thu Dec 06, 2012 5:36 pm

Re: getClob() method

Postby Tim... » Thu Dec 06, 2012 9:57 pm

Hi.

The getclob is a method of a type. If the column is an Xmltype, or some other complex type containing the getclob method then it should work. If it is just a varchar2 it will fail. So it's not a permission thing. It's a data type thing.

Cheers

Tim...
Tim...
Oracle ACE Director
Oracle ACE of the Year 2006 - Oracle Magazine Editors Choice Awards
OakTable Member
OCP DBA 7.3, 8, 8i, 9i, 10g, 11g
OCP Advanced PL/SQL Developer
Oracle Database: SQL Certified Expert
My website: http://www.oracle-base.com
My blog: http://www.oracle-base.com/blog
Tim...
Site Admin
 
Posts: 17962
Joined: Mon Nov 01, 2004 5:56 pm
Location: England, UK

Re: getClob() method

Postby dnicolle » Fri Dec 07, 2012 12:38 pm

Thanks Tim,

The column is URITYPE. After a little research I ended up adding the application account to the XDBADMIN account to get it working.

Dean
dnicolle
Member
 
Posts: 2
Joined: Thu Dec 06, 2012 5:36 pm

Re: getClob() method

Postby Tim... » Fri Dec 07, 2012 1:41 pm

:)
Tim...
Oracle ACE Director
Oracle ACE of the Year 2006 - Oracle Magazine Editors Choice Awards
OakTable Member
OCP DBA 7.3, 8, 8i, 9i, 10g, 11g
OCP Advanced PL/SQL Developer
Oracle Database: SQL Certified Expert
My website: http://www.oracle-base.com
My blog: http://www.oracle-base.com/blog
Tim...
Site Admin
 
Posts: 17962
Joined: Mon Nov 01, 2004 5:56 pm
Location: England, UK


Return to Oracle Database Administration

Who is online

Users browsing this forum: No registered users and 10 guests

cron