GeekInterview.com
Submitted Questions

How can we print the error code in exception handling section?

Asked By: madhug56 | Asked On: Jun 12th, 2007

Answered by: devi on: Sep 25th, 2007

You can print the 'sqlcode' as follows

Exception 
When others then
dbms_output.put_line('error code is'||sqlcode)
end; 

Answered by: jayachandra_jc on: Jun 20th, 2007

EXCEPTION
WHEN No_privilages THEN
htp.p( '

Access denied

');
WHEN Rec_expired THEN
htp.p('Other user has changed this record,Query the record and
Update');
WHEN OTHERS THEN
Htp.p(SQLERRM);

How do you declare a variable with blob as datatype? How can you use blob data type? What size can be given to its variable?

Asked By: madhug56 | Asked On: Apr 12th, 2007

Answered by: intelmental4 on: Jul 23rd, 2007

BLOB is Binary Large ObjectWhen you declare any variable as image, text, ntext ... they would be BLOB data typesText = 2^31-1text = 2^30-1ntext = 2^31-1-Each text, ntext, image colum can in a table ca...

Explain how DDL commands used in a procedure or function?

Asked By: madhug56 | Asked On: Mar 21st, 2007

Answered by: Nikhil_4_Oracle on: Mar 23rd, 2007

HI ALL,try this..,create or replace procedure ddl_proc(tabname in varchar2)asv_cursor INTEGER;ddl_exe INTEGER;beginv_cursor:=Dbms_sql.open_cursor;Dbms_sql.Parse(v_cursor,' Create Table '||tabn...

Answered by: Anurag Puranik on: Mar 23rd, 2007

We can use DDL commands in Procedure & Functions through
"EXECUTE IMMEDIATE " Command

Interview Question

 Ask Interview Question?

 

Career Counselling

 Have Career Question?

 Ask Chandra

 Ask Only Career questions.

Follow us: