Procedure requirement for Concurrent  access

Hello all
i need to write a procedure with the following requirement
I got a table Employee , this table may contain 9 million records, and few users of the same company will be accessing this Table (Employee ).
Ie select * from Employee where company = AB order by datecreated ;
Suppose this query will fetch 25000 records , and the company AB has got 150 users .
My requirement is when the 150 users of the company AB fire the above query at the same time I have to fetch the first record which returns by the query and return it to the first user by updating the user_id column by the fist users, and second record to the second user etc. but more than 1 user should not get the same record.
To fetch the first row I have used the TOP N method and locking the record with FOR UPDATE
Select * from (select * from Employee where company = AB order by datecreated)
Where rownum=1 for update ;
But FOR UPDATE locks the row for the first user and update the use_id column with first userid when the second users waits for the lock release and when he gets it released it gets overwritten by the second users , my purpose is not getting satisfied.
I tried with FOR UPDATE NOWAIT and handled the exception and put it in loop . but as the number of SELECT his on DB is more its crashing it ..
Will SKIP LOCKED help me with this issue ?? but no one recommends that because its not documented in 10g.
This is for a web application , please suggest me an appropriate way to handle this issue ..
mishra

Hi Justin
the topic you have given me completely new to my knowledge and it is too waste , if you dont mind can give an introduction on this like , which part i have to look into for my requirement , and how i got to make it work to my requirement,?
Mishra

Similar Messages

  • Ports Required for SMTP access from DMZ

    We have a Windows 2000 Adv Server on a DMZ interface of a PIX firewall. We are using native Windows SMTP services as a Front End server for Exchange mail. Our Exchange server has a SmartHost entry that sends outbound mail to the server on the DMZ. Our MX record points to the server on the DMZ for inbound traffic.
    We originally allowed DNS resolution and SMTP (Port 25) traffic to the server. We've done this numerous times from the Internal interface of the PIX. Yet, there apparently is at least one other port that needs to be opened up because the mail stays in the Queue of the SMTP server on the DMZ. We got around the problem by opening up all outbound ports from that server.
    My question is: "Does anyone know what ports are required for an SMTP server to work on a PIX DMZ?"
    Thanks

    Should just be TCP/25 and probably DNS (UDP/53). Probably the easiest way to figure out what other port it's using is to look at the active connections from this going through your PIX.
    Let's say the IP address of the mail server is 10.1.1.1. Doing:
    sho conn | include 10.1.1.1
    will give you all the connections. This will tell you where it's connectig to and on what ports. The output will look something like:
    FW1(config)# sho conn | incl 10.1.1.1
    UDP out 10.2.2.1:17127 in 10.1.1.1:10655 idle 0:01:23 Bytes 1000
    UDP out 10.2.2.1:18733 in 10.1.1.1:10477 idle 0:01:38 Bytes 1000
    UDP out 10.3.3.2:18429 in 10.1.1.1:10789 idle 0:01:10 Bytes 1000
    The numbers after the colons are the port numbers on the connection. Of course yours will show TCP and port 25 (and something else hopefully), but you get the idea.

  • Approval procedure required for Delivery note based on condtions

    Dear All,
    I have the followings situation in which the business flow is as such that Sales Quotation is made and based on the Sales Quotation AR Down Payment request is made. Once the downpayment is recieved from the customer entries are made in Incoming Payment, Sales Order is booked and AR downpayment Invoice is booked. As there are milestone payment means 30 %, 60 % which would be done through AR downpayment Invoice and final 10 % is the final AR Invoice done. Now lets say that I have a Sales quotation No 10001 having an value of USD 10000 based on which AR Downpayment Request for 30 % and incoming payment comes from the customer for 30 % which is 30 % of USD 10000 is USD 3000. After reciept of payment based on Sales Quotation No 10001 a Sales Order is been booked ( Document Number 20001 ) with a payment terms of 30 days credit. Now I want an approval procedure in the Delivery Note to do a check that if for that particular Order No the payment terms is for 30 days credit means the payment due date and if the next 60 % the customer does not pay in time (which is after 30 days) the delivery would require an approval from the Finance head.
    I think the above situation can be solved from the approval procedure with the help of some query but am not able to understand as to how to work on it.
    Would be obliged if you can throw some light in it.
    Regards,
    Rahul

    Dear Gordon,
    I think you did not understood my requirement. See the first 30 % downpayment the customer would be giving at the time of Sales Quotation. Now ater 30 % is recieved sales order would be booked. Now based on the sales Order delivery would be ONLY done when the next 60 % the customer pays. If he does not pays the next 60 % I want an approval to be done for delivery.
    I had mentioned in my earier thread - ''next 60 % the customer does not pay in time (which is after 30 days) the delivery would require an approval from the Finance head.''
    Means I want an approval check to be done on delivery with a condition of 60 % of the order value. And the final AR invoice would be done on the last 10 %.
    I hope I am clear in my requirement.
    Regards,
    Rahul

  • Help required for Concurrent program parameters

    Hi All,
    I have a Concurrent program which has the following set of parameters.
    From Project Number
    To Project Number
    From Org
    To Org
    We dont want to make any of these mandatory, but we have a condition that either of the two sets must be entered i.e. before submitting we have to validate that either From Project Number/To Project Number parameter set is populated or From Org/To Org parameter set is populated.
    If someone could help me with this it would be a great help.
    Regards,
    Shruti

    Hi Shruti;
    What is your OS and EBS level?
    Please check below:
    Setup for Defined Concurrent Program with Parameters - SQL Script
    How to enable/disable parameters in concurrent program dependent prev. para
    Concurrent Program with conditionally required parameters
    Need to do validation while entering concurrent program parameters
    If those are not help,please try to look [this search|http://forums.oracle.com/forums/search.jspa?threadID=&q=Concurrent+program+parameters+&objID=f475&dateRange=all&userID=&numResults=15]
    Also check http://download-uk.oracle.com/docs/cd/A60725_05/html/comnls/us/fnd/progde04.htm and this
    Hope it helps
    Regard
    Helios

  • Email address required for guest access

    We have a guest network with a customized web page right now. When the user connects, it asks for their name and logs it to a RADIUS server. However, the user can leave this field blank and press enter to gain access. Is there some way to force a user to enter their name into this page before access can be granted? We don't want to enter a username for each user because there are too many. I found this page and this is what we want to happen (I can't figure out how to do it).
    http://www.cisco.com/en/US/docs/solutions/Enterprise/Mobility/emob41dg/ch10GuAc.html#wp999843
    (figure 10-7)
    We would like a page like this, but the user MUST enter a name or email before proceeding. No password is required. Down the road, we will attempt to verify the email that they enter, however we are not worried about that now.
    Thanks

    This is how we have it setup. However, they don't have to enter anything, the entry field can be blank and they can still be granted access. All we want is for them to enter something in this field before they are allowed on.

  • Minimum set of ACLs / security access required for getting MBeanHome and Runtime MBeans

    Hi,
    Where can I get information regarding the "minimum set" of ACLs and security access/permission
    required for
    a) Accessing weblogic.management.MBeanHome [Local and Admin interfaces] and RemoteMBeanServer
    interfaces
    b) Use MBeanHome and RemoteMBeanServer interface to look up MBeans [especially
    Runtime MBeans] for Cluster, Server instances, EJBs, JDBC, Execute Queues, etc?
    Any help or hint is appreciated!
    Regards,
    DKV

    "DKV" <[email protected]> wrote in message
    news:3f4e8429$[email protected]..
    >
    Hi,
    Where can I get information regarding the "minimum set" of ACLs andsecurity access/permission
    required for
    I believe this was answered in the management jmx newsgroup.

  • Which authorizations are required for assigning a query to a role?

    Hi everybody,
    we try to set up some roles for "reporting power users". These guys should be alble to define new queries using BEx (works fine) and also should be able to assign these new defined queries to a role, so other users can use these roles.
    The idea is simple, but we're searching for the right authorization object (or - as i suppose - set of authorization objects) that enables the user to assign a query to a role (using that "enter to a role" button in the open / save dialog).
    At the moment, the user can user that button, and the role, he should the query assigned to is shown. After selecting the role and clicking button "create" it take some seconds and a message "error when saving. entry has not been created" is shown.
    Obviously, there is a problem with writing the role (or adding the new information to that role).
    So, could anyone help me and provide me with a list of authorization objects that are required.
    Thanks in advance,
      Alfred

    S_RFC
    S_TCODE
    S_USER_GRP
    S_BDS_D
    S_OD_SEND
    S_RS_AUTH
    S_RS_BCS
    S_RS_COMP
    S_RS_COMP1
    S_RS_FOLD
    S_RS_ICUBE
    S_RS_MPRO
    The above mentioned authorization objects are enough to add in the role and required for the accessing a query.
    particularly, S_RS_COMP, S_RS_COMP1, S_RS_MPRO, S_RS_ICUBE are the most important auth objects which are directly getting involved in authorization of a query in a role.
    SO, you have to assign the respective info area, info cube and info providers names in these auth objects.
    The same scenario , i am using in my project to give access to the queries in all the areas for my end users.
    The values and access/authorizations restrictions is up to your project requirement.
    Hope this would help you.

  • Does managing Oracle 10g RAC with ASM require full root access?

    We currently have three entirely separate support areas, Unix, Storage and DBA. We're now considering using Oracle 10g RAC with ASM and as part of the assessment trying to work out if we can still draw similar support boundaries. I know that installing RAC and configuring ASM requires root access but will DBA continue to need root access to manage & support RAC? If so, does anyone know if the commands they need can be RBAC'd or if we just need to share root access going forwards. I've had a look at a number of docs including http://download.oracle.com/docs/cd/B19306_01/rac.102/b14197/toc.htm. which is fairly informative but none of them seem to mention the requirement for root access on Solaris. I'm guessing they just assume that it's available, but that's not generally the case in our environment.
    All advice / info welcome!

    I would have thought that the only reason you would need root access once RAC and ASM had been set up would be to add more disks to the ASM configuration. This would be needed to change the ownership on the raw LUNs or to make additions to metasets (SVM/Oban) or diskgroups (VxVM/CVM). Beyond that, I can't imagine needing root access.
    I'm sure others will chime in if they can think of other reasons!
    Regards,
    Tim
    Edited by: Tim.Read on Jun 3, 2008 2:25 AM

  • Regarding locks in SAP ( concurrent access by two reports for a same table)

    Hi All,
    I have a problem regarding locks. I have designed a report using lock function modules to set locks and release them after the database operations and it works perfectly. There is another report which also does some DB operation on the same table but there are no table locks using enqueue function module implemented in this report and despite of lock set by first report on the table it is able to do the changes on the db table. I need to know how to overcome this problem.
    Thanks for your solutions.
    Regards,
    Sachin

    Sachin Dangayach wrote:
    Hi All,
    >
    > I have a problem regarding locks. I have designed a report using lock function modules to set locks and release them after the database operations and it works perfectly. There is another report which also does some DB operation on the same table but there are no table locks using enqueue function module implemented in this report and despite of lock set by first report on the table it is able to do the changes on the db table. I need to know how to overcome this problem.
    > Thanks for your solutions.
    >
    > Regards,
    > Sachin
    lock procedure requires that all programs involved cooperate. Inconsistencies can occur if a program reads or changes data without having previously locked it. When a lock is set, the data records are only protected against changes by another program if this program also requests a lock before accessing the data.
    Please check the above extract from [SAP help|http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eed9446011d189700000e8322d00/frameset.htm],  to maintain data consistency, it must be ensured that all the programs should lock the data before changing.
    -Rajesh.

  • WebAS access via Portal: Web Dispatcher required for load balancing ABAP

    Hi Folks -
    We have EP 6.0 SP18 (Java only, WebAS 6.40, Unix/Solaris).  The portal has a CI/SCS and one DI so we have a Web Dispatcher to load balance the portal servers. This works fine (and provides port 80 access).
    This portal will provide access to HTTP services from an ABAP WebAS (6.20 with 6.40 kernel, Unix/Solaris). A landscape configuration entry has been added to the portal for this ABAP system. The ABAP system has a CI and multiple app servers, all capable of handling HTTP requests.  This will also require port 80 access.
    1. Will we need an additional Web Dispatcher to load balance HTTP requests to the 'backend' ABAP WebAS system, or will the portal be smart enough to handle the load balancing itself (perhaps based on the information in the landscape configuration)?
    2. If the portal itself handles the HTTP load balancing can you point me to documentation (so I can make sure I have proper configuration)? 
    3. Are there any changes to this with NW2004s Portal (we plan to upgrade soon)?
    Thanks in advance!  Jeff

    Jeff,
    Regarding:
    Q1. If you create a system object from the "SAP system with load balancing" template in portal and configure the object to point to your CI (msg server), the LB should be handled.
    Q2. Portal load balancing is handled by the message server.  If you point a test URL to the port of your message server, you will notice that you are issued a redirect the URL of your dialog instance.  The web dispatcher is just a proxy (with some intelligence).  When a request is made to the WD, it makes a connection to the MSG server, the list of active instances is queried, a redirect is made to that instanct.  If you use WD, that connection can be proxied behind a standard URL.   If you connect directly to the MSG Server instead, you will notice your URL change, just as it does on the service marketplace.
    WDs are good for providing services, masked (proxied) behind virtual names.  If you do not want the customer to see a physical URL of the server, use the WD.  There are lots of other solutions that can do this too though such as Apache, ISA, Juniper devices, Cisco LDs.  WDs have a very low performance threshold though, especially if you use SSL. WD is a performance bottleneck and should be benchmarked to see if it is right for your application.
    Q3. No changes this architecture in 04s.
    jwise

  • You do not have permissions to access a database that contains data required for this form to function correctly.

    I have dropdown on infopath form , and it receives data from sql server table ,  it works fine when i am running in preview mode , but when i am publishing form to sharepoint server and loading that form
    i am getting this
    You do not have permissions to access a database that contains data required for this form to function correctly.
    Can you please help?
    Thanks,

    try this one, if not yet
    Convert the data connection to UDC (store it in a Data Connection Library within the same site collection as the form library).  See if this works without any other changes, but if not, then...
    Manually edit your UDC file in Notepad (or your preferred editor) so that the authentication line is not commented out and so that it references the name of the SSO target app you created. 
    For Type, use NTLM.
    Ensure the user has rights to access the database
    Also ensure the connection file has been approved - A sharepoint admin can access a non approved Ucdx file. Go to the connection library and approve the file
    Also check this post having the similar issue:
    http://social.technet.microsoft.com/Forums/en-US/3196bafd-4bc3-40ab-ac2b-d149d1c3e0fa/sharepoint-2010-error-you-do-not-have-permissions-to-access-a-database?forum=sharepointdevelopmentprevious
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • Requirements for others to access my design in creative cloud

    What are the requirements for others to access my design in creative cloud?

    1-upload your file(s) to your Cloud storage
    2-give them the link(s)
    3-they do, of course, have to have the same software to open the files

  • Concurrent Access for Crystal Reports for eclipse

    Hi,
    May i know is there any concurrent access limitation when viewing the reports in web using JRC?

    The performance does get better after the initialization of the JRC application.  Because it is a pure java application without any reliances on servers for processing power, it will rely on the speed of the application server.  In the initialization, all of the libraries get loaded in to the classpath so this does take some time.  Generally speaking the performance will get better after this because everything has been loaded in to memory; that is until you restart the application server.
    The JRC will be a bit slower when rendering a large report.  Depending on the size of that report, you may be looking at between a few seconds and several minutes in processing time.
    Whether or not you use the JRC will depend on the number of users you anticipate having at any given time for your application as well as the general size of your reports.
    Crystal Reports Server comes with a set number of licenses.  Initially it comes with 5 and you can purchase up to 20 or 25.  This means you could potentially have about the same number of users as you would with a JRC application, but if you have large reports then you could take advantage of the benefit of being able to schedule those reports (set them to run during an off time so your users can view the instances quickly when they need to).  You do have to be more mindful of how you use licenses with this product, since for each user logged on to the system there will be a license used.  There are many additional benefits, including performance that can be had with CR Server.  One key difference would be in the cost of the product:  The JRC is essentially free, whereas CR Server is not. 
    I would suggest reading our product documentation and applying it to your situation to determine what implementation would work best for you.

  • Why is Domain Admin access required for NTFS crawling?

    Need some assistance from the experts in here..
    Our company has a policy against granting Domain Admin access to service accounts.
    Oracle states that Domain Administrative priviledges are required for NTFS crawling. However, they aren't able to provide a reasonable explanation as to why such a high level of access is necessary. In theory, Local Administrative privildges on the target file host should suffice if the crawler is grabbing ACL details, but in practice does not seem to work.
    Can anyone point me to some technical documentation on SES NTFS crawling or help me understand what actions are being invoked?
    Many thanks.
    LC

    They do seem confused. I have heard on a few occasions, someone has taken their computer in for some major work and it comes back with the latest OS! I think some Service technicians have the opinion that any OS less than the latest is a kind of defect that they can remedy.
    I suppose they are trying to be helpful, but as you say, compatibility with existing applications can be a pitfall when doing that.
    The main thing is you have your OS backed up. I keep a clone (made by SuperDuper!) of my OS on a backup disk, and if you were really worried about a service technician trawling through your hard drive on their lunch break, having the working clone would allow you to reinstall a fresh OS and hand it to them with nothing of yours on it whatsoever.
    When it comes back fixed, copy the external clone back onto your Mac. This is a bit of trouble, but it ensures the integrity of your data.

  • Access sequence requirement for output control

    Hi!
    I would like to get some inputs on how access requirement for output control works. I created a new requirement for a condition table that has key combination billing type/sales org/country because I need to restrict the output for a paticular customer in one country. I think the requirement works fine such that it is not fulfilled for the customer that I want ot restrict, thus no output is created. However, I noticed that other customers in that sales org/country are affected by the requirement. The output is created (sy-subrc=0) but it is not processed (remains in yellow status). The output should be emailed immediately upon creation (medium 5/timing 4). For other sales org/countries the creation of output and sending of email work as expected.
    I hope someone have valuable inputs regarding this.
    Note: I created this discussion under ABAP development but it was rejected, for reason: This does not appear to be an ABAP question. So I hope I have selected the correct one with SD.
    Cholen

    There is Output determination log available in the output screen (see the menu). It tells everything about how the output was proposed.
    If the requirement is not fulfilled, you won't see output created with any color - yellow, red or purple with sparkles. If output has been proposed and has a yellow light it means it has not been processed yet. Output is processed only after the document has been saved, so while creating the document, you'll never see any other color. If after saving the document output is still yellow, it must have a different timing than 'process immediately' and it will be processed according to that setting.
    This is a very simple concept, well documented and discussed gazillion of times on SCN. Requirements and conditions are two different things with different purposes. You might want to read a bit more on the output determination.
    Thank you.

Maybe you are looking for

  • HP LASERJET CP1525nw print error when printing online Gmail emails with Google Chrome

    HP LASERJET CP1525nw print error when printing online Gmail emails with Google Chrome. Extra large font sizes and weird formatting issues only when printing emails from Gmail within Chrome. No problems when printing the same email from Gmail+Internet

  • BRF+ Standard Integration into ICM

    Hi gurus, here: http://help.sap.com/erp2005_ehp_05/helpdata/EN/5f/b367185c4f41ccbdeb4e383d516a68/frameset.htm is a guide on how to enable BRF+ to be used as a valuation or remuneration tool in the ICM through the customizing. However, after doing all

  • Prolblem while replicating datasources in BW, source system tab in modellin

    hi friends, I have a problem. we are using SAP NetWeaver 2004s and we are implementing for the first time. The problem is we have activated the datasources of 0FI_AR_4, 0FI_AP_4, 0FI_GL_4 from delivery version RSA5, After activation we checked in RSA

  • Wireless very slow and/or unstable after Kernel update to 3.13

    I have a "fresh" install from 2 weeks ago. It was installed with Kernel 3.12. I have a rtl8192cu, it was dreadful, so as recommended I installed dkms-8192cu and everything was perfect. After the upgrade to Kernel 3.13, both with the standard driver a

  • Eclipse Plugins

    Hi,     I installed EP6 sneak preview, Netweaver developer studio and also installed the PDK6(which is a business package).  Since Netweaver developer studio is not having the JSPDynPage template, I want to use Eclipse.  What Eclipse plugins should I