Updating information using sqlplus

I cannot figure out why my code will not update my database. Using
sqlplus. I can type it into the database myself, but I cannot seem to pass the information through my jsp program
String type = request.getParameter("studentSelection");
String student = request.getParameter("student");
String change = request.getParameter("change");
Connection conn = null;
Statement stmt = null;
ResultSet rs = null;
conn = DriverManager.getConnection(jdbcURL, userpasswd);
stmt= conn.createStatement();
String upd = "UPDATE STUDENT SET FNAME ='"+change+"' WHERE SSN ='"+student+"'";          
stmt.executeUpdate(upd);
Here is my database structure, everything is a char of varchar:
SSN FNAME MI LNAME BDATE SEX PHONE
111111111 BOB J JONES 01-02-84 M 5551111

Hi,
are u getting any errors? If not then try to print the number of rows that are updated as executeUpdate will return the number of rows updated. Also since you have a where condition try and print the query to check if the where condition is being satisfied and then execute this query in your sqlplus to see if the query actually runs in sqlplus.
hope this helps

Similar Messages

  • Data missing when update SIS use RMCVNEUL/RMCVNEUF

    When update information structure Sxxx use ABAP program RMCVNEUL/RMCVNEUF, I found APERDAT for this Sxxx was missing.
    Any reason?
    Thanks a lot.

    This link http://support.apple.com/kb/HT1518 will be helpful when creating your original presentation. Make sure the symbols are being created with Unicode. You also may want to check your iPad settings under General -> Keyboards -> International for a keyboard that can enter to correct characters if you are entering them from the iPad's keyboards. There are also some .99 apps that enable entering symbols and special characters directly on the iPad.
    HTH

  • Bubble Mix 3 in 1 Plus update information without bought it

    Hi there,
    I have constantly an update for Bubble Mix 3 in 1 Plus on Mac App Store. However, this is a paid app and i never bought it! I only installed the free version of that app, but i don't have it installed at this moment. After i do the update of Bubble Mix 3 in 1 Plus it is installed and works perfectly and the update information disappear. If i uninstall it, the update information returns. Anyone have a solution for this or it is a bug? I'm using Mac OS X Lion 10.7.2.
    Thanks to all.

    Try deleting the cache associated with the App Store.
    Go to ~/Library/Caches/com.apple.appstore
    Move the Cache.db file from the com.apple.appstore folder to the Trash.
    ~ (Tilde) character represents the Home folder
    For Lion:   To find the Home folder in OS X Lion, open the Finder, hold the Option key, and choose Go > Library

  • Trying to log in using sqlplus /nolog and getting SP2-0640

    Hello, I searched for this problem but not having much luck. I have Oracle 9iR2 running on Solaris 9 workstation. I can log on giving sys/passwd as sysdba and log on using any other user accounts. What I can't do is get into sqlplus using /nolog. I am setting up a dataguard physical clone. The clone is another 9iR2 workstation and i just installed the RDBMS software without creating a database. I can go into this database with sqlplus /nolog. I cannot do this on my intended primary database. I remember being able to get into the database when i first set it up using sqlplus /nolog but have since changed the unix account password and i believe this caused it but when i change the password back to the same one when I created the database, it still does not work. The error I get is SP2-0640: Not connected. Is there a log I can look up that will give me more information? thanks,
    Jim

    Normally this errors occurs, if you have in glogin.sql (located in $ORACLE_HOME/sqlplus/admin) or login.sql statements,which require a working connection.
    Werner

  • Updating FK01 using LSMW

    Hi Experts,
    I need to do an upload for  vendor master in transaction FK01.
    I cant use the batch recording method since i come across problems while trying to upload the "wtihhold tax information table". So when I use the direct input method , using program RFBIKR00, I see that it is probably for transaction xk01. Do correct and direct me further on that if I am wrong.
    My question is, that is there any way of updating FK01 using LSMW? I am unable to find an existing thread on this.
    Thanks in advance.
    Regards,
    Trishna

    Hi
    Probably RFBIKR00 supports XK01 because it's the global transaction, FKO1 loads accounting master data only, that means the same operations you need to do by FK01 can be done by XK01: there's the problem?
    Max

  • Aperture 3.03 when quitting gets stuck in "Updating information for preview

    Hi there,
    i notice that maybe 3 out of 10 times when i quit aperture, it hangs.
    There is a progress bar at the top saying "updating information for preview images" (translated, so the english original may be a bit different) but the bar wont move, the disc doesnt make any sounds and when i look in the actvity monitor it says aperture has around 35 threads and uses 1% of cpu power.
    i usually then force quite aperture after some time.
    if seems to occur more often after emptying the trash.
    any ideas?
    i get rather frustrated with force quittung becaus i get the feeling its no good for my library, however i run into problems repairing my library as explain elsewhere.
    alexander

    Alexander, have exactly the same problem, as do many others:
    http://discussions.apple.com/message.jspa?messageID=11628321#11628321
    Hopefully there will be an update soon to fix it.

  • Unable to connect using sqlplus using Oracle 11.2.0.1 32bit(x86) client

    I have database running on Oracle 11.2.0.3 on Linux 5.5 64bit. Another server where I have installed Oracle Client 11.2.0.1 32-bit (x86). (http://www.oracle.com/technetwork/database/enterprise-edition/downloads/112010-linuxsoft-085393.html).
    But I can not do tnsping, I get segementation fault. Additionally, I can not to database using sqlplus <user>@SID. I get prompted for the password, then I am back the unix prompt again without any error.
    For debugging, I installed 64bit version of the client, which can connect to database. I am using same version/copy of tnsnames.ora. No special character (^M) in the tnsnames.ora.
    Any suggestions how do I get this fixed?
    Thanks,
    KP

    I figure I should update my findings on the resolution.
    during Oracle 11.2.0.1 client installation, there was an error/warning message about oracle net configuration assistant unable to run. So, I had ignore it thinking its benign and created the tnsnames.ora file manually. On a hunch after 9 days of debugging, i decided to look into this warning message, and found some info in the ora32Inventory/logs/installAction-<date>.log. It had following error about java when running oracle net config.
    INFO: # Java VM: Java HotSpot(TM) Server VM (1.5.0_17-b02 mixed mode)
    INFO: # Problematic frame:
    INFO: # C [libnnz11.so+0x3c35e]
    So, I google the error, and after some research and reading, found an oracle patch to address this error:
    ORA-24550: SQL*Plus 32-Bit Client May Crash On Linux X86-64 OS With AMD Processor [ID 1120724.1]
    Patch info: 8670579 - DBBETA :NETCA/DBCA FAILED WITH HOTSPOT VIRTUAL MACHINE
    Typically, this patch (8670579) is installed on Oracle RAC. however I tried on my app server (oracle client). It resolved my sqlplus issue and more importantly it resolve my application (Business Objects/BSAE) installation issue where it was unable to connect to oracle database using 11.2.0.1 client.
    Cheers,
    KP

  • DPM 2012 Failed to update permissions used in end-user recovery

    Hello everyone,
    I'm going to try the clearest way possible to describe the problem.
    Our test server is Windows Server 2012 with DPM 2012 SP1 CU2 (BKP-SRV01) with a Remote SQL server 2012 (PBASC)
    I protected a share folder on a DC on Windows Server 2008 R2 (PAD)
    When I activate End-User Recovery I get a warning in the monitor tab that say this
    Failed to update permissions used for end-user recovery on pad. Permissions update failed for the following reason: (ID 3123)
    DPM is unable to enumerate contents in pad_PartageTest on the protected computer BKP-SRV01. Recycle Bin, System Volume Information folder, non-NTFS volumes, DFS links, CDs, Quorum Disk (for cluster) and other removable media cannot be protected. (ID 38 Details:
    the end user recovery is working, but i do not know if it affect other things. I also get that message when i try to browse on the DPM server when creating a protection group
    When I go see the DPM Server / File and Storage Services / Shares on Server Manager i get  "Failed to retrieve folder permission" in the properties of the Protected server share.
    I tried to search for almost 2 days without finding anything about that particular issue.
    Is there a way (clean way) to fix the issue?
    Thanks in advance for the help!

    Closing for housekeeping.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Regards, Mike J. [MSFT] This
    posting is provided "AS IS" with no warranties, and confers no rights.
    That's not very helpful. I've got the same issue :(
    Comes up for servers where a protection group related to it errors out (recovery point failure usually).

  • [HELP] How to records user who use SQLPlus or SQL editor?

    Dear Gurus,
    Is onyone know how to record user who use SQLplus or any SQL editor?
    for instance...
    user1 using SQLplus on monday august 9.30.21 PM...and I have table which record this for audit user.
    Or..
    Can I block user who connect to oracle using SQLPlus?
    If anyone know how to do this..please inform me...
    Thanks and Regards
    Erie

    You can enable Auditing (AUDIT_TRAIL) and audit at the Session Level to record Logon and Log off of a required user. This can be enabled to be recorded in the audit table or operation system file. You can also audit user statements etc.
    For example, to enable auditing connect for user UGONIC
    SQL>audit connect by UGONIC;
    TO disable it
    SQL>noaudit connect by UGONIC;
    Check in the SQL Reference for the AUDIT statement and requirements.
    If you do not want the user to connect at all via SQL*Plus, you can use PRODUCT_USER_PROFILE to disable a users access to SQL*Plus or at the lower level, disable specified SQL*Plus and SQL commands for the user. You need to run the PUPBLD.SQL script as system user (if not run yet) and add records to it as required.
    Example: After running PUPBLD.SQL. This entry stops the user UGONIC from using the drop command at the backend in SQL*Plus.
    INSERT into product_user_profile (product,userid,attribute,char_value,date_value)
    values('SQL*Plus','UGONIC','DROP','DISABLED',NULL);
    Note that if a user is already connected by the profile entry, it is not activated on that session, but on subsequent logons. Again read the requied security documentations for this.
    For both auditing, you need to set the required database intialisation parameters and know where to get the audit records (in tables, views or OS file). For instance, when using tables, you maintain and query tables like audit$ to view the logs. When using OS type logging, it is recorded on the path specified in the AUDIT_FILE_DEST init parameter (In Windows, it is logged in the Windows Event and you can view it from the event viewer).

  • Update DataGrid using RemoteObject

    I am using a RemoteObject method call to populate an ArrayCollection used as a dataProvider in my DataGrid. I use the render() method on the datagrid to make sure the datagrid displays the updated data the RemoteObject method is returning everytime it is displayed. My problem is the datagrid displays the updated information but gets into an infinite call.
    What might be the appropriate way to get the updated data from the backend?
    -Thanks,
    Fauzia

    Hi Michael,
    Thanks for your reply. The AC I use is bindable, but it doesn't get update with an initialize() method, thats why I had to use render(). This is an outline of my code...
      <mx:RemoteObject id="historyService" result="onResultGetList(event)" showBusyCursor="true" fault="onFault(event)" destination="historyService">
         <mx:method name="getLrcFindDetailCltn" result="onResultGetList(event)" makeObjectsBindable="true" fault="onFault(event)"/>
       </mx:RemoteObject>
           [Bindable]
            private var ldsDetails:ArrayCollection;
              public function getList():void
                historyService.getLrcFindDetailCltn();
              public function onResultGetList(event:ResultEvent):void
                 ldsDetails = event.result as ArrayCollection;
    <mx:DataGrid id="usersDataGrid" dataProvider="{ldsDetails}" render="getList();">
    <mx:columns>......
    Thanks,
    Fauzia

  • Unknown error while updating module use!

    I restarted XE with "/etc/init.d/oracle-xe stop /etc/init.d/oracle-xe start" and then see this error message in the terminal console. Every serveral minutes, the error "Unknown error while updating module use!" is echoed.
    Any advice?

    Look for the alert_xe.log file, maybe you'll find some additional information there if that message is related to your XE instance.
    C.

  • Newbie: trying to open a database using SQLPLUS, ORA errors

    Hi!
    Installed 10g (and latest patch) on Suse10.2. When I try to startup the database using SQLPLUS I get this:
    Redo Buffers 2932736 bytes
    ORA-00205: error in identifying control file, check alert log for more info
    I check the alertlog:
    Fri Sep 7 11:33:27 2007
    ORA-00202: control file: '/opt/oradata/oracle/control01.ctl'
    ORA-27037: unable to obtain file status
    Linux Error: 13: Permission denied
    Additional information: 3
    Fri Sep 7 11:33:27 2007
    ORA-205 signalled during: ALTER DATABASE MOUNT...
    Any ideas on whats causing this problem? I heve used google ALOT but have not found any good answers....

    Hi!
    Well, Oracle was not the user, but I have changed that now. But now I get this instead:
    SQL> startup
    ORACLE instance started.
    Total System Global Area 100663296 bytes
    Fixed Size 1260288 bytes
    Variable Size 92275968 bytes
    Database Buffers 4194304 bytes
    Redo Buffers 2932736 bytes
    ORA-00201: control file version 10.2.0.1.0 incompatible with ORACLE version
    10.2.0.0.0
    ORA-00202: control file: '/opt/oradata/oracle/control01.ctl'
    So, I found some info about creating a controlfile, but that seems quite advanced...any suggestions?

  • Get and update information of service from osb by wlst/jmx

    I want to get some information of business service or proxy service,fox example endpoint URI, and update them ,use jmx.
    how to do?
    thanks.
    Edited by: iseeyou on 2012-2-24 上午12:41
    Edited by: iseeyou on 2012-2-26 下午7:36

    @phanai, are you using PHP? If so, you'll want to see this document: <http://www.rootmanager.com/iphone-ota-configuration/retrieving-iphone-response -with-php.html>

  • Listiner.log file location inside DB using sqlplus.....

    hello all, Is there any way to get the location of listiner.log from inside the database (using sqlplus, connecting as SYS). I do know how to get the location using lsncrtl, but need to do this inside sqlplus ??? Is there anyways to do this on 10g and 11g ??? Lets say i am using LOCAL_LISTINER parameter too....

    ${ADR Directory}/diag/tnslsnr/${HOSTNAME}/${LISTENER_NAME}/trace/listener.logclose but not correct
    oracle@bcm-laptop:~$ lsnrctl start
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 08-DEC-2010 17:39:39
    Copyright (c) 1991, 2009, Oracle.  All rights reserved.
    Starting /u01/app/oracle/product/11.2.0/dbhome_1/bin/tnslsnr: please wait...
    TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    System parameter file is /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    Log messages written to /u01/app/oracle/diag/tnslsnr/bcm-laptop/listener/alert/log.xml
    Trace information written to /u01/app/oracle/diag/tnslsnr/bcm-laptop/listener/trace/ora_5765_140525839877888.trc
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521)))
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date                08-DEC-2010 17:39:41
    Uptime                    0 days 0 hr. 0 min. 0 sec
    Trace Level               support
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    Listener Log File         /u01/app/oracle/diag/tnslsnr/bcm-laptop/listener/alert/log.xml
    NOTE line immediately above

  • Failed to update permissions used for end-user recovery on . Permissions update failed for the following reason: (ID 3123)

    I patched 2012 to the SP1 level and now I'm getting these warnings on many servers.
    It seems to be considering these items as removable media?
    DPM 2012, SP1, version 4.1.3313.0
    Failed to update permissions used for end-user recovery on skutter.pmuk.net. Permissions update failed for the following reason: (ID 3123)
    Affected area: skutter.pmuk.net
    Occurred since: 11/01/2013 09:04:43
    Description: Failed to update permissions used for end-user recovery on skutter.pmuk.net. Permissions update failed for the following reason: (ID 3123)
     DPM is unable to enumerate contents in 2aad3f75a7e54a0f91b640d7f158f00a , 5702fef3756e4ca8af0554013951f32d , 78f9e6070fbd43aeb328700a88a3c926 , aquaria.pmuk.net_MTATempStore$ , ariel.pmuk.net_MTATempStore$ , atlantis.pmuk.net_downloads , atlantis.pmuk.net_MTATempStore$
    , atlantis.pmuk.net_print$ , capricorn.pmuk.net_MTATempStore$ , CCM.pmuk.net_IvrDirectory , CCM.pmuk.net_MTATempStore$ , CHIRON.pmuk.net_MTATempStore$ , cpeserv-i03.pmuk.net_IMAGING , defiant.pmuk.net_idsc , defiant.pmuk.net_MTATempStore$ ,firebird.pmuk.net_Accts_serve
    , firebird.pmuk.net_case , firebird.pmuk.net_Control ,firebird.pmuk.net_Fuel Cell , firebird.pmuk.net_HADCAD , firebird.pmuk.net_haddesign , firebird.pmuk.net_hadendurancelab , firebird.pmuk.net_HADEngCad , firebird.pmuk.net_HADPCLGainspeed ,firebird.pmuk.net_HADPCLProjects
    ,firebird.pmuk.net_HADPCLQuality  , firebird.pmuk.net_HADPCLStandards , firebird.pmuk.net_hrXerox , firebird.pmuk.net_hs , firebird.pmuk.net_ITXerox , firebird.pmuk.net_JunHigashimura , firebird.pmuk.net_MTATempStore$ ,firebird.pmuk.net_office  ,firebird.pmuk.net_OMPM
    , firebird.pmuk.net_Outplacement ,firebird.pmuk.net_personal , firebird.pmuk.net_PJSESCANNER  ,firebird.pmuk.net_pmuk ,firebird.pmuk.net_pwa ,firebird.pmuk.net_pwa2 , firebird.pmuk.net_scanfret ,firebird.pmuk.net_Siebel8  ,firebird.pmuk.net_Spares 
    ,firebird.pmuk.net_test   ,firebird.pmuk.net_TVDC ,firebird.pmuk.net_xeroxcpe$  ,firebird.pmuk.net_xeroxrd$ , HALLEY.pmuk.net_MTATempStore$ ,legion.pmuk.net_dfs ,legion.pmuk.net_MTATempStore$ , legion.pmuk.net_NETLOGON  ,legion.pmuk.net_SYSVOL
    , nemesis.pmuk.net_KEvin  ,nemesis.pmuk.net_MTATempStore$ , PLEIDES.pmuk.net_Archive , PLEIDES.pmuk.net_DGHOME , PLEIDES.pmuk.net_MTATempStore$  ,PLEIDES.pmuk.net_print$ , roosevelt.pmuk.net_ARCserve$ ,roosevelt.pmuk.net_CHEYALERT$ , roosevelt.pmuk.net_HADQCEOLP
    ,roosevelt.pmuk.net_home3 , roosevelt.pmuk.net_MTATempStore$ ,roosevelt.pmuk.net_smssource , roosevelt.pmuk.net_WindowsEasyTransfer ,roosevelt.pmuk.net_XeroxScan , sagittarius.pmuk.net_MTATempStore$ ,sagittarius.pmuk.net_print$ , sakura.pmuk.net_MTATempStore$
    ,scorpia.pmuk.net_MTATempStore$ ,scorpion.pmuk.net_chandleram, scorpion.pmuk.net_Control  ,scorpion.pmuk.net_CPE ,scorpion.pmuk.net_Digital  ,scorpion.pmuk.net_Electrical , scorpion.pmuk.net_MTATempStore$ , scorpion.pmuk.net_NASUtils ,scorpion.pmuk.net_Personal
    ,scorpion.pmuk.net_QA ,scorpion.pmuk.net_QC , scorpion.pmuk.net_Technical , silverberg.pmuk.net_dfs  ,silverberg.pmuk.net_MTATempStore$ ,silverberg.pmuk.net_NETLOGON , silverberg.pmuk.net_SYSVOL ,skutter.pmuk.net_dfs , skutter.pmuk.net_MTATempStore$ ,skutter.pmuk.net_NETLOGON
    ,skutter.pmuk.net_sharepoint-saver ,skutter.pmuk.net_SYSVOL , tempest.pmuk.net_MTATempStore$ , tempest.pmuk.net_Quarantine ,tempest.pmuk.net_SiteBackups , tempest.pmuk.net_tsdp , titania.pmuk.net_MTATempStore$ , valiant.pmuk.net_domino , valiant.pmuk.net_hadprod
    , valiant.pmuk.net_MTATempStore$ ,valiant.pmuk.net_oracle ,vindaloo.pmuk.net_MTATempStore$ , virgon.pmuk.net_faxclient ,virgon.pmuk.net_FxsSrvCp$ ,virgon.pmuk.net_MTATempStore$ , xavier.pmuk.net_Address ,xavier.pmuk.net_downloads ,xavier.pmuk.net_drivers ,
    xavier.pmuk.net_Exchange IS Starter ,xavier.pmuk.net_ExchangeOAB , xavier.pmuk.net_ExchangeUM , xavier.pmuk.net_MTATempStore$ , xavier.pmuk.net_out-arch , xavier.pmuk.net_Resources$ on the protected computer tower.pmuk.net. Recycle Bin, System Volume Information
    folder, non-NTFS volumes,  DFS links,  CDs,  Quorum Disk (for cluster) and other removable media cannot be protected. (ID 38 Details: )
    Any Ideas? backups are OK, recovery points/sync's etc.
    Mark.

    I am using DPM 2012 R2, what finally worked to me to resolve my problem with EUR was to:
    In DPM I disabled EUR
    In Computer Management delete all DPM Shares (\\?\c:\Program Files\...)
    Using ADSI edit go to CN=MS-ShareMapConfiguration,CN=System,DC=X,DC=Y (Replace X & Y for your domain)
    Delete all of the mappings within the container
    In DPM enable EUR
    In DPM on a protection group I created a new recovery point and selected “Only synchronize (available only for file data)”
    Related article on ADSI Edit and DPM -
    http://social.technet.microsoft.com/Forums/en-US/e0258384-8422-408c-8839-2580d616a9ec/edsi-edit-related-to-data-protection-manager?forum=dpmfilebackup
    I hope this helps
    JD Young

Maybe you are looking for

  • Less then 2 month oldThinkpad Yoga Hard Drive crash, over a month for new HD to be sent out

    My Daughter's thinkpad yoga HD crashed on friday.  Called technical support and were told a new HD and technician would be delivered on  Monday.   Monday came and wasn't delivered, called back and was told it would be here in 3 days.   Called back to

  • Use MBP as overflow display?

    Hi, I have a 15" MBP and now a 23" Apple display. Does anyone know how I can have my desktop on my 23" display and use the MBP display as an overflow? I don't want to run the MBP shut by the way. Thanks

  • SAP Treasury Reporting

    Hi, Company investments in State Bank Of India Fixed Deposit schemes. Investment made in 10 different Interest Rates. Now, Client need a report on Interest rate wise. How will i achieve this? question 2: My company have 10 company codes. for example,

  • DBMS_XMLGEN - Performance issue

    Hi, We are generating a report in 11g using DBMS_XMLGEN. The query has many cursors, using lot of tables , packages and views. I tried passing a string and also ref cursor to DBMS_XMLGEN. In both cases the performance is slow. The same query that run

  • Possible hacking of my MacBook

    For the last couple of weeks I keep getting locked out from my email accounts. I have several emails on Aol, Hotmail and Yahoo and when I'm trying to log in I'm getting messages like "We have detected unusual activity on this account and for your sec