Home » RDBMS Server » Server Utilities » Importing from 9i to 11g - Getting ORA-29339 error because of block size? (Oracle db 11.2 Unix/Solaris 10)
Importing from 9i to 11g - Getting ORA-29339 error because of block size? [message #478030] Tue, 05 October 2010 15:01 Go to next message
chris32680
Messages: 92
Registered: January 2006
Location: Charlotte
Member
Good afternoon,
We are working on migrating from 9.2.0.4 to 11.2 and we've set up a test machine so that we could test the install and the import (as well as test additional 11g features that we want to begin using).

So we created the database and created all of the tablespaces beforehand.

Our import command is
$ORACLE_HOME/bin/imp system/manager FULL=Y BUFFER=140000 FILE=/dbexport/Lhtech.exp VOLSIZE=2000M GRANTS=Y INDEXES=Y COMMIT=Y IGNORE=Y


However, when we run the import, we get the errors like so:


Import: Release 11.2.0.1.0 - Production on Tue Oct 5 15:01:19 2010

Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.


Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

Export file created by EXPORT:V09.02.00 via conventional path
import done in US7ASCII character set and UTF8 NCHAR character set
export server uses AL16UTF16 NCHAR character set (possible ncharset conversion)
. importing SYSTEM's objects into SYSTEM
IMP-00017: following statement failed with ORACLE error 29339:
 "CREATE TABLESPACE "TS1" BLOCKSIZE 2048 DATAFILE  '/data1/oracle/Lhtech/ts1L"
 "htech.dbf' SIZE 1953M       EXTENT MANAGEMENT DICTIONARY  DEFAULT NOCOMPRES"
 "S  STORAGE(INITIAL 1048576 NEXT 512000 MINEXTENTS 1 MAXEXTENTS 121 PCTINCRE"
 "ASE 0) ONLINE PERMANENT  NOLOGGING"
IMP-00003: ORACLE error 29339 encountered
ORA-29339: tablespace block size 2048 does not match configured block sizes
IMP-00017: following statement failed with ORACLE error 29339:
 "CREATE TABLESPACE "TS2" BLOCKSIZE 2048 DATAFILE  '/data2/oracle/Lhtech/ts2L"
 "htech.dbf' SIZE 2929M       EXTENT MANAGEMENT DICTIONARY  DEFAULT NOCOMPRES"
 "S  STORAGE(INITIAL 1048576 NEXT 512000 MINEXTENTS 1 MAXEXTENTS 121 PCTINCRE"
 "ASE 0) ONLINE PERMANENT  NOLOGGING"
...snip....
IMP-00000: Import terminated unsuccessfully
Tuesday, October  5, 2010  3:01:40 PM EDT


First of all, the block size in our "newly" created tablespaces is 8192...and these are obviously trying to recreate the tablespaces with a block size of 2048.

2 questions:

1) Why is it not ignoring these create tablespace commands when those tablespaces already exist?
2) how in the world do we get around the block size issue? We've tried nearly everything we could find, but we've still not had any luck.

Any help would be greatly appreciated.

Thanks
Re: Importing from 9i to 11g - Getting ORA-29339 error because of block size? [message #478032 is a reply to message #478030] Tue, 05 October 2010 15:08 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
post results from SQL below from new V11 DB
SQL> select tablespace_name, file_name from dba_data_files order by 1,2;

TABLESPACE_NAME
------------------------------
FILE_NAME
------------------------------------------------------------------------------------------------------------------------------------
EXAMPLE
/u01/app/oracle/oradata/v112/example01.dbf

SYSAUX
/u01/app/oracle/oradata/v112/sysaux01.dbf

SYSTEM
/u01/app/oracle/oradata/v112/system01.dbf

UNDOTBS1
/u01/app/oracle/oradata/v112/undotbs01.dbf

USERS
/u01/app/oracle/oradata/v112/users01.dbf



Re: Importing from 9i to 11g - Getting ORA-29339 error because of block size? [message #478033 is a reply to message #478030] Tue, 05 October 2010 15:09 Go to previous messageGo to next message
joy_division
Messages: 4963
Registered: February 2005
Location: East Coast USA
Senior Member
I would say that if you really created the tablespaces in your new 11g database then ignore those errors, but based on the message I do not think you did.

Another thing is you cannot create dictionary managed tablespaces in 11g (they were obsoleted long long ago) so even if your blocksize problem ironed itself out, you would have a problem there.
Re: Importing from 9i to 11g - Getting ORA-29339 error because of block size? [message #478034 is a reply to message #478033] Tue, 05 October 2010 15:16 Go to previous messageGo to next message
chris32680
Messages: 92
Registered: January 2006
Location: Charlotte
Member
16:18:01 >;
  1* select tablespace_name, file_name from dba_data_files order by 1,2
16:18:03 >/

TABLESPACE_NAME FILE_NAME
--------------- --------------------------------------------------
SYSAUX          /data3/oracle/DEVdms/sysauxDEVdms.dbf
SYSTEM          /data2/oracle/DEVdms/systemDEVdms.dbf
TS1             /data1/oracle/DEVdms/ts1DEVdms.dbf
TS2             /data2/oracle/DEVdms/ts2DEVdms.dbf
TS3             /data3/oracle/DEVdms/ts3DEVdms.dbf
TS4             /data3/oracle/DEVdms/ts4DEVdms.dbf
TS5             /data3/oracle/DEVdms/ts5DEVdms.dbf
TSARCH          /data1/oracle/DEVdms/tsarchDEVdms.dbf
TSARCHINX       /data1/oracle/DEVdms/tsarchinxDEVdms.dbf
TSIDH           /data2/oracle/DEVdms/tsidhDEVdms.dbf
TSTEMP          /data1/oracle/DEVdms/tstempDEVdms.dbf
TSUNDO          /data3/oracle/DEVdms/tsundoDEVdms.dbf



JoyDivision, yeah, that's what's weird. we DID create the tablespaces..and set IGNORE=Y in the import command.


Thanks all for the help.
Re: Importing from 9i to 11g - Getting ORA-29339 error because of block size? [message #478035 is a reply to message #478034] Tue, 05 October 2010 15:27 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
>we DID create the tablespaces..and set IGNORE=Y in the import command.
Are you 100% certain that imp goes against same DB as SELECT above?
Re: Importing from 9i to 11g - Getting ORA-29339 error because of block size? [message #478113 is a reply to message #478035] Wed, 06 October 2010 06:27 Go to previous messageGo to next message
chris32680
Messages: 92
Registered: January 2006
Location: Charlotte
Member
yes. that is the only DB on that machine.

edit: Also, the original import was taken from a 32bit sparc and is being (attempted to be) imported onto a 64bit sparc machine...if that makes a difference.

[Updated on: Wed, 06 October 2010 06:33]

Report message to a moderator

Re: Importing from 9i to 11g - Getting ORA-29339 error because of block size? [message #478128 is a reply to message #478030] Wed, 06 October 2010 08:30 Go to previous messageGo to next message
chris32680
Messages: 92
Registered: January 2006
Location: Charlotte
Member
i believe i've been focusing on the wrong problem here.

While the import is throwing errors on the tablespace creates, it's further down in the import when creating the users that i think is actually causing the problem. (not sure why we got hung up on the block size part)

Back on 9i, we had our temporary tablespace created as permanent tablespace.

And unknowingly, we created the temp TS on the 11g DB as a permanent TS also.

So when it trys to create the schema owner of our data, it's failing because of the temp ts declaration.

I really appreciate both of you guys' time on this.
Re: Importing from 9i to 11g - Getting ORA-29339 error because of block size? [message #478129 is a reply to message #478128] Wed, 06 October 2010 08:37 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
Simply put, import should work.
As a more restrictive test you could try a simple schema import
eliminate FULL=Y & replace with FROMUSER=<username> TOUSER=<username> & then might want to pre-CREATE this USER before import
Re: Importing from 9i to 11g - Getting ORA-29339 error because of block size? [message #478132 is a reply to message #478129] Wed, 06 October 2010 08:43 Go to previous message
chris32680
Messages: 92
Registered: January 2006
Location: Charlotte
Member
thanks. I think it's solved now.

we just need to set up our temporary tablespace correctly, and then we'll be fine.

Previous Topic: Why my $ORACLE_HOME/rdbms/demo directory has no ulcase* files ? Please help me !
Next Topic: how to export & import database on different network
Goto Forum:
  


Current Time: Mon Dec 23 10:23:17 CST 2024