Can not execute "begin my_stored_procedure; end;" statement in occi?

HI,All,
After running the following piece of code,I get the exception ORA-06550:
try
env = Environment::createEnvironment();
assert(env!=NULL);
con = environment->createConnection("user", "pwd", "orcl");
catch (SQLException ex)
cout<<ex.what();
Statement *stmt;
try
stmt=conn->createStatement("begin dbms_java.grant_permission('SYSTEM','java.io.FilePermission','*', 'read ,write, execute, delete'); end;");
stmt ->executeUpdate();
catch (SQLException ex)
cout<<ex.what();
ERROR:
ORA-06550: line 1, column 1:
PLS-00103: Encountered the symbol "" when expecting one of the following:
begin case declare exit for......
Can someone explain why I get this error?
Thanks

Hi,
What version of OCCI and platform?
I just ran the sample code you provided and got no errors on 11.2.0.1 on 64-bit Windows.
EDIT1: Is the format of the code on your system the same as it is here on the forum? I mean, no line breaks, hidden characters, etc.? The format here is correct.
Regards,
Mark
Edited by: Mark Williams on Sep 14, 2010 2:12 PM

Similar Messages

  • End action will not execute because of end action on the final chapter point

    I will be referring to this video:
    http://tv.adobe.com/watch/learn-encore-cs4/creating-an-event-dvd/
    I followed this exactly, except for the slide show (and I made a DVD instead of flash), but when I checked the project, I get the error message "End action will not execute because of end action on the final chapter point".
    I don't understand.  I did not change any end points except for the one specified in this tutorial.  (About the Max footage for the very beginning, before the menu).  If anything was added, it was Adobe's doing.
    I do notice that in 00:04 in the tutorial, there's a downward arrow on the very end of the timeline.  My timeline does not have this.  How was this done?
    In the Encore software, after the timeline is loaded, there is no arrow at the very end.  Mine doesn't have that either.
    I'm finding Adobe/Encore's way of making menus rather difficult.  With Pinnacle Studios (at least through 8-12), making menus was easy, and it set up the chapters for you.  Why can't there be an automated menu feature in Encore?
    Anyway, here's my project:
    Main time line has 9 chapters. When clicking on their chapter points, all say End Action: not set.
    When I click on the white bar above the lite purple footage of the time line, where the chapter point's bottom rest, it says, End Action: Not Set AND Menu Remote: Return to Last Menu.
    All 9 chapter points are white.
    In the flowcart, there is the DVD icon --> my few seconds opening credits --> menu that has a Play All and Scene Selection button
    Play All goes to first chapter of video
    Scene Selection (submenu #1) goes to 6 scenes, a next, previous, main menu.  All seem to be linked properly.
    Scene Selection for scenes 7-9 are in the #2 submenu.  Has a previous button and a main menu button.   All seem to be linked properly.
    Can anyone offer any advice?  Help?  I need to make this DVD and two others by the end of the week!
    If you need more information, please let me know that too.

    If I make a change in the timeline in Premiere, will that new change be reflected in the timeline of Encore?
    If you used Adobe Dynamic Link, then yes, the Timeline will be updated. If you did not, then you will need to Export again, then Import into Encore. Watch out if you have already Transcoded, etc., and I'd name the new Timeline Export differently, Import that, use Replace Asset. When a Project is very new, and nothing much has been done, it will not be so picky. After a couple of links, etc., it gets VERY picky, and Replace Asset will help.
    Is there a way to reload the project without having to redo all the menus and links?
    If you did a Save_As, or still have your original Project, i.e. you started a completely new Project with a unique name, you can go back to the original.
    Hope that helps,
    Hunt

  • Compiling COBOLs in PSOVM - psrun.mak error - "cob64: can not execute Id".

    Hi All,
    After installing PeopleSoft OVM in our server, I need to recompile the COBOL. I believe this is not included in the OVM. These are the steps I did.
    1. Installed Microfocus Server Express 5.0 WrapPack 4
    2. Follow the steps in Compiling Cobol in Unix mentioned is the PeopleTools_8.50_Installation_Oracle guide.
    I was able to successfully compille the COBOL files by running ./pscbl.mak. The next step is Linking COBOL Components on UNIX by running ./psrun.mak and here I got the error:
    +./psrun.mak - linking PSRUN for oel-5-x86_64, Version 2.6.18-92.0.0.0.1.el5xen ...+
    +./psrun.mak - Error(s) encountered creating PSRUN!+
    +./psrun.mak - See /opt/oracle/psft/appbatch/tools/setup/psrun.err for messages+
    +[root@pshcm91ab setup]# more /opt/oracle/psft/appbatch/tools/setup/psrun.err+
    cob64: can not execute ld
    +[root@pshcm91ab setup]#+
    I followed all the steps in setting environment variable mention in the "Compiling Cobols in Unix" in PeopleTools_8.50_Installation_Oracle.
    Is there any specific documentation of compiling COBOLs in PeopleSoft OVM?
    Can anyone help me with this?
    Thanks in advance.
    -Chris
    Edited by: user9977167 on 4/02/2010 15:52
    Edited by: user9977167 on 5/02/2010 06:18

    Hi,
    Ok, I reproduce your case :
    [psadm1@psovmab setup]$ ./psrun.mak
    ./psrun.mak - linking PSRUN for oel-5-x86_64, Version 2.6.18-92.0.0.0.1.el5xen ...
    ./psrun.mak - Error(s) encountered creating PSRUN!
    ./psrun.mak - See /opt/oracle/psft/appbatch/tools/setup/psrun.err for messages
    [psadm1@psovmab setup]$ more /opt/oracle/psft/appbatch/tools/setup/psrun.err
    cob64: can not execute ld
    [psadm1@psovmab setup]$It looks like a lot of rpm packages required by ld are missing on Peoplesoft OVM App/Batch server compared to the Peoplesoft OVM database server for instance.
    I added a lot of packages because of the dependendcies as below :
    From OEL5.2 Disk 1
    ==================
    -rw-r--r-- 1 root root  899210 Feb  7 10:10 kernel-headers-2.6.18-92.el5.x86_64.rpm
    -rw-r--r-- 1 root root  3073639 Feb  7 10:25 binutils-2.17.50.0.6-6.el5.x86_64.rpm
    -rw-r--r-- 1 root root  3114462 Feb  7 10:29 cpp-4.1.2-42.el5.x86_64.rpm
    [root@psovmab rpm]# rpm -Uvh kernel-headers-2.6.18-92.el5.x86_64.rpm
    Preparing...                ########################################### [100%]
       1:kernel-headers         ########################################### [100%]
    [root@psovmab rpm]# rpm -Uvh binutils-2.17.50.0.6-6.el5.x86_64.rpm
    Preparing...                ########################################### [100%]
       1:binutils               ########################################### [100%]
    [root@psovmab rpm]# rpm -Uvh cpp-4.1.2-42.el5.x86_64.rpm
    Preparing...                ########################################### [100%]
       1:cpp                    ########################################### [100%]
    [root@psovmab rpm]#
    From OEL5.2 Disk 2
    ==================
    -rw-r--r-- 1 root root  614718 Feb  7 10:05 glibc-headers-2.5-24.x86_64.rpm
    -rw-r--r-- 1 root root 2535024 Feb  7 10:05 glibc-devel-2.5-24.x86_64.rpm
    -rw-r--r-- 1 root root 2105297 Feb  7 10:05 glibc-devel-2.5-24.i386.rpm
    -rw-r--r-- 1 root root 5544086 Feb  7 10:20 gcc-4.1.2-42.el5.x86_64.rpm
    -rw-r--r-- 1 root root 3987493 Feb  7 10:20 gcc-c++-4.1.2-42.el5.x86_64.rpm
    -rw-r--r-- 1 root root    83518 Feb  7 10:31 libgomp-4.1.2-42.el5.i386.rpm
    -rw-r--r-- 1 root root    84654 Feb  7 10:41 libgomp-4.1.2-42.el5.x86_64.rpm
    -rw-r--r-- 1 root root  2980440 Feb  7 10:43 libstdc++-devel-4.1.2-42.el5.x86_64.rpm
    -rw-r--r-- 1 root root    20483 Feb  7 11:46 elfutils-libelf-devel-0.125-3.el5.x86_64.rpm
    -rw-r--r-- 1 root root    58852 Feb  7 11:46 elfutils-libelf-devel-static-0.125-3.el5.x86_64.rpm
    -rw-r--r-- 1 root root   102193 Feb  7 11:49 elfutils-libs-0.125-3.el5.x86_64.rpm
    [root@psovmab rpm]# rpm -Uvh glibc-headers-2.5-24.x86_64.rpm
    Preparing...                ########################################### [100%]
       1:glibc-headers          ########################################### [100%]
    [root@psovmab rpm]#
    [root@psovmab rpm]# rpm -Uvh glibc-devel-2.5-24.x86_64.rpm
    Preparing...                ########################################### [100%]
       1:glibc-devel            ########################################### [100%]
    [root@psovmab rpm]#
    [root@psovmab rpm]# rpm -Uvh glibc-devel-2.5-24.i386.rpm
    Preparing...                ########################################### [100%]
       1:glibc-devel            ########################################### [100%]
    [root@psovmab rpm]# rpm -Uvh libgomp-4.1.2-42.el5.i386.rpm
    Preparing...                ########################################### [100%]
       1:libgomp                ########################################### [100%]
    [root@psovmab rpm]# rpm -Uvh libgomp-4.1.2-42.el5.x86_64.rpm
    Preparing...                ########################################### [100%]
       1:libgomp                ########################################### [100%]
    [root@psovmab rpm]# rpm -Uvh gcc-4.1.2-42.el5.x86_64.rpm
    Preparing...                ########################################### [100%]
       1:gcc                    ########################################### [100%]
    [root@psovmab rpm]# rpm -Uvh  libstdc++-devel-4.1.2-42.el5.x86_64.rpm
    Preparing...                ########################################### [100%]
       1:libstdc++-devel        ########################################### [100%]
    [root@psovmab rpm]#
    [root@psovmab rpm]# rpm -Uvh gcc-c++-4.1.2-42.el5.x86_64.rpm
    Preparing...                ########################################### [100%]
       1:gcc-c++                ########################################### [100%]
    [root@psovmab rpm]# rpm -Uvh elfutils-libs-0.125-3.el5.x86_64.rpm
    Preparing...                ########################################### [100%]
       1:elfutils-libs          ########################################### [100%]
    [root@psovmab rpm]# rpm -Uvh elfutils-libelf-devel-0.125-3.el5.x86_64.rpm elfutils-libelf-devel-static-0.125-3.el5.x86_64.rpm
    Preparing...                ########################################### [100%]
       1:elfutils-libelf-devel-s########################################### [ 50%]
       2:elfutils-libelf-devel  ########################################### [100%]
    [root@psovmab rpm]#
    From OEL5.2 Disk 3
    ==================
    -rw-r--r-- 1 root root  4588773 Feb  7 10:22 compat-gcc-34-3.4.6-4.x86_64.rpm
    -rw-r--r-- 1 root root 13542100 Feb  7 10:23 compat-gcc-34-c++-3.4.6-4.x86_64.rpm
    -rw-r--r-- 1 root root   232846 Feb  7 12:21 compat-libstdc++-33-3.2.3-61.x86_64.rpm
    [root@psovmab rpm]# rpm -Uvh compat-gcc-34-3.4.6-4.x86_64.rpm
    Preparing...                ########################################### [100%]
       1:compat-gcc-34          ########################################### [100%]
    [root@psovmab rpm]# rpm -Uvh compat-gcc-34-c++-3.4.6-4.x86_64.rpm
    Preparing...                ########################################### [100%]
       1:compat-gcc-34-c++      ########################################### [100%]
    [root@psovmab rpm]#The initial error is gone, but got a new one when linking :
    [psadm1@psovmab setup]$ ./psrun.mak
    ./psrun.mak - linking PSRUN for oel-5-x86_64, Version 2.6.18-92.0.0.0.1.el5xen ...
    ./psrun.mak - Error(s) encountered creating PSRUN!
    ./psrun.mak - See /opt/oracle/psft/appbatch/tools/setup/psrun.err for messages
    [psadm1@psovmab setup]$ more /opt/oracle/psft/appbatch/tools/setup/psrun.err
    ld: cannot find -lgcc
    [psadm1@psovmab setup]$I looked around for this error, found a Metalink note, but the suggestion does not apply here, the path directory metioned in $COBDIR/etc/cobopt already exists :
    [psadm1@psovmab setup]$ more $COBDIR/etc/cobopt
    -C nolist
    set GCC_LIB=/usr/lib/gcc/x86_64-redhat-linux/3.4.6
    [psadm1@psovmab setup]$ ls /usr/lib/gcc/x86_64-redhat-linux/3.4.6
    32          crtbeginS.o  crtend.o   include   libgcc_eh.a  libgcc_s_32.so  libstdc++.a   libstdc++_nonshared.a  libsupc++.a
    crtbegin.o  crtbeginT.o  crtendS.o  libgcc.a  libgcc_s.so  libgcov.a       libstdc++.so  libstdc++_shared.so    specs
    [psadm1@psovmab setup]$So far, no luck, I'll still try, but you may have more luck to install a separate server with all the packages install from the scratch and run a process scheduler from there.
    Nicolas.

  • Error: can not execute binary files SAP on Linux

    Dear Gurus.
    I have installed SAP test drive netweaver 2004 on my Linux. when ever i am trying to get the hardware key by the command Saplicense - get, I am getting the error message that " can not execute binary file."
    pls do let me know how to get rid of this.
    Abhishek

    > I have installed SAP test drive netweaver 2004 on my Linux. when ever i am trying to get the hardware key by the command Saplicense - get, I am getting the error message that " can not execute binary file."
    Please post the output of the commands (as use <sid>adm):
    file `which saplicense`
    uname -a
    Markus

  • Adobe Encore CS4: End action will not execute because of end action on the final chapter point

    Error screen:
    Error I’m getting for section titled Notes (PP 45 second video): “End action will not execute because of end action on the final chapter point.”
    The icon that shows error is in top line second from end.  I’m trying to 'end action' that portion of the video by going back to 'menu default'; also tried end action w/ ‘Stop’ and neither work.
    I saw a post about checking timeline.  Not sure what I’m looking for there.  I have nothing in Orphanage area.  I also tried building despite Check Project error and it will not build project.  Any suggestions on how to fix: “End action will not execute because of end action on the final chapter point.”?

    Select chapter one on that timelne. Look in the properties panel. Does it have an end action? You do not want an end action on the chapter; just on the timeline itself.
    That will not generally prevent a build, however. So you may have other issues.

  • Operating System Window XP Professional. I can not open Firefox. I have reset it and it worked for a few days. Now I can not execute it. Appreciate help.

    Can not execute Firefox. So I updated it and reinstalled it. Then I reset it. For a couple days it worked fine. Now I am back to square one. Can not open firefox again.

    Certain Firefox problems can be solved by performing a ''Clean reinstall''. This means you remove Firefox and any leftover program files and then reinstall Firefox. Please follow these steps one by one:
    #Download the latest Desktop version of Firefox from http://www.mozilla.org and save the setup file to your computer.
    #After the download finishes, close all Firefox windows (click Exit from the Firefox or File menu) and confirm all upcoming messages.
    #Now, uninstall Firefox by following the steps mentioned in the [[Uninstall Firefox from your computer#w_uninstall-firefox|Uninstall Firefox]] article.
    '''IMPORTANT:''' On Windows, the uninstaller has the option to remove your personal data and settings. Make sure that you do '''not''' check this option; otherwise all of your bookmarks, passwords, extensions, user customizations and other Firefox [[Profiles|user profile data]] will be removed from your computer.
    After uninstalling Firefox on Windows, delete the "Mozilla Firefox" program folder, located by default in one of these locations:
    * '''(On 32-bit Windows)''' ''C:\Program Files\Mozilla Firefox''
    * '''(On 64-bit Windows)''' ''C:\Program Files (x86)\Mozilla Firefox''
    #Go to the Windows Start menu and click on "Computer".
    #In the Explorer window that opens, double click Local Disk (C:) to open the C:\ drive.
    #Find the "Program Files (x86)" folder or "Program Files" folder.
    #* On 32-bit Windows, double-click the '''Program Files''' folder to open it.
    #* On 64-bit Windows, you will see a "Program Files (x86)" folder AND a "Program Files" folder. Open the '''Program Files (x86)''' folder.
    #Look for a '''Mozilla Firefox''' folder. If you find one, right-click it and select ''Delete'' and confirm that you want to move the folder to the Recycle Bin.
    Now, go ahead and reinstall Firefox:
    #Double-click the downloaded installation file and go through the steps of the installation wizard.
    #Once the wizard is finished, choose to directly open Firefox after clicking the Finish button.
    Please report back to see if this helped you!

  • Can i use "begin" and "end" in a database control

    hi there
    i just want to know if i can use begin and end with several sql update statments in between in a database control. u see, i need to run few update statements together. i don't want to put them in seperate method. i was wondering if i could put them together in on method and run it. is there any other way to do it if begin and end are not allowed. thanks

    I have a J2EE application, for which I have a module which is used by system administrators. this module is completly written in Java swing.
    and it does talk to my EJBs.
    If you don't have a firewall in your application, then you can directly make your applications in awt, swing and applets talk to EJBs. if you do have a firewall, then just write a web-service wrapper over your EJBs and other J2EE components and use them from desktop applications.
    It seems that you want to implement a kind of a applet based monitor application for your J2EE EJBs on the server. Applets cannot directly monitor your EJBs.
    Create a new module which has a service which acts as an event listener on the server. each j2ee component on the server notify it if there is a change to them. this service, can then write the data realted to the modification on a socket which is continiously being read by the applet. So you can implement a kind of a monitor for J2ee apps with applets.
    hope this helps.
    regards,
    Abhishek.
    PS:How did you manage to adore the AWT ;-) ? I found that it sucks (good performance.. very poor lnf) ... java swing sucks too (very poor performance ... avaerage lnf).

  • Can not Login Dev or End user ID

    Hi all,
    I created a new WORKSPACE WS1 as the SUPER ADMIN.
    I then created an admin user WS1_ADMIN for this workspace (WS1).
    I also created a developer user WS1_DEV for this workspace (WS1).
    I also created a end user WS1_USER for this workspace (WS1).
    My problem is, I can login successfully using the userid "ws1_admin" , but I can not login to "ws1_dev" and "ws1_user" even if I tried changing password over and over again. It kept on saying "invalid credentials".
    Is there anything I missed out?
    Thanks
    Edited by: 843228 on May 27, 2011 1:52 AM

    Thanks,
    I have an application named ABC id 101, I developed in apex 2.0 in 10gXE database using the schema HR. I can run it on public using the id HR. Then I migrated it to APEX 4.0.2 in another database which is 11gR1. I migrated it using export/import. I imported it to my new worspace (WS1) and user "ws1_admin".
    My problem is when I run the application is still asking for the HR id.
    It will not accept the ws1_admin id in which It was imported anew, I am confused now where did it imported the old id "HR". How can I change the login id to the new ones?

  • Can not recieve pictures in emails, states"unknown error."

    Email arrives & I can see jpgs or notes at bottom below email. I click on anyone & a error message appears "unknown error" try again. Same thing happens. After a number of error messages appear it ask if I want to erase them! Also I will try moving the document & it opens in Adobe photoshop elements. Then it shows only the first page that looks like a picture. I can not open any other pages. The only documents I can get are Exel. Please help!

    Email arrives & I can see jpgs or notes at bottom below email. I click on anyone & a error message appears "unknown error" try again. Same thing happens. After a number of error messages appear it ask if I want to erase them! Also I will try moving the document & it opens in Adobe photoshop elements. Then it shows only the first page that looks like a picture. I can not open any other pages. The only documents I can get are Exel. Please help!

  • DPM: Agent unreachable - Can not map machine account Resolution state

    Hello,
    We have 15 DPM servers with latest patches (3.0.8193.0). Currently we are having below error messages into two of our DPM servers. Could you help us to resolve these problems?
    Alert: DPM: Agent unreachable - Can not map machine account
    Source: DPMSERV011
    Path: DPMSERV011.xxx.xx.com;DPMSERV011.xxx.xx.com
    Last modified by: System
    Last modified time: 10/31/2013 2:00:02 PM Alert description: DPM agents on some of the protected servers are not reachable because machine account cannot be mapped.
    DPM Server: DPMSERV011.corpaa.aa.com
    Resolution steps:
    Verify that both protected server and the domain controller are responding. Then in Microsoft Management Console (MMC), open the Group Policy Object Editor snap-in for the local computer and verify the local DNS client settings in Local Computer Policy\Computer
    Configuration\Administrative Templates\Network\DNS Client.
    (Note: The DNS Client is disabled at both DPM and agent server)
    Alert view link: "http://DataSERV54021.xxx.xx.com:51908/OperationsManager?DisplayMode=Pivot&AlertID=%7b925c8b34-0d99-4bd2-a754-71354bd89f0e%7d"
    Notification subscription ID generating this message: {6EED81DB-935D-651F-4ACA-194C1FDBB428}
    Regards
    Abul Hasnat
    Abul Hasnat

    Hello,
    The servers are pingable and there is no local firewall. The servers are communicating but some sync jobs are failing. The Sync set to every 45 min.
    Thank ypu
    Abul Hasnat
    Abul Hasnat

  • Unable to exit a PL/SQL Begin and End Statement

    All,
    OS: Solaris Unix
    DB: Oracle 9.2.0.4
    I'm calling and SQL files from the SQL PLUS prompt using
    @mysqlfile.sql
    which contains the following:
    declare
    current_month varchar2(20) := trim(to_char(sysdate,'Month'));
    current_year varchar2(20) := trim(to_char(sysdate,'YYYY'));
    begin
    PR_BUILD_REPORTS(current_month,current_year);
    end;
    This call to mysqlfile.sql is called from a Unix Shell script.
    The shell script hangs because the operation does not exit from teh mysqlfile.sql call. I have tried including and explict exit command after the proc call. I have also tried using exec <proc_name>;
    Can anyone shed some light on the above?

    Your anonymous pl/sql block will not run without a forward slash :
    current_year varchar2(20) := trim(to_char(sysdate,'YYYY'));
    begin
    PR_BUILD_REPORTS(current_month,current_year);
    end;
    AMM

  • Can not execute code within a symbol

    I have a basic if statement code written inside a symbol and if its true it plays a animation, however it doesn't execute, I get an : Javascript error in event handler! Event Type = element
    I have a symbol within that symbol I have multiple other symbols.
    Can some one help
    Thanks you

    Hi,
    The problem with the code is that you are trying to access a symbol "power" from symbol "menu", but "power" symbol is not there inside the "menu" symbol. The "power" symbol is on the stage.
    So, if you replace the code
         sym.getSymbol('power').play('in');
    with
         sym.getComposition().getStage().getSymbol("power").play("in"); //We are accessing the "power" symbol from stage symbol
    you will resolve the issue.
    hth,
    Vivekuma

  • Can not execute my created procedure

    Hello
    I have created a package with some procedures and functions, from Duncans site:
    http://djmein.blogspot.com/2007/07/custom-authentication-authorisation.html
    When I look in my SQL Workshop > Object-Browser > Packages
    I see my APP_SECURITY_PKG in the left column, if i cklick on it,
    then I see on right side my Specification and body of my package
    in this case:
    create or replace PACKAGE app_security_pkg
    AS
    PROCEDURE add_user (p_lastname IN VARCHAR2, p_firstname IN VARCHAR2,
    p_email IN VARCHAR2, p_password IN VARCHAR);
    END app_security_pkg;
    ok so far so good
    now I am in my SQL Workshop
    and tried:
    EXECUTE APP_SECURITY_PKG.add_user ('taubek', 'markus', '[email protected]', 'geheim')
    but its not working
    'I am tried also:
    SELECT APP_SECURITY_PKG.add_user ('taubek', 'markus', '[email protected]', 'geheim') from dual;
    but also its not working, it doesnt found my procedure
    ORA-00904: "APP_SECURITY_PKG"."ADD_USER": ungültiger Bezeichner ("ungültiger Bezeichner" means illegal name)
    Can anybody help me?

    Hello Markus,
    You're probably stuck in the synonyms and grants pit.
    Check the owners of the procedures you use in the other procedures. When they're used in different schemes/owners grant execute rights directly (not using a role).
    Also when you use the SQL Workshop tot test your code, be aware that this runs using the APEX_PUBLIC_USER (try : select user from dual).
    So this user needs to be granted to execute the procedures you've created. (And probably you have to define some synonyms).
    Hoffentlich hilft das etwas...
    Regards,
    Roel
    http://roelhartman.blogspot.com/
    http://www.bloggingaboutoracle.org/
    http://www.logica.com/

  • Can not execute a simple update query with ms access

    Hi
    I am trying to execute a simple update query , this is the code I am running : I get no exeptions but the db is not being updated .
    When I copy my query into access it works !
    The table / columns are spelled correctly and I am able to execute select queries.
    can anyone figure out what is going on
    Thanks shahar
    public static void main(String[] args) {
    MainManager mainManager = MainManager.getInstance();
    Log log = Log.getInstance();
    try {
    log.writeDebugMessage("befor executing query");
    //stmt.executeUpdate("update trainee set Trainee_Name = 'shahar&Rafi' where Trainee_Id = 1 ");
    //stmt = null ;
    PreparedStatement stmt1 = con.prepareStatement("UPDATE Trainee SET Trainee_Name =? WHERE Trainee_Id =?");
    String name = new String("Shahar&Rafi");
    int Id = 1 ;
    stmt1.setString(1,name);
    stmt1.setInt(2,Id);
    System.out.println(stmt1.toString());
    stmt1.execute();
    log.writeDebugMessage("After executing query");
    catch (SQLException e ){
    System.err.println("SQLException: " + e.getMessage());
    }

    Hi All,
    got the problem solved at last.
    first, in the SQL string all the values must be within " ' "
    for example:
    INSERT INTO Trainee(Trainee_Id , Trainee_password , Trainee_Address, Trainee_Name , Trainee_Phone , Trainee_Gender , Trainee_SessionTime , Trainee_Purpose , Trainee_HealthStatus , Trainee_StartDate , Trainee_Birthday) VALUES (6,'333','hhhh','rafi',048231821,true,63,4,true, ('Feb 22, 2002'), ('Feb 22, 2002'))
    second and more important,
    a 'dummy' sql select query must be performed after an update query
    example for code:
    try{
    DB.MainManager.getInstance().ExecuteUpdateQuery(A);
    DB.MainManager.getInstance().getStatement().executeQuery("SELECT * FROM Trainee");
    where A is the update query.

  • Can not execute 'asset year change' successfully.

    Hi all,
    I started run asset accounting sub-module of ECC 6.0 in 2007. After I posted depreciation on all of periods of fiscal year 2008. I change asset fiscal year to 2009 by 3 steps: First, I checked all of periods from fiscal year 2007 to fiscal year 2008 to ensure them were posted. Second, I executed "Year-end Closing" fiscal year 2007 and 2009. Third, I run "Fiscal Year Change" program to change fiscal year into 2009. But, the system responsed as below:
    "Target fiscal year specifications 2009 wrong for company code MH01
    Message no. AA709
    Diagnosis
    You have requested a fiscal year change for the year 2009.
    In company code MH01, this is not the fiscal year which directly follows the current, or just completed, fiscal year.
    System Response
    Company code MH01 will not be processed.
    Procedure
    Correct your entry."
    I'm very confuse. Please help me.

    Hi,
    check t.code:ob52  and make sure that periods in 2009 has been open?
    all the best
    Prasad

Maybe you are looking for

  • Filcking right a little bit on trackpad makes webpages stop working.

    Sorry if my English is broken... I'm using Safari 7.0.3 on Mac OS X 10.9.2 installed MacBook Pro. The trouble is just as menthoned in the title. If you have Majic Trackpad or built-in trackpad, try these steps... These steps make the problem happen.

  • Filesharing between iMac G5 w/iSight to PowerMac G3 Tower

    I recently got an iMac G5 to replace my very old, very slow PowerMac G3 with OS 9.2.3. My G3 tower does not have a firewire port. I want to get some files (music, etc.) from my old Mac to put on my G5. My problem is that they can't seem to find each

  • Problem when i update new os

    dear all i got a new iphone. when i connect to itunes it asked for an update and i accepted it and started my update. i dont know it the middle it got struck and i am just getting a blank screen with an apple in it..what i want to do... plz help me

  • Area chart with line chart

    Hello again!  I would like to develep a area chart with a line chart in one chart. Is it possible with Crystal? Thanks!

  • Can you have the games from your ipod touch on a macbook air, as in play it on the notebook?

    i really want to get a macbook air and would have to sell my ipod touch but have spent a lot of money on games and do not want to give that up. please serious answers if you don't know you're not helping anybody by answering.