LOV query fails, but works in SQL commands

I am trying to create a type with semi-automatic item text field, but the query I fill in the definition of LOV returns an error:

Impossible to analyze the query SQL LOV!

ORA-00942: table or view does not exist

Although when I try the same query in the form of SQL commands, it works without any problem. No idea what I am doing wrong?

The query is as follows, where v_prt_gem_t is a view and prt_gem is a table.

SELECT
      PG.POST_CODE||' '||PT.NAAM
FROM
      V_PRT_GEM_T PT
      INNER JOIN
      PRT_GEM PG
      ON
      PT.NR = PG.NR
WHERE
      LAN_NR = 4

Julijan wrote:

I am trying to create a type with semi-automatic item text field, but the query I fill in the definition of LOV returns an error:

Impossible to analyze the query SQL LOV!

ORA-00942: table or view does not exist

Although when I try the same query in the form of SQL commands, it works without any problem. No idea what I am doing wrong?

The query is as follows, where v_prt_gem_t is a view and prt_gem is a table.

  1. SELECT
  2. PG. POST_CODE | » '|| PT. NAAM
  3. Of
  4. PT V_PRT_GEM_T
  5. JOIN IN-HOUSE
  6. PG PRT_GEM
  7. WE
  8. PT. NR = PG. NR
  9. WHERE
  10. LAN_NR = 4

It is likely that CERTAIN privileges on one or two tables/views used are granted for the scheme of the analysis of the application through a role, not directly to the schema. Role-based privileges will be observed in the workshop of SQL in the latest versions of database, but not for running applications. See (YABAOAE) yet another Blog about Oracle Application Express: Application Express and SQL Analysis for detailed information.

That's why you always have to give the full APEX and the database version numbers when you ask a question: implementations and features change over time. If we know exactly which versions are used so we can determine what behavior is expected, and what bugs exist or have been corrected...

Tags: Database

Similar Questions

  • CF query fails in the CF, but works in SQL Server

    I have the following cfquery which fails in CF and sql in the error code is exactly the same as those listed here and works very well when placed in sqlserver...

    code will work when this section is deleted:

    and t.EmployeeNumber in

    (select std_user_id

    of HED.dbo.EDD_CPR_EMP

    where TERMINATION_DATE is null)

    Why it does not work with above the code and how to make it work?

    my code:

    < html >
    < head >
    < title > retrieve data from database < /title >
    < / head >

    < body >

    <!-Game-> Datasource (s)
    < cfset intellex_datasource = "In Intelex" >

    < CFQUERY NAME = "get_data" datasource = "#intellex_datasource #" >

    Select distinct
    c.CourseTypeName Type,
    Substring (s.WorkGroupName, 1, 2) Dept,
    t.EmployeeNumber Win2k,
    t.FirstNam FirstName,
    t.LastName LastName,
    a.CourseName courses,
    b.NextDate NextDate
    trnTraining a, trnEmployeeTraining b, trnCourseType c, trnEmployeeWorkgroup r, trnWorkgroups s, sysEmployee t
    where b.PriorityId = 'Y '.
    and a.CourseId = b.CourseId
    and a.CourseTypeId = c.CourseTypeId
    and c.CourseTypeName = 'MS '.
    and r.employeeID = b.employeeID
    and r.employeeID = t.employeeID
    and t.EmployeeNumber in
    (select std_user_id
    of HED.dbo.EDD_CPR_EMP
    where TERMINATION_DATE is null)
    and t.deleted is null
    and r.workgroupID = s.workgroupid
    and len (s.WorkGroupName) < = 2
    and b.NextDate > = getdate()
    order of t.LastName, t.EmployeeNumber, a.CourseName
    ;

    < / cfquery >
    < h4 > used data based on criteria of form < / h4 >
    < cfoutput query = "get_data" >

    #Get_data.type #, "Check it", #Get_data.win2k # < br >

    < / cfoutput >

    < / body >
    < / html >

    CF_newtome wrote:

    -Looks like CF is unable to manage a sql to access two different databases?

    CF can do, but I guess that the credentials that you use in the CF data source where is the problem.

    Connect to SQL Server in SQL Server Management Studio by using the same credentials used by the data source and test your query.

    See you soon

    Eddie

  • Server settings fail but work elsewhere

    I tried to get Thunderbird to work on Windows 7 for a few weeks now (not continuous, but I've tried several times during this period.) He said: it could not find the server settings. All parameters to be entered are correct (and checked dozens of times.) The same settings work on the same computer in Windows 8.1 and Mailbird (but I don't) on Windows 7. I checked with my email provider settings and they are correct, not to mention that they match Thunderbird on Windows 8.1 on the same machine.

    I tried to disable the firewall of Windows 7, but that did not help. I also tried a second account with essentially the same settings except the e-mail address and that does not work either. Don't know what else to try. Any ideas?

    Try to set security outbound for authentication and SSL/TLS for inbound and outbound on "Normal password. The reason why your method fails maybe because the usual guarantee for a server out on port 587 is STARTTLS, not SSL/TLS. Of course, the instructions below may be erroneous, in that case try STARTTLS on port 587.

    https://www.Webnames.ca/help/email/content/resources/articles/email/Email_Client_Setup/Thunderbird/Thunderbird_17_IMAP_SSL.htm

  • working in sql of the query, but not so forrms!

    I transferred my column of tblrefstaff to use paymast apprnum

    SQL > update paymast set paymast.apprnum = (select tblrefstaff.apprnum in the tblrefstaff where the tblrefstaff.empno = paymast.empno and rownum = 1);
    5072 lines updated

    Now I ask paymast records

    SQL > select empno paymast where apprnum = '338';

    EMPNO
    ----------------

    2217
    SQL > select apprnum from the paymast where empno = '2217'.

    APPRNUM
    --------------------------------------------------
    338


    Now in shape when I write this in the title of the post REQUEST
    Start
    Select apprnum
    in: paymast.apprnum
    of paymast
    where empno =: paymast.empno;
    exception when no_data_found then null;
    end;
    No data is retrieved in article apprum

    its only retrieved when the table name is that of the previous one like this
    Start
    Select apprnum
    in: paymast.apprnum
    of tblrefstaff
    where empno =: paymast.empno;
    exception when no_data_found then null;
    end;


    2nd CASE: after the transfer of apprnum to paymast all items are now under paymast then I just removed under POST-QERY code and all of the datbase Yes item and column name to APPRNUM but still no use
    It retrieves only records in the use of apprnum
    Select apprnum
    in: paymast.apprnum
    of tblrefstaff
    where empno =: paymast.empno;
    exception when no_data_found then null;
    end;

    How should solve this problem. ?

    Published by: Chase Suhail on November 10, 2009 02:10

    I think you forgot to commit; after you run the stmt update...

    It will not work in SQL, because you wrote the application immediately after the selection of stmt.

    But shapes is in another session, he cannot access the data until you commit the SQL session.

    Concerning
    Dora

    Published by: Dora on November 10, 2009 14:26

  • query works not in the APEX but works in TOAD

    Hello

    I had major problems trying to build a LOV cascading. I narrowed the problem down to SELECT which it depends.

    I have the following:

    SELECT pasv.vendor_name
    pasv.vendor_site_code
    pasv.vendor_id
    pasv.vendor_site_id
    OF po_asl_suppliers_v pasv
    po_asl_documents_v padv
    po_asl_attributes_v paav
    WHERE pasv.owning_organization_id = 26
    AND pasv.item_id = 131089
    AND pasv.asl_id = padv.asl_id
    AND pasv.asl_id = paav.asl_id
    AND padv.document_type = 'COVERAGE '.
    ORDER BY pasv.vendor_name
    pasv.vendor_site_code

    This query works well as a TOAD, but when I run it in APEX "SQL commands" it comes up with the error "ORA-01722: invalid number ' and when I try to generate a report about this no return value (the values are returned when you run the same query in TOAD and SQL Developer)."

    Any advice would be great.

    Thank you
    Chris

    Work around:

    SELECT RPAD (SUBSTR (pasv.vendor_name, 1, 20), 20,' ') | » '|| RPAD (SUBSTR (padv.document_type, 1, 20), 20,' ') | RPAD (SUBSTR (padv.document_num, 1, 10), 20,' ') PROVIDER
    pasv.vendor_id
    OF po_asl_suppliers_v pasv
    po_asl_documents_v padv
    po_asl_attributes_v paav
    WHERE pasv.owning_organization_id = 26
    AND pasv.item_id = 131089
    AND pasv.asl_id = padv.asl_id
    AND pasv.asl_id = paav.asl_id
    ORDER BY pasv.vendor_name
    pasv.vendor_site_code

    There seems to be a problem with the 'COVER' in the first SQL. Even if it is that a field of VARCHAR2 in the APEX database doesn't. It works somehow the other tool we use.

  • Failed to parse the SQL query by user

    Hi all

    in my application, I have a piece of text with a button "submit". In this article, I type a name and a report after the element region show me the result (s). This works for all my users (> 2000) perfectly, but that users become an error in the area of the report:

    Failed to parse the SQL query:
    ORA-01403: no data found

    We try this with the same searchstring on the same computer/browser. If I connected the result is ok, if the logged on user, the error message appears. If I try this on the user's computer with me connected, ok result. If the user try this on another pc, error results.

    I have a production and a developer workspace. In the developer workspace the user can try this perfectly without errors. That in the space of productive work, clear the error.

    The SQL-Select in the ist verry simple reprirt:

    Select id
    name
    raum
    table
    where instr (upper (name), upper (:P60_SEARCH)) > 0

    However, all users can use this search box with report perfectly, only this one user has the error. There is no restrictions on this point or a State.

    Can someone help me?

    Hi Carsten,

    I don't think that there is a way to do it.

    Could you please mark the correct and useful answers in this thread? Otherwise I'll never get near Andy ;) :)

    Denes Kubicek
    ------------------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    ------------------------------------------------------------------------------

  • Running a SQL command in my bean class

    Hi all

    I use JDeveloper 12.1.2.0.0.

    I have an interest in running a query in my method of bean. I did some research and I always have a code but it does not find the method that the method requires so I tried to add the query in my AppModule and I added my method as a data control, but how do I access and change my method of bean?

    The page with the code that does not find the method: http://jjzheng.blogspot.pt/2010/11/run-single-query-in-application-module.html

    Gives me: 'Method 'getDBTransaction' not found'

    The page that creates my method as a data control: http://amit-adf-work.blogspot.pt/2013/09/how-to-execute-sql-using-adf-application.html

    This is the right way? How can I run a SQL command in my bean class?

    Kind regards

    Frederico.

    This is the code I am using

    GET A METHOD OF PAGEDEF AND RUN

    get the link containe

    BindingContainer links is BindingContext.getCurrent () .getCurrentBindingsEntry ();.

    get an Action or a MethodAction

    Method of the class OperationBinding = bindings.getOperationBinding ("YourMethodAction");

    If there are parameters to define...

    Map paramsMap = method.getParamsMap ();

    paramsMap.put ("param", "value");

    execute the method

    Method.Execute ();

    List errors = method.getErrors ();

    If (! errors.isEmpty ())

    {

    handle errors errors here is a list of exceptions!

    }

    no error return to normal work

    Timo

  • Can someone tell me what is the problem with this LOV query please?

    This query works very well...

    Select filter_name display_value, FILTER_ID return_value
    from OTMGUI_FILTER where username = 'ADAM '.

    But this one...

    Select filter_name display_value, FILTER_ID return_value
    from OTMGUI_FILTER where username = apex_application.g_user

    Gives the following error.

    1 error has occurred

    * LOV query is not valid, a display and a return value is needed, the column names must be different. If your query contains a query online, the first CLAUSE in the SQL statement must not belong to the query online.

    Thank you very much

    -Adam vonNieda

    Adam:

    Define the LOV query as follows

    declare
    l_val varchar2(100) := nvl(apex_application.g_user,'ADAM');
    begin
    return  'select enAME display_value, empno return_value
    from emp where deptno = '''|| l_val || ''''
    end;
    

    CITY

  • I have a SSIS package that uses ODBC to connect to a progress database that does not work in SQL Agent

    I have a SSIS package that uses ODBC to connect to a Progress database.  It works fine in Visual Studio and it works very well in a batch file calling DTEXEC from the Windows Task Scheduler, but it does not work in the work of the SQL Agent.  It says that it cannot find the driver information.

    Hi Curt_DBA,

    The question you posted would be better suited in the MSDN Forums. I would recommend posting your query in the MSDN Forums (SQL Server Integration Services).

    MSDN Forum (SQL Server Integration Services)

    http://social.msdn.Microsoft.com/forums/en-SG/sqlintegrationservices/threads

    I hope this helps.

  • Delete duplicate of PL/SQL command result values

    Hi all

    I am working on SQL Developer 4.1 and using sub PL/SQL command to retrieve the unique values of Batch_No with matching data:

    Row_ SELECT TO_NUMBER (ROW_NUMBER () (IN Batch_No ORDER)),

    Batch_No,

    Record_Source,

    Create_Date,

    Submitter

    Of

    (SELECT DISTINCT Batch_No,

    RecSource Record_Source,

    Get_Date_From_Remedy (Create_Date) Create_Date,

    Submitter

    OF VOD_SEET_Invoices

    WHERE (Batch_No <>"NA")

    ) batch

    UNION

    Row_ SELECT TO_NUMBER (ROW_NUMBER () (IN Batch_No ORDER)),

    Batch_No,

    Record_Source,

    Create_Date,

    Submitter

    Of

    (SELECT DISTINCT Batch_No,

    'Penalties' Record_Source,

    Get_Date_From_Remedy (Create_Date) Create_Date,

    Submitter

    OF VOD_SEET_Penalties

    WHERE (Batch_No <>"NA")

    ) batch

    The output of the above query has many duplicates in Batch_No, no idea how to rewrite the above query so that only unique values of Batch_No to the associated data are retrieved without duplicates?

    Thanks in advance,

    Kind regards

    Mona Fathy

    For example...

    If your logic is that "Penalties" must have priority over the other record (assuming another in this scenario) of the first query, if there is a record of penalties, then by doing the following:

    Select row_number() (order Batch_No) Row_

    Batch_No

    Record_Source

    Create_Date

    Author

    de)

    Select row_number() over (partition by order of batch_no to decode (record_source, 'Penalties', 0, 1)): the nurse

    batch_no

    record_source

    create_date

    author

    de)

    Select Batch_No

    Record_Source

    Create_Date

    Author

    to select (separate Batch_No

    RecSource Record_Source

    Get_Date_From_Remedy (Create_Date) Create_Date

    Author

    of VOD_SEET_Invoices

    where (Batch_No <> 'NA')) batch

    Union

    Select Batch_No

    Record_Source

    Create_Date

    Author

    to select (separate Batch_No

    "Penalties" Record_Source

    Get_Date_From_Remedy (Create_Date) Create_Date

    Author

    of VOD_SEET_Penalties

    where (Batch_No <> 'NA')) batch

    )

    )

    where rn = 1

    determines a row_number in each batch_no, ordering sanctions first duplicate records, and other records.

    Then the outer query takes just the first records of each batch_no by applying the "where rn = 1" clause.

    The outer query then applies his own row_number compared to results sorted by batch_no.

  • GET with multiple PL/SQL commands

    Hello!

    I m try to load a file into sqlplus using the GET command. I can't use or BEGIN (if you want to know why: set escape)

    The problem is that this file has more than one command, like this:

    drop table teste_cardia;
    
    create table teste_cardia (
        id number,
        nome varchar2(255)
     );
    

    When I run the loaded file (with /). I got this error:

    C:\Cardia>sqlplus /NOLOG @aaaa.sql
    SQL*Plus: Release 11.1.0.7.0 - Production on Qua Fev 4 10:42:16 2015
    Copyright (c) 1982, 2008, Oracle.  All rights reserved.
    
    SQL> CONNECT SATIR/XPTO11TB@IDEV10G
    Conectado.
    SQL> SET SQLPROMPT "SQL>"
    SQL>SET SERVEROUTPUT OFF
    SQL>SET LINESIZE 255
    SQL>SET SCAN OFF
    SQL>SET DEFINE OFF
    SQL>SET SERVEROUTPUT ON
    SQL>SET SQLBLANKLINES ON
    SQL>SET VERIFY OFF
    SQL>SET ESCAPE ON
    SQL>GET teste4.sql
      1  drop table teste_cardia;
      2  create table teste_cardia (
      3      id number,
      4      nome varchar2(255)
      5*  );
      6  /
    drop table teste_cardia;
                           *
    ERRO na linha 1:
    ORA-00911: invalid character
    

    If I run a file with a single command without «;» This works.

    I tried to replace ';' by ' / '. Didn t work. Tried using sqlterminador, cmdsep and none of it worked.

    It s possible to have multiple commands in a file and run with GET and /?

    Hi Mario,.

    In my view, that the GET command has no for this.

    The documentation says https://docs.oracle.com/cd/B10501_01/server.920/a90842/ch13.htm

    GET loads a host operating system file in the SQL buffer.

    And in the SQL buffer, you can execute only one statement at a time.

    You can not do this

    < verdi_takt:op56 > select user from dual; select sysdate from dual;
    select user from dual; select sysdate from dual
                         *
    ERROR at line 1:
    ORA-00911: invalid character
    
    < verdi_takt:op56 > select user from dual
      2  select sysdate from dual;
    select sysdate from dual
    *
    ERROR at line 2:
    ORA-00933: SQL command not properly ended
    

    So your file with the command of 2 or more must fail.

    concerning
    Kay

  • Apex - dbms_job.submit (Oracle) in SQL commands

    I have connected to oracle apex (version 4.2.5.00.08) at the URL https://apex.oracle.com/pls/apex/f?p=4550:1:0:

    I am trying to execute the procedure of dbms_job.submit through SQL Workshop-> SQL commands)

    The code is as shown below

    *************************************************************************************************************************

    declare

    -jobno number;

    jobno varchar2 (20);

    Start

    dbms_job. Submit (work = >: jobno,)

    This = > ' START

    emp_pack.remove_dept (16);

    END;',

    next_date = > trunc (sysdate + 1).

    interval = > 'trunc(sysdate+1) '.

    );

    -dbms_output.put_line ('Job No. :'||: jobno);

    commit;

    dbms_output.put_line ('Job No. :'|| is jobno);

    end;

    *************************************************************************************************************************

    The procedure of package I'm talking in the parameter 'WHAT' is defined as shown below

    create or replace package emp_pack is

    process remove_emp()emp_id in NUMBER)

    process remove_dept()dept_id in NUMBER)

    end emp_pack ;


    create or replace package body emp_pack

    is

    process remove_emp()emp_id in NUMBER( )

    is

    begin

    delete from EMP

      where EMP .EmpNo = emp_id ;

    end remove_emp;

    process remove_dept()dept_id in NUMBER( )

    is

    begin

    delete from dept

      where Dept .DeptNo = dept_id ;

    end remove_dept

    end emp_pack ;

    *************************************************************************************************************************

    while trying to run the piece of code (I'm passing avlaue from 35 to the jobno to the RUN time parameter) is the error I get

    ORA-06502: PL/SQL: digital or value error: character string buffer too small


    I tried to know everything, I have, but have not been able to determine what is causing the error. Help, please

    Super weird... I just ran the following on apex.oracle.com and got "1 row (s) deleted', not 'treated statement."

    declare
      l_job int;
    begin
      /* dbms_job.submit( l_job, 'begin delete from emp; end;' ); */
      rollback;
    end;
    
  • Dynamic region of the body of the function return query did not work

    APEX 4.1

    Oracle 11g

    I have a report of dynamic fields according to the value of the different type of zone set element is body of pl/sql function, return query, see the source code of the region below.

    declare

    v_sql varchar2 (2000);

    Start

    IF: P2_BY = 'MONTH' THEN

    v_sql: = 'SELECT ' | : P2_TYPE | ', SUM (JAN) JAN, SUM (FEB) FEB, SUM (MAR) MAR, SUM (APR) APR, SUM (MAY) MAY, SUM (JUN) JUN, SUM (JUL) JUL, SUM (AUG) AUG, SUM (SEP) SEP, SUM (OCT) OCT, SUM (NOV) NOV, SUM (DEC) DEC OF THE RPT_HOTEL GROUP BY ' | : P2_TYPE;

    ON THE OTHER

    v_sql: = 'SELECT ' | : P2_TYPE | ', SUM (Y2011) 2011, SUM (Y2012) Y2012, SUM (Y2013) Y2013, SUM (Y2014) 2014 RPT_HOTEL GROUP BY ' | : P2_TYPE;

    Return v_sql;

    end;

    But "Missing expression" error when Save source in the region.

    I checked the sql statement is valid in the sql command, and: P2_TYPE get the correct value.

    If the generic column name 'use' then get the correct report, but the column name is random.

    Please help solve.

    Thank you so mcuh

    Hi fac586,

    I couldn't thank you more. Of course, read you my code and found that the design of table is not reasonable. in fact I just design for the demonstration of the prototype, so do not consider architecture.

    I mean, it is that the problem has disappeared when I create a new page like this one, don't know how it happened. in any case what I need has been achieved, thank you very much for what you have done.

    Here I paste my code for reference, that someone might need.

    declare
    v_sql varchar2(2000);
    v_time varchar2(50);
    v_for varchar2(30);
    begin
    IF :P4_TIME='MONTH' THEN
    v_time := 'to_char(lodging_date,''MM'') MONTH';
    v_for := 'to_char(lodging_date,''MM'')';
    ELSE
    v_time := 'to_char(lodging_date,''YYYY'') YEAR';
    v_for := 'to_char(lodging_date,''YYYY'')';
    END IF;
    IF :P4_MEASURE='NIGHTS' THEN
    v_sql := 'SELECT * from (SELECT ' || :P4_BY || ',VENDOR_NAME,' || v_time
    || ',count(entry_legacy_key) ROOM_NIGHTS
    FROM HOTEL_EXPENSE GROUP BY ' || :P4_BY || ',VENDOR_NAME,' || v_for || ')
    PIVOT (SUM(ROOM_NIGHTS) FOR ';
    ELSE
    v_sql := 'SELECT * from (SELECT ' || :P4_BY || ',VENDOR_NAME,' || v_time
    || ',SUM(APPROVED_AMOUNT) SPENDING
    FROM HOTEL_EXPENSE GROUP BY ' || :P4_BY || ',VENDOR_NAME,' || v_for || ')
    PIVOT (SUM(SPENDING) FOR ';
    END IF;
    IF :P4_TIME='MONTH' THEN
    v_sql := v_sql || ' MONTH IN (''01'',''02'',''03'',''04'',''05'',''06'',''07'',''08'',''09'',''10'',''11'',''12''))';
    ELSE
    v_sql := v_sql || ' YEAR IN (''2011'',''2012'',''2013'',''2014''))';
    END IF;
    return v_sql;
    end;
    

    and checked

    'Use generic column names (analysis of query during execution only)'

    column of the report used PL/QL name

    declare
    v_sql varchar2(2000);
    begin
    v_sql :=  :P4_BY || ':VENDOR_NAME';
    IF :P4_TIME='MONTH' THEN
    v_sql := v_sql || ' :Jan:Feb:Mar:Apr:May:Jun:Jul:Aug:Sep:Oct:Nov:Dec';
    ELSE
    v_sql := v_sql || ':2011:2012:2013:2014';
    END IF;
    return v_sql;
    end;
    
  • ETG assess "in order to" in the APEX SQL command window?

    I need to recreate my table in order to change the order of the columns. When I use the SQL command window and run the SQL, it runs successfully, creates the table, but is not rearrange the columns.

    This is expected behavior?

    user648567 wrote:

    Please update your forum profile with a real handle instead of 'user648567 '.

    I need to recreate my table in order to change the order of the columns. When I use the SQL command window and run the SQL, it runs successfully, creates the table, but is not rearrange the columns.

    What do you mean by "in order to"?

    A clause using "ORDER BY" in a DEC (in SUMMIT or other anywhare) has no effect on the order of the columns , which is determined by the order in which the columns appear in the projection. It will affect the order in which the rows are returned from this query, and it will not determine the order in which lines will be returned by querying the new table in the future.

    To change the order of columns, the columns in the SELECT of the ETG clause must be in a different order than the original table,

  • Failed: File worker afcmgr.odf 1 product fnd as APPLSYS username

    Hello

    During patching 9535311 he failed with error

    Report: file worker afcmgr.odf 1 product fnd as username APPLSYS.

    Time is: Thursday, July 19, 2012 17:09:53
    (Number 2 for an adjournment for this work)
    Assigned: file afcmgr.odf worker 1 product fnd as username APPLSYS.

    Time is: Thursday, July 19, 2012 17:09:53

    Failed: File worker afcmgr.odf 1 product fnd as username APPLSYS.



    When I checked the worker newspaper


    The FND_CONCURRENT_PROCESSES_S sequence in the database is defined as:
    MINVALUE = 1 MAXVALUE = 20000000 INCREMENT BY = 1
    CYCLE = NO ORDER NO = NO = 0 CACHE

    who should be defined as:
    MINVALUE = 1 MAXVALUE = INCREMENT BY 1 = 9999999
    CYCLE = NO ORDER NO = NO CACHE = 1000
    (Note: the value of the cache for the FND_CONCURRENT_PROCESSES_S sequence is 20 in the ODF file) The value 1000 is used instead because it provides better performance during the selection of the sequence).

    Change the sequence with:


    The statement below is the start time: Thursday, July 19, 2012 17:09:53

    ALTER SEQUENCE APPLSYS. FND_CONCURRENT_PROCESSES_S MAXVALUE 9999999 CACHE
    1000

    AD worker error:
    The following ORACLE error:

    ORA-04009: MAXVALUE can be made either less than the current value


    occurred while executing the SQL statement:

    ALTER SEQUENCE APPLSYS. FND_CONCURRENT_PROCESSES_S MAXVALUE 9999999 CACHE
    1000

    AD worker error:
    Impossible to compare or correct sequence
    due to the above error

    Please let me know how to solve.

    876943 wrote:
    I did it as always the worker is failed with the same error

    who should be defined as:
    MINVALUE = 1 MAXVALUE = INCREMENT BY 1 = 9999999
    CYCLE = NO ORDER NO = NO CACHE = 1000
    (Note: the value of the cache for the FND_CONCURRENT_PROCESSES_S sequence is 20 in the ODF file) The value 1000 is used instead because it provides better performance during the selection of the sequence).

    Change the sequence with:

    The statement below is the start time: Friday 20 July 2012 21:18:17

    ALTER SEQUENCE APPLSYS. FND_CONCURRENT_PROCESSES_S MAXVALUE 9999999

    AD worker error:
    The following ORACLE error:

    ORA-04009: MAXVALUE can be made either less than the current value

    occurred while executing the SQL statement:

    ALTER SEQUENCE APPLSYS. FND_CONCURRENT_PROCESSES_S MAXVALUE 9999999

    AD worker error:
    Impossible to compare or correct sequence
    due to the above error

    You must edit the file afcmgr.odf with the correct value of max or ignore the worker and issue the command manually alter.

    Thank you
    Hussein

Maybe you are looking for