Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Riddle me this Oracle riddle...

RE: Riddle me this Oracle riddle...

From: Khedr, Waleed <Waleed.Khedr_at_FMR.COM>
Date: Tue, 05 Mar 2002 14:48:19 -0800
Message-ID: <F001.00420122.20020305144819@fatcity.com>


You did not specify in, out or in out, so the default is: IN.

Parameters that are defined as IN don't get copied but are referenced
(passed by reference).

Regards,

Waleed

(I hope I'm right!)

-----Original Message-----
Sent: Tuesday, March 05, 2002 4:48 PM
To: Multiple recipients of list ORACLE-L

Riddle me this Batman.....

Assume Oracle9i...

assume you have a table thusly defined:

Table Name: TEST
col_1 number
col_2 varchar2(200)

And now a procedure defined thusly:

create or replace procedure blah_blah
( p_in_one test.col_2%type )

Now, here is the question, how much memory will p_in_one have allocated to it within PL/SQL?? Is the answer:

  1. 200 bytes
  2. 2000 bytes
  3. 4000 bytes
  4. It will be defined based on the size of the data actually being passed into the parameter of the PL/SQL procedure
  5. None of the above.

I'm currious what your answers will be... ;-)

Robert G. Freeman - Oracle8i OCP
Oracle DBA Technical Lead
CSX Midtier Database Administration

The Cigarette Smoking Man: Anyone who can appease a man's conscience can take his freedom away from him.

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Freeman, Robert 
  INET: Robert_Freeman_at_csx.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L

(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Khedr, Waleed INET: Waleed.Khedr_at_FMR.COM Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).
Received on Tue Mar 05 2002 - 16:48:19 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US