- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Recreate the TOOLS Tablespace
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
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
Community
Resources
Forums
Blogs
- 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
тАО06-02-2004 03:41 AM
тАО06-02-2004 03:41 AM
- exporting the data;
- dropping the tablespace;
- recreating it with a smaller size;
- importing the data back in.
Can I do this when the database is on-line? This is a test instance, but I don't want to knock anyone off if I don't have to.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2004 04:18 AM
тАО06-02-2004 04:18 AM
Re: Recreate the TOOLS Tablespace
(Perfstat ? other ...) any Application using it ?
Regards,
Jean-Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2004 04:26 AM
тАО06-02-2004 04:26 AM
Re: Recreate the TOOLS Tablespace
I suppose if you want to Keep TOOLS as the tablespace name you will have to run the operation twice !
Check Metalink Note:147356.1
Regards,
Jean-Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2004 04:33 AM
тАО06-02-2004 04:33 AM
Re: Recreate the TOOLS Tablespace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2004 04:38 AM
тАО06-02-2004 04:38 AM
Re: Recreate the TOOLS Tablespace
ALTER DATABASE vis DATAFILE '/oracledata/tool.dbf' RESIZE 900M;
Or you may use 'ALTER TABLE MOVE' to move the tables on TOOLS to another tempory-create tablespace, then shrink it to the proper size,
finally, you can user 'ALTER TABLE MOVE' to move these tables back on TOOLS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2004 04:46 AM
тАО06-02-2004 04:46 AM
Re: Recreate the TOOLS Tablespace
With the exp/imp solution you must be sure that no update is processed during the tablesapce rebuild.
The table move / index rebuild advantage is that the work can be done online.
And as I say if you want to keep same name you move the tables twice
TOOLS -> TMPTOOLS
TMPTOOLS -> TOOLS (resized)
Regards,
Jean-Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2004 09:09 AM
тАО06-02-2004 09:09 AM
Re: Recreate the TOOLS Tablespace
You do not technically need to create a new tablespace. If you issue the rebuild statement without specifying a tablespace, it should take extents off of the front of the file, and let you resize the datafile down.
I would recommend finding the object that is causing the problem by checking the dba_extents view.
Thanks,
Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2004 05:57 PM
тАО06-02-2004 05:57 PM
SolutionYour Datafile (a collection of extents) is in a similar state:
0mb<-------------------------------------------------------->1024mb
OOOOxxxxxxxxxxOxxxxxxxxxxxxOOOOOOxxxxxxxxxxOOxxxxxxxxxxxxxxxxxxO
(O = allocated extent, x = free extent)
The last X out by 1024mb is preventing you from shrinking this file.
If you can determine what object is out there you can perhaps "move or rebuild" that object only -- or perhaps just drop it and recreate it later.
To see what object is hanging out out there, you can run the following query on sqlplus:
column tablespace_name format a20
column "Name" format a45
break on file_id skip 1
ttitle &1
select file_id, block_id, blocks,
owner||'.'||segment_name "Name"
from sys.dba_extents
where tablespace_name = upper('&1')
UNION
select file_id, block_id, blocks,
'Free'
from sys.dba_free_space
where tablespace_name = upper('&1')
order by 1,2,3
/
and pass it in the name of the tablespace. Look for the large block_id at the end of the query and it'll show you the object you are looking for.
best regards
Yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2004 09:08 PM
тАО06-02-2004 09:08 PM
Re: Recreate the TOOLS Tablespace
ALTER TABLESPACE "TOOLS" OFFLINE NORMAL;
ALTER TABLESPACE "TOOLS" ONLINE;
ALTER TABLESPACE "TOOLS" COALESCE;
ALTER DATABASE DATAFILE '/disc.../.../tools01.dbf' RESIZE 512M;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-03-2004 01:41 AM
тАО06-03-2004 01:41 AM
Re: Recreate the TOOLS Tablespace
Points all around! Thanks again!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-03-2004 02:14 AM
тАО06-03-2004 02:14 AM
Re: Recreate the TOOLS Tablespace
Antunes