User evolution ORA-06550 APEX 4.1.1 with the internal admin user account

Hello

I don't know when this error came first, but when I try to change the properties of a user in the workspace with the 'internal' working space ADMIN user, I get the follwing error:
ORA-06550: line 86, column 7: PLS-00103: Encountered the symbol “IF” when expecting one of the following: ; <an identifier> <a double-quoted delimited-identifier> The symbol “IF” was ignored. ORA-06550: line 90, column 1: PLS-00103: Encountered the symbol “END”
In my case, I tried to unlock a locked user account. It's used to work before!

Note: to work around the problem, I managed to unlock the user account with another admin user created in the same workspace as the locked user...

Is this a bug since 4.1.1?

Thank you
Matthias Hoys
matthiashoys.WordPress.com

Published by: mhoys on March 22, 2012 09:56

Hi Matthias,

Thanks for the information.

The Group of patches to update a clob column in our metadata. The clob itself string is syntactically correct, it's why you didn't see any errors during the installation. However, within the chain, there is a space character where a line break should be at the end of a single-line comment:

-- ...comment...
--  ...comment...     if :P23_ADMIN = 'Y' then
  ...
end if;

Instead of

-- ...comment...
--  ...comment...
if :P23_ADMIN = 'Y' then
  ...
end if;

Block PL/SQL that ran on submit, and now the 'end if' missing have 'if', where the runtime error.

We've just uploaded a fix for this bug (13878034) to support, it should be available very soon.

Kind regards
Christian

Tags: Database

Similar Questions

  • Error ORA - 01858 Apex report working / valid underlying the request

    After two days of searching for these forums and AskTom, I think I need to put the following problem.

    I have what seems to be a valid view of certain data that is created as follows (with apologies for the formatting - doesn't seem to be a way to use a fixed font here):

    CREATE OR REPLACE VIEW "PRICING_CAPABILITY" OF THE FORCE. "" POW_EXEC_SUMM010 "("Item",
    "Jul-09", "Aug-09", "Ms-09", "Oct-09", "Nov-09", "Dec-09", "Jan-10", "" "" "
    'Feb-10', '10-Mar', 'Apr-10', '10-may', 'Jun-10', 'CDA')
    AS
    SELECT
    "Item."
    Sum (decode("ItemMonth",'Jul-09',"ItemValue",0)) "Jul - 09,
    Sum (decode("ItemMonth",'Aug-09',"ItemValue",0)) "Aug - 09,
    Sum (decode("ItemMonth",'Sep-09',"ItemValue",0)) "Sep - 09,
    Sum (decode("ItemMonth",'Oct-09',"ItemValue",0)) "Oct - 09,
    Sum (decode("ItemMonth",'Nov-09',"ItemValue",0)) "Nov - 09,
    Sum (decode("ItemMonth",'Dec-09',"ItemValue",0)) "Dec - 09,
    Sum (decode("ItemMonth",'Jan-10',"ItemValue",0)) "Jan - 10,
    Sum (decode("ItemMonth",'Feb-10',"ItemValue",0)) "Feb - 10,
    Sum (decode("ItemMonth",'Mar-10',"ItemValue",0)) "Mar - 10,
    Sum (decode("ItemMonth",'Apr-10',"ItemValue",0)) "Apr - 10,
    Sum (decode("ItemMonth",'May-10',"ItemValue",0)) "may-10,
    Sum (decode("ItemMonth",'Jun-10',"ItemValue",0)) "Jun - 10."
    Sum ("ItemValueOptional") AS "CDA".
    Of
    (
    SELECT
    "Received new proposals" AS "Item."
    To_char(T1.scope_received,'Mon-RR') AS "ItemMonth."
    Count (*) AS "Valeurelement."
    10. AS 'SortOrder '.
    Of
    PRICING_CAPABILITY. POW_DATA t1
    WHERE
    T1.scope_received IS NOT NULL
    AND extract it (FROM AN t1.scope_received) IN (2009,2010)
    ' AND t1.scope_received > = July 1, 2009.
    GROUP BY
    «New proposals received.»
    To_char(T1.scope_received,'Mon-RR'),
    10
    UNION
    SELECT
    "New proposals complΘtΘ' AS"Item. "
    To_char(T2.pricing_approval,'Mon-RR') AS "ItemMonth."
    Count (*) AS "Valeurelement."
    20. AS 'SortOrder '.
    Of
    PRICING_CAPABILITY. POW_DATA t1
    JOIN PRICING_CAPABILITY. POW_LAST_HISTORY t2
    WE
    T1. POW_DATA_ID = t2. POW_DATA_ID
    WHERE
    T2.pricing_approval IS NOT NULL
    AND extract it (FROM AN t2.pricing_approval) IN (2009,2010)
    ' AND t2.pricing_approval > = July 1, 2009.
    GROUP BY
    "End of new proposals."
    To_char(T2.pricing_approval,'Mon-RR')
    )
    GROUP BY
    "Item."
    'SortOrder '.
    ORDER BY
    "SortOrder";

    This view works, IE produced good results by operating (i.e. select * from...) with SQL Developer and SQL Workshop of the Apex section.

    But when I try to produce an Apex report, use it as a data source, I get the following error:

    ORA-01858: a non-digit character was found here where was waiting for a digital

    The error is displayed before that appear part any report itself, that is to say the header of the region is displayed and then the error message.

    So far, everything I could find on the forums or AskTom suggests that this is probably due to a problem. But the goal here is to summarize records dated by month, so I've extracted the elements year and date values, convert them to strings (using TO_CHAR) and then using the resulting chains of "MON - YY" to group the results.

    If there is a better way, I'm interested.

    But I do not understand why the Apex seems to be rejecting what appears to be valid results from a query of valid work.

    Any ideas? Suggestions?

    See you soon,.

    Peter

    You hit some implicit date conversion problem, probably caused by the preferred language of the browser in combination with the use of literals in the query.
    It's a bad idea to use literals as July 1, 2009"in an environment like Apex, which may have different date forrmats according to the preferences of the user.

    At the beginning of the rendered page Apex performs a SESSION of ALTER to change various NLS parameters.
    You can see this by turning on debugging, look for NLS in the resulting output and take a look at the settings that the Apex is application.
    The literal 1 July 2009"means the format DD-MON-YYYY mask, but regional settings applied through Apex may involve a different date format mask.

    Flavio

    ------
    http://oraclequirks.blogspot.com

  • ORA-06550 PLS-00382: expression is of the wrong type

    Please help me with the following script:

    declare
    cursor c1 is
    Select prod_country_id
    of prod_country
    where eccnum = "NOCLASS-SG" and ccode = 'SG ';
    New_data_type TYPE IS TABLE C1% ROWTYPE;
    new_data_tab new_data_type;
    Start
    Open c1;
    loop
    collect fetch c1 into bulk
    in new_data_tab limit 500000;
    OUTPUT WHEN c1% NOTFOUND;
    ForAll i in 1... new_data_tab. Count
    Update prod_country
    Set eccnum = "NOCLASS".
    where prod_country_id = new_data_tab (i);
    end loop;
    Close c1;
    commit;
    end;

    Gives following error:

    ORA-06550: line 17, column 32:
    PLS-00382: expression is of the wrong type


    Please help immediately.
    Need to update block.

    Thanks in advance

    user13759851 wrote:
    Just change my query and now its execution without the previous error:

    So what? It is always wrong.

    The correct way using just SQL to perform the update - which is the most effective and scalable way. And much faster.

    As for your code? Everything is fake.

    You read the update lines. Without locking of these lines. And these same lines are changed in the code. This is false.

    Then you agree inside the loop. This is false.

    You now get a cursor (where the lines are not locked) and changes of committng to these same lines. It is a violation of the standard ANSI SQL - get everywhere is committed. You consume more resources Oracle doing this. If this process crashes - and there is an excellent chance that Oracle will not provide a coherent reading/snapshot while the data are changed and committed - you what? A process that has changed some data and no other data. We ask that the corruption of data. A total lack of data integrity.

    You set the limit to a ridiculous 500000. This is false.

    It's not faster than with a 1000 limit. But she will consume 500 times more memory. And not just any memory. The more expensive server memory that a process of PL/SQL can consume - PGA.

    You have provided a perfect example of How not to Code for Oracle+.

    Now trash. You never forget retry such an erroneous approach. Use a single SQL UPDATE statement. And then a COMMIT.

  • Error when connecting with the new announcement of account in windows 8 client as "User must change password at the next logon"

    Windows Server 2003 R2 Standard Server
    Client-side: Windows 8

    The problem:

    I create a new user and let the "user must change password at the next logon' checked. When I try to log in with the newly created user I get an error saying "User must change password at the next logon" after ptoviding the new password.

    At this point if I uncheck the "user must change password at the next logon', then the user can connect properly.

    Can someone help me. Please let me know any problem OS compatibility between the server and the OS cleint.

    Jaril

    Hi Jaril,

    Thanks for posting your query in Microsoft Community.

    According to the description of the issue, I recommend you post your query in the TechNet Forums. TechNet is watched by other computing professionals who would be more likely to help you.

    TechNet Forum

    Hope this information is useful.

  • ORA-12154 error trying to connect with the customer instant g 11 / LDAP on Ubuntu

    Hello

    I managed to install the client instant 11.2.0.2 and sqlplus on my Ubuntu 11.04 desktop. I am able to connect successfully to DB defined in tnsnames.ora, but when the resolution is (or should be) by LDAP, I get error

    ORA-12154: TNS: could not resolve the connect identifier specified

    Note: while it is fine for the test, it is not a viable option to configure all DB defined in the OID in tnsnames.ora - I need to use LDAP.

    My configuration is:

    Installation folder: / opt/oracle/instantclient_11_2
    TNS_ADMIN = / opt/oracle/instantclient_11_2 /.

    SQLNET.ora
    NAMES. DIRECTORY_PATH = (TNSNAMES, LDAP)

    I am sure that the tnsnames.ora and ldap.ora are valid, as I can connect on another machine with the full client installed successfully by using the same files.

    I tried tracing facility in sqlnet.ora as follows
    TRACE_LEVEL_CLIENT = SUPPORT
    TRACE_DIRECTORY_CLIENT = / tmp
    TRACE_FILE_CLIENT = sqlnet.trc
    but not the trace file is generated in the directory/tmp - I'm doing something wrong? (Note, I also tried to set DIAG_ADR_ENABLED = OFF as suggested by Laurenz Albe in Instant client do not trace but which did not help)

    I checked DocID = 359206.1 but I don't think that this applies as I am on 11 g.

    I hope someone can help. Thanks in advance!

    It might be the return transport of the characters in the parameter files - make sure your sqlnet.ora and ldap.ora are in Unix format.

    Linux vi versions tend to switch seamlessly between unix and back mode so it isn't always obvious - you can check with something like "od - c sqlnet.ora.

  • APEX 5.0. With the image stored in a BLOB gives ORA-06502.

    Hello

    I want to create an interactive report - computer desk with an image that is stored in a BLOB but it a: returnes ORA-06502: PL/SQL: digital or value error: character of number conversion error.

    I created a test with only the image report (charged - which is a BLOB) and an ID (PK - one number from a sequence)

    SELECT ID, invoice of foto

    I tried with and without a formatmask for the ' 999999999999999 ID' and the Type of plain text, because it seems not to be a better choice...

    For the Type 'pay' is 'View Image' and the 'Table name' and 'BLOB column' are defined. 'Primary Key column 1' set ID 'column of Type mime"points to a field that contains" image/jpeg", as the stored image is a photo in format jpg.

    The image from a Forms application displays OK.

    DB is a 11.2.0.4 on Linux 6.6 and APEX is 5.0

    What did I miss?

    Thank you

    Dino

    Dino Hustinx wrote:

    I want to create an interactive report - computer desk with an image that is stored in a BLOB but it a: returnes ORA-06502: PL/SQL: digital or value error: character of number conversion error.

    I created a test with only the image report (charged - which is a BLOB) and an ID (PK - one number from a sequence)

    SELECT ID, invoice of foto

    As described in the documentation, the report query selects the length of the BLOB, not the column itself column:

    select id, dbms_lob.get_length(billed) billed from foto
    
  • Get the error ora-06550: line 1, column 28 met the symbol «;»

    The code is:

    create or replace procedure while (empid number, varchar2 lname) is
    Meter number;
    fact number;
    Start
    Select max (department_id) in terms of employees where employee_id = empid;
    All counter < = loop 3
    insert into employees (department_id, last_name, employee_id) values ((did+counter), empid, lname);
    counter: = counter + 1;
    end loop;
    end;
    /

    I think I got it. You named the procedure WHILE. And althouh everything IN is not a reserved word, but a key word, I'd stay away from that name. What is your version complete:

    Select * from version of v$.

    SY.

  • Apex 4.1 - Websheets with the custom authentication scheme

    Apex v4.1 (as seen on the hosted apex.oracle.com) - Websheets do not always seem to work with a custom authentication scheme. Database applications work very well with a function of sentry page, but when the same page sentry function is used for a websheet, running, it gives an error the requested page was not found

    One of the Apex team can consult? Thank you

    Hi Vikas,

    Websheet Sentinels have slight differences of sentinels of the application.
    I created a sentinel websheet for you which should operate (see below).

    Christian

    create or replace function sample_page_sentry return boolean
    is
        l_username   varchar2(512);
        l_session_id number;
        l_ws_app_id  number;
    begin
        -- check to ensure that we are running as the correct database user.
        if user != 'APEX_PUBLIC_USER' then
            return false;
        end if;
        -- get sessionid in cookie
        l_session_id := wwv_flow_custom_auth_std.get_session_id_from_cookie;
        if wwv_flow_custom_auth_std.is_session_valid then
            -- the session still exists. we configure the APEX engine to use
            -- this session id and the session's username.
            --
            -- NOTE: it is more secure to also check if this is the session id from
            --       the URL!
            --
            apex_application.g_instance := l_session_id;
            l_username                  := wwv_flow_custom_auth_std.get_username;
            if nvl(l_username,'nobody') != 'nobody' then
                wwv_flow_custom_auth.define_user_session(
                    p_user       => l_username,
                    p_session_id => l_session_id);
                return true;
            end if;
        else
            -- session can not be reused, create a new one
            l_session_id := apex_custom_auth.get_next_session_id;
        end if;                                                                                 
    
        -- the current session is unauthenticated. we have to determine the user
        -- and log in.                                                                          
    
        -- get the username from somewhere, e.g. a cgi variable. it is hard-coded
        -- here for simplification.
        l_username := 'VANJ';
        -- configure the engine to use this username and session.
        apex_custom_auth.define_user_session(
             p_user       => l_username,
             p_session_id => l_session_id );
        -- build a deep link to the websheet start page
        l_ws_app_id  := apex_util.get_session_state ('WS_APP_ID');
        wwv_flow_custom_auth.remember_deep_link (
             p_url=>'ws?p='||l_ws_app_id||'::'||l_session_id );
        -- register the session in apex sessions table, set cookie, redirect back.
        apex_authentication.login(
             p_username => l_username,
             p_password => null );
        return true;
    end sample_page_sentry;
    /                                                                                           
    

    Published by: Christian Neumueller November 15, 2011 07:07 (a wiki format error corrected)

  • elements of apex multi read only with the alignment problem!

    I have multi(radio,select,date,text,number) apex articles are collapse column when change the mode read-only region/Articles!

    demo page: https://apex.oracle.com/pls/apex/f?p=13116:12:8218330014916:

    Theme 21

    The region of items should show the following without entry box! and sets of columns and lines.

    read only.PNG

    Ramani_vadakadu wrote:

    elements of the apex are collapse column, the values of the elements when change the mode read-only region/Articles!

    demo page: https://apex.oracle.com/pls/apex/f?p=13116:12:8218330014916:

    Theme 21

    The region of items should show the following without entry box! and sets of columns and lines.

    Use the following style sheet in the page CSS Inline property:

    .formlayout span.display_only {
      display: inline-block;
      width: 20em; /* Adjust dimension as required */
    }
    

    (Please stop using free and no grammatical exclamation points in your messages. "This is not a comic).

  • ORA-39700: database must be opened with the UPGRADE option

    Hello
    Let me explain the scenario.
    I have the oracle with 11.2.0.2 binary. This House is shared by multiple database (around 15 of database).
    Now, I must apply the PSU 5 for one of the database (allows to take the name of the test).
    So I installed 11.2.0.2 new home in the same server and applied the PSU-5 for thati oracle new home.
    I copied the spfile and password at home girl new oracle, associated to the TEST database. Now when I try to start the DB with option to boot he asks me to open the DB with UPGRADE option.

    Why should you start the DB with upgrade option because he was running with the same version in old House as well?

    I run catupgrd.sql once more?

    PSU patches usually do not require the database to be opened in UPGRADE mode. The obvious explanation is that the source database is not 11.2.0.2 but something lower.

    HTH
    Srini

  • The two user accounts on PC have been changed to limited. No access to the administrator. How can I restore an administrator accounts?

    Since I have used remote support Microsoft.com, two user accounts have been converted to limited. None of us can access accounts administrator or owner on our pc running XP home. We receive notice of update program but cannot install because we do not have Administrator status.

    Log in Mode safe mode with the built-in Administrator account.

    John

  • Can I install programs when logged in a limited user account?

    Windows Vista Home Premium, 32-bit

    Vista SP2

    I connect through a limited user account. But if I need to install a program. I seem to be able to do by typing the admin password when prompted

    If I install something, so lets say java and I make it from the account of limited user, but with the password admin, what negative results, if any, may come from it?

    What to remove programs, is it ok to leave the limited with the password for the admin user account >?

    Windows Vista Home Premium, 32-bit

    Vista SP2

    I connect through a limited user account. But if I need to install a program. I seem to be able to do by typing the admin password when prompted

    If I install something, so lets say java and I make it from the account of limited user, but with the password admin, what negative results, if any, may come from it?

    What to remove programs, is it ok to leave the limited with the password for the admin user account >?

    As long as you are in possession of the admin password, you can install, Uninstall, change settings etc, in a standard user account (limited user account).
    There is no (negative) disadvantage of doing.

    For the benefits of others looking for answers, please mark as answer suggestion if it solves your problem.

  • Apex 5 - several tabs of the browser

    Apex developers try to take over the behavior of the browser integrated with 5 Apex? With 5 Apex, I love how the manufacturer will have start/run applications to test in a new tab and switch to the new tab (the best possible) when you register/execute changes to a page. However, I noticed that Ctrl-click (on Chrome/Mac OSX) does the way he always did in previous versions.

    When I develop I usually 4-5 tablets of open browser (using Ctrl-click to get the installer and go), in order to optimize my time jump part of the manufacturer to another (object browser, commands SQL components shared, page generator templates, etc.). Apex would conscientiously label tab browser with a reasonable invites so I couldn't I wanted to with one click. With the release of 5 Apex by using Ctrl-click to open multiple tabs is no longer works for me. It still works for Apex 4.2.5 which I use regularly.

    I'm not whining on through right click and select open in a new tab (good, maybe a little). I'm really just curious to know why this has been done with 5 Apex? What is the reasoning, technical or other? Specifically, why Apex developers start interfering with the normal functioning of the browser?

    Earl

    Hi Earl,

    Earl Lewis wrote:

    Apex developers try to take over the behavior of the browser integrated with 5 Apex?

    N °

    Much of the effort went into making the menu items behave like native links (anchor elements) while right click, shift/ctrl click/Enter works as expected to open the link in a new window/tab. This also applies to the treeView and iconList widgets when used for navigation. These types of composite controls need to support some features of browser such as management development so that they are a single tab to the behavior of the keyboard correct stop, but when the menu item (or element node or the icon list tree) are an anchor element is used so that the normal browser functionality still works links. If we don't have the right click would even work. However, because of all the other features of these widgets event management is complex, and it is possible that there are bugs.

    I use a mixture of Firefox and Chrome but especially Firefox; at the same time on Windows. I remember hearing something one of the combinations work not on Chrome but I just tried it on Chrome on Windows and no problems with Ctrl click.

    Can you try Firefox on OSx and also try Shift-click and using the keyboard shift + enter and Ctrl + entry (assuming that those working on OSx as they do in Windows) on Chrome and Firefox and let me know.

    Thank you

    -John

  • A document of ORA-600 error [900] is not saved with the tool.

    Hello
    on 11 GR 2 on Win 2008 we have this alertlog:
    ORA-00600: internal error code, arguments: [900]
    On utility metalink for ORA - 600, it is said:
    An Error document for ORA-600 [900] is not registered with the tool.
    Have you information?

    Thank you

    File a SR.

  • ORA-06550: line 1, column 34: PLS-00103 in Validation element with 4 APEX

    Hello
    I use 4 APEX?
    I created ths program to validate an element
    DECLARE
    LONGEUR1 NUMBER;
    BEGIN
    Select the LENGTH IN LONGEUR1 OF the BOOK WHERE code_ouvrage = (select code_ouvrage from the book where language =: P6_CODE_OUVRAGE);
    IF: P6_PK < 0 or: P6_PK > LONGEUR1 THEN
    RETURN FALSE;
    ON THE OTHER
    RETURN TRUE;
    END IF;
    END;

    I had thir error message when you run the page:
    ORA-06550: line 1, column 34: PLS-00103: symbol "DECLARE" met instead of one of the following symbols: () - + new case mod not null to other table avg current County exists max min prior sql stddev sum variance run the two main merger year forall multiset months DAY_ hour minute second stimezone_minute timezone_region timezone_abbr time end date interval timestamp timezone_hour

    ERR-1025 expression PLSQL treatment error. DECLARE LONGEUR1 NUMBER; START LENGTH Select INTO LONGEUR1 FROM BOOK WHERE code_ouvrage = (select code_ouvrage from the book where language =: P6_CODE_OUVRAGE); IF: P6_PK < 0 or: P6_PK > LONGEUR1 THEN RETURN FALSE; ELSE RETURN TRUE; END IF; END;


    All siggestion please?

    Rob wrote:
    Hello
    I use 4 APEX?
    I created ths program to validate an element
    DECLARE
    LONGEUR1 NUMBER;
    BEGIN
    Select the LENGTH IN LONGEUR1 OF the BOOK WHERE code_ouvrage = (select code_ouvrage from the book where language =: P6_CODE_OUVRAGE);
    IF: P6_PK < 0="" or="" :p6_pk=""> LONGEUR1 THEN
    RETURN FALSE;
    ON THE OTHER
    RETURN TRUE;
    END IF;
    END;

    I had thir error message when you run the page:
    ORA-06550: line 1, column 34: PLS-00103: symbol "DECLARE" met instead of one of the following symbols: () - + new case mod not null to other table avg current County exists max min prior sql stddev sum variance run the two main merger year forall multiset months DAY_ hour minute second stimezone_minute timezone_region timezone_abbr time end date interval timestamp timezone_hour

    ERR-1025 expression PLSQL treatment error. DECLARE LONGEUR1 NUMBER; START LENGTH Select INTO LONGEUR1 FROM BOOK WHERE code_ouvrage = (select code_ouvrage from the book where language =: P6_CODE_OUVRAGE); IF: P6_PK < 0="" or="" :p6_pk=""> LONGEUR1 THEN RETURN FALSE; ELSE RETURN TRUE; END IF; END;

    All siggestion please?

    What is the Validation Type? It seems you are trying to use the code for validation of Boolean function return in one of type PL/SQL Expression.

    Make sure that the Validation Type is function to return a Boolean.

Maybe you are looking for