Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
1Activity
0 of .
Results for:
No results containing your search query
P. 1
Export Versions Oracle

Export Versions Oracle

Ratings: (0)|Views: 108 |Likes:
Published by rockerabc123

More info:

Published by: rockerabc123 on Jun 28, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

06/28/2009

pdf

text

original

 
Export/Import with different Oracle Versions Backup and Recovery TipsCopyright © Howard Rogers 2001 30/10/2001 Page
1 of 6
 
Export/Import with different Oracle Versions
Export and Import are not backwardly compatible. That is, running the 9i version of export against an 8i database will produce errors. Similarly, running 8i export against a 7or 8.0 database will produce fireworks.To prove the point, here’s what happens when I try to run 9i export against my 8.1.6database:
C:\>
EXP SYSTEM 
/
 MANAGER 
@HJR816
FULL
=
Y
 E
XPORT
:
 
ELEASE
9.0.1.1.1
 
-
 
P
RODUCTION ON
T
UE
O
CT
30
 
07:40:45
 
2001(
C
)
 
C
OPYRIGHT
2001
 
O
RACLE
C
ORPORATION
.
 
 A 
LL RIGHTS RESERVED
.C
ONNECTED TO
:
 
O
RACLE
8
I
E
 NTERPRISE
E
DITION
ELEASE
8.1.6.0.0
 
-
 
P
RODUCTION
  W
ITH THE
P
 ARTITIONING OPTION
 JS
ERVER 
ELEASE
8.1.6.0.0
 
-
 
P
RODUCTION
 EXP-00056:
 
ORACLE
ERROR 
942
ENCOUNTERED
 ORA-00942:
TABLE OR VIEW DOES NOT EXIST
 EXP-00000:
 
E
XPORT TERMINATED UNSUCCESSFULLY
 
Much the same happens when I try to use the 8.1.7 version of export against an 8.1.6database (which goes to show that point releases are frequently significant):
D:\O
RACLE
\
ORA 
817\
BIN
>
EXP SYSTEM 
/
 MANAGER 
@HJR816
FULL
=
Y FILE
=
TEST
.
DMP
 E
XPORT
:
 
ELEASE
8.1.7.0.0
 
-
 
P
RODUCTION ON
T
UE
O
CT
30
 
07:47:29
 
2001(
C
)
 
C
OPYRIGHT
2000
 
O
RACLE
C
ORPORATION
.
 
 A 
LL RIGHTS RESERVED
.C
ONNECTED TO
:
 
O
RACLE
8
I
E
 NTERPRISE
E
DITION
ELEASE
8.1.6.0.0
 
-
 
P
RODUCTION
  W
ITH THE
P
 ARTITIONING OPTION
 JS
ERVER 
ELEASE
8.1.6.0.0
 
-
 
P
RODUCTION
 E
XPORT DONE IN
 WE8ISO8859P1
CHARACTER SET AND
 WE8ISO8859P1
 
 NCHAR 
CHARACTER SET
  A 
BOUT TO EXPORT THE ENTIRE DATABASE
....
EXPORTING TABLESPACE DEFINITIONS
 .
EXPORTING PROFILES
 .
EXPORTING USER DEFINITIONS
 .
EXPORTING ROLES
 .
EXPORTING RESOURCE COSTS
 .
EXPORTING ROLLBACK SEGMENT DEFINITIONS
 EXP-00008:
 
ORACLE
ERROR 
904
ENCOUNTERED
 ORA-00904:
INVALID COLUMN NAME
 EXP-00000:
 
E
XPORT TERMINATED UNSUCCESSFULLY
 
You’ll notice it gets a bit further than version 9 export against the 8i database, butessentially, it still falls over.
 
Export/Import with different Oracle Versions Backup and Recovery TipsCopyright © Howard Rogers 2001 30/10/2001 Page
2 of 6
 
The same, of course, happens if you try to run version 8.x or 9i export against a version 7database.What we learn from this is that the
higher
version of export can
NOT
be used against alower version of the database. 9i export won’t work when pointed at 8i or 8.0 databases;8i export won’t work when pointed at 7 or 8.0 databases (nor even when pointed at alower point release of 8i). And so on.However, it is perfectly permissible to use the
lower
version of export against a higherversion of the database. For example, if I run the 8.1.6 version of export against the 8.1.7database, this is what happens (trimmed a bit for space reasons):
D:\O
RACLE
\O
RA 
81\BIN>
EXP SYSTEM 
/
 MANAGER 
@HJR817
FULL
=
Y FILE
=
TEST
.
DMP
 E
XPORT
:
 
ELEASE
8.1.6.0.0
 
-
 
P
RODUCTION ON
T
UE
O
CT
30
 
08:10:27
 
2001(
C
)
 
C
OPYRIGHT
1999
 
O
RACLE
C
ORPORATION
.
 
 A 
LL RIGHTS RESERVED
.C
ONNECTED TO
:
 
O
RACLE
8
I
E
 NTERPRISE
E
DITION
ELEASE
8.1.7.0.0
 
-
 
P
RODUCTION
  W
ITH THE
P
 ARTITIONING OPTION
 JS
ERVER 
ELEASE
8.1.7.0.0
 
-
 
P
RODUCTION
 E
XPORT DONE IN
 WE8ISO8859P1
CHARACTER SET AND
 WE8ISO8859P1
 
 NCHAR 
CHARACTER SET
  A 
BOUT TO EXPORT THE ENTIRE DATABASE
....
EXPORTING TABLESPACE DEFINITIONS
 .
EXPORTING PROFILES
 .
EXPORTING USER DEFINITIONS
 .
EXPORTING ROLES
 .
EXPORTING RESOURCE COSTS
 .
EXPORTING ROLLBACK SEGMENT DEFINITIONS
 [
SNIP
].
ABOUT TO EXPORT
SYSTEM'
S TABLES VIA 
C
ONVENTIONAL
P
 ATH
....
 
.
EXPORTING TABLE
DEF$_AQCALL
 
0
ROWS EXPORTED
 .
 
.
EXPORTING TABLE
DEF$_AQERROR 
 
0
ROWS EXPORTED
 .
 
.
EXPORTING TABLE
DEF$_PUSHED_TRANSACTIONS
 
0
ROWS EXPORTED
 .
 
.
EXPORTING TABLE
DEF$_TEMP$LOB
 
0
ROWS EXPORTED
 .
 
.
EXPORTING TABLE
SQLPLUS_PRODUCT_PROFILE
 
0
ROWS EXPORTED
 [
SNIP
].
EXPORTING REFRESH GROUPS AND CHILDREN
 .
EXPORTING DIMENSIONS
 .
EXPORTING POST
-
SCHEMA PROCEDURAL OBJECTS AND ACTIONS
 .
EXPORTING USER HISTORY TABLE
 .
EXPORTING DEFAULT AND SYSTEM AUDITING OPTIONS
 .
EXPORTING STATISTICS
 E
XPORT TERMINATED SUCCESSFULLY WITHOUT WARNINGS
.
 
Export/Import with different Oracle Versions Backup and Recovery TipsCopyright © Howard Rogers 2001 30/10/2001 Page
3 of 6
 
What about 8.1.6-version export being applied to a 9i database? Does that work?
D:\O
RACLE
\O
RA 
81\BIN>
EXP SYSTEM 
/
 MANAGER 
@HJR9
FULL
=
Y FILE
=
TEST
.
DMP
 E
XPORT
:
 
ELEASE
8.1.6.0.0
 
-
 
P
RODUCTION ON
T
UE
O
CT
30
 
08:16:33
 
2001(
C
)
 
C
OPYRIGHT
1999
 
O
RACLE
C
ORPORATION
.
 
 A 
LL RIGHTS RESERVED
.C
ONNECTED TO
:
 
O
RACLE
9
I
E
 NTERPRISE
E
DITION
ELEASE
9.0.1.1.1
 
-
 
P
RODUCTION
  W
ITH THE
P
 ARTITIONING OPTION
 JS
ERVER 
ELEASE
9.0.1.1.1
 
-
 
P
RODUCTION
 E
XPORT DONE IN
 WE8ISO8859P1
CHARACTER SET AND
UTF8
 
 NCHAR 
CHARACTER SET
 
SERVER USES
 WE8MSWIN1252
CHARACTER SET
(
POSSIBLE CHARSET CONVERSION
) A 
BOUT TO EXPORT THE ENTIRE DATABASE
....
EXPORTING TABLESPACE DEFINITIONS
 [
SNIP
].
ABOUT TO EXPORT
SYSTEM'
S TABLES VIA 
C
ONVENTIONAL
P
 ATH
....
 
.
EXPORTING TABLE
 AQ$_INTERNET_AGENTS
 
0
ROWS EXPORTED
 [
SNIP
].
ABOUT TO EXPORT
OUTLN'
S TABLES VIA 
C
ONVENTIONAL
P
 ATH
....
 
.
EXPORTING TABLE
OL$
 
0
ROWS EXPORTED
 [
SNIP
].
ABOUT TO EXPORT
DBSNMP'
S TABLES VIA 
C
ONVENTIONAL
P
 ATH
....
ABOUT TO EXPORT
SCOTT'
S TABLES VIA 
C
ONVENTIONAL
P
 ATH
....
 
.
EXPORTING TABLE
BLAH
 
0
ROWS EXPORTED
 .
 
.
EXPORTING TABLE
DEPT
 
4
ROWS EXPORTED
 .
 
.
EXPORTING TABLE
EMP
 
14
ROWS EXPORTED
 [
SNIP
]E
XPORT TERMINATED SUCCESSFULLY WITHOUT WARNINGS
.
…obviously, it does. So, lower versions of export can quite happily run against higherversions of the database,
but the dump file produced is a lower-version dump file
. It’salso important to realise that the lower version of export may encounter new datastructures in the higher version of the database –and won’t have a clue as to how to dealwith them. All higher-version structures are therefore ignored during the export, andwon’t get included in the dump file.Incidentally, the rules I’ve outlined here break down slightly for version 7. The version 7export can
not
be run against a version 8 or higher database… not unless, at any rate, yourun the catexp7.sql script provided by Oracle (and found in ORACLE_HOME/rdbms/admin)in the version 8 or higher database
first.
That script creates a bunch of views which theversion 7 export utility needs to see before it can function properly.So, to sum up: a lower version of export can be run against a higher version of thedatabase, but the dump file produced will be lower version compatible, ignoring anyhigher version-specific features it encounters during the export. Version 7 of export is a

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->