Operating System - HP-UX
1752755 Members
5195 Online
108789 Solutions
New Discussion юеВ

Re: how to do a "describe" on a Oracle9i tablespace?

 
SOLVED
Go to solution
abc_18
Regular Advisor

how to do a "describe" on a Oracle9i tablespace?

Q#1: How to you do a "describe" on an Oracle9i tablespace, to see if "NOLOGGING" is set or not?

For example, I want to do:
ALTER TABLESPACE "MY_DATA" NOLOGGING;
and then (from within sqlplus) run some
oracle cmd to verify that the "NOLOGGING"
change actually took place.

What oracle kung fu do I need?

Q#2: what's the syntax to re-enable logging?
Is it just:
ALTER TABLESPACE "MY_DATA" LOGGING; ???

Q#3: do I need to restart Oracle to make these
changes take effect?


Thanks in advance.
2 REPLIES 2
Hein van den Heuvel
Honored Contributor
Solution

Re: how to do a "describe" on a Oracle9i tablespace?


Q1:

select TABLESPACE_NAME, LOGGING from dba_tablespaces;


Check with DESCRIBE DBA_TABLESPACES;

Q2: yes. RTFM!
http://www.oracle.com/pls/db92/db92.drilldown?remark=&word=alter+tablespace
"logging_clause
Specify LOGGING if you want logging of all tables, indexes, and partitions within the tablespace. The tablespace-level logging attribute can be overridden by logging specifications at the table, index, and partition levels.

When an existing tablespace logging attribute is changed by an ALTER TABLESPACE statement, all tables, indexes, and partitions created after the statement will have the new default logging attribute (which you can still subsequently override). The logging attributes of existing objects are not changed.

If the tablespace is in FORCE LOGGING mode, then you can specify NOLOGGING in this statement to set the default logging mode of the tablespace to NOLOGGING, but this will not take the tablespace out of FORCE LOGGING mode.

[NO] FORCE LOGGING
Use this clause to put the tablespace in force logging mode or take it out of force logging mode. The database must be open and in READ WRITE mode. Neither of these settings changes the default LOGGING or NOLOGGING mode of the tablespace.

Restriction on Force Logging Mode
You cannot specify FORCE LOGGING for an undo or a temporary tablespace."

Q3: No. RTFM...


hth,
Hein.
abc_18
Regular Advisor

Re: how to do a "describe" on a Oracle9i tablespace?

.