From oracle-l-bounce@freelists.org Fri Sep 2 10:48:48 2005 Return-Path: Received: from air891.startdedicated.com (root@localhost) by orafaq.com (8.12.10/8.12.10) with ESMTP id j82FmmxW012538 for ; Fri, 2 Sep 2005 10:48:48 -0500 X-ClientAddr: 206.53.239.180 Received: from turing.freelists.org (freelists-180.iquest.net [206.53.239.180]) by air891.startdedicated.com (8.12.10/8.12.10) with ESMTP id j82FmiIP012518 for ; Fri, 2 Sep 2005 10:48:44 -0500 Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 3E97D1E9412; Fri, 2 Sep 2005 10:48:37 -0500 (EST) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28741-10; Fri, 2 Sep 2005 10:48:37 -0500 (EST) Received: from turing (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id B8B4C1E9410; Fri, 2 Sep 2005 10:48:36 -0500 (EST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=qlk5Tx2Cy/AiWPurp8baosw8CEhBzgUYJf9yATrJqZ/k6hOICLF6Epcv7Bj4h9NajKf6kU3lyGsiIqsaN7ogjd26sgOcHzGkAcqZCoTqunpuhIoK9J2qrG3SVEmsxncv++frxAP/NhJVNhpbMa+2mueScX/gWVuekiqI69Mensg= Message-ID: Date: Fri, 2 Sep 2005 16:46:45 +0100 From: David Sharples To: chiragdba@gmail.com Subject: Re: Including special characters in query generation Cc: Oracle-L Freelists , askdba@freelists.org In-Reply-To: <1a3629600509020839dd3576e@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_21324_20476700.1125676005584" References: <1a3629600509020839dd3576e@mail.gmail.com> X-archive-position: 24956 X-ecartis-version: Ecartis v1.0.0 Sender: oracle-l-bounce@freelists.org Errors-To: oracle-l-bounce@freelists.org X-original-sender: davidsharples@gmail.com Precedence: normal Reply-To: davidsharples@gmail.com X-list: oracle-l X-Virus-Scanned: by amavisd-new-20030616-p9 (Debian) at avenirtech.net X-mailscan-MailScanner-Information: Please contact the ISP for more information X-mailscan-MailScanner: Found to be clean X-MailScanner-From: oracle-l-bounce@freelists.org X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on air891.startdedicated.com X-Spam-Status: No, hits=-3.6 required=5.0 tests=AWL,BAYES_00,HTML_MESSAGE autolearn=ham version=2.63 ------=_Part_21324_20476700.1125676005584 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I find this way easier begin for i in (select username from dba_users) LOOP dbms_stats.gather_schema_stats(i.username,estimate_percent=3D>dbms_stats.au= to_sample_size,method_opt=3D> for all columns size repeat,degree =3D>7); end loop; end; / On 9/2/05, Chirag DBA wrote:=20 >=20 > I want to generate a script for all users. > What is wrong here? There is one set parameter to set special characters= =20 > off. > ------=_Part_21324_20476700.1125676005584 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
I find this way easier
 
begin
for i in (select username from dba_users) LOOP
dbms_stats.gather_schema_stats(i.username,estimate_percent=3D>dbms_= stats.auto_sample_size,method_opt=3D> for all columns size repeat,degree= =3D>7);
end loop;
end;
/

 
On 9/2/05, C= hirag DBA <chiragdba@gmail.co= m> wrote:
I want to generate a script for all users.
 
What is wrong here? There is one set parameter to set special characte= rs off.
------=_Part_21324_20476700.1125676005584-- -- http://www.freelists.org/webpage/oracle-l