dbms_datapump import dblink ORA-39165
Hi allI try to import a table on a from dblink to a diagram a diagram b but I get ORA-39165 scheme ('A') has not been found. and ORA-39166 object ('ACCOUNT') has not been found. When you try to import b to b it works but oddly always saves an ORA-39166. User B has imp_full_database and permission on two databases:
declare
Number of JobHandle;
JS varchar2 (9); -COMPLETED or STOPPED
q varchar2 (1): = chr (39);
BEGIN / * open a new level of schema import job using a link to default DB * /.
JobHandle: = dbms_datapump.open (operation = > 'IMPORT',)
job_mode = > 'TABLE',
remote_link = > "MRT");
dbms_datapump.add_file (JobHandle,
filename = > "mylog";
Directory = > 'DATA_PUMP_DIR. "
filetype = > dbms_datapump.ku$ _file_type_log_file);
dbms_datapump.metadata_remap (manage = > JobHandle,)
name = > 'REMAP_SCHEMA ',.
old_value = > "A"
value = > 'B');
dbms_datapump.metadata_filter (manage = > JobHandle,)
name = > 'SCHEMA_EXPR ',.
value = > "IN"A","
object_type = > 'TABLE');
dbms_datapump.metadata_filter (manage = > JobHandle,)
name = > 'NAME_LIST;
' value = > '('' COMPTE ''), '
object_type = > 'TABLE');
dbms_datapump.set_parameter (JobHandle,
"TABLE_EXISTS_ACTION."
'REPLACE');
dbms_datapump. START_JOB (JobHandle);
dbms_datapump.wait_for_job (JobHandle, js);
end;
For the life of me I don't understand how can I tell him that the source table is in A diagram. Any help would be greatly appreciated.
Thank you very much
Ok. Then you export in job_mode SCHEME and patterns of filter and tables, using metadata filter with SCHEMA_EXPR and INCLUDE_PATH_EXPR.
Using the code you provided, here it is changed:
declare
JobHandle number;
js varchar2(9); -- COMPLETED or STOPPED
q varchar2(1) := chr(39);
BEGIN /* open a new schema level import job using a default DB link */
JobHandle := dbms_datapump.open (operation=>'IMPORT', job_mode=>'SCHEMA', remote_link=>'RMT');
dbms_datapump.add_file (JobHandle, filename => 'mylog', directory => 'DATA_PUMP_DIR', filetype => dbms_datapump.ku$_file_type_log_file);
---
DBMS_DATAPUMP.metadata_filter (handle=> JobHandle, name=> 'SCHEMA_EXPR',VALUE=> 'IN(''A'')');
dbms_datapump.metadata_filter (handle => JobHandle,name => 'INCLUDE_PATH_EXPR',value => 'IN (''TABLE'')');
--
dbms_datapump.metadata_remap ( handle=>JobHandle,name=> 'REMAP_SCHEMA',old_value=> 'A',value=> 'B');
dbms_datapump.metadata_filter (handle =>JobHandle, name =>'NAME_LIST', value =>'(''ACCOUNT'')',object_type => 'TABLE');
dbms_datapump.set_parameter ( JobHandle,'TABLE_EXISTS_ACTION','REPLACE' );
dbms_datapump.start_job( JobHandle);
dbms_datapump.wait_for_job( JobHandle, js);
end;
/
I tested it with 10.2.0.3 on both sites, and it worked:
-- mylog.log content:
Starting "B"."SYS_IMPORT_SCHEMA_03":
Estimate in progress using BLOCKS method...
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 64 KB
Processing object type SCHEMA_EXPORT/TABLE/TABLE
. . imported "B"."ACCOUNT" 1 rows
Processing object type SCHEMA_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT
ORA-39083: Object type OBJECT_GRANT failed to create with error:
ORA-01749: you may not GRANT/REVOKE privileges to/from yourself
Failing sql is:
GRANT SELECT ON "B"."ACCOUNT" TO "B"
ORA-39166: Object ('ACCOUNT') was not found.
Job "B"."SYS_IMPORT_SCHEMA_03" completed with 2 error(s) at 17:35:40
And the table was created to the destination site:
B@local> select * from account;
N
----------
1
If you do not have a direct subsidy that B A.ACCOUNT on the remote site, then you will see this output, but the table is imported anyway:
Processing object type SCHEMA_EXPORT/TABLE/TABLE
. . imported "B"."ACCOUNT" 1 rows
ORA-39166: Object ('ACCOUNT') was not found.
Kind regards.
Nelson
Tags: Database
Similar Questions
-
Error ORA-39165 chain of schema not found.
Hello
When importing by impdp since an export dumpfile I error ORA-39165 scheme string is not found.
1. How can I check that in the export dump file, there is no schema of the view? In imp utility we display option. Is there something for impdp?
Thank you.See Note: 260225.1 Import DataPump parameter REMAP_SCHEMA - how to move objects from one schema to another database
$ impdp system/****@mybase DUMPFILE=mydump.dmp remap_schema=schema1:schema2
Of Note: 464558.1, it should also work:
$ impdp schema2/****@mybase DUMPFILE=mydump.dmp remap_schema=schema1:schema2
HTH
Enrique
PS, let us know how it went
Published by: Enrique Orbegozo on October 22, 2008 08:00
-
ORA-39165: Schema not found.
I'm having a strange problem with export. Same user is export gives error such as ORA-39165: CALCOME schema not found.
/itsmrk/rdbm9> sqlplus / as sysdba SQL*Plus: Release 10.2.0.5.0 - Production on Thu Apr 12 15:06:38 2012 Copyright (c) 1982, 2010, Oracle. All Rights Reserved. Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options 15:06:38 : 12-APR-12 @ SYS (ITSMRK) SQL>select username from dba_users where username like 'CALCOM%'; USERNAME ------------------------------ CALCOME 15:07:26 : 12-APR-12 @ SYS (ITSMRK) SQL>exit Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options [sd2n3v7]ITSMRK /itsmrk/rdbm9> expdp "'/ as sysdba'" dumpfile= DATA_PUMP1:itsmrk_CALCOME.dmp SCHEMAS = CALCOME Export: Release 10.2.0.5.0 - 64bit Production on Thursday, 12 April, 2012 15:07:59 Copyright (c) 2003, 2007, Oracle. All rights reserved. Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options Starting "SYS"."SYS_EXPORT_SCHEMA_03": "/******** AS SYSDBA" dumpfile= DATA_PUMP1:itsmrk_CALCOME.dmp SCHEMAS = CALCOME Estimate in progress using BLOCKS method... Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA Total estimation using BLOCKS method: 0 KB ORA-39165: Schema CALCOME was not found. ORA-31655: no data or metadata objects selected for job Job "SYS"."SYS_EXPORT_SCHEMA_03" completed with 2 error(s) at 15:08:12
Published by: user3636719 on April 12, 2012 12:16BANNER ---------------------------------------------------------------- Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi PL/SQL Release 10.2.0.5.0 - Production CORE 10.2.0.5.0 Production TNS for HPUX: Version 10.2.0.5.0 - Production NLSRTL Version 10.2.0.5.0 - Production
Details of OS post pl and the output of the SQL (for user name has no whites attack/crawling)
SQL>select '~' || ltrim(rtrim(username)) || '~' from dba_users where username like 'CALCOM%';
Also, call expdp System.* - you should not use "/ as sysdba" - see the first Note the article here - http://docs.oracle.com/cd/B19306_01/server.102/b14215/dp_export.htm#sthref57
HTH
Srini -
import error ORA-39171 &; ORA-01536
I am getting below error when importing
I increased the system tablespace tooORA-39171: Job is experiencing a resumable wait. ORA-01536: space quota exceeded for tablespace 'SYSTEM'
My source database isTablespace name Total TS Free TS used % SYSAUX 1012 522 48 SYSTEM 1100 299 72
My target database isOracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi PL/SQL Release 10.2.0.5.0 - Production "CORE 10.2.0.5.0 Production" TNS for HPUX: Version 10.2.0.5.0 - Production NLSRTL Version 10.2.0.5.0 - Production
So, in exports and imports, I used the VERSION option = LATER.Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production PL/SQL Release 11.2.0.2.0 - Production "CORE 11.2.0.2.0 Production" TNS for IBM/AIX RISC System/6000: Version 11.2.0.2.0 - Production NLSRTL Version 11.2.0.2.0 - Production
But I still get this error.
Any help much appreciated.
Published by: user3636719 on April 12, 2012 09:01
Published by: user3636719 on April 12, 2012 09:04What were the last two lines on the screen / the log file. If she attempts to import a table, or a table with important extents, it may be that the tablespace is still too small. I don't know what these numbers:
Tablespace name Total TS TS used Free %
1012 522 48 SYSAUX
SYSTEM OF 1100 299 72Dean
-
Hello
I am getting below error while taking expdp backup table of BLOB.
ORA-31693: Data Table object 'HCLM_ADMIN '. "' SCAN_UPLOADEDFILES_TEMP ' failed to load/unload and being ignored because of the error:
ORA-02354: Error exporting/importing data
ORA-01555: snapshot too old: rollback segment number with the name "" too small
ORA-22924: snapshot too old
ORA-31693: Data Table object 'HCLM_ADMIN '. "' TPA_FAXWATCHER ' failed to load/unload and being ignored because of the error:
ORA-02354: Error exporting/importing data
ORA-01555: snapshot too old: rollback segment number with the name "" too small
ORA-22924: snapshot too old
We have already set aside retention to 50000 .table structure are:
SQL > show Cancel parameter
VALUE OF TYPE NAME
------------------------------------ ----------- ------------------------------
UNDO_MANAGEMENT string AUTO
UNDO_RETENTION integer 50000
undo_tablespace string UNDOTBS1
SQL > alter table hclm_admin. SCAN_UPLOADEDFILES_TEMP modify lob (FILE_BLOB) (RETENTION);
Modified table.
SQL > select nom_de_colonne, pctversion and retention
from dba_lobs where owner = 'HCLM_ADMIN' and table_name = "SCAN_UPLOADEDFILES_TEMP";
COLUMN_NAME
--------------------------------------------------------------------------------
PCTVERSION RETENTION
---------- ----------
FILE_BLOB
50000
SQL > alter table hclm_admin. TPA_FAXWATCHER modify lob (FILEDATA_BLOB) (RETENTION);
Modified table.
SQL > select column_name, pctversion and retention of dba_lobs where owner = 'HCLM_ADMIN' and table_name = "SCAN_UPLOADEDFILES_TEMP";
Column_name PCTVERSION RETENTION
---------- ----------
FILE_BLOB
50000
CREATE TABLE HCLM_ADMIN. TPA_FAXWATCHER
(
FILENAME_VAR VARCHAR2 (50 BYTE),
DATE OF CREATED_DATE_DTE,
FILEPATH_VAR VARCHAR2 (100 BYTE),
DATE OF TIMESTAMP_DTE,
FAXNO_VAR VARCHAR2 (15 BYTE),
DEPARTMENT_VAR VARCHAR2 (50 BYTE),
REQUESTTYPE_VAR VARCHAR2 (50 BYTE),
TAGTO_VAR VARCHAR2 (50 BYTE),
REMARK_VAR VARCHAR2 (1000 BYTE),
DOCTYPE_VAR VARCHAR2 (50 BYTE),
TAGTOVALUE_VAR VARCHAR2 (50 BYTE),
DOCTYPE_OTHER_VAR VARCHAR2 (50 BYTE),
HEGIC_NO_VAR VARCHAR2 (50 BYTE),
RECORDNO_NUM NUMBER OF NON-NULL,
FILEDATA_BLOB BLOB,
DATE OF FAXLOCKDATE_DTE,
NUMBER OF FAXLOCKSTATUS_VAR
FAXLOCKBYUSER_VAR VARCHAR2 (50 BYTE)
)
(STORE AS) LOB (FILEDATA_BLOB)
TABLESPACE HCLM_ALERTSVC
ALLOW ONLINE STORAGE
8192 CHUNK
RETENTION
NOCACHE
LOGGING
INDEX)
TABLESPACE HCLM_ALERTSVC
STORAGE)
64K INITIALS
ACCORDING TO 1 M
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
DEFAULT USER_TABLES
))
STORAGE)
64K INITIALS
ACCORDING TO 1 M
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
DEFAULT USER_TABLES
))
TABLESPACE HCLM_ALERTSVC
PCTUSED 0
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE)
64K INITIALS
ACCORDING TO 1 M
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
DEFAULT USER_TABLES
)
LOGGING
NOCOMPRESS
NOCACHE
NOPARALLEL
MONITORING;
ALTER TABLE HCLM_ADMIN. (ADD) TPA_FAXWATCHER
KEY ELEMENTARY SCHOOL
(RECORDNO_NUM)
USING INDEX
TABLESPACE HCLM_ALERTSVC
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE)
64K INITIALS
ACCORDING TO 1 M
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
));
CREATE TABLE HCLM_ADMIN. SCAN_UPLOADEDFILES_TEMP
(
NUMBER OF TEMPID_NUM
SESSION_ID VARCHAR2 (200 BYTE),
NUMBER OF UPLOADFILE_NUM
NUMBER OF DOCNO_NUM
NUMBER OF SCANJOB_NUM
FILENAME_VAR VARCHAR2 (200 BYTE),
FILETYPE_VAR VARCHAR2 (200 BYTE),
FILE_BLOB BLOB,
VARCHAR2 (200 BYTE) FLAG,
NUMBER OF USERID_NUM
CREATED_DATE DATE
)
(STORE AS) LOB (FILE_BLOB)
TABLESPACE PHCLMDBTBS
ALLOW ONLINE STORAGE
8192 CHUNK
RETENTION
NOCACHE
LOGGING
INDEX)
TABLESPACE PHCLMDBTBS
STORAGE)
64K INITIALS
ACCORDING TO 1 M
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
DEFAULT USER_TABLES
))
STORAGE)
64K INITIALS
ACCORDING TO 1 M
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
DEFAULT USER_TABLES
))
TABLESPACE PHCLMDBTBS
PCTUSED 0
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE)
64K INITIALS
ACCORDING TO 1 M
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
DEFAULT USER_TABLES
)
LOGGING
NOCOMPRESS
NOCACHE
NOPARALLEL
MONITORING;
Kind regards
Hello
First check the lob corrupt as:
SQL > create table corrupted_lob_data (corrupted_rowid rowid);
Table created.
SQL > set off concat
SQL >
declare
SQL > error_1555 exception;
pragma exception_init (error_1555,-1555);
number num.
Start
for cursor_lob in (select rowid r, & lob_column of table_owner. & table_with_lob) loop
Start
NUM: = dbms_lob.instr (. cursor_lob & lob_column, hextoraw ('889911'));
exception
When error_1555 then
insert into corrupted_lob_data values (cursor_lob.r);
commit;
end;
end loop;
end;
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
17.
Enter the value of lob_column: FILE_BLOB
Enter the table_owner value: hclm_admin
Enter the value of table_with_lob: SCAN_UPLOADEDFILES_TEMP
former 6: for cursor_lob in (select rowid r, & lob_column of table_owner. & table_with_lob) loop
6 news: for cursor_lob (select rowid r, FILE_BLOB of hclm_admin loop SCAN_UPLOADEDFILES_TEMP.)
old 8: num: = dbms_lob.instr (. cursor_lob & lob_column, hextoraw ('889911'));
8 new: num: = dbms_lob.instr (cursor_lob. FILE_BLOB, hextoraw ('889911'));
PL/SQL procedure successfully completed.
SQL > select * from corrupted_lob_data;
CORRUPTED_ROWID
------------------
AAASF/AAKAABacyAAA
To resolve this problem, we have 3 options
(1) to restore and recover the LOB segment using physical backup.
(2) empty LOBs affected using the UPDATE, as mentioned in the Note 787004.1statement:
SQL > update SCAN_UPLOADEDFILES_TEMP
Set FILE_BLOB = empty_blob()
where rowid in (select corrupted_rowid
of corrupted_lob_data);
SQL > commit;
(3) perform the export, excluding the corrupt ROWID. by adding the following to export command parameter
Query =------"where rowid not in (\'AAASF/AAKAABacyAAA\'\) \ \" "
Kind regards
Alok Dwivedi
-
Import error: ORA-01435: user does not exist
Hi all
I am importing a dump in the Database, the dump of old financial version 6 [EBIZ] 11g
I gave this command:
IMP FILE = EXPDUMP. DMP BUFFER = 524288000 FULL = THERE IGNORE = Y
Import a user and password given system...
Once it has started and error
+ ' MODIFY USER «INFUSE' QUOTA UNLIMITED ON «OTHERD +»
IMP-00003: ORACLE error 1918
ORA-01918: user 'INFUSE' does not exist
IMP-00017: statement failed with error ORACLE 1918:
+ "MODIFY USER «DUB_QUERY" QUOTA UNLIMITED ON «OTHERD +»
IMP-00003: ORACLE error 1918
ORA-01918: user 'DUB_QUERY' does not exist
IMP-00017: statement failed with error ORACLE 1918:
+ "MODIFY USER QUOTA UNLIMITED ON"OEM_REPOSITORY '"+" OEMV22"
IMP-00003: ORACLE error 1918
ORA-01918: user 'OEMV22' does not exist
IMP-00017: statement failed with error ORACLE 1918:
+ "MODIFY USER"W03063_ITD"QUOTA UNLIMITED ON 'TEMP' QUOTA UNLIMITED ON"OEM_R"+"
+ «EPOSITORY "«+»
IMP-00003: ORACLE error 1918
ORA-01918: user 'W03063_ITD' does not exist
+. import of objects of APPS in APPS +.
IMP-00003: ORACLE error 1435
ORA-01435: user does not exist
+. import objects of DUB_QUERY to the DUB_QUERY +.
IMP-00003: ORACLE error 1435
ORA-01435: user does not exist
+. import objects from SYSTEM to SYSTEM.
+. import APPLSYS objects in the APPLSYS. +
+ "ALTER SESSION SET CURRENT_SCHEMA ="APPLSYS"" + "
IMP-00003: ORACLE error 1435
ORA-01435: user does not exist
IMP-00000: Import terminated unsuccessfully
Kindly advice me what is evil,
I created all the data of the same files as the old database. both importing all the users will created, if its OK then why this ' * ORA-01435: user does not exist * "coming...
Concerning
Paja
Published by: hamza on July 2, 2012 04:50I created all the data of the same files as the old database. so when importing all users will be created
In my first test I didn't create all the users before importing, just give this command all users imported without any errors.
Assuming that 'data files' mean 'spaces', are you sure that all the storage spaces have been created (including temporary)?
I did the same thing to dozens of times (not with a version so old, I must say), and I got these errors when some tablespace has not been created.
-
DBMS_DATAPUMP - import a file of DB Link dump
I have two Unix machine, each containing two database.
Below show how its organized.
Now the question is.Server1 ---------- 1. DB1 - User1 - DbLink1 -> This points to DB2 2. DB2 - User1 DB Version 10g. Server2 ---------- 1. DB1 - User1 - DBlink1 -> This points to DB2 2. DB2 - User1 DB Version 10g.
I have a program that uses DBMS_DATAPUMP in Server1.DB1.User1 that will export 10 tables of DB1. User1
and 2 tables in DB2. User1 (via DbLink1).
Now I've moved these files from Server1 to Server2 dump.
I am writing a program using DBMS_DATAPUMP which will import the dump files in Server2.DB1.User1
and Server2.DB2.User1. I have no problem with the importation of tables, in Server2.DB1.User1, but how do I
import, in the Server2.DB2.User1 of Server2.DB1.User1 using the DbLink1? Any idea?Dean Gagne says:
You cannot import a dumpfile over a network link.I think that, knani wantes just to launch the import through the db-link process.
-
Aloha!
I am trying to create an instance, and importing datapump, I come across this error:
C:\_dump > schemas system impdp = p.c.3 directory = BW_TEMP = logfile logfile.log = dumpfile.dmp dumpfile
Import: Free 11.2.0.1.0 - Production on Mon Jan 9 19:09:25 2012
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Password:
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - production
tion
With partitioning, OLAP, Data Mining and Real Application Testing options
ORA-39002: invalid operation
ORA-31694: main table 'SYSTEM '. "' SYS_IMPORT_SCHEMA_01 ' failed to load/unload
ORA-31640: could not open the dump file 'C:\_dump\DPLCCS. DMP"should read
ORA-19505: impossible to identify the file 'C:\_dump\DPLCCS. DMP ".
ORA-27046: file size is not a multiple of the logical block size
OSD-04012: difference in file size (OS 580474881)
C:\_dump >
Please, someone help me on how to correct the error.
Thanks in advance.
HadesHello
Two questions come to mind:
1. the export was created using exp and not expdp
2. you have copied the file with a kind of FTP utility and used the 'ascii' mode and not "binary".If not of them is the problem, perhaps the file is corrupt simply.
-
Import error: ORA-01400: cannot insert NULL in
I'm performing a level schema import and I get this error. Half an hour, this error comes without any stop. could you please tell me how to ignore this error when executing import?
IMP-00019: rejected due to the ORACLE 1400 error line
IMP-00003: ORACLE error 1400
ORA-01400: cannot insert NULL into ("LWARE_ADMIN". "" "" SAMPLE_AUDIT_LOG '. "" COUNTER")
Db version is 10.2.0.4 and platform HP - UX B.11.31 U ia64
Thank you!Hello
Please read this article
ORA-1400 when you import the Export Dump written in Mode Direct Path [ID 826746.1]
Kind regards
Rakesh jayappa -
While import is ORA-01438: value larger than specified precision error
Hello
I get these errors on a few tables when performing an import of tables selected in a diagram. Here's one of them:
++++++++++++++++++++++++++++++++++++++++++++++++++++
. . importing table "CHARGE_DISTRIBUTE".
IMP-00058: ORACLE error 1438
ORA-01438: value larger than the precision specified for the column
IMP-00028: partial import of the restored previous table: 17055 restored lines
. . import of partition 'CM1_AGREEMENT_PARAM': 'AMAXVALUE' 327559 imported lines
++++++++++++++++++++++++++++++++++++++++++++++++++++
How to find out on which column the problem occurs?
Oracle version: 10.2.0.3.0
OS: SunOs
See you soon,.
MalikaHello
As you can see from the following link error ORA-01438 is generally linked to a numeric column:
http://www.error-code.org.UK/view.asp?e=Oracle-ora-01438
So you might get a description of the Table:
desc CHARGE_DISTRIBUTE;
The offending column is probably one with a NUMBER data type.
Next to the notice already posted, you can compare the data type of the columns in the Source and the target Table.
Hope this helps.
Best regards
Jean Valentine -
import problem ORA-01658: unable to create the STARTING point for the segment in your
I created the above tablespace
create tablespace SAMPLEDATA
DataFile ' / u01/app/oracle/oradata/sample/sampledata01.dbf' size 50 M autoextend on next 10 M maxsize unlimited
logging
Local extended management
segment space management auto
Flashback on;
create SAMPLE user identified by usrmringnew
SAMPLEDATA default tablespace
tablespace temporary temp;
Import from 9 to 10r2
IMP fromuser = touser = sample indexfile=/home/oracle/import/production/export/import_productionddl_20081007.log file=/home/oracle/import/production/export/production_export_20081007.dmp log=/home/oracle/import/production/export/production_import_20081007.log production system
Unfortunately, it gives the error
ORA-01658: unable to create the measure INITIAL segment in tablespace
could someone kindly help me on this?
Thank you very much!Hello
As you can see, your data file specifications need to increase of 10 M, but your file system has only 3.7 M of available, that is why the server is unable to increase the size and you get this error message.
Solution - you can use one of following:
1. move the data file to a point of editing with sufficient space.
2 - Add a new data file for the tablespace and host this data on a new mount point file with sufficient space.Published by: sanjayIndia on October 8, 2008 09:02
-
ORA-04031 - 11.2.0.1.0 Oracle expdp
Hello
After a big back my database with EdStevens - I tried now to do an export with expdp
I used:
expdp user/pw schemas=myschema directory=myschemadir dumpfile=mydumpfile.dmp logfile=mylogfile.log
in the end, I got this errors.
UDE-04031: Vorgang hat ORACLE-Fehler generiert 4031 ORA-04031: 16 Byte des Shared Memorys konnten nicht zugewiesen werden ("shared p ool","SELECT job_id FROM v$datapum...","SQLA","tmp") ORA-06512: in "SYS.KUPV$FT_INT", Zeile 2904 ORA-06512: in "SYS.KUPC$QUE_INT", Zeile 572 ORA-25254: Timeout in LISTEN beim Warten auf eine Nachricht ORA-06512: in "SYS.DBMS_DATAPUMP", Zeile 3263 ORA-06512: in "SYS.DBMS_DATAPUMP", Zeile 4488 ORA-06512: in Zeile 1
What can I do this error ORA-04031? I think it's the main reason, or?
Thanks a lot for the help again
I fixed it myself...
I've added to my startup file:
*.sga_target=3059744768
I stopped my DB, I started and now I can export my database
Thank you to all assistants in particular EdStevens , I learned a lot from you!
ARO
Tim
-
12 c to 11g, ORA-39142 DataPump: incompatible version number 4.1
Hi gurus of the Oracle,.
I tried to transfer data from 12 c to 11 g,
I took datapump 12 c with VERSION = 12.1 backup
and I tried to import 11g with version = 12.1
get the error when importing
ORA-39142: incompatible version number 4.1
Please help me in this regard.
Thank you in advance
Kind regards
REDA
Hi reda,.
You just set the version 11.2 instead of 12.1 to say expdp "extract data and metadata into oracle 11.2 format"-you can then load this very well.
See the example here Oracle DBA Blog 2.0: decommissioning with datapump
See you soon,.
Rich
-
Hi exports.
I get the following error in my database...
ORA-31693: Data Table object 'ORISSA_TRANSACTION '. "' SELLER_BIOMETRICS_TBL ' failed to load/unload and being ignored because of the error:
ORA-02354: Error exporting/importing data
ORA-01555: snapshot too old: rollback segment number 140 with the name ' _SYSSMU140$ ' too small
06-02-2013 02:58:14.090
ORA-31693: Data Table object 'ORISSA_TRANSACTION '. "' BUYER_BIOMETRICS_TBL ' failed to load/unload and being ignored because of the error:
ORA-02354: Error exporting/importing data
ORA-01555: snapshot too old: rollback segment number 232 with the name ' _SYSSMU232$ ' too small
Here is my SETUP to cancel...
SQL > set line 180 pages 400
SQL > show Cancel parameter
VALUE OF TYPE NAME
------------------------------------ ----------- ------------------------------
UNDO_MANAGEMENT string AUTO
UNDO_RETENTION around 5400
undo_tablespace string UNDOTBS1
SQL >
Improve undo_retention parameter...
Please suggest the solution...
Concerning
ASITSee the MOS notes:
"ORA-01555" snapshot too old: rollback segment %s with name \"%s\ number ' too small ' [ID 1555.1]
Note to master to find errors ORA-1555 [ID 1307334.1] -
Having problems to import tables to a new user with new tablespace
Hi all
Here is my scenario:
I have a user, the latter having data stored in storage - say q, w, e.
I would like to export all the tabledata and import it to a new user USER_B. All data imported to B must be kept in the USER_B_PERM tablespace.
I tried a lot of things yet, but imp always try importing the tables for the original tablespaces.
What have I done now:
create new databases:
create tablespace USER_B_PERM
DATAFILE ' / oradata_big, path, USER_B, USER_B_PERM. DBF' SIZE 126 M
SIZE UNIFORM LOCAL 125M MANAGEMENT MEASURE;
ALTER DATABASE DATAFILE ' / oradata_big, path, USER_B, USER_B_PERM. DBF'
AUTOEXTEND ON;
create temporary tablespace USER_B_TEMP
TEMPFILE ' / oradata_big, path, USER_B, USER_B_TEMP. DBF' SIZE 126 M
SIZE UNIFORM LOCAL 125M MANAGEMENT MEASURE;
ALTER DATABASE TEMPFILE ' / oradata_big, path, USER_B, USER_B_TEMP. DBF'
AUTOEXTEND ON MAXSIZE 3000M;
CREATE user B:
-SQL USER
CREATE USER USER_B IDENTIFIED BY USER_B
DEFAULT TABLESPACE "USER_B_PERM".
TEMPORARY TABLESPACE "USER_B_TEMP";
-ROLES
GRANT "RESOURCE" TO USER_B;
'CONNECT' GRANT TO USER_B.
ALTER USER USER_B ROLE BY DEFAULT "RESOURCE", "CONNECT";
-SYSTEM PRIVILEGES
GRANT CREATE ANY VIEW TO USER_B;
REVOKE A USER_B UNLIMITED TABLESPACE;
change the quota USER_B unlimited user on USER_B_PERM.
export of old data
owner file = exp_user_a.exp exp = USER_A compatible exp.log = LINES Y = Y = log
new user import
IMP file = exp_user_a.exp fromuser = USER_A, USER_B log = imp.log ROWS = touser = Y
Because I revoked the UNLIMITED TABLESPACE privilege imp creates tables in the original storage spaces (q, w, e) but the data import failed:
ORA-01536: space-Programmvielfalt fur Tablespace 'q' passed.
Any ideas? I don't see what is different to the docs:
http://docs.Oracle.com/CD/B19306_01/server.102/b14215/exp_imp.htm#i1023312
We are using oracle 11.2.0.1 and we have still a few columns long raw if it matters.
Thanks in advance,
AndreasI tried a lot of things yet, but imp always try importing the tables for the original tablespaces.
If the table was created with the specific tablespace clause, then it will go in particular tablespace.
I would like to export all the tabledata and import it to a new user USER_B. All data imported to B must be kept in the USER_B_PERM tablespace.
easy to solve this problem in impdp datapump, use clause REMAP_TABLESPACE.
http://docs.Oracle.com/CD/B19306_01/server.102/b14215/dp_import.htm
Maybe you are looking for
-
Equium A100 - where to get a new card controller for Hitachi hard disk?
Hello! I have a Toshiba Equium A100-338. The hard drive is now broken. The problem seems to be with on the hard drive controller card; the device gives no response when I try to plug the hard drive into the other computers with SATA interface. There
-
Pavilion g6: bios password for hp pavilion g6
Please could you give me the password to enter the bios on my pavilion g6
-
Yoga 2 + Win10 Synaptics driver plus BSOD
"Hello, last week I bought a new Yoga 2 13. It came with Windows preinstalled 8.1 and I immediately upgraded to Windows 10 (after the update, I did a clean install). Everything works perfectly... except for a 'small' problem: when I'm cold boot the c
-
Cannot change the appearance of custom settings window
Hello In the attached vi, I changed a few custom settings in the appearance window category vi properties box. What should I do to change the settings back to the 'top-level Application window"? Simply by clicking on the respective radio button doesn
-
Hello people, I'm fairly new to LabView and would be happy to use some help and advice from more experienced people. Basically I'm doing a vi that gives a square pulse of given width each time the trigger is activated. The pulse width is the setting