Adding "data owner" schema to apex workspace provided unexpected results

Recently I added a "data owner" schema to an existing apex workspace thinking it was a god idea.
As stated...
the schema that I added was a "data owner" schema and I was only suppose to have select capability for apex reporting.
After the schema was added to the workspace I felt I had owner privs on all of the schema objects and
could create objects and insert and update table records.
Needless to say... this is something that I do not want to do with tihs particular "data owner" schema BUT...
this is something that I feel is really good.
i.e. The Object Browser and Model are some excellent examples of the apex tool. :)I would just like to remove/block the insert/update capabilty against this particular schema from my workspace.
Any ideas on how to remove the update capability from my workspace or is it even possible?thanks in advance... :)
v/r
RJones

Ah, thanks I didn't see that section before.
I put the procedure details in the box; declaring the variables and the code to determine the context values
Logged in as a user and again as the schema owner (both with admin privs) I get this error back:
ORA-01031: insufficient privileges
Error ERR-1181 Unable to set VPD security context on page show.
This is my procedure:
Declare
V_COUNT NUMBER;
V_PRJ_USERNAME VARCHAR2(30);
V_USERID NUMBER;
V_PRJROLE VARCHAR2(30);
BEGIN
-- sets user name
V_PRJ_USERNAME := v('APP_USER');
V_PRJROLE := 'NO_ACCESS';
BEGIN
--gets user id from staff table
SELECT staf_id
INTO V_USERID
FROM PRJ_STAFF
WHERE staff_oracle_name = V_PRJ_USERNAME;
Select count(*)
into v_count
FROM DBA_ROLE_PRIVS
WHERE GRANTEE = V_PRJ_USERNAME
AND GRANTED_ROLE='PRJJ_GUEST_RL';
if v_count > 0 then
V_PRJROLE := 'GUEST';
end if;
Select count(*)
into v_count
FROM DBA_ROLE_PRIVS
WHERE GRANTEE = V_PRJ_USERNAME
AND GRANTED_ROLE='PRJJ_DEVELOPER_RL' ;
if v_count > 0 then
V_PRJROLE := 'DEVELOPER';
end if;
Select count(*)
into v_count
FROM DBA_ROLE_PRIVS
WHERE GRANTEE = V_PRJ_USERNAME
AND GRANTED_ROLE='PRJJ_MANAGER_RL' ;
if v_count > 0 then
V_PRJROLE := 'MANAGER';
end if;
Select count(*)
into v_count
FROM DBA_ROLE_PRIVS
WHERE GRANTEE = V_PRJ_USERNAME
AND GRANTED_ROLE='PRJJ_ADMIN_RL' ;
if v_count > 0 then
V_PRJROLE := 'ADMIN';
end if;
DBMS_SESSION.SET_CONTEXT('PRJ_SEC_PKG','USER_NAME','V_PRJ_USERNAME');
DBMS_SESSION.SET_CONTEXT('PRJ_SEC_PKG','USER_ID','V_USERID');
DBMS_SESSION.SET_CONTEXT('PRJ_SEC_PKG','USER_ROLE','V_PRJROLE');
END;
END;
Is there something wrong with my procedure?
Edited by: JodyMorin on Mar 27, 2009 6:23 AM

Similar Messages

  • How Can I Backup a Workspace or just a Schema in APEX Internal

    This thread is related to this thread: Re: How Can I Backup a Workspace or just a Schema in APEX
    Thanks!

    I already did iiittt.. see what happened:
    Hiii..
    I would like to know how to do the thing that i'm asking in this thread Re: How Can I Backup a Workspace or just a Schema in APEX
    DO NOT HIJACK OLD THREADS TO GET YOUR QUESTION ANSWERED.. Instead, please open a new thread and REFER back to the old thread if you need..
    Thank you,
    Tony Miller
    Dallas, TX

  • APEX Workspace Parsing Schema

    Can I give the parsing schema of the Workspace as a Schema existing in a Remote Database(while creating a workspace) . If yes, how can i do that?
    The goal is to point the application in a database to a schema in another database.
    Thanks
    Maheshkumar

    Hi Maheshkumar,
    Not really, there are many methods to share data between different systems, but if you are using two Oracle database instances that can easily connect across a network, then DB links are probably the easiest method, depending on your needs.
    What exactly are you trying to achieve?
    Andre

  • Is OIA supports adding Multiple data owners for single role?

    Hi
    Can you please let me know, if we can assign multiple data owners under resources tab, data mangement tab.
    Or with glossory upload using file based?
    The intension to keep backup data owner for each role for certifications.
    Thanks

    No, OIA does not support multiple data owner. You also cannot target the backup data owner in certification.

  • Invalid parsing schema for current workspace ID

    I have an application that captures different SQL statements (they make use of DB links) and dynamically executes them on demand.
    I use apex collections to get the result rows for the SQL and use them to both query on the UI as well as send out emails using the returned data. This is all OK and works fine.
    I then added another feature to my application where I support the scheduling of the running the SQL / sending out of the emails. It uses the same logic as I use from within the application but it fails with the following error ...
    Invalid parsing schema for current workspace ID
    when the SQL is being used to populate the collection.
    The scheduling is done using the apex plsql job scheduling package. It's as though the context that the job is running in is different from that of the application I created. The strange thing is that it can still see my tables that I created as the queries return data from my tables but for some reason seems to have an issue with the use of apex collections.
    Any ideas or suggestions would be greatly appreciated.

    Scott,
    Today the error mentioned in the last post occurred 3 times - the highest number in a single day yet. Also, to add to the dilemma, a new one occurred:
    ORA-20104: create_collection_from_query_b Error:ORA-20101: Application collection exists
    Knowing that the create collection process is called from a post authentication process I don't see how that the collection could exist for that session... Any ideas?
    Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen

  • Data load problem in Apex 3.2

    Hi
    Apex 3.2:
    Using Utilities>Data Load/Unload I am trying to load spreadsheet data. Despite reducing the data down to the simplest possible example I keep getting all rows rejected with
    ORA-00926: missing VALUES keyword     
    I have tried tab delimited and comma delimited. I can't find any other users hitting this problem, and I have been pleasantly surprised when I lasted used this facility many months ago on 3.1.2 when it worked like a dream.
    Any thoughts?
    thanks...

    PROBLEM SOLVED
    The schema and the workspace names were in the form:
    AAAAAAAAA-AA
    I found that data imports worked OK for other workspaces which happened to have simpler naming. I created a new workspace and schema (shorter and without the hyphen) and everything works OK.
    I then tried the same with a new schema and tablespace both called TEST-AB and the load failed with the same error
    I'm guessing that this is probably a known issue? It would be nice if Apex could reject illegal schema/tablespace names!
    I am gratefull for help offered from other replies and hope this observation will help others...

  • Data Import in Oracle Apex

    Hi,
    I have a requirement to provide a screen to user where they can import data from excel to existing table and i have seen a functionality in Data Workshop in Oracle Apex, but i am unable to use that since i have additional things needs to added into that. The requirment is mentioned below,
    1) Need a screen where user can select the excel file and start importing to one temp table without any validation
    2) those temp table data should be visible in Multi row form format in screen and user should able to modify the data
    3) Need a mapping screen or functionality like where user can map the column from temp table to original table before moving the data to original table (like Data Workshop)
    4) Data should be moved to original table and respective data should be deleted from temp table ( In case if any error occurs, error record should be displayed in temp table until unless user corrected data and move to original table)
    5) Need to add different kind of validation like, update the record in original record if same id is available or insert a record, not null value etc..
    Please suggest me how do i achive this in Apex.
    Is there any way to use the existing data workshop fuctionality code and design in my new screen?

    You will probably have to code this all by yourself... There are some packages that have been written to import Excel files and CSV style files..
    Here is a blog entry on doing the Excel file upload: http://avdeo.com/2008/05/21/uploading-excel-sheet-using-oracle-application-express-apex/
    Once you call that you could have a tabular form display the data to the user..
    The other processes would need to be written by you (migrating data from temp table to live data table..
    Thank you,
    Tony Miller
    Webster, TX
    On the road of life...There are 'windshields', and there are 'bugs'
    (splat!)
    "Squeegees Wanted"

  • Schema Assignment to WORKSPACE

    Hi,
    I developed Application in one of the custom Schema.
    WORSPACE : DEMOSPACE
    SCHEMA : DEMO
    Can i assign one more existing schema to "DEMOSPACE" like OE,SCOTT,HR..
    Best Regards
    Perumal Swamy.R

    Actualy while adding schema the process is
    completed.Eh? You are one confusing person. So you are already able to successfully associate another schema to your workspace?! So why in the world are we talking about that part? Why not focus on your real problem.
    Creation Method: As an application on a database
    table
    Table / View Owner DEMO (LOV Shows only DEMO
    Schema which is the Workspace owner).Clearly, you are using HTML DB Version 1.6 (that is something else you should mention up-front to avoid confusion)
    That Schema dropdown on that page is supposed to show you all the schemas associated with that workspace.
    If it does not, maybe your userid is restricted to access only subset of all schemas available to the workspace.
    Log in as a workspace admin and go to
    Home>HTML DB Workspace Administration>Manage HTML DB Users>Existing Users>Edit User for the userid that you are logging in as.
    Make sure that the "Accessible Schemas (null for all)" box is blank. This will ensure that the user will have be able to build applications using any of the schemas available to the workspace.

  • Attach existing Schema in Apex

    Sorry All,
    I have to post this tread here as the link to [Apex Forum|http://forums.oracle.com/forums/forum.jsp?forum=137|Apex] is not working since weeks.
    I need Oracle (sample) HR database in Apex workspace, when I requested for it (request existing schema) I got reply as The requested schema already exists. Can someone suggest me any alternate way to get it...?
    Thank for reading this post
    *009*

    Hi damorgan ,
    Thanks for the reply,
    well there are lots of reasons to believe so,
    1st is, I don't see the schema name in the drop down list of schema
    2nd SELECT object_type, COUNT(*)
           FROM dba_objects
           WHERE owner = 'HR'; this SQL does not work, ORA-00942: table or view does not exist (My schema does not have dba rights)
    3rdSELECT COUNT(*)
    FROM all_objects
    WHERE owner = 'HR'; returns
    COUNT(*)
    0
    1 rows returned in 0.21 secondsregards
    *009*

  • Permit access withing schemas in single workspace?

    Hi All,
    I would like to provide access to all my schemas within one workspace.
    basically, SCHEMA "A" and "B" would have access to each other's objects in single workspace.
    Can someone detail how to do this?
    I tried using MANAGE WORKSPACE TO SCHEMA ASSIGNMENTS" and could not find a way to do this
    thanks

    Hello,
    You can assign multiple schmeas to a workspace. Please read [url http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21678/adm_mg_wrkspc.htm#AEADM245]Managing Workspace to Schema Assignments
    basically, SCHEMA "A" and "B" would have access to each other's objects in single workspace.If you want to access Schema-B objects from Schema-A, then you have to grant respective privilege to Schema-A from Schema-B. This is not specific to APEX.
    Regards,
    Hari

  • Date popup problem in APEX 3.1

    Hi
    I have a date picker (DD-MM-YYYY HH24:MI) and after upgrading to APEX 3.1 from APEX 3.0.1 the popup window height is too small.
    The end user is having to resize the window to click on the OK button.
    Is there a file I can edit to increase the height, couldnt find it in templates/themes.
    Regards
    Adam

    Hi Adam,
    This is a bug in APEX 3.1. It was discussed here:
    Apex 3.1 Upgrade Issue - dba_lock and date picker display
    and here:
    Date Picker problem in Apex 3.1
    I'll let Carl investigate and provide an official response and recommendation. Although I know where this problem is occurring.
    The size of the popup calendar window is hard-wired in the file apex/images/javascript/apex_3_1.js. In APEX 3.0, the size of the popup window was determined programatically at runtime and was a function of the date format, if it included a time component or not.
    The uncompressed, readable version of this same file is in apex/images/javascript/uncompressed/apex_3_1.js. Look for p_DatePicker and you'll see what I'm talking about. You'll see the height is hard-wired to 210 and width to 258. In APEX 3.0, the height was set to 255 if the date format contained a time component.
    So my suggestion, until Carl provides an official response, is to look for '210' in apex/images/javascript/apex_3_1.js and change this to 255. Granted, all calendar popup windows will be this big, but it won't put as great a burden on the end-user.
    I hope this helps.
    Joel

  • SQL Developer extension for APEX workspace management

    Hi everyone,
    I've put together some SQL Developer extensions - one of them provides APEX workspace management
    from within SQL Developer when connected to the database as SYS. A screenshot and a short
    description is available here:
    http://sql-plsql-de.blogspot.com/2009/09/erweiterungen-fur-den-sql-developer.html?lang=en
    You can download the zip archive directly from here (the blog posting contains this link also)
    http://htmldb.oracle.com/pls/otn/f?p=20225:2:0::::P2_SUCHWORT:sqldev-ext
    Try it out - if you like it: Please give me feedback; if not: please do also
    Regards
    -Carsten
    Oracle 11g Release 2: New Features for Developers in German
    http://www.oracle.com/global/de/community/index.html
    BLOG: SQL und PL/SQL in Oracle
    http://sql-plsql-de.blogspot.com

    Hi,
    Looks very nice and I really like idea. Great job !
    For futher development idea:
    I like see that individual workspace admin could use same kind plugin, connecting DB with user that is assigned to workspace and manage only that WS properties.
    Br, Jari

  • Failed to retrieve data from the database/invalid argument provided when employing link between two web services datasources

    Post Author: vpost
    CA Forum: Data Connectivity and SQL
    I am trying to join information from two related web services within CR XI. I have successfully set up the web services as data sources have been able to get to the point where I get good data back. However, when I try to pull in certain fields, I get an error that says "Failed to retrieve data from the database/invalid argument provided". Here's the scenario:
    The web services are structured as follows:Web Service 1 (Artist) has attributes of Artist Name and Date of Birth.Web Service 2 (CD) has attributes of CD Title and Release Date. Underneath each CD are songs, each of which have a Song Title and Artist Name.
    I have defined both web services and defined a link between Artist.Artist Name and CD/Song.Artist Name. I am able to run a report with Song Title and Date of Birth that crosses web services. I am able to run another report with Song Title and CD Title that crosses the different levels in the second web service. However, if I add CD Title to the first report or Date of Birth to the second (both of which effectively force CR to employ the link between the two web services AND the CD/Song hierarchical structure in the second web service, I get the aforementioned error.
    Any assistance understanding how multiple web services can be linked in this manner would be greatly appreciated.
    Thanks in advance.

    Post Author: Mike Wright
    CA Forum: Data Connectivity and SQL
    Not sure about your exact situation, but having similar problem with another application and have tracked down to security. Added user to group Domain Admin and it works fine. It appears to be accessing a subdirectory which it does not have permission to use and then times out and returns the "invalid....". Seems that once the query just over a certain size (and I'm not sure what triggers this) it needs to make use of temparory file disk, intead of ram.
    I'm still trying to track down which temporary it's trying to uses - so if you have any ques.
    cheers

  • Data Owner Certification in Oracle identity analytics

    Hi all,
    I am trying to do data owner certification in OIA.
    Certification is getting completed 100%. But, the remediation is not working.
    I have applied the BP4 patch also.
    Steps followed for the data owner certification:*
    1)In identity certification, selected new certification--> Type:Data Owner.
    2)Selection Strategy: By Data Owner
    3)Added the data owners and clicked next.
    4)Selected the certifier as data owner and created the certificate.
    5)I logged in as the certifier and opened the certificate.
    6)Chose 'does not belong to me' and completed the certificate.
    When i checked the status in remediation tracking, it shows that the certificate is complete.
    But, the attribute is not revoked.
    Please let me know if something is missing in my procedure.
    Regards,
    Narmadha.

    Hi Narmadha,
    The first screen of the certification will show all the 'attributes' that belong to the Data owner. Accordingly you can 'claim' them.After claiming them, you can examine the users who have the attributes that you claimed for. Over here you can perform certify/revoke/ etc.. for the users. Once the certification is complete, you can view the result from two places. you can view the report from clicking the completed certification and from the Reports Tab. Once you are in reports Tab, go to sign-off reports and navigate to completed reports sub-tab. There you will see all the reports generated for completed certifications.

  • ORA-20001: Invalid parsing schema for current workspace ID

    I recently upgraded Apex version from 4.0 to 4.2 successfully. Everything looks good except in one of the applications, I am running into
    ORA-20001: Invalid parsing schema for current workspace ID ( see below for detailed debug info). It seems this page region code is still looking at
    old apex scehma APEX_040000 instead of APEX_040200 somehow. Any ideas.
    is_internal_error: true
    apex_error_code: APEX.REGION.UNHANDLED_ERROR
    ora_sqlcode: -20001
    ora_sqlerrm: ORA-20001: Invalid parsing schema for current workspace ID
    component.type: APEX_APPLICATION_PAGE_REGIONS
    component.id: 21560330709310725
    component.name: Calendar
    error_backtrace:
    ORA-06512: at "APEX_040000.WWV_FLOW_ASSERT", line 377
    ORA-06512: at "APEX_040000.WWV_FLOW_ASSERT", line 386
    ORA-06512: at "APEX_040000.WWV_RENDER_CALENDAR2", line 462
    ORA-06512: at line 27
    ORA-06512: at "SYS.DBMS_SYS_SQL", line 1926
    ORA-06512: at "SYS.WWV_DBMS_SQL", line 1064
    ORA-06512: at "APEX_040200.WWV_FLOW_DISP_PAGE_PLUGS", line 4613
    ORA-06512: at "APEX_040200.WWV_FLOW_DISP_PAGE_PLUGS", line 3220
    OK

    Thanks Patrick. Just wanted to make you're referring to the below code. what package I would be using instead of 'wwv_render_calendar2.show'
    wwv_render_calendar2.show (
    p_query => q,
    p_max_rows => '5',
    p_heading_bgcolor => '#CCCC99',
    p_table_bgcolor => 'WHITE',
    p_monday_friday_only => 'NO',
    p_non_curr_month_attr => 'bgcolor="#F7F7E7"',
    p_month_font_face => 'Arial',
    p_month_font_size => '+1',
    p_month_font_color => 'BLUE',
    p_day_font_face => 'Arial',
    p_day_font_size => '+1',
    p_day_font_color => 'BLACK',
    p_cell_font_face => 'Arial',
    p_cell_font_size => '-2',
    p_cell_font_color => 'BLACK',
    p_page_width => '95%',
    p_show_month_above_tab => 'YES',
    p_min_blank_cell_height => '45',
    p_calendar_day_date_fmt => 'MM/DD/YYYY',
    p_cur_local_date => '');
    end;

Maybe you are looking for

  • Badi for purchase requisition and stock transfer order

    Hi, Could anybody please tell the BADI to update the item details (dates etc) in the 'Purchase requisition' and stock transfer orders. I could find ME_PROCESS_REQ etc but could not locate the methods to modify the item level data. Thanks & regards, R

  • 2lis_13_vdkon setup issues

    Hi- I am trying to fill the set up tables for 2LIS_13_VDJON. When I check RSA3, I see "ZERO" records. I even checked Sm37 to see if there is any error is the job log. It shows "finished". let me know what could be the reason...

  • "Invalid Cursor Name" error at high volumes

    I have a customer using the Microsoft ODBC driver to connect from NT to a remote HP-UX box running Oracle. At transaction volumes of thousands per hour, they are receiving "Invalid cursor name' errors from the ODBC cursor library approximately a doze

  • Does anyone know how I can change the font size on my Palm Desktop?

    My IBM Thinkpad T23 shows the Palm Desktop memos, addresses and calendar information in very small fonts that are hard to read and I have not found a way to change them. Post relates to: Treo 600 (Verizon)

  • Temporary Files? / Debugging Application?

    :_| Hy there, a few days ago one of our productmanagers came to me and described me a production problem they have with one bought application on our terminalservers. I traced the problem with filemon and regmon and it showed that the app wants to wr