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: newbie: problem in dynamic SQL

RE: newbie: problem in dynamic SQL

From: Kevin Kostyszyn <kevin_at_dulcian.com>
Date: Wed, 31 Jan 2001 14:02:30 -0500
Message-Id: <10758.127935@fatcity.com>


This is a multi-part message in MIME format.

------=_NextPart_000_002C_01C08B8E.734236B0 Content-Type: text/plain;

        charset="iso-8859-1"
Content-Transfer-Encoding: 8bit

RE: newbie: problem in dynamic SQLthat was funny   -----Original Message-----
  From: root_at_fatcity.com [mailto:root_at_fatcity.com]On Behalf Of Koivu, Lisa   Sent: Wednesday, January 31, 2001 1:37 PM   To: Multiple recipients of list ORACLE-L   Subject: RE: newbie: problem in dynamic SQL

  Gabriel, the dba needs to know about it, period, because he/she is responsible for storage and performance of the database overall. In addition he or she may have other ideas that you can use instead of actually creating a table (pl/sql tables or something?)

  Repeat until you believe it: THE DBA IS YOUR FRIEND! THE DBA IS NOT MEAN!   HTH
  Lisa

  -----Original Message-----
  From: Gabriel Galanternik [mailto:ggalanterni_at_tesis-oys.com.ar]   Sent: Wednesday, January 31, 2001 12:21 PM   To: Multiple recipients of list ORACLE-L   Subject: RE: newbie: problem in dynamic SQL

  stephane, just curious, really, no subtle lines...   should I, a developer, tell my dba that I'm gonna create temporary tables?   (I know most of you are dba's, please don't flame me...)   deep inside I would say, yes, but, really why?   Rigth access?
  space allocation?
  performance tunning?
  curious dba?

  FYI, I, as a technical support for my developers, I would think twice before
  creating tables dinamically.
  and I would ask very good reasons to do it.   But when I had to do it I really didn't realize to tell the dba...

  Gabriel Galanternik

  On top of the explanation, I have 2 questions.   Are you a dba ?
  If not, does your dba knows that you will create   dynamically ?


  Stephane Paquette
  DBA Oracle
  stephane_paquette_at_yahoo.com

  Get personalized email addresses from Yahoo! Mail - only $35   a year! http://personal.mail.yahoo.com/   --
  Please see the official ORACLE-L FAQ: http://www.orafaq.com   --
  Author: =?iso-8859-1?q?paquette=20stephane?=     INET: stephane_paquette_at_yahoo.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: Gabriel Galanternik
    INET: ggalanterni_at_tesis-oys.com.ar

  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).

------=_NextPart_000_002C_01C08B8E.734236B0 Content-Type: text/html;

        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>RE: newbie: problem in dynamic SQL</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4207.2601" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D343230219-31012001><FONT face=3DArial color=3D#0000ff =
size=3D2>that=20
was funny</FONT></SPAN></DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">   <DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT = face=3DTahoma=20
  size=3D2>-----Original Message-----<BR><B>From:</B> root_at_fatcity.com=20   [mailto:root_at_fatcity.com]<B>On Behalf Of </B>Koivu, = Lisa<BR><B>Sent:</B>=20
  Wednesday, January 31, 2001 1:37 PM<BR><B>To:</B> Multiple recipients = of list=20
  ORACLE-L<BR><B>Subject:</B> RE: newbie: problem in dynamic=20   SQL<BR><BR></FONT></DIV>
  <P><FONT size=3D2>Gabriel, the dba needs to know about it, period, = because=20
  he/she is responsible for storage and performance of the database=20   overall.&nbsp;&nbsp; In addition he or she may have other ideas that = you can=20
  use instead of actually creating a table (pl/sql tables or=20   something?)</FONT></P>
  <P><FONT size=3D2>Repeat until you believe it:&nbsp; THE DBA IS YOUR=20   FRIEND!&nbsp; THE DBA IS NOT MEAN!&nbsp; </FONT></P>   <P><FONT size=3D2>HTH</FONT> <BR><FONT size=3D2>Lisa</FONT> </P><BR>   <P><FONT size=3D2>-----Original Message-----</FONT> <BR><FONT = size=3D2>From:=20
  Gabriel Galanternik [<A=20
  =
href=3D"mailto:ggalanterni_at_tesis-oys.com.ar">mailto:ggalanterni_at_tesis-oys= .com.ar</A>]</FONT>=20
  <BR><FONT size=3D2>Sent: Wednesday, January 31, 2001 12:21 PM</FONT> = <BR><FONT=20
  size=3D2>To: Multiple recipients of list ORACLE-L</FONT> <BR><FONT=20   size=3D2>Subject: RE: newbie: problem in dynamic SQL</FONT> </P><BR>   <P><FONT size=3D2>stephane, just curious, really, no subtle = lines...</FONT>=20
  <BR><FONT size=3D2>should I, a developer, tell my dba that I'm gonna = create=20
  temporary tables?</FONT> <BR><FONT size=3D2>(I know most of you are = dba's,=20
  please don't flame me...)</FONT> <BR><FONT size=3D2>deep inside I = would say,=20
  yes, but, really why?</FONT> <BR><FONT size=3D2>Rigth access?</FONT> = <BR><FONT=20
  size=3D2>space allocation?</FONT> <BR><FONT size=3D2>performance = tunning?</FONT>=20
  <BR><FONT size=3D2>curious dba?</FONT> </P>   <P><FONT size=3D2>FYI, I, as a technical support for my developers, I = would=20
  think twice before</FONT> <BR><FONT size=3D2>creating tables = dinamically.</FONT>=20
  <BR><FONT size=3D2>and I would ask very good reasons to do it.</FONT> = <BR><FONT=20
  size=3D2>But when I had to do it I really didn't realize to tell the=20
  dba...</FONT> </P>
  <P><FONT size=3D2>Gabriel Galanternik</FONT> </P>
  <P><FONT size=3D2>----- Original Message -----</FONT> <BR><FONT =
size=3D2>To:=20
  Multiple recipients of list ORACLE-L</FONT> <BR><FONT size=3D2>Sent: = Wednesday,=20
  January 31, 2001 7:30 AM</FONT> </P><BR>   <P><FONT size=3D2>On top of the explanation, I have 2 = questions.</FONT>=20
  <BR><FONT size=3D2>Are you a dba ?</FONT> <BR><FONT size=3D2>If not, = does your dba=20
  knows that you will create</FONT> <BR><FONT size=3D2>dynamically = ?</FONT> </P>
  <P><FONT size=3D2>--- Gabriel Galanternik=20   &lt;ggalanterni_at_tesis-oys.com.ar&gt;</FONT> <BR><FONT size=3D2>a = =E9crit : &gt;=20
  that's right and all code referencing this</FONT> <BR><FONT=20   size=3D2>table</FONT> <BR><FONT size=3D2>&gt; must be dynamic = too</FONT> <BR><FONT=20
  size=3D2>&gt;</FONT> <BR><FONT size=3D2>&gt; my 0.02</FONT> <BR><FONT = size=3D2>&gt;=20
  Gabriel Galanternik</FONT> <BR><FONT size=3D2>&gt; ----- Original = Message=20
  -----</FONT> <BR><FONT size=3D2>&gt; To: Multiple recipients of list=20   ORACLE-L</FONT> <BR><FONT size=3D2>&gt; Sent: Tuesday, January 30, = 2001 7:35=20
  AM</FONT> <BR><FONT size=3D2>&gt;</FONT> <BR><FONT = size=3D2>&gt;</FONT> <BR><FONT=20
  size=3D2>&gt; Hi Anurag,</FONT> <BR><FONT size=3D2>&gt;&nbsp;&nbsp; = Your table=20
  does not exist till the time the</FONT> <BR><FONT size=3D2>&gt; = procedure is=20
  actually</FONT> <BR><FONT size=3D2>&gt; executed.&nbsp; So, when your = procedure=20
  tries the access</FONT> <BR><FONT size=3D2>&gt; the table the = compiler</FONT>=20
  <BR><FONT size=3D2>&gt; is going to complain cos it can't find the = table=20
  you</FONT> <BR><FONT size=3D2>&gt; are referring to.</FONT> <BR><FONT=20   size=3D2>&gt; Since at compile time your table does not exist.</FONT> = <BR><FONT=20
  size=3D2>&gt; HTH</FONT> <BR><FONT size=3D2>&gt; Chandini</FONT> = <BR><FONT=20
  size=3D2>&gt;</FONT> <BR><FONT size=3D2>&gt; -----Original = Message-----</FONT>=20
  <BR><FONT size=3D2>&gt; dewan</FONT> <BR><FONT size=3D2>&gt; Sent: 30 = January 2001=20
  09:36</FONT> <BR><FONT size=3D2>&gt; To: Multiple recipients of list=20   ORACLE-L</FONT> <BR><FONT size=3D2>&gt;</FONT> <BR><FONT = size=3D2>&gt;</FONT>=20
  <BR><FONT size=3D2>&gt; hi,</FONT> <BR><FONT size=3D2>&gt;&nbsp;&nbsp; = I am=20
  calling a stored procedure which dynamically</FONT> <BR><FONT = size=3D2>&gt;=20
  creates a table in a procedure. But if I am</FONT> <BR><FONT = size=3D2>&gt;=20
  accessing</FONT> <BR><FONT size=3D2>&gt; this table later in the = procedure,=20
  ORACLE gives an</FONT> <BR><FONT size=3D2>&gt; error PLS-00201-saying = that=20
  identifier must be</FONT> <BR><FONT size=3D2>&gt; declared(the = identifier that=20
  it quotes is the name</FONT> <BR><FONT size=3D2>&gt; of</FONT> = <BR><FONT=20
  size=3D2>&gt; the table which was created dynamcally).</FONT> = <BR><FONT=20
  size=3D2>&gt; please guide me</FONT> <BR><FONT size=3D2>&gt; = anurag</FONT>=20
  <BR><FONT size=3D2>&gt;</FONT> <BR><FONT size=3D2>&gt;</FONT> = <BR><FONT=20
  =
size=3D2>____________________________________________________________</FO=
NT>=20
  <BR><FONT size=3D2>&gt; Do You Yahoo!?</FONT> <BR><FONT size=3D2>&gt; = Get your=20
  free @yahoo.co.uk address at</FONT> <BR><FONT size=3D2>&gt; <A = target=3D_blank=20
  href=3D"http://mail.yahoo.co.uk">http://mail.yahoo.co.uk</A></FONT> = <BR><FONT=20
  size=3D2>&gt; or your free @yahoo.ie address at</FONT> <BR><FONT = size=3D2>&gt; <A=20
  target=3D_blank =
href=3D"http://mail.yahoo.ie">http://mail.yahoo.ie</A></FONT>=20   <BR><FONT size=3D2>&gt; --</FONT> <BR><FONT size=3D2>&gt; Please see = the official=20
  ORACLE-L FAQ:</FONT> <BR><FONT size=3D2>&gt; <A target=3D_blank=20   href=3D"http://www.orafaq.com">http://www.orafaq.com</A></FONT> = <BR><FONT=20
  size=3D2>&gt; --</FONT> <BR><FONT size=3D2>&gt; Author:=20   =3D?iso-8859-1?q?anurag=3D20dewan?=3D</FONT> <BR><FONT = size=3D2>&gt;&nbsp;&nbsp; INET:=20
  anu_dewan_at_yahoo.co.uk</FONT> <BR><FONT size=3D2>&gt;</FONT> <BR><FONT=20   size=3D2>&gt; Fat City Network Services&nbsp;&nbsp;&nbsp; -- (858)=20   538-5051&nbsp; FAX:</FONT> <BR><FONT size=3D2>&gt; (858) = 538-5051</FONT>=20
  <BR><FONT size=3D2>&gt; San Diego,=20
  California&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Public = Internet</FONT>=20
  <BR><FONT size=3D2>&gt; access / Mailing Lists</FONT> <BR><FONT=20   size=3D2>&gt;</FONT> <BR><FONT=20
  =
size=3D2>----------------------------------------------------------------=
----</FONT>=20
  <BR><FONT size=3D2>&gt; To REMOVE yourself from this mailing list, = send=20
  an</FONT> <BR><FONT size=3D2>&gt; E-Mail message</FONT> <BR><FONT = size=3D2>&gt;=20
  to: ListGuru_at_fatcity.com (note EXACT spelling of</FONT> <BR><FONT = size=3D2>&gt;=20
  'ListGuru') and in</FONT> <BR><FONT size=3D2>&gt; the message BODY, = include a=20
  line containing: UNSUB</FONT> <BR><FONT size=3D2>&gt; ORACLE-L</FONT> = <BR><FONT=20
  size=3D2>&gt; (or the name of mailing list you want to be = removed</FONT>=20
  <BR><FONT size=3D2>&gt; from).&nbsp; You may</FONT> <BR><FONT = size=3D2>&gt; also=20
  send the HELP command for other information</FONT> <BR><FONT = size=3D2>&gt; (like=20
  subscribing).</FONT> <BR><FONT size=3D2>&gt;</FONT> <BR><FONT = size=3D2>&gt;=20
  --</FONT> <BR><FONT size=3D2>&gt; Please see the official ORACLE-L = FAQ:</FONT>=20
  <BR><FONT size=3D2>&gt; <A target=3D_blank=20   href=3D"http://www.orafaq.com">http://www.orafaq.com</A></FONT> = <BR><FONT=20
  size=3D2>&gt; --</FONT> <BR><FONT size=3D2>&gt; Author: Chandini = Paterson</FONT>=20
  <BR><FONT size=3D2>&gt;&nbsp;&nbsp; INET: = chandini.paterson_at_morse.com</FONT>=20
  <BR><FONT size=3D2>&gt;</FONT> <BR><FONT size=3D2>&gt; Fat City = Network=20
  Services&nbsp;&nbsp;&nbsp; -- (858) 538-5051&nbsp; FAX:</FONT> = <BR><FONT=20
  size=3D2>&gt; (858) 538-5051</FONT> <BR><FONT size=3D2>&gt; San Diego, =

  California&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Public = Internet</FONT>=20
  <BR><FONT size=3D2>&gt; access / Mailing Lists</FONT> <BR><FONT=20   size=3D2>&gt;</FONT> <BR><FONT=20
  =

size=3D2>----------------------------------------------------------------=
----</FONT>=20
  <BR><FONT size=3D2>&gt; To REMOVE yourself from this mailing list, = send=20
  an</FONT> <BR><FONT size=3D2>&gt; E-Mail message</FONT> <BR><FONT = size=3D2>&gt;=20
  to: ListGuru_at_fatcity.com (note EXACT spelling of</FONT> <BR><FONT = size=3D2>&gt;=20
  'ListGuru') and in</FONT> <BR><FONT size=3D2>&gt; the message BODY, = include a=20
  line containing: UNSUB</FONT> <BR><FONT size=3D2>&gt; ORACLE-L</FONT> = <BR><FONT=20
  size=3D2>&gt; (or the name of mailing list you want to be = removed</FONT>=20
  <BR><FONT size=3D2>&gt; from).&nbsp; You may</FONT> <BR><FONT = size=3D2>&gt; also=20
  send the HELP command for other information</FONT> <BR><FONT = size=3D2>&gt; (like=20
  subscribing).</FONT> <BR><FONT size=3D2>&gt;</FONT> <BR><FONT = size=3D2>&gt;=20
  --</FONT> <BR><FONT size=3D2>&gt; Please see the official ORACLE-L = FAQ:</FONT>=20
  <BR><FONT size=3D2>&gt; <A target=3D_blank=20   href=3D"http://www.orafaq.com">http://www.orafaq.com</A></FONT> = <BR><FONT=20
  size=3D2>&gt; --</FONT> <BR><FONT size=3D2>&gt; Author: Gabriel = Galanternik</FONT>=20
  <BR><FONT size=3D2>&gt;&nbsp;&nbsp; INET: = ggalanterni_at_tesis-oys.com.ar</FONT>=20
  <BR><FONT size=3D2>&gt;</FONT> <BR><FONT size=3D2>&gt; Fat City = Network=20
  Services&nbsp;&nbsp;&nbsp; -- (858) 538-5051&nbsp; FAX:</FONT> = <BR><FONT=20
  size=3D2>&gt; (858) 538-5051</FONT> <BR><FONT size=3D2>&gt; San Diego, =

  California&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Public = Internet</FONT>=20
  <BR><FONT size=3D2>&gt; access / Mailing Lists</FONT> <BR><FONT=20   size=3D2>&gt;</FONT> <BR><FONT=20
  =

size=3D2>----------------------------------------------------------------=
----</FONT>=20
  <BR><FONT size=3D2>&gt; To REMOVE yourself from this mailing list, = send=20
  an</FONT> <BR><FONT size=3D2>&gt; E-Mail message</FONT> <BR><FONT = size=3D2>&gt;=20
  to: ListGuru_at_fatcity.com (note EXACT spelling of</FONT> <BR><FONT = size=3D2>&gt;=20
  'ListGuru') and in</FONT> <BR><FONT size=3D2>&gt; the message BODY, = include a=20
  line containing: UNSUB</FONT> <BR><FONT size=3D2>&gt; ORACLE-L</FONT> = <BR><FONT=20
  size=3D2>&gt; (or the name of mailing list you want to be = removed</FONT>=20
  <BR><FONT size=3D2>&gt; from).&nbsp; You may</FONT> <BR><FONT = size=3D2>&gt; also=20
  send the HELP command for other information</FONT> <BR><FONT = size=3D2>&gt; (like=20
  subscribing).</FONT> </P><BR>
  <P><FONT size=3D2>=3D=3D=3D=3D=3D</FONT> <BR><FONT size=3D2>Stephane = Paquette</FONT>=20
  <BR><FONT size=3D2>DBA Oracle</FONT> <BR><FONT=20   size=3D2>stephane_paquette_at_yahoo.com</FONT> </P>   <P><FONT =
size=3D2>__________________________________________________</FONT>=20
  <BR><FONT size=3D2>Get personalized email addresses from Yahoo! Mail - = only=20
  $35</FONT> <BR><FONT size=3D2>a year!&nbsp; <A target=3D_blank=20   =
href=3D"http://personal.mail.yahoo.com/">http://personal.mail.yahoo.com/<= /A></FONT>=20
  <BR><FONT size=3D2>--</FONT> <BR><FONT size=3D2>Please see the = official ORACLE-L=20
  FAQ: <A target=3D_blank=20
  href=3D"http://www.orafaq.com">http://www.orafaq.com</A></FONT> = <BR><FONT=20
  size=3D2>--</FONT> <BR><FONT size=3D2>Author:=20   =3D?iso-8859-1?q?paquette=3D20stephane?=3D</FONT> <BR><FONT = size=3D2>&nbsp; INET:=20
  stephane_paquette_at_yahoo.com</FONT> </P>   <P><FONT size=3D2>Fat City Network Services&nbsp;&nbsp;&nbsp; -- (858) =

  538-5051&nbsp; FAX: (858) 538-5051</FONT> <BR><FONT size=3D2>San = Diego,=20
  California&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Public = Internet access=20
  / Mailing Lists</FONT> <BR><FONT=20
  =

size=3D2>----------------------------------------------------------------=
----</FONT>=20
  <BR><FONT size=3D2>To REMOVE yourself from this mailing list, send an = E-Mail=20
  message</FONT> <BR><FONT size=3D2>to: ListGuru_at_fatcity.com (note EXACT = spelling=20
  of 'ListGuru') and in</FONT> <BR><FONT size=3D2>the message BODY, = include a line=20
  containing: UNSUB ORACLE-L</FONT> <BR><FONT size=3D2>(or the name of = mailing=20
  list you want to be removed from).&nbsp; You may</FONT> <BR><FONT = size=3D2>also=20
  send the HELP command for other information (like subscribing).</FONT> = </P>
  <P><FONT size=3D2>-- </FONT><BR><FONT size=3D2>Please see the official = ORACLE-L=20
  FAQ: <A target=3D_blank=20
  href=3D"http://www.orafaq.com">http://www.orafaq.com</A></FONT> = <BR><FONT=20
  size=3D2>-- </FONT><BR><FONT size=3D2>Author: Gabriel = Galanternik</FONT> <BR><FONT=20
  size=3D2>&nbsp; INET: ggalanterni_at_tesis-oys.com.ar</FONT> </P>   <P><FONT size=3D2>Fat City Network Services&nbsp;&nbsp;&nbsp; -- (858) =

  538-5051&nbsp; FAX: (858) 538-5051</FONT> <BR><FONT size=3D2>San = Diego,=20
  California&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Public = Internet access=20
  / Mailing Lists</FONT> <BR><FONT=20
  =

size=3D2>----------------------------------------------------------------=
----</FONT>=20
  <BR><FONT size=3D2>To REMOVE yourself from this mailing list, send an = Received on Wed Jan 31 2001 - 13:02:30 CST

Original text of this message

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