Import and Export Tablespace (Oracle version 7.3)
Samson, December 02, 2001 - 1:55 am UTC
For Oracle8i, is it possible?
I found that there are options 'TRANSPORT_TABLESPACE=' and 'TABLESPACES=' for export command in Oracle8i
However, I got the following error messages after I tried:
----------------------------------------------------------
C:\>exp file=users.dmp transport_tablespace=y tablespaces=users
Export: Release 8.1.6.0.0 - Production on Sun Dec 2 14:51:05 2001
(c) Copyright 1999 Oracle Corporation. All rights reserved.
Username: sys
Password:
Connected to: Oracle8i Enterprise Edition Release 8.1.6.0.0 - Production
With the Partitioning option
JServer Release 8.1.6.0.0 - Production
EXP-00044: must be connected 'AS SYSDBA' to do Point-in-time Recovery or Transportable Tablespace import
EXP-00000: Export terminated unsuccessfully
----------------------------------------------------------
How to resolve it?
December 02, 2001 - 9:42 am UTC
As the message says -- you need to be connected "as sysdba"
exp userid="""sys/manager as sysdba""" transport_tablespace=y
tablespaces=(tts_ex1,tts_ex2)
This is a feature of Oracle8i and up only. It does allow you to "export" an entire tablespace as it simply allows you to detach the datafiles from the source database. It does not actually EXPORT the data, it lets you take a copy of the datafiles for a given set of tablespaces.
You cannot transport tablespaces from earlier releases.
Mike, September 19, 2002 - 4:34 pm UTC
exp userid="""sys/manager as sysdba""" transport_tablespace=y
tablespaces=(tts_ex1,tts_ex2)
Tom,
How could I get away without the sys password? I have tried and could not work out.
Thanks
September 20, 2002 - 7:48 am UTC
Well, I use OS authenticated accounts myself so mine is really
/ as sysdba
that would be my first and foremost recommendation.
$ exp transport_tablespace=y tablespaces=users
Export: Release 8.1.7.4.0 - Production on Fri Sep 20 07:45:47 2002
(c) Copyright 2000 Oracle Corporation. All rights reserved.
Username: sys as sysdba
Password:
seems to work
exp tablespaces=...
VA, January 28, 2005 - 4:59 pm UTC
In 9iR2:
If you dont specify the transport_tablespace=y parameter, the tablespaces= parameter does indeed export the tables contained in the specified tablespaces! Didnt know this, came as a welcome surprise!
Partition/Tablespace export
Mike, August 02, 2006 - 3:11 pm UTC
We use 9iR2 on Solaris 8.
We have a large table with 90 daily partitions, each in its own tablespace. Each tablespace also contains partitions for 2 local indexes on the table (the partition key and one other). Each week, we drop partitions > 90 days old, and add new ones for next week.
We have been exporting the outdated partitions before dropping them, but I decided to actually LOOK at the .dmp file (show=y) and noticed that ALL of the tablespaces are contained in the export file, not just the ones for the exported partitions. So, I tried doing a tablespace level export, with tablespaces=( ts1, ts2, etc) and it was exporting ALL of the tablespace partitions until I killed the export.
These exports are only being done "just in case" the business gets up one day and decides it needs data > 90 days old....it will be a lot faster to restore from exports than any other way. We cannot take the tablespaces offline and are not doing this for purposes of transportability.
Is there a way to export ONLY the specified tablespaces and the data and index partitions in it? There is NOTHING in these tablespaces other than the data partition and the two index partitions, and no referential integrity to or from this table.
August 03, 2006 - 8:56 am UTC
what you should be doing is
a) create empty table
b) exchange empty table with full partition
c) drop empty partition
d) exp full table
so that you can use this data in the future if you want.
export doesn't really export index data - it exports the definitions. by turning the partition into a table, you'll have created a self contained data structure that can be imported into some other database or this one later (and re-attached to the partitioned table)
Never thought of that one
Mike, August 03, 2006 - 9:34 am UTC
Excellent!
export only partition
A reader, October 30, 2006 - 12:49 pm UTC
can I export only a singlr partition and then export.
syntax please.
thanks
A reader, October 30, 2006 - 12:59 pm UTC
RE$ACTIION_IMP_TAB table drop during export 9i
Tariq Zia Lakho, November 06, 2006 - 8:06 am UTC
I have install 9i.
When i am taking taking backup from export user.....i am geting an error messages..(RE$ACTION_IMP_TAB was tried to remove by exp_user) Actually anyone who want to drop any table in my database i have receive an email.
i m runing this command during export:
exp file=c:\ log=c:\ compress=n consistent=y full=y or owner=xyz
November 06, 2006 - 10:19 am UTC
be nice to actually SEE the error message don't you think? In its entirety?
Error during export oracle 9i
Tariq Zia Lakho, November 07, 2006 - 5:40 am UTC
DB version 9.2.0.1.0
Error during Export of single user or full DB:
ORA-06512: at "SYS.DBMS_RULE_EXP_RL_INTERNAL", line 311
ORA-06512: at "SYS.DBMS_RULE_EXP_RULES", line 142
This error occur with sys / system / exp_user
here are the rights for export user
select * from session_roles;
ROLE
------------------------------
EXP_FULL_DATABASE
SELECT_CATALOG_ROLE
HS_ADMIN_ROLE
EXECUTE_CATALOG_ROLE
CONNECT
November 07, 2006 - 4:36 pm UTC
is that the entire error stack.
Export problem
Tariq Zia Lakho, November 08, 2006 - 3:20 am UTC
On start of backup i m geeting this error
. exporting object type definitions
. exporting system procedural objects and actions
EXP-00008: ORACLE error 1031 encountered
ORA-01031: insufficient privileges
ORA-06512: at "SYS.LT_EXPORT_PKG", line 64
ORA-06512: at line 1
On the bottom i m getting this error
ORA-06512: at line 15
ORA-06512: at "SYS.DBMS_RULE_EXP_RL_INTERNAL", line 311
ORA-06512: at "SYS.DBMS_RULE_EXP_RULES", line 142
ORA-06512: at line 1
EXP-00083: The previous problem occurred when calling SYS.DBMS_RULE_EXP_RULES.schema_info_exp
. exporting user history table
. exporting default and system auditing options
. exporting statistics
Export terminated successfully with warnings.
November 08, 2006 - 8:29 am UTC
seems the 1031 is the first thing to fix, please utilize support, you should have sufficient information for them to diagnose this pretty easily.
Contents in Export dump file
Devendra, November 10, 2006 - 5:40 am UTC
Dear Tom
One of our DBA has taken a export.
Now I would like to see the only contents of the export dump file without actually import into database.
Can i do this.
Thanks in advance
Devendra
November 10, 2006 - 8:58 am UTC
you cannot see the data, only the "objects"
imp .... show=y
Thanks
Devendra, November 10, 2006 - 10:11 am UTC
Dear Tom,
Thanks for your reply.