Apex_workspaces

Is there a standard pratice for setting up a development and reporting environment in APEX?
For example, if i have one database schema with 200 tables and 5 developers want to develop web pages and reports against the database schema, does the admin setup 3 workspaces for each developer/user or does admin setup one workspace for application and let everyone log in using same account and develop their own application?
Also, for ad hoc users (reporting users) do you setup one apex workspace/account for them?
thanks,

Mark wrote:
I think when you create a workspace you can only assign to it one schemas. I have not seen on the screen a place to assign two schemas for one workspace.Multiple workspace/schema assignments can be created in the admin/internal workspace at Home > Manage Workspaces > Manage Workspace to Schema Assignments.
Workspace admins can make requests for the instance admin to assign additional schemas to their workspace at from the Administration tab in their workspace at Home > Administration > Manage Service > Request Service.
An application has only one parsing schema. Access to objects in other schemas is controlled by the normal means of grants and synonyms.
Based on your comments I am concluding that a typical development environment for one application schema would be one workspace and 5 user accounts to the same workspace instead of creating 5 workspaces and one user for each workspace? correct.
Multiple schemas may be assigned to a workspace. A workspace can contain multiple applications. Each application is based on one (and only one) parsing schema. Multiple APEX user accounts (workspace admins/developers/end users) may be created in a workspace. Within the Builder there is no user/application access control below the workspace level: workspace developers have access to all applications within that workspace. Workspaces are entirely separate: user SCOTT in workspace HR is a completely different user to SCOTT in workspace OE.
Given this model you set it up according to your requirements. If it's necessary for developers to be restricted to working on certain applications, then the workspace must contain only those applications the user can work on.
Would not this be confusing as users will be developing pages and objects with everyone else with the same application?No. The workspace can contain multiple applications. More importantly—as described in the links above:
<li>Developers can lock pages so they have sole edit rights while they are working on them.
<li>Team Development features can (and should) be used to plan, assign, and record progress on development and maintenance tasks.
is not similar to database schemas where you let everyone develop in his own schema and test it before you deploy the objects in the application schema (i.e scott creates all his objects in scott schema, mike creates all objects in mike schema) and when evryone is done you move the object to the final HR schema/application.You can do that with database objects and packages if you wish. To do so with APEX applications would either require separate, discrete applications that stay separate (you can't merge applications within the APEX builder), or a complex workflow involving external command line utilities and version control tools.

Similar Messages

  • APEX_WORKSPACES and DBMS_JOB

    Hi!
    I have a background job (DAILYJOB) sending emails via apex_mail.send
    To be able to do this I first have to run
    - "wwv_flow_api.set_security_group_id(tr.get_workspace('WORKSPACE_ID'))".
    To find "WORKSPACE_ID" for my workspace I run
    - Select workspace
    ,schemas
    ,workspace_id
    from apex_workspaces
    where workspace = cWorkspace
    This SQL works fine when I run it On-line" but when executed as batchjob (DBSM_JOB) the SQL returns Null records
    I can't find the reason for this
    Thanks for any ideas
    Gunnar

    Thanks Ben
    Yes, The user running the job online is the same as the owner of the JOB running in background and the one submitting the job
    Perhaps its Apex and VPD that causes this problem?!
    I'll hardcode the WORKSPACE_ID instead of getting it via APEX_WORKSPACES, not that flexible but i works ;_)
    /Gunnar

  • Cannot view workspace_id in apex_workspaces

    I create a workspace like this
    alter session set current_schema = FLOWS_030100;
    BEGIN
    APEX_INSTANCE_ADMIN.ADD_WORKSPACE(
    P_WORKSPACE_ID => 123456789,
    p_workspace =>'APEX_XXDL_SHARED' ,
    p_primary_schema => 'XXDL',
    p_additional_schemas => NULL);
    COMMIT;
    END;
    But the above record is not shown in APEX_WORKSPACES;
    I tried like above by explicitly specifying the workspace_id (to some random number) and also let it default. But I cant see the workspace_id and workspace in apex_workspaces.
    But when I login to internal workspace as admin user , I can see the workspace I created above.
    What am I missing here?
    Thank you for your help
    Kumar

    Hi,
    I'm using Apex 3.2 so I did run as SYS
    alter session set current_schema = APEX_030200;
    BEGIN
    APEX_INSTANCE_ADMIN.ADD_WORKSPACE(
    P_WORKSPACE_ID => 123456789,
    p_workspace =>'APEX_XXDL_SHARED' ,
    p_primary_schema => 'MY_SCHEMA',
    p_additional_schemas => NULL);
    COMMIT;
    END;
    /Then I connect to MY_SCHEMA and run below select. Result shows workspace id 123456789
    SELECT workspace,workspace_id FROM apex_workspaces;Br, Jari

  • How to see all the list of tables in APEX

    Hi
    COuld anyone of you help me find out how to see all the tables present in APEX ?
    I can see all the list of tables when i give the command : select * from tab
    But apart from finding like this , is there any way to find out all the list of tables ?
    Regards,
    Tasha

    Hi Tasha,
    For Apex 3.2 ;
    select * from dba_tables where owner in
    (select workspace from APEX_030200.APEX_WORKSPACES)
    tab is a synonym for user_tables
    http://www.oreillynet.com/pub/a/network/2002/10/28/data_dictionary.html
    hope this helps you
    regards
    mozkavra

  • ORA-06502 (character string buffer too small) on import application via script

    Running apex 4.2.2.00.11
    oracle 10.2.0.5
    I'm using a script to import my development application to a few production applications.
    It worked great on apex 4.1.1, but now I get an 'ORA-06502 PL/SQL numeric of value error: character string buffer too small'
    In the command window, I see that the script fails after it starts on the plugins.
    My question: is this a bug in 4.2.2?
    I could be a incompatible plugin, but how can I found out which plugin?
    My script is quite simple:
    In a command window I run
    sqlplus SCHEMA/PASSWORD@SPIEU10 @_IMPORT_F102.sql
    The script is
    declare
    l_workspace_id number;
    begin
        -- determine the workspace id for the workspace FM in the target system
        select workspace_id into l_workspace_id from apex_workspaces where workspace = 'BY_APEX_SHARED';
        -- set the context for the target workspace
        apex_application_install.set_workspace_id( l_workspace_id );
        -- override the original application id 102
        apex_application_install.set_application_id ( 102 );
        -- set a different application name and alias, it should be unique within an APEX instance
        apex_application_install.set_application_alias( 'MY_ALIAS' );
        apex_application_install.set_application_name( 'MY_APP_NAME' );
        -- Use fixed offset
        apex_application_install.set_offset( p_offset => 0);
        -- override the original parsing schema FM with a different value
        apex_application_install.set_schema( 'BY_SCHEMA' );
    end;
    -- install the original application export, now the values for the workspace
    @f102.sql
    exit;
    Error message from command window:
    ...ui types
    ...plugins
    begin
    ERROR at line 1:
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06512: at line 3
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64
    bit Production
    With the Partitioning, Data Mining and Real Application Testing options

    ListAGG throws an ORA-01489 for varchar2 > 4000 bytes
    OP has an ORA-06502 --> the IR is running into a 4k/32k limit.
    quick solution: wrap USER_COMMENTS ListAGG in a substr( ...., 1, 4000)
    Longer solution, use a subquery to modify the comments based on ROW_NUMBER() (ie after nth row, change it to NULL)
    with
    -- simulating data
    t as (select task_id, sysdate - lv as date_entered
      ,round(dbms_random.value(1,24)) hours
      , '-*' || lv || '.' || task_id || '*-' as user_comments
    from ( select level as task_id from dual connect by level <=10 ), (select level lv from dual connect by level < 1000)
    -- modify data
    modified_data as (
      select task_id, hours, date_entered
        ,case
          when row_number() over (partition by task_id order by date_entered desc) < 5
            then user_comments
          else null
         end USER_COMMENTS
        from t)
    select task_id, sum(hours) total_hours,
      listagg( user_comments  ) within group (order by date_entered desc)
      || case when count(*) >= 5 then '! MORE COMMENTS !' else null end
        as user_comments
    from modified_data
    group by task_id;

  • Error importing 4.1 workspace on apex 4.2.1.

    Hi, i recently installed apex 4.2.1. I can login on internal workspace with admin, all ok, but i get errors by importing my old workspace (4.1).
    I have loaded the exported sql in TOAD to get better error log. Here it is:
    Error at line 36
    ORA-06502: PL/SQL: error numérico o de valor
    ORA-06512: en "SYS.OWA_UTIL", línea 356
    ORA-06512: en "SYS.HTP", línea 1368
    ORA-06512: en "SYS.HTP", línea 1443
    ORA-06512: en "SYS.HTP", línea 1735
    ORA-06512: en "APEX_040200.WWV_FLOW_ERROR", línea 154
    ORA-20987: Unauthorized access (security group package variable not set).
    ORA-06512: en "APEX_040200.WWV_FLOW_ERROR", línea 613
    ORA-06512: en "APEX_040200.WWV_FLOW_ERROR", línea 903
    ORA-06512: en "APEX_040200.WWV_FLOW_FND_USER_API", línea 135
    ORA-06512: en "APEX_040200.WWV_FLOW_FND_USER_API", línea 1372
    ORA-06512: en línea 2
    "Unauthorized access (security group package variable not set)" Is it the cause?
    I try to import the workspace on a exisiting schema, the same where i installed apex.
    I can create the workspace manually and next, import the aplications, but i lose the groups and users.
    Edited by: Andres Vilallave on 25-feb-2013 10:04
    Edited by: Andres Vilallave on 25-feb-2013 10:05

    You seem to be getting an error on your workspace id, I'm guessing you tried to create it manually first.
    So instead of creating a new workspace you need to do an update of your manually created workspace.
    That's ok you can create it manually first, Ill describe here how you can update it.
    First go to the view APEX_WORKSPACES in your APEX 4.1 schema in the database. Find out what the workspace ID is in your database.
    Copy the ID and then open your workspace sql file (that you import).
    Go to the line:
    begin
    wwv_flow_api.set_security_group_id(p_security_group_id=>XXXXX);
    end;
    Replace XXX with your workspace id.
    Import the file.

  • Apex 4.2.1 - Reserved application ids?

    APEX 4.2.1, Oracle 11gR1
    We have application ids 200 and 201 in a workspace. We needed to clone 201 from a prior version in VSS. So I pulled out the version from VSS, ran the following snippet to install it as application 202 (id is not used in the instance) as follows
    DECLARE
        l_workspace_id INTEGER;
    begin 
      select workspace_id into l_workspace_id  from apex_workspaces where workspace = 'FOO';
      apex_application_install.set_workspace_id(l_workspace_id);
      apex_application_install.set_application_id(202); 
      apex_application_install.generate_offset; 
      apex_application_install.set_application_alias( 'F' || apex_application_install.get_application_id );
    end;
    @f201.sqlNo errors. I type in 202:22 in the Search box at the top right of the Builder, the page looks fine. I click on the Application Builder link in the breadcrumb and find that 202 is not listed in the list of applications! I scratch my head. Query APEX_APPLICATION_PAGES for 202:22 and it does exist. But there is no entry in APEX_APPLICATIONS for 202! I scratch my head even more.
    Digging into the source code for APEX_APPLICATIONS and a process of elimination, leads to the offending predicate in the where clause.
      /* keep this not exists */
      and not exists ( select 1
                         from wwv_flow_language_map m
                        where m.translation_flow_id = f.id);
    The comment is part of the code, not mine!
    Sure enough, there is an entry in the wwv_flow_language_map table with a translation_flow_id of 202.
    So I chose some other id instead of 202 to install the app and everything is fine.
    What is going on here? Are certain application ids reserved? I can understand that the Builder related app ids (4000, 4500, etc) are reserved but I am not sure I understand how I can have application ids 200 and 201 in my workspace but 202 is not allowed!
    Thoughts? Thanks

    Joel - Thanks for responding.
    1. I know exactly zero about multi-lingual/translated applications in APEX but I am curious as to why (only) this one instance has these translation_flow_id in the range (183-221). I am guessing it is because I install the APEX Builder suite of apps into the workspace using the script below? If so, what should the script do differently to load just the English (en) language applications?
    2. Just curious, what would the fix for this bug be? A change in the view definition for APEX_APPLICATIONS to tighten up that NOT EXISTS predicate?
    Thanks
    -- Builder F4000
    DECLARE
        l_workspace_id INTEGER;
    begin
      select workspace_id into l_workspace_id  from apex_workspaces where workspace = 'FOO';
      apex_application_install.set_workspace_id(l_workspace_id);
      apex_application_install.set_schema('HR');
      apex_application_install.set_application_id(2000);
      apex_application_install.generate_offset;
      apex_application_install.set_application_alias( 'F' || apex_application_install.get_application_id );
    end;
    @/opt/oracle/home/patches/apex42/apex/builder/f4000.sql
    -- SQL Workshop F4500
    DECLARE
        l_workspace_id INTEGER;
    begin
      select workspace_id into l_workspace_id  from apex_workspaces where workspace = 'FOO';
      apex_application_install.set_workspace_id(l_workspace_id);
      apex_application_install.set_schema('HR');
      apex_application_install.set_application_id(2001);
      apex_application_install.generate_offset;
      apex_application_install.set_application_alias( 'F' || apex_application_install.get_application_id );
    end;
    @/opt/oracle/home/patches/apex42/apex/builder/f4500.sql
    -- Administration F4350
    DECLARE
        l_workspace_id INTEGER;
    begin
      select workspace_id into l_workspace_id  from apex_workspaces where workspace = 'FOO';
      apex_application_install.set_workspace_id(l_workspace_id);
      apex_application_install.set_schema('HR');
      apex_application_install.set_application_id(2002);
      apex_application_install.generate_offset;
      apex_application_install.set_application_alias( 'F' || apex_application_install.get_application_id );
    end;
    @/opt/oracle/home/patches/apex42/apex/builder/f4350.sql
    -- Websheets F4900
    DECLARE
        l_workspace_id INTEGER;
    begin
      select workspace_id into l_workspace_id  from apex_workspaces where workspace = 'FOO';
      apex_application_install.set_workspace_id(l_workspace_id);
      apex_application_install.set_schema('HR');
      apex_application_install.set_application_id(2003);
      apex_application_install.generate_offset;
      apex_application_install.set_application_alias( 'F' || apex_application_install.get_application_id );
    end;
    @/opt/oracle/home/patches/apex42/apex/builder/f4900.sql

  • Bug in 4.1.1: Region Title translations is lost

    Hello, apex team and Joel Kallman.
    This is my second bug report with translations today.
    REGION TITLE TRANSLATIONS IS LOST WITH APEXexport AND APEX_APPLICATION_INSTALL COMBINATION.
    My environment:
    Oracle XE 11g Linux 64bit.
    Apex 4.1.1.
    Development app 110.
    Production app 111.
    en-us - primary lang
    es - secondary
    ru - secondary
    How to reproduce:
    Export app 110 with bash command:
    $ java oracle.apex.APEXExprt -db xxx.private:1521:XE -user apex_040100 -password `cat secret.txt` -applicationid 110 -skipExportDate -expTranslations
    Import with this script (as apex_040100 user)
    declare
    l_workspace_id number;
    begin
    select workspace_id into l_workspace_id
    from apex_workspaces
    where workspace = 'PROD';
    apex_application_install.set_workspace_id( l_workspace_id );
    apex_application_install.set_application_id(111);
    apex_application_install.generate_offset;
    apex_application_install.set_schema( 'PROD' );
    apex_application_install.set_application_alias( 'FPROD_APP' );
    end;
    @../f110.sql
    Then SEED and PUBLISH in Apex Builder.
    At this point Region Title translations is lost for every region in app.
    Workaround:
    I use blog post "Moving your XLIFF files" by Joel Kallman on YABAOAE from the very first day it was published.
    http://joelkallman.blogspot.com/2010/07/moving-your-xliff-files.html
    It is only way to use DEV and TEST/UAT env. on the same database with translated apps. Thanks to Joel.
    If it is not a bug, please, explain me better way to workaround it for me.
    Vladimir

    Hi Vladimir,
    Thanks for reporting this issue as well.
    I filed this as Bug 13801807. I researched this and understand what the issue is. But I need to think carefully about what would be the best solution for it. I'll report back to this thread with an answer.
    Joel

  • Bug report: tranlations not deleted from WWV_FLOW_DYNAMIC_TRANSLATIONS$

    Hello, apex team and Joel Kalman.
    Bug(?) report: Translations not deleted from WWV_FLOW_DYNAMIC_TRANSLATIONS$ on application replacement with importing from sqlplus using apex_application_install package.
    My environment:
    Oracle XE 11g Linux 64bit.
    Apex 4.1.1.
    Development app 110.
    Production app 111.
    How to reproduce:
    Simple way (not checked for 4.1.1):
    Export application 110 by using builder or APEXexport.
    Import application 110 ten times, then look into dynamic translation. Each translation repeats 10 times.
    Checked way to reproduce this bug in in 4.1.1:
    Repeat this 10 times to see how dynamic translations is multiplied in app 111.
    Export app 110 with bash command:
    $ java oracle.apex.APEXExprt -db xxx.private:1521:XE -user apex_040100 -password `cat secret.txt` -applicationid 110 -skipExportDate -expTranslations
    Import with this script (as apex_040100 user)
    declare
    l_workspace_id number;
    begin
    select workspace_id into l_workspace_id
    from apex_workspaces
    where workspace = 'PROD';
    apex_application_install.set_workspace_id( l_workspace_id );
    apex_application_install.set_application_id(111);
    apex_application_install.generate_offset;
    apex_application_install.set_schema( 'PROD' );
    apex_application_install.set_application_alias( 'FPROD_APP' );
    end;
    @../f110.sql
    Workaround:
    Run this script before each import:
    DELETE FROM apex_040100.WWV_FLOW_DYNAMIC_TRANSLATIONS$
    WHERE flow_ID = 111;
    If it is not a bug, please, explain me better way to workaround it for me.
    Vladimir

    Hi Vladimir,
    +>> Hello, apex team and Joel Kalman.+
    Actually, it's Kallman. But I'm not complaining...I get plenty of emails from within Oracle addressing me as "Joe".
    This is definitely a bug. It isn't disastrous, but it's slightly worse than you even presented. I found that if you manually delete an application from within the Application Builder, the dynamic translations remain as well. They could potentially be orphaned forever.
    Your workaround, while not recommended to directly manipulate the APEX schema, would clear up the excess data. Also, a way to reduce the effects of this problem is simply to set the offset to what was initially generated the first time you imported application 110 as 111.
    I didn't write this logic, but I'll fix it. There isn't a FK on this table and I believe there should be.
    Bug 13801751 is filed, to be fixed for APEX 4.2.
    Thanks for reporting this.
    Joel

  • Can't create a workspace

    I can't create a workspace (for a new schema or for an existing one)
    ORA-01756: Anführungsstrich fehlt bei Zeichenfolge
    Fehler beim Provisioning von APEX_WORKSPACE.
    Environment:
    APEX: 2.2.1.00.04, DB: 10.1.0.4.0, Web Toolkit: 9.0.4
    NLS_LANG is GERMAN_SWITZERLAND.WE8ISO8859P15
    in dads.conf: PlsqlNLSLanguage GERMAN_GERMANY.AL32UTF8
    I need urgently some advice!

    You maybe right, did you follow all of the post installation instructions?
    Check out page 27 of the installation guide, this maybe the case I'm not sure ...
    Locate the line containing PlsqlNLSLanguage.
    The PlsqlNLSLanguage setting determines the language setting of the DAD.
    The character set portion of the PlsqlNLSLanguage value must be set to
    AL32UTF8, regardless of whether or not the database character set is AL32UTF8.
    For example:
    PlsqlNLSLanguage AMERICAN_AMERICA.AL32UTF8

  • Basic auth with RESTful WEb service and Web Service reference

    Hi, All,
    We have made much progress on getting an application working wtih RESTful web services but now are trying to figure out how to lock down a RESTful Web service while making it available for a particular application.
    We are using one of the sample 'emp' table web services that come with Apex 4.2 and are trying to apply Basic Auth to the WEb Service via Weblogic filter defined in the web.xml file. That works fine. I now get challenged when I try to go to :
    https://wlogic.edu/apex/bnr/ace/hr/empinfo/
    And when I authenticate to that challenge I am able to get the data. (we are usiing LDAP authentication at the Weblogic level)
    However, I am not sure how to get same basic authentication to work with the Web Service reference in my application. I see the error message in the application when I try to call that Web Service:
    401--Unauthorized<
    And I see:
    "The request requires user authentication. The response MUST include a WWW-Authenticate header field (section 14.46) containing a challenge applicable to the requested resource. The client MAY repeat the request with a suitable Authorization header field (section 14.8). If the request already included Authorization credentials"
    How do I provide the credentials in the Web REference or do I provide credentials in the Application?
    Web service works fine if I remove the RESTful web service basic auth from the Web.xml file.
    Should we NOT use Weblogic basic auth and instead use basic auth from Workspace RESTful web service definition. If so, how do we implement THAT basic auth in the Web Service definition and in the Web SErvice Reference on the application?
    Thanks,
    Pat

    What I mean is diid you try to use the PL/SQL package for APEX webservice. Here is an example I use (modified and shortened, just to show how much better this is than to use it from the application).
    CREATE OR REPLACE PACKAGE webservice_pkg
    IS
       PROCEDURE create_webservice (
          p_id            IN       NUMBER,
          p_message       OUT      VARCHAR2,
          p_workspace     IN       VARCHAR2 DEFAULT 'MY_WORKSPACE',
          p_app_id        IN       NUMBER DEFAULT v ('APP_ID'),
          p_app_session   IN       VARCHAR2 DEFAULT v ('SESSION'),
          p_app_user      IN       VARCHAR2 DEFAULT v ('APP_USER')
    END webservice_pkg;
    CREATE OR REPLACE PACKAGE BODY webservice_pkg
    IS
       PROCEDURE set_credentials (
          p_workspace     IN   VARCHAR2,
          p_app_id        IN   NUMBER,
          p_app_session   IN   VARCHAR2,
          p_app_user      IN   VARCHAR2
       IS
          v_workspace_id   NUMBER;
       BEGIN
          SELECT workspace_id
            INTO v_workspace_id
            FROM apex_workspaces
           WHERE workspace = p_workspace;
          apex_util.set_security_group_id (v_workspace_id);
          apex_application.g_flow_id := p_app_id;
          apex_application.g_instance := p_app_session;
          apex_application.g_user := p_app_user;
       END set_credentials;
       PROCEDURE create_webservice (
          p_id            IN       NUMBER,
          p_message       OUT      VARCHAR2,
          p_workspace     IN       VARCHAR2 DEFAULT 'MY_WORKSPACE',
          p_app_id        IN       NUMBER DEFAULT v ('APP_ID'),
          p_app_session   IN       VARCHAR2 DEFAULT v ('SESSION'),
          p_app_user      IN       VARCHAR2 DEFAULT v ('APP_USER')
       IS
          v_envelope          VARCHAR2 (32000);
          v_server            VARCHAR2 (400);
          v_url               VARCHAR2 (4000);
          v_result_url        VARCHAR2 (1000);
          v_collection_name   VARCHAR2 (40)    := 'PDF_CARD';
          v_message           VARCHAR2 (4000);
          v_xmltype001        XMLTYPE;
       BEGIN
          v_url := v_server || '.myserver.net/services/VisitCardCreator?wsdl';
          FOR c IN (SELECT *
                      FROM DUAL)
          LOOP
             v_envelope :=
                   '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" '
                || 'xmlns:bran="http://www.myaddress.com">'
                || CHR (10)
                || '<soapenv:Header/><soapenv:Body>'
                || CHR (10)
                || '<parameter:'
                || 'some_value'
                || '>'
                || CHR (10)
                || '<bran:templateID>'
                || p_id
                || '</bran:templateID>'
                || '</soapenv:Body>'
                || CHR (10)
                || '</soapenv:Envelope>';
          END LOOP;
          set_credentials (p_workspace, p_app_id, p_app_session, p_app_user);
          BEGIN
             apex_web_service.make_request
                                         (p_url                  => v_url,
                                          p_collection_name      => v_collection_name,
                                          p_envelope             => v_envelope
             p_message := 'Some message.';
          EXCEPTION
             WHEN OTHERS
             THEN
                v_message :=
                      v_message
                   || '</br>'
                   || 'Error running Webservice Request. '
                   || SQLERRM;
          END;
          BEGIN
             SELECT    v_result_url
                    || EXTRACTVALUE (VALUE (t),
                                     '/*/' || 'Return',
                                     'xmlns="http://www.myaddress.com"'
                    xmltype001
               INTO v_result_url,
                    v_xmltype001
               FROM wwv_flow_collections c,
                    TABLE
                        (XMLSEQUENCE (EXTRACT (c.xmltype001,
                                               '//' || 'Response',
                                               'xmlns="http://www.myaddress.com"'
                        ) t
              WHERE c.collection_name = v_collection_name;
          EXCEPTION
             WHEN OTHERS
             THEN
                v_message := v_message || '</br>' || 'Error reading Collection.';
          END;
       EXCEPTION
          WHEN OTHERS
          THEN
             p_message := v_message || '</br>' || SQLERRM;
       END create_webservice;
    END webservice_pkg;
    /If you use it this way, you will find out what the problem is much faster.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.apress.com/9781430235125
    http://apex.oracle.com/pls/apex/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • Application Express 4.0.2.00.07 apex_util.set_security_group_id exception

    Hi,
    I am trying to trigger apex_util.edit_user procedure.
    But first I need set security group id. I queried SELECT provisioning_company_id FROM APEX_040000.wwv_flow_companies where short_name='MIS' and tried apex_util.set_security_group_id (3587726189450463).
    But error is occued:
    Error report:
    ORA-20001: Security Group ID (your workspace identity) is invalid.
    ORA-06512: at "APEX_040000.HTMLDB_UTIL", line 3175
    ORA-06512: at line 2
    And also select * from apex_workspaces returned empty list... apex_util.find_security_group_id (p_workspace => 'MIS') return 0

    user13830503 wrote:
    Hi,
    I am trying to trigger apex_util.edit_user procedure.
    But first I need set security group id. I queried SELECT provisioning_company_id FROM APEX_040000.wwv_flow_companies where short_name='MIS' and tried apex_util.set_security_group_id (3587726189450463).
    But error is occued:You should use:
    l_workspace_id := apex_util.find_security_group_id (p_workspace => 'MIS');
        apex_util.set_security_group_id (p_security_group_id => l_workspace_id);See http://docs.oracle.com/cd/E17556_01/doc/apirefs.40/e15519/apex_util.htm#AEAPI512
    Error report:
    ORA-20001: Security Group ID (your workspace identity) is invalid.
    ORA-06512: at "APEX_040000.HTMLDB_UTIL", line 3175
    ORA-06512: at line 2
    And also select * from apex_workspaces returned empty list... apex_util.find_security_group_id (p_workspace => 'MIS') return 0Debug the apex_workspaces view to find out why its not showing up your workspace
    I guess it will be something to do with the schema you are trying to access from!

  • How to query the apex base tables .

    Hi,
    I need to apex tables from whic w can query the following.
    a. workspace information , workspace id's
    b. application information , application id's and schemas to which the application is linked to
    c. application users
    Thanks in advance.
    Regards
    Nikhil

    Nikhil,
    apex_workspaces, apex_applications and apex_workspace_apex_users views will give you the required information.
    also apex_dictionary view will give you list of all available apex views.
    Thanks,
    Manish

  • Referencing CSS from Shared Components/Cascading Style Sheets

    Apex 4.0
    I've been placing my CSS style sheet in Shared Components/Cascading Style Sheets. And referencing it as follows <link type="text/css" rel="stylesheet" media="screen" href="#WORKSPACE_IMAGES#app300.css">.
    For weeks all has seemed to work fine. I make changes to app300.css in Cascading Style Sheets. Clear cache. And see my change.
    But suddenly it stopped working. More specifically my updates don't take. I firebug and look at the file under CSS and don't see my changes. app300.css is unchanged. Then I deleted app300.css from Shared Components/Cascading Style Sheets. The file is deleted. No longer in the Cascading Style Sheets panel. But the old file still appears when I look under firebug.
    Simply a brain cramp for me. I know this is probably obvious but I can't figure it out.

    Hi,
    If your file still recides in the database, you might want to try deleting it with a procedure from the wwv_flow_api package:
    set serveroutput on
    declare
      l_security_group_id number;
    begin
      select workspace_id into l_security_group_id
      from   APEX_040000.APEX_WORKSPACES;
      wwv_flow_api.set_security_group_id
          (p_security_group_id => l_security_group_id);
      wwv_flow_api.create_or_remove_file
        ( p_name           => 'app300.css'
        , p_location       => 'WORKSPACE'
        , p_mode           => 'REMOVE'
        , p_type           => 'CSS'
      commit;
    end;
    You can run this using SQL developer/ Toad or whatever program you use, but I don't think you can run in the SQL workshop of Apex.
    Run it as workspace owner.
    First part sets the apex engine to point to the correct workspace id in Apex, change "APEX040000" to match your version of Apex.
    Second part is the procedure that should remove your file from the database.
    Make sure you commit your changes and try to upload your css file again.
    Regards,
    Vincent
    http://vincentdeelen.blogspot.com

  • How to create groups.

    Hi
    I have an oracle apex workspace (htmldb.oracle.com) and when I click on admin Application Administration>Manage Application Express Users. I get all the options of creating devloper/group/end users. But if I do it on my local machine (Apex 2.2) I dont get the same options i get
    User Privileges
    Roles:
    CONNECT RESOURCE DBA
    Direct Grant System Privileges:
    CREATE DATABASE LINK CREATE MATERIALIZED VIEW CREATE PROCEDURE
    CREATE PUBLIC SYNONYM CREATE ROLE CREATE SEQUENCE
    CREATE SYNONYM CREATE TABLE CREATE TRIGGER
    CREATE TYPE CREATE VIEW
    how can I replicate what I get in my oracle apex workspace on my local machine?

    also how do I querie this?
    I know yesterday you helped me with
    select * from APEX_WORKSPACE_APEX_USERS to get a list of users.
    Now I ran this on my local pc:
    SELECT * FROM wwv_flow_users
    it bought back more info than when I ran
    select * from APEX_WORKSPACE_APEX_USERS
    on a APEX 2.2.1.00.04 machine. whoever if I try to run
    SELECT * FROM wwv_flow_users
    from the APEX 2.2.1.00.04 machine it does not bring back anything any reason why? is it because I am not a DBA/ADMIN for this machine as I am classed as a developer when i run the apex_workspace query or is it not include in v2.2?

Maybe you are looking for