Expdp/Impdp does not
Hello!!
I use oracle 10g Enterprise Edition on windows 7. I produced import and export several times and it was working fine until this day. But now, it is because of errors.
UDI-00008: operation there was error ORACLE 31623
ORA-31623: a job is not attached to this session by the specified handle
ORA-06512: at "SYS." DBMS_DATAPUMP', line 2745
ORA-06512: at "SYS." DBMS_DATAPUMP', line 3712
ORA-06512: at line 1
When I did google, I found the suggestion of memory settings and "aq_tm_processes". All are as it should. When I run the exp/imp command there is no dumpfile logfile created in the specified directory.
Can it be question of privilege from read/write to the OS for user level?
Can someone guide me please...
Hi-
cleaning of all the old data pump jobs. Note below will help you for the same
How to cleaning DataPump orphan jobs in DBA_DATAPUMP_JOBS? (Doc ID 336014.1)
check for any objects/package invalid
SQL > connect as sysdba
SQL > spool out.html
SQL > set pagesize 9999
SQL > the value html markup on
SQL > select name from v$ database;
SQL > SELECT * from v version $;
SQL > SELECT distinct (length (addr) * 4) "Word Size" of the process of v$.
SQL > SELECT master, object_name, object_type, status from dba_objects where status = 'INVALID ';
SQL > select owner, object_type, count (*) in the dba_objects where status = 'INVALID' group by owner, object_type.
SQL > SELECT SUBSTR(comp_id,1,15) identifiant_composant, status, version SUBSTR (version, 1, 10), modified,
SUBSTR(Comp_Name,1,30) comp_name, substr (schema, 1, 15) in the form of schema
FROM dba_registry by identifiant_composant;
SQL > select * history of registry of $;
increase the pool size of flows to 100-150 MB, and then run the export and let us know if the problem persists
BR
AK
Tags: Database
Similar Questions
-
Error exporting schema EXPDP in tablespace does not exist...
Hi guys,.C:\>EXPDP ****/**** DIRECTORY=DATA_PUMP_DIR DUMPFILE=PRODDTA_SCHEMA.DMP LOGFILE=PRODDTA_SCHEMA_EXP.LOG Export: Release 10.2.0.4.0 - Production on Monday, 20 June, 2011 13:27:56 Copyright (c) 2003, 2007, Oracle. All rights reserved. Connected to: Oracle Database 10g Release 10.2.0.4.0 - Production ORA-31626: job does not exist ORA-31633: unable to create master table "PRODDTA.SYS_EXPORT_SCHEMA_05" ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95 ORA-06512: at "SYS.KUPV$FT", line 871 ORA-00959: tablespace 'PRODDTATB' does not exist
I'm trying to export this particular scheme but apparently he error on this particular tablespace PRODDTATB. This has been used to rearrange the storage space for the temporary storage and was therefore not used and subsequently abandoned. How to find which table or view or other objects, referring to this particular space?
I already checked the following:
dba_tables
dba_indexes
dba_segments
dba_lobs
dba_tablespaces
USER_TABLES
USER_INDEXES
WHERE user_segments
user_lobs
USER_TABLESPACES
Or create this particular tablespace will allow me to export successfully? But before I will recreate I want to find what objects is still referencing this particular table space... Hope someone can point me in the right direction.
Thank you very much.
Published by: user6338270 on June 20, 2011 12:13 AM
Added things I looked...views, you can see
dba_users,
dba_tablesI hope that your tablespace has been abandoned, in this case you need to retrieve this particular tablespace.
-
Impdp import does not the privileges of the user
Hi guys,.
IM using expdp/impdp to a schema of 11.1 11.2 database, following importation, I realized that some of the packages are not valid... I did some research and discovered that oracle has not granted privileges to the user (such as
GRANT SELECT ON "SYS". "' V_$ SESSTAT ' TO
GRANT SELECT ON "SYS". "' V_$ STATNAME ' TO
GRANT EXECUTE ON "SYS". "" DBMS_AQADM ' TO
is this a normal behavior of the impdp to jump the sys privileges?It's true.
Let me quote documents"Restrictions".
...
Subsidies on belonged to the SYS schema objects are never exported. » -
Does not work EXP EXPDP works in 11g
I tried to export a table with exp in 11g and it will not be exported to the table. Then I tried to export the table using data pump and it does not export the table. Are there situations that usually back the correct obecjts to 11g exp?
SQL > select * from v version $;
BANNER
--------------------------------------------------------------------------------
Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production
PL/SQL Release 11.2.0.1.0 - Production
CORE 11.2.0.1.0 Production
AMT for IBM/AIX RISC System/6000: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
SQL > desc momentum.mf_apas_frm_ln
Name Null? Type
----------------------------------------- -------- ----------------------------
UIDY NOT NULL VARCHAR2 (75)
ASET_NUM VARCHAR2 (30)
ASET_TYP VARCHAR2 (10)
BTMT_NUM_CH CHAR (5)
DSCR VARCHAR2 (255)
ENTP_LNUM_CH CHAR (5)
LNUM_CH CHAR (5)
DATE OF OPLK
PARN_OF_LINE_ID VARCHAR2 (75)
QY_CHAR CHAR (20)
STAE_OF_LINE VARCHAR2 (20)
XTRN_LNUM_CH VARCHAR2 (20)
SQL > exit
Disconnected from the database to Oracle 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production
With partitioning, OLAP, Data Mining and Real Application Testing options
k801ora@jd1su143 in/a0143/d01/backups/ufms908: exp system file = table.dmp tables = momentum.mf_apas_frm_ln
Export: Release 11.2.0.1.0 - Production on Thu Apr 1 08:16:18 2010
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Password:
Connected to: Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production
With partitioning, OLAP, Data Mining and Real Application Testing options
Export in US7ASCII and AL16UTF16 NCHAR character set
Server uses WE8MSWIN1252 (possible character set conversion) character set
About to export specified tables by conventional means...
Current user has changed to PULSE
EXP-00011: MOMENTUM. MF_APAS_FRM_LN does not exist
Export completed successfully with warnings.
k801ora@jd1su143 in/a0143/d01/backups/ufms908: expdp system file = tables.dmp tables = momentum.mf_apas_frm_ln
Export: Release 11.2.0.1.0 - Production on Thu Apr 1 08:16:28 2010
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Password:
Connected to: Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production
With partitioning, OLAP, Data Mining and Real Application Testing options
Legacy mode Active due the following parameters:
Legacy Mode parameter: "file = tables.dmp" place: command, replaced by line: "dumpfile = DPUMP_DIR_908:tables.dmp.
Directory of database object 'DPUMP_DIR_908' has been added to the specification of the file: 'tables.dmp. '
Legacy mode is set to reuse_dumpfiles = true parameter.
Legacy mode is set to nologfile = true parameter.
Return of FLAME activated automatically to preserve the integrity of the database.
Start "SYSTEM". "" SYS_EXPORT_TABLE_01 ": System / * dumpfile = DPUMP_DIR_908:tables.dmp tables = momentum.mf_apas_frm_ln reuse_dumpfiles = true nologfile = true
Current estimation using BLOCKS method...
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 0 KB
Processing object type TABLE_EXPORT/TABLE/PROCACT_INSTANCE
Object type TABLE_EXPORT/TABLE/TABLE processing
Processing object type TABLE_EXPORT/TABLE/SCHOLARSHIP/OWNER_GRANT/OBJECT_GRANT
Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX
Object type TABLE_EXPORT/TABLE/CONSTRAINT/treatment
Object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS of treatment
Object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS treatment
. . exported "MOMENTUM." "" MF_APAS_FRM_LN "0 KB 0 rows
Main table 'SYSTEM '. "" SYS_EXPORT_TABLE_01 "properly load/unloaded
******************************************************************************
Empty the file system set. SYS_EXPORT_TABLE_01 is:
/A0143/D01/backups/ufms908/tables.dmp
Work 'SYSTEM '. "" SYS_EXPORT_TABLE_01 "conducted at 08:17
k801ora@jd1su143 in/a0143/d01/backups/ufms908:Hello
It's nothing new with exp with 11 GR 2, oracle allocates not any initial extensions/segments in the table at the same time to create. It allocates initial extensions/segments during the first insertion. So now when you have not all segments/extensions to export exp throw you the error.
Concerning
Anurag -
Hi DBA:
We are evaluating different methods of upgrading 11 GR 2 DB to 12 c (12.1.0.2) this year, it is very important for us to use the right method. It was reported that when DB version was 9i and has been updated to 11g, there were some order of tables 'line' was wrong when execute SELECT statements in application (Java application) - at the moment I didn't if it is ' select * from... "or any specific part with a"where"clause, and what type of data was wrong (maybe sequence CLOB data, etc.).
I think I know, ' exp/imp', "expdp/impdp" logical backup of DB methods. Therefore, Oracle automatically import data and fix it in each table. If no error in impdp connects after it's over, should not be any mistake, right?
If the use of the method of 'creates a new data + expdp/impdp basis for schemas user' 11g 12 c port data, questions:
1. this method will lead to erroneous sequence data when ordering? If so, how to re - generate the sequence number?
2. this method can bring CLOB, BLOB data and without any errors? If error, how to detect and repair?
I use the same method in the 10.2.0.5 to 11g port data, no problem.
I'll keep this thread posted after getting more information from application.
Thank you very much!
Dania
INSERT... SELECT, CREATE TABLE in the SELECT and Export-Import will all "re-organize" the table by assigning new blocks.
In place--update (using DBUA or command line) don't re-create the user tables (although it DOES not rebuild the data dictionary tables). Therefore, does not change the physical location of lines for user tables. However, there is no guarantee that a further reason for INSERT, DELETE, UPDATE instructions does not change the physical location of ranks. Nor is it a guarantee that a SELECT statement will return always stored in the same order unless an ORDER BY is specified explicitly.
If you export the data while it is still used, you don't avoid update sequences in the source database. Usually results in a mismatching number sequence between the source database and the new database (imported). In fact, even the numbers may be different, unless you use CONSISTENT or FLASHBACK_SCN. (These two options in exp / expdp do NOT prevent update sequences). The right way to manage sequences is to rebuild or increase them in data imported with the values in the data source, once the import is complete.
Hemant K Collette
-
Hi, I'm currently expdp/impdp but every time the same mistakes. OS win Server 03 on ORACLE 10 g.
errors:
C:\Documents and Settings\Administrateur > impdp rΘpertoire "/ as sysdba" = "data_pump_dir" dumpfile = logfile = scott.log'scott.dmp ' '
Import: Release 10.2.0.3.0 - Production on Tuesday, March 25, 2014 10:43:18
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Connected to: Oracle Database 10 g Enterprise Edition Release 10.2.0.3.0 - Production
With partitioning, OLAP and Data Mining options
ORA-31626: there is no job
ORA-04063: package body 'SYS. DBMS_INTERNAL_LOGSTDBY"contains errors
ORA-06508: PL/SQL: called program unit is not found: 'SYS. "DBMS_INTERNAL_LOGSTDBY '
ORA-06512: at "SYS." "KUPV$ FT", line 834
ORA-04063: package body 'SYS. DBMS_INTERNAL_LOGSTDBY"contains errors
ORA-06508: PL/SQL: called program unit is not found: 'SYS. DBMS_INTERNAL_LOGSTDBY ".
SQL > alter the body of package DBMS_INTERNAL_LOGSTDBY compilation;
WARNING: The bodies of Package modified with compilation errors.
SQL > show error
PACKAGE BODY DBMS_INTERNAL_LOGSTDBY errors:
LINE/COL ERROR
-------- -----------------------------------------------------------------
2563/4 PL/SQL: statement ignored
2563/20 PL/SQL: ORA-00942: table or view does not exist
2625/3 PL/SQL: statement ignored
2625/19 PL/SQL: ORA-00942: table or view does not exist
2809/2 PL/SQL: statement ignored
2809/13 PL/SQL: ORA-00942: table or view does not exist
HELP ME PLEASE
Since you're using Oracle 10 g version...
Check if you have columns that contain "TEMESTAMP (6) ' data by using this query type:"
Select dba_tab_columns owner, table_name, column_name data_type where column_name = 'TIMESTAMP' and data_type like '% TIMESTAMP ';
If the previous query lists for you a list of tables, you must do the following for each table:
ALTER table system.table_name change (date timestamp);
Then recompile the package "DBMS_INTERNAL_LOGSTDBY" again.
I hope this helps.
Kind regards
-
expdp, impdp - redo generation?
Friends...
Oracle 11 g 2 SE
OS: Linux
I had tried to search in the documentation, but could not find an answer.
I'm dropping some tables but prior to export for backup, db is in archivelog mode.
Before you delete tables, trying to find if expdp job generates a lot of repeat or not given that the file system have 20 GB of free space.
Issue.
1. If I'm the scene expdp some tables with size 80 GB (size.. indexes on table not included), does expdp will generate a similar amount of redo or it will generate a lot of repeat?
2 impdp job also generate a lot of repeat or only during the creation of index in impdp?
Thank you
Mike
Export do NOT generate all over again. It's just dumping data in binary files. Very little again just to keep the export data table, rocking but very very minimal. IF I had to guess not more than 1 MB.
Import generates recovery logs. Imports perform "Insert" statement behind the scenes and it does not generate a lot of newspapers of recovery. You can use sqlfile to create the definition of the index and to run manually with NOLOGGING which will reduce some redo. something like
exclude the user/password Impdp = index - this will import everything except the index.
Impdp username/password include sqlfile = index.sql index = - this will create a file named index.sql that will contain all the instructions for the index create
-
I don't know whether or not the user already exists in the database.
the version is 11.2.0.1
SYS > select username from dba_users;
USERNAME
------------------------------
SCOTT
BB
..
..
SYS > drop user bb waterfall.
Drop user cascade bb
*
ERROR on line 1:
ORA-01918: user 'BB' does not exist
SYS > change the bb user identified by bb;
change identified by bb bb user
*
ERROR on line 1:
ORA-01918: user 'BB' does not exist
SYS > change user BB identified by bb;
change identified by bb BB user
*
ERROR on line 1:
ORA-01918: user 'BB' does not exist
When export, customer expdp is showing BB user.
. . exported "BB". "" INVOICES ":"INVOICES_Q1"0 KB 0 rows
. . exported "BB". "" INVOICES ":"INVOICES_Q2"0 KB 0 rows
. . exported "BB". "" INVOICES ":"INVOICES_Q3"0 KB 0 rows
. . exported "BB". "" INVOICES ":"INVOICES_Q4"0 KB 0 rows
. . exported "BB". "SONY. Emp1"0Ko 0 rows
. . exported "BB". "SONY. EMP2"0Ko 0 rows
. . exported "BB". "" SALGRADE "0 KB 0 rows
. . exported "BB". "" SALGRADE_NEW "0 KB 0 rows
. . exported "BB". "" SALGRADE_OLD "0 KB 0 rows
. . exported "BB". "' CPGB ' 0Ko 0 rows
. . exported "BB". "" PRTC "0Ko 0 rows
. . exported "BB". "" SCNM "0Ko 0 rows
There is a space in the username
use
drop the 'BB' user cascade;.
or
change user 'BB' identified by bb;
-
WHEN I SPEAR IMPDP I GET AN ERROR ABOUT "THE TABLESPACE DOES NOT EXIST.
THIS space of STORAGE IS in FACT is MORE PRESENT on THE SYSTEM, BUT IT IS DEFINED IN the User1 SCRIPT
IS there ANYWAY THAT I CAN ASK HIM don't GET THIS TEMP TABLESPACE
or
is there anyway I can remove the definition of the user (User1) NSN_2
OR
should I just re-create the NSN_2 tablescape
HELP NEEDED PLS...
DROP USER CASCADE USER1;
CREATE THE USER1 USER
IDENTIFIED BY < password >
NSN_1 DEFAULT TABLESPACE
TEMPORARY TEMP TABLESPACE
-2 Tablespace quotas for User1
ALTER USER USER1 QUOTA UNLIMITED ON NSN_1;
ALTER USER USER1 QUOTA UNLIMITED ON NSN_2; -point in contention
Directory of Impdp User1/password = dump_dir dumpfile = logfile = LOG.log remap_schema user2.dmp = USER2:USER1 remap_tablespace = NSN_4:NSN_1
Table main "USER1". "' SYS_IMPORT_FULL_01 ' properly load/unloaded
Departure "USER1". "' SYS_IMPORT_FULL_01 ': User1 / * directory = dump_dir = setup_02102012.dmp = logfile dumpfile tries .log remap_schema = remap_tablespace of installation: USER1 = NSN_4:NSN_1
Processing object type SCHEMA_EXPORT/USER
ORA-31684: USER object Type: 'USER1' already exists
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/TABLESPACE_QUOTA
ORA-39083: Type as tablespace_quota cannot be created with the object error:
ORA-00959: tablespace "NSN_2" does not exist
Because sql is:
REPORT THE NUMBER OF TEMP_COUNT; SQLSTR VARCHAR2 (200); BÉGIN SQLSTR: = ' ALTER USER 'USER1' QUOTA UNLIMITED ON 'NSN_2 '; RUN IMMEDIATELY SQLSTR; EXCEPTION, THEN THAN OTHERS SO IF SQLCODE =-30041 THEN SQLSTR: = ' SELECT COUNT (*) OF USER_TABLESPACES WHERE NOM_TABLESPACE = "NSN_2" AND CONTENT = "TEMPORARY"'; RUN IMMEDIATELY SQLSTR IN TEMP_CO
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Object type SCHEMA_EXPORT/SEQUENCE/SEQUENCE of treatment
Object type SCHEMA_EXPORT/TABLE/TABLE processing
ORA-39083: TABLE object type: "USER1". "" AVAIL_BY_OPTION_REF "impossible to create with the error:
ORA-00959: tablespace "NSN_2" does not exist
Impdp transform = segment_attributes
Smit
-
expdp/impdp: constraints in the child-Parent relationship
Hello
I have a table parent1 and child1, child2 and chld3 tables have foreign key created on this parent1.
Now, I want to do a delete on parent1. But as the number of records is very high on parent1, we go with expdp / impdp with option querry.
I took the expdp parent1 level query. Now I dropped parent1 with option of cascade constraints and all foreign keys created by child1, 2 and 3 that parent1 references are automatically deleted.
Now, if I have the impdp to the query of fire level dump file, are these foreign key constraints will be created automatically on child1, 2 and 3 or I need to manually recreate it?
Kind regards
ANUHello
The CF will not be in the dumpfile - see the code example below where I generate a sqlfile following pretty much the process that you would have done. This is because FK belongs to the DDL for the child table not the parent.Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production With the Partitioning option OPS$ORACLE@EMZA3>create table a (col1 number); Table created. OPS$ORACLE@EMZA3>alter table a add primary key (col1); Table altered. OPS$ORACLE@EMZA3>create table b (col1 number); Table created. OPS$ORACLE@EMZA3>alter table b add constraint x foreign key (col1) references a(col1); Table altered. OPS$ORACLE@EMZA3> EMZA3:[/oracle/11.2.0.1.2.DB/bin]# expdp / include=TABLE:\"=\'A\'\" Export: Release 11.2.0.3.0 - Production on Fri May 17 15:45:50 2013 Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production With the Partitioning option Starting "OPS$ORACLE"."SYS_EXPORT_SCHEMA_04": /******** include=TABLE:"='A'" Estimate in progress using BLOCKS method... Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA Total estimation using BLOCKS method: 0 KB Processing object type SCHEMA_EXPORT/TABLE/TABLE Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS . . exported "OPS$ORACLE"."A" 0 KB 0 rows Master table "OPS$ORACLE"."SYS_EXPORT_SCHEMA_04" successfully loaded/unloaded ****************************************************************************** Dump file set for OPS$ORACLE.SYS_EXPORT_SCHEMA_04 is: /oracle/11.2.0.3.0.DB/rdbms/log/expdat.dmp Job "OPS$ORACLE"."SYS_EXPORT_SCHEMA_04" successfully completed at 15:45:58 Import: Release 11.2.0.3.0 - Production on Fri May 17 15:46:16 2013 Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production With the Partitioning option Master table "OPS$ORACLE"."SYS_SQL_FILE_FULL_01" successfully loaded/unloaded Starting "OPS$ORACLE"."SYS_SQL_FILE_FULL_01": /******** sqlfile=a.sql Processing object type SCHEMA_EXPORT/TABLE/TABLE Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS Job "OPS$ORACLE"."SYS_SQL_FILE_FULL_01" successfully completed at 15:46:17 -- CONNECT OPS$ORACLE ALTER SESSION SET EVENTS '10150 TRACE NAME CONTEXT FOREVER, LEVEL 1'; ALTER SESSION SET EVENTS '10904 TRACE NAME CONTEXT FOREVER, LEVEL 1'; ALTER SESSION SET EVENTS '25475 TRACE NAME CONTEXT FOREVER, LEVEL 1'; ALTER SESSION SET EVENTS '10407 TRACE NAME CONTEXT FOREVER, LEVEL 1'; ALTER SESSION SET EVENTS '10851 TRACE NAME CONTEXT FOREVER, LEVEL 1'; ALTER SESSION SET EVENTS '22830 TRACE NAME CONTEXT FOREVER, LEVEL 192 '; -- new object type path: SCHEMA_EXPORT/TABLE/TABLE CREATE TABLE "OPS$ORACLE"."A" ( "COL1" NUMBER ) SEGMENT CREATION IMMEDIATE PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE(INITIAL 16384 NEXT 16384 MINEXTENTS 1 MAXEXTENTS 505 PCTINCREASE 50 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "SYSTEM" ; -- new object type path: SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT ALTER TABLE "OPS$ORACLE"."A" ADD PRIMARY KEY ("COL1") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 16384 NEXT 16384 MINEXTENTS 1 MAXEXTENTS 505 PCTINCREASE 50 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "SYSTEM" ENABLE; -- new object type path: SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS DECLARE I_N VARCHAR2(60); I_O VARCHAR2(60); NV VARCHAR2(1); c DBMS_METADATA.T_VAR_COLL; df varchar2(21) := 'YYYY-MM-DD:HH24:MI:SS'; stmt varchar2(300) := ' INSERT INTO "SYS"."IMPDP_STATS" (type,version,flags,c1,c2,c3,c5,n1,n2,n3,n4,n5,n6,n7,n8,n9,n10,n11,n12,d1,cl1) VALUES (''I'',6,:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11,:12,:13,NULL,:14,:15,NULL,:16,:17)'; BEGIN DELETE FROM "SYS"."IMPDP_STATS"; c(1) := 'COL1'; DBMS_METADATA.GET_STAT_INDNAME('OPS$ORACLE','A',c,1,i_o,i_n); EXECUTE IMMEDIATE stmt USING 0,I_N,NV,NV,I_O,0,0,0,0,0,0,0,0,NV,NV,TO_DATE('2013-05-17 15:43:24',df),NV; DBMS_STATS.IMPORT_INDEX_STATS('"' || i_o || '"','"' || i_n || '"',NULL,'"IMPDP_STATS"',NULL,'"SYS"'); DELETE FROM "SYS"."IMPDP_STATS"; END; /
Kind regards
Harryhttp://dbaharrison.blogspot.com/
-
expdp, impdp Grid 11.2 and ACFS
Version of the grid: 11.2.0.3
OS: Red Hat Enterprise Linux 5.4
A few months, our cluster of CARS, while taking a backup expdp in a local Linux file system, I got some errors. Remember the error code or the script now that I had too much work this day. The problem was solved when we used a location of file system ACFS as the directory for expdp object.
Today, in the same cluster RAC, to reproduce that issue, I tested it with an expdp backup in a local Linux format
file system (/ home/oracle/pumpDir) and the expdp finished without any problems.
Someone at - it all met problems with expdp, impdp in environment RAC cluster in reason to use a local Linux file system?The error would be more probably "file not found".
expdp/impdp (datapump) will begin in several parallel processes on the cluster. If all nodes cannot find the 'local' directory, you will get the above error.
Bottom line, the parallel processes expdp may or may not be on a single node, so the 'directory' MUST be accessible across the cluster.
-
Expdp/impdp can be used to upgrade the database (instead of DBUA) R12
Hi all
(1) could as possible to convert the database to UTF8 value as part of the database
upgrading process within the update Rel12? Any suggestion on how to do it? Any doc doc/procedure?
(2) according to Rel 12 guide upgrade applications, I can follow "interoperability Notes: Oracle Applications 11i.
with Oracle Database 11 g 2"doc to update my database. But this doc suggested using DBUA.
Can I use expdp/impdp instead so I can convert the character at a time? All documentation
that I can follow to use expdp/impdp to do the upgrade?
(3) are there measures to specify/extra for Rel12 if I want to convert the characters of the base
the value UTF8?
Thanks in advance!(1) could as possible to convert the database to UTF8 value as part of the database
upgrading process within the update Rel12? Any suggestion on how to do it? Any doc doc/procedure?I do not. You must upgrade, and then convert the characters or convert then upgrade - you can save an SR to confirm this with the support of the Oracle.
(2) according to Rel 12 guide upgrade applications, I can follow "interoperability Notes: Oracle Applications 11i.
with Oracle Database 11 g 2"doc to update my database. But this doc suggested using DBUA.
Can I use expdp/impdp instead so I can convert the character at a time? All documentation
that I can follow to use expdp/impdp to do the upgrade?Only DBUA is the way supported in Oracle EBS instance level. Please see this similar thread - Oracle EBS 11i Database Upgrade to 11 GR 2 - Upgrade method Support Manual is?
(3) are there measures to specify/extra for Rel12 if I want to convert the characters of the base
the value UTF8?Please see the documentation referenced in this thread - ADADMIN convert character set CUSTOM_TOP
Thank you
Hussein -
ORA-39083, ORA-00959: tablespace "TEST_LIVE" does not exist
Hello
I'm trying to import using impdp but I am experiencing at the below mentioned error...
Connected to: Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With partitioning, OLAP, Data Mining and Real Application Testing options
Table main "TEST_230511." "' SYS_IMPORT_FULL_01 ' properly load/unloaded
Start "TEST_230511". ' SYS_IMPORT_FULL_01 ': TEST_230511/***@GEMSDB REMAP_SCHEMA = RΘPERTOIRE TEST_220511:test_230511 = dump_dict = test_live_230511.DMP test_230511.LOG = LOGFILE DUMPFILE.
Processing object type SCHEMA_EXPORT/USER
ORA-31684: USER object Type: 'TEST_230511' already exists
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/DB_LINK
Object type SCHEMA_EXPORT/SEQUENCE/SEQUENCE of treatment
Object type SCHEMA_EXPORT/TABLE/TABLE processing
ORA-39083: object of type THAT TABLE could not create with the error:
ORA-00959: tablespace "TEST_LIVE" does not exist
Because sql is:
CREATE TABLE 'TEST_230511 '. "" C_EXPENSECLAIMS_EMPLOYEE "("C_EXPENSECLAIMS_EMPLOYEE_ID"NUMBER (10.0),"AD_CLIENT_ID"NUMBER (10.0), NUMBER (10,0)"AD_ORG_ID","ISACTIVE"CHAR (1),"CREATED"DATE,"CREATEDBY"NUMBER (10.0), DATE 'DAY', 'UPDATEDBY" NUMBER (10.0), 'TRANSACTION_DATE"DATE, DATE 'EXPENSE_DATE', NUMBER (10.0) 'EXPENSE_TYPE_ID', 'BUDGET' CHAR (1) DEFAULT ('N'), THE NUMBER OF 'AMOUNT')
ORA-39083: object of type THAT TABLE could not create with the error:
ORA-00959: tablespace "TEST_LIVE" does not existORA-00959: tablespace "TEST_LIVE" does not exist
Oracle has clearly tell you, need tablespace whose name is TEST_LIVE on the target database was created after that you can try import again.
-
Password Oracle symbol # does not not in shell script
I have the shell script that exports the database schema. My Userid password export subscription contains #. Shell script is throwing error. If we have the password without this character, then it works fine. How do we use the password in shell script to perform this task?
$ORACLE_HOME/bin/expdp system/test #test = userid parfile test.par dumpfile = test.dmp =
I tried to use double-quotes and apostrophes for this password... but it still does not. any help is appreciated.Please post the contents of test.par.
You can try to run before running EXPDP:
drop table SYSTEM.EXP_DEVDB06;
Edited by: P. Forstmann on 27 Jan. 2010 17:46
Edited by: P. Forstmann on 27 Jan. 2010 17:47
-
Backup DataPump when demand through crontab does not work!
Hi Master,
I had a script to save the export. I've changed to keep datapump backup instead of the export of conventinal. And since then, the cron job has stopped running.
The oriiginal script was:
#! / bin/bash
CD/opt/ora10gr2
. . Profile
/ backup/oracle10g/EBACKUP/scripts/daily_run CD.
kdat = 'date + %d '.
kmon = 'date + %b.
While read i
do
Touch /backup/oracle10g/EBACKUP/db/daily_backup/logs/exp_log\_$kdat\_$kmon.log
echo 'start time' $i > > /backup/oracle10g/EBACKUP/db/daily_backup/logs/exp_log\_$kdat\_$kmon.log
Date of > > /backup/oracle10g/EBACKUP/db/daily_backup/logs/exp_log\_$kdat\_$kmon.log
exp system/manager@$i file='/backup/oracle10g/EBACKUP/db/daily_backup/dumps/'$i\_$kdat\_$kmon'.dmp' log=/backup/oracle10g/EBACKUP/db/daily_backup/logs/$i\_$kdat\_$kmon'.log'= direct owner = sysadm statistics = none
'save successfully done for' echo $i > > /backup/oracle10g/EBACKUP/db/daily_backup/logs/exp_log\_$kdat\_$kmon.log
echo "end time" $i > > /backup/oracle10g/EBACKUP/db/daily_backup/logs/exp_log\_$kdat\_$kmon.log
compress ' / backup/oracle10g/EBACKUP/db/daily_backup/dumps/'$i\_$kdat\_$kmon'.dmp'
Date of > > /backup/oracle10g/EBACKUP/db/daily_backup/logs/exp_log\_$kdat\_$kmon.log
fact </backup/oracle10g/EBACKUP/scripts/daily_run/list_DB
The names of the databases are stored in a list_DB file.
After modification, the script looked like:
#! / bin/ksh
CD/opt/ora10gr2
. . Profile
/ backup/oracle10g/EBACKUP/scripts/daily_run CD.
kdat = 'date + %d '.
kmon = 'date + %b.
While read i
do
Touch /backup/oracle10g/EBACKUP/db/daily_backup/logs/exp_log\_$kdat\_$kmon.log
echo 'start time' $i > > /backup/oracle10g/EBACKUP/db/daily_backup/logs/exp_log\_$kdat\_$kmon.log
Date of > > /backup/oracle10g/EBACKUP/db/daily_backup/logs/exp_log\_$kdat\_$kmon.log
expdp system/manager@$i DUMPFILE=$i\_$kdat\_$kmon'.dmp' LOGFILE=$i\_$kdat\_$kmon'.log' SCHEMAS = sysadm DIRECTORY = JOB_NAME = daily_backup PARALLEL landfills = 4
'save successfully done for' echo $i > > /backup/oracle10g/EBACKUP/db/daily_backup/logs/exp_log\_$kdat\_$kmon.log
echo "end time" $i > > /backup/oracle10g/EBACKUP/db/daily_backup/logs/exp_log\_$kdat\_$kmon.log
gzip ' / backup/oracle10g/EBACKUP/db/daily_backup/'$i\_$kdat\_$kmon'.dmp'
Date of > > /backup/oracle10g/EBACKUP/db/daily_backup/logs/exp_log\_$kdat\_$kmon.log
fact </backup/oracle10g/EBACKUP/scripts/daily_run/list_DB
This change scripts when running standalone command line. But does not work when run through crontab.
Any help will be much appreciated.
Thank you
AnoopHello
Two things I want to tell U.
1 redirect the CRON output to the log file & check the errorlog file.
example: -.43 17 * 1-4 /backup/oracle10g/EBACKUP/scripts/daily_run/exp_bkpdb_temp1.sh > /backup/oracle10g/EBACKUP/scripts/daily_run/cron_expdb.log
2. in command line, you set all the necessary of the PATH, where he executed. But when you run the same script CRON, you must manually set the PATH in your script.
Do the below in the command line: -.echo $PATH
Add the output of the above command in your script as below & try.
#! / bin/ksh
export PATH =
Maybe you are looking for
-
looking for a best security app
What is the most effective security software: MacBookPro2, 1 Intel Core 2 Duo 2.33 GHz 4 GB 667 MHz DDR2 SDRAM Snow Leopard OS X 10.6.8
-
cannot join the mozilla support
Failed to register, because the site / /support.mozilla.org/en-US/users/register is not displayed but is up to /auth all the time. Now, you have given me another form of registration to ask this question, so I'm in.I wanted to post a reply!
-
HP pavilion dv7-6b55dx: will not download email attachments
Impossible to open or download e-mail attachments or downloads on the internet... internet stops
-
Dog stop or update system update... ??
What is the difference between these 2 software... ??
-
Wiring to something not visible in the current block diagram view
My entire block diagram is not visible without scrolling. (I tried to avoid this problem, but it turned out to be impossible). When I try to connect the two together, how to scroll? I have not found a way to do it. Now I'm stuck because I'm unabl