RE: On TRUNCATE table does the indexes also get truncated.

2003-07-31 Thread Denham Eva
Title: RE: On TRUNCATE table does the indexes also get truncated.



Hello,
 
I 
deserved that the comments that were made, it is after all logical that they 
will be cleaned out. However in my defence, there are some funny thoughts 
that went through through my mind just before I truncated that table 
:-)
 
Thanks 
anyway for them
 
Regards
Denham

This e-mail message has been scanned for Viruses and Content and cleared by 
MailMarshal - 
For more information please visit  
  www.marshalsoftware.com 





Note:
This message is for the named person's use only.  It may contain 
confidential, proprietary or legally privileged information.  No 
confidentiality or privilege is waived or lost by any mistransmission.  If 
you receive this message in error, please immediately delete it and all 
copies of it from your system, destroy any hard copies of it and notify the 
sender.  You must not, directly or indirectly, use, disclose, distribute, 
print, or copy any part of this message if you are not the intended recipient. 
TFMC and any of its subsidiaries 
each reserve the right to monitor all e-mail communications through its 
networks.



Re: On TRUNCATE table does the indexes also get truncated.

2003-07-30 Thread Jared Still
Not having data in the indexes as some have noted,
is not answer the question of whether or not the
index was truncated.

Here's a simple test that will answer the question.

Feel free to use this methodology in the future.  :)

Jared

--

drop table t;

create table t
tablespace users
as
select *
from dba_objects
/

create index t_idx on t (owner, object_name, created, last_ddl_time,
timestamp, status )
tablespace users
/

col segment_name format a30
col blocks format 999,999
col bytes format 999,999,999

select segment_name, sum(blocks) blocks, sum(bytes) bytes
from user_extents
where segment_name in ('T','T_IDX')
group by segment_name
/

truncate table t;

select segment_name, sum(blocks) blocks, sum(bytes) bytes
from user_extents
where segment_name in ('T','T_IDX')
group by segment_name
/

--


On Wed, 2003-07-30 at 07:59, Denham Eva wrote:
> Hello,
> 
> When you truncate a table using:-
> 
> TRUNCATE TABLE TEMP;
> 
> does any of the indexes on the table also get truncated?
> 
> TIA
> Denham Eva
> Oracle DBA
> Linux like TeePee... No Windows, No Gates and Apache inside!
> 
> 
> _
> This e-mail message has been scanned for Viruses and Content and cleared 
> by MailMarshal
> 
> For more information please visit www.marshalsoftware.com
> _
> 
> #
> Note:
> This message is for the named person's use only.  It may contain confidential,
> proprietary or legally privileged information.  No confidentiality or privilege
> is waived or lost by any mistransmission.  If you receive this message in error,
> please immediately delete it and all copies of it from your system, destroy any
> hard copies of it and notify the sender.  You must not, directly or indirectly,
> use, disclose, distribute, print, or copy any part of this message if you are not
> the intended recipient. TFMC and any of its subsidiaries each reserve
> the right to monitor all e-mail communications through its networks.
> 
> Any views expressed in this message are those of the individual sender, except where
> the message states otherwise and the sender is authorized to state them to be the
> views of any such entity.
> 
> Thank You.
> -- 
> Please see the official ORACLE-L FAQ: http://www.orafaq.net
> -- 
> Author: Denham Eva
>   INET: [EMAIL PROTECTED]
> 
> Fat City Network Services-- 858-538-5051 http://www.fatcity.com
> San Diego, California-- Mailing list and web hosting services
> -
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from).  You may
> also send the HELP command for other information (like subscribing).


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Jared Still
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Re: On TRUNCATE table does the indexes also get truncated.

2003-07-30 Thread Mladen Gogala
It's elementary my dear Eva: if it didn't get truncated, then the index
entries would be pointing to the non-existant rows. So, the answer to
your question is: yup.
On 2003.07.30 10:59, Denham Eva wrote:
Hello,

When you truncate a table using:-

TRUNCATE TABLE TEMP;

does any of the indexes on the table also get truncated?

TIA
Denham Eva
Oracle DBA
Linux like TeePee... No Windows, No Gates and Apache inside!
_
This e-mail message has been scanned for Viruses and Content and cleared
by MailMarshal
For more information please visit www.marshalsoftware.com
_
#
Note:
This message is for the named person's use only.  It may contain
confidential,
proprietary or legally privileged information.  No confidentiality or
privilege
is waived or lost by any mistransmission.  If you receive this message in
error,
please immediately delete it and all copies of it from your system, destroy
any
hard copies of it and notify the sender.  You must not, directly or
indirectly,
use, disclose, distribute, print, or copy any part of this message if you are
not
the intended recipient. TFMC and any of its subsidiaries each reserve
the right to monitor all e-mail communications through its networks.
Any views expressed in this message are those of the individual sender,
except where
the message states otherwise and the sender is authorized to state them to be
the
views of any such entity.
Thank You.
--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Denham Eva
  INET: [EMAIL PROTECTED]
Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
--
Mladen Gogala
Oracle DBA
--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Mladen Gogala
 INET: [EMAIL PROTECTED]
Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).


RE: On TRUNCATE table does the indexes also get truncated.

2003-07-30 Thread Jamadagni, Rajendra
Title: RE: On TRUNCATE table does the indexes also get truncated.





of course indexes will not be dropped, but because table data gets truncated, there will be NO data in indexes either.


Raj

Rajendra dot Jamadagni at nospamespn dot com
All Views expressed in this email are strictly personal.
QOTD: Any clod can have facts, having an opinion is an art !



-Original Message-
From: Senthil Kumar [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 30, 2003 1:10 PM
To: Multiple recipients of list ORACLE-L
Subject: RE: On TRUNCATE table does the indexes also get truncated.



Hi,


Truncate will not drop your index. It'll remove all the contents of the
table and reset the HWM.


senthil.


-Original Message-
Denham Eva
Sent: Wednesday, July 30, 2003 8:29 PM
To: Multiple recipients of list ORACLE-L



Hello,


When you truncate a table using:-


TRUNCATE TABLE TEMP;


does any of the indexes on the table also get truncated?


TIA
Denham Eva
Oracle DBA
Linux like TeePee... No Windows, No Gates and Apache inside!




_
This e-mail message has been scanned for Viruses and Content and cleared
by MailMarshal


For more information please visit www.marshalsoftware.com

_



#
Note:
This message is for the named person's use only.  It may contain
confidential,
proprietary or legally privileged information.  No confidentiality or
privilege
is waived or lost by any mistransmission.  If you receive this message in
error,
please immediately delete it and all copies of it from your system, destroy
any
hard copies of it and notify the sender.  You must not, directly or
indirectly,
use, disclose, distribute, print, or copy any part of this message if you
are not
the intended recipient. TFMC and any of its subsidiaries each reserve
the right to monitor all e-mail communications through its networks.


Any views expressed in this message are those of the individual sender,
except where
the message states otherwise and the sender is authorized to state them to
be the
views of any such entity.


Thank You.
--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Denham Eva
  INET: [EMAIL PROTECTED]


Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California    -- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Senthil Kumar
  INET: [EMAIL PROTECTED]


Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California    -- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



This e-mail 
message is confidential, intended only for the named recipient(s) above and may 
contain information that is privileged, attorney work product or exempt from 
disclosure under applicable law. If you have received this message in error, or are 
not the named recipient(s), please immediately notify corporate MIS at (860) 766-2000 
and delete this e-mail message from your computer, Thank 
you.*2


RE: On TRUNCATE table does the indexes also get truncated.

2003-07-30 Thread Senthil Kumar
Hi,

Truncate will not drop your index. It'll remove all the contents of the
table and reset the HWM.

senthil.

-Original Message-
Denham Eva
Sent: Wednesday, July 30, 2003 8:29 PM
To: Multiple recipients of list ORACLE-L


Hello,

When you truncate a table using:-

TRUNCATE TABLE TEMP;

does any of the indexes on the table also get truncated?

TIA
Denham Eva
Oracle DBA
Linux like TeePee... No Windows, No Gates and Apache inside!



_
This e-mail message has been scanned for Viruses and Content and cleared
by MailMarshal

For more information please visit www.marshalsoftware.com

_


#
Note:
This message is for the named person's use only.  It may contain
confidential,
proprietary or legally privileged information.  No confidentiality or
privilege
is waived or lost by any mistransmission.  If you receive this message in
error,
please immediately delete it and all copies of it from your system, destroy
any
hard copies of it and notify the sender.  You must not, directly or
indirectly,
use, disclose, distribute, print, or copy any part of this message if you
are not
the intended recipient. TFMC and any of its subsidiaries each reserve
the right to monitor all e-mail communications through its networks.

Any views expressed in this message are those of the individual sender,
except where
the message states otherwise and the sender is authorized to state them to
be the
views of any such entity.

Thank You.
--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Denham Eva
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Senthil Kumar
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).


RE: On TRUNCATE table does the indexes also get truncated.

2003-07-30 Thread Igor Neyman
The simplest way to find out is to try it (on test box).

Igor Neyman, OCP DBA
[EMAIL PROTECTED]



-Original Message-
Denham Eva
Sent: Wednesday, July 30, 2003 9:59 AM
To: Multiple recipients of list ORACLE-L

Hello,

When you truncate a table using:-

TRUNCATE TABLE TEMP;

does any of the indexes on the table also get truncated?

TIA
Denham Eva
Oracle DBA
Linux like TeePee... No Windows, No Gates and Apache inside!



_
This e-mail message has been scanned for Viruses and Content and cleared

by MailMarshal

For more information please visit www.marshalsoftware.com

_


#
Note:
This message is for the named person's use only.  It may contain
confidential,
proprietary or legally privileged information.  No confidentiality or
privilege
is waived or lost by any mistransmission.  If you receive this message
in error,
please immediately delete it and all copies of it from your system,
destroy any
hard copies of it and notify the sender.  You must not, directly or
indirectly,
use, disclose, distribute, print, or copy any part of this message if
you are not
the intended recipient. TFMC and any of its subsidiaries each reserve
the right to monitor all e-mail communications through its networks.

Any views expressed in this message are those of the individual sender,
except where
the message states otherwise and the sender is authorized to state them
to be the
views of any such entity.

Thank You.
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Denham Eva
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Igor Neyman
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).