Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Export/Import a tablespace

Posted on 2007-03-19
9
Medium Priority
?
1,120 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
Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

 
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 375 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

Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
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 copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.

604 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