![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
i am wondering whats so wrong about performing a truncate. what would the correct solution look like in your opinion? Thanks, AndiZed |
#12
| |||
| |||
|
|
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. |
#13
| |||
| |||
|
|
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 |
#14
| |||
| |||
|
|
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. |
#15
| |||
| |||
|
|
No, this is not CREATE SCHEMA but CREATE PROCEDURE "schema.procname" |
#16
| |||
| |||
|
|
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. |
#17
| |||
| |||
|
|
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). |
#18
| |||
| |||
|
|
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 |
#19
| |||
| |||
|
|
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. |
#20
| |||
| |||
|
|
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 |
![]() |
| Thread Tools | |
| Display Modes | |
| |