Accessing others LCR$_ROW_RECORD in same transaction

Hi all,
I'm writing the code for a DML apply handler, may I access others LCR$_ROW_RECORD for other tables than the one current for the apply handler but in the same transaction?
example:
PROCEDURE myApplyHandlerDML(in_any IN ANYDATA) IS
  lcr          SYS.LCR$_ROW_RECORD;
  rc           PLS_INTEGER; 
BEGIN
  rc := in_any.GETOBJECT(lcr);
  ... I need to access others LCR$_ROW_RECORD of other tables but in the same originating transaction
{code}
thanks for any help, bye
aldo                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Hello Aldo,
The DML Handler works for a single logical change record (LCR). The apply process evaluates a single LCR and and then pass it over to DML Handler (if defined), hence the DML Handler can not see the other LCRs of the same transaction and it does not know know how many more LCRs are going to come to it.
If you would like to access all the LCRs in a transaction, then you will need to instruct the apply process to enqueue the same into another queue as persistent messages (usually LCRs in apply queue are buffered - in memory).
This can be done using DBMS_APPLY_ADM.SET_ENQUEUE_DESTINATION and DBMS_APPLY_ADM.SET_EXECUTE APIs. For this you will have to create a different queue and specify that in SET_ENQUEUE_DESTINATION. Then you can process all the LCRs in the new queue with a procedure (similar to your DML Handler).
Hope this helps.
Thanks,
Rijesh

Similar Messages

  • Accessing other classes in the same package

    I have the following two classes in the same package. Why cant I access the myString vairable from Test2 like I try and do below?
    package test;
    class Test1 {
         public static String myString = "Hello world";
    package test;
    class Test2 {
         static void printMe(){
              System.out.println(Test1.myString);
         public static void main(String args[]) {
                   printMe();
    }

    Why when I take the "package test;" line of code away I can compile it normally?This depends on how you call the compiler and how you have set the class search path. Classes that are in a package are expected to be found from some place in the search path under a directory that has the same name as the package. The default class path consists of only the current directory, ".", so you can avoid all problems by compiling and running from the directory above "test" rather than "test" itself.

  • How to restrict the Users to access other application URL on same machine?

    We have one Oracle 10g AS server, hostname "abc", this server having two services named "DSS" and "RBL".
    Our requriement is how we can restrict the URL "http://abc.xyz.com:7777/forms/frmservlet?config=rbl" from user access, because both DSS and RBL having same URL.
    Can we change port 7777 for RBL service?
    http://abc.xyz.com:7777/forms/frmservlet?config=dss
    [DSS]
    userid=schema_1/abc123@orcl
    form=DSS_MAIN_MENU.fmx
    width=200%
    height=200%
    separateFrame=true
    lookAndFeel=oracle
    colorScheme=teal
    splashScreen=no
    background=grey
    http://abc.xyz.com:7777/forms/frmservlet?config=rbl
    [RBL]
    userid=schema_1/abc123@orcl
    form=MAIN_MENU.fmx
    width=200%
    height=200%
    separateFrame=true
    lookAndFeel=oracle
    colorScheme=teal
    splashScreen=no
    background=grey
    --------------------------------------------------------------------------

    Anyone can answer.

  • Mac Pro can access other Macs but those same Macs cannot access the Mac Pro

    Hello.
    I have a highly annoying problem that goes as follows:
    My (home) network consists of:
    - 1 Mac Pro (e2008 - 10.5.6)
    - 1 iMac (2008 - 10.5.6)
    - 1 MacMini (2004 - 10.4.??)
    - 1 MacBook Air (2008 - 10.5.6)
    The internet connection is alive and well with no drops not that it truely matters here.
    The setup is as follows:
    - Linksys AM300 in half bridge mode connects to the
    - Apple Airport Extreme Base station from which 1 cat6 cable runs to the
    - Mac Pro
    The other Macs connected to the Airport Extreme wirelessly.
    The Mac Pro has its network settings setup correctly (in fact it used to work fine but then just stopped working) and I have also disabled all network settings, rebooted and reapplied the settings to no effect.
    To clarify:
    I (Mac Pro) can connect to all Macs in the network but all those macs can see me but not connect to me. Connecting via the Finder simply says "Connection Failed" and if I open the "Connect to server.." and enter the IP address of the Mac Pro it results in an error/failed connection also.
    Any ideas to fix this would be highly appreciated.
    PS: As of now, 19/03/2009, I have all software updates installed on all macs in the network.

    Place the files you want to transfer on the Desktop
    Click on the Finder or desktop to swtich to Finder, then Go > Computer, then double click on the boot drive, then on the Users folder.
    Open the target User folder and inside is a Public folder > Drop Box, just drag and drop in there and the permissions change so that user can use the file.

  • HT1527 I have windows 8.1 and cannot access itunes store even creating a new apple id. With other users on the same computer I can access itunes store. How can I solve this?

    I have windows 8.1 and cannot access itunes store even creating a new apple id. With other users on the same computer I can access itunes store. How can I solve this?

    i had the same problem before using a fresh install of Windows 8.1.  I have resolved this issue by running the program compatibility wizard.  This I did by right-clicking on the iTunes icon in the desktop, selecting Troubleshoot compatibility, waited for it to detect compatibility issues and when presented with the following options: 1.) Try recommended settings; 2.) Troubleshoot program, I chose the latter.  When asked what problems I noticed, I checked the following: "The program worked in earlier versions of Windows but won't install or run" and "The program requires additional permission"
    After that, it tired to resolve the issue, and provided the necessary settings to run iTunes.  Now it's running flawlessly.  I have Avast anti-virus installed though.
    HTH!

  • Reflect the details of data in same transaction but in some other tab

    Hi Experts,
    I am trying to update some data in the transaction IW32 (tab "Enhancemnt") and wants to reflect the details of that data in the same transaction but in some other tab "Objects", before saving the changes i.e. as soon as I click on "Objects" tab, it should get reflected.
    for this I hav used a Bapi at the screen exit, but the problem is that if I try to commit it, then the data after fullfillment of my requirment doesn't get saved even if I try to save it.
    and if i dont use commit then it won't be possible to save and reflect the changes as reqd.
    Waiting for your skillfull sugesstions at the earliest.

    Hi ,
    data mismatch is kind of short dump error .. check for  short dumps in st22 . are you getting all the short dumps from same source system.. then check the system performance of that system st04,
    and rather then checking from psa .. you can check the job overview of the load ..and check wether its progressing or not .. you can make the simply red and repeat it ..but if the loads are through psa then its betther you push it from psa rather then restarting the laod again it will take more time ..
    Regards,
    shikha

  • I have 2 different MacBooks (owned by 2 people) connected to my Time Capsule. I want to use the Time Capsule to back up both MacBooks separately from each other. Can one person access the hard drive of the other person, on the same Time Capsule?

    I have 2 different MacBooks (owned by 2 people) connected to the same Time Capsule over a wifi network. I want to use the Time Capsule to back up both MacBooks separately from each other. Can one person access the hard drive of the other person, on the same Time Capsule? Is there a way to ensure that the files on the 2 laptops are kept private from each other? Thanks!

    If someone really wants to do something, it won't take them long to find out how to do it. 
    http://pondini.org/TM/17.html
    Security on a Time Capsule is a bit like installing a lock on a tent. It will keep the honest folks out, but probably not the others.

  • I have two ipod nanos.  And i have 2 itunes accounts and we are accessing both accounts from the same PC.  One of my ipod works fine, it gets detected as a device and sync fine.  The other one does not.  Need help.

    I have two ipod nanos.  And i have 2 itunes accounts and we are accessing both accounts from the same PC.  One of my ipod works fine, it gets detected as a device and sync fine.  The other one does not.  Anyone knows what this may be?

    The music sync is one way - computer to ipod.  The only exception is ituens purchases.  The ipod is not a backup device.
    Copy everything from the old computer or your backup copy of your old computer, to the new one.

  • My mac book appears to stops other computers using the same Internet from accessing the wifi

    I only have this problem when I come home to my parents house. Never had had this problem when at a home shared with 5 others all using the same wifi. But when I come home and connect my Mac book to the wifi and let's say watch netflixs, it will prevent all other devices (pc, iPhone, ipads) from getting an Internet connection. Just wondering if there was something in my settings that was making this happen.

    Most often BitTorrent, iCloud, Dropbox, or some other cloud-data application is involved in cases of mysterious bandwidth use by a Mac. If you use iCloud, uncheck at least iCloud Drive in its preference pane and see whether there's any change. If you use third-party network backup or file-sync software, disable that. If you use a torrent client, remove it.
    Otherwise, if you're running OS X 10.9 or later, you can see which processes are most active on the network.
    Launch the Activity Monitor application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad and start typing the name.
    Select All Processes from the View menu, if not already selected, and also select the Network tab.
    Click the heading of the Sent Bytes column in the process table to sort the entries by bandwidth usage. You may have to click it twice to get the highest value at the top. What is it, and what is the process? Repeat with the Rcvd Bytes column.

  • How to use same transaction when calling CMP entity beans and  DAO (JDBC)

    We are currently using Weblogic 8.1 SP2 with an Oracle 10g database (using XA thin and non-XA drivers).
    We have a session bean that invokes an entity bean and a DAO (data access object pattern) in order to add data in 2 separate tables (account and history). Rows are added to the first (account) table using a CMP Entity bean while inserts are done in the 2nd (history) table using a DAO. Here is some pseudo code:
    addHistorySessionBean (trans-attribute="Required")
    begin
    Step #1 - call addAccountEntityBean (trans- attribute="Required")
    Step #2 - call addHistoryDAO (get datasource, connection)
    end
    The 2nd table (history) has a foreign key constraint to ensure that the corresponding key exists in the first (account) table. Unfortunately, DAO inserts on the 2nd (history) table fail with a foreign key constraint violation (INTEGRITY CONSTRAINT VIOLATION - PARENT KEY NOT FOUND!) since they cannot see the row added to the 1st (account) table in step #1 by the CMP entity bean.
    How does one ensure that all this is done in a single transaction ? It appears that the app server creates two seperate transactions (one for the session bean facade and the entity bean and a 2nd transaction (when we retrieve a connection using the same data source JNDI name) for the DAO.
    A post on server side suggested using a "<resource-ref>" in the session bean to tie the two potentially separate transactions together, but that does not work for us. However, I am not sure if we are doing that correctly. After we define the resource ref in the session facade bean, do we use the resource ref "name" attribute to lookup the datasource or do we still lookup the datasource by JNDI name ? Do we need to define the resource-ref tag in the entity bean also ?
    Does Weblogic allow using a single transaction for this type of a scenario ? How does one specify within Weblogic that the same transaction should be utilized by the entity bean and any subsequent DAOs?
    People have also suggested that we defer constraint checking until the transaction(s) are committed but that sounds like a work acount without addressing this issue. Would postponing the constraint checking in Oracle cause any additional overhead ?
    Any suggestions with specific examples or documentation on how to address this issue will be gratefully appreciated.

    Thanks for your suggestion. Unfortunately, this does not work since it appears that there are 2 separate transactions going on here. One, the original one initiated by the session bean and used by the entity bean and the other initiated by the DAO. Any other ideas appreciated.
    Hi,
    Try setting the delay-database-inserts tag to
    ejbCreate in RDBMS descriptor file.
    http://bernal/stage/wls/docs81/ejb/DDreference-cmp-jar
    .html#1113981
    vasanthi ramesh

  • Weblogic JMS EJB : ThreadLocal access query : getting null in same thread

    We have two applications(one is jms and other is ejb) on single instance of weblogic managed server.
    On receving a new jms message the jms application call the ejb application by passing the new xml message.
    ejb application creates a threadlocal object and allocated transaction id to this transaction. I want to access this transactionid(present in threadlocal) in my jms application. But i am getting null.
    I believe i am in the same thread as i printing the thread number in the both the application log. I verified that same thread number was present for multiple messages
    in both logs [Except if one scenario of thread pooling is present that when jms calls ejb it frees the thread(23) and when ejb completes its job if gives back the thread(23) to jms...but it resets thread local]
    I need answer to following question
    1. Why is my transaction id null when i access through jms application.
    2. I believe i am in the same jvm instance.
    3. I believe i am in the same thread instance...( looking at logs except if someone can tell me i am not.....)
    4. Or if there is alternative solution to pick up threadlocal variable in my jms application.
    JMS application is new application trying to connect to existing ejb application which had the thread local design and we want to use that existing architecture before we decide to change. We need the transactionid for log corelation.

    I assume that either your JMS destination is backed by a database or your application is doing some database operations in the same transaction as the JMS send operation. I suspect that there is some kind of database maintenance process going on every night, which causes the database operations to be slow or not responding, which in turn causes the MDB transaction that the JMS send operation participates in to timeout.

  • Oracle 11g: How to ensure the same transaction across several BPEL calls?

    How to ensure transaction semantics across invocations of several BPEL services with a Database operations (Insert, update)? We are using transaction REQUIRED property in all of our BPELs. We are using webserive and JCA to access and modify the same row. Our code uses a combination of JCA, Spring bean, enity services, EJBs in these BPELs. The code can be more efficient, but, at this point, we have no option but to fix the transaction issue in this code. So, our question is how to ensure the same transaction context is used in all these BPELs to inser/update the same row? We have tried to set the GetUnitOfWork in the JCA Adapter but it did not provide any solution. Apaert from setting transaction in BPEL to REQUIRED and the JCA Adapter to use Unit of work, we are out of ideas. Any help is much apprecited. We are using Oracle SOA Suite 11g 11.1.1.5 version. --chary

    Hi,
    I can help you if you can describe the processes.
    There can be some difficulties when you try to use the same transaction especially when you use many DB transactions & BPEL processes.
    Using unit of work only ,might not be enough.
    Thanks
    Arik

  • How to data insert Source server and Linked server (Target Server) at same transaction

    I have try several times for Data insert Source server and Linked server (Target Server) at same transaction.  I am using Begin transaction.  but Source server is completed and Linked server error (or Linked server Completed and source server
    ERROR). at this moment I want ROLL back. how?

    Hi
    Run below query by changing to yourr linked server name and see if DTC is enable or not.. if not
    Begin distributed transaction
    select * from [ServerName].master.dbo.sysprocesses
    Commit Transaction
    To enable MSDTC on each Web server on Windows Server 2008
    Click Start, click Run, type dcomcnfg and then click OK to open Component Services.
    In the console tree, expand Component Services, expand Computers, expand My Computer, and then expand Distributed Transaction Coordinator.
    Right click Local DTC, and click Properties to display the Local DTC Properties dialog box.
    Click the Security tab.
    In the Security Settings section, click Network DTC Access.
    In the Client and Administration section, select Allow Remote Clients and Allow Remote Administration.
    In the Transaction Manager Communication section, select Allow Inbound and Allow Outbound.
    In the Transaction Manager Communication section, select Mutual Authentication Required (if all remote machines are running Windows Server 2003 SP1), select Incoming Caller Authentication Required (if running MSDTC in a cluster), or select No Authentication
    Required if some of the remote machines are pre-Windows Server 2003 SP1. No Authentication Required is the recommended selection.
    Select Enable XA Transactions, and then click OK.
    Repeat steps 1 through 9 on the other Web servers.
    Thanks
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • I am able to load some pages from a particular website while other pages from the same site give the error "Firefox has detected that the server is redirecting the request for this address in a way that will never complete."

    I am able to access some directories on the website without any problems while I get the "Firefox has detected that the server is redirecting the request for this address in a way that will never complete." error for other directories of the same site.
    == URL of affected sites ==
    http://www.safelistgrande.com

    Suddenly from yesterday I am getting this error while trying to opening gmail

  • Accessing multiple portals at the same time?

    Is it possible to access multiple portals at the same time?
    For example, what I want to achieve is different properties (layout,
    portlets, look & feel) for different groups of users accessing the same
    portal. The Associated Groups part on the Portal admin page is not
    fulfilling our requirements. So we decided to have different portals for
    different groups of users, all working through one portal, and accessing
    their custom portals. Is this achievable?
    What we are thinking is: put the common functionality in the repository
    portal directory, and the custom portlets/jsps in the group-specific portal
    directories. This way we can customize portal behavior for different groups
    of users. Is this achievable?
    Thanks.
    Amit

    You have to user respective DRILL commands present in WAD to configure the drill operations on multiple characteristics...

Maybe you are looking for

  • TIme Machine  backup grows too large during backup process

    I have been using Time Machine without a problem for several months, backing up my imac - 500GB drive with 350g used. Recently TM failed because the backups had finally filled the external drive - 500GB USB. Since I did not need the older backups, I

  • Can you tell the output type within template?

    Hi all, we're using Oracle apps 11.5.10 and we have the usual leading zero problem when exporting to Excel. From what I've read, Excel uses the 'TypeGuessRows' registry setting to read through a specify number of rows to decide whether a column is nu

  • JSPM Error with SAP-JEE component SP16

    Hi I am depolying a queue in JSPM SP16.1 for an ECC6 700 SR3 installed ABAP/Java system and it errors with the component SAP-JEE SP16 (installed level is SP14 as delivered in the SR3 kit) The log has the messages: Oct 8, 2008 1:49:57 PM   Warning: Ca

  • How do I convert a document created in pages into a pdf document?

    I created a document in pages of my macbookpro, and now I need to convert into a pdf or doc,docx,htm,html,odt,pdf,rtf,tif,tiff,txt > Help will be apreciated.

  • Layers won't collapse or open

    Illustrator running very slowly, problem with layers. Nothing happens when clicking on triangles to open and collapse layers. Can turn them on and off by clicking the eye. Can also create new layers and delete things. What should I do? Working in win