dbTalk Databases Forums  

can't create table from package

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss can't create table from package in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
DA Morgan
 
Posts: n/a

Default Re: can't create table from package - 12-13-2007 , 10:45 AM






andized (AT) gmx (DOT) net wrote:
Quote:
i am wondering whats so wrong about performing a truncate.
what would the correct solution look like in your opinion?

Thanks,
AndiZed
As others have asked please do not top post. Scroll to the
bottom and post there.

First TRUNCATE is DDL thus it issues implicit commits.

Second it locks the table forcing serialization. This can
potentially slow things down substantially and, on a RAC
cluster, can bring it to its knees.

The correct solution? Depends on the why the table is being
truncated, how often, and the nature of the environment.
Most of the time when I find this what I find is that the
developers and DBAs do not know how to properly implement
global temporary tables.
--
Daniel A. Morgan
Oracle Ace Director & Instructor
University of Washington
damorgan@x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org


Reply With Quote
  #12  
Old   
William Robertson
 
Posts: n/a

Default Re: can't create table from package - 12-13-2007 , 05:35 PM






On Dec 13, 2:03 pm, "fitzjarr... (AT) cox (DOT) net" <fitzjarr... (AT) cox (DOT) net> wrote:

Quote:
And with 10g and later releases there is CREATE SCHEMA, which would
preclude the use of PL/SQL to create database objects on product
installation, which creates all or nothing should an error occur.
CREATE SCHEMA has been around since at least 7.3:
<http://download.oracle.com/docs/cd/A...ver/doc/SQL73/
ch4a.htm#toc098>

However it is arguably of limited usefulness:
<http://radiofreetooting.blogspot.com/search?q=create+schema>


Reply With Quote
  #13  
Old   
shakespeare
 
Posts: n/a

Default Re: can't create table from package - 12-15-2007 , 01:52 PM




"William Robertson" <williamr2019 (AT) googlemail (DOT) com> schreef in bericht
news:34f0ee7d-affc-4881-8068-90f51af222e6 (AT) s19g2000prg (DOT) googlegroups.com...
Quote:
On Dec 13, 2:03 pm, "fitzjarr... (AT) cox (DOT) net" <fitzjarr... (AT) cox (DOT) net> wrote:

And with 10g and later releases there is CREATE SCHEMA, which would
preclude the use of PL/SQL to create database objects on product
installation, which creates all or nothing should an error occur.

CREATE SCHEMA has been around since at least 7.3:
http://download.oracle.com/docs/cd/A...ver/doc/SQL73/
ch4a.htm#toc098

However it is arguably of limited usefulness:
http://radiofreetooting.blogspot.com...=create+schema

No, this is not
CREATE SCHEMA
but
CREATE PROCEDURE "schema.procname"

Shakespeare




Reply With Quote
  #14  
Old   
andized@gmx.net
 
Posts: n/a

Default Re: can't create table from package - 12-15-2007 , 07:49 PM



Quote:
First TRUNCATE is DDL thus it issues implicit commits.

Second it locks the table forcing serialization. This can
potentially slow things down substantially and, on a RAC
cluster, can bring it to its knees.

The correct solution? Depends on the why the table is being
truncated, how often, and the nature of the environment.
Most of the time when I find this what I find is that the
developers and DBAs do not know how to properly implement
global temporary tables.
thanks for pointing this out.
the environment im working in is not a RAC, but it has to run some
batch jobs with large amounts of data very quickly, so i did not want
to use DELETE to empty my tables. global temporary tables sound like a
good idea, i am going to close this gap in my oracle knowledge next.

AndiZed


Reply With Quote
  #15  
Old   
William Robertson
 
Posts: n/a

Default Re: can't create table from package - 12-16-2007 , 04:16 AM



On Dec 15, 7:52 pm, "shakespeare" <what... (AT) xs4all (DOT) nl> wrote:

Quote:
No, this is not
CREATE SCHEMA
but
CREATE PROCEDURE "schema.procname"
I was responding to David Fitzjarrell's comment that "CREATE SCHEMA"
is available from 10g onwards.


Reply With Quote
  #16  
Old   
DA Morgan
 
Posts: n/a

Default Re: can't create table from package - 12-16-2007 , 09:56 AM



William Robertson wrote:
Quote:
On Dec 15, 7:52 pm, "shakespeare" <what... (AT) xs4all (DOT) nl> wrote:

No, this is not
CREATE SCHEMA
but
CREATE PROCEDURE "schema.procname"

I was responding to David Fitzjarrell's comment that "CREATE SCHEMA"
is available from 10g onwards.
CREATE SCHEMA is listed in the Oracle 7 Server SQL Language Quick
Reference (1987).
--
Daniel A. Morgan
Oracle Ace Director & Instructor
University of Washington
damorgan@x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org


Reply With Quote
  #17  
Old   
joel garry
 
Posts: n/a

Default Re: can't create table from package - 12-17-2007 , 12:22 PM



On Dec 16, 7:56 am, DA Morgan <damor... (AT) psoug (DOT) org> wrote:
Quote:
William Robertson wrote:
On Dec 15, 7:52 pm, "shakespeare" <what... (AT) xs4all (DOT) nl> wrote:

No, this is not
CREATE SCHEMA
but
CREATE PROCEDURE "schema.procname"

I was responding to David Fitzjarrell's comment that "CREATE SCHEMA"
is available from 10g onwards.

CREATE SCHEMA is listed in the Oracle 7 Server SQL Language Quick
Reference (1987).
Indeed, it's on page 4-221 of http://download.oracle.com/docs/pdf/A32538_1.pdf
(And check out the typo on page A-18)

The bit about being able to roll back multiple DDL has long been a
source of wonder for me, begging the question of implicit commits on
other DDL.

jg
--
@home.com is bogus.
"Some somehow observe the day,but are vexed, I believe, that the body
of people profane it, and blessed be God no authority yet compels them
to keep it." - Boston Puritan Samuel Sewall, Christmas Day 1685 - when
celebrating Christmas was illegal in New England


Reply With Quote
  #18  
Old   
DA Morgan
 
Posts: n/a

Default Re: can't create table from package - 12-18-2007 , 12:25 AM



joel garry wrote:
Quote:
On Dec 16, 7:56 am, DA Morgan <damor... (AT) psoug (DOT) org> wrote:
William Robertson wrote:
On Dec 15, 7:52 pm, "shakespeare" <what... (AT) xs4all (DOT) nl> wrote:
No, this is not
CREATE SCHEMA
but
CREATE PROCEDURE "schema.procname"
I was responding to David Fitzjarrell's comment that "CREATE SCHEMA"
is available from 10g onwards.
CREATE SCHEMA is listed in the Oracle 7 Server SQL Language Quick
Reference (1987).

Indeed, it's on page 4-221 of http://download.oracle.com/docs/pdf/A32538_1.pdf
(And check out the typo on page A-18)

The bit about being able to roll back multiple DDL has long been a
source of wonder for me, begging the question of implicit commits on
other DDL.

jg
--
@home.com is bogus.
"Some somehow observe the day,but are vexed, I believe, that the body
of people profane it, and blessed be God no authority yet compels them
to keep it." - Boston Puritan Samuel Sewall, Christmas Day 1685 - when
celebrating Christmas was illegal in New England
We should perhaps note that these are the same writers that gave us the
nightmare of BHCR monitoring and so many other gems. <g>
--
Daniel A. Morgan
Oracle Ace Director & Instructor
University of Washington
damorgan@x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org


Reply With Quote
  #19  
Old   
shakespeare
 
Posts: n/a

Default Re: can't create table from package - 12-19-2007 , 04:41 AM




"William Robertson" <williamr2019 (AT) googlemail (DOT) com> schreef in bericht
news:a42098f9-88d9-46dc-ae02-a3a36e38fc4a (AT) t1g2000pra (DOT) googlegroups.com...
Quote:
On Dec 15, 7:52 pm, "shakespeare" <what... (AT) xs4all (DOT) nl> wrote:

No, this is not
CREATE SCHEMA
but
CREATE PROCEDURE "schema.procname"

I was responding to David Fitzjarrell's comment that "CREATE SCHEMA"
is available from 10g onwards.
You're right, I was wrong, The link was broken and took me somehow to the
wrong page in the document.

Apologies!

Shakespeare




Reply With Quote
  #20  
Old   
fitzjarrell@cox.net
 
Posts: n/a

Default Re: can't create table from package - 12-19-2007 , 11:04 AM



On Dec 13, 5:35 pm, William Robertson <williamr2... (AT) googlemail (DOT) com>
wrote:
Quote:
On Dec 13, 2:03 pm, "fitzjarr... (AT) cox (DOT) net" <fitzjarr... (AT) cox (DOT) net> wrote:

And with 10g and later releases there is CREATE SCHEMA, which would
preclude the use of PL/SQL to create database objects on product
installation, which creates all or nothing should an error occur.

CREATE SCHEMA has been around since at least 7.3:
http://download.oracle.com/docs/cd/A...ver/doc/SQL73/
ch4a.htm#toc098

However it is arguably of limited usefulness:
http://radiofreetooting.blogspot.com...=create+schema
I appreciate the correction.

I shall file it under 'Useful Uselessness from Oracle'. <g>


David Fitzjarrell


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.