Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Couldn't export schema because of invalid argument value and other errors.

513756Feb 6 2007 — edited Feb 7 2007
Hello, All.
I am using an oracle 10g database, which is running on a Redhat9 linux server, to manage our lab information.

I plan to export a schema (only tables, not the real data) into a file.

First, I used the Enterprise Manager to export. I went through and complete the export job. After submitting, the system says:

There is a problem writing to the export files: ORA-39094: Parallel execution not supported in this database edition..

So I just copy the PL/SQL code which would be send to the source database and comment the set_parallel procedure.

The code is listed here:

declare
h1 NUMBER;
begin
begin
h1 := dbms_datapump.open (operation => 'EXPORT', job_mode => 'SCHEMA', job_name => 'EXPORT000468', version => 'COMPATIBLE');
end;
--begin
--dbms_datapump.set_parallel(handle => h1, degree => 1);
--end;
begin
dbms_datapump.add_file(handle => h1, filename => 'EXPDAT.LOG', directory => 'DATA_FILE_DIR', filetype => 3);
end;
begin
dbms_datapump.set_parameter(handle => h1, name => 'KEEP_MASTER', value => 0);
end;
begin
dbms_datapump.metadata_filter(handle => h1, name => 'SCHEMA_EXPR', value => 'IN(''FLOWLIMS'')');
end;
begin
dbms_datapump.set_parameter(handle => h1, name => 'ESTIMATE', value => 'BLOCKS');
end;
begin
dbms_datapump.add_file(handle => h1, filename => 'EXPDAT%U.DMP', directory => 'DATA_FILE_DIR', filetype => 1);
end;
begin
dbms_datapump.set_parameter(handle => h1, name => 'INCLUDE_METADATA', value => 1);
end;
begin
dbms_datapump.data_filter(handle => h1, name => 'INCLUDE_ROWS', value => 0);
end;
begin
dbms_datapump.set_parameter(handle => h1, name => 'DATA_ACCESS_METHOD', value => 'AUTOMATIC');
end;
begin
dbms_datapump.start_job(handle => h1, skip_current => 0, abort_step => 0);
end;
begin
dbms_datapump.detach(handle => h1);
end;
end;
/

I paste the code in an SQL*Plus session and execute it. The system says:

declare
*
ERROR at line 1:
ORA-39001: invalid argument value
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 79
ORA-06512: at "SYS.DBMS_DATAPUMP", line 2486
ORA-06512: at "SYS.DBMS_DATAPUMP", line 2718
ORA-06512: at line 23

I am not very sure which part is wrong for I have exported another schema successfully using this method just now.

Any advice is highly appreciated!

Qian
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 7 2007
Added on Feb 6 2007
10 comments
1,309 views