Will there be a lock on database row?

Hi,
I have a stateless session bean with TX_BEAN_MANAGED methods and TX_SERIALIZABLE isolation level. I am not doing a usertransaction.begin() in the method, but i am getting the connections from a datasource. I am not doing any updates/insert/delete as well. It is only read.
Are the connections that i took associated to any transactions?
If i do a read on a row from this method, will there be a lock on that row(since isolation level is serializabe) and for how long?
thanks for your help!
toby

I understand that you have set TX_SERIALIZABLE/TX_BEAN_MANAGED/method level.
If you open a connection in the method and read some rows, those rows will be locked till you exit the method.

Similar Messages

  • Is there a way to BULK COLLECT with FOR UPDATE and not lock ALL the rows?

    Currently, we fetch a cursor on a few million rows using BULK COLLECT.
    In a FORALL loop, we update the rows.
    What is happening now, is that we run this procedure at the same time, and there is another session running a MERGE statement on the same table, and a DEADLOCK is created between them.
    I'd like to add to the cursor the FOR UPDATE clause, but from what i've read,
    it seems that this will cause ALL the rows in the cursor to become locked.
    This is a problem, as the other session is running MERGE statements on the table every few seconds, and I don't want it to fail with ORA-0054 (resource busy).
    What I would like to know is if there is a way, that only the rows in the
    current bulk will be locked, and all the other rows will be free for updates.
    To reproduce this problem:
    1. Create test table:
    create table TEST_TAB
    ID1 VARCHAR2(20),
    ID2 VARCHAR2(30),
    LAST_MODIFIED DATE
    2. Add rows to test table:
    insert into TEST_TAB (ID1, ID2, LAST_MODIFIED)
    values ('416208000770698', '336015000385349', to_date('15-11-2009 07:14:56', 'dd-mm-yyyy hh24:mi:ss'));
    insert into TEST_TAB (ID1, ID2, LAST_MODIFIED)
    values ('208104922058401', '336015000385349', to_date('15-11-2009 07:11:15', 'dd-mm-yyyy hh24:mi:ss'));
    insert into TEST_TAB (ID1, ID2, LAST_MODIFIED)
    values ('208104000385349', '336015000385349', to_date('15-11-2009 07:15:13', 'dd-mm-yyyy hh24:mi:ss'));
    3. Create test procedure:
    CREATE OR REPLACE PROCEDURE TEST_PROC IS
    TYPE id1_typ is table of TEST_TAB.ID1%TYPE;
    TYPE id2_typ is table of TEST_TAB.ID2%TYPE;
    id1_arr id1_typ;
    id2_arr id2_typ;
    CURSOR My_Crs IS
    SELECT ID1, ID2
    FROM TEST_TAB
    WHERE ID2 = '336015000385349'
    FOR UPDATE;
    BEGIN
    OPEN My_Crs;
    LOOP
    FETCH My_Crs bulk collect
    INTO id1_arr, id2_arr LIMIT 1;
    Forall i in 1 .. id1_arr.COUNT
    UPDATE TEST_TAB
    SET LAST_MODIFIED = SYSDATE
    where ID2 = id2_arr(i)
    and ID1 = id1_arr(i);
    dbms_lock.sleep(15);
    EXIT WHEN My_Crs%NOTFOUND;
    END LOOP;
    CLOSE My_Crs;
    COMMIT;
    EXCEPTION
    WHEN OTHERS THEN
    RAISE_APPLICATION_ERROR(-20000,
    'Test Update ' || SQLCODE || ' ' || SQLERRM);
    END TEST_PROC;
    4. Create another procedure to check if table rows are locked:
    create or replace procedure check_record_locked(p_id in TEST_TAB.ID1%type) is
    cursor c is
    select 'dummy'
    from TEST_TAB
    WHERE ID2 = '336015000385349'
    and ID1 = p_id
    for update nowait;
    e_resource_busy exception;
    pragma exception_init(e_resource_busy, -54);
    begin
    open c;
    close c;
    dbms_output.put_line('Record ' || to_char(p_id) || ' is not locked.');
    rollback;
    exception
    when e_resource_busy then
    dbms_output.put_line('Record ' || to_char(p_id) || ' is locked.');
    end check_record_locked;
    5. in one session, run the procedure TEST_PROC.
    6. While it's running, in another session, run this block:
    begin
    check_record_locked('208104922058401');
    check_record_locked('416208000770698');
    check_record_locked('208104000385349');
    end;
    7. you will see that all records are identified as locked.
    Is there a way that only 1 row will be locked, and the other 2 will be unlocked?
    Thanks,
    Yoni.

    I don't have database access on weekends (look at it as a template)
    suppose you
    create table help_iot
    (bucket number,
    id1    varchar2(20),
    constraint help_iot_pk primary key (bucket,id1)
    organization index;not very sure about the create table syntax above.
    declare
      maximal_bucket number := 10000; -- will update few hundred rows at a time if you must update few million rows
      the_sysdate date := sysdate;
    begin
      truncate table help_iot;
      insert into help_iot
      select ntile(maximal_bucket) over (order by id1) bucket,id1
        from test_tab
       where id2 = '336015000385349';
      for i in 1 .. maximal_bucket
      loop
        select id1,id2,last_modified
          from test_tab
         where id2 = '336015000385349'
           and id1 in (select id1
                         from help_iot
                        where bucket = i
           for update of last_modified;
        update test_tab
           set last_modified = the_sysdate
         where id2 = '336015000385349'
           and id1 in (select id1
                         from help_iot
                        where bucket = i
        commit;
        dbms_lock.sleep(15);
      end loop;
    end;Regards
    Etbin
    introduced the_sysdate if last_modified must be the same for all updated rows
    Edited by: Etbin on 29.11.2009 16:48

  • Is there way to get lock holder by row id?

    My problem is that sometimes some rows get locked for long time and I don't know who holds lock.
    Ideally I want query which takes table_name and primary key value and outputs lock holder information. (e.g sql text, how long query is being running, etc)
    I've found in documentation that there is no central place where row locks are stored and that this is row level metadata.
    My question is: Can I get this row level metadata somehow for concrete row? (I believe this should be possible)
    My usecase would be as follows:
    1. try to get lock for row for id=#N (select for update semantics, actually hibernate is used for that but it shouldn't make difference here)
    2. get error (now i'm getting ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired)
    3. This step is what I want to add. Get information about lock holder for row with id=#N and write it into log file.
    Here is query I was playing with which outputs general information about transactions having locks but it's not what I need in terms of row level locking:
    select a.sql_text, l.ctime, s.STATUS, s.SQL_EXEC_START, s.PROGRAM from
    v$lock l join v$session s on (l.sid = s.sid)
    join v$sqlarea a on (a.hash_value = s.sql_hash_value)
    where l.type='TX' and l.lmode>0;

    Welcome to the forum!
    Whenever you post provide your 4 digit Oracle version.
    >
    My problem is that sometimes some rows get locked for long time and I don't know who holds lock.
    >
    See this Oracle Magazine article.
    http://www.oracle.com/technetwork/issue-archive/2012/12-jul/o42dba-1566567.html
    >
    You can find the specific row that is locked by first finding the table containing that row. To find that table, use the same V$SESSION view; in this case, the information is in the ROW_WAIT_OBJ# column, which shows the object number of the table whose row is being locked. You can then get the name of the table from the DBA_OBJECTS view, using this object number, as shown in Listing 3.
    >
    For 'who holds the lock' see this thread
    How to check Locking sessions in oracle 10g
    There are many other similar results on the net.

  • Will there be future database support of mySQL and php 5.5 on the dreamweaver CC?

    Will there be future support of mySQL and php 5.5 on the dreamweaver CC? I have seen various topics on this, and havent seen any answers on this as of yet. I feel it is very important to have this available, and not from some external company as an addon or something. I come from cs6 products, and am debating whether or not I should even join the creative cloud, or participate any further with Adobe products.
    I have been a fan of Adobe for quite some time. However, if there isn't going to be any database tools within DW, I may decide to pass on the CC and comepletely hand code it all from now on.
    Has anyone found yes or no answer to this yet? I am assuming there is no news yet, as the adobe posts I have read have no additional info other than they haven't updated the tools, thus removing them from CC.

    Mikaroni wrote:
    Will there be future support of mySQL and php 5.5 on the dreamweaver CC? I have seen various topics on this, and havent seen any answers on this as of yet. I feel it is very important to have this available, and not from some external company as an addon or something. I come from cs6 products, and am debating whether or not I should even join the creative cloud, or participate any further with Adobe products.
    I have been a fan of Adobe for quite some time. However, if there isn't going to be any database tools within DW, I may decide to pass on the CC and comepletely hand code it all from now on.
    Has anyone found yes or no answer to this yet? I am assuming there is no news yet, as the adobe posts I have read have no additional info other than they haven't updated the tools, thus removing them from CC.
    I very much doubt that any future addition of DW will include any 'official' support for mySql database interactivity. CC hide the server behaviours this time around in an extention to be activated by the individual, its still available in CC but at the users own disgression, mySql is dead. You should be connecting and querying your databases using other methods like mySqli. Adobe have seen it fit to go in other directions and dispite the outcry of dropping the server behaviours there has been a deafening silence from Adobe. From that you can take it they think it is no longer an important part of their software package.
    Mikaroni wrote:
    I have been a fan of Adobe for quite some time. However, if there isn't going to be any database tools within DW, I may decide to pass on the CC and comepletely hand code it all from now on.
    I have not updated to CC because it contains zero that would be of importance to my workflow. The more experienced a code writer you are the less DW has to offer. Any serious code writer would not miss DW if it went out of business. Fireworks is more important to me which LOL is going out of business...go figure. I think the Adone execs are screwed up snorting cocaine or something. I'm not really even sure why I use DW, maybe out of habit.
    Certainly hand coding for database connectivity and querying is the ONLY way to go if you are not interested in third party extentions because continuing to use the current available server behaviours is a backwards step. I don't know how good these third party extentions are because there has never been a lot of talk about them around here which leads me to believe not many are considering them, maybe.

  • TS1702 my safari is frozen.  it will not operate and is dark.  Also there is a 'lock' symbol above the address box

    When I open safari, I can pull up mail and facebook ok, but that's as far as I can go.  It is frozen and dark.  Also there is a lock emblem above the address line.

    Try clearing Safari's cache : Settings > Safari > Clear Cookies And Data (Clear Cache on iOS 4) and also Clear History
    If that doesn't work then try closing Safari completely and then re-open it : from the home screen (i.e. not with Safari 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Safari app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    A third option is a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.
    For the lock sysmbol, whereabouts is it ? Is it next to the battery indicator, indicating that you've got rotation lock on ?

  • [locked] Will there be a grace period for CS5?

    Hi.
    I don't like this question about the new Creative Suite and when it will finally be released. But I've a question about the grace periods Abobe offered the last times after their release announcements. Will there be one for CS5 too?
    Best regards

    Rick,
    Can you please expound on exactly what is meant by the "grace period"? Are you referring to the duration of a trial? Or possibly a certain length of time one is able to upgrade at a reduced price/
    The "grace period," that I was referring to is the purchase of, in this case, CS4, just prior to the release of CS5. Historically, with a smallish window in time, where the newer upgrade is offered free to those who qualify. IIRC, that window has been about 30 days, prior to the official release of the newer version. Many software companies do similar. That is what I was referring to, and assumed that the OP was, as well.
    Now, Adobe has done "pre-sells" for some programs, so I do not know how this might affect things. Again, only the product marketing folk can definitively comment. Mine are just speculation, based on decades of using Adobe products. Still, I do not recall having ever purchased an upgrade, within the time frame to get the new one free. I usually upgrade much earlier, and just use the new program. When a newer one comes out, I study it, and then decide if I really need that.
    Hope that this clears up, where I was coming from,
    Hunt

  • RE: Active locking of DB rows

    Dennis,
    While I agree with both Prasad Muppirala, and Thomas Mercer Hursh, I also
    recognize the business requirement listed in your letter to avoid changing
    other applications that use the same database tables. I can think of two
    possible solutions to your dilemma:
    1) Follow the path that you have described, using individual DBSessions - I
    think that there is a paper by Diana Quintal of Forte that may describe a
    similar scenario. It should talk about building your own router, and using
    separate sessions.
    2) Consider the Distributed option in the Oracle server. In this case, you
    might distribute the tables to two instances, or even to two separate table
    owners, and use Oracle to manage the synchronization of data. While this
    may not help if the apps have real-time, up-to-the-second data needs, it
    would definitely allow you to build a Forte application that is more on the
    shared DBSession model, so that you would not need to change it as you
    migrate other applications to Forte.
    Without more review of your situation, I'm afraid I have no more
    suggestions, but please feel free to contact me if you wish.
    Good luck,
    Brian Wilson
    From: Wetzel, Dennis R
    To: 'Forte-Users'
    Subject: Active locking of DB rows
    Date: Saturday, March 29, 1997 10:13AM
    I have a customer who has a requirement to do active DB locking (Oracle
    7.x). Their current applications are written in Oracle Forms 3.0. The
    behavior in the current applications is that when a user begins to edit
    information via an Oracle Forms application the underlying DB records
    are write locked, thus preventing any other user from changing those
    records until the first user completes their transaction. Because other
    applications, not written in Forte, will be accessing the DB, we need to
    use the DB locking mechanisms to manage locks (i.e. we can't change the
    existing applications). Our original intent was to use shared
    DBSessions that were created from a DBResource Manager at application
    startup to provide access to the DB. We are willing to incur the
    overhead of creating individual DBSessions as users login to the
    application (each user will have an Oracle account). I've just begun
    looking into possible solutions, any ideas are greatly appreciated.
    Thanks,
    Dennis Wetzel
    C/Soft, Inc
    Carmel, IN

    Dennis,
    While I agree with both Prasad Muppirala, and Thomas Mercer Hursh, I also
    recognize the business requirement listed in your letter to avoid changing
    other applications that use the same database tables. I can think of two
    possible solutions to your dilemma:
    1) Follow the path that you have described, using individual DBSessions - I
    think that there is a paper by Diana Quintal of Forte that may describe a
    similar scenario. It should talk about building your own router, and using
    separate sessions.
    2) Consider the Distributed option in the Oracle server. In this case, you
    might distribute the tables to two instances, or even to two separate table
    owners, and use Oracle to manage the synchronization of data. While this
    may not help if the apps have real-time, up-to-the-second data needs, it
    would definitely allow you to build a Forte application that is more on the
    shared DBSession model, so that you would not need to change it as you
    migrate other applications to Forte.
    Without more review of your situation, I'm afraid I have no more
    suggestions, but please feel free to contact me if you wish.
    Good luck,
    Brian Wilson
    From: Wetzel, Dennis R
    To: 'Forte-Users'
    Subject: Active locking of DB rows
    Date: Saturday, March 29, 1997 10:13AM
    I have a customer who has a requirement to do active DB locking (Oracle
    7.x). Their current applications are written in Oracle Forms 3.0. The
    behavior in the current applications is that when a user begins to edit
    information via an Oracle Forms application the underlying DB records
    are write locked, thus preventing any other user from changing those
    records until the first user completes their transaction. Because other
    applications, not written in Forte, will be accessing the DB, we need to
    use the DB locking mechanisms to manage locks (i.e. we can't change the
    existing applications). Our original intent was to use shared
    DBSessions that were created from a DBResource Manager at application
    startup to provide access to the DB. We are willing to incur the
    overhead of creating individual DBSessions as users login to the
    application (each user will have an Oracle account). I've just begun
    looking into possible solutions, any ideas are greatly appreciated.
    Thanks,
    Dennis Wetzel
    C/Soft, Inc
    Carmel, IN

  • How to find out, who locked the same row

    Dears,
    I have a problem,
    sometimes our user complain that, when he tyring to make a transaction to a specific customer's Account
    its says 'Some other user access the same account, keep trying...' (like this).
    and in this response I just kill that user's session. then he can make the transaction by reconnecting.
    sometimes my solution(killing the session) can not slove this problem.it stayed even 5/6 hours long.
    in this time,i cannot find any bloking session or such a long waiting session.
    In this Scenario..
    I need to find out who(SID,SERIAL#,USERNAME) locked the same ROW (not table).
    There are many users who are locking different rows of the same table at the
    same time. I need to find the one who locked my row.
    is it possible to find out, who locked the specific customer's Account ?
    I am trying to find out by the following query but failed.
    SELECT s.SID, serial#, machine, osuser, terminal, b.object_name,
    row_wait_obj#, row_wait_file#, row_wait_block#, row_wait_row#,
    DBMS_ROWID.rowid_create (1,
    row_wait_obj#,
    row_wait_file#,
    row_wait_block#,
    row_wait_row#
    ) rowidd
    FROM v$session s, dba_objects b
    WHERE s.row_wait_obj# = b.object_id
    SELECT *
    FROM (SELECT s.SID, serial#, machine, osuser, terminal, b.object_name,
    row_wait_obj#, row_wait_file#, row_wait_block#, row_wait_row#,
    DBMS_ROWID.rowid_create (1,
    row_wait_obj#,
    row_wait_file#,
    row_wait_block#,
    row_wait_row#
    ) rowidd
    FROM v$session s, dba_objects b
    WHERE s.row_wait_obj# = b.object_id)
    WHERE rowidd IN (SELECT ROWID
    FROM account_mas
    WHERE branch = '999' AND accout_no = '009990215454')
    please help me...
    My Database version- 10.2.0.4, windows
    Regards
    Halim
    Edited by: Abdul Halim on Oct 26, 2009 2:43 AM

    Just check with this query, find the lock and kill the session.
    select b.session_id ,a.SERIAL#, a.username "Blocker Details"
    from v$session a,dba_lock b
    where b.session_id = a.sid
    and b.blocking_others = 'Blocking';
    Regards
    Asif kabir

  • Missing class indicator field from database row

    Hi,
    I have following problem :
    There is a class inheritance with root interface and 4 subclasses, they are initialized with class indicator field. If I use ReadAllQuery with an interface or some of concrete class as search class - it is working perfect, but if I try to build query with custom selected fields (addPartialAttribute) I always get an error - Missing class indicator field from database row.
    AFAIK This field have not to be mapped in Workbench to real table column, how can I tell TopLink that I will read this indicator field too by reading some custom fields ? I thought TopLink reads such fields automatically, like it does it with primary keys.
    Thank you
    Maksim

    This sounds like an issue with our partial attribute queries and inheritance as the type indicator column must always be read. Can you map the type indicator to a read-only attribute (mark mapping as read-only) and include this in your list of attributes as a work-around?
    Doug

  • Is there any well designed sample database availabe for download ?

    Hi
    Thank you for reading my post
    I get the Oracle Express 10g and now i am looking for a good database with some test data inside it
    to practice some tuning and sql commands.
    is there any (rather big ) sample database available for download ?
    Thanks

    Hello,
    XE ships with the Sample Application that includes the HR schema with some objects to work on. By default, the HR user account is locked so you need to unlock it first. It's usually a good place to start as many current and future documentation based on XE will include examples from this schema.
    Przemek

  • Inserting and updating only if there is no locks

    Is there a way to insert or update or merge data in table only if there is no locks i.e. if another process is executing update into table with a key = 1 and I'm trying to perform update for the same row then nothing happens and if no one is locking row then update is performed.
    In sql server I can do it this way:
    update my_table with (NOWAIT) set row1 = 1 where key = 1;
    Is there a way to do something similar in oracle?

    LeopoldStoch wrote:
    Is there a way to insert or update or merge data in table only if there is no locks i.e. if another process is executing update into table with a key = 1 and I'm trying to perform update for the same row then nothing happens and if no one is locking row then update is performed.
    In sql server I can do it this way:
    update my_table with (NOWAIT) set row1 = 1 where key = 1;
    Is there a way to do something similar in oracle?I think you'd want to do some reading about optimistic and pessimistic locking. Assuming this is any kind of web app (stateless environment), you'd likely want to drop some optimistic locking routine in place to ensure that the row you are trying to update hasn't been changed since your last view of the data.
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:5771117722373
    When you have 2 sessions attempting to update the same data, Oracle locks the record for you. Session #2's update cannot be applied until session #1 has either committed or rolled back it's transaction against the row being modified. However session 2 will wait until session 1 commits or rolls back ... so you wouldn't "know" the row was being touched unless you did some programming to determine this.
    You also may want to understand how Oracle implements things (it's quite different than the default SQL Server implementation).
    http://download.oracle.com/docs/cd/E11882_01/server.112/e16508/consist.htm#CNCPT221

  • Partial locking for a row

    Hello,
    For example, I have two queries, the first one just accesses
    the first entry of the row. And the second one just accesses the
    second entry of the row.
    Is there any locking method ? Such that I can lock the first
    entry of the row when I use the first query and lock the second
    entry of the row when I use the second query. So that I can
    speed up the performance of my system in this way.
    null

    If you're trying to lock on a per-column basis, you won't be able
    to, since locks are granular to a per-row basis, not below.
    If you want to lock a specific row on a table, you may use a
    2-phase commit method like so:
    EXEC SQL
    SELECT A.ROWID, B.ROWID, <rest of rowid's>, <rest of data>
    INTO :blabla, :blabla,.....
    FROM TEST_TABLE_1 A, TEST_TABLE_2 B, <rest of tables>
    WHERE <where clause w/joins, etc...>
    FOR UPDATE;
    This will acquire row-locks on all tables referenced, for all
    rows fetched by the SELECT.
    This lock will be released when you close the current transaction
    with a COMMIT or a ROLLBACK (or, if using from within a cursor,
    when the cursor is closed if your configuration is set this way).
    That means that you would:
    1) Acquire the locks on all the rows
    2) Do all your work using the ROWID's to locate the rows to query
    or manipulate (while they're locked)
    3) Commit or rollback
    This will allow you to use row-level locks, which increases
    concurrency and makes the SQL code a lot faster (because of the
    use of rowid's).
    I've found that the best method to do this is to use a cursor,
    and then work on that cursor's fetches using the ROWID's (NOT the
    WHERE CURRENT OF CLAUSE when there is more than one table
    involved in the lock mechanism).
    Best
    Diego
    Stephen Lee (guest) wrote:
    : Hello,
    : For example, I have two queries, the first one just
    accesses
    : the first entry of the row. And the second one just accesses
    the
    : second entry of the row.
    : Is there any locking method ? Such that I can lock the
    first
    : entry of the row when I use the first query and lock the second
    : entry of the row when I use the second query. So that I can
    : speed up the performance of my system in this way.
    null

  • When will APEX be capable of observing Database Roles?

    Hi All,
    When will APEX be capable of observing Database Roles and RLS?
    Joel Kallman in his APEX blogspot article " [Application Express and parsing SQL|http://joelkallman.blogspot.com/]" states that
    +"the execution of SQL in an Application Express application still does not observe roles when parsing user SQL. This remains true for the recently released Application Express 4.0"+
    Is there anyone with inside knowledge of APEX who can shed light on this?
    Amgine

    Hi All,
    Thank you for responding to this discussion.
    The initial point of my post was to indicate that applying fine grained data security with APEX, is problematic. In my organisation we have hundreds of databases, thousands of tables and a requirement to protect confidential data. The DBA's and Developers over the years have developed a system of controlled data access based on database roles, Row Level Security with policies, and even Cell Level Security.
    We are looking at APEX as a means of replacing Oracle Forms and Reports. The method by which CRUD applications are made with
    APEX methodology, involves assigning schemas to a workspace. Doing this circumvents all of the above-mentioned security, because APEX developers, then take on the effective role of schema owner.
    If an application is created using the schema, assigned to a workspace, it requires the APEX application developer to develop a parallel authentication/authorization scheme, to match the levels of control normally achieved by the database data security methods.
    e.g.. I can easily create a form with select, insert, update capability, based on a table normally having restricted record access and even select only access, controlled by roles or RLS methods. If do not explicitly create a complex Authentication/Authorization system to protect the data, I could easily, and accidently, expose restricted or confidential data, and the unintended ability to modify it, to the end user.
    I have found by experiment that there is a partial solution to this problem:
    If schema's are not directly assigned to the workspace but instead, a single parsing schema with minimal system privileges is created, and no other schema is assigned to the workspace. The privileges on individual schema objects are then granted to the parsing schema. Applications can then be built which limit the CRUD operations which may be implemented.
    With my current APEX /Oracle DB There is still the problem that privileges (e.g. insert, update select on table X) cannot be granted to the parsing schema via a role but need to be explicitly granted. This becomes a maintenance nightmare for the schema owner or DBA, normally avoided by use of roles and/or RLS.
    In answer to Andre. I a currently use APEX ver. 3.1.2.00.0 and Oracle 10.2.0.
    According the APEX Builder notes:
    In Oracle Database Server versions before 10.2.0.3, these privileges must be granted directly to the schema. In Oracle Database Server versions 10.2.0.3 and later, these privileges may be granted to the schema directly or through a role in order for the SQL Workshop to be able to perform the operation using the selected schema.
    The reason you can't use roles is because you are always identified in session as APEX_PUBLIC_USER with privileges granted by proxy via the parsing schema, never as the logged on user.
    Using the following query logged on as sys:
    select
    username,
    osuser,
    program
    from v$session
    where type='USER'
    gives results:
    USERNAME    OS_USER    PROGRAM
    APEX_PUBLIC_USER SYSTEM Apache.exe
    Amgine

  • Re: what is difference between sap locking and database locking

    hi,
        what is difference between sap locking and database locking. Iam locked the table mara by using lock objects.
    But iam unable to unlock the mara table. I give u the coding. Please check it.
    REPORT zlock .
    CALL FUNCTION 'ENQUEUE_EZTEST3'
    EXPORTING
       MODE_MARA            = 'S'
       MANDT                = SY-MANDT
       MATNR                = 'SOU-1'.
    call transaction 'MM02'.
    CALL FUNCTION 'DEQUEUE_EZTEST3'
         EXPORTING
              mode_mara = 'E'
              mandt     = sy-mandt
              matnr     = 'SOU-1'.
    IF sy-subrc = 0.
      WRITE: 'IT IS unlocked'.
    ENDIF.

    Hi Paluri
    Here is the difference between SAP locks and Database locks, i will try to find the solution to your code.
    Regards
    Ashish
    Database Locks: The database system automatically sets database locks when it receives change statements (INSERT, UPDATE, MODIFY, DELETE) from a program. Database locks are physical locks on the database entries affected by these statements. You can only set a lock for an existing database entry, since the lock mechanism uses a lock flag in the entry. These flags are automatically deleted in each database commit. This means that database locks can never be set for longer than a single database LUW; in other words, a single dialog step in an R/3 application program.
    Physical locks in the database system are therefore insufficient for the requirements of an R/3 transaction. Locks in the R/3 System must remain set for the duration of a whole SAP LUW, that is, over several dialog steps. They must also be capable of being handled by different work processes and even different application servers. Consequently, each lock must apply on all servers in that R/3 System.
    SAP Locks:
    To complement the SAP LUW concept, in which bundled database changes are made in a single database LUW, the R/3 System also contains a lock mechanism, fully independent of database locks, that allows you to set a lock that spans several dialog steps. These locks are known as SAP locks.
    The SAP lock concept is based on lock objects. Lock objects allow you to set an SAP lock for an entire application object. An application object consists of one or more entries in a database table, or entries from more than one database table that are linked using foreign key relationships.
    Before you can set an SAP lock in an ABAP program, you must first create a lock object in the ABAP Dictionary.

  • Will there be an option to mute sounds in tabs inividually in Firefox?

    Dear Sir/Madam,
    If I'm searching for stuff, I like to open multiple pages in a new tab by clicking on it with the middle-mouse-button.
    Sometimes, the page loads sounds while doing this. In turn I have to search in what tab the sound is played, which can be quite annoying.
    There is a way to say that Firefox won't start flash-programs, but this is quite annoying and doesn't always solve the problem.
    In another browser that I had to use but don't like, tabs show an icon so that you can see which tab has sound, but so far I haven't found any way to make this happen in Firefox.
    Will there be an option to at least see which tab has sound in future updates? And if so, will it be possible to mute said tabs?
    Hope to hear from you soon.
    Kind Regards,
    Lex van de Wiel

    I looked into this a couple months ago and concluded at that time: Based on information in the bug tracking database, when a plugin (Flash, QuickTime, Silverlight) is playing audio, it is difficult for Firefox to detect that and difficult to track down to a particular tab.
    Hopefully this will be possible in the future. Or maybe someone has created a new add-on.

Maybe you are looking for

  • External List: List View Web Part query never returns

    I am experiencing an usual issue in our development SharePoint 2013 environment. I have been troubleshooting it for a couple hours, so thought it is time to post a message here. I have created a number of external content types and lists on our site.

  • 11G R2 Enterprise Manager Configuration

    Hey everyone, I'm trying to configure EM on my 11G R2 standalone installation (on Win XP Pro) and am running into some problems. I've been cruising these forums for a while and can't seem to find an answer to what's causing me trouble so thought I'd

  • Songs on Authorized Computer Will Not Sync with iPod

    I upgraded the hard drives in my computer that contained my iTunes library when one of my RAID disks failed. I was able to recover all of my data (all documents, photographs, songs, etc.) but I had to reinstall Windows XP and all software becuase the

  • Requirements for installation/configuration of ESS on NW Sneak Preview

    Hi All, I wanted to learn and attempt configuration of ESS/MSS. Can someone kindly point out what are the prerequisites for doing this? I plan to install NW Sneak preview Java Stack. Do i need ABAP stack as well? Am i missing anything there? Your gui

  • Enqueue and Dequeue Error

    Hi, I am using stream dispatcher to update messages from sensor to the Database. After one and half days of working, I get an error from oracle.edge.rt.FileQueue as follows. Any suggestions to find a solution to this would be very helpful. Thanks Lak