finding size of remote blobs [message #318323] |
Tue, 06 May 2008 08:50 |
DeeDee
Messages: 14 Registered: March 2008
|
Junior Member |
|
|
Hi,
Since you guys answered my previous questions so.. um competently (is that a word?) I hop you can help me with this one as well: How do I find the size of a blob in a remote DB connected via a DBLink?
Getting the size for a local blob is no problem, using DBMS_LOB.getLenght(), but when I try to use this with remote blobs I get the "remote lob locator" error..
Thanks for your help in advance!!
DeeDee
|
|
|
|
|
Re: finding size of remote blobs [message #318333 is a reply to message #318331] |
Tue, 06 May 2008 09:02 |
DeeDee
Messages: 14 Registered: March 2008
|
Junior Member |
|
|
ok, thanks, that makes sense!..
I do have access to the remote DB, so I could do that even though I'd rather not, since I need the sizes just to test whether a migration worked correctly.. Is this the only way of getting the sizes?
I'll ask my boss if he thinks its worth it.. and I'm open for any other suggestion!
Thanks for the answers so far!
|
|
|
|
|
Re: finding size of remote blobs [message #318364 is a reply to message #318323] |
Tue, 06 May 2008 10:19 |
|
BlackSwan
Messages: 26766 Registered: January 2009 Location: SoCal
|
Senior Member |
|
|
>I'll have the same problem again to access the now local data
Not if you do it right & "plan ahead".
You get the size of the "local" blob & pass it into the remote function.
The remote function obtains the size of the blob now local to it & compares the results to what was passed into it.
The remote function returns either 'MATCH' or 'NOMATCH'.
Why make the problem harder than it really is?
|
|
|