• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Oracle programming

Here's something I just ran when I needed to find out length of BLOB data

Edit: Damn what did Attach Code do to my linebreaks? nasty

DECLARE
theblob BLOB;
length INTEGER;
BEGIN
SELECT RN_EVT_DATA INTO theblob FROM RN_EVT WHERE RN_EVT_ID = 181;
length := dbms_lob.getlength(theblob);
IF length IS NULL THEN
dbms_output.put_line('NULL');
ELSE
dbms_output.put_line('Length of Blob is: ' || length);
END IF;
END;
 
Here's a little script I run when I need to drop a dev database:

SET NEWPAGE 0
SET SPACE 0
SET LINESIZE 80
SET PAGESIZE 0
SET ECHO OFF
SET FEEDBACK OFF
SET HEADING OFF
SET MARKUP HTML OFF
SET ESCAPE
SPOOL DELETEME.SQL
select 'drop table ', table_name, 'cascade constraints \;' from user_tables;
SPOOL OFF
@DELETEME
SPOOL DELETEME_SEQ.SQL
select 'drop sequence ', sequence_name, '\;' from user_sequences;
SPOOL OFF
@DELETEME_SEQ
commit;
 
Back
Top