I have confusion about form validation

Dear all,

I want to know that, when I use commit_form then form validation, but it happened when no matter what error message come?

In my programe much written procedure they are trying to insert the record in another table. When an error occurs then insert statement commit. I think that when an error occur then any programe rollback automatically, but my form is not the same.

Please help me. I'm confused why data are commit.


AS of Oracle 10g.
Database 10g.

Hello.

Hamid I have to disagree with you on the solution you are proposing is subject to errors of 100%. The chances of reproduction are kept to a minimum, but certain situations could occur again. For example:
1. the user pressed the button - transaction user 1 starts
2. the two user press the button a few milliseconds after user 1 - transaction user 2 starts
3. the operation of user 1 is not yet committed as the operation of user 2 is in the process of verification of the existence of record - result "does not exist because the operation of user 1 is not yet committed.
4. now, user 1 is committed
5. the operation of user 2 receives also commited

So to summarize more of the transaction most likely are the same thing will happen. Correct me if I'm wrong.

To extend a little further I would say that reorganize you permission one or several tables, so there's a single authorisation identifier that is also defined as a unique key in the database. In this way the database, it's self is guaranteed no two inserts with the same unique key values could be inserted. That way there is no chance the second user would have managed to insert some values.

Best regards.

Published by: gregor13 on March 20, 2013 11:52

Published by: gregor13 on March 20, 2013 14:01

Tags: Oracle Development

Similar Questions

  • confusion about required_mirror_free_mb in asm

    Hello!

    I have confusion about required_mirror_free_mb in asm.

    I have 6 drives with normal redundancy and 4 failgroups.

    SQL > select TOTAL_MB, FREE_MB, STATE, FAILGROUP v$ asm_disk;

    TOTAL_MB FREE_MB FAILGROUP NAME STATE
    -------- ---------- ---------- ------------------------------ ------------------------------
    NORMAL 2047 1421 ASMDISK1 FG1
    NORMAL 2047 1424 ASMDISK2 FG1
    NORMAL 2047 1424 ASMDISK3 FG2
    NORMAL 2047 1424 ASMDISK4 FG2
    NORMAL 2047 1423 ASMDISK5 ASMDISK5
    NORMAL 2047 1422 ASMDISK6 ASMDISK6

    6 selected lines.

    Almost all disc 6 have the same space consumption.

    SQL > select GROUP_NUMBER, DISK_NUMBER, TOTAL_MB, FREE_MB, NAME from v$ asm_disk;

    GROUP_NUMBER DISK_NUMBER TOTAL_MB FREE_MB NAME STATE
    ------------ ----------- -------- ---------- ---------- ------------------------------
    1 0 NORMAL 2047 1421 ASMDISK1
    1 1 ASMDISK2 OF 2047 1424 NORMAL
    1 2 2047 1424 ASMDISK3 NORMAL
    1 3 NORMAL 2047 1424 ASMDISK4
    1 4 NORMAL 2047 1423 ASMDISK5
    1 5 NORMAL 2047 1422 ASMDISK6

    6 selected lines.

    SQL >



    SQL > select name, type, total_mb, free_mb, required_mirror_free_mb, usable_file_mb from v$ asm_diskgroup;

    NAME TYPE TOTAL_MB FREE_MB REQUIRED_MIRROR_FREE_MB USABLE_FILE_MB
    ------------------------------ ------ ---------- ---------- ----------------------- --------------
    NORMAL DATA 12282 8538 4094 2222

    SQL >

    Here's my question, that how asm desides REQUIRED_MIRROR_FREE_MB i.e above case of 4 GB of...
    Please can someone answer me...
    concerning
    Virginia

    Hi Muhammad,

    PLS, forget what I wrote before. Which is incorrect.

    Here's the explanation: If you look at the notes 798458.1 Incorrect calculation of Usable_file_mb and the documentation, you will find the following:

    "REQUIRED_MIRROR_FREE_MB indicates the amount of space that must be available in a disk group to restore full redundancy after worse failure that can be tolerated by the disk group."

    Unfortunately, the worst case in your 2 scenarios are defferent (many different):

    If you have 6 disks in 3 FGs is the worst failure
    -failure of a whole failgroup (ca. 1.420 + 1,420 GB) +.
    -failure of a disk in one of the 2 survivors starts (another approx. 1.2 GB, what is the result after the DG survining re-mirroring - you can see who is 1127 which corresponds to the number after you deletet a FG).

    In your other case, where you have only 4 discs 2 FG then the worst failure (to always maintain normal redundancy) is the failure of 1 drive:
    -Failure of a disk with data containing a maximum of 2047 (since it is the size of the disk).

    Hope he says.

    Sebastian

    Published by: ssolbach on Sep 6, 2010 01:15

  • Just bought a Nikon d750 and confused about adobe LR4 and PS6 support for RAW files. I have 8.7 DNG, but I was wondering if LR and PS will import direct soon thanks for all the tips

    Just bought a Nikon d750 and confused about adobe LR4 and PS6 support for RAW files. I have 8.7 DNG, but I was wondering if LR and PS will import direct soon thanks for all the tips

    Support for the Nikon D750 was introduced in the last version of LR 5.7 and ACR 8.7 Novemder 18 2014.

    New updates for LR 4 were arrested when LR 5 was released on June 9, 2013. No other updates of bug fixes and new camera support.

    Nada, LR 4 will never support Nikon D750. The Nikon D750 was introduced on the market in September 2014 some 15 months after further development of LR 4 was arrested.

    You can use the Adobe DNG (free download for packing) program to convert your Nikon D750 Nef (raw) files in Adobe's DNG format which will allow you to import those into LR 4. This is the crutch provided by Adobe to allow the processing of raw files with versions out-of-date LR and ACR.

    You can also update the ACR for PS CS6 version 8.7 plugin that can also work with the raw files of the D750. For direct support in Lightroom, you will need to upgrade (paying) to version 5.7.

  • Confused about the extension of the Sprite class

    Howdy-

    I learn programming with object oriented ActionScript and am confused about the class Sprite and OO in general.

    My understanding is that the Sprite class allows you to group a set of objects that you can manipulate all the objects at the same time.

    I explored the Open Flash Chart code and note that the main class extends the Sprite class:

    Base/public class extends Sprite {}

    What this lets you do?

    Also, on a related note, how to draw, say, a line once I extended?

    Without extend Sprite I could write:

    var graphContainer:Sprite = new Sprite();

    var newLine:Graphics = graphContainer.graphics;

    ...

    And it works very well. Once I have extend the Sprite class, I'm lost. How can I modify this code so that it still draws a line? I tried:

    var newLine:Graphics = this.graphics;

    My understanding is that since I extend the Sprite class, I should still be able to call its method chart (or property? I have no idea). But, he screams at me, saying "1046: Type was not found or is not a constant of compilation: graphs.»

    A number of things.

    First of all, I would not use this approach in your table constructor. Setting the width and height only makes sense if you adjust the width and height of the existing content, and the table (Sprite) does not at this time here. If you want to give the table a 'size', you could do it like this:

    public function Chart (width: Number, height: Number) {}
    This.Width = width;
    This.Height = height;
    put in a background invisible to this size:
    this.graphics.beginFill (0,0);
    this.graphics.drawRect (0,0,width,height);
    }

    There are other ways, including putting in a form or a Sprite of child as a child for the background so that clear will not erase the background of the chart. This way you could have properties for the background in your table class and update the background as a child DisplayObject instance... a few ideas to think to...

    Then, after that, your chart should be functional...

    Then back in your scenario, you could do this:

    import graphics. Table;

    Stop()

    var myNewChart:Chart = new Chart (300,200)
    myNewChart.render ();
    addChild (myNewChart)

  • BlackBerry smartphones, I am new and confused about things 'connection '.

    I am a new BlackBerry - I have a Curve 8320, I am a small business owner, and I'm not connected to a BES. I use the BB Desktop Manager to synchronize with Outlook and to back up my BB and I did pretty well on most things, but I have still a few things that I leave me puzzled. In this forum, I will ask my "questions of confusion" about data options.

    I have a data plan "pay as you go" with AT & T, my provider, because there is practically no cell reception at home where I work. (I not use my BB for email since I was at my computer most of the time). I have a home network set in place and I have incorporated a router that supports wireless. I have connected a netbook to the wireless network and used to surf the Internet, so I know that my wireless connection works. I also managed to create a wireless connection on my BB to this network and on the home screen, it appears the name of my wireless network when I am here at home, so, I know that the device is connected to my network.

    BUT I don't think that I'm really using my home wireless network... I tried the other day browsing the Internet, and then AT & T told me that I hired data charges - I thought that I should not have if I wasn't using their network. Either I am wrong all assuming that they don't charge me if I use my network or I have something set up properly on my BB... someone can provide some guidance?

    Then, I don't really understand what BIS... I searched through the KB and couldn't find something that sets actually BIS... could someone please explain what BIS?

    Finally, can someone please explain the difference between "mobile network" and "wi - fi"? Apparently, if I disable "mobile network" I have no connection at all, including wi - fi. Is that the way things should be? But, I can turn off wi - fi and always get a connection (if I go out too far from my house, South possible and face).

    Thank you... and now I'm leaving the Forum of BB Desktop Manager to ask some questions here!

    Thanks to all who responded... I now have a much better understanding of the work of the whole thing "data". I disabled my LAN connection, which should avoid all charges. The part that confuses me the most, is that AT & T said would not have to pay to use my own wi - fi, but... it doesn't seem to be the case. So, McDonald's and Starbucks will work very well for me.

  • I have a pdf form that has 4 columns, with each column having 28 check boxes and text between. I did so he goes by column, but when I do anything for a checkbox it takes it out of line. How can I keep that from happening?

    I have a pdf form that has 4 columns, with each column having 28 check boxes and text between. I did so he goes by column, but when I do anything for a checkbox it takes it out of line. How can I keep that from happening?

    You talk about the tab order? If Yes, go to Edit - Preferences - forms and make sure the box "Automatically adjust tab order when changing fields" is NOT checked.

  • Hi, I'm Vero. I am a student. I want to download install Oracle Applications R12. I am very confused about the installation

    Hi, I'm Vero. I am a student. I want to download install Oracle Applications R12. I am very confused about the installation. I learned to know to install Oracle R12 apps, you have to install VM Box for Oracle Linux OS.
    I'll be very grateful, if someone can provide the documentation for installing the software. (Please complete documentation)

    Thank you and best regards,
    Isabelle

    Hello Vero,

    You can find information on documentation of the product for Oracle VM and Oracle VM templates on the following link:

    http://www.Oracle.com/technetwork/documentation/VM-096300.html

    You can find more information about Oracle VM on the following knowledge article, let me know if you have access to My Oracle support.

    Model of machine virtual of Oracle for Oracle Siebel CRM - Quick Start Guide (Doc ID 951872.1)

    Best regards

    Chetan

  • I'm confused about my billing

    I have Adobe Creative cloud and I went to the student. I understand that the $12 plan / monthly is only for the first year, but when he jumped to $65 per month which was a pretty big leap (especially for someone who is still a student) and so I called Adobe customer service. I was told that I had changed my plan in October, something I never remember to do, but the representative I spoke with said she would get back on the plan of the student for $21 / month, and I will get a refund of $27,23. I realized that I was not getting a full refund because I was already at middle of January so I was fine with that too. The same day I receive a supplement of $21,23 and no refund. I remind them again and asked what was going on and said it was a policy of the company to charge the monthly fee for the new plans from the outset. I asked the officer if that's the case, why I do not get a full refund for the $65 I paid this month. She said it was because I was already in the month of January and this is what she was allowed to give me. I asked what month the charge $21.23 is for. She said it was for January. I told him that he didn't add up because according to its share of January has already been used and paid and cannot be refunded but I'm being charged for the total amount of January again under the student rate she changed her of me. I should get a full refund, as new charges $ 21.23 should cover the entire month or if I can not pay the full amount of $65 then I should get an amount proportional instead of a full $21.23 since according to its share of January is already paid and cannot be refunded. Even if I don't get a refund later, all I'm really going back to the day of $5,59 if you take into account the $21.23 I'm running at the front which is practically nothing in Exchange to go through this ordeal. I would have been better off I don't got no refund and just got charged for the month next February. She said she would take the case to his superiors to be studied by a higher office and gave me a case number. I am still confused about this because it just didn't seem like a good way to do business. I feel like I'm being charged twice for the days of service used. None of this makes no sense to me.

    Sorry, but only Adobe can help, not another user to and open forum

    Since this is an open forum, not Adobe support... you must contact Adobe personnel to help

    Chat/phone: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">

    Don't forget to stay signed with your Adobe ID before accessing the link below

    Creative cloud support (all creative cloud customer service problems)

    http://helpx.Adobe.com/x-productkb/global/service-CCM.html

    -or by phone http://helpx.adobe.com/x-productkb/global/phone-support-orders.html

  • Confusion about the requirements for the 2015 CC software

    I currently have Windows 8.0 (64 bit) which is so satisfactory and stable.  I have not upgraded to 8.1 Windows because I can't install same normal updates for Windows 8.0 without experiencing freezes system that only restore points can heal.  So for now, I would stick with what I have.  But the problem is the confusing requirements for various programs within the pile of creative cloud applications:

    Premiere Pro: Microsoft Windows 7 Service Pack 1 (64-bit) or Windows 8 (64-bit)
    Photoshop: Microsoft Windows 7 with Service Pack 1 or Windows 8.1

    Illustrator: Microsoft Windows 7 with Service Pack 1, Windows 8 or 8.1 Windows

    Dreamweaver: Microsoft Windows 7, Windows 8 or 8.1 Windows

    Hearing: Microsoft® Windows® 7 with Service Pack 1 (64-bit), Windows 8 (64-bit) or Windows 8.1 (64-bit)

    So what I'm confused about is the fact that Windows 8.0 is not listed for Photoshop, but Windows 7 and Windows 8.1 are.  Does this mean Photoshop CC 2015 is not compatible with Windows 8?  And that means that Premiere Pro is not compatible with Windows 8.1 since only 7.0 (SP1) and 8.0 are listed, I would have preferred the upgrade of software CC WITHOUT update Windows since I am picky on my installation of Windows 8 stable pipes now solid as a rock.  Fortunately, Illustrator, Dreamweaver, and hearing are compatible with all three, it seems.

    Can someone clear up the confusion, please?

    I think that my hardware is OK for this.

    Motherboard: Asus Crosshair Formula V-Z (AMD 990FX)

    CPU: AMD FX-6300 Vichera 3.5 GHz

    Memory: 16GB Kingston HyperX DDR3 2133 MHz

    Video: MSI N650-MD1GD5/OC GeForce 650MX

    Monitor: Acer S271HL of 27 "(1920 x 1080)"

    Power supply: Seasonic X-Series 1050W (SS-1050XM Active PFC F3)

    HDD1: Western Digital 320 GB (System)

    HDD2: Seagate SV35 Series (ST1000VX000 1 TB 7200 RPM 64 GB OEM)

    VidCap: Blackmagic intensity Pro HDMI

    USB hub: Rosewill RDCR-11005 5.25 "

    UPS: APC Back-UPS XS 1500

    Router: Netgear WNDR3700 N600

    System is NOT overclocked

    It is compatible but not tested.

  • Confused about trandata

    Hi all

    11.2.0.1

    I'm confused about additional logging.

    I have golden gate replication, but in primary db.

    Is this related to archive the recording? It works even if I'm not on the archive log?

    Installing Oracle: orcl

    Enable supplemental logging (required on primary database only)

    SQL > alter database adds additional log data;



    Hello

    One of the main reasons to enable additional logging is to generate logs for the update statement. As insert and remove implies the change to an entire line (addition or deletion of a complete line) and all the columns it while updating can occur on a column of a row.

    Additional logging on the side of database source to some of the columns are very well required to ensure that these changes to the columns that are supplemental logging enabled will be applied with success in the target database. With the help of these additional columns, oracle decides the lines that need to be updated on the destination side. This is so the extra logging is more imperative for replication.

    SUPPLEMENTAL LOGGING & laquo; ON CALL DBA SUPPORT

    Blog de Ajwat on Oracle: extra for Golden Gate

    Thank you

  • Form validation - best method?

    Hi all

    Just curious what people think is a good and simple method of form validation, we can use these days. BTW: I know some php if that helps...

    PHP validation is certainly the best way to do it, and using the native PHP filters makes it almost too easy. You know about them?

    http://NET.tutsplus.com/tutorials/PHP/sanitize-and-validate-data-with-PHP-filters/

  • Confused about the new creative cloud

    Hi all

    Since I read adout the new creative cloud I'm confused about what will happen to my license for Adobe Lightroom. Will they remain still desktop apps as well or I have to pay for an annual license, if I want to use new versions of Lightroom?

    I am a casual photographer and I like to use Lighroom for my photos, but I don't think that pay for an annual license because I'm not spending a lot of time, image-editing.

    Can someone clarify this for me?

    Thank you very much

    Lucian

    5 Lightroom does not have subscription only, you're fine. There is no sign that it will even happen in the foreseeable future either.  It's just the ex-Creative-Suite that all talk.

    Target market of Lightroom is different from the Creative Suite/Cloud. CC is a good deal for the majority of its base of users (next door), while the majority signed without major complaints.  Lightroom has a huge customer base amateur, and they would be much more difficult to convince us to go subscription only. They would be likely to lose most of customers of Lightroom at the moment, and they are not completely stupid.

  • Confused about source logical table

    Hello

    I'm confused about logical table source (LTS), there is 'General', 'Column mapping', 'Content' tabs in
    LTS, tab in general, there is some information, as the "tables map it" and "attached,"

    right here, we have created relationships in the physical layer and layer MDB, then I would ask what is the use of the "joins" here?

    Yes, but you can use between logical and logical Dim in MDB. What happens if you must define between tables that is not exposed to the MDB and you want to use non-exposed tables of MDB? Or when you go for the design of a snowflake in MDB? or a very good example is when you want a table always appear in physics SQL even when its corresponding collar is not used in the report criteria... Here are some scenarios above.

  • Spry form validation Date with default value error

    The spry form validation below was created with DW CS6

    I created an HTML form and displayed with PHP to a MySQL database.  One of the lines of form is to enter a date.  This line uses a 'out of the box' sprytextfield data validation without changes to its CSS or JS:

    HTML

    < span id = "sprytextfield1" >

    < label for = "servComDate" > Date beginning? < / label >

    < input type = "text" name = "servComDate" id = "servComDate" >

    < span class = "textfieldRequiredMsg" > a value is required. </span >

    < span class = "textfieldInvalidFormatMsg" > Invalid format. </span >

    </span >

    < script type = "text/javascript" >

    var sprytextfield1 = new Spry.Widget.ValidationTextField ("sprytextfield1", "date", {index: "00/00/0000", format: "mm/dd/yyyy"});

    < /script >

    On request, the form value is captured via PHP and date format is converted to a format of MySQL before entering in the database.

    PHP

    $servComDate = date ("Y-m-d", strtotime($_POST['servComDate']));

    It all works perfectly.

    Now, I created another page with a HTML form to change information.  First, PHP takes the field in the database and converts it to MySQL format to the format used in the sprytextfield above, in which it was created.

    PHP

    $servComDate = strftime ("% m/%d/%Y", strtotime ($row ["servComDate"]));

    Then the HTML form is filled with existing value

    HTML

    < span id = "sprytextfield1" >

    < label for = "servComDate" > if the Service is coming soon, do you know when the service will begin offered? < / label >

    < input type = "text" name = "servComDate" id = "servComDate" value = "<?" PHP echo $servComDate;? > ">"

    < span class = "textfieldRequiredMsg" > a value is required. </span >

    < span class = "textfieldInvalidFormatMsg" > Invalid format. </span >

    </span >

    By filling in the form with existing value appears with the right in the box format, it shows these 'mistakes ':

    value is required. Format invalid.

    As I said above, I have not changed the CSS or JS that is loaded with the Spry textfield, so I don't get that here.

    I'm obviously something wrong with pre-filling a Spry textfield with a default value.

    What is the real need have a default value on a Textfield of Date Validation Spry?

    Thanks in advance!

    Make sure that, in the page change the constructor looks like

    var sprytextfield1 = new Spry.Widget.ValidationTextField ("sprytextfield1", "date", {index: "00/00/0000", format: "mm/dd/yyyy"});

    The following works fine for me

    ">

    A value is required. Format invalid.

    GRAMPS

  • confusion about rman restore

    Hello world
    I have some confusion about rman restore and recover procedures. I read doc available in this regard and google as well. A few more questions unanswered in my mind.
    1. do the restore backup command restore controlfile also alongwith datafiles.
    2 database is running in noarchivelog mode. Suppose one of say users.dbf data files has been removed. control files intact. the same seq # is available since the last log backup. Now to restore the database, I use the following steps.
    1 rman > shutdown immediate
    2 rman > startup mount
    3 rman > restore database
    4 rman > restore database
    5 rman > alter database open;

    I'm wrong. This is the one. In this scenario, the steps above can be used.

    3. even when logseq is not available when the database is saved, I take the following steps.
    1 rman > startup nomount;
    2 rman > restore controlfile autobackup.
    3 rman > change the editing of the database;
    4 rman > restore database;
    5 rman > recover noredo db;
    6 rman > alter database open resetlogs;
    It is a right. can I adopt this procedure in my scenario.

    Please do not give all the links I want some explanation of your minds.

    Geetanjali.

    sonidba wrote:
    Hello world
    I have some confusion about rman restore and recover procedures. I read doc available in this regard and google as well. A few more questions unanswered in my mind.
    1. do the restore backup command restore controlfile also alongwith datafiles.
    2 database is running in noarchivelog mode. Suppose one of say users.dbf data files has been removed. control files intact. the same seq # is available since the last log backup. Now to restore the database, I use the following steps.
    1 rman > shutdown immediate
    2.RMAN > startup mount
    3.RMAN > restore database
    4.RMAN > restore database
    5.RMAN > alter database open;

    I'm wrong. This is the one. In this scenario, the steps above can be used.

    If after the last COLD backup is there not get command of newspaper (this means journal seq number is the same), so you can restore your database since the last backup and can retrieve it. And if thi does not need perform full restoration/recovery. At instead step 3 with DATA RESTORE (or RESTORE TABLESPACE USERS) file and step 4 instead with RECOVER DATAFILE (or RECOVER TABLESPACE USERS) and after that you can open the database by using ALTER DATABASE OPEN. If you have lost datafile users.dbf it means that this (tablespace) datafie has been automatically disconnected.

    3. even when logseq is not available when the database is saved, I take the following steps.
    1 rman > startup nomount;
    2 rman > restore controlfile autobackup.
    3.RMAN > change the editing of the database;
    4 rman > restore database;
    5 rman > recover noredo db;
    6 rman > alter database open resetlogs;
    It is a right. can I adopt this procedure in my scenario.

    Yes you are right in this case. There, you have to restore/recovery complete database, because of your database running in NOARCHIVELOG mode. But after database restore (step4) you can just issue RESTORE database and can open with RESETLOGS options also. Also if you have incremental backups can run NOARCHIVELOG mode even RETRIEVE the NOREDO of DATABASE then you can open the database.

Maybe you are looking for