Return-Path: <oracle-l-bounce@freelists.org>
Delivered-To: 2-oracle-l@orafaq.com
Received: (qmail 5671 invoked from network); 3 Dec 2007 07:43:28 -0600
Received: from freelists-180.iquest.net (HELO turing.freelists.org) (206.53.239.180)
  by 69.64.49.119 with SMTP; 3 Dec 2007 07:43:27 -0600
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id DD7E07CCEF4;
 Mon,  3 Dec 2007 08:43:27 -0500 (EST)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 29766-04; Mon, 3 Dec 2007 08:43:27 -0500 (EST)
Received: from turing (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 50A037CCEDD;
 Mon,  3 Dec 2007 08:43:27 -0500 (EST)
Received: with ECARTIS (v1.0.0; list oracle-l); Mon, 03 Dec 2007 08:41:19 -0500 (EST)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 121517CCEE1
 for <oracle-l@freelists.org>; Mon,  3 Dec 2007 08:41:19 -0500 (EST)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 29416-04 for <oracle-l@freelists.org>;
 Mon, 3 Dec 2007 08:41:19 -0500 (EST)
Received: from mail.wp-sa.pl (mail.wp-sa.pl [212.77.102.105])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id C73587CCF06
 for <oracle-l@freelists.org>; Mon,  3 Dec 2007 08:41:18 -0500 (EST)
Received: from conversion-daemon.mail.wp-sa.pl by mail.wp-sa.pl
 (Sun Java System Messaging Server 6.2-7.05 (built Sep  5 2006))
 id <0JSH00G015SMIB00@mail.wp-sa.pl> (original mail from rems@wp-sa.pl)
 for oracle-l@freelists.org; Mon, 03 Dec 2007 14:41:17 +0100 (CET)
Received: from [10.10.2.183] ([212.77.105.137])
 by mail.wp-sa.pl (Sun Java System Messaging Server 6.2-7.05 (built Sep  5
 2006)) with ESMTPS id <0JSH00G8Q7CT2320@mail.wp-sa.pl>; Mon,
 03 Dec 2007 14:41:17 +0100 (CET)
Date: Mon, 03 Dec 2007 14:41:17 +0100
From: Remigiusz Sokolowski <rems@wp-sa.pl>
Subject: Re: how to create user from pl/sql in 8.0.6 version
In-reply-to: <691174.36103.qm@web58801.mail.re1.yahoo.com>
To: Nigel Thomas <nigel_cl_thomas@yahoo.com>
Cc: ORACLE-L <oracle-l@freelists.org>
Message-id: <4754077D.4040805@wp-sa.pl>
MIME-version: 1.0
Content-Type: text/plain; format=flowed; charset=ISO-8859-1
References: <691174.36103.qm@web58801.mail.re1.yahoo.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.8.0.12) Gecko/20070531
 CentOS/1.0.9-2.el4.centos SeaMonkey/1.0.9
X-archive-position: 3676
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: rems@wp-sa.pl
Precedence: normal
Reply-to: rems@wp-sa.pl
List-help: <mailto:ecartis@freelists.org?Subject=help>
List-unsubscribe: <oracle-l-request@freelists.org?Subject=unsubscribe>
List-software: Ecartis version 1.0.0
List-Id: oracle-l <oracle-l.freelists.org>
X-List-ID: oracle-l <oracle-l.freelists.org>
List-subscribe: <oracle-l-request@freelists.org?Subject=subscribe>
List-owner: <mailto:steve.adams@ixora.com.au>
List-post: <mailto:oracle-l@freelists.org>
List-archive: <http://www.freelists.org/archives/oracle-l>
X-list: oracle-l
X-Virus-Scanned: Debian amavisd-new at localhost.localdomain

Nigel Thomas wrote:
> Remigiusz 
>
> Can't test it against 8.0.6, but why not use DBMS_SQL? I'm sure that was available then: 
>
> Microsoft Windows XP [Version 5.1.2600] 
> (C) Copyright 1985-2001 Microsoft Corp. 
> C:\Documents and Settings\Nigel Thomas>sqlplus system/manager 
> SQL*Plus: Release 10.2.0.1.0 - Production on Mon Dec 3 13:16:40 2007 
> Copyright (c) 1982, 2005, Oracle. All rights reserved. 
>
> Connected to: 
> Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production 
> SQL> DECLARE 
> 2 v_cursor number; 
> 3 v_cmd varchar2(100); 
> 4 v_result integer; 
> 5 BEGIN 
> 6 
> 7 v_cursor := dbms_sql.open_cursor; 
> 8 v_cmd := 'create user &new_user identified by &new_passwd'; 
> 9 dbms_sql.parse(v_cursor, v_cmd, DBMS_SQL.NATIVE); 
> 10 v_result := dbms_sql.execute(v_cursor); 
> 11 dbms_sql.close_cursor(v_cursor); 
> 12 END; 
> 13 / 
> Enter value for new_user: xyz 
> Enter value for new_passwd: xyz 
> old 8: v_cmd := 'create user &new_user identified by &new_passwd'; 
> new 8: v_cmd := 'create user xyz identified by xyz'; 
> PL/SQL procedure successfully completed. 
> SQL> 
>
> Regards Nigel
>   
shame on us - we haven't even consider it, trying to find out something 
clever and special
I apologize for sending so simple case to solve
many thanks

Remigiusz

-- 

------------------------------------------------------------------------
Remigiusz Sokolowski <rems@wp-sa.pl>
WP/PTI/DIP/ZAB (+04858) 52 15 770
MySQL v04.x,05.x; Oracle v10.x

Zastrzezenia:
1. Wylaczenie danej funkcjonalnosci oznacza, ze niezwlocznie przystapimy
   lub juz pracujemy nad jej uruchomieniem
2. Niniejsza wiadomosc stanowi jedynie wyraz prywatnych pogladow autora 
   i nie jest w zadnym wypadku zwiazana ze stanowiskiem przedsiebiorstwa 
   Wirtualna Polska S.A.
------------------------------------------------------------------------



WIRTUALNA  POLSKA  SA, ul. Traugutta 115c, 80-226 Gdansk; NIP: 957-07-51-216; 
Sad Rejonowy Gdansk-Polnoc KRS 0000068548, kapital zakladowy 62.880.024 zlotych (w calosci wplacony)
--
http://www.freelists.org/webpage/oracle-l


