Return-Path: <oracle-l-bounce@freelists.org>
Delivered-To: 2-oracle-l@orafaq.com
Received: (qmail 2403 invoked from network); 3 Dec 2007 07:23:08 -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:23:08 -0600
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id CDB9E7CCD38;
 Mon,  3 Dec 2007 08:23:08 -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 25957-02; Mon, 3 Dec 2007 08:23:08 -0500 (EST)
Received: from turing (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 4B44B7CCD0A;
 Mon,  3 Dec 2007 08:23:08 -0500 (EST)
Received: with ECARTIS (v1.0.0; list oracle-l); Mon, 03 Dec 2007 08:21:00 -0500 (EST)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id C7A7F7CC772
 for <oracle-l@freelists.org>; Mon,  3 Dec 2007 08:21:00 -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 25508-06 for <oracle-l@freelists.org>;
 Mon, 3 Dec 2007 08:21:00 -0500 (EST)
Received: from web58801.mail.re1.yahoo.com (web58801.mail.re1.yahoo.com [66.196.100.215])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with SMTP id 6FFA67CCC63
 for <oracle-l@freelists.org>; Mon,  3 Dec 2007 08:21:00 -0500 (EST)
Received: (qmail 37145 invoked by uid 60001); 3 Dec 2007 13:20:59 -0000
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
  s=s1024; d=yahoo.com;
  h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID;
  b=Qt1fqQjG5qXzwQ5CpJ5Ima4OOpDHiRnr5myXBAnL/AXs9LsQ0kZih65fSs9ljk84QTBDGV1UQXC3UMt7Yv3In8iqDpu76+JPQ1UsPvCLGzxtW8MvOyOShZfZReL0XuRTGjTTZNwfdOv+kPKLRoeRT6oySUSBYZmOvXwEW2i1Rvw=;
X-YMail-OSG: AeiRIgwVM1lqloo3YvjERYlIJ0Gw4xoHwhGd5VTL1uSv8SZOk6m3cRXj3sXdHWaOrWC.G_TLTg--
Received: from [217.171.129.69] by web58801.mail.re1.yahoo.com via HTTP; Mon, 03 Dec 2007 05:20:59 PST
Date: Mon, 3 Dec 2007 05:20:59 -0800 (PST)
From: Nigel Thomas <nigel_cl_thomas@yahoo.com>
Subject: Re: how to create user from pl/sql in 8.0.6 version
To: rems@wp-sa.pl, ORACLE-L <oracle-l@freelists.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Message-ID: <691174.36103.qm@web58801.mail.re1.yahoo.com>
X-archive-position: 3675
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: nigel_cl_thomas@yahoo.com
Precedence: normal
Reply-to: nigel_cl_thomas@yahoo.com
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

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
--
http://www.freelists.org/webpage/oracle-l


