I have upgraded the database to 126.96.36.199 and would like to make all the tablespaces locally managed. How can we do this?
First, let me congratulate you for moving to Locally Managed Tablespaces (LMTs)!! I use nothing but LMTs, if at all possible. They make administration much easier.
Oracle 9i does include a supplied package to migrate a DMT to a LMT. The DBMS_SPACE_ADMIN.TABLESPACE_MIGRATE_TO_LOCAL function does exactly this operation. You can use it to migrate your tablespace to a LMT.
Personally, I shy away from this package though. It is much cleaner to create a new tablespace as a LMT and to move your segments into that new tablespace. You then simply drop the old DMT when it is empty. You can move objects with export/import. Or, it is much faster to move tables with the ALTER TABLE MOVE command and to move indexes with the ALTER INDEX REBUILD command. But tables with LONG or LONG RAW columns cannot be moved this way.
For More Information
- Dozens more answers to tough Oracle questions from Brian Peasland are available.
- The Best Oracle Web Links: tips, tutorials, scripts, and more.
- Have an Oracle or SQL tip to offer your fellow DBAs and developers? The best tips submitted will receive a cool prize. Submit your tip today!
- Ask your technical Oracle and SQL questions -- or help out your peers by answering them -- in our live discussion forums.
- Ask the Experts yourself: Our applications, PL/SQL, database administration and data warehousing gurus are waiting to answer your toughest questions.
Dig Deeper on Oracle database design and architecture
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.