How to display message using default lock in ORACLE 9i?

I am using ORACLE 9i I am inserting a same record in a same table (which is having primary key) of same user with different sql editor (or from different machines).
with same time.
One person is able to insert the record..
But other one is in processing state, once the inserted person give commit,then only other person got the message "Primary key constraint voilated".
This is bcoz of concurrency in oracle. For this purpose Oracle uses default lock.
Is it possible to give message to other person like "One user is using this table..", after a record is inserted and before commit is get issued by the inserted user?
how can i do this?
Thanks a lot for your help

[url http://forums.oracle.com/forums/thread.jspa?threadID=543335&tstart=0]duplicate thread

Similar Messages

  • How to display message in Default Frame work Page (Page Title bar)

    Dear Guru,
                    I want to display message in Page Title Bar , and that message should move like(Marquee in html) . So please any one suggest how to do and that message should be display for certain time.
    Thanks and regards
    Kumar Rakesh.

    Kumar,
    create a bsp application and create an iview from it and put it in default framework page
    code for the same
      <%@extension name="htmlb" prefix="htmlb" %>
    <%@extension name="bsp" prefix="bsp" %>
    <htmlb:content design="design2003" >
      <htmlb:document>
        <htmlb:documentHead>
        <htmlb:headInclude />
        <style type="text/css">
        .urBdyStd { background-color: "#455F55"; }
        </style>
        </htmlb:documentHead>
        <htmlb:documentBody>
    <marquee scrollamount="3" >
    <%-- <htmlb:textView
    encode ="true"
    id="a"
    textColor = "white"
    text = "BI Reports are currently down" />--%>
    <b><font size="2" color="red"><%=wa_rep-s_message%></font></b>
    </marquee>
        </htmlb:documentBody>
      </htmlb:document>
    </htmlb:content>

  • How to display horizontally to vertically column in oracle

    Dear All
    How to display horizontally to vertically column in oracle,Please give me Sol. ASAP

    Sunil,
    Which column is the sal column? I can’t see any numeric columns in your query. If you use htmldb_item calls in your query column, then this makes them strings and you can’t build sums on string columns. If you want to build sums in an updateable report / tabular form, then don’t use the htmldb_item API. Instead use the built-in display types on the report column attributes page. Using the built-in display types is the better options in most cases anyway and they do allow you to calculate sums even if the column is a text field or display and save type field.
    Regards,
    Marc

  • How to display a short term lock in a view?

    Hello,
    I discovered recently the two checkin/checkout modes in sharepoint.
    The long term ckeckout that the user choose explicitly to have and the short term check out when the user open an office document for modification.
    This article describe the differences between the two modes: http://blogs.technet.com/harikumh/archive/2008/05/28/check-out-feature-of-sharepoint-2007.aspx
    The short term checkout is perfect for my client needs. He doesn't want to checkout a document every time he opens it + a lot of user doesn't understand why to check-in a document when they have done their works.
    Here is my problem: I would like to display the short term lock in my document library the same way the long term lock information is displayed.
    By code I'm able to see who has acquired the lock and if it is a short term or long term lock:
    SPFile.SPCheckOutStatus
    The column "CheckedOutBy" in by document library does not display anything for the short term lock. The document icon is not change to display a lock on it.
    So I'm searching for an idea, how to be able to display this information in my view?
    Best Regards,
    Py

    Hi,
    Theoretically you can do the following:
    Create a custom web service based on the object model to get the value of vti_sourcecontrollockexpires metadata of a file remotely.
    Create a custom field that display the information in edit and display view based on the of vti_sourcecontrollockexpires metadata using the object model in a label. Create a RenderPattern for the list view that contains a JavaScript block that calls your custom web service to display the short lock information.
    I suggest you to read these basic articles that describe the process of custom field type creation:
    Create custom field types for SharePoint
    http://www.sharepointblogs.com/nicksevens/archive/2007/08/31/create-custom-field-types-for-sharepoint.aspx
    Developing Custom Field Types for SharePoint 2007
    http://msdn.microsoft.com/en-us/magazine/dd727508.aspx
    Building Custom Field Types in Windows SharePoint Services 3.0
    http://msdn.microsoft.com/en-us/library/bb684919.aspx
    And an advanced one about Web Service - JavaScript - RenderPattern integration:
    Using AJAX Jquery-like in the CAML of Custom Field Types
    http://www.silver-it.com/node/34
    And about custom web services:
    Walkthrough: Creating a Custom Web Service
    http://msdn.microsoft.com/en-us/library/ms464040.aspx
    Creating a Custom Web Service for SharePoint
    http://it.toolbox.com/blogs/sharepoint-blog/creating-a-custom-web-service-for-sharepoint-13553
    SharePoint for Developers Part 6 – Custom web services
    http://blogs.msdn.com/kaevans/archive/2009/04/30/sharepoint-for-developers-part-6-custom-web-services.aspx
    Hope that helps. Sounds to be not easy, but technologically possible.
    Peter

  • How to display holidays on default calendar

    How can I make the default iPad calendar display holidays? I'm using my Gmail calendar to sync with default calendar. But no holidays are coming up...

    Go to Settings > Mail, Contacts, Calendars
    Touch "Add Account"
    Select "Other"
    Select "Add Subscribed Calendar"
    Enter iCal.mac.com/ical/US32holidays.ics
    Select Next
    Select Save

  • How to fetch messages using IMAPFolder ?

    Dear Friends,
    Anybody knows how to show messages with IMAPFolder ?
    Thank u.
    Chirag Patel

    I have never seen the class IMAPFolder. Here is a class I wrote that returns a table row that has message information from a folder.
    Use the messagelist method and pass in the folder you want along with the connection url to your server.
    =======================================================================
    =======================================================================
    import java.util.*;
    import java.util.Properties;
    import java.net.*;
    import java.io.*;
    import java.lang.*;
    import javax.mail.*;
    import javax.mail.internet.*;
    import javax.activation.*;
    public class EmailListMessages {
         static String outputString = "";
         public String timeoutVal = "5000";
         public String messagelist(String mbox, String url, int timeout) throws Exception {
              timeoutVal = timeout + "";
              return messagelist(mbox,url);
         public String messagelist(String mbox, String url) throws Exception{
              int optind;
         int port = -1;
         boolean verbose = false;
         boolean debug = false;
         boolean showStructure = false;
              Store store = null;
              outputString = "";
              try {
              // Get a Properties object
              Properties props = System.getProperties();
                   props.put("mail.imap.connectiontimeout",timeoutVal);
                   props.put("mail.imap.timeout",timeoutVal);
              // Get a Session object
              Session session = Session.getDefaultInstance(props, null);
              session.setDebug(debug);
              // Get a Store object
                   URLName urln = new URLName(url);
                   store = session.getStore(urln);
                   store.connect();
         } catch (Exception e) {outputString = "Error:Host Connection";}
              // Open the Folder
              Folder folder = store.getDefaultFolder();
              if (folder == null) {
         outputString = "No default folder error";
                   return outputString;
         folder = folder.getFolder(mbox);
         if (folder == null) {
         outputString = "Invalid folder error";
                   return outputString;
         // try to open read/write and if that fails try read-only
         try {
                   folder.open(Folder.READ_WRITE);
         } catch (MessagingException ex) {folder.open(Folder.READ_ONLY);}
         int totalMessages = folder.getMessageCount();
         if (totalMessages == 0) {
                   outputString = "(No Messages)";
                   folder.close(true);
                   store.close();
                   return outputString;
              // Attributes & Flags for all messages ..
              Message[] msgs = folder.getMessages();
              // Use a suitable FetchProfile
              FetchProfile fp = new FetchProfile();
              fp.add(FetchProfile.Item.ENVELOPE);
              fp.add(FetchProfile.Item.FLAGS);
              fp.add("X-Mailer");
              folder.fetch(msgs, fp);
              for (int i = 0; i < msgs.length; i++) {
              dumpEnvelope(msgs,mbox);
              folder.close(false);
              store.close();
              return outputString;
         public static void dumpEnvelope(Message m, String mbox) throws Exception {
              String fromString = "";
              String subjectString = "";
              String dtString = "";
              String flagString = "";
              Address[] a;
              int msgNumber = m.getMessageNumber();
              if (mbox.equals("Sent"))
                   // TO
                   if ((a = m.getRecipients(Message.RecipientType.TO)) != null) {
                   for (int j = 0; j < a.length; j++)
                        fromString = a[j].toString();
                   fromString = ("<td><a href='EmailViewMessage.jsp?messageNumber=" + msgNumber + "&folderName=" + mbox + "'>" + fromString + "</a></td>");     
              else
                   // FROM
                   if ((a = m.getFrom()) != null) {
                   for (int j = 0; j < a.length; j++)
                        fromString = a[j].toString();
                   fromString = ("<td><a href='EmailViewMessage.jsp?messageNumber=" + msgNumber + "&folderName=" + mbox + "'>" + fromString + "</a></td>");     
              // SUBJECT
              subjectString = m.getSubject();
              subjectString = ("<td>" + subjectString + "</td>");
              // DATE
              Date d = m.getSentDate();
              dtString = "UNKNOWN";
              if (d != null) dtString = d.toString();
              dtString = ("<td>" + dtString + "</td>");
              // FLAGS
              Flags flags = m.getFlags();
              StringBuffer sb = new StringBuffer();
              Flags.Flag[] sf = flags.getSystemFlags(); // get the system flags
              boolean first = true;
              for (int i = 0; i < sf.length; i++) {
              String s;
              Flags.Flag f = sf[i];
              if (f == Flags.Flag.ANSWERED)
                   s = "\\Answered";
              else if (f == Flags.Flag.DELETED)
                   s = "\\Deleted";
              else if (f == Flags.Flag.DRAFT)
                   s = "\\Draft";
              else if (f == Flags.Flag.FLAGGED)
                   s = "\\Flagged";
              else if (f == Flags.Flag.RECENT)
                   s = "\\Recent";
              else if (f == Flags.Flag.SEEN)
                   s = "\\Seen";
              else
                   continue;     // skip it
              if (first)
                   first = false;
              else
                   sb.append(' ');
              sb.append(s);
              String[] uf = flags.getUserFlags(); // get the user flag strings
              for (int i = 0; i < uf.length; i++) {
              if (first)
                   first = false;
              else
                   sb.append(' ');
              sb.append(uf[i]);
              flagString = sb.toString();
              String testString = "\\Seen";
              if (!flagString.equals(testString))
                   flagString = ("<td>New</td>");
              else
                   flagString = ("<td> </td>");
              outputString = (outputString + "<tr bgcolor='#a9a9a9'>" + fromString + subjectString + dtString + flagString + "</tr>");

  • How to display message in Ajax Model pop-up extender/overlay on click of a link button

    I am dynamically create the link button using reapeter control and each link assign to different type of content.i want to show the content in  a overlay / Ajax modal pop-up extender. ( Content Type: Video/PDF/Text).
    I need to know how to display the content in overlay/Modal pop-up on click of the link button.

    Hi,
    According to your description, my understanding is that you want to display the content of Video/PDF/Text in a pop-up dialogue when clicking the link button.
    I suggest you can use the Jquery media plugin to open the file content in a pop up dialogue.
    Here is a detailed code demo for your reference:
    Jquery: Open PDF File in browser with Modal Popup using Jquery Media Plugin
    Thanks
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How to find the db accounts using default passwords in oracle 10g

    Hi, can someone pleas tell me , how to find the oracle accounts in the database which are using default passwords. DB verion is 10g and 9i.
    in 11g version we can query the view DBA_USERS_WITH_DEFPWD to view the users....
    any idea in 10g and 9i ?
    thanks in advance.

    951658 wrote:
    Hi, can someone pleas tell me , how to find the oracle accounts in the database which are using default passwords. DB verion is 10g and 9i.
    in 11g version we can query the view DBA_USERS_WITH_DEFPWD to view the users....
    any idea in 10g and 9i ?
    thanks in advance.the only way I've found is to search the web for lists of default users and their passwords, then attempt to log on with said credentials. I'd start with Pete Finnigan's site (google is your friend). He may already have some scripts ready to go, or at least the lists you'd need to get started.

  • How to monitor messages using CIDX Communication Channel

    I created a CIDX Communication Channel. XI failed to get a message from the source. How to monitor the messages using CIDX communication channel.

    Not sure about the monitoring but u may recheck the communication channel settings as shown:
    Sender
    http://help.sap.com/saphelp_nw2004s/helpdata/en/0a/512041cfb7f423e10000000a155106/content.htm
    Receiver
    http://help.sap.com/saphelp_nw2004s/helpdata/en/68/1b20410e91f523e10000000a155106/content.htm
    Regards,
    Prateek

  • Display Message using Servlet

    I tried to display message prompt to the user using servlet. Can anyone has this code or guideline that can guide me??

    what you need to do is
    request.setAttribute("error", "search item doesnot exist") if surname, designation is null or invalid and forward request to results.jsp page.
    In results.jsp page, check this attribute "error".. if its null then display results present in "arraylist" attribute else display "error" attribute value.
    When you are catching exception, in catch block redirect to error.jsp.

  • How to display message when no return values in powershell script?

    Hello,
    I have written following command that returns "Failed" timer job titles for previous day :
    $FailedSPTimerJobs = Get-SPTimerJob | % { $_.HistoryEntries } | Where-Object {($_.StartTime -gt $YesterdayStartDateTime) -and ($_.To -lt $YesterdayEndDateTime) -and ($_.Status -eq 'Failed')}| Select JobDefinitionTitle | ConvertTo-Html -Fragment
    ConvertTo-Html -Body "<font color = blue><H4><B>Report </B></H4></font>$FailedSPTimerJobs " -Title "Test Report" -CssUri C:\style.CSS | Out-File "E:\Reports\Test.html"
    However, I need to display Message ( "There are no Failed Jobs recorded") when records are NULL.
    Would you please let me know how can I achieve this ?
    Thanks and Regards,
    Dipti Chhatrapati

    You could just do something like
    if ($FailedSPTimerJobs){ 
    $FailedSPTimerJobs
    = "There are no Failed Jobs recorded"
    should have been 
    if (!$FailedSPTimerJobs){ 
    $FailedSPTimerJobs
    = "There are no Failed Jobs recorded"

  • How to raise message using the attributes created in Theme

    Hi,
    I have created an attribute in the theme of the internet service.
    I want to raise a message using alert, how can i use this attribute in the javascript method?
    Regards
    Sohit

    Hi,
    try
    <script language="javascript">
    alert('Attribute:' + `yourAttribute`);
    </script>
    mind the backtics `` !!!
    kind regards,
    ralph

  • How to receive messages using my iPad number than receiving messages from email

    HOw do I receive messages using my iPad number not my email address

    You are probably going to have to sign out of/turn off Messages on the phone and the iPad and then start all over again and enable messages on the phone first so that the number is accessible again to use on the iPad in Settings>Messages>Send and Receive at>You can be reached by iMessages at. You need to be able to select your phone number in there.
    This kb article explains it in detail.
    http://support.apple.com/kb/HT5538

  • How do I "deselect" Use Default Settings?

    I download a podcast each day, but I cannot get it automatically, because my ITunes always goes back to "Use Default Settings".  How can I deselect this?

    You could start using the default bullet style on a list you have. Do the changes you want and then Create a new style from selection by clicking on the triangle on the left of the style name.

  • How to get messages from IBM MQ in Oracle.

    Hi ,
    Can you please help me how to get messages from one IBM MQ to another IBM MQ in Oracle.
    My requirement is Our upstream is putting messages from their IBM MQ to our IBM MQ
    then we have to extract data from the message and load into Oracle database tables
    how to implement this  in oracle.
    Is there any other way to implement this without writing any ORACLE PL/SQL programming.
    Please help me.
    Thanks.

    You might want to use Oracle AQ: Integrating Oracle database applications with WebSphere MQ applications You will need to write some PL/SQL to Dequeue from Oracle AQ and convert the queue payload into insert statements.
    If you need help wityh AQ, there is a separate forum: Advanced Queueing

Maybe you are looking for