Export a schema
Hello
i got the below error , when i try to export the schema from Database 11g using exp utility 10g .
its successfuly exported if i export it using exp utility 11g , but i need it using exp utility 10g so i can import it to oracle db 10g .
Export: Release 10.1.0.4.2 - Production on Mon Sep 27 11:37:47 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Export done in AR8MSWIN1256 character set and AL16UTF16 NCHAR character set
Note: indexes on tables will not be exported
. exporting pre-schema procedural objects and actions
. exporting foreign function library names for user CPI_STG
. exporting PUBLIC type synonyms
. exporting private type synonyms
. exporting object type definitions for user CPI_STG
About to export CPI_STG's objects ...
. exporting database links
. exporting sequence numbers
. exporting synonyms
. exporting views
. exporting stored procedures
. exporting operators
. exporting referential integrity constraints
. exporting triggers
EXP-00056: ORACLE error 1455 encountered
ORA-01455: converting column overflows integer datatype
EXP-00000: Export terminated unsuccessfully
Using expdp you can export to a lower version.
You should be able to use impdp 10g to import that data.
Obviously you can also use the NETWORK_LINK parameter in the 10g command line to have impdp connect direclty to the 11g database.
I wouldn't use exp and imp, and they are also officially obsolete.
Sybrand Bakker
Senior Oracle DBA
Similar Messages
-
Error while exporting a schema using data pump
Hi all,
I have 11.1.0.7 database and am using expdp to export a schema. The schema is quite huge and has roughly about 4 GB of data. When i export using the following command,
expdp owb_exp_v1/welcome directory=dmpdir dumpfile=owb_exp_v1.dmp
i get the following error after running for around 1 hour.
ORA-39126: Worker unexpected fatal error in KUPW$WORKER.UNLOAD_METADATA [TABLESPACE_QUOTA:"OWB_EXP_V1"]
ORA-22813: operand value exceeds system limits
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
ORA-06512: at "SYS.KUPW$WORKER", line 7839
----- PL/SQL Call Stack -----
object line object
handle number name
4A974B9C 18237 package body SYS.KUPW$WORKER
4A974B9C 7866 package body SYS.KUPW$WORKER
4A974B9C 2744 package body SYS.KUPW$WORKER
4A974B9C 8504 package body SYS.KUPW$WORKER
4A961BF0 1 anonymous block
4A9DAA4C 1575 package body SYS.DBMS_SQL
4A974B9C 8342 package body SYS.KUPW$WORKER
4A974B9C 1545 package body SYS.KUPW$WORKER
4A8CD200 2 anonymous block
Job "SYS"."SYS_EXPORT_SCHEMA_01" stopped due to fatal error at 14:01:23
This owb_exp_v1 user has dba privileges. I am not sure what is causing this error. I have tried running it almost thrice but in vain. I also tried increasing the sort_area_size parameter. Even then, i get this error.
Kindly help.
Thanks,
VidhyaHi,
Can you let us know what the last object type it was working on? It would be the line in the log file that looks like:
Processing object type SCHEMA_EXPORT/...
Thanks
Dean -
Using dbms_datapump package to export the schema with the schema name as pa
Hi,
I am using the pl/sql block to export schema using dbms_datapump package,Now I want to pass the scheme name as the parameter to the procedure and get the .dmp and .log files with the schema name included.
CREATE OR REPLACE PROCEDURE export
IS
h1 number;
begin
h1 := dbms_datapump.open (operation => 'EXPORT', job_mode => 'SCHEMA', job_name => 'export1', version => 'COMPATIBLE');
dbms_datapump.set_parallel(handle => h1, degree => 1);
dbms_datapump.add_file(handle => h1, filename => 'EXPDAT.LOG', directory => 'DATA_PUMP_DIR', filetype => 3);
dbms_datapump.set_parameter(handle => h1, name => 'KEEP_MASTER', value => 0);
dbms_datapump.metadata_filter(handle => h1, name => 'SCHEMA_EXPR', value => 'IN(''CHECKOUT'')');
dbms_datapump.set_parameter(handle => h1, name => 'ESTIMATE', value => 'BLOCKS');
dbms_datapump.add_file(handle => h1, filename => 'EXPDAT%U' || to_char(sysdate,'dd-mm-yyyy') || '.DMP', directory => 'DATA_PUMP_DIR', filetype => 1);
dbms_datapump.set_parameter(handle => h1, name => 'INCLUDE_METADATA', value => 1);
dbms_datapump.set_parameter(handle => h1, name => 'DATA_ACCESS_METHOD', value => 'AUTOMATIC');
dbms_datapump.start_job(handle => h1, skip_current => 0, abort_step => 0);
dbms_datapump.detach (handle => h1);
exception
when others then
raise_application_error(-20001,'An error was encountered - '||SQLCODE||' -ERROR- '||SQLERRM);
end;
Thank you in advanced
Sriuser12062360 wrote:
Hi,
I am using the pl/sql block to export schema using dbms_datapump package,Now I want to pass the scheme name as the parameter to the procedure and get the .dmp and .log files with the schema name included.
OK, please proceed to do so
>
CREATE OR REPLACE PROCEDURE export
IS
h1 number;
begin
h1 := dbms_datapump.open (operation => 'EXPORT', job_mode => 'SCHEMA', job_name => 'export1', version => 'COMPATIBLE');
dbms_datapump.set_parallel(handle => h1, degree => 1);
dbms_datapump.add_file(handle => h1, filename => 'EXPDAT.LOG', directory => 'DATA_PUMP_DIR', filetype => 3);
dbms_datapump.set_parameter(handle => h1, name => 'KEEP_MASTER', value => 0);
dbms_datapump.metadata_filter(handle => h1, name => 'SCHEMA_EXPR', value => 'IN(''CHECKOUT'')');
dbms_datapump.set_parameter(handle => h1, name => 'ESTIMATE', value => 'BLOCKS');
dbms_datapump.add_file(handle => h1, filename => 'EXPDAT%U' || to_char(sysdate,'dd-mm-yyyy') || '.DMP', directory => 'DATA_PUMP_DIR', filetype => 1);
dbms_datapump.set_parameter(handle => h1, name => 'INCLUDE_METADATA', value => 1);
dbms_datapump.set_parameter(handle => h1, name => 'DATA_ACCESS_METHOD', value => 'AUTOMATIC');
dbms_datapump.start_job(handle => h1, skip_current => 0, abort_step => 0);
dbms_datapump.detach (handle => h1);
exception
when others then
raise_application_error(-20001,'An error was encountered - '||SQLCODE||' -ERROR- '||SQLERRM);
end;
EXCEPTION handler is a bug waiting to happen.
eliminate it entirely -
SOS!! How to export a schema while the SYSAUX tablespace is offline?
Hello,
the SYSAUX for one of our productive database became corrupted and I had to take it offline in order to open the database. There is no way to recover it since there are missing archive logs from the sequence.
So I need to export a database schema which holds all the productive tables/indexes (there are no procedure, functions, packages, triggers,etc - just tables, constraints and indexes).
When I try to export the schema, I get the following error:
Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options
Export done in UTF8 character set and UTF8 NCHAR character set
. exporting pre-schema procedural objects and actions
. exporting foreign function library names for user CMS31_ARMENTEL_SITE_N
. exporting PUBLIC type synonyms
. exporting private type synonyms
. exporting object type definitions for user CMS31_ARMENTEL_SITE_N
About to export CMS31_ARMENTEL_SITE_N's objects ...
. exporting database links
. exporting sequence numbers
. exporting cluster definitions
EXP-00056: ORACLE error 376 encountered
ORA-00376: file 3 cannot be read at this time
ORA-01110: data file 3: '/opt/data1/oradata/UTF8/sysaux01.dbf'
ORA-06512: at "SYS.DBMS_METADATA", line 1511
ORA-06512: at "SYS.DBMS_METADATA", line 1548
ORA-06512: at "SYS.DBMS_METADATA", line 1864
ORA-06512: at "SYS.DBMS_METADATA", line 3707
ORA-06512: at "SYS.DBMS_METADATA", line 3689
ORA-06512: at line 1
EXP-00000: Export terminated unsuccessfully
I've tried direct export, data pump (expdp) but with the same unsucessfull results.
Is there any way to use the export or expdp utility to get the actual data from a specific schema ?
Many thanksHello Harry and many thanks for your reply.
EXCLUDE is an option of expdp not exp. So I used expdp and get the following error:
expdp impexp/blabla dumpfile=SITE_N.dmp schemas=SITE_N exclude=CLUSTER:SITE_N
Export: Release 10.1.0.2.0 - Production on Tuesday, 29 January, 2008 20:56
Copyright (c) 2003, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options
ORA-31626: job does not exist
ORA-31638: cannot attach to job SYS_EXPORT_SCHEMA_05 for user IMPEXP
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
ORA-06512: at "SYS.KUPV$FT_INT", line 377
ORA-39077: unable to subscribe agent KUPC$A_1_20080129205606 to queue "KUPC$C_1_20080129205606"
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
ORA-06512: at "SYS.KUPC$QUE_INT", line 248
ORA-25448: rule SYS.KUPC$C_1_20080129205606$227 has errors
ORA-00376: file 3 cannot be read at this time
ORA-01110: data file 3: '/opt/data1/oradata/UTF8/sysaux01.dbf'
Different error (since now I use expdp) but for the same reason (SYSAUX is offline)
Regards
Argyris -
Particular Tigger exclude using DBMS_DATAPUMP export in SCHEMA mode, how?
Hi,
Is it possible to specify exclude filter for particular object type and name (TRIGGER, name = TRG_CHECK)
when DBMS_DATAPUMP export in SCHEMA mode is used?
If yes, how? (I could not find any examples).
Thanks.Hi,
Yes, it 's possbile
Go for "DBMS_DATAPUMP.metadata_filter"
tr it I did not checked
Where you can use name expression at table mode as NAME_EXPR as '!=''DEPT'''
or
dbms_datapump.metadata_filter(vhandle,’EXCLUDE_PATH_LIST’,”’TRIGGER”,”GRANT”’);
DBMS_DATAPUMP.metadata_filter( handle => l_dp_handle,
name => 'NAME_EXPR',
value => 'NOT IN (''TRIG_NAME')',
object_type => 'TRIGGER');
- Pavan Kumar N -
Export of schema with space it its name
we have a schema named "Gestion Loaners" (note the space in schema name) in oracle 9iR2 database. i want to take schema level export but as there is space in schema name i am not able to do it using either escape char or using parameter file..
can anyone guide me pls
thxIt works if the Username is ALL CAPITALS. Couldn't get it work if the Username was Mixed Case
SQL> create user "PAVAN KUMAR" identified by pavan;
User created.
SQL> grant create session, create table to "PAVAN KUMAR";
Grant succeeded.
SQL> create table "PAVAN KUMAR".his_table (col_1 varchar2(5));
create table "PAVAN KUMAR".his_table (col_1 varchar2(5))
ERROR at line 1:
ORA-01950: no privileges on tablespace 'USERS'
SQL> alter user "PAVAN KUMAR" quota unlimited on USERS;
User altered.
SQL> create table "PAVAN KUMAR".his_table (col_1 varchar2(5));
Table created.
SQL>
ora10204>exp hemant/hemant owner=\"PAVAN KUMAR\"
Export: Release 10.2.0.4.0 - Production on Wed Nov 5 22:33:47 2008
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Export done in US7ASCII character set and AL16UTF16 NCHAR character set
server uses WE8ISO8859P1 character set (possible charset conversion)
About to export specified users ...
. exporting pre-schema procedural objects and actions
. exporting foreign function library names for user PAVAN KUMAR
. exporting PUBLIC type synonyms
. exporting private type synonyms
. exporting object type definitions for user PAVAN KUMAR
About to export PAVAN KUMAR's objects ...
. exporting database links
. exporting sequence numbers
. exporting cluster definitions
. about to export PAVAN KUMAR's tables via Conventional Path ...
. . exporting table HIS_TABLE 0 rows exported
. exporting synonyms
. exporting views
. exporting stored procedures
. exporting operators
. exporting referential integrity constraints
. exporting triggers
. exporting indextypes
. exporting bitmap, functional and extensible indexes
. exporting posttables actions
. exporting materialized views
. exporting snapshot logs
. exporting job queues
. exporting refresh groups and children
. exporting dimensions
. exporting post-schema procedural objects and actions
. exporting statistics
Export terminated successfully without warnings.
ora10204> -
Unable to export the schema by the name OPS$BDIT using expdp
Hi,
oracle - BDMSD> expdp directory=EXPORT_BACKUP_DIR schemas=OPS$BDIT dumpfile=test.dmp logfile=test.log
Export: Release 10.2.0.4.0 - 64bit Production on Monday, 30 January, 2012 10:08:27
Copyright (c) 2003, 2007, Oracle. All rights reserved.
Username: / as sysdba
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORA-39001: invalid argument value
ORA-39170: Schema expression 'OPS' does not correspond to any schemas.
Thanksuser12266475 wrote:
Hi,
oracle - BDMSD> expdp directory=EXPORT_BACKUP_DIR schemas=OPS$BDIT dumpfile=test.dmp logfile=test.log
Export: Release 10.2.0.4.0 - 64bit Production on Monday, 30 January, 2012 10:08:27
Copyright (c) 2003, 2007, Oracle. All rights reserved.
Username: / as sysdba
Pl post OS details. You should not use "/ as SYSDBA" to execute expdp - see the first "Note" here - http://docs.oracle.com/cd/B19306_01/server.102/b14215/dp_export.htm#sthref57 - use SYSTEM instead.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORA-39001: invalid argument value
ORA-39170: Schema expression 'OPS' does not correspond to any schemas.
ThanksFor special characters like $, it is best to create a parameter file and use quotes or escape characters, rather than provide the parameters on the command line.
Exporting a schema which contains a dot in the name with EXPDP fails with ORA-39001, ORA-39170 [ID 388763.1]
HTH
Srini -
Export multiple schemas and tables in the same time
Please help with this
If I need to export 3 schemas SCH1, SCH2 and SCH3, also table tab1 and tab2 in schema SCH4, can anyone write only one parfile to export them in once.Are you going to use original exp/imp or data pump?
It's not easy to do this in one shot if it's even possible. -
How to export a schema.
Hi guys!
How do I use SQL Developer to export a schema?
I kind of hoped, that I would end up with a file containing a complete setup-script for the schema. This way I would be able to use SQL*Plus to create an empty version of the schema on another server.
Whenever I use Tools -> Export I get a blank file or, if I'm lucky, I get a file containing only my sequences and my packages. But no CREATE TABLE... :-( Even if I've checked "tables" in the tree.
Is this kind of export at all possible with SQL Developer? Or am I doing this all wrong?
SQL Developer version: 1.0.0.14.57
OS: Windows XP Professional SP2
Java version: 1.5.0_05
Oracle IDE: 1.0.0
Best regards.
Soeren LauritsenThe above statement gives me the following (I'm sorry, but my Oracle is in Danish):
SQL> SELECT dbms_metadata.get_ddl('TABLE', 'AREAS', 'username') FROM DUAL;
ERROR:
ORA-04031: kan ikke allokere 65564 byte af fælles hukommelse ("large
pool","unknown object","session heap","kuxLpxAlloc")
ORA-06512: ved "SYS.UTL_XML", linje 0
ORA-06512: ved "SYS.DBMS_METADATA_INT", linje 4157
ORA-06512: ved "SYS.DBMS_METADATA", linje 458
ORA-06512: ved "SYS.DBMS_METADATA", linje 615
ORA-06512: ved "SYS.DBMS_METADATA", linje 1221
ORA-06512: ved linje 1
The english translation should be:
ORA-04031: unable to allocate string bytes of shared memory ("string","string","string","string")
I kind of got the feeling that our Oracle server has a crappy setup. So any suggestions will be given to my DBA.
Best Regards
Soeren -
Export Authorization schemes either in 4.0 or 4.1
Hi all,
I would like to export authorization schemes of an app. and import it in another env. I don't expect to create authorization schemes in env. like production. So, the required schemes are created in say for e.g. in dev and get exported just the schemes without being exported the whole app.
Is there anyway in either apex 4.0 or 4.1? If not, Is there any work around?
Thanks in advance
movvaHi,
You can export , but I have not managed import those to different app.
I get
These components were exported from a different application or from an application in a different workspace. The components cannot be installed in this application.Workaround is export whole app and import it to workspace where is app where you like copy authorization schemes.
Then in target app go create new authorization schema and select As a Copy of an Existing Authorization Scheme. Then select from witch app you copy schema.
When you have copy all needed drop source app.
Regards,
Jari
http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0 -
Export: ". exporting post-schema procedural objects and actions"
Hi all,
I am trying to do a full database export from the server and an import to another PC.
I tried exporting recieved the following warnings:
. exporting synonyms
. exporting views
. exporting referential integrity constraints
. exporting stored porcedures
. exporting operators
. exporting indextypes
. exporting bitmap, functional and extensible indexes
. exporting posttables actions
. exporting triers
. exporting matrializes views
. exporting snapshot logs
. exporting job queues
. exporting refresh grups and children
. exporting dimensions
. exporting post-schema procedural objects and actions
EXP-00008: ORACLE error 903 encountered
ORA-00903: invalid table name
ORA-06512: at "SYS.DBMS_RULE_EXP_RL_INTERNAL", line 311
ORA-06512: at "SYS.DBMS_RULE_EXP_RULES", line 142
ORA-06512: at line 1
EXP-00083: The previous problem occurred when callig SYS.DBMS_RULES.schema_info_exp
. exporting user history table
. exporting defualt and system auditing options
. exporting statistics
Export terminated successfully with warnings.
I been through the forum and was advised to run the catalog.sql, then rerun the exp command.
I did as suggested but the export hangs at the last line:
Export donw in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
About to export the entire database ...
. exporting tablespace definitions
. exporting profiles
. exporting user definitions
. exporting roles
. exporting resource costs
. exporting rollback segment definitions
. exporting database links
. exporting sequence numbers
. exporting directory aliases
. exporting context namespaces
. exporting foreign function library names
. exporting PUBLIC type synonyms
. exporting private type synonyms
. exporting object type definitions <- hangs here
Is there a way to resolve this? Or should I approach another method?
Any of your help is greatly appreciated. Thank you.
Thanks and Regards
SanI am also trying to figure all the stuffs out. I try to answer as much as I know. Thanks.
What is the export utility version?
Using exp, "Export: Release 9.2.0.1.0"
What is the import utility version?
Using imp, "Import: Release 9.2.0.1.0"
What version of Oracle database are you trying to export?
9.2.0.1.0
Into what version of Oracle database are you trying to import?
9.2.0.1.0
What are the database character sets and values of environment variable 'NLS_LANG' for each case?
Not sure about this but I didnt change any parameters of the character set, should be
WE8MSWIN1252
Using WinXP OS, <- quite problematic, having a hard time trying to configure. :( -
hi,
I want to do export from the database with only one schema, do anyone know what is the command.
AmyHere you have a complete example to export/import a schema.
[oracle@ozawa bin]$ export ORACLE_SID=LQACNS1
[oracle@ozawa bin]$
[oracle@ozawa bin]$ sqlplus /nolog
SQL*Plus: Release 9.2.0.1.0 - Production on Thu Mar 4 09:43:57 2004
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
SQL> conn / as sysdba
Connected.
SQL>
SQL> create user joelp identified by joelp
2 default tablespace users
3 temporary tablespace temp;
User created.
SQL>
SQL> grant connect, resource to joelp;
Grant succeeded.
SQL>
SQL> conn joelp/joelp
Connected.
SQL>
SQL> create table t1 ( c1 number );
Table created.
SQL> insert into t1 values (10);
1 row created.
SQL> commit;
Commit complete.
SQL> quit
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
[oracle@ozawa bin]$
[oracle@ozawa bin]$ exp joelp/joelp file=joel.dmp log=joel.log
Export: Release 9.2.0.1.0 - Production on Thu Mar 4 09:47:40 2004
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connected to: Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
Export done in WE8ISO8859P1 character set and AL16UTF16 NCHAR character set
. exporting pre-schema procedural objects and actions
. exporting foreign function library names for user JOELP
. exporting PUBLIC type synonyms
. exporting private type synonyms
. exporting object type definitions for user JOELP
About to export JOELP's objects ...
. exporting database links
. exporting sequence numbers
. exporting cluster definitions
. about to export JOELP's tables via Conventional Path ...
. . exporting table T1 1 rows exported
. exporting synonyms
. exporting views
. exporting stored procedures
. exporting operators
. exporting referential integrity constraints
. exporting triggers
. exporting indextypes
. exporting bitmap, functional and extensible indexes
. exporting posttables actions
. exporting materialized views
. exporting snapshot logs
. exporting job queues
. exporting refresh groups and children
. exporting dimensions
. exporting post-schema procedural objects and actions
. exporting statistics
Export terminated successfully without warnings.
[oracle@ozawa bin]$
[oracle@ozawa bin]$ sqlplus joelp/joelp
SQL*Plus: Release 9.2.0.1.0 - Production on Thu Mar 4 09:48:41 2004
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
SQL> drop table t1;
Table dropped.
SQL> quit
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
[oracle@ozawa bin]$
[oracle@ozawa bin]$ imp joelp/joelp file=joel.dmp
Import: Release 9.2.0.1.0 - Production on Thu Mar 4 09:49:16 2004
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connected to: Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
Export file created by EXPORT:V09.02.00 via conventional path
import done in WE8ISO8859P1 character set and AL16UTF16 NCHAR character set
. importing JOELP's objects into JOELP
. . importing table "T1" 1 rows imported
Import terminated successfully without warnings.
[oracle@ozawa bin]$
[oracle@ozawa bin]$ sqlplus joelp/joelp
SQL*Plus: Release 9.2.0.1.0 - Production on Thu Mar 4 09:49:28 2004
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
SQL> select * from t1;
C1
10
SQL> quit
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
[oracle@ozawa bin]$
[oracle@ozawa bin]$
Joel Pérez
http://otn.oracle.com/experts -
How can we export logical schema.
Hi,even i want to do the same thing(export & import Data Server without losing Logical Schema connectivity).Please let me know if it is possible and how can it be done?
-
Import/Export a schema in Stored Procedure
Can I execute an import or export a schema from within a stored procedure?
One last question.
I'm now testing doing an import and when I run my procedure I'm getting an error from within the DBMS_DATAPUMP procedure. Here it is:
Error report:
ORA-39001: invalid argument value
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 79
ORA-06512: at "SYS.DBMS_DATAPUMP", line 2953
ORA-06512: at "SYS.DBMS_DATAPUMP", line 4132
ORA-06512: at line 47
39001. 00000 - "invalid argument value"
*Cause: The user specified API parameters were of the wrong type or
value range. Subsequent messages supplied by
DBMS_DATAPUMP.GET_STATUS will further describe the error.
*Action: Correct the bad argument and retry the API.
Here is the procedure I'm running:
DECLARE
v_dp_job_handle NUMBER ; -- Data Pump job handle
v_count NUMBER ; -- Loop index
v_percent_done NUMBER ; -- Percentage of job complete
v_job_state VARCHAR2(30) ; -- To keep track of job state
v_message KU$_LOGENTRY ; -- For WIP and error messages
v_job_status KU$_JOBSTATUS ; -- The job status from get_status
v_status KU$_STATUS ; -- The status object returned by get_status
v_logfile NUMBER ;
v_date VARCHAR2(13) ;
BEGIN
v_project := 'TEST' ;
v_date := '03272009_1048' ;
/* IMPORT */
/* OPEN THE DATAPUMP PROCEDURE */
v_dp_job_handle := DBMS_DATAPUMP.OPEN(
OPERATION => 'IMPORT',
JOB_MODE => 'SCHEMA',
--REMOTE_LINK => v_desitination_server_name,
JOB_NAME => v_project||'_IMP_'||v_date,
VERSION => 'LATEST') ;
/* ADD THE NAME OF THE DUMP FILE TO THE DATAPUMP PROCEDURE */
DBMS_DATAPUMP.ADD_FILE(
HANDLE => v_dp_job_handle,
FILENAME => v_project||'_EXP_'||v_date||'.DMP',
DIRECTORY => 'DATAPUMP') ;
/* ADD THE NAME OF THE IMPORT LOG FILE TO THE DATAPUMP PROCEDURE */
DBMS_DATAPUMP.ADD_FILE(
HANDLE => v_dp_job_handle,
FILENAME => v_project||'_IMP_'||v_date||'.LOG',
DIRECTORY => 'DATAPUMP',
FILETYPE => DBMS_DATAPUMP.KU$_FILE_TYPE_LOG_FILE) ;
/* ADD THE NAME OF THE SCHEMA TO IMPORT TO THE DATAPUMP PROCEDURE */
DBMS_DATAPUMP.METADATA_FILTER(
HANDLE => v_dp_job_handle,
NAME => 'SCHEMA_EXPR',
VALUE => 'TEST2' ) ;
/* START THE IMPORT */
DBMS_DATAPUMP.START_JOB(v_dp_job_handle) ;
/* END THE DATAPUMP PROCEDURE */
DBMS_DATAPUMP.DETACH(v_dp_job_handle) ;
END ;
My guess is the parameter that it doesn't like is the VALUE parameter in the METADATA_FILTER section. What I want to do is export the TEST schema and then import it back into the same database into a new TEST2 schema. How can I do that?
Thanks for your help! -
I would like to export a schema from our Oracle 9i Db (AIX) to an Oracle 10g Db (Windows) but not export the associated data.
So all I want on the 10g Db is tables/indexes/etc structures but no data, I have seen reference to the ROWS=N .. So could I use the following command
exp userid=system/manager file=my_db.dmp log=my_db.log rows=N owner=<schema i want to export>I did the followig but got the following error message with my AIX system ?
exp userid=username/password file=/doc/dump.dmp rows=N owner=<schema i want to export>
ksh: 0403-057 Syntax error: `newline or ;' is not expected.
Maybe you are looking for
-
Mountain Lion crashes regularly on my MacBook Pro (2010)
Hi guys, I am really frustrated as my MacBook Pro crashes almost twice a day since I updated to Mountain Lion. Either I doesn't wake up when it's in Sleep Mode (I have to restart it via the on/off switch) or it just crashes, while I am working, showi
-
Applet with jar file doesn't work in iframe
Hi I have weired problem. I created a applet and work fine in jsp page but i created another jsp page that has iframe and when i try to open this applet in that iframe it doesn't work it just throws error file not found. Does anyone has any solution.
-
How can i fix a missing footing on a Macbook? superglue?
how can i fix a missing footing on a Macbook? superglue?
-
We created dynamic forms using LiveCycle. The users download them to their local PC and enter data. After they enter data they can initially save the form to their PC. However, after that initial save they have trouble saving the form. For some users
-
How to set properties in a loop in jsp
I have a problem to set properties for beans in jsp this is part of my code: <jsp:useBean id="searchHandler" class="searchHandler.class" scope="session"> </jsp:useBean> <% String[] tempStr={"hello","you","happy"}; for(int i=0; i<tempStr.length; i++)