Home » RDBMS Server » Backup & Recovery » IMP-00017: following statement failed with ORACLE error 2237
IMP-00017: following statement failed with ORACLE error 2237 [message #240112] Thu, 24 May 2007 02:58 Go to next message
crmserver
Messages: 7
Registered: May 2007
Location: CHINA
Junior Member
C:\>imp73 system/manager file=c:\oracle.dmp grants=y indexes=y full=y commit=y ignore=y log=c:\oracle.log


IMP-00017: following statement failed with ORACLE error 2237:
"CREATE TABLESPACE "USER_DATA" DATAFILE 'E:\ORANT\DATABASE\USR1ORCL.ORA' SI"
"ZE 3221225472 DEFAULT STORAGE (INITIAL 53248 NEXT 53248 MINEXTENTS 1 "
"MAXEXTENTS 121 PCTINCREASE 1) ONLINE PERMANENT"
IMP-00003: ORACLE error 2237 encountered
ORA-02237: invalid file size

IMP-00017: following statement failed with ORACLE error 2237:
"CREATE TABLESPACE "TEMPORARY_DATA" DATAFILE 'E:\ORANT\DATABASE\TMP1ORCL.OR"
"A' SIZE 4093640704 DEFAULT STORAGE (INITIAL 102400 NEXT 102400 MINEXT"
"ENTS 1 MAXEXTENTS 121 PCTINCREASE 0) ONLINE TEMPORARY"
IMP-00003: ORACLE error 2237 encountered
ORA-02237: invalid file size
Re: IMP-00017: following statement failed with ORACLE error 2237 [message #240128 is a reply to message #240112] Thu, 24 May 2007 03:40 Go to previous messageGo to next message
sriram717
Messages: 48
Registered: February 2007
Location: UNITED KINGDOM
Member
Hi ,

Have you checked the file sizes ? if the size is greater than 2 GB there could be issues.

Check out on metalink for bugs if any as this is an older version of oracle that you are using

Thanks
Re: IMP-00017: following statement failed with ORACLE error 2237 [message #240158 is a reply to message #240128] Thu, 24 May 2007 04:50 Go to previous messageGo to next message
crmserver
Messages: 7
Registered: May 2007
Location: CHINA
Junior Member
Over 2G
How solves this problem? Please help

Best detailed ,Thank you.
Re: IMP-00017: following statement failed with ORACLE error 2237 [message #240167 is a reply to message #240158] Thu, 24 May 2007 05:08 Go to previous messageGo to next message
Michel Cadot
Messages: 68651
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Precreate the tablespaces before importing.

Regards
Michel
Re: IMP-00017: following statement failed with ORACLE error 2237 [message #240501 is a reply to message #240167] Fri, 25 May 2007 01:39 Go to previous messageGo to next message
crmserver
Messages: 7
Registered: May 2007
Location: CHINA
Junior Member
CREATE TABLESPACE USER_DATA DATAFILE 'E:\ORANT\database\USR1ORCL.ORA SIZE 6000M
DEFAULT STORAGE ( INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 121 PCTINCREASE 1);

The prompt: already existed USER_DATA tablespace

if I modified tablespace Still have error:
ALTER DATABASE DATAFILE 'E:\ORANT\DATABASE\USR1ORCL.ORA' RESIZE 10240000K;

IMP-00017: following statement failed with ORACLE error 2237:



Thank you.
Re: IMP-00017: following statement failed with ORACLE error 2237 [message #240503 is a reply to message #240501] Fri, 25 May 2007 01:46 Go to previous messageGo to next message
sujeetsaxena16
Messages: 9
Registered: May 2007
Location: mumbai
Junior Member
PLz check the size of tablespace ,how much space u have free ,and add appropiate size rather then too much size.

Re: IMP-00017: following statement failed with ORACLE error 2237 [message #240508 is a reply to message #240501] Fri, 25 May 2007 01:59 Go to previous messageGo to next message
Michel Cadot
Messages: 68651
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
You can't give such a size.
Enlarge it to 2047M then add new datafiles.

Regards
Michel
Re: IMP-00017: following statement failed with ORACLE error 2237 [message #240555 is a reply to message #240508] Fri, 25 May 2007 03:45 Go to previous messageGo to next message
crmserver
Messages: 7
Registered: May 2007
Location: CHINA
Junior Member

SQL> CREATE TABLESPACE USER_DATA DATAFILE 'E:\ORANT\database\Usr1orcl.ora' SIZE 600M
DEFAULT STORAGE ( INITIAL 50K NEXT 50K MINEXTENTS 1 MAXEXTENTS 121 PCTINCREASE 1);
CREATE TABLESPACE USER_DATA DATAFILE 'E:\ORANT\database\Usr1orcl.ora' SIZE 500M
*
ERROR at line 1:
ORA-01543: tablespace 'USER_DATA' already exists

Thank you.
Re: IMP-00017: following statement failed with ORACLE error 2237 [message #240579 is a reply to message #240555] Fri, 25 May 2007 04:28 Go to previous messageGo to next message
Michel Cadot
Messages: 68651
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
I didn't say create, I said resize to 2047M and add datafiles (or just add datafiles).

Regards
Michel

[Updated on: Fri, 25 May 2007 05:12]

Report message to a moderator

Re: IMP-00017: following statement failed with ORACLE error 2237 [message #240591 is a reply to message #240579] Fri, 25 May 2007 05:00 Go to previous messageGo to next message
crmserver
Messages: 7
Registered: May 2007
Location: CHINA
Junior Member
Hi Michel,

ALTER DATABASE DATAFILE 'E:\ORANT\DATABASE\USR1ORCL.ORA' RESIZE 2096128K;

Still have error:

IMP-00017: following statement failed with ORACLE error 2237:
"CREATE TABLESPACE "USER_DATA" DATAFILE 'E:\ORANT\DATABASE\USR1ORCL.ORA' SI"
"ZE 3221225472 DEFAULT STORAGE (INITIAL 53248 NEXT 53248 MINEXTENTS 1 "
"MAXEXTENTS 121 PCTINCREASE 1) ONLINE PERMANENT"
IMP-00003: ORACLE error 2237 encountered
ORA-02237: invalid file size


Thank you.
Re: IMP-00017: following statement failed with ORACLE error 2237 [message #240601 is a reply to message #240591] Fri, 25 May 2007 05:14 Go to previous messageGo to next message
Michel Cadot
Messages: 68651
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Seems Oracle check syntax before checking if tablespace already exists.
You have to import schema by schema and not full.

Regards
Michel
Re: IMP-00017: following statement failed with ORACLE error 2237 [message #240930 is a reply to message #240601] Sun, 27 May 2007 21:47 Go to previous messageGo to next message
crmserver
Messages: 7
Registered: May 2007
Location: CHINA
Junior Member
Hi Michel,

How to import schema? Can you tell me in a detailed way?


Thank you.

Re: IMP-00017: following statement failed with ORACLE error 2237 [message #240932 is a reply to message #240112] Sun, 27 May 2007 22:51 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
 imp help=yes

Import: Release 10.2.0.2.0 - Production on Sun May 27 20:50:30 2007

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



You can let Import prompt you for parameters by entering the IMP
command followed by your username/password:

     Example: IMP SCOTT/TIGER

Or, you can control how Import runs by entering the IMP command followed
by various arguments. To specify parameters, you use keywords:

     Format:  IMP KEYWORD=value or KEYWORD=(value1,value2,...,valueN)
     Example: IMP SCOTT/TIGER IGNORE=Y TABLES=(EMP,DEPT) FULL=N
               or TABLES=(T1:P1,T1:P2), if T1 is partitioned table

USERID must be the first parameter on the command line.

Keyword  Description (Default)       Keyword      Description (Default)
--------------------------------------------------------------------------
USERID   username/password           FULL         import entire file (N)
BUFFER   size of data buffer         FROMUSER     list of owner usernames
FILE     input files (EXPDAT.DMP)    TOUSER       list of usernames
SHOW     just list file contents (N) TABLES       list of table names
IGNORE   ignore create errors (N)    RECORDLENGTH length of IO record
GRANTS   import grants (Y)           INCTYPE      incremental import type
INDEXES  import indexes (Y)          COMMIT       commit array insert (N)
ROWS     import data rows (Y)        PARFILE      parameter filename
LOG      log file of screen output   CONSTRAINTS  import constraints (Y)
DESTROY                overwrite tablespace data file (N)
INDEXFILE              write table/index info to specified file
SKIP_UNUSABLE_INDEXES  skip maintenance of unusable indexes (N)
FEEDBACK               display progress every x rows(0)
TOID_NOVALIDATE        skip validation of specified type ids 
FILESIZE               maximum size of each dump file
STATISTICS             import precomputed statistics (always)
RESUMABLE              suspend when a space related error is encountered(N)
RESUMABLE_NAME         text string used to identify resumable statement
RESUMABLE_TIMEOUT      wait time for RESUMABLE 
COMPILE                compile procedures, packages, and functions (Y)
STREAMS_CONFIGURATION  import streams general metadata (Y)
STREAMS_INSTANTIATION  import streams instantiation metadata (N)
VOLSIZE                number of bytes in file on each volume of a file on tape

The following keywords only apply to transportable tablespaces
TRANSPORT_TABLESPACE import transportable tablespace metadata (N)
TABLESPACES tablespaces to be transported into database
DATAFILES datafiles to be transported into database
TTS_OWNERS users that own data in the transportable tablespace set

Import terminated successfully without warnings.
Re: IMP-00017: following statement failed with ORACLE error 2237 [message #240967 is a reply to message #240932] Mon, 28 May 2007 01:54 Go to previous messageGo to next message
crmserver
Messages: 7
Registered: May 2007
Location: CHINA
Junior Member
if use import table is OK,but I full import have Errors
Re: IMP-00017: following statement failed with ORACLE error 2237 [message #240972 is a reply to message #240967] Mon, 28 May 2007 02:06 Go to previous message
Michel Cadot
Messages: 68651
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
We know you have full export error, we read all the thread and try to help since 4 days.
Now you have a workaround.

Regards
Michek
Previous Topic: faq
Next Topic: What is the System Change Number?
Goto Forum:
  


Current Time: Wed May 15 05:13:57 CDT 2024