Can insert but cannot update table.

Hi,
I am finding trouble in something that I thought would be very easy. I have writen some code that simply updates some rows in one table (update table set column = value where critery; commit;). This table isn't associated to any Forms block. The code is properly executed except for forms 40401 exception, but I have dealt with it by changing the message level, as it was suggested in this forum.
My problem is that in spite of getting no error the table isn't updated. I find this pretty weird. I thought it might be some problem related with database permissions, but the same command launched on PL/SQL Developer under the same database connection works fine. I have also checked that insert statement over the same table works properly.
Do you have any idea?
Thanks.

Hi,
Thank you very much for your replies. I finally managed to solve the issue and I must apologize for having posted this thread. After all, it was quite an easy solution, as I suspected. A data format question. In Spain, decimal numbers are written with comma - ',' and the data I was trying to update always consisted of numbers. These numbers were coming from character variables, and the problem was behind the types conversion. Things worked properly if I wrote UPDATE BUQUES B SET B.B_ESLORATOTAL=TO_NUMBER('12,23'), but they didn't when I used a variable p_Valor where '12,23' value was stored. So was done in my Forms procedure and it seems it was crashing although I didn't get any error.
I finally managed solved the issue by using FORMS_DDL command and building up the update statement in a string. As soon as I checked what I was storing in this string I noticed the mistake.
Again, thank you very much for your time.
Regards,
Fernando

Similar Messages

  • Can download app BUT cannot update app on my 5s

    can download app BUT cannot update app on my 5s。when I updating it shows the ID, after i enter my password it doesn't work. The apps still shows update

    Check out your downloads and applications folders. Sometimes they get hidden.
    iTunes Store: Hiding and unhiding purchases

  • Running Windows 7 via bootcamp but cannot update to either 3.1 or 3.2. My MAC OS is 10.6.8

    I am running Windows 7 via bootcamp but cannot update to either 3.1 or 3.2. My MAC OS is 10.6.8.
    I can  download either version, but I get an error message after attempting to install.
    First tried Boot Camp 3.2.  Error message indicated I need Boot Camp 3.1 first.
    Then tried Boot Camp 3.1. Error message indicated I need Boot Camp 3.0 first
    Then tried Boot Camp 3.0. Would not allow download.
    I know the OSX came with Boot Camp why is there a problem????!!

    3.0 is on your OS X DVD. Clearly spelled out in the guide in Boot Camp Assistant, and here -
    www.apple.com/support/bootcamp : manuals, look for 10.6 pdf version.
    3.0 is pre-requisite for any other
    OS X comes with Boot Camp Assistant and you access 3.0 drivers while in Windows.

  • I'm getting this message "The iPod "Sage's iPod Touch" cannot be used because it requires iTunes version 10.6.3 or later. " But cannot update iTunes because my OS is 10.5.8

    I'm getting this message "The iPod “Sage’s iPod Touch” cannot be used because it requires iTunes version 10.6.3 or later. " But cannot update iTunes because my OS is 10.5.8.  How do I use my iPod with my iTunes?

    Solved.  Not sure what I finally clicked on on Apple.com but found iTunes 10.6.3 and was able to download that for free and now my iPod can sync.

  • Please help me about BBM can receive but cannot sent

    Hye alls.. Who know about this metter.. My BBM can receive but cannot reply or send to alls friend cntct in BBM,when i sent that BBM show the "X" red colour.. What i have to do if like that.. I already uninstall My BBM then i rebooting My set then i reinstall back.. Still same.. Can i have same help from u alls.. Thank you..

    Hello
    Is it your BIS activated?
    Without it you cannot use BBM, get emails or browse the internet.
    Try going to options and to host routing table and press menu key and click register to resend your service books. Now remove your battery and replace it.
    See if that helps.

  • I am now using 10.6.8.  Downloaded Maverick but cannot update OS on HD because get message the disk is not formatted as Mac OS extended(journaled).  Tried to use Disk Utility as per instruction but cannot complete operation.

    I am now using 10.6.8.  Downloaded Maverick but cannot update OS on HD because get message the disk is not formatted as Mac OS extended(journaled).  Tried to use Disk Utility as per instruction but cannot complete operation.

    Barney-15E:
                   The partition method worked after some trepidation.  I got the spinning beach ball after partitioning and couldn't go further till I named the second partition.  That may have done it.  Right now, things seem to be working o.k.  I'm updating a current iPhoto and will have to get a MS Word program that will function on the current OS and a current  Quicken.
    If necessary, can start up from the 10.6.8 system which I downloaded to an external HD before updating.  I can always fall back on that.  Also, I hope I don't get too many disconnects.  Thank you for your help.

  • Acrobat XI installed and runs but cannot update or register?

    Acrobat XI installed and runs but cannot update or register? typical fixes don't work or apply. Seems to be a very peculiar situation. Any thoughts?

    Anubha,
    If I open acrobat 11.0 and click on Help before I open a file, there is no choice of Product Registration.
    If I open a file, and click on Help, there is a choice for Product Registration, but it is transparent and cannot be selected.
    If I close that file but keep Acrobat open, a large dialogue box will pop-up asking me to register, and when I proceed, and after about 2-3 minutes, I receive another pop-up saying to check my connection and retry. I can
       retry over and stay in this loop. But when I close the registration pop-up and go back to Acrobat, the Product Registration selection under Help is no longer transparent, and I can select it. But when I do the Registration dialogue box returns, and when I proceed, I get the same no connection-retry pop-up and the loop continues.
    In fact, I have done just now, what I describe in the sentence above, in the time between what I typed above and what I am typing now in my open browser window.
    If I click on Help and select Adobe Help, a new tab opens in my browser showing Acrobat's Help page, as it did, just before I typed this sentence.
    If I click on Help and select Online Support, and then select Knowledge Base, it takes me to a new tab in my browser which is the same web page as I get when I press F1.
    I have selected 'Repair Acrobat Installation' from the Help menu twice and gone through the process with no change in outcome.
    If I click on Help and select Check for Updates, it seems to be updating, then stops the process, and I get the Registration pop-up, and the same thing.
    This seems entirely bizarre.
    What do you think?
    Michael

  • Can compile but cannot run.

    Dear Java Guru,
    Wish to find out why I can compile but cannot run. I encounter the following error: 'Exception in thread "main" java.lang.NoClassDefFoundError: javax/media/jai/JAI
    at saveasone.<init>(saveasone.java:29)
    at saveasone.main(saveasone.java:21)'
    This does not happen on one PC but happened on another PC.
    The one can compile is XP, the other which cannot compile is Win2k Professional. Is there any other possible cause ?
    Please advise.

    The problem probably lies in the Classpath. I think you are using different environments for compiling and running. If you are using an IDE for developing your code, you might have set the classpath correctly there but not in the executing environment. As about the OS's you mentioned, I think the problem is still with your Environment Settings than OS settings.

  • RTMT 8.91 I can highlight but cannot right click on alarms to expand, highlight disappears after 30 seconds.

    RTMT 8.91 I can highlight but cannot right click on alarms to expand, highlight disappears after 30 seconds.

    RTMT 8.91 I can highlight but cannot right click on alarms to expand, highlight disappears after 30 seconds.

  • ICloud mail not working. I can send but cannot receive. Is the system down?

    iCloud mail not working. I can send but cannot receive. Is the system down?

    Same here. I can send mails from iCloud.com Webmail, but cannot receive.
    A message that you sent could not be delivered to one or more of
    its recipients. This is a permanent error. The following address
    failed:
    "[email protected]":
    SMTP error from remote server after RCPT command:
    host: mx1.icloud.com.akadns.net
    5.1.1 unknown or illegal alias: [email protected]
    On iOS 6 device I can't receive, neither send mails.
    https://dl.dropbox.com/u/2234051/IMG_0001.PNG
    However, if I change to @me.com, everything works fine.

  • I can send but cannot receive my emails from gmail

    I can send but cannot receive my emails on my ipad from gmail

    iOS: Unable to send or receive email
    http://support.apple.com/kb/TS3899
    Can’t Send Emails on iPad – Troubleshooting Steps
    http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
    iPad Mail
    http://www.apple.com/support/ipad/mail/
    Try this: Delete the account in Mail and then set it up again.
     Cheers, Tom

  • I have one contact that I can call but cannot text. A return text states it is an invalid number. How can I fix it?

    I have one contact that I can call but cannot text. A return text states it is an invalid number. I have erased and re-entered the contact, changed phone identification and tried resetting the network - none have worked. What else can I try?

    What kind of phone is this person using? If this is an iPhone, are you logged into iMessage. If this is not an iMessage, then I suggest you both contact AT&T. SMS which is what is used between non-iPhone devices or between an iPhone and non-iPhone device are a carrier function. There is no setting in iOS or on the iPhone that deals with SMS. If you are able to send iMessage and/or SMS to other people, then AT&T needs to either look into your account to ensure SMS is configured, or they need to look at this other person's phone to see what it is reporting as its number since it is coming back invalid for you.

  • Can select, but cannot insert into oracle tables using php.

    I am having trouble inserting data into a tables in oracle using PHP. I can insert into the tables using baninst1, but nothing else. I can't even insert using the tables' owner. Every time I try I get the ORA-00492 error of table or view does not exist. However, I can run a select statement just fine. So far, baninst1 is the only user that can actually do inserts. I've triple checked all the table grants and everything is fine. Also, I can copy/paste the exact insert statement into SQL*Plus and it works with the correct user. It doesn't have to be baninst1. I've tried everything I can think of. I've tried putting the table name in quotes, adding the schema name to the table, checking public synonyms, but everything appears to be ok. I would greatly appreciate any suggestions others may have.
    I'm using PHP 5.2.3 with an oracle 9i DB.

    Here is the code that doesn't work. It works only with baninst1, no other username will work and all I do is change the my_username/my_password to something different. This is one example function where I try to do an insert, but it doesn't work on any of the tables I try.
    Thanks for looking.
    class Oracle {
         private $oracleUser = "my_username";
         private $oraclePassword = "my_password";
         private $oracleDB = "MY_DB";
         private $c = null;
         function Connect() {
              if ( !($this->c = ocilogon( $this->oracleUser, $this->oraclePassword, $this->oracleDB ) ) )
                   return false;
              return true;
         function AddNewTest($testName, $course, $section, $term, $maxAttempts, $length, $startDate, $startTime, $endDate, $endTime)
              $result = "";
              if( $this->c == null )
                   $this->Connect();     
              $splitIndex = strpos($course, " ");
              $subjectCode = substr($course, 0, $splitIndex);
              $courseNumber = substr($course, $splitIndex + 1);
              $insertStatment = "insert into szbtestinfo(szbtestinfo_test_name,
                                                                szbtestinfo_course_numb,
                                                           szbtestinfo_section,
                                                                szbtestinfo_max_attempts,
                                                                szbtestinfo_length_minutes,
                                                                szbtestinfo_start,
                                                                szbtestinfo_end,
                                                                szbtestinfo_id,
                                                                szbtestinfo_subj_code,
                                                                szbtestinfo_eff_term)
                                                                values( '" . $testName .
                   "', '" . $courseNumber .
                   "', '" . $section .
                   "', " . $maxAttempts .
                   ", " . $length .
                   ", to_date('" . $startDate . " " . $startTime . "', 'MM/DD/YYYY HH24:MI')" .
                   ", to_date('" . $endDate . " " . $endTime . "', 'MM/DD/YYYY HH24:MI')" .
                   ", szsnexttest.nextval" .
                   ", '" . $subjectCode .
                   "', '" . $term . "')";
              //return $insertStatment;
              $s = OCIParse($this->c, $insertStatment);
              try
                   $result = OCIExecute($s);
              catch(exception $e)
              return $result;
         }

  • Can create view, but cannot create table / materialized view: Xpath is null

    Hi all,
    We recently moved some XML documents into the database in an XMLType column and want to query the data. I've been writing some queries and turning them into materialized views. I got to one query, and something really strange is happening. My query returns the expected results, but I am getting an error when I try to create a materialized view out of it. Even stranger, I can create a view out of it, and I can manually insert its data into an existing table, but I cannot create a materialized view out of it and I cannot create a table out of it. Here is a brief summary, please let me know if anyone has suggestions.
    Issuing the following commands fails in SQLDeveloper
    -- Creating a materialized view out of the query fails:
    create materialized view element REFRESH COMPLETE ON DEMAND as [query];
    Error at Command Line:1 Column:1 SQL Error: ORA-31063: XPath compilation failed: Xpath is null.
    -- Creating a table out of the query with the following shortcut fails:
    create table element as [query];
    Error at Command Line:1 Column:1 SQL Error: ORA-31063: XPath compilation failed: Xpath is null.
    Issuing the following commands in SQLDeveloper works fine:
    -- Creating a view out of the query works:
    create or replace view element as [query];
    -- Creating a blank table from the query and then inserting data works:
    create table element as select * from [query] where 1 = 2;
    insert into element select * from [query];
    Here is a simplified version of the query...
    I have changed the names around, and cut the query down so maybe it will be a little easier to understand. I did confirm that this query is also having the same symptoms described above. Since I changed the names, executing the query returns no results. However creating a materialized view out of the query still fails with the 'Xpath is null' error.
    create materialized view element REFRESH COMPLETE ON DEMAND as
    select
    m.resource_id,
    xml.*
    from metadata_sources m,
    xmltable(
    'for $i in /metadata/app//*[(self::elem1 or self::elem2) and (parent::form or parent::subform)]
    let $formName := if($i/parent::subform) then $i/../../@name else $i/../@name
    let $subformName := if($i/parent::subform) then $i/../@name else ""
    return <data
    appId="{$i/ancestor::app[1]/idField}"
    formName="{$formName}"
    subformName="{$subformName}"
    elemName="{$i/@name}"></data>' passing m.xml_content
    columns
    app_id NUMBER path '@appId',
    form_name VARCHAR2(50 char) path '@formName',
    subform_name VARCHAR2(50 char) path '@subformName',
    elem_name VARCHAR2(50 char) path '@elemName'
    ) xml;
    Edited by: user11949534 on Feb 22, 2013 1:55 PM

    As far as creating a structured index, I was under the impression that I would need to then register an XSD. No, you can use it without an XML schema.
    How about a regular relational view, with an underlying xml index?
    That way you also eliminate the need for an explicit refresh step as you would then be querying real-time data, as if it were relational data.
    For example :
    Connected to:
    Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production
    SQL> create table tmp_xml of xmltype ;
    Table created.
    SQL> insert into tmp_xml values (
      2    xmlparse(document '<root><item id="1">ABC</item><item id="2">DEF</item></root>')
      3  ) ;
    1 row created.
    SQL> insert into tmp_xml values (
      2    xmlparse(document '<root><item id="3">GHI</item><item id="4">JKL</item></root>')
      3  ) ;
    1 row created.
    SQL> create or replace view tmp_xml_v as
      2  select x.item_id, x.item_val
      3  from tmp_xml
      4     , xmltable(
      5         '/root/item' passing object_value
      6         columns item_id  number      path '@id'
      7               , item_val varchar2(3) path '.'
      8       ) x
      9  ;
    View created.
    SQL> create index tmp_xml_sxi on tmp_xml (object_value)
      2  indextype is xdb.xmlindex
      3  parameters (q'#
      4  XMLTABLE tmp_xml_xtb '/root/item'
      5  COLUMNS item_id  number      path '@id'
      6        , item_val varchar2(3) path '.' #'
      7  ) ;
    Index created.
    SQL> exec dbms_stats.gather_table_stats(user, 'TMP_XML');
    PL/SQL procedure successfully completed.
    SQL> set autotrace on explain
    SQL> set lines 200
    SQL> select * from tmp_xml_v ;
       ITEM_ID ITE
             3 GHI
             4 JKL
             1 ABC
             2 DEF
    Execution Plan
    Plan hash value: 4168126828
    | Id  | Operation                    | Name                   | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT             |                        |     4 |   164 |     3   (0)| 00:00:01 |
    |   1 |  NESTED LOOPS                |                        |       |       |            |          |
    |   2 |   NESTED LOOPS               |                        |     4 |   164 |     3   (0)| 00:00:01 |
    |   3 |    INDEX FULL SCAN           | SYS_C009273            |     2 |    34 |     1   (0)| 00:00:01 |
    |*  4 |    INDEX RANGE SCAN          | SYS30366_30367_OID_IDX |     2 |       |     0   (0)| 00:00:01 |
    |   5 |   TABLE ACCESS BY INDEX ROWID| TMP_XML_XTB            |     2 |    48 |     1   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       4 - access("TMP_XML"."SYS_NC_OID$"="SYS_SXI_0"."OID")

  • Pls Help!! BMP EJB can select but not modify table

    Hi, please help!
    I wrote a CMP EJB for a simple table. Inside are JDBC calls to the database, using a connection object generated from the line:
    return new oracle.jdbc.driver.OracleDriver().defaultConnection();
    Or
    return DriverManager.getConnection("jdbc:oracle:kprb:");
    The EJB compiled and deployed without problem to OracleJVM, but using it with the test app, the bean can select, but no insert or update to the table!!!
    Then I found that, if I use the thin driver, as well as the username and password in the getConnection() call, I can insert and update without problem...
    I desperately need help for this problem, please enlighten me with any thought.
    Yours.
    Patrick.

    I have been suggested to use JNDI JDBC Datasource, but still no hope. Can someone on the JDev team helps?
    Very desperate.... =(
    Patrick.

Maybe you are looking for

  • Mysterious repeat log entries in System events log

    I tried unsuccessfully to share internet connection with 2 iMacs without router(That doesn't matter). But after this, my iMac (24" 2.8 GHz) not networked or on internet now shows this repeated log entries every minute: com.apple.launchd[1] (com.apple

  • FAGLFLEXT table not updating Transaction type  and Trading Partner

    Hi, The document which i post is development system is posted to FAGLFLEXT table properly along with the transaction type and trading Partner; however in the quality and production the document is getting posted in the table FAGLFLEXT but the transac

  • Com.sun.jndi.cosnaming.CNCtxFactory in java stored, makes ORA-03113

    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod PL/SQL Release 10.2.0.1.0 - Production CORE 10.2.0.1.0 Production TNS for Linux: Version 10.2.0.1.0 - Production NLSRTL Version 10.2.0.1.0 - Production In java store procedure we have t

  • Summarize across hierarchies

    Hi I am implementing a web report where I need to show purchased materials for each sold-to party. This means that all the result rows show result numbers per sold-to party. But I also need result numbers per material (not displayed, but to use in a

  • Formatting dynamic texts

    Hi, in SmartForms I use dynamic texts to output information in the form. It works fine but I have to format some of them for a smaller or bigger font. SAP does not give any possibility to set the paragraph and/or character formats like in the case of