- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Several problems with "DROP" statement
Operating System - HP-UX
1747988
Members
4967
Online
108756
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-23-2003 09:48 PM
тАО11-23-2003 09:48 PM
Several problems with "DROP" statement
Hello colleagues,
when I try to drop some tablespace I get the following error:
who can help me?
DROP TABLESPACE data INCLUDING CONTENTS CASCADE CONSTRAINTS
*
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-01555: snapshot too old: rollback segment number 2 with name "R01" too
small
Tablespace altered.
Tablespace altered.
DROP TABLESPACE index_t INCLUDING CONTENTS CASCADE CONSTRAINTS
*
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-02429: cannot drop index used for enforcement of unique/primary key
Tablespace altered.
ALTER TABLESPACE rbs OFFLINE
*
ERROR at line 1:
ORA-01546: tablespace contains active rollback segment 'R01'
DROP TABLESPACE rbs INCLUDING CONTENTS CASCADE CONSTRAINTS
*
ERROR at line 1:
ORA-01546: tablespace contains active rollback segment 'R01'
when I try to drop some tablespace I get the following error:
who can help me?
DROP TABLESPACE data INCLUDING CONTENTS CASCADE CONSTRAINTS
*
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-01555: snapshot too old: rollback segment number 2 with name "R01" too
small
Tablespace altered.
Tablespace altered.
DROP TABLESPACE index_t INCLUDING CONTENTS CASCADE CONSTRAINTS
*
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-02429: cannot drop index used for enforcement of unique/primary key
Tablespace altered.
ALTER TABLESPACE rbs OFFLINE
*
ERROR at line 1:
ORA-01546: tablespace contains active rollback segment 'R01'
DROP TABLESPACE rbs INCLUDING CONTENTS CASCADE CONSTRAINTS
*
ERROR at line 1:
ORA-01546: tablespace contains active rollback segment 'R01'
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-23-2003 10:16 PM
тАО11-23-2003 10:16 PM
Re: Several problems with "DROP" statement
You have a number of different problems.
First of all are you sure you want to drop these tablespaces, they seem to contain things your database needs.
Better to check the contents of each tablespace first and confirm you can live without them.
Next I would suggest you identify and truncate each table in the 'data' tablespace before attempting to drop it.
You will need to identify and drop any constraints supported by indexes within 'index_t' before you can drop it.
You will need to take offline and drop all rollback segments inside tablespace 'rbs' before you can drop it. You will also need to take them out of your init.ora before you can take down your database and bring it back.
Good luck
-- Graham
First of all are you sure you want to drop these tablespaces, they seem to contain things your database needs.
Better to check the contents of each tablespace first and confirm you can live without them.
Next I would suggest you identify and truncate each table in the 'data' tablespace before attempting to drop it.
You will need to identify and drop any constraints supported by indexes within 'index_t' before you can drop it.
You will need to take offline and drop all rollback segments inside tablespace 'rbs' before you can drop it. You will also need to take them out of your init.ora before you can take down your database and bring it back.
Good luck
-- Graham
Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-23-2003 10:19 PM
тАО11-23-2003 10:19 PM
Re: Several problems with "DROP" statement
Hi
This are 3 different problems:
1) use bigger rollback segments
If you have a big rollback segement:
alter system set transaction use rollback segment;
drop tablespace ...
If not create one: create rollback segement ...
2) You cannot drop an index used by a primary key, you have to disable the primary key first.
3)You cannot drop an active rollback segement, set all rollback segments in the tablespace offline and drop the tablespace.
remember: You always need at least one rollbacksegement !!!
Chris
This are 3 different problems:
1) use bigger rollback segments
If you have a big rollback segement:
alter system set transaction use rollback segment
drop tablespace ...
If not create one: create rollback segement ...
2) You cannot drop an index used by a primary key, you have to disable the primary key first.
3)You cannot drop an active rollback segement, set all rollback segments in the tablespace offline and drop the tablespace.
remember: You always need at least one rollbacksegement !!!
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-24-2003 12:35 AM
тАО11-24-2003 12:35 AM
Re: Several problems with "DROP" statement
hi,
to add to the above replies...
A few notes about Rollback segments.
1. never use optimal.
2. Put a rollback segment in a tablespace all by itself.
have 1 datafile in this tablespace.
let it autoextend to some maxsize.
When you notice they have grown, offline them, drop them, resize the datafile back down, and recreate them.
Then try to figure out WHY they had to grow.
You never want them to grow.
You should beforehand sized them to be the right size.
3. Use lots of same sized RBS's
Regards
Yogeeraj
to add to the above replies...
A few notes about Rollback segments.
1. never use optimal.
2. Put a rollback segment in a tablespace all by itself.
have 1 datafile in this tablespace.
let it autoextend to some maxsize.
When you notice they have grown, offline them, drop them, resize the datafile back down, and recreate them.
Then try to figure out WHY they had to grow.
You never want them to grow.
You should beforehand sized them to be the right size.
3. Use lots of same sized RBS's
Regards
Yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP