Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

import database from Linux to Windows fails with creating tablespaces

WestDraytonSep 10 2010 — edited Sep 10 2010
Using (Oracle10g/Linux) user/schema (i think)"Sys" i exported succesfully full database and produced a log file which looks like this:
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

Export done in UTF8 character set and AL16UTF16 NCHAR character set
server uses AL32UTF8 character set (possible charset conversion)

Note: table data (rows) will not be exported


About to export the entire database ...
. 
exporting tablespace definitions
. 
exporting profiles
. 
exporting user definitions
. 
exporting roles
. 
exporting resource costs
. 
exporting rollback segment definitions
. 
exporting database links
. exporting sequence numbers
. 
exporting directory aliases
. 
exporting context namespaces
. 
exporting foreign function library names
. 
exporting PUBLIC type synonyms
. 
exporting private type synonyms
. 
exporting object type definitions
. 
exporting system procedural objects and actions
. 
exporting pre-schema procedural objects and actions
. 
exporting cluster definitions
. 
about to export SYSTEM's tables via Conventional Path ...
. . 
exporting table                    DEF$_AQCALL
. . 
exporting table                   DEF$_AQERROR
. . 
exporting table                  DEF$_CALLDEST

EXP-00091: Exporting questionable statistics.
......
Export terminated successfully with warnings.
Now (in Oracle10 Express/ Windows) i'm importing the dmp-file using user/schema System, following errors occur:
Connected to: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production

Export file created by EXPORT:V10.02.01 via conventional path

Warning: the objects were exported by SYS, not by you

import done in AL32UTF8 character set and AL16UTF16 NCHAR character set
export client uses UTF8 character set (possible charset conversion)
. importing SYSTEM's objects into SYSTEM
IMP-00017: following statement failed with ORACLE error 1119:
 "CREATE UNDO TABLESPACE "UNDOTBS1" BLOCKSIZE 8192 DATAFILE  '/u01/app/oracle"
 "/oradata/live/undotbs01.dbf' SIZE 251658240       AUTOEXTEND ON NEXT 524288"
 "0  MAXSIZE 32765M EXTENT MANAGEMENT LOCAL "
IMP-00003: ORACLE error 1119 encountered
ORA-01119: error in creating database file '/u01/app/oracle/oradata/live/undotbs01.dbf'
ORA-27040: file create error, unable to create file
OSD-04002: unable to open file
O/S-Error: (OS 3) The system cannot find the path specified.
IMP-00015: following statement failed because the object already exists:
 "CREATE TABLESPACE "SYSAUX" BLOCKSIZE 8192 DATAFILE  '/u01/app/oracle/oradat"
 "a/live/sysaux01.dbf' SIZE 346030080       AUTOEXTEND ON NEXT 10485760  MAXS"
 "IZE 32765M EXTENT MANAGEMENT LOCAL  AUTOALLOCATE  ONLINE PERMANENT  SEGMENT"
 " SPACE MANAGEMENT AUTO"
......
IMP-00000: Import terminated unsuccessfully
Why i get those errors when importing? Seems like the main problem is that the export was done in Linux which have it's own directories like '/u01/app/oracle/oradat' and others but in my Windows OS those folders don't exist? The whole import fails because tablespaces couldn't be created, later Schemas couldn't be created and tables also. Can i get the import work somehow?
I runned the import as following:
C:\Users\charlesr>imp userid=system/a FULL=Y FILE=exp_ddl.dmp log=imp.log
My Oracle 10 XE is installed into folder:
D:\oraclexe\app\oracle\product\10.2.0
Maybe i should run the import command in drive D where my Oracle lives, not in drive C as i did?

And now when i tried to run the import on drive C, seems like my database user "system/a" is corrupted or password corrupted:
C:\Users\charlesr>d:

D:\>imp userid=system/a FULL=Y FILE=exp_ddl.dmp log=imp.log

Import: Release 10.2.0.1.0 - Production on R Sept 10 17:32:25 2010

Copyright (c) 1982, 2005, Oracle.  All rights reserved.


IMP-00058: ORACLE error 1017 encountered
ORA-01017: invalid username/password; logon deniedUsername:
I think i don't have on OS level rights to write to C-drive, that's why i got errors. But now i can't log in with system/a, why so?

Edited by: CharlesRoos on Sep 10, 2010 7:38 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 8 2010
Added on Sep 10 2010
4 comments
2,493 views