rating of the schema for the apex 5 workspace

Hello

I am using oracle 11g 2 unlocked 'Scott' scheme.

After installing 5 APEX iam trying to map this diagram to create the apex workspace based on SCOTT his is not visible, so I did the query run below but once again his error - package does not exist in schema apex_050000.

BEGIN

APEX_050000.APEX_SITE_ADMIN_PRIVS. UNRESTRICT_SCHEMA (p_schema = > 'SCOTT');

END;

Error report-

ORA-06550: line 3, column 1:

PLS-00201: identifier 'APEX_050000.APEX_SITE_ADMIN_PRIVS' must be declared.

ORA-06550: line 3, column 1:

PL/SQL: Statement ignored

06550 00000 - "line %s, column % s:\n%s".

* Cause: Usually a PL/SQL compilation error.

* Action:

What could be the issue here


Thank you

Hi Gor_Mahia,

Gor_Mahia wrote:

I am using oracle 11g 2 unlocked 'Scott' scheme.

After installing 5 APEX iam trying to map this diagram to create the apex workspace based on SCOTT his is not visible, so I did the query run below but once again his error - package does not exist in schema apex_050000.

BEGIN

APEX_050000.APEX_SITE_ADMIN_PRIVS. UNRESTRICT_SCHEMA (p_schema-online 'SCOTT');

END;

Error report-

ORA-06550: line 3, column 1:

PLS-00201: identifier 'APEX_050000.APEX_SITE_ADMIN_PRIVS' must be declared.

ORA-06550: line 3, column 1:

PL/SQL: Statement ignored

06550 00000 - "line %s, column % s:\n%s".

* Cause: Usually a PL/SQL compilation error.

* Action:

What could be the issue here

First the prevent/forbid to use undocumented Oracle APEX APIs find out APEX_050000.APEX_SITE_ADMIN_PRIVS.

Second, there are the restrictions of security on some Oracle APEX APIs in APEX 5.0.

You can use APEX_INSTANCE_ADMIN. UNRESTRICT_SCHEMA and run this API since the schema having the appropriate privileges.

Connect to the SYS user with SYSDBA privilege and run the following:

ALTER SESSION SET CURRENT_SCHEMA = APEX_050000;

BEGIN
    APEX_INSTANCE_ADMIN.UNRESTRICT_SCHEMA(P_SCHEMA => 'SCOTT');
    COMMIT;
END;
/

In addition, you use Runtime Environment?

Kind regards

Kiran

Tags: Database

Similar Questions

  • How to unlock the Apex cloud workspace?

    A few months ago, I create a workspace, but now I forgot my password and when I recover my password, then give a pop-up message "you have not provided a valid combination of the workspace name and email address.. How can I get my workspace in the clouds.

    When I 'find my workspace' may not send me any message.

    Please someone help me.

    Do you mean apex.oracle.com?

    -> I think that his are no longer available. Oracle request to you from time to time if you still use it and if you however respond will be removed. Simply create a new one.

  • disable the APEX purge workspace

    Oracle EE 11 GR 2

    Linux RHEL 6.5

    APEX 4.2

    I want to disable the automatic purge of any workspace APEX.  As an Admin of APEX, is that enough to set the setting enabled in Instance of Manage-> Purge of workspace settings?

    Yes!

    But this relates to all areas of work.

    Gerhard

  • How to add data to the table using Manager POST for restful Apex application

    Hi all

    I managed to create a service application web Manager restful using GET for the Restful service module. I am able to get the data in row on the presentation of a table row id in the application. But I can't find an appropriate example, how the new data in the table can be posted or deleted. I created a POST handler for a URI scheme and look forward on how to proceed. Any help would be really appreciated.

    Source for the POST Manager:

    Start

    insert into ALL_BOOKS values(:id,:book);

    end;

    Also created 2 parameters id and the book.

    Hi jerry2134,

    jerry2134 wrote:

    I managed to create a service application web Manager restful using GET for the Restful service module. I am able to get the data in row on the presentation of a table row id in the application. But I can't find an appropriate example, how the new data in the table can be posted or deleted. I created a POST handler for a URI scheme and look forward on how to proceed. Any help would be really appreciated.

    Source for the POST Manager:

    Start

    insert into ALL_BOOKS values(:id,:book);

    end;

    Also created 2 parameters id and the book.

    Check out the following tutorials OBE, that explains the creation of GET and POST RESTful Web Services and how to use them in the APEX.

    Also what yo mean "looking forward on how to proceed? Do you want to or created for use/consume in your Oracle APEX application hosted RESTful web services?

    If Yes, in your Application, you must create a RESTful Web Service reference -> shared components. Then, create a form/report based on Web Service reference.

    Kind regards

    Kiran

  • Two schemas for the same Application authentication

    Hello everyone.

    I use Apex 4.2.1 on mod_plsql and Oracle 11 g 3.

    I'm facing what I consider a difficult assignment.  I need to build an application that supports two types of connection authentication: authentication Windows LDAP and authentication in an Oracle table.

    Is it still possible?  Someone knows how to do this?

    I already have the operation of the application using LDAP.  Users are present page 101 and a form where they enter their Windows user name and password.  After clicking a "submit" button, a plsql after submit process page 101 distinguishes the user to log in as an ADMINISTRATOR or a user to type non-ADMIN looking at the username of connection in an Oracle table called APP_USERS.  This table looks like:

    CREATE TABLE APP_USERS

    (USERNAME VARCHAR2 (10))

    PASSWORD VARCHAR2 (250)

    )

    /

    If the user name contains a '@' character, then this is a non-ADMIN user. Otherwise, it's an ADMIN that connects to.

    A plsql after submit the process is then called that looks like:

    (app_security_pkg). Login

    P_UNAME = >: P101_USERNAME,.

    P_PASSWORD = >: P101_PASSWORD,.

    P_SESSION_ID = > v ('APP_SESSION').

    (P_FLOW_PAGE = >: APP_ID);

    This works when an administrator user logs in and is authenicated via LDAP.

    However, users of type non_ADMIN must be authenticated on this table APP_USERS.

    Anyone know how to include such authentication with LDAP authentication all within the same application?  There is a concrete example of the work that I could shoot?

    I looked through this and other instances of the Apex on this subject and have read several articles about setting up authentication.  Unfortunately, I have not seen what anyone who manages more than one type of authentication for a single application.

    Thanks a lot for any help on this.

    Elijah

    Hey, Jari.

    I thank very you much for helping me.

    As mentioned in my post, LDAP Windows authentication works very well.  My question is how to make use of LDAP and custom in an Oracle table simultaneously in the same Apex application authentication.

    I worked on it yesterday and, with the help of the articles I found on the web, I got it to work.

    I figured out how to get my Apex application to use two different authentication schemes.  LDAP is used for a set of users and 'control against a table of type Oracle user and password name' is used for a different set of users.

    I did use an article I found on the web (Blog of Duncan Mein) that shows how to create a custom authentication scheme.  Then, I modified it by adding in the LDAP Windows schema, I was already using.  Then, after yet another article I found, I also modified the underlying code of package to allow a re - direct to different application pages according to the user who was logged into type.

    To make all this work, it is important to be able to distinguish one set of users to another.  In my particular case, users with a '@' character in their usernames are automatically authenticated against my Oracle called APP_USERS table.  If my custom function returns 'true', they are directed to a 2 page in my application.  And users with no not this character are authenticated against Windows LDAP and directed to a 1 page in my application.

    It works well.  I wish I could put a demo of it on my work in apex.oracle.com area, but don't know how to get LDAP works on this site.

    In any case, thanks, again, for your help.  It is appreciated.

    Elijah

  • Migration of the apex of one schema to another in the same database

    Hello

    I'm new to Apex and installed Apex 4.2 on a database and creates a dashboard based on some tables.
    Now I have to create a diagram in the same database and have to replicate all tables and should have the same dashboard.

    Now my question is-

    1 can I install Apex on the other schema and then having to export and import dashboards and reports to the installed Apex?
    2 is it possible that the installed Apex even can be used also for the other schema and can have two separate (Dev and Prod) environment?

    Help, please... Please provide any document or link for the same.

    Thanks in advance.

    Kind regards
    Sébastien Pallav

    A database can have a single schema of apex (APEX_040200).
    It is not a good idea for DEV and PROD in the same PB (so using the same data to the APEX). He makes hard development (because he may - or is - break PROD at one point).

    But - if you must - you can create two schemas: like A and B.
    Export your APP1 then import it under a different id (in the same workspace - but you can also set up two work spaces).
    Using the apex management console, change the schema by using your new imported application is to B. In this way, your app will run "as user B".

  • List of the authentication schemes current for Applications in a workspace

    Hello

    I have a request by our verification service to give them a list of applications and that the authorisation schemes they currently use. I had a quick glance at the sight APEX_APPLICATION_AUTH and from this point of view only gives me the authorisation schemes available for each application, but I can't see a column that allows me to filter on the current. Does anyone know how to get there?

    We use the Apex version: 3.2.0.00.27.

    See you soon,.
    Paul.

    Hello

    Can you do this?

    select workspace, authentication_scheme from apex_applications;
    

    Yes?

  • for relaxation: where is the table created by the Wizzard users create in the APEX?

    Hello everyone and Tony in particular since it was followed and mentoring my progress on this.

    Well,.

    Here we have 2 things:



    (1) when the wizzard of Administration > database > manage users creates a user. Where is the table it creates? What name does have? Why is it not visible in the object browser? I need the name of this table to put it on my trigger (I called users_table)



    (2) how to do that whenever a user connects, his formerly generated by the trigger sequence is used by a State to extract personal data (it's sort of VPD) in this case would be, how do you know what surrogate key, we need to call. To do this, I think, the thing would be to request the: = APP_USER (that was created in step 1) and each APP_USER will surrogate that are associated with this key.



    I set up a simple trigger, but just the substring of the concatenation of the given username, the system randomly generated pwd up to 12 characters.



    CREATE OR REPLACE
    GENERATE_SEQUENCE RELAXATION
    AFTER INSERT ON USERS_TABLE
    FOR EACH LINE
    BEGIN
    insert into users_table (surrogate_key)
    values (SUBSTR (¦¦ username password), 1.12);
    END;


    but as I said, this users_table must be the table where the wizzard to create users stores its data,... .but where is this table?


    Thank you very much

    Alvaro

    Published by: Alvaroe on February 6, 2010 09:13

    Published by: Alvaroe on February 6, 2010 10:00

    Hello

    (1) create a table and then start filling in

    I think you need to have a custom table of your patients (and users), say,

    CREATE TABLE patients
      (
        "USER_ID"   NUMBER,
        "USER_NAME" VARCHAR2(100 BYTE),
        "FIRST_NAME" VARCHAR2(100 BYTE),
        "LAST_NAME" VARCHAR2(100 BYTE),
        "PASSWORD"  VARCHAR2(4000 BYTE),
        "CREATED_ON" DATE
        CONSTRAINT patients_PK PRIMARY KEY ("USER_ID")
      );
    

    you need to build customized in your appl authentication and do not use the Apex or Db authentication.
    To do this, you must do this table in the schema that is used in the analysis of your application's schema.
    And you need create the function custom_hash like this:

    create or replace
    function custom_hash (p_username in varchar2, p_password in varchar2)
    return varchar2
    is
      l_password varchar2(4000);
      l_salt varchar2(4000) := '55PSP4P78JLDQ2AMBXQ60DW9OW7G9Z';
    begin
    
    l_password := utl_raw.cast_to_raw(dbms_obfuscation_toolkit.md5
      (input_string => p_password || substr(l_salt,10,13) || p_username ||
        substr(l_salt, 4,10)));
    return l_password;
    end;
    

    (2) then build the trigger when it detects that I completed a line
    It generates this sequence AND inserts it into another table (as you say, I could not put it in the same table)

    users must register themselves?
    Or register?
    Then you must create the free registration form or a form where you fill in your table above users.

    I think that your user_name must be unique. Put a Unique about this strain.

    When creating the patient button is pressed, then the above table is filled (you must and name, user in the form fill password)
    You must calculate USER_ID, user_name, password and created_on, this can be done in the trigger

    create or replace
    TRIGGER patients_trg_bi
      before insert on patients
      for each row
    begin
    if :NEW.USER_ID is null then
        select patients_seq.nextval into :NEW.USER_ID from dual;
    end if;
    
    if :NEW.CREATED_ON is null then
        :NEW.CREATED_ON := SYSDATE;
    end if;
    
    if :NEW.USER_NAME  is null then
        :NEW.USER_NAME  := :NEW.LAST_NAME || :NEW.USER_ID;
    end if;
    
       :NEW.PASSWORD := custom_hash(:NEW.USER_NAME, :NEW.PASSWORD);
    
    end;   
    

    you create the sequence of patients_seq

    In this case the surrogate key be hashed password.
    And you can use it by selecting table using patients: APP_USER
    that is when the user is connected to his USER_NAME, variable APP_USER is filled

    (3) then, the SQL query would recover this surrogate_key and show as connected individual data.

    Yes, when the user logs on, the key is populated by users based on table: APP_USER
    using

    select password
    from patients
    where user_name = :APP_USER;
    

    You must understand how EVP can be implemented at the Apex.

    You can use any application for this SURROGATE_KEY say

    which is calculated by Application of calculation on the new Instance

    4) but in order to know what to ask, surrogate key should be a key with the substitution APP_USER connection

    is that correct?

    Yes. You have the info from the users table

    Do you have examples of Applications Apex somewhere.
    If you use Apex 2.1, you can install it from the repository and if you have 3 Apex, they are normally automatically installed if you create the new workspace.

    You can use it a lot to manage users.

    Concerning
    Oleg

    BTW,

    Alvaro,
    Yo have your appl?
    If you sent your Db and tables all the Pl/SQl, as well as application Apex, you have for me by email, I can check and make/suggest improvements
    (For free, of course)
    I need to check what you did there, otherwise it seems to be a very long subject.
    Well, I have the time to discuss

    Yes, you can make the trigger like this

    CREATE OR REPLACE
    GENERATE_SEQUENCE RELAXATION
    AFTER INSERT ON USERS_TABLE
    FOR EACH LINE
    BEGIN
    insert into GENERATED_SEQUENCES_TABLE (lastinserted_name, surrogate_key)
    values (SELECT name from USER OF USERS_TABLE WHERE USERID..., SUBSTR (lastinsertedname¦¦ password), 1.12);
    END;

    but where the values are made here
    SUBSTR (lastinsertedname¦¦ password), 1.12

    Published by: oleg.lihvoinen on February 6, 2010 14:55

  • Which schema/user is a connected person slot within the Apex?

    Greetings,

    I have an application with built in authentication of the function table. When a person logs in their username and password is simply compared to the values of a user table to determine if they can use the application. The authentication table is in the same schema as the application.

    The Apex application is in a schema called DLR_INV. All the tables used by the application, but one is in that same pattern. The table in another schema is used to retrieve the status codes for a LOV.

    The user receives an error when the page opens, the error is on the State LOV. My DBA and another Oracle developer to determine what the problem is. Is there a synonym above the state table which should provide access. The DBA can connect through SQL Developer as DLR_INV and access the status table.

    What could be the problem?

    One question - given the way the authentication of the application is set up - when a person signs this schema/user are they connected as?

    Thank you, Tony

    Published by: hidden on January 25, 2010 12:14

    Tony

    I don't see the privilege to 'select' on XX_BMC_DLRINV.MS_US_STATES? Your APEX application schema needs grants 'live' on the objects he needs to access. Privileges gained through roles will not be recognized.

    GRANT SELECT ON XX_BMC_DLRINV.MS_US_STATES TO DLR_INV;

    CITY

  • Extension of the AD schema for second installation of the unit

    A CCM 4.1.3 and a Unity 4.0.4 server will be installed in a forest AD already having a CCM (3.x) and the servers of the unit (3.x) maintenance of users on the side is. The new CCM servers and services unit to users on the West Coast, including the mailboxes resident also on Exchange 2003 servers on the West Coast.

    When you install the unity server, what will be the consequences of the extension of the AD schema again for the new version of the unit? The schema has been extended during the installation of the 3.x version of the unit. Extension of the additional schema for the installation of the imminent 4.x Unit will have no effect on the existing unit? Or should the schema even extend again at all?

    Thank you

    Michael.

    I see a problem that you may or may not have lived:

    "Cisco Unity 3.1 does not support Exchange 2003. This means that you cannot run the tool of Exchange 2003 Forestprep to begin an upgrade to Exchange 2003, you can not have an Exchange 2003 server in the same forest, Active Directory as the Cisco Unity server, and you can not host subscribers Cisco Unity in Exchange 2003. Before you run Exchange 2003 Forestprep, you must first spend Cisco Unity version 4.0 (3) or later. Otherwise, the changes that Forestprep makes to Active Directory will cause Cisco Unity stop working. »

    See http://www.cisco.com/en/US/products/sw/voicesw/ps2237/prod_system_requirements_hardware09186a008010a339.html

    If you had an exchange environment 2000, he would have just run the adschema unit 4.x configuration and the extension of the schema is backward compatible for 3.x. You can run the extension of the scheme for unity 4.x anytime before installing unity 4.x

    If you want unity 4.x installed, you must extend the schema (even if the schema has been extended for unity 3.x).

  • Built at the point for the apex group

    We use: APP_USER to retrieve the name of the current user of the APEX.

    Similarly, is it built in variable to retrieve the name of the Group of the user?

    FOR INFO:

    I use for authentication and authorization Apex users and groups.

    I use 5 APEX

    Mazelin wrote:

    We use: APP_USER to retrieve the name of the current user of the APEX.

    Similarly, is it built in variable to retrieve the name of the Group of the user?

    N ° users can be assigned to multiple groups. Use the APEX_UTIL. GET_GROUPS_USER_BELONGS_TO method of the API.

  • Where can I get the URL scheme for adding / deleting/search a contact of the people app

    Original title: application Windows 8 Metro people...

    Where can I get the URL scheme for adding / deleting/search a contact of the people app

    It is not a URI API for this application.

  • 503 error when you access the console of the APEX for the CDB

    I can access the console of the Apex for the preliminary draft BUDGET, as per the documentation. But not the CBD.

    • For the CBD in a database of the 12 Release 1 database Oracle:https://node-ip-address/apex/
    • For a file in a PDB database of the 12 Release 1 Oracle database:https://node-ip-address/apex/lowercase-pdb-name/

    I get a 503 error.

    I tried with and without SSH tunnel. Neither work. Any advise?

    You can create a PDB files using the PDB self-service app, EM Express, SQL or SQL Developer directly. No net APEX strictly for that.

  • determine the storage space for the upgrade of the APEX

    I put on my 11.2.0.3.12 level APEX APEX to APEX 4.2.4.00.08 version 3.2.1.00.12 version database.  I understand that I must perform the full upgrade, I am moving from version 3.2.x to 4.2.x.

    According to the APEX 4.2 Installation Guide for the full development environment, I have to spend in the following arguments:

    @apexins.sql tablespace_apex tablespace_files tablespace_temp images

    Where:

    • tablespace_apexis the name of the storage space for the user of the Oracle Application Express application.
    • tablespace_filesis the name of the storage space for the user to Oracle Application Express files.
    • tablespace_tempis the name of the temporary tablespace and tablespace group.
    • imagesis the virtual directory for the images of Oracle Application Express. To support future upgrades Oracle Application Express, set the directory of the virtual image that /i/ .


    How can I determine which user is the " " " User of the oracle Application Express application" and which the user is the user Oracle Application Express 'files' (if I can then watch their default storage spaces)?



    Hi Mimi Miami,

    Mimi Miami wrote:

    I put on my 11.2.0.3.12 level APEX APEX to APEX 4.2.4.00.08 version 3.2.1.00.12 version database.  I understand that I must perform the full upgrade, I am moving from version 3.2.x to 4.2.x.

    According to the APEX 4.2 Installation Guide for the full development environment, I have to spend in the following arguments:

    @apexins.sql tablespace_apex tablespace_files tablespace_temp images

    Where:

    • tablespace_apexis the name of the storage space for the user of the Oracle Application Express application.
    • tablespace_filesis the name of the storage space for the user to Oracle Application Express files.
    • tablespace_tempis the name of the temporary tablespace and tablespace group.
    • imagesis the virtual directory for the images of Oracle Application Express. To support future upgrades Oracle Application Express, set the directory of the virtual image that /i/ .

    How can I determine which user is the user Oracle Application Express 'application' and that the user is the user Oracle Application Express 'files' (so I can then look at their default storage spaces)?

    APEX 3.2.x installation that follows is users:

    • Oracle Application Express Application user: APEX_030200
    • Oracle Application Express user files: FLOW_FILES

    So to determine the tablespace_apex and the tablespace_files you must connect with the user sys with sysdba privilege and run the following query:

    SELECT USERNAME
         , DEFAULT_TABLESPACE
      FROM DBA_USERS
     WHERE USERNAME IN ('FLOWS_FILES','APEX_030200')
    

    Then use the APEX_030200 user as tablespace_apex tablespace and a tablespace of the FLOW_FILES user as tablespace_files.

    I hope this helps!

    Kind regards

    Kiran

  • After impdp, remapped schema does not appear in the APEX

    Hi all

    After import and remapping scheme in my Inbox from dev to production environment (in which we use apex) I'll try to find the pattern newly imported on my machine of dev of the internal admin account apex, but I can't see it and can't find it anywhere. I might need to sort the new scheme 'available' in the environment of the APEX?

    All comments, suggestions and any kind of help are really appreciated since I have no experience in these things.

    Concerning

    Wrong forum!

    This isn't a matter of Oracle DB. It's a question of access to the Forum of the APEX.

    Please mark the thread ANSWERED and repost it in the forum of the APEX.

    Oracle Application Express (APEX)

Maybe you are looking for

  • 2009 MacBook pro 13 REALLY HOT and slow

    Hey guys,. I'm a little worried about my 2009 13 "MBP (sheet below, nothing has ever been improved) overheating. It regularly reaches up to about 97 C when the games in Minecraft (where I also get only about 20 fps max). According to Intel, the tempe

  • Why change location iMac?

    The location of my iMac continues to change. window periodically pops up telling me to change location. I have u-verse, but a friend uses Verision and has the same problem.  Apple support team tells me that it is a refreshment with my router problelm

  • Pavilion g6: change the processor in my laptop

    hp1840 map of mother (U3E1) I'll have my laptop with processor i3-2370, is it possible to change the processor that will be compatible on the motherboard? Please help me if and its a 2 GB graphic card radeon thus again slowing down work. Manufacturer

  • W700 increases the fan noise after 10 Windows update?

    As the title. Im noticing that the fan runs constantly since windows 10 update. Everyone has seen this? Manager tasks indicates that the processor is not power, but the fan runs continuously. Should I go back to windows 8, or an update will fix this?

  • Deleted by mistake the operating system Windows 7 Ultimate

    Separated from this thread. Removed win 7 ULT 64 bit errors by OS. Reinstall is necessary to disk storage? went to the library to download onto USB still does not install Win 7 64B Pre. Please reply with simple fix Thank you Post proposed by the faci