Oracle 从sqldeveloper创建数据泵导出作业时出现问题

Oracle 从sqldeveloper创建数据泵导出作业时出现问题,oracle,oracle11g,oracle-sqldeveloper,database-administration,oracle-xe,Oracle,Oracle11g,Oracle Sqldeveloper,Database Administration,Oracle Xe,我正在尝试使用oracle sql developer向导创建数据泵导出下面是我尝试设置数据泵导出的用户获得的授权 grant create session, create table, create procedure, exp_full_database, imp_full_database to TESTE; grant read, write on directory DOCUMENTS to TESTE; grant read, write on directory DATA_PUMP

我正在尝试使用oracle sql developer向导创建数据泵导出下面是我尝试设置数据泵导出的用户获得的授权

grant create session, create table, create procedure, exp_full_database, imp_full_database to TESTE;
grant read, write on directory DOCUMENTS to TESTE;
grant read, write on directory DATA_PUMP_DIR to TESTE; 
但在完成向导后,我发现以下错误

...
 END IF;
EXCEPTION 
WHEN OTHERS THEN 
    NULL;
END;
dbms_output.put_line('REMOVE FINAL TRACE TEXT');
 Raise;
END;
Error report -
ORA-31626: job does not exist
ORA-06512: at line 77
31626. 00000 -  "job does not exist"
*Cause:    An invalid reference to a job which is no longer executing,
       is not executing on the instance where the operation was
       attempted, or that does not have a valid Master Table.
       Refer to any following error messages for clarification.
*Action:   Start a new job, or attach to an existing job that has a
       valid Master Table.
Connected to: Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production
ORA-31626: job does not exist
ORA-31637: cannot create job SYS_EXPORT_SCHEMA_06 for user MERCHANDISER
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
ORA-06512: at "SYS.KUPV$FT_INT", line 798
ORA-06550: line 1, column 7:
PLS-00331: illegal reference to SYS.SYS
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
下面是向导在最后生成的plsql代码

set scan off
set serveroutput on
set escape off
whenever sqlerror exit 
DECLARE
h1 number;
errorvarchar varchar2(100):= 'ERROR';
tryGetStatus number := 0;
begin
    h1 := dbms_datapump.open (operation => 'EXPORT', job_mode => 'SCHEMA',             job_name => 'EXPORT_JOB_SQLDEV_944', version => 'COMPATIBLE'); 
tryGetStatus := 1;
dbms_datapump.set_parallel(handle => h1, degree => 1); 
dbms_datapump.add_file(handle => h1, filename => 'EXPDAT-'||to_char(sysdate,'yyyy-mm-dd-hh24_mi_ss')||'.LOG', directory => 'DATA_PUMP_DIR', filetype => 3); 
dbms_datapump.set_parameter(handle => h1, name => 'KEEP_MASTER', value => 1); 
dbms_datapump.metadata_filter(handle => h1, name => 'SCHEMA_EXPR', value => 'IN(''MERCHANDISER'')'); 
dbms_datapump.add_file(handle => h1, filename => 'EXPDAT%U-'||to_char(sysdate,'yyyy-mm-dd-hh24_mi_ss')||'.DMP', directory => 'DATA_PUMP_DIR', filesize => '100M',  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.set_parameter(handle => h1, name => 'ESTIMATE', value => 'BLOCKS'); 
dbms_datapump.start_job(handle => h1, skip_current => 0, abort_step => 0); 
dbms_datapump.detach(handle => h1); 
errorvarchar := 'NO_ERROR'; 
EXCEPTION
    WHEN OTHERS THEN
BEGIN 
    IF ((errorvarchar = 'ERROR')AND(tryGetStatus=1)) THEN 
        DBMS_DATAPUMP.DETACH(h1);
    END IF;
EXCEPTION 
WHEN OTHERS THEN 
    NULL;
END;
RAISE;
END;
/
我还尝试了bash中的以下命令

expdp TESTE/TESTEr@localhost schemas=TESTE directory=documents dumpfile=test.dmp logfile=test.log
并得到以下误差

...
 END IF;
EXCEPTION 
WHEN OTHERS THEN 
    NULL;
END;
dbms_output.put_line('REMOVE FINAL TRACE TEXT');
 Raise;
END;
Error report -
ORA-31626: job does not exist
ORA-06512: at line 77
31626. 00000 -  "job does not exist"
*Cause:    An invalid reference to a job which is no longer executing,
       is not executing on the instance where the operation was
       attempted, or that does not have a valid Master Table.
       Refer to any following error messages for clarification.
*Action:   Start a new job, or attach to an existing job that has a
       valid Master Table.
Connected to: Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production
ORA-31626: job does not exist
ORA-31637: cannot create job SYS_EXPORT_SCHEMA_06 for user MERCHANDISER
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
ORA-06512: at "SYS.KUPV$FT_INT", line 798
ORA-06550: line 1, column 7:
PLS-00331: illegal reference to SYS.SYS
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored

知道是什么导致了问题吗?

您能用命令-->显示参数流\u池\u大小检查此参数吗_SIZE@ivanzg感谢您提供我使用命令检查的响应,Streams\u POOL\u SIZE的值为0,我在oracle的另一个安装上也做了同样的事情,该安装的STREAMS\u POOL\u SIZE值也为0,并且没有显示任何错误there@ivanzg我使用这些命令来改变系统变量的值
alter system set pga\u aggregate\u target=140M;改变系统设置sga_目标=500M;更改系统设置流\u池\u大小=400;显示参数STREAMS\u POOL\u SIZE现在我得到的唯一错误是ORA-31626:作业不存在请检查此参数“aq_tm_processes”,它不应为0。此外,请尝试将函数“dbms_datapump.open”的参数“job_name”设置为null,而不是给出显式值。