schema import
Hi all
I'm using oracle 11 g 2 on linux 5.5
I have a user scott and he assigned to the users tablespace. I took the level of schema export of user scott. in the same base that I have another user called User1 and its default tablespace is tbs1 and when I imported the users scott dump file, it has been imported successfully. but I guess I shouldn't import. tablespace default user1 being tbs1 and there privs on users tablespace. can you please help understand why it has imported...
Thank you very much.
Verify what tablespace objects have been created in the schema user1.
If user1 had obtained the role of RESOURCE, it would have been able to import objects in space users.
Hemant K Collette
Tags: Database
Similar Questions
-
Schema import Gets the foreign key number
Hi all;
Scott has a table named rank-> he has primary key-> different tablespace
Sharma has a table named emp-> he has foreign key-> different tablespace
$ imp/System Manager queue = refresh_sharma.dmp log = refresh_sharma_imp.log fromuser = touser = sharma sharma
Import: Free 11.2.0.1.0 - Production Thursday, may 7, 18:35:03-2015
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 - Production
With partitioning, OLAP, Data Mining and Real Application Testing options
Export file created by EXPORT: V11.02.00 direct
import in US7ASCII and AL16UTF16 NCHAR character set
import server uses WE8MSWIN1252 (possible character set conversion) character set
Customer export uses the (possible character set conversion) WE8MSWIN1252 character set
. import of objects in SHARMA SHARMA
. . import of partition "CONT_EMP": "P1" 4000 imported lines
. . import of partition "CONT_EMP": "P2" 5000 imported lines
. . import of partition 'CONT_EMP': 'P3' 5000 imported lines
. . "DEPT" table import 12 lines imported
. . import of table 'EMP' 68278 imported lines
. . importing table "EMP_AUDIT" 4 imported lines
. . table 'Method' import 68000 lines imported
. . importing table "EMP_PERS_INFO" 68278 imported lines
. . importing table "EMP_PROJ_INFO" 68278 imported lines
. . table 'LOGTAB' import 603 lines imported
. . table import "PAYROLL" 186282 imported lines
. . import of table 'of the PROJECT"22 rows imported
. . importation of "TAB1" 4000000 imported table rows
. . table import 'TRANSPORT' 0 rows imported
IMP-00017: statement failed with error ORACLE 1031:
'ALTER TABLE 'EMP' ADD 'EMP_EMPLEV_C12_FK' OF CONSTRAINT FOREIGN KEY ("EMP_LEVE" '.
""L") REFERS TO"SCOTT" CATEGORY"("GRADE_NAME") ENABLE NOVALIDATE.
IMP-00003: ORACLE error 1031
ORA-01031: insufficient privileges
About to activate the constraints...
IMP-00017: statement failed with error ORACLE 2430:
' ALTER TABLE 'EMP' ENABLE CONSTRAINT "EMP_EMPLEV_C12_FK"
Import completed successfully with warnings.
30, 31 line number is display error.
'ALTER TABLE 'EMP' ADD 'EMP_EMPLEV_C12_FK' OF CONSTRAINT FOREIGN KEY ("EMP_LEVE" '.
""L") REFERS TO"SCOTT" CATEGORY"("GRADE_NAME") ENABLE NOVALIDATE.
After the import operation, to recreate the foreign key is the right option. but
By performing the import operation, how can all I avoid this error dump file or log file?
I don't want to use constraints = N.
Thanks in advance
You gave * of * SCOTT * at * SHARMA. The grant received by SHARMA not getting exported when you export SHARMA. So, it is not imported when you import SHARMA. If you did an export and import of SCOTT before SHARMA, the award of the cross-schema would have also been imported. (Subsidies granted by a user are exported with the user, the subsidies received by a user are not exported with the user).
Hemant K Collette
-
Ignore a schema import in the dumpfile
version: 11.2.0.3
Platform: RHEL 5.4
Imagine that you have 100 saved patterns (expdp) in a dumpfile, and you want to import a schema of this dumpfile in a DB. You can specify only what a schema required using the SCHEMAS in the impdp. But things are not simple, when you want to use REMAP_SCHEMA.
Here is my scenario:
===================
I took the dump expdp patterns A and B only once. Thus dumpfile has objects both A and B.
Dumpfile name is: schemas_AandB.dmp
Now, I want to create the diagram C a with parameter REMAP_SCHEMA
-Set each parameter in a separate line for readability
Everything's fine. Scheme C is created from A pattern in the dumpfile.impdp PSTREF/PSTREF_123 DIRECTORY=ADET_EFX_DIR DUMPFILE=schemas_AandB.dmp LOGFILE=CreatingCfromA-Impdp.log REMAP_SCHEMA=A:C
But impdp tries to create the schema B so because the B pattern was present in the dumpfile. Since the B schema and its objects are already in the comic book, I get the following errors.
Because I don't want B to import schema, I tried to use the SCHEMAS parameter by simply mentioning A.ORA-31684: Object type USER:"B" already exists ORA-31684: Object type PROCEDURE:"B"."SP_CLEAREXPIREDSESSIONDATA" already exists ORA-31684: Object type PROCEDURE:"B"."SP_DELETESESSIONDATA" already exists ORA-31684: Object type PROCEDURE:"B"."SP_DELETESTATECONTEXTINFO" already exists ORA-31684: Object type PROCEDURE:"B"."SP_GETNEWCONTEXT" already exists ORA-31684: Object type PROCEDURE:"B"."SP_GETNEWSESSION" already exists ORA-31684: Object type PROCEDURE:"B"."SP_GETNEXTPART" already exists ORA-31684: Object type PROCEDURE:"B"."SP_GETSESSIONDATA" already exists ORA-31684: Object type PROCEDURE:"B"."SP_GETSTATECONTEXTINFO" already exists
-Added setting of PATTERNS
But I got the following errorimpdp PSTREF/PSTREF_123 DIRECTORY=ADET_EFX_DIR DUMPFILE=SCHEMAS_AandB.dmp LOGFILE=CreatingCfromA-Impdp.log REMAP_SCHEMA=A:C schemas=A ---------------------------> Trying to avoid schema B in the dumpfile from being imported by specifying SCHEMAS
Parameters REMAP_SCHEMA and PATTERNS may not be working together. Is it possible to prevent the impdp to import user B and its objects?ORA-39065: unexpected master process exception in MAIN ORA-12801: error signaled in parallel query server PZ99, instance oracth214:HEWRAC1 (1) ORA-01460: unimplemented or unreasonable conversion requested
YOU HAVE TO USE the OPTION EXCLUDE = PATTERN: 'IN ('B') inside the expdp '.
EXCLUDE PATTERNS
http://rkdba.blogspot.in/2011/04/expdp-exclude-multiple-tables-and.html -
I tried to import and to remap a schema again. I did these steps. close to there, but failed.
Thank you.
The error message is1. create a new schema create user hr_1 identified by hr_1; CREATE OR REPLACE DIRECTORY test_dir AS 'C:\oracle\backup'; GRANT READ, WRITE ON DIRECTORY test_dir TO hr_1; ALTER USER hr_1 default tablespace USERS TEMPORARY TABLESPACE temp quota unlimited on USERS 2. permission Grant create session to hr_1 ; Grant create table to hr_1 ; Grant create view to hr_1 ; Grant create trigger to hr_1 ; Grant create procedure to hr_1 ; Grant create sequence to hr_1 ; grant create synonym to hr_1 ; 3. impdp hr_1/hr_1@ORCL REMAP_SCHEMA=hr:hr_1 DIRECTORY=TEST_DIR DUMPFILE=HR.DMP LOGFILE=imp.log
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 Master table "HR_1"."SYS_IMPORT_FULL_01" successfully loaded/unloaded Starting "HR_1"."SYS_IMPORT_FULL_01": hr_1/********@ORCL REMAP_SCHEMA=hr:hr_1 DIRECTORY=TEST_DIR DUMPFILE=HR.DMP LOGFILE=imp.log; Processing object type SCHEMA_EXPORT/USER ORA-39083: Object type USER failed to create with error: ORA-31625: Schema SYSTEM is needed to import this object, but is unaccessible ORA-01031: insufficient privileges Failing sql is: CREATE USER "HR_1" IDENTIFIED BY VALUES 'S:4EFA7CA4D96DA9C229585F32BC0A3D31063FB79B8D1E51B6F77913B7B335;4C6D73C3E8B0F0DA' DEFAULT TABLESPACE "USERS" TEMPORARY TABLESPACE "TEMP" Processing object type SCHEMA_EXPORT/SYSTEM_GRANT ORA-39083: Object type SYSTEM_GRANT failed to create with error: ORA-31625: Schema SYSTEM is needed to import this object, but is unaccessible ORA-01031: insufficient privileges Failing sql is: GRANT CREATE DATABASE LINK TO "HR_1" ORA-39083: Object type SYSTEM_GRANT failed to create with error: ORA-31625: Schema SYSTEM is needed to import this object, but is unaccessible ORA-01031: insufficient privileges Failing sql is: GRANT CREATE SEQUENCE TO "HR_1"
806540 wrote:
I tried to import and to remap a schema again. I did these steps. close to there, but failed.Thank you.
1. create a new schema create user hr_1 identified by hr_1; CREATE OR REPLACE DIRECTORY test_dir AS 'C:\oracle\backup'; GRANT READ, WRITE ON DIRECTORY test_dir TO hr_1; ALTER USER hr_1 default tablespace USERS TEMPORARY TABLESPACE temp quota unlimited on USERS 2. permission Grant create session to hr_1 ; Grant create table to hr_1 ; Grant create view to hr_1 ; Grant create trigger to hr_1 ; Grant create procedure to hr_1 ; Grant create sequence to hr_1 ; grant create synonym to hr_1 ; 3. impdp hr_1/hr_1@ORCL REMAP_SCHEMA=hr:hr_1 DIRECTORY=TEST_DIR DUMPFILE=HR.DMP LOGFILE=imp.log
The error message is
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 Master table "HR_1"."SYS_IMPORT_FULL_01" successfully loaded/unloaded Starting "HR_1"."SYS_IMPORT_FULL_01": hr_1/********@ORCL REMAP_SCHEMA=hr:hr_1 DIRECTORY=TEST_DIR DUMPFILE=HR.DMP LOGFILE=imp.log; Processing object type SCHEMA_EXPORT/USER ORA-39083: Object type USER failed to create with error: ORA-31625: Schema SYSTEM is needed to import this object, but is unaccessible ORA-01031: insufficient privileges Failing sql is: CREATE USER "HR_1" IDENTIFIED BY VALUES 'S:4EFA7CA4D96DA9C229585F32BC0A3D31063FB79B8D1E51B6F77913B7B335;4C6D73C3E8B0F0DA' DEFAULT TABLESPACE "USERS" TEMPORARY TABLESPACE "TEMP" Processing object type SCHEMA_EXPORT/SYSTEM_GRANT ORA-39083: Object type SYSTEM_GRANT failed to create with error: ORA-31625: Schema SYSTEM is needed to import this object, but is unaccessible ORA-01031: insufficient privileges Failing sql is: GRANT CREATE DATABASE LINK TO "HR_1" ORA-39083: Object type SYSTEM_GRANT failed to create with error: ORA-31625: Schema SYSTEM is needed to import this object, but is unaccessible ORA-01031: insufficient privileges Failing sql is: GRANT CREATE SEQUENCE TO "HR_1"
Hello
Why you can't use the SYSTEM user?
Also, make sure you have or you have an IMP_FULL_DATABASE role (or) s/n & then try again -
How to work directly with the schemas imported or included xml db?
Hello Forum,
+ [my system: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0, windows 7, 8 GB of RAM, Enterprise edition of altova xmlspy 2007] +.
Help, please? I browsed this forum. I googled like crazy. I have read and reread the db xml docs. for 16 hours straight, I tried everything I can think of to fix this. but I can not yet understand what goes wrong.
After you have added annotations that are appropriate to the hierarchially-dependent five (imported and/or included) third patterns, I registered successfully the schemas in the xml db repository. all patterns and their associated with successful instance documents validate in Altova XMLSpy.
I was able to insert a xml instance doc successfully in an auto-generated XMLType table ("+ ct - valid.xml + ') which was based on one of the patterns (" + envelope-v2 - 0.xsd + '). However, when I tried to insert in its corresponding XMLType table, one other instance doc ("+ cis - valid_irenvelope_request_0.xml + '), based on another of patterns (' + AgentAuthRequest-v1 - 2.xsd + '), I got:
the "+ IRenvelope +" element (defined in "+ AgentAuthRequest-v1 - 2.xsd + ') refers to her child" + IRheader + "element of a schema included (" + base-v2 - 0.xsd + "); ' + IRheader / PeriodEnd + "is set to" + base-v2 - 0.xsd + ".ERROR at line 1: ORA-30937: No schema definition for 'PeriodEnd' (namespace 'http://www.govtalk.gov.uk/taxation/AgentAuthRequest/1') in parent '/IRenvelope/IRheader' ORA-06512: at "SYS.XMLTYPE", line 295 ORA-06512: at line 1
Please, help me understand what I need to do to make this work? the above patterns are in this zip file .
Thanks in advance for your help.
the following files are included in this zip file :
AgentAuthRequest-v1 - 2.xsd
Core-v2 - 0.xsd
Sun - certified_registerSchema_calls_0.txt
CIS - valid_irenvelope_request_0.xml
CT - valid.xml
trace udump filesI reproduced the problem on 10.2.0.4 (the closest I can get to your version) and 11.2.0.2 too.
I call it a bug that I may be missing something, but it seems that "Design Chameleon" is not supported.
Most of the time, xs: include is used to include another scheme which is in the same namespace as the includer target.
But it should also work when you include a diagram in no namespace (core-v2 - 0.xsd in this case), its definitions are then "imported" names within target.In this case, included base-v2-0 definitions are apparently not moved to namespace 'http://www.govtalk.gov.uk/taxation/AgentAuthRequest/1' and are in no namespace, where the error.
For example, the way space default namespace for elements included work:
1967-08-13 Individual ... Declaring the same target namespace in core-v2-0 works as well.
-
Schema import failed: IMP-00008: not recognized training in the export file:
Hello
I was running an import of a DPM database file database schema.
I met the following error in the generated log file to get:
IMP-00008: unrecognized statement in the export file:
All tables copied except one. Now what I thought must import only one table again after the export of the production schema.
But what functions, triggers, procedures? How I put them all in the schema?
If reimport the schema still the only option?
Thank you
KKhave you tried with a new such export suggested before?
Also, check if the export file has been damaged or truncated due to lack of space in the pipe of destination?Published by: orawiss on May 5, 2011 13:17
-
Hi I have a problem
I have 2 diagrams a and b... I connect with a main_user who can see the two diagrams...
I can import it fine using import - then choose the schemas and import...
But when I have the rank has it's like he can't see details... If I create a synonym for tables in schemas under the main_user its fine... But I don't know why he can't distinguish that the tables are in patterns... so a.table_1 b.table_1 etc...
I see 2 physical patterns in the physical layer.
Thank you
Published by: 791465 on 24-Sep-2010 03:07you explain what error you are getting?
BTW, check this setting...
go to your connection pool...
Checkbox selection: complete required qualified table names and try to view the data/number of lines -
Tablespace level export, import of schema level - is it possible?
Hello
If I have an export level DataPump tablespace (played to = < the tablespaces list > STORAGE space), it is possible to import only tables and dependent objects to a specific schema residing in exported tablespaces? DB version is 11.2.0.3.0. According to the documentation, it should be possible: http://docs.oracle.com/cd/E11882_01/server.112/e22490/dp_import.htm#i1011943 : a schema import is specified using the SCHEMAS. Source can be a full, table, tablespace, or schema mode export dump file set or another database.
Perform a quick test seems, however, that it is not so:
(1) source DB - I have two tablespaces (TS1, TS2) and two schemas (USER1, USER2):
SQL > select nom_segment, nom_tablespace, segment_type, owner
from dba_segments
where owner in ("USER1", "User2");
2 3
OWNER NOM_SEGMENT SEGMENT_TYPE TABLESPACE_NAME
------ --------------- ------------------ ----------------
USER1 UQ_1 INDEX TS1
USER1 T2 TABLE TS1
USER1 T1 TABLE TS1
USER2 T4 TABLE TS2
USER2 T3 TABLE TS2
(2) I am not a tablespace level to export:
Expdp system directory $ = dp_dir = ts1 tablespaces, ts2 dumpfile = test.dmp
Export: Release 11.2.0.3.0 - Production on Fri Jul 11 14:02:54 2014
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
Password:
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - Production
With partitioning, OLAP, Data Mining and Real Application Testing options
Start "SYSTEM". "" SYS_EXPORT_TABLESPACE_01 ": System / * Directory = dp_dir tablespaces = ts1, ts2 dumpfile = test.dmp
Current estimation using BLOCKS method...
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 256 KB
Object type TABLE_EXPORT/TABLE/TABLE processing
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
. . exported "USER1". "" T1 "5,007 KB 1 lines
. . exported "USER1". "" T2 "5,007 KB 1 lines
. . exported "user2". "" T3 "5,007 KB 1 lines
. . exported "user2". "" T4 "5,007 KB 1 lines
Main table 'SYSTEM '. "' SYS_EXPORT_TABLESPACE_01 ' properly load/unloaded
******************************************************************************
"(3) I'm trying to import only the objects belonging to User1 and I get the 'ORA-39039: schema '(' USER1')' expression contains no valid schema" error: "
Impdp system directory $ = dp_dir patterns = USER1 dumpfile = test.dmp
Import: Release 11.2.0.3.0 - Production on Fri Jul 11 14:05:15 2014
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
Password:
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - Production
With partitioning, OLAP, Data Mining and Real Application Testing options
ORA-31655: no data or metadata of objects selected for employment
ORA-39039: pattern Expression "(' USER1')" contains no valid schema.
(4) However, the dump file contains clearly the owner of the tables:
Impdp system directory = dp_dir dumpfile = test.dmp sqlfile = imp_dump.txt
excerpt from imp_dump.txt:
-path of the new object type: TABLE_EXPORT/TABLE/TABLE
CREATE TABLE "USER1". "" T1 ".
("DUMMY" VARCHAR2 (1 BYTE)
)
So is it possible to somehow filter the objects belonging to a certain pattern?
Thanks in advance for any suggestions.
Swear
Hi swear,.
This led a small survey of me I thought I was worthy of a blog in the end...
Oracle DBA Blog 2.0: A datapump bug or a feature and an obscure workaround
Initially, I thought that you made a mistake, but that doesn't seem to be the way it behaves. I've included a few possible solutions - see if one of them responds to what you want to do...
See you soon,.
Rich
-
Why import data if ready schema and index create, increase in Undo TableSpace
I have a problem importing data.
When I export data don't have schema import include the index schema.
And then I import the schema ready.
When I import data, I find this Undo TableSpace increase very fast.
I have therefore two tests.
1. IMPORT of data and index, every thing ok look
2 import a schema includes index
and then import data. Undo Tablespace very rapid increaseIf you mean undo tablespace increase in order to read consisten read.
N ° cancel space use increases due to the DML. (requests for consistent readings read undo, they generate no cancellation to grow)
so you're saying that redo log appear, rollback undo segment will increase.
N ° increase in written cancellations results increase in roll forward.
IF we import large data, we must export data with the index and import data right now
If you import large data, you must create the indexes after the data is imported. If the index definitions are included in the export, the default behavior is that import will create them once the data is imported. To do this, undo lower for indexes.
Note This will generate redo for the creation (but does not cancel and therefore not generate recovery for cancellation). You can avoid this by manually running CREATE INDEX... NOLOGGING - but it means you need to get and modify the scripts CREATE INDEX.Hemant K Collette
-
Full Expdp and try to import the unique schema
Hi all
I have backup complete expdp & I want simple schema import.
When I im trying to import the unique scheme, he began the full import.
Export: -.
expdp praful/praful directory = logfile = full.log dumpfile = full dump full.dmp = y
Import: -.
Impdp praful/praful directory = dump dumpfile = full.dmp logfile = imp_praful.log remap_schema = PRAFUL:TEST
Kindly give a suggestion for the unique pattern of export import full dump.
Kind regards
PrafulHello
Don't forget to include the parameter PATTERNS - that provides details, wher as remap_schema - sufficient details for remapping instead of import in the current schema, you're connected in what concerns the current session.
-Pavan Kumar N
-
Problem all import a schema in Oracle 10 g.
The schema import (with any import data structures only) 7 to 10g Oracle. While importing the schema, it shows "low disk space". but I have 55 GB of available disk space.
Help me if one know about it.I had droped all objects and import again performed and generated the create.sql script. I tried to remove the init/next extensions from the table, however I have > found there are 183 tables.
If you are to 9i or more and if you are using LMT with Autoallocate or uniform size and if you want to export and import these tables into another database, use this:
Prepare the list of 183 tables.
set long 9999999 exec dbms_metadata.set_transform_param(dbms_metadata.session_transform, 'STORAGE', FALSE); -- this will remove the Storage clause for the objects. EXEC DBMS_METADATA.SET_TRANSFORM_PARAM(DBMS_METADATA.SESSION_TRANSFORM, 'TABLESPACE', FALSE); - this will Remove the tablespace clause for the objects. select dbms_metadata.get_ddl('TABLE','TABLE_NAME','SCHEMA_OWNER') from dual; --generate for 183 tables
Now you have the script and run them in the target database.
HTH
AnanthaIt cannot be used for oracle 7. Please ignore.
-
Friends
DB: 11 GR 2
OS: Linux
After a few expertise help I use network_link for schema importation.
None standby available db
Trying to go down below in the correct order.
What I'm doing: (import the schema and split partition on the destination before you import the data, indexes, constraints)
1 import-1: import metadata_only
2 split the destination partition
3 import-2: import data_only
4 3-import: import indexes, constraint
#1 - #3 above completed without error, #4 fails with error below
Several errors:
==========
ORA-39083: Type what INDEX failed to create object error:
ORA-14024: number of LOCAL index partitions must be equal to that of the underlying table
ORA-39083: INDEX_STATISTICS object Type cannot be created with the error
ORA-20005: Statistics object are locked (statetype = ALL)
Use the Import/split commands:
====================
#1 import-1: import metadata_only
DIRECTORY = DATA_PUMP_REFRESH
LOGFILE = IMP1. JOURNAL
SCHEMAS = SCOTT
NETWORK_LINK = DBLINK. SCOTT
CONTENT = METADATA_ONLY
EXCLUDE = INDEX, CONSTRAINT
#2 Split partition of destination for five tables
Division part_2015 in monthly partition for 7 months
ALTER TABLE SCOTT. CUSTOMER
SPLIT PARTITON PART_2015
TO (TO_DATE('20150201','YYYYMMDD'))
EN)
PARTITION PART_2015_01 TABLESPACE SCOTT_MONTHLY,
PARTITION PART_2015 TABLESPACE SCOTT_MONTHLY)
/
....
above split was done for 7 months
#3 import-2: import data_only
DIRECTORY = DATA_PUMP_REFRESH
LOGFILE = IMP2. JOURNAL
SCHEMAS = SCOTT
NETWORK_LINK = DBLINK. SCOTT
CONTENT = DATA_ONLY
#4 import-3: index of import, forced
DIRECTORY = DATA_PUMP_REFRESH
LOGFILE = IMP3. JOURNAL
SCHEMAS = SCOTT
NETWORK_LINK = DBLINK. SCOTT
INCLUDE = INDEX, CONSTRAINT
CONTENT = ALL
It took almost seven hours.
Issues related to the:
========
1 exceeds approach is correct or I am missing something here?
2. any suggestions?
3. I did not update index index / global dividing partition, was this necessary?
4. somehow I think I need to exclude his stats to the import-3 and do separately but collecting stats for 300 GB take really long, is - it true to collect statistics separately to avoid his stats lock error?
5. given that it was only test I do not have the locked source schema, it will make a difference?
Appreciate any feedback comments, entries and experts
You did an export or you couldn't import the tables, indexes, and data. The dump file contains the DDL of the database of the source index. you have changed the definition of the table once you have imported the metadata that caused the DDL stored for indexes associated with make it invalid.
1. I expect that the overall index should be good, it's for the index create instructions that need to be re-written.
2. it would not be an easy task; as you will have to user_tab_partitions query to get the partition names and use them to generate index partition names. You should also do this in PL/SQL to browse the partition names to create the correct instructions for all indexes the. Of course, we invite you to give that a try.
3. I would not export statistics can be generated when the indexes are created. You shared partitions so the imported table stats no longer apply.
4. as stated above, I would exclude statistical entirely for export.
5. I would like to ensure that the partitions of split have current statistics. Create the index will create fresh statistics on those automatically.
David Fitzjarrell
-
Import with datapump when exporting datapump was executed as user SYS
Hi all
all I have is a dumpfile and an export a datapump log file. Export has been executed as user sys:
Export: Release 11.2.0.1.0 - Production on mid Dec 3 12:02:22 2014
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
;;;
Join EIB: Oracle Database 11 g Release 11.2.0.1.0 - 64 bit Production
"SYS". "' SYS_EXPORT_FULL_01 ':"sys/***@database AS SYSDBA"directory = data_pump_dir dumpfile = db_full.dmp db_full.log = complete logfile = gestartet wird y
Mobiltelefondienste participations mit method BLOCKS...
Objekttyp DATABASE_EXPORT/SCHEMA/TABLE/TABLE_DATA wird thanks
Approximately Schatzung mit BLOCKS method: 52.84 GBNow I have to import (with datapump) user USER01 and export USER02. But I don't know the name of the source database tablespaces.
I want to keep the name of the user (USER01/USER02). That's why I created these users in the target database.
The questions I have are:
-should I start the import by datapump as user SYS?
-Should what settings I use to import users USER01, USER02 and data in the target database? Since I do not know the names of tablespaces
in the source database parameter REMAP_TABLESPACE will not help
Any help will be appreciated
J.
Hi J.
The questions I have are:
-should I start the import by datapump as user SYS?
No, you need to import with a user in the role of "imp_full_database".
-Should what settings I use to import users USER01, USER02 and data in the target database? Since I don't know the names of the storage spaces in the source database parameter REMAP_TABLESPACE will not help
Well, an idea is to generate you a schema import sqlfile and see in the ddl in what tablespace, it will try to create objects.
Impdp------' / as sysdba------' directory = dumpfile
= = = USER01, USER02 patterns sqlfile For more information, take a look at the import documentation
http://docs.Oracle.com/CD/B19306_01/server.102/b14215/dp_import.htm
Hope this helps,
Kind regards
Anatoli has.
-
The schemas are required to export an APEX application and the EE DDL to itself and XE
Source DB - Oracle 11 g 2 EA
Target DB - Oracle 11 GR 2, 11 2 Oracle XE GR SE
O/S - RHEL 6.5
Application - APEX 4.2.2
Must give up an APEX application and the underlying DDL associated with a database Oracle EE an Oracle SE and XE database.
Patterns are required to export to accomplish this approach?
Is there one method other than export patterns which would be preferably? (for example export tablespaces).
You should not deal with apex tablespace or schema APEX_040X00.
Just follow these steps:
(1) ensure that the APEX version is the same or higher in the target schema, upgrade if need be
(2) discover patterns of the application (NOT APEX_XX) pump and export data those and import them into the target schema.
(3) in the target database, create a different workspace and the link with the schemas imported analysis
(4) export enforcement APEX of source database in the target database.
If you expand the app, better to talk to the one who did it. Make sure that the Images, CSS, JavaScript files are added as objects of support and those that are then exported (to step 4).
Basically don't worry about APEX_O40X00 scheme, as long as your Apex versions match, it will be the same and will be automatically filled with metadata in the application import and export performance.
-
CreateSchemaBasedXML using multiple schemas
I am trying to perform XSD validation on an XML document in PLSQL and I'm having a problem with is that it works.
I created a
XMLTYPE
object, which when I callisSchemaBased()
However it returns the value 0 (false). Now obviously theXMLTYPE
should be the schema to be validated, I found that you can do a schema based version by callingcreateSchemaBasedXML
against theXMLTYPE
. The problem I have is that my scheme is divided into two parts (combining the schema files is not an option unfortunately), which means that when I try andcreateSchemaBasedXML
specifying the main schema fails because it cannot resolve a reference that is imported in the second XSD document.-- lxml is the XMLTYPE which has been populated with the XML before this point
dbms_xmlschema.registerSchema(
schemaURL => mainSchemaURL,
schemaDoc => mainSchemaDoc,
local => true,
genTypes => true,
genTables => false,
force => true,
enableHierarchy => dbms_xmlschema.ENABLE_HIERARCHY_NONE);
dbms_xmlschema.registerSchema(
schemaURL => importedSchemaURL,
schemaDoc => importedSchemaDoc,
local => true,
genTypes => true,
genTables => false,
force => true,
enableHierarchy => dbms_xmlschema.ENABLE_HIERARCHY_NONE);
if lxml.isSchemaBased() = 1 then
dbms_output.put_line('Schema based');
else
dbms_output.put_line('Non-schema based');
end if;
dbms_ouput.put_line('About to apply schema');
lxml := lxml.createSchemaBasedXML(mainSchemaURL);
dbms_ouput.put_line('We don't get this far');
lxml := lxml.createSchemaBasedXML(importedSchemaURL);Is it possible to be able to import both the
mainSchemaURL
and theimportedSchemaURL
at the same time so that the schema imported into the main schema references cause the failure.ORA-31079: unable to result reference to type [type containing imported type]
Any help or pointers would be greatly appreciated.
the code gets now where he tried to enroll in the mainSchema but fails with an exception "invalid XML document" (which is not true to say that the XSD is valid).
It probably wasn't the complete error message.
When I run your example I get:
ORA-31154: invalid XML document
ORA-19202: an error has occurred in the processing of XML
LSX-00023: unknown namespace URI "App1/ImportedNamespace.
ORA-06512: at "XDB". DBMS_XMLSCHEMA_INT', line 3
ORA-06512: at "XDB". DBMS_XMLSCHEMA", line 14
ORA-06512: at line 4 level
Oracle is not able to solve the definition of the imported type.
I know that the specs are not mandatory but it must also specify the schemaLocation in the import directive:
Full test case:
-Save the imported schema
Start
() dbms_xmlschema.registerSchema
schemaURL-online "importedSchemaURL.xsd."
schemaDoc => '
targetNamespace = "App1/ImportedNamespace.
xmlns = "App1/ImportedNamespace.
elementFormDefault = "qualified".
version = "0.1.1"
"xmlns: XS ="http://www.w3.org/2001/XMLSchema">".
',
local-online true,
genTypes-online fake,
genTables-online fake,
enableHierarchy-online dbms_xmlschema. ENABLE_HIERARCHY_NONE
);
end;
/
-Save the main schema
Start
() dbms_xmlschema.registerSchema
schemaURL-online "mainSchemaURL.xsd."
schemaDoc => '
targetNamespace = "App1/MainNamespace.
xmlns = "App1/MainNamespace.
elementFormDefault = "qualified".
version = "0.1.1"
"" xmlns: XS = "http://www.w3.org/2001/XMLSchema"
xmlns: imported = "App1/ImportedNamespace" >
',
local-online true,
genTypes-online fake,
genTables-online fake,
enableHierarchy-online dbms_xmlschema. ENABLE_HIERARCHY_NONE
);
end;
/
In addition to the schemaLocation attribute, I just added a root element schema main and registered with genTypes = false (use this option if you do not use object-relational storage).
Validation test:
SQL > declare
2
doc 3 xmltype: = xmltype)
4'
"" 5 xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance"
6 xsi: schemaLocation = "App1/MainNamespace mainSchemaURL.xsd" >
ABC 78
X 9 ');
10
11 start
12
13 doc.schemaValidate ();
14
15 end;
16.
declare
*
ERROR on line 1:
ORA-31154: invalid XML document
ORA-19202: an error has occurred in the processing of XML
LSX-00221: 'X' is too short (minimum length is 2)
ORA-06512: at "SYS." XMLTYPE", line 354
ORA-06512: at line 13 level
Seems to work
Maybe you are looking for
-
Questions about the product recovery DVD?
Hello After a boot failure sunk with Windows XP Home Edition on my Equium A60-181, I had no choice but to use the product recovery DVD. I noticed there is something called expert mode, I suppose that allows you to create a custom default value of the
-
File from an executable of LabVIEW PDM
Hey, I am writing a program that measures a bunch of stuff and saves to a TDMS file (as it is by far the easiest method and fast, I found). I was wondering, once that my program is converted into an executable, files are still viewable TDMS in Excel/
-
Registry change Hkey_current_user\Software\Microsoft\ | Windows\CurrentVersion\Explorer\CD burning\Drives. CMD export as a backup of drives key Change the type of drive. There are no subfolders under readers accordingly there is noneVolume {GUID) ed
-
Unable to save the connection Wireless to a flash drive
I'm saving my connections without wire of a machine so that I can import them on another. I use the wizrad to Windows 7 and I'm to the point where I hit next to export or copy the settings on an external drive. Once I have click on next to start the
-
Feedback Option advanced response messages
I use 8 Captivate. I have a choice of questions multiple quiz with 3 options, each with a feedback: answer option advanced, 1 correct and incorrect 2. When I got out to HTML and preview the quiz in Chrome or IE11, boxes of your comments do not appear