I don't know if this is real or meant as joke..but had a good laugh when I read that in Oracle forums.
Here is the thread URL
and here is the scoop
"
Hi everyone,
Can any one advise me? I have joined a company as new senior dba.
i am not understanding what shall be done at beginning?
Can anybody advice me how to check all the database and what to do in the beginning ?
I have been reading all the stuff,documents fr. a week?
"
:) I am looked at my business card and it says I am a "Senior oracle DBA" too. Something I should rethink about :)..
Happy Holidays!!
Thursday, December 27, 2007
"I am a Senior DBA..but I am NEW"
Posted by Venkat at 12/27/2007 02:24:00 PM 191 comments
Wednesday, December 26, 2007
lobs vs strings
Recently one of the emails I read at a client site (wherein the lead had recommended his team to use dbms_lob.substr in the sqls) probed me do this research and as always learning new stuff in oracle is never ending. :)
|
first interesting thing I noticed was I couldnt use rpad function to generate a string more than 4000 chrs..Its strange that oracle silently ignores the request to create longer strings (request was made to make it as long as 100000 chrs long) but it extended only upto 4000.
Well, that takes me to using PLSQL to insert clob data.
now comes the interesting part..lets say we need to fetch only part of the data from clob..what would you use? dbms_lob.substr function or regular substr function?
|
what does that tell? dbms_lob.substr cannot return more than 4K characters ..whereas substr can..
It all comes back to datatypes and why understanding them is necessary..I checked the manual and its clearly stated substr can take a clob as its input and return "clob" ..whereas dbms_lob if it accepts clob, returns varchar2 (hence limited to 4000 characters).
Posted by Venkat at 12/26/2007 10:53:00 AM 17 comments
Subscribe to:
Posts (Atom)