Error ORA-20001 when Creating an Application Express Workspcce

I have a 11.1.0.6.0 Enterprise Edition database running on a Fedora 10 box that was created using dbca. At the time, I did not select Oracle Application Express for installation. However, I can configure APEX and start it with URL http://<host>:8080/apex/apex_admin and log in as ADMIN. Looks like I'm ready to go... Database accounts APEX_PUBLIC_USER, FLOWS_030000 and FLOWS_FILES existed at the time I configured APEX.
Following the 2 Day + Application Express Developer's Guide, I get error "ORA-20001: Unable to create user. ORA-01935: missing user or role name" when I attempt to create a workspace for the demo application. In an attempt to resolve this, I've run dbca again to install Application Express in the database, and I then get "ORA-04063: package body "FLOWS_030000.WWV_FLOWS" has errors: ORA-06508: PL/SQL: could not find program unit being called: "FLOWS_03000.WWV_FLOW" ORA-06512: at line 2". DBA_OBJECTS reports table WWV_FLOWS owned by this user, but no package body of the same name.
Can anyone advise what I need to do to resolve the ORA-20001 error when I attempt to create a APEX workspace, or resolve the ORA-04063 error when I attempt to use dbca to install APEX in the database?
TIA
Jon

..and show me the results, I might know what is wrong.SQL> alter session set current_schema = flows_030100;
Session altered.
SQL> select distinct provisioning_company_id from wwv_flow_companies;
PROVISIONING_COMPANY_ID
0
10
11
9.4232E+14
9.5741E+14
1.7393E+15
(I imported the file to my workspace http://apex.oracle.com/pls/otn.... it loaded succesfully but couldn't login.)
I found a site where the file might have been downloaded from:
[http://www.oracle.com/technology/products/database/application_express/packaged_apps/packaged_apps.html#CUST]

Similar Messages

  • ORA-20001 when creating my first workspace.

    Hi,
    I'm sure this must be an easy one to answer.
    I am trying to create a new workspace in my new install of Application Express 3.1.2.00.02 (Oracle 11g 11.1.0.6.0).
    I get the error:
    ORA-20001: Request 1030503661329735 could not be processed. -20001 ORA-20001: Unable to create user. ORA-01031: insufficient privileges
    Do I need to grant something to my ADMIN user?
    Surely this should have been done as part of the install.
    (I did a quick search and couldn't see the same problem anywhere else)
    Regards
    Michael

    Hi Scott,
    SQL> select privilege from dba_sys_privs where grantee='FLOWS_030100';
    PRIVILEGE
    DROP PUBLIC SYNONYM
    SELECT ANY TABLE
    DROP USER
    UNLIMITED TABLESPACE
    DROP TABLESPACE
    CREATE JOB
    ALTER SYSTEM
    EXECUTE ANY PROCEDURE
    CREATE PUBLIC SYNONYM
    ALTER SESSION
    10 rows selected.
    SQL> Select granted_role from dba_role_privs where grantee='FLOWS_030100';
    GRANTED_ROLE
    RESOURCE
    CONNECT
    SQL>
    I am sure nothing has been revoked.
    Is there a script I have not run?
    Regards
    Michael

  • Ora-20001 when creating a form on table with report (bug?)

    Having some trouble creating a "Form on table with report".
    1) I pick my table
    2) take most of the defaults on the page where you pick the report type (interactive) and the page number (I changed it to 950). next->
    3) Do not use tabs. Next->
    4) Select all columns for the report. THEN (here's the problem) set an optional where clause of system_role_name like 'ODPSPOPUP%'. Next->
    5) choose standard edit link. next->
    6) Specify a page of 951 for the form (leave others defaults). next->
    7) Set the form primary key (defined in table). next->
    8) use existing trigger. next->
    9) choose all columns for the form. next->
    10) Leave actions to insert, update, delete. next->
    11) Get to the summary page and click Finish
    Then I get an error page saying:
    ORA-20001: Unable to create query and update page. ORA-20001: Unable to create query and update page. ORA-00933: SQL command not properly ended
    If I go back to step 4 and erase my where clause the wizard completes successfully.
    Also if I change the report type in step 2 from the default of "Interactive" to "Classic" the wizard completes successfully. However upon running the report I get a query parse error. Looks like the where clause in the report sql is: system_role_name like ''ODPSPOPUP%'' (two single quotes on each side).
    It looks as if you cannot specify a where clause with a quoted string. The wizard is expecting a bind variable.
    Workaround(s):
    1) Don't specify a where clause when report type = Interactive in "create form on table with report" wizard.
    or
    2) Specify a bogus where clause using bind variable syntax such as "system_role_name like :BOGUSVARIABLE". Then edit the report query once the wizard finishes and change the where clause to the constant string you wanted to use in the wizard (e.g. "system_role_name like 'MYSYSTEM%'")
    Apex: 3.2.0.00.27
    Database: Oracle Database 11g Enterprise Edition 11.1.0.7.0 64bit Production (Oracle EL5)

    Andy,
    It's a bug, all right. Thanks for the detailed problem description. We'll fix it when we can.
    Scott

  • Got error ORA-06502 when creating a report page

    Hi,
    I got ORA-06502 error message when trying to create a report page using one particular query (see below). It happened in the 'SQL Query' step. After put query in the text box and click on 'Next' button, the error message read
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    Exactly same query running in sqlplus session against same database and same schema can run thru fine.
    I wonder if anybody can give me a pointer what could be wrong with the query, and how to debug.
    The query is
    WITH o AS
    SELECT a.manager, m.owner
    FROM man_hierarchy_v m,
         SELECT owner manager
         FROM man_hierarchy_v
         WHERE manager_ladder LIKE '%-CROZWAT-%'
         AND olevel =
              (SELECT olevel + 1 FROM man_hierarchy_v WHERE owner = 'CROZWAT')
         ORDER BY owner
    ) a
    WHERE manager_ladder LIKE '%-' || a.manager || '-%'
    SELECT manager,
         code, TO_CHAR(code/total*100, '999.9') code_perc,
         code_symptoms, TO_CHAR(code_symptoms/num_symptoms*100, '999.9') code_sym_perc,
         env, TO_CHAR(env/total*100, '999.9') env_perc,
         env_symptoms, TO_CHAR(env_symptoms/num_symptoms*100, '999.9') env_sym_perc,
         test, TO_CHAR(test/total*100, '999.9') test_perc,
         test_symptoms, TO_CHAR(test_symptoms/num_symptoms*100, '999.9') test_sym_perc,
         tbd, TO_CHAR(tbd/total*100, '999.9') tbd_perc,
         tbd_symptoms, TO_CHAR(tbd_symptoms/num_symptoms*100, '999.9') tbd_sym_perc,
         cnd, TO_CHAR(cnd/total*100, '999.9') cnd_perc,
         cnd_symptoms, TO_CHAR(cnd_symptoms/num_symptoms*100, '999.9') cnd_sym_perc,
         latent, TO_CHAR(latent/total*100, '999.9') latent_perc,
         latent_symptoms, TO_CHAR(latent_symptoms/num_symptoms*100, '999.9') latent_sym_perc,
         behavior, TO_CHAR(behavior/total*100, '999.9') behavior_perc,
         behavior_symptoms, TO_CHAR(behavior_symptoms/num_symptoms*100, '999.9') behavior_sym_perc,
         dep_labels, TO_CHAR(dep_labels/total*100, '999.9') dep_labels_perc,
         dep_labels_symptoms, TO_CHAR(dep_labels_symptoms/num_symptoms*100, '999.9') dep_labels_sym_perc,
         total, num_symptoms
    FROM
    SELECT manager, SUM(code) code, SUM(code_symptoms) code_symptoms,
         SUM(cnd) cnd, SUM(cnd_symptoms) cnd_symptoms,
         SUM(env) env, SUM(env_symptoms) env_symptoms,
         SUM(behavior) behavior, SUM(behavior_symptoms) behavior_symptoms,
         SUM(latent) latent, SUM(latent_symptoms) latent_symptoms,
         SUM(dep_labels) dep_labels, SUM(dep_labels_symptoms) dep_labels_symptoms,
         SUM(test) test, SUM(test_symptoms) test_symptoms,
         SUM(tbd) tbd, SUM(tbd_symptoms) tbd_symptoms,
         COUNT(probid) total,
         SUM(num_symptoms) num_symptoms
    FROM
    SELECT o.manager, p.probid, NVL(num_symptoms, 0) num_symptoms,
         DECODE(type, 'C', 1, 0) code,
         CASE WHEN type = 'C' THEN num_symptoms ELSE 0 END code_symptoms,
         DECODE(type, 'CND', 1, 0) cnd,
         CASE WHEN type = 'CND' THEN num_symptoms ELSE 0 END cnd_symptoms,
         DECODE(type, 'E', 1, 0) env,
         CASE WHEN type = 'E' THEN num_symptoms ELSE 0 END env_symptoms,
         DECODE(type, 'L', 1, 0) behavior,
         CASE WHEN type = 'L' THEN num_symptoms ELSE 0 END behavior_symptoms,
         DECODE(type, 'LATENT', 1, 0) latent,
         CASE WHEN type = 'LATENT' THEN num_symptoms ELSE 0 END latent_symptoms,
         DECODE(type, 'O', 1, 0) dep_labels,
         CASE WHEN type = 'O' THEN num_symptoms ELSE 0 END dep_labels_symptoms,
         DECODE(type, 'T', 1, 0) test,
         CASE WHEN type = 'T' THEN num_symptoms ELSE 0 END test_symptoms,
         DECODE(type, 'TBD', 1, 0) tbd,
         CASE WHEN type = 'TBD' THEN num_symptoms ELSE 0 END tbd_symptoms
    FROM lrg_problem_v3 p, o
    WHERE p.assigned = o.owner
    AND p.cdate BETWEEN '16-DEC-08' AND '15-JAN-09'
    AND last_label LIKE 'RDBMS_MAIN_LINUX' || '_%'
    AND lrg LIKE 'lrg' || '%'
    GROUP BY manager
    ORDER BY manager
    I tried to remove all the TO_CHAR functions but same error message was returned.
    Thanks,
    Mingying

    This version of Apex comes with database release 11.1.0.6.0
    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    PL/SQL Release 11.1.0.6.0 - Production
    CORE 11.1.0.6.0 Production
    TNS for Linux: Version 11.1.0.6.0 - Production
    NLSRTL Version 11.1.0.6.0 - Production
    Following information might also be helpful.
    Product Build: 3.1.0.00.32
    Schema Compatibility: 2007.09.06
    NLS_CHARACTERSET: AL32UTF8
    DAD CHARACTERSET: UTF-8
    JOB_QUEUE_PROCESSES: 1000
    Thanks,
    Mingying

  • Internal Error ORA-0600 when creating multiple consumer queue table

    Hi,
    I tried to create a multiple consumer queue table with the following statements:
    exec DBMS_AQADM.GRANT_TYPE_ACCESS ('system');
    create type Change_History_Trigger_Data as object(Col1 VARCHAR2(255), Col2 VARCHAR2(128), Col3 VARCHAR2(255), Col4 TIMESTAMP, Col5 VARCHAR2(64), Col6 VARCHAR2(64), Col7 NUMBER(8));
    Works fine till this stage. But the following statement produces an ORA-0600 internal error message.
    EXEC DBMS_AQADM.CREATE_QUEUE_TABLE ('change_history_queue_tbl','Change_History_Trigger_Data', 'tablespace my_tblspace','ENQ_TIME',TRUE,DBMS_AQADM.TRANSACTIONAL);
    ERROR at line 1:
    ORA-00600: internal error code, arguments: [kcbgtcr_4], [14392], [0], [1], [], [], [], []
    ORA-06512: at "SYS.DBMS_AQADM_SYS", line 2224
    ORA-06512: at "SYS.DBMS_AQADM", line 58
    ORA-06512: at line 1
    I tried creating the same queue table with Multiple consumer = FALSE, and it works fine. But not with multiple consumer = TRUE
    I'm running on Oracle9i Enterprise Edition Release 9.2.0.6.0
    Any possible solutions?

    Problem solved.
    The queue name was too long. Found a post with the same problem.
    Re: Create Queue Table ORA-00600 while dbms_aqadm.create_queue_table
    thanks anyway

  • Trying to implement a VPD policy but got the following error ORA-20001

    hey good day,
    I'm trying to implement a VPD policy to my application. After I have performed the below task (Label 1) in oracle 10g database. When I'm about to access my application page in ApEx 3.2.1 I got the following error
    ORA-20001: get_dbms_sql_cursor error ORA-28110: policy function or package CHARLES.VPD_PREDICATE has error
    any form of assistance will be greatly appreciated.
    thanks in advance
    Label 1
    USER is "VPD_ADMIN"
    SQL> create or replace context empnum_ctx using set_empnum_ctx_pkg;
    Context created.
    SQL> CREATE OR REPLACE PACKAGE set_empnum_ctx_pkg IS
      2    PROCEDURE set_empnum;
      3  END;
      4  /
    Package created.
    SQL> CREATE OR REPLACE PACKAGE BODY set_empnum_ctx_pkg IS
      2    PROCEDURE set_empnum IS
      3     emp_id NUMBER;
      4    BEGIN
      5     SELECT EMPNUM INTO emp_id FROM CHARLES.INSTRUCTOR
      6     WHERE upper(username) = nvl(v('APP_USER'), USER);
      7     DBMS_SESSION.SET_CONTEXT('empnum_ctx', 'empnum', emp_id);
      8
      9    EXCEPTION
    10      WHEN NO_DATA_FOUND THEN NULL;
    11    END;
    12  END;
    13  /
    Package body created.
    SQL> create or replace package vpd_policy as
      2    function vpd_predicate(object_schema in varchar2 default null, object_name in varchar2 default null)
      3     return varchar2;
      4  end;
      5  /
    Package created.
    SQL> create or replace package body vpd_policy as  function vpd_predicate(
      2   object_schema in varchar2 default null, object_name in varchar2 default null)
      3     return varchar2 as
      4
      5      BEGIN
      6     if (USER = 'ADMIN') and (v('APP_USER') is null) or
      7        (USER = 'MICHAEL.GRAY') and (v('APP_USER') is NULL) then
      8       return '';
      9     else
    10       return '(
    11             exists (
    12                     select  "INSTRUCTOR"."EMPNUM" as "EMPNUM",
    13                             "INSTRUCTOR"."FIRSTNAME" as "FIRSTNAME",
    14                             "INSTRUCTOR"."LASTNAME" as "LASTNAME",
    15                             "LOAD"."COURSEID" as "COURSEID",
    16                             "COURSE"."CREDIT" as "CREDIT",
    17                             "COURSE"."HPW" as "HPW",
    18                             "LOAD"."CAMPID" as "CAMPID",
    19                             "LOAD"."YR" as "YR",
    20                             "INSTRUCTOR"."POS" as "POS",
    21                             "INSTRUCTOR"."USERNAME" as "USERNAME",
    22                             "INSTRUCTOR"."DEPARTMENT_NAME" as "DEPARTMENT_NAME",
    23                             "LOAD"."SEMESTER" as "SEMESTER"
    24                     from    "COURSE" "COURSE",
    25                             "INSTRUCTOR" "INSTRUCTOR",
    26                             "LOAD" "LOAD"
    27                     where   "INSTRUCTOR"."EMPNUM"="LOAD"."EMPNUM"
    28                     and     "LOAD"."COURSEID"="COURSE"."COURSEID"
    29                     and     department_name = (
    30                                     select department_name from departments
    31                                     where upper (assigned_to) = nvl(v(''APP_USER''),USER) )
    32                                     )
    33
    34                     or upper(username) = nvl(v(''APP_USER''), USER)
    35                                                ) ';
    36
    37     END IF;
    38  END vpd_predicate;
    39  END vpd_policy;
    40  /
    Package body created.
    SQL> begin
      2  dbms_rls.add_policy(
      3  object_schema => 'charles',
      4  object_name => 'load',
      5  policy_name => 'Loading Policy',
      6  function_schema => 'charles',
      7  policy_function => 'vpd_predicate',
      8  statement_types => 'select, update, insert, delete');
      9  end;
    10  /
    PL/SQL procedure successfully completed.

    ORA-20001 isn't an Oracle error message it was coded into your application by a developer: Look it up.
    Consider too the following:
    EXCEPTION
       WHEN NO_DATA_FOUND THEN NULL;so if the employee identifier is not found ... is this really what you want? If an employee isn't valid shouldn't you know it?

  • GROUP BY with parameter - cause error -ORA-00979: not a GROUP BY expression

    I generate a query via PreparedStatement. For example:
    SELECT when, value FROM test GROUP BY ?;
    PrepState.toString(1, "when");
    That causing error: ORA-00979: not a GROUP BY expression
    My application using query like:
    SELECT to_char(data,1), SUM(vlue) as sum FROM test GROUP BY to_char(data, 2);
    PrepState.toString(1, "YYYY-MM");
    PrepState.toString(2, "YYYY-MM");

    Ah. Reproduced in the first chunk of PL/SQL below.
    The second chunk is a workaround.
    Basically, SQL is parsed by the syntax engine and optimizer to get an execution plan. Then you can have a sequence of "bind, execute, fetch, fetch, fetch..., bind, execute..."
    Since you can have multiple binds for a single SQL parse, then the fact that the first set of binds all happen to have the same value doesn't mean the next set will.
    The optimizer needs to be 100% sure that the value in the select must always be the same as the value in the group by, so you can't have two separate (and therefore potentially different) bind variable mappings. [Given the right circumstances, the optimizer might do all sorts of tricks, such as using materialized views and function-based indexes.]
    Misleadingly, it actually fails on the 'EXECUTE' step of DBMS_SQL rather than the PARSE.
    declare
      v_sql varchar2(1000) :=
        'select to_char(created,:b1), count(*) '||
        ' from user_objects u '||
        ' group by to_char(created,:b2) '||
        ' order by to_char(created,:b3)';
      v_fmt varchar2(10) := 'YYYY';
      v_cur number;
      v_ret_str varchar2(10);
      v_ret_num number;
      v_ret number;
    begin
      v_cur := dbms_sql.open_cursor;
      dbms_sql.parse(v_cur, v_sql, dbms_sql.native );
      dbms_sql.define_column_char (v_cur, 1, v_ret_str, 10);
      dbms_sql.define_column (v_cur, 2, v_ret_num);
      dbms_sql.bind_variable( v_cur, ':b1', v_fmt );
      dbms_sql.bind_variable( v_cur, ':b2', v_fmt );
      dbms_sql.bind_variable( v_cur, ':b3', v_fmt );
      v_ret := dbms_sql.execute( v_cur );
      WHILE ( dbms_sql.fetch_rows(v_cur) > 0 ) LOOP
        dbms_sql.column_value_char (v_cur, 1, v_ret_str );
        dbms_sql.column_value (v_cur, 2, v_ret_num );
        dbms_output.put_line('>'||v_ret_str||':'||v_ret_num);
      END LOOP;
    end;
    declare
      v_sql varchar2(1000) :=
        'select to_char(created,f.fmt), count(*) '||
        ' from user_objects u, (select :b1 fmt from dual) f '||
        ' group by to_char(created,f.fmt) '||
        ' order by to_char(created,f.fmt)';
      v_fmt varchar2(10) := 'YYYY';
      v_cur number;
      v_ret_str varchar2(10);
      v_ret_num number;
      v_ret number;
    begin
      v_cur := dbms_sql.open_cursor;
      dbms_sql.parse(v_cur, v_sql, dbms_sql.native );
      dbms_sql.define_column_char (v_cur, 1, v_ret_str, 10);
      dbms_sql.define_column (v_cur, 2, v_ret_num);
      dbms_sql.bind_variable( v_cur, ':b1', v_fmt );
      v_ret := dbms_sql.execute( v_cur );
      WHILE ( dbms_sql.fetch_rows(v_cur) > 0 ) LOOP
        dbms_sql.column_value_char (v_cur, 1, v_ret_str );
        dbms_sql.column_value (v_cur, 2, v_ret_num );
        dbms_output.put_line('>'||v_ret_str||':'||v_ret_num);
      END LOOP;
    end;
    /

  • Import Error ORA-20001:GET_BLOCK Error

    We are trying to upgrade from HTML DB version 1.4 to 1.6, and we have encountered some issues with one of our applications. I tried to import our app using the Create Application->Based on an Application Export File option, specifying we would like to reuse the application id inside the export file, and also specifying the app to be a Run/Build Application. During the installation, I received this error:
    ORA-20001: GET_BLOCK Error. ORA-20001: Execution of the statement was unsuccessful. ORA-00001: unique constraint (FLOWS_010600.WWV_FLOW_FLOW_PK) violated <pre>begin wwv_flow_api.create_flow( p_id =>122, p_display_id=>122, p_owner => 'TESTMGR', p_name => 'TEST', p_alias => '122', p_page_view_logging => 'YES', p_default_page_template=> 40824759845482865 + wwv_flow_api.g_id_offset, p_printer_friendly_template=> 40824564374
    Keep in mind, when I received this error, no apps were present on our test server or in any of our workspaces. Even after receiving this error, I was able to see the application in my workspace, and run through some of the pages and they appeared to be running okay(app contains 101 pages).
    I wanted to check to see if anyone knew what this error meant, so I don't spend hours upon hours testing something that isn't broken in the first place.
    Here's what else I noticed:
    I tried to reinstall the application over itself to see if I could recreate the error, but it installed fine.
    I deleted the app, installed the app telling HTML DB to reuse the app_id in the export file, and received the error again.
    But then I deleted the app altogether to try a different approach. I allowed HTML DB to auto assign the app_id and the app installed fine.
    What is even more strange, I imported and installed one of our smaller apps (only 14 pages, by telling HTML DB to reuse the application id present in the export file). That application installed perfectly without a hitch.
    So I guess my questions are:
    What does that error mean? Is it detremental to the usage of an app?
    Why do I only get the error with one application and not with another when I tell HTML DB to reuse the application id inside the export file?
    By the way,
    Export file sizes:
    Large App w/ error - 4.90MB
    Small App w/o error - 272KB
    Thank you for your help in advance!!!

    Thanks in Advance
    I am facing same issue of Primary key voilation. This error comes even when the application is imported first time.
    Other applications are importng file
    Details of error are as fallows
    ORA-20001: GET_BLOCK Error. ORA-20001: Execution of the statement was unsuccessful. ORA-00001: unique constraint (FLOWS_010500.WWV_FLOW_FLOW_PK) violated
    1852::begin
    wwv_flow_api.create_flow(
    p_id =>604,
    p_display_id=>604,
    p_owner => 'HMSIPD',
    p_name => 'IPD',
    p_alias => '604',
    p_page_view_logging => 'YES',
    p_default_page_template=> 210607950065627880 + wwv_flow_api.g_id_offset,
    p_printer_friendly_template=> 210607443998627880 + wwv_flow_api.g_id_offset,
    p_default_region_temp
    Size of application is : 5 MB
    Regards,
    Ankur Diwan

  • Running a Disciverer report gives the following error ORA-20001

    While running one of the discoverer reports under a certain responsibility i got the following error
    ORA-20001: Oracle error -20001: ORA-20001: Error occurred during product initialization for MO when executing 'begin MO_GLOBAL.INIT; end;'. SQLCODE = -20001 SQLERROR = ORA-20001: SQL_PLSQL_ERROR: N, ROUTINE, fnd.plsql.MO_GLOBAL.INIT, N, ERRNO, -20001, N, REASON, ORA-20001: SQL_PLSQL_ERROR: N, ROUTINE, fnd.plsql.MO_GLOBAL.SET_ORG_ACCESS, N, ERRNO, -20001, N, REASON, ORA-20001: SQL_PLSQL_ERROR: N, ROUTINE, fnd.plsql.MO_GLOBAL.SET_ORG_ACCESS_INTERNAL, N, ERRNO, -25153, N, REASON, ORA-25153: Temporary Tables Location: http://batcrmt2.btc.com.bh:8075/discoverer4i/viewer?Connect=[APPS_SECURE]batcrm1_ebst&SessionCookieName=batcrm1_ebst&eul=EUL4_US&opendbid=PDC_LISTING_BY_CHEQUE_NUMBER&FrameDisplayStyle=separate&acf=222206780&NLS_LANG=AMERICAN_AMERICA&NLS_DATE_FORMAT=DD-MON-RRRR&NLS_NUMERIC_CHARACTERS=.%2C&NLS_DATE_LANGUAGE=AMERICAN&NLS_SORT=BINARY
    running reports under different responsibilities does give any errors ,
    Any suggestions why ?

    ORA-20001 isn't an Oracle error message it was coded into your application by a developer: Look it up.
    Consider too the following:
    EXCEPTION
       WHEN NO_DATA_FOUND THEN NULL;so if the employee identifier is not found ... is this really what you want? If an employee isn't valid shouldn't you know it?

  • SVG CHart error ORA-20001 with Stacked Bar Chart HTML DB 1.6.0.00.87

    Hi,
    during I put a How-To into execution (How To Create a Stacked Bar Chart) I'll get the following error code:
    SVG Chart error:ORA-20001:line_Chart error:ORA-20001:
    get_data error:ORA-20001:Parse error:ORA009
    (see http://www.oracle.com/technology/products/database/htmldb/howtos/index.html)
    This Situation occurs when i add a second series to the
    chart. The first series works fine. I've used the following SQL-Statement:
    select null l, sales_month, revenue from (select to_char(o.order_timestamp,'Mon YYYY') sales_month, sum(oi.quantity * oi.unit_price) revenue, to_date(to_char(o.order_timestamp,'Mon YYYY'),'Mon YYYY') sales_month_order from DEMO_PRODUCT_INFO p, DEMO_ORDER_ITEMS oi, DEMO_ORDERS o where o.order_timestamp <= (trunc(sysdate,'MON')-1)and o.order_timestamp > (trunc(sysdate-365,'MON'))and o.order_id = oi.order_id and oi.product_id = p.product_id and p.category = 'Audio' group by to_char(o.order_timestamp,'Mon YYYY') order by sales_month_order);
    Please help.
    Regards
    Detlev

    Well,
    I've just been struggling for a couple of hours with a cluster bar chart giving the same problem.
    The problem is definitely with "ORDER BY".
    I guess the graphing chart is taking the sql query as a string and then does some other manipulation on it which ends abnormally when you include the order by clause.
    I presume that if you embed the query in a
    SELECT * FROM (<actual query with order by>)
    it might mitigate the problem.
    Bye,
    Flavio

  • ORA-20001 When trying to default page element to sysdate

    Hello,
    I have a master detail with last updated in the detail that I want to autopopulate based on sysdate.
    To do that I have Tabular Form Attributes set to sysdate and default type PL/SQL Expression or function.
    The display as is set to "Display as Text(saves state).
    I would like to format the date which I do with Column Attributes and then specify the Number Data Format.
    When I click add row in the detai part of the pagethe date is displayed as desired however then I try and
    apply the changes (save the page) I get ORA-20001: Found invalid date value, please verify date format. (Row 2)
    I have tried formatting the date in the PL/SQL expression with TO_DATE(SYSDATE,'DD-MON-YYYY HH24:MI')
    with the same result.
    If I change the element to Text Field the date is saved correctly however I don't want the user to edit the
    feild.
    Any suggestions? Using APEX 4.1

    I have the same issue.
    1. DEFAULT=SYSDATE when using format mask='DD-MON-YYYY HH24:MI:SS' causes the time portion to appear but ORA-20001 when submitting the row.
    2. Since the base column datatype is DATE, a simple to_char(SYSDATE,'DD-MON-YYYY HH24:MI:SS') obviously causes ORA-01790: expression must have same datatype as corresponding expression.
    3. A to_date(to_char(SYSDATE,'DD-MON-YYYY HH24:MI:SS'),'DD-MON-YYYY HH24:MI:SS') leads to the same error: ORA-20001: Found invalid date value, please verify date format.
    Does anyone know the trick?

  • Getting error  ORA-20001: FLEX-ID DOES NOT EXIST

    I am trying to load new jobs.. I have run the fnd_flex_val_api.create_independent_vset_value to load the values into the segments needed.. NREL HR Job Title and NREL HR Job Descriptor and the values are in there.
    I'm getting this in the hr_job_api.create_job api. thanks, Scott
    Edited by: user12036380 on Aug 26, 2010 3:18 PM

    Hi,
    What is the application release?
    Please see if these docs help.
    Error 'ORA-20001: FLEX-ID Does Not Exist' In HR_POSITIONS_API While Loading Positions [ID 790124.1]
    HR_ASSIGNMENT_EXTRA_INFO_API.UPDATE_ASSIGNMENT_EXTRA_INFO Errors with 'ORA-20001: FLEX-ID DOES NOT EXIST' [ID 1163457.1]
    HR_IN_PERSONAL_PAY_METHOD_API Error Ora-20001 Flex-Id Does Not Exist [ID 834844.1]
    Cannot Create Employee Via API - FLEX-ID DOES NOT EXIST Error Occurs [ID 554850.1]
    Thanks,
    Hussein

  • Error ORA-20001: The payment cannot be fully paid with the monetary units a

    Hi All,
    I have got the following error, when I am trying to run Pre-Payments. The error is coming for employees who are having Payment Method as "Cash".....
    Error ORA-20001: The payment cannot be fully paid with the monetary units available.
    ORA-06512: at "APPS.HR_UTILITY", line 937
    ORA-06512: at "APPS.HR_PRE_PAY", line 1454
    ORA-06512: at "APPS.HR_PRE_PAY", line 1944
    I am not sure why that error is coming.
    Can anyone tell me what needs to be done for rectifying that error.....
    Regards,
    Phani

    What is the application release?
    Please see these docs.
    ORA-20001: APP-06442 The Payment Cannot Be Fully Paid With The Monetary Units Available Processing PrePayments [ID 250010.1]
    ORA-20001: The Payment Cannot Be Fully Paid With The Monetary Units Available [ID 1226804.1]
    Pre-payments Error when Paying an Employee in Currency other that USD or CA : The Payment Cannot be Fully Paid with the Monetary Units [ID 249746.1]
    Thanks,
    Hussein

  • How do I create "Oracle Application Express Adminstrator" in APEX 3.2.1?

    Hello,
    Quite the newbie so I appreciate any assistance with this.
    How do create "Oracle Application Express Adminstrator" in APEX 3.2.1? I am not talking about a workspace adminstrator but an Entire APEX instance administrator or "superuser"?
    I log into APEX_ADMIN as ADMIN and understand how to create a new user. But how do I grant the new user DBA or "super user" privlidges? It was easy to do when I first installed XE, I would just "check" the "DBA" when I created the user. But when I upgraded to APEX 3.2.1 the function does not seem to be there?
    Thank you for any help you can provide!

    Hi,
    I think you can not grant DBA role from Apex anymore.
    You need connect to database e.g. with SYS user and grant that role.
    http://www.oracle.com/technology/products/database/application_express/html/3.2_and_xe.html
    Br, Jari

  • Chart Flash Chart error: ORA-20001: Print Chart Data: Flash Chart error: OR

    Hi,
    if the query where my resource gantt chart is based on returns more the 107 rows, i will get the following error:
    chart Flash Chart error: ORA-20001: Print Chart Data: Flash Chart error: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    If i reduce the number of results, the chart is working fine.
    Max rows attribute of the series is adjusted to 4000
    Any idea?
    Thank you

    Thank you,
    I have tried it, but it I am not able to make it work, here you find a snip of my pagesource:
    <anygantt> <resource_chart>
    <resources>
    <resource id="341" name="Drexler, Franz" />
    <resource id="5" name="Gross, Johannes-Ludwig" />
    <resource id="8" name="Pecherski, Andrzej" />
    <resource id="131" name="Steinmetz, Raphael" />
    <resource id="191" name="Jenks, Raymond" />
    <resource id="33" name="Alhambra, Roda Marie" />
    <resource id="31" name="Daminescu, Adrian" />
    </resources>
    <periods>
    <period resource_id= "31" start="24-DEC-12 12.00.00.000000000 AM" end="31-DEC-12 12.00.00.000000000 AM" style="green" />
    <period resource_id= "8" start="27-DEC-12 12.00.00.000000000 AM" end="28-DEC-12 12.00.00.000000000 AM" style="green" />
    <period resource_id= "8" start="02-JAN-13 12.00.00.000000000 AM" end="04-JAN-13 12.00.00.000000000 AM" style="green" />
    <period resource_id= "131" start="26-JAN-13 12.00.00.000000000 AM" end="04-FEB-13 12.00.00.000000000 AM" style="green" />
    <period resource_id= "131" start="01-JAN-13 12.00.00.000000000 AM" end="06-JAN-13 12.00.00.000000000 AM" style="green" />
    <period resource_id= "131" start="22-DEC-12 12.00.00.000000000 AM" end="31-DEC-12 12.00.00.000000000 AM" style="green" />
    <period resource_id= "5" start="21-DEC-12 12.00.00.000000000 AM" end="31-DEC-12 12.00.00.000000000 AM" style="green" />
    <period resource_id= "31" start="07-JAN-13 12.00.00.000000000 AM" end="11-JAN-13 12.00.00.000000000 AM" style="green" />
    <period resource_id= "8" start="21-DEC-12 12.00.00.000000000 AM" end="21-DEC-12 12.00.00.000000000 AM" style="blue" />
    <period resource_id= "33" start="26-DEC-12 12.00.00.000000000 AM" end="28-DEC-12 12.00.00.000000000 AM" style="green" />
    <period resource_id= "33" start="25-FEB-13 12.00.00.000000000 AM" end="25-FEB-13 12.00.00.000000000 AM" style="red" />
    <period resource_id= "33" start="28-MAR-13 12.00.00.000000000 AM" end="29-MAR-13 12.00.00.000000000 AM" style="red" />
    <period resource_id= "33" start="09-APR-13 12.00.00.000000000 AM" end="09-APR-13 12.00.00.000000000 AM" style="red" />
    <period resource_id= "33" start="01-MAY-13 12.00.00.000000000 AM" end="01-MAY-13 12.00.00.000000000 AM" style="red" />
    <period resource_id= "33" start="12-JUN-13 12.00.00.000000000 AM" end="12-JUN-13 12.00.00.000000000 AM" style="red" />
    <period resource_id= "33" start="26-AUG-13 12.00.00.000000000 AM" end="26-AUG-13 12.00.00.000000000 AM" style="red" />
    <period resource_id= "33" start="01-NOV-13 12.00.00.000000000 AM" end="01-NOV-13 12.00.00.000000000 AM" style="red" />
    <period resource_id= "33" start="30-DEC-13 12.00.00.000000000 AM" end="30-DEC-13 12.00.00.000000000 AM" style="red" />
    <period resource_id= "33" start="31-DEC-13 12.00.00.000000000 AM" end="31-DEC-13 12.00.00.000000000 AM" style="red" />
    <period resource_id= "33" start="21-AUG-13 12.00.00.000000000 AM" end="21-AUG-13 12.00.00.000000000 AM" style="red" />
    <period resource_id= "33" start="15-OCT-13 12.00.00.000000000 AM" end="15-OCT-13 12.00.00.000000000 AM" style="red" />
    <period resource_id= "8" start="23-DEC-13 12.00.00.000000000 AM" end="23-DEC-13 12.00.00.000000000 AM" style="green" />
    <period resource_id= "8" start="27-DEC-13 12.00.00.000000000 AM" end="27-DEC-13 12.00.00.000000000 AM" style="green" />
    <period resource_id= "8" start="30-DEC-13 12.00.00.000000000 AM" end="30-DEC-13 12.00.00.000000000 AM" style="green" />
    <period resource_id= "8" start="02-JAN-14 12.00.00.000000000 AM" end="03-JAN-14 12.00.00.000000000 AM" style="green" />
    <period resource_id= "5" start="31-MAY-13 12.00.00.000000000 AM" end="31-MAY-13 12.00.00.000000000 AM" style="green" />
    <period resource_id= "8" start="21-MAY-13 12.00.00.000000000 AM" end="24-MAY-13 12.00.00.000000000 AM" style="green" />
    <period resource_id= "8" start="27-MAY-13 12.00.00.000000000 AM" end="29-MAY-13 12.00.00.000000000 AM" style="green" />
    <period resource_id= "8" start="31-MAY-13 12.00.00.000000000 AM" end="31-MAY-13 12.00.00.000000000 AM" style="green" />
    <period resource_id= "8" start="02-APR-13 12.00.00.000000000 AM" end="05-APR-13 12.00.00.000000000 AM" style="green" />
    <period resource_id= "5" start="11-FEB-13 12.00.00.000000000 AM" end="11-FEB-13 12.00.00.000000000 AM" style="green" />
    <period resource_id= "131" start="29-JUN-13 12.00.00.000000000 AM" end="14-JUL-13 12.00.00.000000000 AM" style="green" />
    <period resource_id= "131" start="16-AUG-13 12.00.00.000000000 AM" end="16-AUG-13 12.00.00.000000000 AM" style="blue" />
    <period resource_id= "8" start="26-AUG-13 12.00.00.000000000 AM" end="30-AUG-13 12.00.00.000000000 AM" style="green" />
    <period resource_id= "8" start="02-SEP-13 12.00.00.000000000 AM" end="06-SEP-13 12.00.00.000000000 AM" style="green" />
    <period resource_id= "8" start="15-FEB-13 12.00.00.000000000 AM" end="15-FEB-13 12.00.00.000000000 AM" style="blue" />
    <period resource_id= "5" start="13-MAR-13 12.00.00.000000000 AM" end="13-MAR-13 12.00.00.000000000 AM" style="green" />
    <period resource_id= "8" start="22-MAR-13 12.00.00.000000000 AM" end="22-MAR-13 12.00.00.000000000 AM" style="blue" />
    <period resource_id= "33" start="20-MAR-13 12.00.00.000000000 AM" end="20-MAR-13 12.00.00.000000000 AM" style="green" />
    <period resource_id= "5" start="08-APR-13 12.00.00.000000000 AM" end="08-APR-13 12.00.00.000000000 AM" style="blue" />
    <period resource_id= "31" start="05-APR-13 12.00.00.000000000 AM" end="05-APR-13 12.00.00.000000000 AM" style="green" />
    <period resource_id= "31" start="02-MAY-13 12.00.00.000000000 AM" end="03-MAY-13 12.00.00.000000000 AM" style="green" />
    <period resource_id= "341" start="01-JUL-13 12.00.00.000000000 AM" end="22-JUL-13 12.00.00.000000000 AM" style="green" />
    <period resource_id= "341" start="09-MAY-13 12.00.00.000000000 AM" end="12-MAY-13 12.00.00.000000000 AM" style="green" />
    <period resource_id= "191" start="04-JUL-13 12.00.00.000000000 AM" end="06-JUL-13 12.00.00.000000000 AM" style="red" />
    <period resource_id= "31" start="15-JUN-13 12.00.00.000000000 AM" end="30-JUN-13 12.00.00.000000000 AM" style="green" />
    </periods>
    </resource_chart></anygantt>
    </textarea>
    <div id="chartDiv"></div>
    <script type="text/javascript" language="javascript">
    /* Set default swf path */
    AnyChart.swfFile = 'i/flashchart/anychart_6/swf/OracleAnyChart.swf';
    /* Create new gantt chart */
    var chart = new AnyChart();
    chart.width="2500";
    chart.height="2500";
    /* Get string data from text area */
    var data = document.getElementById('rowData').value.toString();
    /* Set data */
    chart.setData(data);
    /* Write chart to "chart" div */
    chart.write("chartDiv");
    </script>
    do you have a idea whats wrong? thank you

Maybe you are looking for

  • RV220W PPTP Start IP Address must not be in the subnet of LAN:192.168.1.1/255.255.255.0

    Hello, I start setup of new RV220W Wireless router. I want to provide access to internal network via PPTP. But gettting error 'PPTP Start IP Address must not be in the subnet of LAN:192.168.1.1/255.255.255.0'. I reviewed the forum and some user's say

  • How do I ensure that all IMAP mail is downloaded locally?

    I have a Fastmail IMAP account which is apparently unavailable at the moment. To keep the Mail app from endlessly trying to connect to Fastmail, I went into Preferences and unchecked "enable this account". When I did that, all of my Sent mail from th

  • How to bring the browser window from background/minimized to on top of all windows in Flex

    Hi I have the requireemnt where based on some condition I am opening a JSP in a new window  by calling navigateToURL(myFormData, _MYWINDOW); Calling this will open a new browser window. My requirement is when the new window if  minimized or behind ot

  • Selecting objects of one color

    So, I find that when I image trace and go to remove the white space of my expanded object it takes FOREVER to clean it all up. What I really need is a selection option similar to Photoshop (contiguous or not) to get rid of all the excess faster. Is t

  • "Blend" Tool Problems

    Hi, I am using CS and the "blend" tool to create a train track but I cannot seem to get the spacing to look right. I tried adding a 3rd railroad tie in the middle but that didn't work either. Any ideas how I can get more spacing in the foreground and