ACE Director Alum Daniel Morgan, founder of Morgan's Library, is scheduling
complimentary technical Workshops on Database Security for the first 30
Oracle Database customers located anywhere in North America, EMEA, LATAM, or
APAC that send an email to
asra_us@oracle.com. Request a Workshop for
your organization today.
odm_model_util.table_exist(p_table_name IN VARCHAR2) RETURN BOOLEAN;
BEGIN
IF odm_model_util.table_exist('SYS.TAB$') THEN
dbms_output.put_line('Exists');
ELSE
dbms_output.put_line('Not Found');
END IF;
END;
/
BEGIN
*
ERROR at line 1:
ORA-44003: invalid SQL name
ORA-06512: at "SYS.DBMS_ASSERT", line 190
ORA-06512: at "SYS.ODM_MODEL_UTIL", line 80
ORA-06512: at line 2
BEGIN
IF odm_model_util.table_exist('TAB$') THEN
dbms_output.put_line('Exists');
ELSE
dbms_output.put_line('Not Found');
END IF;
END;
/ Exists
There are multiple examples of Oracle not using the UPPER function ... but no available explanation as to why some developers feel compelled to reinvent the wheel.
odm_model_util.upcase(
p_out_name OUT VARCHAR2,
p_in_name IN VARCHAR2);
DECLARE
iVal dbms_id := 'Morgan';
oVal dbms_id;
BEGIN
odm_model_util.upcase(oVal, iVal);
dbms_output.put_line(oVal);
END;
/ MORGAN