Solved

Export/Import a tablespace

Posted on 2007-03-19
9
1,105 Views
Last Modified: 2013-12-19
Oracle9i Enterprise Edition Release 9.2.0.7.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.7.0 - Production

System: Microsoft Windows Server 2003 Enterprise Edition
----------------------------------------------------------

Hello Oracle experts how are you today?  

We would like to export/import a tablespace.  Can someone please provide all the steps in doing this?

Thanks for your time
0
Comment
Question by:algotube
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 
LVL 14

Expert Comment

by:sathyagiri
ID: 18754228
Use the export / import utilities.

Refer to this documentation
http://orafaq.com/faqiexp.htm
0
 
LVL 17

Expert Comment

by:NicksonKoh
ID: 18754503

I am baffled when someone mentions that you can export or import a tablespace?  I've done a lot of database export and imports on Oracle 8i but have never been able to import the tablespaces even with full database imports??

For tablespaces, I will usually have to manually create them with some SQL scripts before importing the metadata in the exports.

Perhaps, it is possible? Could other expert please elaborate or are these 9i and above new features?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 77

Expert Comment

by:slightwv (䄆 Netminder)
ID: 18756384
10g allows a TABLESPACES parameter.  I've not used it so I can't comment on its effectiveness.  Don't have any 9i left so I can't tell you if this is a new 10g feature or not.
0
 
LVL 35

Expert Comment

by:johnsone
ID: 18758343
The TABLESPACES parameter does exist in 9i.  Like slightwv, I have not used it either, but it is there.
0
 
LVL 77

Accepted Solution

by:
slightwv (䄆 Netminder) earned 125 total points
ID: 18758834
I just realized that we never answered the question.

I'll defer you to the docs on using exp/imp.  Here's the link to the 10g TABLESPACES parameter:
http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14215/exp_imp.htm#sthref2373
0
 

Author Comment

by:algotube
ID: 18759715
Thank you for all your help.  I am trying to export using these methods:

C:\Documents and Settings\oracle>exp userid="sys/oracle AS SYSDBA" file=pjexp.dmp transport_tablespace=y tablespaces=pj_ts

LRM-00112: multiple values not allowed for parameter 'userid'

EXP-00019: failed to process parameters, type 'EXP HELP=Y' for help
EXP-00000: Export terminated unsuccessfully

C:\Documents and Settings\oralce>exp "sys/oracle AS SYSDBA" file=pjexp.dmp tra
nsport_tablespace=y tablespaces=pj_ts

LRM-00108: invalid positional parameter value 'AS'

EXP-00019: failed to process parameters, type 'EXP HELP=Y' for help
EXP-00000: Export terminated unsuccessfully

What am I missing here I would like to export as SYS ?????
0
 
LVL 17

Expert Comment

by:NicksonKoh
ID: 18760949
Hi,

Take out the as SYSDBA and try. Alternative you can try doing a step by step method with the exp before trying to put in the parameters.

e.g. C:\exp  sys/oracle

Nickson
0
 
LVL 77

Expert Comment

by:slightwv (䄆 Netminder)
ID: 18763373
You also should't export as SYS.  You really should use SYSTEM.

Unless you are using transportable tablespaces, you don't need transport_tablespace ( at least I think ).

0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
Note: this article covers simple compression. Oracle introduced in version 11g release 2 a new feature called Advanced Compression which is not covered here. General principle of Oracle compression Oracle compression is a way of reducing the d…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
This video shows how to recover a database from a user managed backup

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question