ORA-31626 dbms_datapump running

I wrote some PL/SQL to do nightly exports of my database, but I have been unable to operate. I'm getting an ORA-31626. A search of Metalink has not yield well except a few possible references to the aq_tm_processes and streams_pool_size.

Has anyone else seen elsewhere? My streams_pool_size is 0, but I use the automatic SGA sizing so what I understand pool of watercourses should not be defined more precisely and Oracle will allocate space to the pool shared according to the needs. Code pasted below:

Thank you

< pre >
DECLARE
l_dp_handle NUMBER;
l_last_job_state VARCHAR2 (30): = "UNDEFINED";
l_job_state VARCHAR2 (30): = "UNDEFINED";
l_sts KU$ _STATUS;
v_file_handle UTL_FILE. TYPE_DE_FICHIER;
v_exists BOOLEAN;
v_dbname VARCHAR2 (12);
v_expfile VARCHAR2 (32);
v_explog VARCHAR2 (32);
v_expfile1 VARCHAR2 (32);
v_explog1 VARCHAR2 (32);
v_expfile2 VARCHAR2 (32);
v_explog2 VARCHAR2 (32);
V_LENGTH NUMBER;
v_blocksize NUMBER;
v_jobstate VARCHAR2 (30);
v_jobstatus KU$ _JOBSTATUS;
v_status KU$ _STATUS;
v_scn NUMBER;
BEGIN
SELECT name
IN v_dbname
DATABASE of v$.

v_expfile: = v_dbname | ' _exp.dmp';
v_explog: = v_dbname | ' _exp.log';
v_expfile1: = v_dbname | ' 1_exp.dmp';
v_explog1: = v_dbname | ' 1_exp.log';
v_expfile2: = v_dbname | ' 2_exp.dmp';
v_explog2: = v_dbname | ' 2_exp.log';

DBMS_OUTPUT. ENABLE (1000000);
-Checks if a file exists and if so rename
UTL_FILE. FGETATTR ('DUMP_FILES', v_expfile1, v_exists, v_length, v_blocksize);
IF v_exists
THEN
dbms_output.put_line (' Rename ' | v_expfile1 |' to ' | v_expfile2);
UTL_FILE. FRENAME (src_location = > 'DUMP_FILES', nomfichier_src = > v_expfile1 dest_location = > 'DUMP_FILES', dest_filename = > v_expfile2, overwrite = > TRUE);
dbms_output.put_line (' Rename ' | v_explog1 |' to ' | v_explog2);
UTL_FILE. FRENAME (src_location = > 'DUMP_FILES', nomfichier_src = > v_explog1 dest_location = > 'DUMP_FILES', dest_filename = > v_explog2, overwrite = > TRUE);
dbms_output.put_line ("' renowned files.");
END IF;
-Rename the current file
UTL_FILE. FGETATTR ('DUMP_FILES', v_expfile, v_exists, v_length, v_blocksize);
IF v_exists
THEN
dbms_output.put_line (' Rename ' | v_expfile |' to ' | v_expfile1);
UTL_FILE. FRENAME (src_location = > 'DUMP_FILES', nomfichier_src = > v_expfile dest_location = > 'DUMP_FILES', dest_filename = > v_expfile1, overwrite = > TRUE);
dbms_output.put_line (' Rename ' | v_explog |' to ' | v_explog1);
UTL_FILE. FRENAME (src_location = > 'DUMP_FILES', nomfichier_src = > v_explog dest_location = > 'DUMP_FILES', dest_filename = > v_explog1, overwrite = > TRUE);
dbms_output.put_line ("' renowned files.");
END IF;

-Export full Begin
dbms_output.put_line (' ' start export ');
-Get the current database YVERT

SELECT current_scn
IN v_scn
DATABASE of v$.

l_dp_handle: = dbms_datapump.open (operation = > 'EXPORT', job_mode = > 'FULL', remote_link = > NULL, job_name = > "NIGHTLY_EXPORT", version = > 'LATER');
dbms_datapump.add_file (handle = > l_dp_handle, filename = > v_expfile, directory = > 'DUMP_FILES', filetype = > DBMS_DATAPUMP.) KU$ _FILE_TYPE_DUMP_FILE);
dbms_datapump.add_file (handle = > l_dp_handle, filename = > v_explog, directory = > 'DUMP_FILES', filetype = > DBMS_DATAPUMP.) KU$ _FILE_TYPE_LOG_FILE);
dbms_datapump.set_parameter (handle = > l_dp_handle, name = > 'FLASHBACK_SCN', value = > v_scn); -Even running consistent traditional export mode
dbms_datapump. START_JOB (l_dp_handle);
-Start loop to determine whether the task is complete
v_jobstate: = "UNDEFINED";
WHILE (v_jobstate! = 'COMPLETE') and (v_jobstate! = "STOPPED")
LOOP
DBMS_DATAPUMP. GET_STATUS)
manage = > l_dp_handle,
mask = > 15,-DBMS_DATAPUMP.ku$ _status_job_error + DBMS_DATAPUMP.ku$ _status_job_stats + DBMS_DATAPUMP.ku$ _status_wip
Timeout = > NULL,
job_state = > v_jobstate,
State = > v_status
);
v_jobstatus: = v_status.job_status;
END LOOP;

dbms_output.put_line (' export completed with status: ' | v_jobstate);
dbms_datapump. Detach (l_dp_handle);
END;
< / pre >

I don't say that the size of my pool is just, but it's what I have:

shared_pool_size = 400 m
STREAMS_POOL_SIZE = 13 m

Since this failure on the command open, I wonder if you already have a job that is opened with the same name. While I was trying to get your script to work, I removed the job_name = "NIGHTLY_EXPORT" and assign

job_name-online null,

This creates just a job name that is not already in use.

Dean

Tags: Database

Similar Questions

  • tablespace expdp 10g default ORA-31626 31633 - ORA ORA-06512 ORA-06512 ORA-01647

    Hello

    I have currently a database 10g running on a server, AIX, one of its tablespace (CTSPRODDOC) data files located in two places;

    1 /doc/ctsproddoc.dbf

    2 /image/ctsproddoc_01.dbf

    As he tried to export the tablespace for help after a command;

    Directory of cts/cts expdp = tablespaces dumpfile = CTSPRODDOC.dmp dmpdir1 = CTSPRODDOC

    It fails with following error messages;

    ORA-31626: there is no job

    ORA-31633: could not create the main table 'CTSPRODDOC. SYS_EXPORT_TABLESPACE_05 ".

    ORA-06512: at "SYS." DBMS_SYS_ERROR', line 95

    ORA-06512: at "SYS." "KUPV$ FT", line 863

    ORA-01647: tablespace "CTSPRODDOC" is read-only, cannot allocate space inside

    I was able to export a different tablespace with success of the same database to the same directory. But I'm unable to export CTSPRODDOC.

    Can someone please advise.

    Thank you

    Hem

    Hello

    I suspect that the default tablesapce for the user of the CTS is CTSPRODDOC. You can change this something else? or do some export under a different name that has a different default tablespace?

    See you soon,.

    Harry

  • ORA-31626: there is no job

    Hello
    I have tose errors when exporting in 10 g R2 on Win 2003:
    ORA-31626: job does not exist
    
    ORA-06512:  "SYS.DBMS_DATAPUMP", line 2745
    ORA-06512:  "SYS.DBMS_DATAPUMP", line 3712
    Looking around, I found the same thing but for ORA-06512: at "SYS." DBMS_SYS_ERROR', line 95ORA-06512: at "SYS." "KUPV$ FT", line 863

    Thanks for help

    Its the same name of new job expdp from old issue. Link doc below to metalink

    https://metalink2.Oracle.com/MetaLink/PLSQL/f?p=130:14:7360345825777486806:p14_database_id, p14_docid, p14_show_header, p14_show_help, p14_black_frame, p14_font:NOT, 556425.1, 1, 1, 1, helvetica

    Doc - id: 556425.1

    Kind regards

    Vassallo

  • IMPDP import DataPump fails with error ORA-31626 ORA-6512 31637 ORA ORA-31632 ORA-31635

    Hello


    As he attempted an impdp, I get after the sequence of errors-


    ORA-31626: there is no job
    ORA-06512: at "SYS." DBMS_SYS_ERROR', line 79
    ORA-06512: at "SYS." "KUPV$ FT", line 885
    ORA-31637: failed to create the SYS_IMPORT_TABLE_01 work for user LSU
    ORA-31632: table main "LSU. SYS_IMPORT_TABLE_01"not found, invalid or unreachable
    ORA-31635: impossible to establish synchronization job resources
    ORA-06512: at "SYS." DBMS_SYS_ERROR', line 79
    ORA-06512: at "SYS." "KUPV$ FT_INT", line 1986
    ORA-04063: package body 'SYS. DBMS_LOCK"contains errors
    ORA-06508: PL/SQL: called program unit is not found: 'SYS. DBMS_LOCK.


    Parameters passed to impdp are also less

    Impdp sjm/xxxxxx@flman700 DIRECTORY = temp_dir DUMPFILE = dyman01_exp01.dmp, dyman01_exp02.dmp, dyman01_exp03.dmp, dyman01_exp04.dmp, dyman01_exp05.dmp, dyman01_exp06.dmp LOGFILE is one. JOURNAL OF THE TABLES = CST_ACTVT TABLE_EXISTS_ACTION = ADD


    Any help on how to proceed to another. Cannot find jobs datapump hung in the target database.

    Version of data source and target - 10.2.0.3


    Thank you


    Sery

    Hello

    According to DBA_DEPENDENCIES (for 11.1 anyway) the dependencies of the table for DBMS_LOCK are DUAL and DBMS_LOCK_ALLOCATED - these two exist?

    I suggest that you get a failure and the rerun catalog and the catproc.

    See you soon,.

    Rich

  • Help: ora-15038 when run root.sh

    OS: Enterprise Linux oracle 6.4

    DB: database oracle 11.2.0.1

    After the grid install oracle rac, run /u01/app/grid/root.sh

    Description

    Ask Questions, get help and share your experiences with this Article

    Occurrence

    Symptoms

    Workaround

    Patches

    History

    References

    --------------------------------------------------------------------------------

    Applies to:

    OS Linux

    Oracle Database - Enterprise Edition - Version 10.2.0.1 to 11.2.0.4 [version 10.2 to 11.2]

    Linux x 86-64

    Haansoft Linux x 86

    Description

    After leveling SAN 'IBM NSeries N7950T - Data ONTAP 8.0.2P3' firmware 'BM NSeries N7950T - Data ONTAP 8.1.1' firmware, ASM starts cannot be mounted because of errors the next:

    SYS@+ASM2 > alter diskgroup DATA11G mount.

    change the mount diskgroup DATA11G

    *

    ERROR on line 1:

    ORA-15032: not all changes made

    ORA-15017: diskgroup "DATA11G" can not be mounted.

    ORA-15063: ASM discovered an insufficient number of drives for diskgroup

    'DATA11G '.

    ORA-15085: ASM disk "" the size of incompatible sector.

    ORA-15085: ASM disk "" the size of incompatible sector.

    ORA-15085: ASM disk "" the size of incompatible sector.

    ORA-15085: ASM disk "" the size of incompatible sector.

    ORA-15085: ASM disk "" the size of incompatible sector.

    --------------------------------------------------------------------------------

    Ask Questions, get help and share your experiences with this Article

    You want to explore this matter further with other customers of Oracle, Oracle employees and Industry Experts?

    Click here to join the chat where you can ask questions, help others and share your experiences with this particular article.

    Check out the discussions on other articles and useful topics by clicking here to access the Homepage My Oracle Support community for installation/update of database.

    Occurrence

    (A) origin configuration:

    1 ASM RAC 11.2.0.3.

    2 ASMLIB installed API

    3 Linux 64-bit

    4 IBM NSeries N7950T - Data ONTAP 8.0.2P3 (firmware update)

    5 starts have been created on disks for the 512 byte sector.

    (B) the problem started on the new configuration 'IBM NSeries N7950T - Data ONTAP 8.1.1':

    1 ASM RAC 11.2.0.3.

    2 ASMLIB installed API

    3 Linux 64-bit

    4 IBM NSeries N7950T - Data ONTAP 8.1.1 (firmware update)

    5 starts have been created on disks for the 512 byte sector.

    Note 1: The problem can occur on any version of ASM (10.2.0.1X to 11.2.0.X).

    Note 2: The problem can occur on any release ASMLIB.

    Note 3: This problem can occur with any other provider of storage, if the firmware update changes / changes physical_block_size = 4 096 bytes (4 KB).

    (C) this is a problem with "logical_block_size" are present now drives = 512 bytes and "physical_block_size" = 4 096 bytes (4 KB) because of follows her SAN firmware upgrade:

    Before the updated firmware to the storage device:

    # cd/sys/block/dm-21/tail

    # more * block_size

    ::::::::::::::

    logical_block_size

    ::::::::::::::

    512

    ::::::::::::::

    physical_block_size

    ::::::::::::::

    512

    After the update of the storage device firmware:

    # cd/sys/block/dm-21/tail

    # more * block_size

    ::::::::::::::

    logical_block_size

    ::::::::::::::

    512

    ::::::::::::::

    physical_block_size

    ::::::::::::::

    4096

    This problem occurred because of storage the device firmware has been updated. The old firmware reported size of logical block of 512 bytes / 512 bytes physical block size, after the upgrade, the new firmware reported, 4096 bytes physical block size / size of 512 byte logical block. Therefore, a diskgroup created with 512 bytes blocks now suddenly work on a device to report areas of 4 096 bytes. Why ASM will refuse to import/up the diskgroup (s).

    In other words, the logical sector size is presented = 512 bytes and the physical size of area presented = 4 096 bytes (4 KB), it is not supported by ASMLIB API at this time.

    (E) despite the ASM starts were created on 512-byte sector size disks, ASM detects disks ASMLIB with a = 4096 bytes (4 KB) sector size instead of a size of sector = 512 bytes, this inconsistency is causing the issue (ORA-15085: ASM disk "" is the size of sector incompatible.):

    + ASM > select v$ asm_disk group_Number, disk_number, sector_size path

    .

    GROUP_NUMBER DISK_NUMBER PATH SECTOR_SIZE

    ------------ ----------- ------------------------------ -----------

    ...

    0 75 ORCL:TMSTS01_LUN010 4096

    (E) but if the ASMLIB is disabled/bypassed (ASM_DISKSTRING = "/ oracleasm/dev/discs / *'"), then the disks are presented/detected with a sector size = 512 bytes:

    + ASM > select v$ asm_disk group_Number, disk_number, sector_size path

    .

    GROUP_NUMBER DISK_NUMBER PATH SECTOR_SIZE

    ------------ ----------- ---------------------------------------- -----------

    ...

    / dev/oracleasm/disks/TMSTS01_LUN010 0 75 512

    (D) this problem is due to update the Firware SAN and the next bug ASMLIB (ASMLIB enhancement):

    ? Bug: 13999609 - REPORTED PHYSICAL BLOCK SIZE CAN CAUSE PROBLEMS WITH DATA 10 G databases

    ? oracleasm pilot (ASMLIB) from today works in the expectation that the logical block size and the physical block size are 512/512 bytes. This particular/firmware storage seems to be, then the configuration will not work with the oracleasm driver.

    ? We understand that size of 4K sector disks must be supported, so we are working on a solution of development of ASMLIB.

    ? Therefore, currently, this update of the firmware of the SAN is not certified and is not supported with ASMLIB.

    Symptoms

    Error description:

    15085, 00000, "ASM disk \"%s\"has inconsistent sector size. »

    * Cause: An attempt to mount a diskgroup failed because a drive reported

    value of incompatible sector size.

    * Action: Use disks with sector size compatible with the Diskgroup sector size,

    or ensure that the operating system can properly report the disk

    sector size.

    //

  • ORA-06565: cannot run the ROLE VALUE from stored procedures

    Hello!

    I'm trying to call a procedure from a function. Among the statements in the procedure stored is of dbms_session.set_role ('HAVE');

    I get the error "Cannot run a DEFINED ROLE less stored proceduers". I joined the call in an anonymous block above, but the error still exists.

    Any idea will really help me.

    Thank you

    >
    I'm trying to call a procedure from a function. Among the statements in the procedure stored is of dbms_session.set_role ('HAVE');

    I get the error "Cannot run a DEFINED ROLE less stored proceduers". I joined the call in an anonymous block above, but the error still exists.

    Any idea will really help me.
    >
    This will work only if the procedure is defined for the APPELLANT's rights.

    Roles are disabled in named PL/SQL blocks unless you use of the APPELLANT's rights by setting the code with AUTHID CURRENT_USER.

    The Oracle documentation provides a very clear explanation - based restriction is for the NAMED PL/SQL blocks rights DEFINER of this use (the default):
    >
    Roles used in the appointed with rights to define blocks

    All roles are disabled in any PL/SQL block named (stored procedure, function, or trigger) that runs with the rights of the author. Roles are not used to privilege control, and you cannot define roles within the procedure of a DEFINER rights.
    >
    The database Security Guide has the information in the section "operation of the roles in PL/SQL blocks (which, of course, wouldln was necessary if they didn't work.).
    http://docs.Oracle.com/CD/B28359_01/network.111/B28531/authorization.htm#i1007304
    >
    The use of roles in a PL/SQL block depends on if it is an anonymous block, or a block named (stored procedure, function, or trigger), and if it runs with the rights of the author or the rights of the applicant.

    Roles used in the appointed with rights to define blocks
    All roles are disabled in any PL/SQL block named (stored procedure, function, or trigger) that runs with the rights of the author. Roles are not used to privilege control, and you cannot define roles within the procedure of a DEFINER rights.

    The SESSION_ROLES view shows all roles that are currently enabled. If a named PL/SQL block that runs with DEFINER SESSION_ROLES rights issues, the query returns no rows.

    See also:

    Oracle database reference

    Roles used in blocks named with the rights of the plaintiff and anonymous PL/SQL
    Named PL/SQL blocks that run with the rights of the applicant and the anonymous PL/SQL blocks are executed at the end of the privileges granted through active roles. Current roles are used for verification within rights Summoner of privilege the PL/SQL block. You can use dynamic SQL statements to define a role in the session.

  • ORA-00034: cannot run sessionbut of PL/SQL, it works very well in plsql

    SQL> select UTL_URL.unescape ('http://search.music.google.co.jp/musicsearch?cc=d1&cp=%A5%DE%A5%B8%A4%C7%B4%B6%BC%D5', 'UTF-8') from dual;
    select UTL_URL.unescape ('http://search.music.google.co.jp/musicsearch?cc=d1&cp=%A5%DE%A5%B8%A4%C7%B4%B6%BC%D5', 'UTF-8') from dual
           *
    ERROR at line 1:
    ORA-00034: cannot  in current PL/SQL session
    ORA-06512: at "SYS.UTL_URL", line 28
    ORA-06512: at "SYS.UTL_URL", line 170
    ORA-06512: at line 1
    but it works very well in plsql/block
      1  declare
      2  v varchar2(500);
      3  begin
      4  v :=UTL_URL.ESCAPE ( 'http://search.music.google.co.jp/musicsearch?cc=d1&cp=%A5%DE%A5%B8%A4%C7%B4%B6%BC%D5', FALSE, 'UTF-8') ;
      5  dbms_output.put_line(v);
      6  v :=UTL_URL.unESCAPE (v, 'UTF-8') ;
      7  dbms_output.put_line(v);
      8* end;
    SQL> /
    http://search.music.google.co.jp/musicsearch?cc=d1&cp=%25A5%25DE%25A5%25B8%25A4%25C7%25B4%25B6%25BC%25D5
    http://search.music.google.co.jp/musicsearch?cc=d1&cp=%A5%DE%A5%B8%A4%C7%B4%B6%BC%D5
    
    PL/SQL procedure successfully completed.
    Please help solve this error

    I need to do this in sql without pl/sql

    Thank you

    Published by: ivw on Nov 21, 2009 05:06

    Published by: ivw on Nov 21, 2009 05:09

    You try to call a function in SQL that violates the rules of "how functions should behave when she is called in SQL.

    In other words, someone seems to have coded UTL_UTL. Escape() or UTL_UTL. UNESCAPE() with a COMMIT or ROLLBACK in the code. Which is not allowed in the functions that are called in a SQL statement.

    I suggest that you raise a Service request to get it looked at properly.

  • DBMS_DATAPUMP. OPEN

    Hello

    I am a newbie in PL/SQL & DATAPUMP!

    I tried to generate (OPEN) IMPORT-WORK with:
    CREATE OR REPLACE PROCEDURE XX IS
    BEGIN
      BEGIN
        DECLARE
          HANDLE1 NUMBER;
        BEGIN
          HANDLE1 := DBMS_DATAPUMP.OPEN(OPERATION   => 'IMPORT',
                                        JOB_MODE    => 'SCHEMA',
                                        REMOTE_LINK => 'STRM');
          DBMS_OUTPUT.PUT_LINE('HANDLE1 :' || HANDLE1);
        EXCEPTION
          WHEN OTHERS THEN
            DBMS_OUTPUT.PUT_LINE('EX_HANDLE1 :' || HANDLE1);
            DBMS_OUTPUT.PUT_LINE('Import Error 1 :' || SQLERRM(SQLCODE));
        END;
      
      END;
    END XX;
    and always have the following error after running:
    SQL> execute xx;
     
    EX_HANDLE1 :
    Import Error 1 :ORA-31626: Job ist nicht vorhanden
     
    PL/SQL procedure successfully completed
     
    SQL> 
    And the handle Variable is empty !

    What I did wrong?

    Help, please!

    hqt200475

    Published by: hqt200475 on March 29, 2011 03:16

    Try with:

     l_dp_handle := DBMS_DATAPUMP.OPEN(operation   => 'IMPORT',
                                        job_mode    => 'SCHEMA',
                                        remote_link => NULL,
                                        job_name    => 'IMPORT_JOB',
                                        version     => 'COMPATIBLE');
    

    Are you sure remote connection? See the documentation for this parameter and use it.

  • Procedure DBMS_DATAPUMP to function

    Hello

    I created a procedure that works quite well as follows:
    CREATE OR REPLACE PROCEDURE proc_expdp(p_schema_name VARCHAR2, p_table_name VARCHAR2)
    IS
        v_handle NUMBER;
        v_jobname VARCHAR2 (100);
        v_dirname VARCHAR2 (100);
        v_filename VARCHAR2 (100);
    BEGIN
        v_filename := to_char(sysdate,'YYYYMMDDHH24MISS')||'.DMP';
        v_jobname := v_filename||'_EXPDP';
        v_dirname := 'DMPDIR';
        v_handle := dbms_datapump.open(operation => 'EXPORT', job_mode => 'TABLE', job_name => v_jobname);
        dbms_datapump.add_file(handle => v_handle, filename => v_filename, directory => v_dirname, filetype => 1);
        dbms_datapump.add_file(handle => v_handle, filename => v_filename||'_EXPDP'||'.LOG', directory => v_dirname, filetype => 3);
        dbms_datapump.metadata_filter (handle => v_handle, name => 'SCHEMA_EXPR', value => 'IN ('||p_schema_name||')');
        dbms_datapump.metadata_filter (handle => v_handle, name => 'NAME_EXPR', value => 'IN ('||p_table_name||')');
    --    dbms_datapump.data_filter (handle => v_handle, name => 'PARTITION_LIST', value => '''ODS_SLS_ITEM_DETAIL_20090101'', ''ODS_SLS_ITEM_DETAIL_20090102'', more here ''ODS_SLS_ITEM_DETAIL_20090227'', ''ODS_SLS_ITEM_DETAIL_20090228''', table_name => 'ODS_SLS_ITEM_DETAIL', schema_name => 'ODSPROD');
        dbms_datapump.start_job(v_handle);
        dbms_datapump.detach(v_handle);
    END;
    ... and I use the following code from PL/SQL to execute, which works very well also.
    BEGIN
      proc_expdp('''HR''','''DEPARTMENTS'',''EMPLOYEES''');
    END;
    I needed this as a function, so I corrected the following text:
    CREATE OR REPLACE FUNCTION system.func_expdp(p_schema_name VARCHAR2, p_table_name VARCHAR2) RETURN VARCHAR2
    IS
        v_handle NUMBER;
        v_jobname VARCHAR2 (100);
        v_dirname VARCHAR2 (100);
        v_filename VARCHAR2 (100);
    BEGIN
        v_filename := to_char(sysdate,'YYYYMMDDHH24MISS')||'.DMP';
        v_jobname := v_filename||'_EXPDP';
        v_dirname := 'DMPDIR';
        v_handle := dbms_datapump.open(operation => 'EXPORT', job_mode => 'TABLE', job_name => v_jobname);
        dbms_datapump.add_file(handle => v_handle, filename => v_filename, directory => v_dirname, filetype => 1);
        dbms_datapump.add_file(handle => v_handle, filename => v_filename||'_EXPDP'||'.LOG', directory => v_dirname, filetype => 3);
        dbms_datapump.metadata_filter (handle => v_handle, name => 'SCHEMA_EXPR', value => 'IN ('||p_schema_name||')');
        dbms_datapump.metadata_filter (handle => v_handle, name => 'NAME_EXPR', value => 'IN ('||p_table_name||')');
    --    dbms_datapump.data_filter (handle => v_handle, name => 'PARTITION_LIST', value => '''ODS_SLS_ITEM_DETAIL_20090101'', ''ODS_SLS_ITEM_DETAIL_20090102'', more here ''ODS_SLS_ITEM_DETAIL_20090227'', ''ODS_SLS_ITEM_DETAIL_20090228''', table_name => 'ODS_SLS_ITEM_DETAIL', schema_name => 'ODSPROD');
        dbms_datapump.start_job(v_handle);
        dbms_datapump.detach(v_handle);
        return v_filename;
    END func_expdp;
    ... and I wouldn't be able to run it with a select statement. Well, this part is the problem. When I try to run as a select statement
    select system.func_expdp('''HR''','''DEPARTMENTS'',''EMPLOYEES''') from dual;
    I get the following error:
    An error was encountered performing the requested operation:
    ORA-31626:job does not exist
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 79
    ORA-06512: at "SYS.DBMS_DATAPUMP", line 911
    ORA-06512: at "SYSTEM.FUNC_EXPDP", line 4356
    ORA-06512: at "SYSTEM.FUNC_EXPDP", line 11
    31626. 00000 - "job does not exist"
    *Cause: An invalid reference to a job which is no longer executing, is no 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.
    What I would do... ?

    Thanks for your time

    PS: I use 10g Express Edition. Lately I have created and deleted several datapump jobs, but I think it's irrelevant since my procedure works very well.

    You cannot use the function inside a SELECT statement because dbms_datapump.open does an implicit validation. However, you can use the function within a pl/sql as block:

    declare
       l_filename varchar2(100);
    begin
       l_filename := system.func_expdp('''HR''','''DEPARTMENTS'',''EMPLOYEES''')
    end;
    /
    

    Also, please avoid creating all objects in the SYS and SYSTEM schemas.

  • using remap_tablespace in impdp but still get ORA-01658 for old tablespace...

    Hi all

    I posted this question in the section export/import/SQL Loader & external Table but couldn't do a work around, so post the question here.

    Version of DB - 10.2.0.4.0

    OS - SuSE Linux Enterprise Server 10 (x86_64)

    I took 1 schema export using expdp and everything went successfully.

    The command used was-

    nohup expdp user_in_dev/user_in_dev dumpfile = user_in_dev_18june_new.dmp logfile = expdp_user_in_dev_18june_new.log directory = dir_user_in_dev VERSION = 10.2.0 STATUS = 60 HAPPY = ALL &

    All the above schema data are present in the DEV_TBLSPACE tablespace that is almost full (98%).

    Now, I'm importing the dumpfile into production under schema user_in_prod. Tablepace DEV_TBLSPACE is also present here and is almost 90% full, so I'm remapping in PROD_TBLSPACE using below command: -.

    nohup impdp user_in_prod/user_in_prod DIRECTORY = dir_user_in_dev = HAPPY user_in_dev_18june_new.dmp DUMPFILE = all = impdp_user_in_prod_18june_new.log remap_schema = user_in_dev:user_in_prod VERSION = 10.2.0 LOGFILE remap_tablespace = DEV_TBLSPACE:PROD_TBLSPACE &

    but I am getting below error: -.

    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production 64-bit

    With partitioning, OLAP, Data Mining and Real Application Testing options

    ORA-31626: there is no job

    ORA-31633: could not create the main table 'USER_IN_PROD. SYS_IMPORT_FULL_05 ".

    ORA-06512: at "SYS." DBMS_SYS_ERROR', line 95

    ORA-06512: at "SYS." "KUPV$ FT", line 871

    ORA-01658: cannot create as INITIAL segment in tablespace DEV_TBLSPACE

    When I use remap_tablespace to change the storage space, it must use PROD_TBLSPACE now which has enough free space available.

    User user_in_prod also has unlimited(-1) PROD_TABLESPACE quota.

    Currently, the user_in_prod schema is empty and is not any object.

    Kindly help.

    P.S. - dev exported tables are not partitioned tables.

    Error messages are self-explanatory, if you want to read and investigate them, which you do not want apparently.

    Fact: the two expdp and impdp create a table that is used to manage expdp and impdp

    Reality: this table belongs to the user who runs the expdp and imdp

    Reality: It is created in the DEFAULT tablespace users.

    So: what's the obvious conclusion?

    The default tablespace for USER_IN_PROD is DEV_TBLSPACE,

    and there is no space even to create this table small impdp.

    And you don't need to post in two forums to reach this conclusion.

    Just a small industry and a little thought.

    However, the only thing most people here know is how to hit CTRL + C and Ctrl + V.

    Oracle is not on rocket science and people who don't want to make any effort to master it, should stay away from him.

    -------------

    Sybrand Bakker

    Senior Oracle DBA

  • ORA-39060: one or more tables has declined due to conflicts with the main table

    Dear all,

    Currently, I have problems, I try to import the entire schema

    bash - $3.2

    bash - $3.2 impdp dumpfile = PRODDUMP BALL/BALL_BALL@BALL. DMP DIRECTORY = DUMP_DIR FULL = Y LOGFILE = IMP Log REMAP_SCHEMA = BALL: BALL REMAP_TABLESPACE = BALLDATA:BALLDATA

    Import: Release 11.2.0.3.0 - Production the my Sep 30 15:28:08 2013

    Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

    Connected to: Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production

    With partitioning, Automatic Storage Management, Oracle Label Security, OLAP,.

    Options of Data Mining and Real Application Testing

    ORA-39060: one or more tables has declined due to conflicts with the main table

    UDI-31626: operation there was error ORACLE 31626

    ORA-31626: there is no job

    ORA-39086: cannot retrieve information about jobs

    ORA-06512: at "SYS." DBMS_DATAPUMP', line 3326

    ORA-06512: at "SYS." DBMS_DATAPUMP', line 4551

    ORA-06512: at line 1

    Any solution please

    Hello

    You can use the view:DBA_DATAPUMP_JOBS

    then use the table as drop statements

    drop table . purge;

    HTH

  • Cannot run expdp

    Hi all
    I run expdp daily. Today, someone run and during the export run Ctrl + C, then type exit. If, after this, I wanted to run my script for a full export but get errror:

    script is:
    expdp system/pass@SID FULL = y DUMPFILE = < name > %U.dmp DIRECTORY = < my_directory > FILESIZE = 5G LOGFILE = < name > .log JOB_NAME = fullexp

    Error:
    ORA-31626: there is no job
    ORA-31633: cannot create the master table "of the SYSTEM. FULLEXP ".
    ORA-06512: at "SYS." DBMS_SYS_ERROR', line 95
    ORA-06512: at "SYS." "KUPV$ FT", line 871
    ORA-00955: name is already used by an existing object

    What could I be? I checked the work of expdp and nothing found:
    Select * from dba_datapump_jobs;
    STATE is not running.

    ps - ef | Greep expdp me have PID, then I run the command kill - 9 PID. But still cannot run expdp. What's wrong? could you help me, please?

    Published by: rustam_tj on February 8, 2011 12:58

    I checked the work of expdp and nothing found:

    Nothing? Find an existing job currently "not working". Assuming that there are no other jobs in the system of failed job, follow MOS/metalink note

    How to cleaning DataPump orphan jobs in DBA_DATAPUMP_JOBS? [336014.1 ID]

    Werner

  • ERROR "ora-01422" during insertion in the table?

    Hello

    I have created the dynamic action of PL/SQL to insert data but founded by page_item

    
    
     declare 
    x_found_pages number;
    x_auth_id number;
    x_user_id number;
     begin
     x_user_id := :P41_USR_ID; -- this is my page_item _____ successful run When change it to number value .. !
    
    
    
    
          select count(V_APP_PAGES.PAGE_ID) into x_found_pages
          from V_AUTH_DTL V_AUTH_DTL,V_APP_PAGES V_APP_PAGES 
          where V_AUTH_DTL.PAGE_ID!=V_APP_PAGES.PAGE_ID
          and  V_AUTH_DTL.USR_ID = x_user_id;
       
          select T_AUTH.ID into x_auth_id 
          from T_AUTH_DTL T_AUTH_DTL,T_AUTH T_AUTH 
          where T_AUTH_DTL.AUTH_ID=T_AUTH.ID
          and T_AUTH.USR_ID = x_user_id;
    
    
    -- Checking...? 
      if x_found_pages > 0 then
    
            for i in (select V_APP_PAGES.PAGE_ID
               from V_AUTH_DTL V_AUTH_DTL,V_APP_PAGES V_APP_PAGES 
               where V_AUTH_DTL.PAGE_ID!=V_APP_PAGES.PAGE_ID
               and  V_AUTH_DTL.USR_ID = x_user_id)
        
      loop
      insert into T_AUTH_DTL (AUTH_ID,PAGE_ID) values (x_auth_id,i.PAGE_ID);
      end loop;
    
        end if;
    
     end;
    
    
    
    

    Please help me to avoid the ERROR "ora-01422" when running code in the dynamic action...

    Thank you...

    AMR Abdeen wrote:

    I have created the dynamic action of PL/SQL to insert data but founded by page_item

    1. declare
    2. number of x_found_pages;
    3. number of x_auth_id;
    4. number of x_user_id;
    5. Start
    6. x_user_id: =: P41_USR_ID; -It is my page_item _ successfully performed when change to value the number...!
    7. SELECT count (V_APP_PAGES. Page_id) in x_found_pages
    8. of V_AUTH_DTL V_AUTH_DTL, V_APP_PAGES V_APP_PAGES
    9. where V_AUTH_DTL. PAGE_ID! = V_APP_PAGES. PAGE_ID
    10. and V_AUTH_DTL. USR_ID = x_user_id;
    11. Select T_AUTH.ID from x_auth_id
    12. of T_AUTH_DTL T_AUTH_DTL, T_AUTH T_AUTH
    13. where T_AUTH_DTL. AUTH_ID = T_AUTH.ID
    14. and T_AUTH. USR_ID = x_user_id;
    15. -Checking...?
    16. If x_found_pages > 0 then
    17. I'm in (select V_APP_PAGES. PAGE_ID
    18. of V_AUTH_DTL V_AUTH_DTL, V_APP_PAGES V_APP_PAGES
    19. where V_AUTH_DTL. PAGE_ID! = V_APP_PAGES. PAGE_ID
    20. and V_AUTH_DTL. USR_ID = x_user_id)
    21. loop
    22. insert into T_AUTH_DTL (AUTH_ID, PAGE_ID) values (x_auth_id, i.PAGE_ID);
    23. end loop;
    24. end if;
    25. end;

    Please help me to avoid the ERROR "ora-01422" when running code in the dynamic action...

    The error is explicit:

    ORA-01422: exact fetch returns more than number of lines

    Cause: The exact extraction specified number is less than the rows returned.

    Action: Rewrite the query or change the number of rows requested

    This would imply the query in line 16 as County dissociated in the previous one will always return only one row.

    Run

    select T_AUTH.ID into x_auth_id
    from T_AUTH_DTL T_AUTH_DTL,T_AUTH T_AUTH
    where T_AUTH_DTL.AUTH_ID=T_AUTH.ID
    and T_AUTH.USR_ID = :x_user_id
    

    in the workshop of SQL by using the P41_USR_ID value in the variable link to find out how many rows it returns.

    It is likely that the entire block can be replaced by a single INSERT statement. If you provide instructions CREATE TABLE, INSERT statements to create sample data and a clear definition of the requirements that we try to do.

    What is the point of the inclusion of tables aliases that are exactly the same as the names of the tables?

  • Error "ORA-04065:...» "APPS. AME_UTIL' "when submiting self-service application.

    Hello

    So that the introduction of any request for self-service, the system gives this error and notification is sent to sysadmin with this error:

    =========================================================
    Error page
    Details of the exception.
    oracle.apps.fnd.framework.OAException: java.sql.SQLException: ORA-04068: current state of packets rejected
    ORA-04065: not run, altered, or removed the stored procedure 'APPS. AME_UTIL ".
    ORA-06508: PL/SQL: called program unit is not found: 'APPS. AME_UTIL ".
    ORA-06512: at the 'APPS '. AME_DYNAMIC_APPROVAL_PKG', line 509
    ORA-04065: not run, altered, or removed the stored procedure 'APPS. AME_UTIL ".
    ORA-06508: PL/SQL: called program unit is not found: 'APPS. AME_UTIL ".
    ORA-06512: at line 1

    at oracle.apps.fnd.framework.OAException.wrapperInvocationTargetException(OAException.java:996)
    at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:211)
    at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:133)
    at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:797)
    at oracle.apps.ame.dynamicapprovals.webui.ApprovalsCO.processRequest(ApprovalsCO.java:91)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:600)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:252)
    at oracle.apps.fnd.framework.webui.beans.layout.OAHeaderBean.processRequest(OAHeaderBean.java:391)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:968)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:935)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:659)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:252)
    at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:968)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:935)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:659)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:252)
    at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1182)
    at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:968)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:935)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:659)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:252)
    at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:968)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:935)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:659)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:252)
    at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
    at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2607)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1940)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:543)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:431)
    in OA. jspService(_OA.java:212)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259)
    in com.evermind.server.http.ServletRequestDispatcher.access$ 100 (ServletRequestDispatcher.java:51)
    to com.evermind.server.http.ServletRequestDispatcher$ 2.oc4jRun(ServletRequestDispatcher.java:193)
    at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:284)
    at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
    at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:395)
    in OA. jspService(_OA.java:221)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
    at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
    to oracle.oc4j.network.ServerSocketReadHandler$ SafeRunnable.run (ServerSocketReadHandler.java:260)
    to com.evermind.util.ReleasableResourcePooledExecutor$ MyWorker.run (ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:619)
    # # 0 in detail
    java.sql.SQLException: ORA-04068: current state of packets rejected
    ORA-04065: not run, altered, or removed the stored procedure 'APPS. AME_UTIL ".
    ORA-06508: PL/SQL: called program unit is not found: 'APPS. AME_UTIL ".
    ORA-06512: at the 'APPS '. AME_DYNAMIC_APPROVAL_PKG', line 509
    ORA-04065: not run, altered, or removed the stored procedure 'APPS. AME_UTIL ".
    ORA-06508: PL/SQL: called program unit is not found: 'APPS. AME_UTIL ".
    ORA-06512: at line 1

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:439)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:395)
    at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:802)
    at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:436)
    at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:186)
    at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:521)
    at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:202)
    at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:1005)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1307)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3449)
    at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3550)
    at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4710)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1374)
    at oracle.apps.ame.dynamicapprovals.server.ApprovalsAMImpl.getApprovers(ApprovalsAMImpl.java:573)
    at oracle.apps.ame.dynamicapprovals.server.ApprovalsAMImpl.queryApprovers(ApprovalsAMImpl.java:739)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:190)
    at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:133)
    at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:797)
    at oracle.apps.ame.dynamicapprovals.webui.ApprovalsCO.processRequest(ApprovalsCO.java:91)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:600)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:252)
    at oracle.apps.fnd.framework.webui.beans.layout.OAHeaderBean.processRequest(OAHeaderBean.java:391)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:968)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:935)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:659)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:252)
    at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:968)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:935)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:659)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:252)
    at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1182)
    at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:968)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:935)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:659)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:252)
    at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:968)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:935)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:659)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:252)
    at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
    at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2607)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1940)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:543)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:431)
    in OA. jspService(_OA.java:212)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259)
    in com.evermind.server.http.ServletRequestDispatcher.access$ 100 (ServletRequestDispatcher.java:51)
    to com.evermind.server.http.ServletRequestDispatcher$ 2.oc4jRun(ServletRequestDispatcher.java:193)
    at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:284)
    at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
    at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:395)
    in OA. jspService(_OA.java:221)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
    at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
    to oracle.oc4j.network.ServerSocketReadHandler$ SafeRunnable.run (ServerSocketReadHandler.java:260)
    to com.evermind.util.ReleasableResourcePooledExecutor$ MyWorker.run (ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:619)
    java.sql.SQLException: ORA-04068: current state of packets rejected
    ORA-04065: not run, altered, or removed the stored procedure 'APPS. AME_UTIL ".
    ORA-06508: PL/SQL: called program unit is not found: 'APPS. AME_UTIL ".
    ORA-06512: at the 'APPS '. AME_DYNAMIC_APPROVAL_PKG', line 509
    ORA-04065: not run, altered, or removed the stored procedure 'APPS. AME_UTIL ".
    ORA-06508: PL/SQL: called program unit is not found: 'APPS. AME_UTIL ".
    ORA-06512: at line 1

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:439)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:395)
    at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:802)
    at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:436)
    at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:186)
    at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:521)
    at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:202)
    at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:1005)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1307)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3449)
    at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3550)
    at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4710)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1374)
    at oracle.apps.ame.dynamicapprovals.server.ApprovalsAMImpl.getApprovers(ApprovalsAMImpl.java:573)
    at oracle.apps.ame.dynamicapprovals.server.ApprovalsAMImpl.queryApprovers(ApprovalsAMImpl.java:739)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:190)
    at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:133)
    at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:797)
    at oracle.apps.ame.dynamicapprovals.webui.ApprovalsCO.processRequest(ApprovalsCO.java:91)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:600)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:252)
    at oracle.apps.fnd.framework.webui.beans.layout.OAHeaderBean.processRequest(OAHeaderBean.java:391)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:968)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:935)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:659)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:252)
    at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:968)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:935)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:659)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:252)
    at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1182)
    at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:968)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:935)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:659)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:252)
    at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:968)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:935)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:659)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:252)
    at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
    at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2607)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1940)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:543)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:431)
    in OA. jspService(_OA.java:212)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259)
    in com.evermind.server.http.ServletRequestDispatcher.access$ 100 (ServletRequestDispatcher.java:51)
    to com.evermind.server.http.ServletRequestDispatcher$ 2.oc4jRun(ServletRequestDispatcher.java:193)
    at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:284)
    at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
    at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:395)
    in OA. jspService(_OA.java:221)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
    at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
    to oracle.oc4j.network.ServerSocketReadHandler$ SafeRunnable.run (ServerSocketReadHandler.java:260)
    to com.evermind.util.ReleasableResourcePooledExecutor$ MyWorker.run (ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:619)
    =====================================================

    1 behavior happens to every free service (standard and custom) request.
    2. Since our configuration of SOUL self-service application use in its trust hierarchy, we test approval groups using direct transaction test case by "The responsibility of the analyst approval management system" and providing the current Transaction ID, the test result was valid and we could retrieve the string for the necessary approvals.
    3. after getting this error the transaction stored in the hr_API_transactions table status 'W' 'works under process ".
    4. State of the AME_UTIL and AME_DYNAMIC_APPROVAL_PKG packages is valid.

    Thank you
    Mohammed.

    HI Mohammed,.

    906610 wrote:
    A big thank you "AppsMasti" and Hussein. Problem is solved by implementing the fix of note ID 1163757.1

    Thank you
    Mohammed.

    Thanks for the update

    ;) AppsMAsti ;)
    Sharing is caring

  • ORA-00933 with an update

    Hello world

    I get an error ORA-00933 when running this code:
    UPDATE type_composant 
    set  nom='RE', 
    libelle='Réglementaire', 
    process_export='YIYZD', 
    lien='0', 
    lien_technique='0', 
    lien_reglementaire='1', 
    lien_squelette='0', 
    lien_demande='0', 
    lien_pj='0', 
    id_type_comp_rattach=null, 
    id_type_comp_grp=null, 
    imp_comp=0, 
    imp_lien=0, 
    is_spec=1, 
    imp_sque=0, 
    spec_table='reglementaire', 
    spec_req='SELECT A.CDREGL AS CDREGL, 
    A.CDSTCO AS REPERTOIRE, 
    C.LILONG AS LIB_REP, 
    A.CDCODE AS CODE, 
    B.LIBLON AS LIB_CODE 
    FROM HR.ZD00 A, 
    HR.ZD01 B, 
    HR.DI31 C 
    WHERE A.NUDOSS = B.NUDOSS 
    AND A.CDSTCO = C.VACDST 
    AND C.CDLANG = 'F' 
    AND B.CDLANG = 'F' 
    AND CDSTCO  IN ('DS9','UPA','WS0','UGQ','UHU','DSJ','WF0','DRX','G01','DS3',
    'GCP','UAA','G02','G00','DRH','DRB','WAA','DRE','WR2','DRC','DRJ','GPR','DRM',
    'WA0','GCO','UIG','UIQ','DRF','WG2','XXX','UCB')', 
    comp_web='0' 
    where id_type_comp='36';
    And here is the error I got:
    AND C.CDLANG = 'F'
                    *
    ERROR at line 28:
    ORA-00933: SQL command not properly ended
    I don't know if it's from the SELECTION, and I think that the syntax is good.

    Any help would be nice!

    Andalusians

    Published by: Guich may 11, 2011 11:04

    Published by: Guich may 11, 2011 11:04

    And with tabs, it would be more readable:

    UPDATE type_composant
    set  nom='RE',
         libelle='Réglementaire',
         process_export='YIYZD',
         lien='0',
         lien_technique='0',
         lien_reglementaire='1',
         lien_squelette='0',
         lien_demande='0',
         lien_pj='0',
         id_type_comp_rattach=null,
         id_type_comp_grp=null,
         imp_comp=0,
         imp_lien=0,
         is_spec=1,
         imp_sque=0,
         spec_table='reglementaire',
         spec_req='SELECT A.CDREGL AS CDREGL,
                          A.CDSTCO AS REPERTOIRE,
                          C.LILONG AS LIB_REP,
                          A.CDCODE AS CODE,
                          B.LIBLON AS LIB_CODE
                   FROM HR.ZD00 A,
                          HR.ZD01 B,
                          HR.DI31 C
                   WHERE A.NUDOSS = B.NUDOSS
                   AND A.CDSTCO = C.VACDST
                   AND C.CDLANG = 'F'
                   AND B.CDLANG = 'F'
                   AND CDSTCO  IN ('DS9','UPA','WS0','UGQ','UHU','DSJ','WF0','DRX','G01','DS3',
                                   'GCP','UAA','G02','G00','DRH','DRB','WAA','DRE','WR2','DRC','DRJ','GPR','DRM',
                                   'WA0','GCO','UIG','UIQ','DRF','WG2','XXX','UCB')',
         comp_web='0'
    where id_type_comp='36';
    

    According to this, you use (') quotes by quotation marks, you must use two to make it work:

    UPDATE type_composant
    set  nom='RE',
         libelle='Réglementaire',
         process_export='YIYZD',
         lien='0',
         lien_technique='0',
         lien_reglementaire='1',
         lien_squelette='0',
         lien_demande='0',
         lien_pj='0',
         id_type_comp_rattach=null,
         id_type_comp_grp=null,
         imp_comp=0,
         imp_lien=0,
         is_spec=1,
         imp_sque=0,
         spec_table='reglementaire',
         spec_req='SELECT A.CDREGL AS CDREGL,
                          A.CDSTCO AS REPERTOIRE,
                          C.LILONG AS LIB_REP,
                          A.CDCODE AS CODE,
                          B.LIBLON AS LIB_CODE
                   FROM HR.ZD00 A,
                          HR.ZD01 B,
                          HR.DI31 C
                   WHERE A.NUDOSS = B.NUDOSS
                   AND A.CDSTCO = C.VACDST
                   AND C.CDLANG = ''F''
                   AND B.CDLANG = ''F''
                   AND CDSTCO  IN (''DS9'',''UPA'',''WS0'',''UGQ'',''UHU'',''DSJ'',''WF0'',''DRX'',''G01'',''DS3'',
                                   ''GCP'',''UAA'',''G02'',''G00'',''DRH'',''DRB'',''WAA'',''DRE'',''WR2'',''DRC'',''DRJ'',''GPR'',''DRM'',
                                   ''WA0'',''GCO'',''UIG'',''UIQ'',''DRF'',''WG2'',''XXX'',''UCB'')',
         comp_web='0'
    where id_type_comp='36';
    

    Nicolas.

Maybe you are looking for