Updating database on-exit message trigger

Good Morning,
Through a button in oracle forms im updating a value on multiple records in the database.
What i am curious about is if its possible to get oracle to trigger the save changes messages on exit without additional code on-exit key.
Thanks in advance,
D

example
update allemployees
set status=ACTIVE
where department=1;
--committhat will update the database but if i dont use commit when i'll try to exit ,the form wont ask for any save changes to be saved.
What i am actually trying to do it remove the commit after the update and let oracle forms to trigger on database change.

Similar Messages

  • Updating Database table through Format Trigger in 10g Reports

    Dear Users
    I'm using 10g Reports Rel.2. I'm using a report column as a hyperlink using SRW.Set_Hyperlink. I've taken 2 actions through this hyperlink. 1stly I'm callin a report from this link n 2ndly I'm running an update statement after the hyperlink statement like below:
    SRW.Set_Hyperlink('....');
    Begin
    Update table_name Set
    column_name=value;
    End;
    So the 1st statement is running well i.e report is being called but update statement is not executing. I've tried this both in HTMLCSS and PDF formats but Update statement is not executing. I was doing the same job successfully in 6i reports behind a button (except that report was being called using Srw.Run_Report). Is there any thing different in 10g reports for this job ???

    I'm using 'Update statement' behind the hyperlink in different situations for example I wish that a report should print only through a button or a hyperlink and its destination should be a printer. 2ndly I want to keep record of printed reports through updating a field against printed records in a table so that user should not be able to print a data again and again. I was doing this successfully in 6i behind a button but in 10g, report is being called through hyperlink but update statement below the report calling code does not execute.
    Have u understood the situation

  • Unable to Update Database.

    Hi All,
    I was trying to load data thru load files and got the following message.
    Unable to update database while in readonly mode for backup
    Unexpected Essbase error 1013231I tried looking at Information Help Menu.
    I could not find the error number.
    Could anyone help.
    Thanks in advance.
    Bal.

    Hi Atul,
    Thanks for the help.
    The Readonly error got resolved.
    But still the following error is displayed when I am loading data thru load rule.
    To Brief you up, I had done a database corrupt check using validate command because of the following error. The information map asks you to do the same since the other parameters are in the affirmative ie sufficient disk space, not using addsin, File is present.
    *Unable to Read Information From [C:\Hyperion\essbase\app\SMC\PL\PL-BS-LD.rul]*
    Unexpected Essbase error 1019003
    I used the VALIDATE <error.txt> command and found that the database is not corrupt.
    I also used the export command to see if everything goes well. That also works well.
    Note: I do not have any data in the Cube. I had cleared all data.
    Can you please help ?
    Regards
    Bal.
    Edited by: user11091956 on Apr 12, 2010 11:26 PM

  • Potential Windows Update database error detected 0x80070490

    This is the response I get when I run the Windows update troubleshooter from the Windows 8.1 Action Center.  If I click next it reports the errors have been fixed.  However if I run it again it reports exactly the same errors.
    After searching the Internet I have found that several users have reported having this issue.  As result of the aforementioned search I have tried the following:
    1) Run the Fixit tool for Windows 8.1 located at:
    http://support.microsoft.com/kb/971058/en-us.
    2) Run the System Update Readiness commands: DISM.exe /Online /Cleanup-image /Scanhealth and DISM.exe /Online /Cleanup-image /Restorehealth located at:
    http://support.microsoft.com/kb/947821/en-us.
    3) Saved contents of C:\Windows\System32\catroot2 to a temp folder and then deleted contents of C:\Windows\System32\catroot2.
    4)Renamed C:\Windows\SoftwareDistribution to C:\Windows\SoftwareDistribution.old
    5) Restarted Windows 8.1.
    6) Verified that C:\Windows\System32\catroot2 and that C:Windows\SoftwareDistribution folders had been rebuilt.
    7) I then ran the Windows update troubleshooter from the Window 8.1 Action Center again and got the same response as listed above. The errors still exist and are not fixed.
    8) Finally, I downloaded Windows 8.1 Enterprise Evaluation and I did a completely new clean install of Windows 8.1 and without installing anything else (no updates, no software, no antivirus) the above errors appeared within minutes after connecting
    to the internet.  I checked using the Windows update troubleshooter several times before connecting to the Internet and each time no problems were found, but shortly after I connected the above errors are shown to exists.
    Any suggestions that will help fix this issue will be of great help.

    Did anyone ever find an actual fix for this problem?  I have a very similar problem.  I have gone through the same steps for fixing my issues with getting a message of problems found every time I run the Windows Update troubleshooter.  It
    continually finds what it says are Potential Windows Update Database error detected 0x800700D and says they are fixed, along with another message saying Windows Update components must be repaired and it says they are fixed as well.  However, each time
    I run the troubleshooter it finds the same issues.  I have no problems running Windows Update under Windows 8.1 and them all installing without issue, yet I can't download or update ANY apps within the MS store and like the problem above, when it looks
    for my apps it says it's having problems finding them and to try later.  If I try to download even a free app, I get an error message that something happened and your purchase can't be completed. Error code: 0x80096004.
    I have dug through everything I can find on this error message and tried changing my sign in on my laptop to a local account, created a new MS account to access the store and continue to get the same error message.  I have tried it with my Kaspersky
    Internet Security 2015 turned completely off.  I've also ran SFC scannow and there are no errors and have ran DISM which found a problem but says it was fixed.  After running it again, there were no errors.  I have no other problems with anything
    else (that I know of on my machine).  It is an Asus Q400A and came with Windows 8.0.  I ran all the updates and then upgraded to 8.1 through the MS store without issue.  I have installed all updates since upgrading to 8.1 and have absolutely
    no problem running ANY updates, but can't seem to access the store no matter what I try.
    If anyone has found a solution to this I'd appreciate your input.  Hard to believe MS would put out a product that has such a basic problem that has affected so many users and can't seem to come up with some resolution that doesn't require registry
    editing, running commands from elevated command prompts, and a CS degree to resolve--there are soooo many issues online regarding this kind of error and others related to running SFC and DISM...most ending up in their ultimate default answer....renew or reinstall
    Windows and all the updates....which still doesn't resolve the problem for many!  I've always been a PC guy, but I'm starting to like the MacBook Pro I picked for work related reasons with great hesitation.  I've wasted more time chasing this issue
    down than I all the time I've spent actually using the Mac without even a hitch!
    Thx in advance for any feedback....please no MAC blasting....at this point, it would be not well received!!

  • Error when update Database

    I want to install PeopleSoft HRCS database and the database type is system. The version of peopletools is 8.49 and the HRCS is 9.0. After I create the database and import the data, I do the task of Updating Database to Latest PeopleTools Release. I do it step by step, when I do task7B-4-8, I can’t open data mover by PS. The error is the user PS has no create session privilege. So I grant the privilege to PS, it can open data mover. However before I do the task of update database, I can open the data mover by PS, I don’t know which step makes the mistake. When I do task7B-4-9, the error is :
    D:\pt\bin\client\winx86>psae.exe -CD PSDB -CT ORACLE -CO PS -CP PS -R INSTALL -A
    I VERSION
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=126
    Message Set Number: 200
    Message Number: 0
    Message Reason: Missing or invalid version of SQL library PSORA (200,0)
    Message Set Number: 0
    Message Number: 0
    Message Reason: Invalid User ID and password for signon. (0,0)
    Error in sign on
    How can I resolve it? Does anybody have the more detail document about this task? I have installed PeopleSoft HRCS demo database before install PeopleSoft HRCS system database. I didn’t get these errors.
    Edited by: hzg on Jun 28, 2009 9:12 AM

    hzg wrote:
    ...I can’t open data mover by PS. The error is the user PS has no create session privilege. So I grant the privilege to PS...PS, as a database user should not have any right to open a session, is is designed like that. In no case you should modify it.
    The task 7B-4-8 requires a bootstrap mode connection, you should connect to DataMover with the database owner of the Peoplesoft objects (i.e. SYSADM) :
    To update PeopleTools system data:
    +1. Invoke Data Mover by running <PS_HOME>\bin\client\winx86\psdmt.exe.+
    The PeopleSoft Logon window appears.
    +2. Log on using the access ID you specified when you created your Data Mover scripts with the Database Setup program.+
    +This will start Data Mover in bootstrap mode.+
    Furthermore, before launching psae, you should be sure the user people has all the necessary grant by running grant.sql script, and check the Configuration Manager settings.
    Nicolas.

  • ORA-06571: Function SAM_OUTPUT does not guarantee not to update database

    Hi,
    i created a package as follows,
    CREATE OR REPLACE PACKAGE cursor_test_pak
    AS
    TYPE trans_cursor IS REF CURSOR;
    FUNCTION Cursor_Test
    RETURN trans_cursor;
              FUNCTION sam_output RETURN NUMBER;
    END;
    CREATE OR REPLACE PACKAGE BODY cursor_test_pak
    AS
    FUNCTION Cursor_Test RETURN trans_cursor
    AS
    lv_cursor trans_cursor;
    BEGIN
    OPEN lv_cursor FOR
    SELECT * FROM JAMES_SAM6;
    RETURN lv_cursor;
    END ;
    FUNCTION sam_output RETURN NUMBER
    AS
    lv_cur trans_cursor;
    BEGIN
    lv_cur := Cursor_Test();
    RETURN lv_cur%ROWCOUNT;
    --RETURN 1;
    END;
    END;
    after that i tried the following statement,
    select cursor_test_pak.sam_output() from dual;
    i got the following error,
    ORA-06571: Function SAM_OUTPUT does not guarantee not to update database
    i don't know what does it mean?
    can any one help me in this?
    Thanks,
    james.

    i think use of cursor attribute not possible with cursor variable
    like this : lv_cur%ROWCOUNT; If you are not sure why don't you check ?
    SQL> declare
      2   rc sys_refcursor;
      3   a integer;
      4  begin
      5   open rc for 'select 1 from emp';
      6   loop
      7    fetch rc into a;
      8    exit when rc%notfound;
      9    dbms_output.put_line('CURSOR VARIABLE %ROWCOUNT = ' || rc%rowcount);
    10   end loop;
    11   close rc;
    12  end;
    13  /
    CURSOR VARIABLE %ROWCOUNT = 1
    CURSOR VARIABLE %ROWCOUNT = 2
    CURSOR VARIABLE %ROWCOUNT = 3
    CURSOR VARIABLE %ROWCOUNT = 4
    CURSOR VARIABLE %ROWCOUNT = 5
    CURSOR VARIABLE %ROWCOUNT = 6
    CURSOR VARIABLE %ROWCOUNT = 7
    CURSOR VARIABLE %ROWCOUNT = 8
    CURSOR VARIABLE %ROWCOUNT = 9
    CURSOR VARIABLE %ROWCOUNT = 10
    CURSOR VARIABLE %ROWCOUNT = 11
    CURSOR VARIABLE %ROWCOUNT = 12
    CURSOR VARIABLE %ROWCOUNT = 13
    CURSOR VARIABLE %ROWCOUNT = 14
    PL/SQL procedure successfully completed.Rgds.

  • ERROR 2009-05-24 08:46:36 CJS-00288 Could not update database statistics.

    Hi all.
    i am in the middle of SAP ECC 5.0 installation .In the Database instance installation at the step 29 database update statistics, system stops giving error
    ERROR 2009-05-24 08:46:44
    CJS-00288  Could not update database statistics.<br>
    DIAGNOSIS: Command brconnect -u / -c -f crsyn -o SAPDB5 returned 3.<br>SOLUTION: See brconnect.log for details.
    when i checked in brconnect.log i found below error message
    BR0801I BRCONNECT 7.00 (16)
    BR0999E Loading of SQL client library oci.dll failed - please check Oracle configuration
    BR0310E Connect to database instance DB5 failed
    BR0280I BRCONNECT time stamp: 2009-05-24 08.46.44
    BR0804I BRCONNECT terminated with errors
    Q))Which oracle version are you using since BRTOOLS 7.0 is designed to work with Oracle 10g?
    If you are using an oracle 9.2.* it is needed to install oracle instant client or to downgrade your db tools (brt* tools)...... Through :Forums I came to know that we have to downgrade the br*tools to
    Could you please help me how to downgrade the Brtools or could you please suggest me how to proceed
    please help me
    Thanks
    Senthil

    Hi All,
    Thanks for your help, that error it has passed but now in 31 st step starting RFC jobs
    i get this error
    ERROR 2009-05-25 18:08:05
    FRF-00007  Unable to open RFC connection.
    ERROR 2009-05-25 18:08:05
    FRF-00063  RFC logon failed with message: Failed: SAP_CMINIT3 : rc=20 > Connect to SAP gateway failedConnect_PM  GWHOST=CTSINSAPEC5, GWSERV=sapgw00, ASHOST=CTSINSAPEC5, SYSNR=00
    but early during the last error update database statistics the SAP MMC console was up and running but now SAP is down during this error
    i tried to start SAP manually but it never works dispatcher goes down, i searched in forums and thought to update the kernal, so i updated the kernal also and tried it then also same error
    please help me my situation is very pathatic, i will be greatful if you help me
    Thanks
    Senthil

  • ERROR 2008-04-30 09:10:35 CJS-00288 Could not update database statistics.

    Hi Gurus..
    Hi i am in the middle of NW 2004  installation . At the step 29 database update statistics, system stops giving error
    ERROR 2008-04-30 09:10:35
    CJS-00288 Could not update database statistics.
    DIAGNOSIS: Command brconnect -u / -c -f crsyn -o SAPP47 returned
    3.SOLUTION: See brconnect.log for details.
    When i checked in brconnect.log i found below error message
    BR0801I BRCONNECT 7.00 (16)
    BR0999E Loading of SQL client library oci.dll failed - please check Oracle configuration
    BR0310E Connect to database instance P47 failed
    BR0280I BRCONNECT time stamp: 2008-04-30 09.10.35
    BR0804I BRCONNECT terminated with errors
    Q))Which oracle version are you using since BRTOOLS 7.0 is desinged to work with Oracle 10g?
    If you are using an oracle 9.2.* it is needed to install oracle instantclient or to downgrade your db tools (brt* tools)......  Through :Forums I came to know that we have to downgrade  the br*tools to
    Could you please help me how to downgrade the Brtools.
    It's urgent.
    Points will be awarded .
    Regards
    Jan.

    Hi janakiram
    Now i am facing the same error which you have faced before, have you solved that issue if it so could you pls help me how to solve this
    Hi All,
    i am in the middle of SAP ECC 5.0 installation .In the Database instance installation at the step 29 database update statistics, system stops giving error
    ERROR 2009-05-24 08:46:44
    CJS-00288 Could not update database statistics.
    DIAGNOSIS: Command brconnect -u / -c -f crsyn -o SAPDB5 returned 3.
    SOLUTION: See brconnect.log for details.
    when i checked in brconnect.log i found below error message
    BR0801I BRCONNECT 7.00 (16)
    BR0999E Loading of SQL client library oci.dll failed - please check Oracle configuration
    BR0310E Connect to database instance DB5 failed
    BR0280I BRCONNECT time stamp: 2009-05-24 08.46.44
    BR0804I BRCONNECT terminated with errors
    Q))Which oracle version are you using since BRTOOLS 7.0 is designed to work with Oracle 10g?
    If you are using an oracle 9.2.* it is needed to install oracle instant client or to downgrade your db tools (brt* tools)...... Through :Forums I came to know that we have to downgrade the br*tools to
    Could you please help me how to downgrade the Brtools or could you please suggest me how to proceed
    please help me
    Thanks
    Senthil

  • Update Database Statistics during System Export

    hi All,
    I am getting following error on step (Update Database Statistics ) during system export.
    WARNING 2011-06-17 15:13:35
    Execution of the command "E:\usr\sap\PRD\SYS\exe\uc\NTAMD64\
    brconnect.exe -u / -c -o summary -f stats -o SAPSR3 -t all -m +I -s
    P10 -f allsel,collect,method,precision,space,keep -p 4"
    finished with return code 5.
    Output: BR0801I BRCONNECT 7.00 (31)BR0805I Start of BRCONNECT processing:
    cegczbfe.sta 2011-06-17 15.12.02BR0484I BRCONNECT log file:
    G:\oracle\PRD\sapcheck\cegczbfe.sta
    ERROR 2011-06-17 15:13:35
    CJS-30023  Process call 'E:\usr\sap\PRD\SYS\exe\uc\NTAMD64\
    brconnect.exe -u / -c -o summary -f stats -o SAPSR3 -t all -m +I -s P10
    -f allsel,collect,method,precision,space,keep -p 4'
    exits with error code 5. For details see log file(s) brconnect.log.
    there is small part of brconnect.log is:
    BR0204I Percentage done: 27.88%, estimated end time: 15:16
    BR0001I **************____________________________________
    BR0280I BRCONNECT thread 2: time stamp: 2011-06-17 15.13.31
    BR0301E SQL error -20003 in thread 2 at location stats_tab_collect-20, SQL statement:
    'BEGIN DBMS_STATS.GATHER_TABLE_STATS (OWNNAME => '"SAPSR3"', TABNAME => '"/BEV3/CHCL_STAT"', ESTIMATE_PERCENT => NULL, METHOD_OPT => 'FOR ALL COLUMNS SIZE 1', DEGREE => NULL, CASCADE => TRUE, NO_INVALIDATE => FALSE); END;'
    ORA-20003: Specified bug number (5099019) does not exist
    ORA-06512: at "SYS.DBMS_STATS", line 14830
    ORA-06512: at "SYS.DBMS_STATS", line 14851
    ORA-06512: at line 1
    BR0886E Checking/collecting statistics failed for table SAPSR3./BEV3/CHCL_STAT
    BR0280I BRCONNECT thread 2: time stamp: 2011-06-17 15.13.31
    BR0301E SQL error -20003 in thread 2 at location stats_tab_collect-20, SQL statement:
    'BEGIN DBMS_STATS.GATHER_TABLE_STATS (OWNNAME => '"SAPSR3"', TABNAME => '"/BEV3/CHCL_STATT"', ESTIMATE_PERCENT => NULL, METHOD_OPT => 'FOR ALL COLUMNS SIZE 1', DEGREE => NULL, CASCADE => TRUE, NO_INVALIDATE => FALSE); END;'
    ORA-20003: Specified bug number (5099019) does not exist
    ORA-06512: at "SYS.DBMS_STATS", line 14830
    ORA-06512: at "SYS.DBMS_STATS", line 14851
    ORA-06512: at line 1
    BR0886E Checking/collecting statistics failed for table SAPSR3./BEV3/CHCL_STATT
    BR0280I BRCONNECT thread 2: time stamp: 2011-06-17 15.13.31
    BR0301E SQL error -20003 in thread 2 at location stats_tab_collect-20, SQL statement:
    'BEGIN DBMS_STATS.GATHER_TABLE_STATS (OWNNAME => '"SAPSR3"', TABNAME => '"/BEV3/CHCMVWOBJ"', ESTIMATE_PERCENT => NULL, METHOD_OPT => 'FOR ALL COLUMNS SIZE 1', DEGREE => NULL, CASCADE => TRUE, NO_INVALIDATE => FALSE); END;'
    ORA-20003: Specified bug number (5099019) does not exist
    ORA-06512: at "SYS.DBMS_STATS", line 14830
    ORA-06512: at "SYS.DBMS_STATS", line 14851
    ORA-06512: at line 1
    BR0886E Checking/collecting statistics failed for table SAPSR3./BEV3/CHCMVWOBJ
    BR0280I BRCONNECT thread 2: time stamp: 2011-06-17 15.13.31
    BR0301E SQL error -20003 in thread 2 at location stats_tab_collect-20, SQL statement:
    'BEGIN DBMS_STATS.GATHER_TABLE_STATS (OWNNAME => '"SAPSR3"', TABNAME => '"/BEV3/CHCMVWOBPR"', ESTIMATE_PERCENT => NULL, METHOD_OPT => 'FOR ALL COLUMNS SIZE 1', DEGREE => NULL, CASCADE => TRUE, NO_INVALIDATE => FALSE); END;'
    ORA-20003: Specified bug number (5099019) does not exist
    ORA-06512: at "SYS.DBMS_STATS", line 14830
    BEGIN DBMS_STATS.GATHER_TABLE_STATS (OWNNAME => '"SAPSR3"', TABNAME => '"/BEV3/CHCTLVAR"', ESTIMATE_PERCENT => NULL, METHOD_OPT => 'FOR ALL COLUMNS SIZE 1', DEGREE => NULL, CASCADE => TRUE, NO_INVALIDATE => FALSE); END;'
    ORA-20003: Specified bug number (5099019) does not exist
    ORA-06512: at "SYS.DBMS_STATS", line 14830
    ORA-06512: at "SYS.DBMS_STATS", line 14851
    ORA-06512: at line 1
    ORA-06512: at line 1
    BR0886E Checking/collecting statistics failed for table SAPSR3./BEV3/CHCTMSTFUB
    BR0280I BRCONNECT thread 2: time stamp: 2011-06-17 15.13.34
    BR0844E 100 errors occurred in thread 2 - terminating processing of the thread...
    BR0280I BRCONNECT time stamp: 2011-06-17 15.13.34
    BR0848I Thread 2 finished with return code -1
    BR0280I BRCONNECT time stamp: 2011-06-17 15.13.34
    BR0879I Statistics checked for 0 tables
    BR0878I Number of tables selected to collect statistics after check: 0
    BR0880I Statistics collected for 639/0 tables/indexes
    BR0889I Structure validated for 0/749/0 tables/indexes/clusters
    BR1308E Collection of statistics failed for 68292/0 tables/indexes
    BR0806I End of BRCONNECT processing: cegczbfe.sta 2011-06-17 15.13.34
    BR0280I BRCONNECT time stamp: 2011-06-17 15.13.35
    BR0804I BRCONNECT terminated with errors
    how can I resolve this issue?
    Regards,
    majamil

    hi SM,
    I have applied these patches with Opatch which successfully applied.
    is it ok or i had to use the MOpatch for these?
    one more thing for your information , when i execute Delete Harmful Statistics  under Database Statistics in brtools then i got following
    BR0280I BRCONNECT time stamp: 2011-06-30 08.10.53
    BR0818I Number of tables found in DBSTATC for owner SAPSR3: 390
    BR0280I BRCONNECT time stamp: 2011-06-30 08.10.53
    BR0807I Name of database instance: PRD
    BR0808I BRCONNECT action ID: cegfjniv
    BR0809I BRCONNECT function ID: dst
    BR0810I BRCONNECT function: stats
    BR0812I Database objects for processing: HARMFUL
    BR0852I Number of tables to delete statistics: 0
    BR0856I Number of indexes to delete statistics: 0
    BR0863W No tables/indexes found to update/delete statistics or validate structur
    e
    BR0806I End of BRCONNECT processing: cegfjniv.dst 2011-06-30 08.10.53
    BR0280I BRCONNECT time stamp: 2011-06-30 08.10.53
    BR0803I BRCONNECT completed successfully with warnings
    BR0292I Execution of BRCONNECT finished with return code 1
    BR0668I Warnings or errors occurred - you can continue to ignore them or go back
    to repeat the last action
    BR0280I BRTOOLS time stamp: 2011-06-30 08.10.53
    BR0670I Enter 'c[ont]' to continue, 'b[ack]' to go back, 's[top]' to abort:
    c
    why i am getting this return code 1?
    Regards,
    Edited by: majamil on Jun 30, 2011 8:20 AM

  • Error when Updating database Statistics

    Hi all,
       I'm installing Database instance Of SAP R3E 4.7 extension set 2 SR1 on Window 2003 , orcle 9.2 (patch 9.2.0.8.0) . I got an error while Updating database Statictics is processing. How can i solve this problem
    Log error is:
    WARNING 2007-09-12 14:14:26
    Execution of the command "C:\usr\sap\C11\SYS\exe\run/brconnect -u / -c -f crsyn -o SAPC11" finished with return code 3.
    Output: BR0801I BRCONNECT 6.40 (45)BR0252E Function _popen() failed for '( C:\oracle\c11\920\bin\SQLPLUS /nolog ) < \nul 2>&1' at location BrPipeOpen-4BR0253E
    errno 2: No such file or directoryBR0272E Execution of program '( C:\oracle\c11\920\bin\SQLPLUS /nolog ) < \nul 2>&1' through pipe failedBR0303E Determination of Oracle version failed
    BR0801I BRCONNECT 6.40 (45)
    BR0252E Function _popen() failed for '( C:\oracle\c11\920\bin\SQLPLUS /nolog ) < \nul 2>&1' at location BrPipeOpen-4
    BR0253E errno 2: No such file or directory
    BR0272E Execution of program '( C:\oracle\c11\920\bin\SQLPLUS /nolog ) < \nul 2>&1' through pipe failed
    BR0303E Determination of Oracle version failed
    BR0280I BRCONNECT time stamp: 2007-09-12 14.14.26
    BR0804I BRCONNECT terminated with errors
    BR,
    Keng
    Message was edited by:
            Prachya Pantuyakorn

    they should normaly exist in the database.
    try to run
    sqlplus /nolog
    connect / as sysdba
    select username from dba_users;
    put if the don't exist:
    sqlplus /nolog
    connect / as sysdba
    create user "OPS$COMPUTERNAME\NW4ADM" identified externally;
    grant sapconn to "OPS$COMPUTERNAME\NW4ADM";
    grant sapdba to "OPS$COMPUTERNAME\NW4ADM";
    the rest should be part of note 50088
    peter

  • Update database from Jtable

    Hi all,
    I am trying to update database from Jtable. I added Jtable to scrollpane .
    My question is..
    after updating the Jtable..I want to save the details to database..when I click save button on my screen...how to do that? Please help me out! Thanks in advance..
    Here is the code that I wrote...
    public class VasuTest extends JFrame {
    private boolean DEBUG = true;
    Vector column_list = new Vector();
    Vector rows = new Vector();
    public VasuTest() {
    super("VasuTest");
         JToolBar toolBar = new JToolBar();
    JButton button = null;
    button = new JButton("Send Email");
    button.setToolTipText("This is the Exit button");
    button.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
         System.out.println("Send Email");
    toolBar.add(button);
    button = new JButton("Save");
    button.setToolTipText("This is the Save button");
    button.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
         System.out.println("Save");
    toolBar.add(button);
    button = new JButton("Exit");
    button.setToolTipText("This is the Exit button");
    button.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
         System.exit(0);
    toolBar.add(button);
         JPanel ContentPane = new JPanel();
    ImageIcon i1 = new ImageIcon("Dongle.gif");
    JLabel j1 = new JLabel( i1, JLabel.CENTER);
         ContentPane.add(j1,BorderLayout.CENTER);
         setContentPane(ContentPane);
         JDBCT myModel = new JDBCT();
    String q = "select a.email_no,a.email_ln_no,b.cust_no,null customer_name,null cdate,a.batch_no,b.purch_ord_no,a.user_part_no,null part_desc,a.user_upgraded_part_no,null prod_id,a.qty,a.price,a.encrypted_sum_id,a.decrypted_sum_id,a.approval_key,a.status_cd,decode(a.status_cd,'APPROVED','true','ERROR','false','PROCESSED','true') approved,null end_cust,null sales_ord,null so_line,null sales_ord_cust,null shipment ,null sales_end_cust_name ,null shipment_line,a.note,null fromcust from upgrade_req_key_s3 a,upgrade_req_s3 b where a.email_no = b.email_no order by a.email_no,a.email_ln_no";
    myModel.setQuery();
    final Font f = new Font("SansSerif", Font.BOLD, 10);
    JTable table = new JTable(myModel);
    table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
    // Container ContentPane = getContentPane();
         int v = ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS;
         int h = ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS;
         JScrollPane scrollPane = new JScrollPane(table,JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
         scrollPane.setPreferredSize ( new Dimension ( 770, 400 ) );
    ContentPane.add(toolBar,BorderLayout.CENTER);
    //Add the scroll pane to this window.
    ContentPane.add(scrollPane,BorderLayout.CENTER);
    addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.exit(0);
    public class JDBCT extends AbstractTableModel {
    Vector cache; // will hold String[] objects...
    int colCount;
    int rowHeight;
    String [] headers;
    Connection db;
    Connection conn;
    Statement statement;
    String currentURL;
    // public QueryTableModel() {
    // cache = new Vector();
    // new oracle.jdbc.driver.OracleDriver();
    try {
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    catch (ClassNotFoundException e) {
    System.out.println(e.getMessage());
    System.exit(-1);
    String url = "jdbc:odbc:c3-erp,s3,s3";
    public String getColumnName(int i) {
         if (i == 0)      {  return      "Email No"                     ;     } else
    if (i == 1)      {  return      "Email Line No.";} else
         if (i == 2)      {  return      "Customer";} else
         if (i == 3)      {  return      "Customer Name";} else
         if (i == 4)      {  return      "Date";} else
         if (i == 5)      {  return      "Batch No";} else
         if (i == 6)      {  return      "Customer PO";} else
         if (i == 7)      {  return      "Upgrade From Part";} else
         if (i == 8)      {  return      "Part Description";} else
         if (i == 9)      {  return      "Upgrade To Part";} else
         if (i == 10)      {  return      "Product Id";} else
         if (i == 11)      {  return      "Quantity";} else
         if (i == 12)      {  return      "Price";} else
         if (i == 13)      {  return      "Encypted Sum ID";} else
         if (i == 14)      {  return      "Decrypted Serial No";} else
         if (i == 15)      {  return      "Key";} else
         if (i == 16)      {  return      "Status";} else
         if (i == 17)      {  return      "Approved";} else
         if (i == 18)      {  return      "End Customer";} else
         if (i == 19)      {  return      "Sales Order";} else
         if (i == 20)      {  return      "SO Line";} else
         if (i == 21)      {  return      "Sales Order End Customer";} else
         if (i == 22)      {  return      "Sales Order End Customer Name";} else
         if (i == 23)      {  return      "Shipment";} else
         if (i == 24)      {  return      "Shipment Line";} else
         if (i == 25)      {  return      "Errors";} else
         if (i == 26)      { return       "From"; }
         else {return headers[i-1] ;}
    public int getColumnCount() { return colCount; }
    public int getRowCount() { return cache.size(); }
    //public Class getColumnClass(int c) {
    // return getValueAt(0, c).getClass();
    // overloaded isCellEditable method so that it returns true
    // in reference to a cell being editable.
    public boolean isCellEditable(int row, int col) { return true; }
    // overloaded setValyeAt which updates the data Vector and
    // calls the fireTableRowsUpdated() to notify any listeners
    // that data has changed and they need to redraw.
    public void setValueAt(Object value, int row, int col) {
    ((String[])cache.elementAt(row))[col] = (String)value;     
         fireTableRowsUpdated(row,row);     
    public void getInfo () {
    System.out.println("Row Count is : " + cache.size());
         System.out.println("Value at 0,0 is : " + getValueAt(0,0));
    //     boolean res = isCellEditable(0,0);
    //     System.out.println("The value of the Boolean result is : " + res);
    public Object getValueAt(int row, int col) {
    return ((String[])cache.elementAt(row))[col];
    // All the real work happens here!
    // In a real application, we'd probably perform the query in a separate thread.
    public void setQuery() {
    cache = new Vector();
    try {
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    conn = DriverManager.getConnection ("jdbc:odbc:c3-erp","s3","s3");
    Statement stmt = conn.createStatement();
    ResultSet rs = stmt.executeQuery("select a.email_no,a.email_ln_no,b.cust_no,null customer_name,null cdate,a.batch_no,b.purch_ord_no,a.user_part_no,null part_desc,a.user_upgraded_part_no,null prod_id,a.qty,a.price,a.encrypted_sum_id,a.decrypted_sum_id,a.approval_key,a.status_cd,decode(a.status_cd,'APPROVED','true','ERROR','false','PROCESSED','true') approved,null end_cust,null sales_ord,null so_line,null sales_ord_cust,null shipment ,null sales_end_cust_name ,null shipment_line,a.note,null fromcust from upgrade_req_key_s3 a,upgrade_req_s3 b where a.email_no = b.email_no order by a.email_no,a.email_ln_no");
    ResultSetMetaData meta = rs.getMetaData();
    colCount = meta.getColumnCount();
    String[] record = new String[27];      
    // Now we must rebuild the headers array with the new column name
    headers = new String[27];
    for (int h=0; h < 27; h++) {
    // headers[h-1] = meta.getColumnName(h);
         headers[h] = getColumnName(h);
    // and file the cache with the record from our query. This would
    // be practical if we were expecting a few million records to our
    // response query, but we are not so we can do this.
    while(rs.next()) {
         for (int i=0; i < colCount; i++) {
         record[i] = rs.getString(i + 1);
         cache.addElement(record);
         // Get the FIRST column of the table tableView
    // TableColumn column0 = table.getColumn(cache.elementAt(0));
    // Set the cell editor as non editable.
    // column0.setCellEditor(new EditableCellEditor(new JComboBox(), true));
    fireTableChanged(null); // notify everyone the we had a new table.
    catch (Exception e) {
    cache = new Vector(); // blank it out and keep going.
         e.printStackTrace();
    public static void main(String[] args) {
    VasuTest frame = new VasuTest();
    frame.pack();
    frame.setVisible(true);
    }

    When you click on the save button, you need to go through the model and retrieve the values getValueAt().
    Convert to whatever type you want since getValueAt() returns type Object and update the DB.

  • System Update Splash Screen Exit

    I've got four new systems here, all updated to SU 3.14, one downloaded and installed 800+MB of updates, and now all four launch SU, show splash screen, then exit immediately. The other three systems never even downloaded updates.
    No error messages from SU or Windows.
    Any help?

    I'm seeing this too on a brand new T400 Vista x64 System.  TVSU ran fine a couple of times and loaded all the drivers for me on a clean x64 install.  Now I see the splash screen, then nothing.  Tried reinstalling to no avil.
    UPDATE:  My issue may have been that I was running TVSU via RDP.  Once I got home and tried again, it worked.
    Message Edited by mhab12 on 07-10-2009 09:41 AM

  • ERP EHP4 Installation Problem in Update Database registry Phase.

    Hi,
    We are installing ERP 6.0 EHP4 Ready SR1 on AIX6.1 (6100-03-01-0921)  and DB2 v9.1.0.7.
    During installation in phase Update Database Registry, we are getting below error:
    SQL1042C  An unexpected system error occurred
    If any body has faced this error earlier, then please suggest.
    Thanks
    Sunny

    Hi,
    Please find below the latest entries in db2diag.log:
    2009-12-14-20.15.17.555605-330 I25354A304         LEVEL: Event
    PID     : 630830               TID  : 1           PROC : db2stop2
    INSTANCE: db2ged               NODE : 000
    FUNCTION: DB2 UDB, base sys utilities, DB2StopMain, probe:260
    DATA #1 : String, 43 bytes
    System controller termination is completed.
    2009-12-14-20.15.17.555785-330 I25659A383         LEVEL: Event
    PID     : 630830               TID  : 1           PROC : db2stop2
    INSTANCE: db2ged               NODE : 000
    FUNCTION: DB2 UDB, base sys utilities, DB2StopMain, probe:270
    DATA #1 : String, 26 bytes
    Active EDUs to be waited :
    DATA #2 : Hexdump, 4 bytes
    0x0FFFFFFFFFFFCF70 : 0000 0001                                  ....
    2009-12-14-20.15.17.565945-330 I26043A381         LEVEL: Event
    PID     : 630830               TID  : 1           PROC : db2stop2
    INSTANCE: db2ged               NODE : 000
    FUNCTION: DB2 UDB, base sys utilities, DB2StopMain, probe:280
    DATA #1 : String, 24 bytes
    There is no active EDUs.
    DATA #2 : Hexdump, 4 bytes
    0x0FFFFFFFFFFFCF70 : 0000 0000                                  ....
    2009-12-14-20.15.17.830570-330 E26425A301         LEVEL: Event
    PID     : 630830               TID  : 1           PROC : db2stop2
    INSTANCE: db2ged               NODE : 000
    FUNCTION: DB2 UDB, base sys utilities, DB2StopMain, probe:911
    MESSAGE : ADM7514W  Database manager has stopped.
    STOP    : DB2 DBM
    2009-12-14-20.15.24.936396-330 I26727A1630        LEVEL: Event
    PID     : 545014               TID  : 1           PROC : db2start
    INSTANCE: db2ged               NODE : 000
    FUNCTION: DB2 UDB, base sys utilities, sqleStartStopSingleNode, probe:1130
    DATA #1 : String, 31 bytes
    /db2/db2ged/sqllib/adm/db2star2
    DATA #2 : Hexdump, 256 bytes
    0x0FFFFFFFFFFF9C20 : 2F64 6232 2F64 6232 6765 642F 7371 6C6C    /db2/db2ged/sqll
    0x0FFFFFFFFFFF9C30 : 6962 2F61 646D 2F64 6232 7374 6172 3200    ib/adm/db2star2.
    0x0FFFFFFFFFFF9C40 : 4E4F 4D53 4700 0000 0000 0000 0000 0000    NOMSG...........
    0x0FFFFFFFFFFF9C50 : 0000 0000 0000 0000 0000 0000 0000 0000    ................
    0x0FFFFFFFFFFF9C60 : 0000 0000 0000 0000 0000 0000 0000 0000    ................
    0x0FFFFFFFFFFF9C70 : 0000 0000 0000 0000 0000 0000 0000 0000    ................
    0x0FFFFFFFFFFF9C80 : 0000 0000 0000 0000 0000 0000 0000 0000    ................
    0x0FFFFFFFFFFF9C90 : 0000 0000 0000 0000 0000 0000 0000 0000    ................
    0x0FFFFFFFFFFF9CA0 : 0000 0000 0000 0000 0000 0000 0000 0000    ................
    0x0FFFFFFFFFFF9CB0 : 0000 0000 0000 0000 0000 0000 0000 0000    ................
    0x0FFFFFFFFFFF9CC0 : 0000 0000 0000 0000 0000 0000 0000 0000    ................
    0x0FFFFFFFFFFF9CD0 : 0000 0000 0000 0000 0000 0000 0000 0000    ................
    0x0FFFFFFFFFFF9CE0 : 0000 0000 0000 0000 0000 0000 0000 0000    ................
    0x0FFFFFFFFFFF9CF0 : 0000 0000 0000 0000 0000 0000 0000 0000    ................
    0x0FFFFFFFFFFF9D00 : 0000 0000 0000 0000 0000 0000 0000 0000    ................
    0x0FFFFFFFFFFF9D10 : 0000 0000 0000 0000 0000 0000 0000 0000    ................
    2009-12-14-20.15.25.077684-330 E28358A856         LEVEL: Warning
    PID     : 602312               TID  : 1           PROC : db2star2
    INSTANCE: db2ged               NODE : 000
    FUNCTION: DB2 UDB, license manager, sqllcRequestAccess, probe:1
    MESSAGE : ADM12007E  There are "89" day(s) left in the evaluation period for
              the product "DB2 Enterprise Server Edition". For evaluation license
              terms and conditions, refer to the IBM License Acceptance and License
              Information document located in the license directory in the
              installation path of this product. If you have licensed this product,
              ensure the license key is properly registered. You can register the
              license via the License Center or db2licm command line utility. The
              license file can be obtained from your licensed product CD.
    2009-12-14-20.15.25.174108-330 E29215A384         LEVEL: Warning
    PID     : 667782               TID  : 1           PROC : db2wdog 0
    INSTANCE: db2ged               NODE : 000
    FUNCTION: DB2 UDB, routine_infrastructure, sqlerInitFmpTable, probe:30
    DATA #1 : String, 16 bytes
    agentCachingFmp:
    DATA #2 : String, 3 bytes
    OFF
    DATA #3 : String, 5 bytes
    Flag:
    DATA #4 : Boolean, 1 bytes
    false
    2009-12-14-20.15.26.288917-330 E29600A1208        LEVEL: Event
    PID     : 602312               TID  : 1           PROC : db2star2
    INSTANCE: db2ged               NODE : 000
    FUNCTION: DB2 UDB, base sys utilities, DB2StartMain, probe:911
    MESSAGE : ADM7513W  Database manager has started.
    START   : DB2 DBM
    DATA #1 : Build Level, 152 bytes
    Instance "db2ged" uses "64" bits and DB2 code release "SQL09017"
    with level identifier "02080107".
    Informational tokens are "DB2 v9.1.0.7", "s090308", "U823509", Fix Pack "7".
    DATA #2 : System Info, 224 bytes
    System: AIX gpldeve1 1 6 00C1EF854C00
    CPU: total:8 online:4 Threading degree per core:2
    Physical Memory(MB): total:14336 free:10662
    Virtual  Memory(MB): total:35328 free:31640
    Swap     Memory(MB): total:20992 free:20978
    Kernel   Params: msgMaxMessageSize:4194304 msgMaxQueueSize:4194304
                     shmMax:68719476736 shmMin:1 shmIDs:131072
                     shmSegments:68719476736 semIDs:131072 semNumPerID:65535
                     semOps:1024 semMaxVal:32767 semAdjustOnExit:16384
    Cur data size (bytes)  = 0x7FFFFFFFFFFFFFFF
    Cur stack size (bytes)  = 0x7FFFFFFFFFFFFFFF
    Cur core size (bytes)  = 0x0000000077359400
    nofiles (descriptors)  = 0x7FFFFFFFFFFFFFFF
    2009-12-14-20.18.03.426764-330 E30809A597         LEVEL: Warning (OS)
    PID     : 544840               TID  : 1           PROC : db2set
    INSTANCE: db2ged               NODE : 000
    FUNCTION: DB2 UDB, oper system services, sqloqcurdir, probe:100
    MESSAGE : ZRC=0x840F0001=-2079391743=SQLO_ACCD "Access Denied"
              DIA8701C Access denied for resource "", operating system return code
              was "".
    CALLED  : OS, -, unspecified_system_function
    OSERR   : EACCES (13) "Permission denied"
    DATA #1 : File name, 0 bytes
    Object not dumped: Address: 0x0FFFFFFFFFFFE688 Size: 0 Reason: Zero-length data
    2009-12-14-20.18.03.429260-330 I31407A290         LEVEL: Event
    PID     : 544840               TID  : 1           PROC : db2set
    INSTANCE: db2ged               NODE : 000
    FUNCTION: DB2 UDB, oper system services, db2set_main, probe:40
    CHANGE  : CFG DB2SET: DB2_WORKLOAD: From: "SAP" To: "SAP"
    Thanks
    Sunny

  • IDES/DB6/Win - Installation phase (Update Database Configuration) is slow??

    To whom it may concern,
    I am currently installing IDES ERP 2005 on Windows 2003 with database as DB6 with 1GB Ram and 1 CPU P4. 4GHz
    However, I found that the phase Update Database Configuration phase is running very slow and sapinst growth very large (>500 MB) while no error found in the dbdump file.
    I checked the view log from Netweaver Installer and showing TRACE
    see that the message DB6_NODES_WORK > undefined < found keep repeating whereas no other message found. Please advise if you encounter this before and advise if anything can be done.
    Regards,
    Billy

    This phase started from 3 pm and still running till now 6 pm (3 hours)
    previously, it was running for 2 hours before termination.
    By the way, I found that the sapinst keep repeat the following to the sapinst_dev.log
    TRACE      [iaxxejsexp.cpp:199]
               EJS_Installer::writeTraceToLogBook()
    DB6: partition: >undefined< found
    while the task manager showing that the cpu was utilize from 11% to 100% from time to time (indicate something is running).
    Regards,
    Billy

  • Issue in Invoking an Updatable View with Instead of Trigger

    Hi,
    I am trying to insert a record using Updatable View with Instead of Trigger. When i try to save the data, i get the below error:
    java.sql.SQLException: ORA-01403: no data found
    ORA-06512: at line 1
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:457)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
    at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:889)
    at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:476)
    at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:204)
    at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:540)
    at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:213)
    at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:1075)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1466)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3752)
    at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3887)
    at oracle.jdbc.driver.OracleCallableStatement.executeUpdate(OracleCallableStatement.java:9323)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1508)
    at weblogic.jdbc.wrapper.PreparedStatement.executeUpdate(PreparedStatement.java:172)
    at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:432)
    at oracle.jbo.server.EntityImpl.doDMLWithLOBs(EntityImpl.java:8566)
    Can someone help me resolve this issue?
    Also it would be great if you can share Sample codes for Invoking an updatable view with instead of trigger on Save/commit.
    Regards,
    Jeevan

    As a trigger is executed in the db and not in your app it's really hard to help as you did not give any useful information.
    Have you read this blog http://stegemanoracle.blogspot.com/2006/03/using-updatable-views-with-adf.html ?
    Timo
    Edited by: Timo Hahn on 22.09.2011 09:15
    And my friend google also found http://technology.amis.nl/blog/1447/adf-business-components-resfresh-after-insertupdate-and-instead-of-triggers

Maybe you are looking for

  • Lenovo Ideapad S410p/S510​p - Windows 7 installati​on issues - USB Ports, Nvidia Graphics Install

    Hi all, I recently bought a Lenovo S410p and wanted to install Window 7 - Home Edition. I faced a number of issues - At BIOS level, then it refused to detect USB 2.0, then it refused to install latest Nvidia GEForce drivers (need to install some inte

  • New Itunes (Beginning april 2010) and iphone issue

    So, when you sync with the new itunes, there's an option to convert higher bitrate songs to 128 KBPS AAC...this saves me a lot of space as I only download high quality music, roughly 2 gigs saved space outta 6 gigs I had prior to...anyway, after wait

  • Check for Greivence

    Hi all, I have to put a check on infotype 0102 - Grevience, on fields, Grevience number and stage ( p0102-GRNUM and p0102-GRSTG) as mentioned below . 1) If a user copies any existing record, and changes any field other than the grevience number and s

  • Sub contractor using his own material

    Dear Experts , I wanted to map a scenario in which I send the material to sub contractor , in which apart from processing the sub contractor uses his own material which is modvatable . And also in service po , when I send the machine for servicing, t

  • Performance Issues for polling files frequently

    Hi I have around 15-16 interfaces which has to be polled every 15 mins....like they have to be real time. Would there be any performance related issues. Regards Rinku