Pessimistic lock problem with Sybase
I am having a problem with performing pessimistic lock
using Toplink and Sybase/HSQLDB.
Code example:
Object o = uow.readObject(...
uow.refreshAndLock(o);
//Change o
uow.commitAndResume();
==========================
I receive an Exception:
Local Exception Stack:
Exception [TOPLINK-4002] (OracleAS TopLink - 10g (9.0.4.2) (Build 040311)): oracle.toplink.exceptions.DatabaseException
Exception Description: java.sql.SQLException: Unexpected token: FOR in statement [SELECT t0.CLASSIDENTIFIER, t0.DB_VERSION, t0.OBJECTID, t1.OBJECTID, t1.NAME, t1.DESCRIPTION, t1.TYPE, t2.OBJECTID, t2.MULTIPLE_SERVERS_POLICY, t2.OUTAGE_POLICY, t2.INCOMING_SCRIPT, t2.OUTGOING_SCRIPT, t2.OUTAGE_SCRIPT FROM ROOT t0, LDAPSERVICE t2, SERVICE t1 WHERE ((t0.OBJECTID = 252) AND (((t2.OBJECTID = t0.OBJECTID) AND (t1.OBJECTID = t0.OBJECTID)) AND (t0.CLASSIDENTIFIER = 'ORM.LdapService'))) [b]FOR UPDATE OF * NOWAIT]
=================
As you can see Toplink is trying to execute illegal statement : "....FOR UPDATE OF * NOWAIT"
Do you have any idea what I'm doing wrong?
Duplicate posting Pessimistic lock problem with Sybase
Similar Messages
-
Problems with Sybase Database for Collection Manager in SCE2020
We have problems with Sybase Database for Collection Manager in a SCE2020. The status is:
[root@btl-sce-cm log]# ~scmscm/setup/alive.sh STATUS OK [root@btl-sce-cm monitor]# ./monitor.sh -a -d Test: 01db_up.sh. Status: FAIL. Message: DB is not running Test: 02cm_up.sh. Status: PASS. Message: CM is running Test: 03free_db.sh. Status: PASS. Message: 99% free space in data db Test: 04free_log.sh. Status: PASS. Message: 99% free space in log db Test: 05cm_persistent_buffers.sh. Status: FAIL. Message: The following directory/ies have more than 500 files in them - JDBCAdapter TAAdapter [root@btl-sce-cm monitor]# ~scmscm/scripts/dbtables.sh /home/scmscm/scripts/common.sh: line 43: /root/cm/bin/cm: is a directory Executing query ... /home/scmscm/scripts/dbtables.sh: line 83: /root/cm/bin/cm: is a directory [root@btl-sce-cm monitor]# df -k Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/VolGroup00-LogVol00 149559596 138280700 3681636 98% / /dev/sda1 101086 20685 75182 22% /boot none 1036624 0 1036624 0% /dev/shm
We restored the Sybase database, but we have problems to access the database from Collection Manager and we can't obtain reports from SCE 2020.
Here is the info:
Problem Details: The SCA Reporter cannot generate Reports, the CM diagnostics show the following:
[root@btl-sce-cm ~]# ~scmscm/setup/alive.sh STATUS OK
[root@btl-sce-cm ~]# ~scmscm/scripts/dbfree.sh
Name % Data Free % Log Free
Database 55 99
[root@btl-sce-cm ~]# ~scmscm/scripts/dbtables.sh
/home/scmscm/scripts/common.sh: line 43: /root/cm/bin/cm: No such file or directory Executing query ...
/home/scmscm/scripts/dbtables.sh: line 83: /root/cm/bin/cm: No such file or directory
[root@btl-sce-cm ~]# ~scmscm/setup/monitor/monitor.sh -d -a
Test: 01db_up.sh. Status: FAIL. Message: DB is not running
Test: 02cm_up.sh. Status: PASS. Message: CM is running
Test: 03free_db.sh. Status: PASS. Message: 55% free space in data db
Test: 04free_log.sh. Status: PASS. Message: 99% free space in log db
Test: 05cm_persistent_buffers.sh. Status: FAIL. Message: The following directory/ies have more than 500 files in them - JDBCAdapter
Message was edited by: EMILIO MENCIATomo:
we have problems with our reports in Collection Manager again. We reboot the CM, but the problems continue.
This is the log of the CM. What can be the problem? Thanks tomo
Nov 3 11:49:18 localhost sybase_init: 00:00000:00012:2011/11/03 11:49:18.00 server Maximum number of User Accounts during current sample period: 3.
Nov 3 11:49:18 localhost sybase_init: 00:00000:00012:2011/11/03 11:49:18.00 server Maximum number of User Accounts since startup: 3.
Nov 3 11:49:18 localhost sybase_init: 00:00000:00012:2011/11/03 11:49:18.00 server Maximum Configured Number of User Connections during current sample period: 200.
Nov 3 11:49:18 localhost sybase_init: 00:00000:00012:2011/11/03 11:49:18.00 server Maximum Configured Number of User Connections since startup: 200.
Nov 3 11:49:18 localhost sybase_init: 00:00000:00012:2011/11/03 11:49:18.00 server Maximum Number of User Connections during current sample period: 15.
Nov 3 11:49:18 localhost sybase_init: 00:00000:00012:2011/11/03 11:49:18.00 server Maximum Number of User Connections since startup: 18.
Nov 3 11:49:18 localhost sybase_init: 00:00000:00012:2011/11/03 11:49:18.00 server Maximum number of user seat licenses used during current sample period: 1.
Nov 3 11:49:18 localhost sybase_init: 00:00000:00012:2011/11/03 11:49:18.00 server Maximum number of user seat licenses used since startup: 3.
Nov 9 19:21:49 localhost sybase_init: 00:00000:00069:2011/11/09 19:21:49.78 kernel Cannot send, host process disconnected: btllt0012 suid: 3
Nov 9 19:21:49 localhost sybase_init: 00:00000:00069:2011/11/09 19:21:49.86 kernel Cannot send, host process disconnected: btllt0012 suid: 3
Nov 9 19:21:49 localhost sybase_init: 00:00000:00069:2011/11/09 19:21:49.92 server Error: 1608, Severity: 18, State: 4
Nov 9 19:21:49 localhost sybase_init: 00:00000:00069:2011/11/09 19:21:49.94 server A client process exited abnormally, or a network error was encountered. Unless other errors occurred, continue processing normally.
Nov 9 19:21:49 localhost sybase_init: 00:00000:00069:2011/11/09 19:21:49.94 kernel extended error information: hostname: btllt0012 login: pqb_admin
Nov 9 19:41:10 localhost sybase_init: 00:00000:00086:2011/11/09 19:41:10.01 kernel Cannot send, host process disconnected: btllt0012 suid: 3
Nov 9 19:41:10 localhost sybase_init: 00:00000:00086:2011/11/09 19:41:10.01 kernel Cannot send, host process disconnected: btllt0012 suid: 3
Nov 9 19:41:10 localhost sybase_init: 00:00000:00086:2011/11/09 19:41:10.01 server Error: 1608, Severity: 18, State: 4
Nov 9 19:41:10 localhost sybase_init: 00:00000:00086:2011/11/09 19:41:10.01 server A client process exited abnormally, or a network error was encountered. Unless other errors occurred, continue processing normally.
Nov 9 19:41:10 localhost sybase_init: 00:00000:00086:2011/11/09 19:41:10.01 kernel extended error information: hostname: btllt0012 login: pqb_admin
Nov 23 08:35:23 localhost sybase_init: 00:00000:00011:2011/11/23 08:35:23.16 server Error: 632, Severity: 20, State: 2
Nov 23 08:35:23 localhost sybase_init: 00:00000:00011:2011/11/23 08:35:23.16 server Attempt to move memory with an incorrect length
of -794444483. Maximum allowed length is 16384.
Nov 23 08:35:23 localhost sybase_init: 00:00000:00011:2011/11/23 08:35:23.16 kernel ************************************
Nov 23 08:35:23 localhost sybase_init: 00:00000:00011:2011/11/23 08:35:23.16 kernel SQL causing error : =
Nov 23 08:35:23 localhost sybase_init: 00:00000:00011:2011/11/23 08:35:23.16 kernel ************************************
Nov 23 08:35:23 localhost sybase_init: 00:00000:00011:2011/11/23 08:35:23.16 kernel curdb = 4 tempdb = 2 pstat = 0x10000
Nov 23 08:35:23 localhost sybase_init: 00:00000:00011:2011/11/23 08:35:23.16 kernel lasterror = 632 preverror = 0 transtate = 3
Nov 23 08:35:23 localhost sybase_init: 00:00000:00011:2011/11/23 08:35:23.16 kernel curcmd = 0 program =
Nov 23 08:35:23 localhost sybase_init: 00:00000:00011:2011/11/23 08:35:23.16 kernel extended error information: hostname: btl-sce-cm login: pqb_admin
Nov 23 08:35:23 localhost sybase_init: 00:00000:00011:2011/11/23 08:35:23.25 kernel pc: 0x08d40ca3 pcstkwalk+0x31b(0x9a78fdbc, 0x9a78fb6c, 0x0000270f, 0x00000002, 0x9a78fb6c)
Nov 23 08:35:23 localhost sybase_init: 00:00000:00011:2011/11/23 08:35:23.25 kernel pc: 0x08d40832 ucstkgentrace+0x13a(0x68a4006f, 0x00000002, 0x0000270f, (nil), (nil))
Nov 23 08:35:23 localhost sybase_init: 00:00000:00011:2011/11/23 08:35:23.25 kernel pc: 0x08ce346d ucbacktrace+0x5d((nil), 0x00000001, (nil), 0x00000003, 0x20202020)
Nov 23 08:35:23 localhost sybase_init: 00:00000:00011:2011/11/23 08:35:23.25 kernel pc: 0x082f19b8 terminate_process+0xa5c((nil), 0xffffffff, 0x9a7904c4, 0x08349a96, 0x00000278)
Nov 23 08:35:23 localhost sybase_init: 00:00000:00011:2011/11/23 08:35:23.25 kernel pc: 0x08349acb close_network+0xf(0x00000002, 0x9ced1ea0, 0x9a790544, 0x0834902e, 0x00000006)
Nov 23 08:35:23 localhost sybase_init: 00:00000:00011:2011/11/23 08:35:23.25 kernel pc: 0x08349aad hdl_default+0x45(0x00000006, 0x00000020, 0x00000014, 0x00000002, 0x9a7904fc)
Nov 23 08:35:23 localhost sybase_init: 00:00000:00011:2011/11/23 08:35:23.25 kernel pc: 0x0834902e ex_raise+0x18a(0x00000006, 0x00000020, 0x00000014, 0x00000002, 0xd0a5bd3d)
Nov 23 08:35:23 localhost sybase_init: 00:00000:00011:2011/11/23 08:35:23.25 kernel pc: 0x08357c9b memmove_error+0x27(0xd0a5bd3d, 0x00004000, 0xffffffff, 0x0896b8a4, 0x9e3d7cfc)
Nov 23 08:35:23 localhost sybase_init: 00:00000:00011:2011/11/23 08:35:23.25 kernel pc: 0x0833e54e recvhost+0xbe(0x9a7909ec, 0xd0a5bd3d, 0x00000018, 0x9e44d5d8, 0x9e44d52c)
Nov 23 08:35:23 localhost sybase_init: 00:00000:00011:2011/11/23 08:35:23.25 kernel pc: 0x08339160 recvchars+0x74(0x9ced2a1c, 0xd0a5bd3d, 0x9a7909ec, 0x000000ff, (nil))
Nov 23 08:35:23 localhost sybase_init: 00:00000:00011:2011/11/23 08:35:23.25 kernel pc: 0x0831e237 tdsrecv_declare+0x207(0x00000010, 0x9cecb914, 0x9a7911b4, 0x0832dd5f, (nil))
Nov 23 08:35:23 localhost sybase_init: 00:00000:00011:2011/11/23 08:35:23.25 kernel [Handler pc: 0x0x0863eca4 ut_handle installed by the following function:-]
Nov 23 08:35:23 localhost sybase_init: 00:00000:00011:2011/11/23 08:35:23.25 kernel pc: 0x0832e3a9 conn_hdlr+0xe49(0x00000030, 0x9a7911c8, 0x895eed31, (nil), (nil))
Nov 23 08:35:23 localhost sybase_init: 00:00000:00011:2011/11/23 08:35:23.25 kernel pc: 0x08d33984 kpexit((nil), (nil), (nil), 0x9a020900, 0x00000070)
Nov 23 08:35:23 localhost sybase_init: 00:00000:00011:2011/11/23 08:35:23.25 kernel end of stack trace, spid 11, kpid 1755578479, suid 3
AFTER RESTART
ov 28 09:19:06 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:06.50 kernel SySAM: Checked out license for 1 ASE_CORE (2010.04040/permanent/148F 853E 92A9 E302).
Nov 28 09:19:06 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:06.50 kernel This product is licensed to: CISCO SYSTEMS, and OEM license from Sybase, Inc.
Nov 28 09:19:06 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:06.50 kernel Checked out license ASE_CORENov 28 09:19:06 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:06.50 kernel Adaptive Server Enterprise (Small Business Edition)
Nov 28 09:19:07 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:07.02 kernel Using config area from primary master device.
Nov 28 09:19:07 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:07.17 kernel Locking shared memory into physical memory.
Nov 28 09:19:07 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:07.22 kernel Internal run-time model set for Linux - Native
Nov 28 09:19:07 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:07.26 kernel Using 1024 file descriptors.
Nov 28 09:19:07 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:07.26 kernel Adaptive Server Enterprise/15.0.2/EBF 14331/P/Linux Intel/Linux 2.4.21-47.ELsmp i686/ase1502/2486/32-bit/FBO/Thu May 24 08:15:50 2007
Nov 28 09:19:07 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:07.26 kernel Confidential property of Sybase, Inc.Nov 28 09:19:07 localhost messagebus: messagebus startup succeeded
Nov 28 09:19:07 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:07.26 kernel Copyright 1987, 2007
Nov 28 09:19:08 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:07.26 kernel Sybase, Inc. All rights reserved.
Nov 28 09:19:08 localhost rhnsd: Red Hat Network Services Daemon running with check_in interval set to 240 minutes.
Nov 28 09:19:08 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:07.26 kernel Unpublished rights reserved under U.S. copyright laws.
Nov 28 09:19:08 localhost rhnsd: Red Hat Network Services Daemon running with check_in interval set to 240 minutes.
Nov 28 09:19:08 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:07.26 kernel
Nov 28 09:19:08 localhost rhnsd[27742]: Red Hat Network Services Daemon starting up.
Nov 28 09:19:08 localhost rhnsd: rhnsd startup succeeded
Nov 28 09:19:08 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:07.26 kernel This software contains confidential and trade secret information of Sybase,
Nov 28 09:19:09 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:07.26 kernel Inc. Use, duplication or disclosure of the software and documentation by
Nov 28 09:19:09 localhost cups-config-daemon: cups-config-daemon startup succeeded
Nov 28 09:19:09 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:07.26 kernel the U.S. Government is subject to restrictions set forth in a license
Nov 28 09:19:09 localhost haldaemon: haldaemon startup succeeded
Nov 28 09:19:09 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:07.26 kernel agreement between the Government and Sybase, Inc. or other written
Nov 28 09:19:09 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:07.26 kernel agreement specifying the Government's rights to use the software and any
Nov 28 09:19:10 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:07.26 kernel applicable FAR provisions, for example, FAR 52.227-19.
Nov 28 09:19:10 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:07.26 kernel Sybase, Inc. One Sybase Drive, Dublin, CA 94568, USA
Nov 28 09:19:10 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:07.26 kernel Using /opt/sybase as the 'SYBASE' environment variable, found during startup.
Nov 28 09:19:10 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:07.26 kernel Using OCS-15_0 as the 'SYBASE_OCS' environment variable, found during startup.
Nov 28 09:19:10 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:07.29 kernel ASE booted on Linux release 2.6.9-78.0.13.ELsmp version #1 SMP Wed Jan 7 17:52:47 EST 2009.
Nov 28 09:19:10 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:07.29 kernel Using '/opt/sybase/ASE-15_0/pqbsyb1.cfg' for configuration information.
Nov 28 09:19:11 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:07.29 kernel Logging ASE messages in file '/opt/sybase/ASE-15_0/install/pqbsyb1.log'.
Nov 28 09:19:11 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:07.29 kernel Platform TCP network is forced to IPv4-only.
Nov 28 09:19:11 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:07.32 kernel ASE booted with TCP_NODELAY enabled.
Nov 28 09:19:11 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:07.35 kernel SSL Plus v5.0.4 security modules loaded successfully.
Nov 28 09:19:11 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:07.35 kernel Network and device connection limit is 1009.
Nov 28 09:19:11 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:07.65 server Number of blocks left for proc headers: 12760.
Nov 28 09:19:11 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:07.65 server Proc header memory allocated 2552 pages for each per engine cache
Nov 28 09:19:11 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:08.16 server Size of the 16K memory pool: 307200 Kb
Nov 28 09:19:11 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:08.16 server Memory allocated for the default data cache cachelet 1: 307200 Kb
Nov 28 09:19:12 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:08.16 kernel Enabling Linux Native Kernel asynchronous disk I/O strategy.
Nov 28 09:19:12 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:08.16 kernel Initializing virtual device 0, '/opt/sybase/data/master.dat' with dsync 'on'.
Nov 28 09:19:12 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:08.16 kernel Virtual device 0 started using asynchronous i/o.
Nov 28 09:19:12 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:08.17 server Loaded default Unilib conversion handle.
Nov 28 09:19:12 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:08.56 kernel Worker Thread Manager is not enabled for use in ASE.
Nov 28 09:19:12 localhost fstab-sync[28568]: removed all generated mount points
Nov 28 09:19:12 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:08.58 kernel Either the config parameter 'use security services' is set to 0, or ASE does not support use of external security mechanisms on this platform. The Security Control Layer will not be initialized. No external security mechanisms will be supported.
Nov 28 09:19:13 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:08.58 kernel Unix interval timer enabled for sysclk interrupts.
Nov 28 09:19:13 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:08.85 kernel Begin processing to generate RSA keypair.
Nov 28 09:19:13 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:08.94 kernel Completed processing to generate RSA keypair.
Nov 28 09:19:13 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:08.94 kernel Encryption provider initialization succeeded on engine 0.
Nov 28 09:19:13 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:08.94 kernel engine 0, os pid 27618 online
Nov 28 09:19:13 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:08.94 server No active traceflags
Nov 28 09:19:13 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:09.08 kernel libomni1 - Component Integration Services: usin
g 'Sybase Client-Library/15.0/P-EBF14165 ESD #7/DRV.15.0.3/Linux Intel/Linux 2.4.21-47.0.1.ELsmp i686/BUILD1500-093/OPT/Wed Dec 13 21:46:44 2006'
Nov 28 09:19:13 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:09.10 server Opening Master Database ...
Nov 28 09:19:14 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:09.66 server Loading ASE's default sort order and character set
Nov 28 09:19:14 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:09.83 server Recovering database 'master'.
Nov 28 09:19:14 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:09.92 server Started estimating recovery log boundaries for database 'master'.
Nov 28 09:19:14 localhost kernel: mtrr: type mismatch for d8000000,2000000 old: uncachable new: write-combining
Nov 28 09:19:14 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:09.96 server Database 'master', checkpoint=(1831, 20), first=(1831, 20), last=(1831, 32).
Nov 28 09:19:14 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:09.96 server Completed estimating recovery log boundaries for database 'master'.
Nov 28 09:19:14 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:09.96 server Started ANALYSIS pass for database 'master'.
Nov 28 09:19:14 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:09.96 server Completed ANALYSIS pass for database 'master'.
Nov 28 09:19:14 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:09.96 server Log contains all committed transactions until 2011/11/27 13:28:54.20 for database master.
Nov 28 09:19:14 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:09.96 server Started REDO pass for database 'master'. The total number of log records to process is 13.
Nov 28 09:19:14 localhost fstab-sync[28716]: added mount point /media/cdrecorder for /dev/scd0
Nov 28 09:19:14 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:10.12 server Redo pass of recovery has processed 4 committed and 0 aborted transactions.
Nov 28 09:19:14 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:10.12 server Completed REDO pass for database 'master'.
Nov 28 09:19:14 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:10.12 server Recovery of database 'master' will undo incomplete nested top actions.
Nov 28 09:19:14 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:10.12 server Started recovery checkpoint for database 'master'.
Nov 28 09:19:15 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:10.38 server Completed recovery checkpoint for database 'master'.
Nov 28 09:19:15 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:10.56 server Started filling free space info for database 'master'.
Nov 28 09:19:15 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:11.24 server Completed filling free space info for database 'master'.
Nov 28 09:19:15 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:11.26 server Started cleaning up the default data cache for database 'master'.
Nov 28 09:19:15 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:11.26 server Completed cleaning up the default data cache for database 'master'.
Nov 28 09:19:15 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:11.42 server Checking external objects.
Nov 28 09:19:15 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:12.40 server Database 'master' is now online.
Nov 28 09:19:15 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:12.40 server The transaction log in the database 'master' will use I/O size of 16 Kb.
Nov 28 09:19:15 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:12.67 server Warning: ASE_HA has no valid license and therefore is not initialized.
Nov 28 09:19:15 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:12.73 server server name is 'pqbsyb1'
Nov 28 09:19:15 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:12.90 server Activating disk 'sysprocsdev' of size 126976 KB.
Nov 28 09:19:15 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:12.95 kernel Initializing virtual device 1, '/opt/sybase/data/sysprocs.dat' with dsync 'on'.
Nov 28 09:19:16 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:12.95 kernel Virtual device 1 started using asynchronous i/o.
Nov 28 09:19:16 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:12.95 server Activating disk 'systemdbdev' of size 49152 KB.
Nov 28 09:19:16 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:12.99 kernel Initializing virtual device 2, '/opt/sybase/data/sybsysdb.dat' with dsync 'on'.
Nov 28 09:19:16 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:12.99 kernel Virtual device 2 started using asynchronous i/o.
Nov 28 09:19:16 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:12.99 server Activating disk 'apricot_data1' of size 35082660 KB.
Nov 28 09:19:16 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:13.02 kernel Initializing virtual device 3, '/opt/sybase_data/apticotdata.dat' with dsync 'off'.
Nov 28 09:19:16 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:13.02 kernel Virtual device 3 started using asynchronous (with DIRECTIO) i/o.
Nov 28 09:19:16 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:13.02 server Activating disk 'apricot_log1' of size 2980002 KB.
Nov 28 09:19:17 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:13.04 kernel Initializing virtual device 4, '/opt/sybase_data/apricotlog.dat' with dsync 'off'.
Nov 28 09:19:17 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:13.04 kernel Virtual device 4 started using asynchronous (with DIRECTIO) i/o.
Nov 28 09:19:17 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:13.04 server Activating disk 'tempdb_dev' of size 1048576 KB.
Nov 28 09:19:17 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:13.09 kernel Initializing virtual device 5, '/opt/sybase_data/tempdb.dat' with dsync 'off'.
Nov 28 09:19:17 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:13.09 kernel Virtual device 5 started using asynchronous i/o.
Nov 28 09:19:18 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:13.30 server Recovering database 'sybsystemdb'.
Nov 28 09:19:18 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:13.32 server Started estimating recovery log boundaries for database 'sybsystemdb'.
Nov 28 09:19:18 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:13.40 server Database 'sybsystemdb', checkpoint=(843, 106), first=(843, 106), last=(843, 106).
Nov 28 09:19:18 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:13.40 server Completed estimating recovery log boundaries for database 'sybsystemdb'.
Nov 28 09:19:19 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:13.40 server Started ANALYSIS pass for database 'sybsystemdb'.
Nov 28 09:19:19 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:13.40 server Completed ANALYSIS pass for database 'sybsystemdb'.
Nov 28 09:19:19 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:13.40 server Log contains all committed transactions until 2011/10/25 09:55:36.72 for database sybsystemdb.
Nov 28 09:19:20 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:13.40 server Started REDO pass for database 'sybsystemdb'. The total number of log records to process is 1.
Nov 28 09:19:20 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:13.41 server Completed REDO pass for database 'sybsystemdb'.
Nov 28 09:19:20 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:13.41 server Recovery of database 'sybsystemdb' will undo incomplete nested top actions.
Nov 28 09:19:20 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:13.41 server Started recovery checkpoint for database 'sybsystemdb'.
Nov 28 09:19:21 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:13.46 server Completed recovery checkpoint for database 'sybsystemdb'.
Nov 28 09:19:21 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:13.58 server Started filling free space info for database 'sybsystemdb'.
Nov 28 09:19:21 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:13.69 server Completed filling free space info for database 'sybsystemdb'.
Nov 28 09:19:21 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:13.70 server Started cleaning up the default data cache for database 'sybsystemdb'.
Nov 28 09:19:21 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:13.70 server Completed cleaning up the default data cache for database 'sybsystemdb'.
Nov 28 09:19:22 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:13.70 server Boot Count: 13
Nov 28 09:19:22 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:13.81 server Checking external objects.
Nov 28 09:19:22 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:14.18 server The transaction log in the database 'sybsystemdb' will use I/O size of 16 Kb.
Nov 28 09:19:22 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:15.59 server Completed recovery checkpoint for database 'model'.
Nov 28 09:19:22 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:15.70 server Started filling free space info for database 'model'.
Nov 28 09:19:23 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:15.72 server Completed filling free space info for database 'model'.
Nov 28 09:19:23 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:15.74 server Started cleaning up the default data cache for database 'model'.
Nov 28 09:19:23 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:15.74 server Completed cleaning up the default data cache for database 'model'.
Nov 28 09:19:23 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:15.77 server Checking external objects.
Nov 28 09:19:23 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:16.07 server The transaction log in the database 'model' will use I/O size of 16 Kb.
Nov 28 09:19:24 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:16.08 server Database 'model' is now online.
Nov 28 09:19:24 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:16.08 server The logical pagesize of the server is 16 Kb.
Nov 28 09:19:24 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:16.08 server 0 dump conditions detected at boot time
Nov 28 09:19:24 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:16.08 server Clearing temp db
Nov 28 09:19:24 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:18.37 server Processed 27 allocation unit(s) out of 262 units (allocation page 6656). 10% completed.
Nov 28 09:19:25 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:19.51 server Processed 53 allocation unit(s) out of 262 units (allocation page 13312). 20% completed.
Nov 28 09:19:25 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:20.81 server Processed 79 allocation unit(s) out of 262 units (allocation page 19968). 30% completed.
Nov 28 09:19:25 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:22.19 server Processed 105 allocation unit(s) out of 262 units (allocation page 26624). 40% completed.
Nov 28 09:19:25 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:23.52 server Processed 131 allocation unit(s) out of 262 units (allocation page 33280). 50% completed.
Nov 28 09:19:25 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:24.96 server Processed 158 allocation unit(s) out of 262 units (allocation page 40192). 60% completed.
Nov 28 09:19:27 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:27.08 server Processed 184 allocation unit(s) out of 262 units (allocation page 46848). 70% completed.
Nov 28 09:19:29 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:29.94 server Processed 210 allocation unit(s) out of 262 units (allocation page 53504). 80% completed.
Nov 28 09:19:32 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:32.01 server Processed 236 allocation unit(s) out of 262 units (allocation page 60160). 90% completed.
Nov 28 09:19:32 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:32.57 server Processed 262 allocation unit(s) out of 262 units (allocation page 66816). 100% completed.
Nov 28 09:19:32 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:32.84 server The transaction log in the database 'tempdb' will use I/O size of 16 Kb.
Nov 28 09:19:32 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:32.86 server Database 'tempdb' is now online.
Nov 28 09:19:33 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:33.06 server Recovering database 'sybsystemprocs'.
Nov 28 09:19:33 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:33.08 server Started estimating recovery log boundaries for database 'sybsystemprocs'.
Nov 28 09:19:33 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:33.14 server Database 'sybsystemprocs', checkpoint=(6333, 93), first=(6333, 93), last=(6333, 93).
Nov 28 09:19:33 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:33.14 server Completed estimating recovery log boundaries for database 'sybsystemprocs'.
Nov 28 09:19:33 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:33.14 server Started ANALYSIS pass for database 'sybsystemprocs'.
Nov 28 09:19:33 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:33.14 server Completed ANALYSIS pass for database 'sybsystemprocs'.
Nov 28 09:19:33 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:33.14 server Log contains all committed transactions until 2011/10/25 09:55:36.72 for database sybsystemprocs.
Nov 28 09:19:33 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:33.14 server Started REDO pass for database 'sybsystemprocs'. The total number of log records to process is 1.
Nov 28 09:19:33 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:33.14 server Completed REDO pass for database 'sybsystemprocs'.
Nov 28 09:19:33 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:33.14 server Recovery of database 'sybsystemprocs' will undo incomplete nested top actions.
Nov 28 09:19:33 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:33.14 server Started recovery checkpoint for database 'sybsystemprocs'.
Nov 28 09:19:33 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:33.18 server Completed recovery checkpoint for database 'sybsystemprocs'.
Nov 28 09:19:33 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:33.20 server Started filling free space info for database 'sybsystemprocs'.
Nov 28 09:19:33 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:33.39 server Completed filling free space info for database 'sybsystemprocs'.
Nov 28 09:19:33 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:33.40 server Started cleaning up the default data cache for database 'sybsystemprocs'.
Nov 28 09:19:33 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:33.40 server Completed cleaning up the default data cache for database 'sybsystemprocs'.
Nov 28 09:19:33 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:33.41 server Checking external objects.
Nov 28 09:19:34 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:34.04 server The transaction log in the database 'sybsystemprocs' will use I/O size of 16 Kb.
Nov 28 09:19:34 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:34.09 server Database 'sybsystemprocs' is now online.
Nov 28 09:19:34 localhost sybase_init: 00:00000:00008:2011/11/28 09:19:34.23 kernel network name localhost.localdomain, interface IPv4, address 10.1.1.33, type tcp, port 4100, filter NONE
Nov 28 09:19:34 localhost sybase_init: 00:00000:00008:2011/11/28 09:19:34.23 kernel network name localhost.localdomain, interface IPv4, address 127.0.0.1, type tcp, port 4100, filter NONE
Nov 28 09:19:34 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:34.74 server Recovery has tuned the size of '128K' pool in 'default data cache' to benefit recovery performance. The original configuration will be restored at the end of recovery.
Nov 28 09:19:34 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:34.74 server Recovery has tuned the size of '16K' pool in 'default data cache' to benefit recovery performance. The original configuration will be restored at the end of recovery.
Nov 28 09:19:34 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:34.74 server Recovery has tuned the '128K' pool in 'default data cache' by changing its 'local async prefetch limit' from 10 to 80. The original configuration will be restored at the end of recovery.
Nov 28 09:19:34 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:34.74 server Recovery has tuned the '16K' pool in 'default data cache' by changing its 'local async prefetch limit' from 10 to 80. The original configuration will be restored at the end of recovery.
Nov 28 09:19:34 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:34.74 server The server will recover databases serially.
Nov 28 09:19:34 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:34.81 server Recovering database 'apricot'.
Nov 28 09:19:34 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:34.82 server Started estimating recovery log boundaries for database 'apricot'.
Nov 28 09:19:34 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:34.89 server Database 'apricot', checkpoint=(2358271, 12), first=(2358271, 11), last=(2358275, 172).
Nov 28 09:19:34 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:34.89 server Completed estimating recovery log boundaries for database 'apricot'.
Nov 28 09:19:34 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:34.89 server Started ANALYSIS pass for database 'apricot'.
Nov 28 09:19:34 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:34.89 server Completed ANALYSIS pass for database 'apricot'.
Nov 28 09:19:34 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:34.89 server Log contains all committed transactions until 2011/11/28 09:16:20.68 for database apricot.
Nov 28 09:19:34 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:34.89 server Started REDO pass for database 'apricot'. The total number of log records to process is 846.
Nov 28 09:19:35 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:35.10 server Redo pass of recovery has processed 2 committed and 138 aborted transactions.
Nov 28 09:19:35 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:35.10 server Completed REDO pass for database 'apricot'.
Nov 28 09:19:35 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:35.11 server Recovery of database 'apricot' will undo incomplete nested top actions.
Nov 28 09:19:35 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:35.11 server Started recovery checkpoint for database 'apricot'.
Nov 28 09:19:35 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:35.29 server Completed recovery checkpoint for database 'apricot'.
Nov 28 09:19:35 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:35.35 server Started filling free space info for database 'apricot'.
Nov 28 09:19:35 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:35.47 server Completed filling free space info for database 'apricot'.
Nov 28 09:19:35 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:35.51 server Started cleaning up the default data cache for database 'apricot'.
Nov 28 09:19:35 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:35.51 server Completed cleaning up the default data cache for database 'apricot'.
Nov 28 09:19:35 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:35.55 server Checking external objects.
Nov 28 09:19:36 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:36.30 server The transaction log in the database 'apricot' will use I/O size of 16 Kb.
Nov 28 09:19:36 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:36.31 server Database 'apricot' is now online.
Nov 28 09:19:36 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:36.34 server Recovery has restored the value of 'local async prefetch limit' for '128K' pool in 'default data cache' from '80' to 'DEFAULT'.
Nov 28 09:19:36 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:36.34 server Recovery has restored the value of 'local async prefetch limit' for '16K' pool in 'default data cache' from '80' to 'DEFAULT'.
Nov 28 09:19:36 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:36.40 server Recovery has restored the original size for '128K' pool and '16K' pool in 'default data cache'.
Nov 28 09:19:36 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:36.44 server Recovery complete.
Nov 28 09:19:36 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:36.46 server ASE's default unicode sort order is 'binary'.
Nov 28 09:19:36 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:36.46 server ASE's default sort order is:
Nov 28 09:19:36 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:36.46 server 'bin_iso_1' (ID = 50)
Nov 28 09:19:36 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:36.46 server on top of default character set:
Nov 28 09:19:36 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:36.46 server 'iso_1' (ID = 1).
Nov 28 09:19:36 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:36.46 server Master device size: 240 megabytes, or 122880 virtual pages. (A virtual page is 2048 bytes.)
Nov 28 09:34:40 localhost sybase_init: 00:00000:00109:2011/11/28 09:34:40.95 kernel Cannot send, host process disconnected: btl-sce-cm suid: 3
Nov 28 09:34:40 localhost sybase_init: 00:00000:00109:2011/11/28 09:34:40.95 server Error: 1608, Severity: 18, State: 3
Nov 28 09:34:40 localhost sybase_init: 00:00000:00109:2011/11/28 09:34:40.95 server A client process exited abnormally, or a network error was encountered. Unless other errors occurred, continue processing normally.
Nov 28 09:34:40 localhost sybase_init: 00:00000:00109:2011/11/28 09:34:40.95 kernel extended error information: hostname: btl-sce-cm login: pqb_admin
Nov 28 09:38:27 localhost sshd(pam_unix)[29201]: session opened for user root by (uid=0) -
W530 Num Lock problems with VMWare
All, I am having a major problem with VMWare and the W530 "Num Lock". When I move the cursor into the VMWare window a message comes on say "NUM LOCK: ON" when I move it out of the VMWare window I see message "NUM LOCK: OFF". I do not have any key on the keyboard to disable Num Locl. There are utilities I can run in the SUSE VMWare image to capture the key binding and remap, but I do not have anyway of turning Num Lock on or off to capture
the key binding.
Suggestions ?
Solved!
Go to Solution.Hello and welcome,
A couple of things you might try. Don't know if they'll work on your W. They do work on some other Lenovo machines.
Plug in a USB keyboard that has numlock. Use that and see if it sticks after reboot.
Use the on-screen keyboard. Click "options" and enable numeric keypad. That should add a keypad and NUMLOCK key to the on-screen keyboard. Use that. See if it works - and if it sticks.
(Windows 7) Start -> Accessories -> Ease of Access -> On-Screen Keyboard.
A little more detail here: http://www.beezmo.com/geezblog/?p=259
Z.
The large print: please read the Community Participation Rules before posting. Include as much information as possible: model, machine type, operating system, and a descriptive subject line. Do not include personal information: serial number, telephone number, email address, etc. The fine print: I do not work for, nor do I speak for Lenovo. Unsolicited private messages will be ignored. ... GeezBlog
English Community Deutsche Community Comunidad en Español Русскоязычное Сообщество -
Locking problem with Postgresql
I'm having some intermittent deadlock problems with Postgresql (7.1 and
7.2) and Kodo 2.2.3 and 2.2.4.
It appears to be a conflict between my JDO and my JDBC code. I reduced
the problem section to the
method found below.
I am running 10 threads concurrently in this test script. Each thread
is calling the "runQuery()" method
below which creates a PersistenceManager, starts a transaction, runs an
unrelated JDBC query, and
then commits the transaction.
The transaction is unrelated to the JDBC query, but it seems to
interfere with it. After a random number
of transactions, it locks up. Now that I've upgraded to 7.2 and 2.2.4,
it doesn't seem to lock with an
"UPDATE waiting" message like it did with 7.1 and 2.2.3, but the script
still hangs. It's strange,
because if I remove the superfluous Transaction "begin" and "commit", it
runs fine.
Any ideas on what might cause this?
Thanks,
-Mike
private void runQuery() throws AppException {
PersistenceManager pm=JDOFactory.getPersistenceManager();
Transaction tx = pm.currentTransaction();
tx.begin();
tx.commit();
Connection conn=null;
Long listrunid=new Long (281);
try {
conn = JDOFactory.getConnection();
String sql="update summaryreport set
totalforwarded=totalforwarded+1 where listrunid=listrun.id and
listrun.publicid=?";
PreparedStatement stmt = conn.prepareStatement(sql);
stmt.setLong(1, listrunid.longValue());
_log.debug("executing: "+stmt);
int result=stmt.executeUpdate();
_log.debug("done executing: "+stmt);
if (result==0) {
_log.error("Nothing to update for id="+listrunid);
catch (SQLException ex) {
_log.error("SQLException: "+ex.getMessage());
throw new AppException (ex.getMessage());
finally {
if (conn!=null) {
try {conn.close();}
catch(SQLException ex) {
_log.warn(ex.getMessage());
Mike BridgeHi Patrick,
You're right, that should be in a finally clause. However, my script seems
to hang after about 10 to 30 of the 1000 iterations.
-Mike
Patrick Linskey wrote:
Mike Bridge <[email protected]> writes:
Hi-
Here's a standalone program that shows the problem. If you remove the
"tx.begin()" and "tx.commit()" lines,
it seems to work fine. With them, I get some odd NullPointerExceptions at
the start, then later it hangs.FTR, it looks like the hang is caused by the bit where threadDone() is
only invoked when an exception is not thrown. If you move the
threadDone() invocation to a finally clause, the hang will probably go
away.
-Mike
import java.util.*;
import javax.jdo.*;
import java.sql.*;
import com.solarmetric.kodo.impl.jdbc.*;
* create table testtable (id INT, value INT);
* insert into testtable(id, value) VALUES (1,0);
public class ConcurrentTest {
private static JDBCPersistenceManagerFactory factory = null;
public boolean threadsaredone=false;
public int iterations=0;
public int threadsdone=0;
public static Connection getConnection() throws SQLException {
javax.sql.DataSource ds = (javax.sql.DataSource)
factory.getConnectionFactory();
return ds.getConnection ();
public static PersistenceManager getPersistenceManager () {
return factory.getPersistenceManager ();
static {
factory = new JDBCPersistenceManagerFactory ();
factory.setNontransactionalRead (true);
factory.setRetainValues (true);
factory.setOptimistic (true);
private void runQuery() {
PersistenceManager pm=getPersistenceManager();
Transaction tx = pm.currentTransaction();
tx.begin();
Connection conn=null;
PreparedStatement stmt=null;
int id=1;
try {
conn = getConnection();
if (conn==null) {
System.out.println("Connection is null");
System.exit(1);
String sql="update testtable set value=value+1 where id=?";
stmt= conn.prepareStatement(sql);
stmt.setLong(1, id);
// System.out.println("executing: "+stmt);
int result=stmt.executeUpdate();
// System.out.println("done executing: "+stmt);
if (result==0) {
System.out.println("Nothing to update for id="+id);
catch (SQLException ex) {
System.out.println("SQLException: "+ex.getMessage());
finally {
if (conn!=null) {
try {conn.close();}
catch(SQLException ex) {System.out.println(ex.getMessage());}
if (stmt!=null) {
try {stmt.close();}
catch(SQLException ex) {System.out.println(ex.getMessage());}
tx.commit();
public synchronized void threadDone(int threadid) {
threadsdone++;
System.out.println("Thread "+threadid+" is done");
public synchronized void iterationstarted() {
iterations++;
System.out.println(" ** Starting iteration "+iterations);
public void launch(int maxthreads, int repperthread) {
runQuery();
for (int i=0; i<maxthreads; i++) {
System.out.println("launching thread "+i);
Thread mythread=new MyThread(this, i, repperthread);
mythread.start();
while ( threadsdone<maxthreads ) {
try {
Thread.currentThread().sleep(2000);
catch (InterruptedException ex) {
System.out.println("Interrupted: "+ex.getMessage());
System.out.println("threads reported finished: "+threadsdone);
System.out.println("DONE!");
public static void main (String[] args) {
int maxthreads=10;
int repperthread=100;
ConcurrentTest ct=new ConcurrentTest();
ct.launch(maxthreads, repperthread);
private class MyThread extends Thread {
ConcurrentTest testobj;
int threadid;
int repetitions;
public MyThread(ConcurrentTest testobj, int threadid, int repetitions)
this.testobj=testobj;
this.threadid=threadid;
this.repetitions=repetitions;
public void run() {
try {
for (int i=0; i<repetitions; i++) {
iterationstarted();
System.out.println(" START iteration "+i+" for thread "+threadid);
testobj.runQuery();
System.out.println(" FINISH iteration "+i+" for thread "+threadid);
testobj.threadDone(threadid);
catch (Exception ex) {
ex.printStackTrace();
System.out.println("ERROR: "+ex.getMessage());
Patrick Linskey [email protected]
SolarMetric Inc. http://www.solarmetric.com
Mike Bridge -
Problems with Sybase 12 to Oracle 10g migration
Hi,
I'm using SQL Developer to test a migration between Sybase and Oracle and it doesn't work (both online and offline)
I've create a dedicated user account and connection, with the roles and privileges required (as seen in http://download.oracle.com/docs/cd/B32485_01/doc/appdev.110/b31695/migration.htm#i1005739)
I've created the migration repository without any problems (using the above user account).
QUICK MIGRATION
- select the source Sybase connection: OK
- select the target Oracle connection: OK
- select the referential: OK
- verify privileges before migration: OK
- migrate tables only and click Next
## window closes and nothing happens ## - nothing on Captured Model pane
CAPTURE SOURCE SYBASE DATABASE
- right click on the Sybase connection in the Connections pane
- choose Capture Sybase
## window closes and nothing happens ## - nothing on Captured Model pane
OFFLINE CAPTURE
- create database capture scripts: OK
- launch the database scripts (SYB12_OFFLINE_CAPTURE.BAT): OK
- load database capture script output (sybase12.ocp)
## window closes and nothing happens ## - nothing on Captured Model pane
I can't find any relevant logs or trace from the application.
I even tried to use the capture file sybasemigration.zip from the "Migrating a Sybase Database to Oracle Database 11g" web page (http://www.oracle.com/technology/obe/hol08/sqldev_migration/sybase/migrate_sybase_otn.htm), but the result was the same.
Does anyone encountered the same problems? Does someone knows where are the logs (if any)?
Thanks in advance.
Regards,
PedroHi Pedro,
What version of SQL Developer are you using?
Can you browse your Sybase connection in SQL Developer, to see its tables for example?
If not, then you may need to point SQL Developer to your JTDS 1.2 driver again.
Are you capturing a non system database ? SQL Developer wont migration master or tempdb ...
Can you try running SQL Developer from the command line and watch the command line for any errors during the capture.
\sqldeveloper\bin\sqldeveloper.exe
Regards,
Dermot
SQL Developer Team -
Hi,
I am working with BPS into BI 7.0, and its STS. The user goes to the STS web page and takes a node A and changes its status to "In process" and its brother node B is "Send to approval".
The node A is locked; the message said "An exclusive lock was set in subplan AA planning session BB for the transaction data. For this reason, you can only display the data. ... In the case Botton up ( it is my case), set automatically when a subplan was send for approval or was approval, but the node is "in process" and that node has only one planning folder.
Thanks for your help.
VictoriaHello Victoria,
This is a weakness of STS regarding the locking concept, that it is not able to determine on which node the user is operating.
Once there is one lock set for a specific user, this user is not allowed to open a planning layout out of STS. (beside the auth. object R_STS_SUP)
You can debug this yourself. You can find this in function module UPS_CHECK_LOCKS_IN_HIER.
Greetings
Alex -
Crystal Reports XIR2 performance problem with Sybase IQ 15.2
Dear all,
we are facing a performances pb with Crystal reports and Sybase IQ 15.2, Does anyone have a similar issues and have a solution as ( design , or sybase IQ configuration...)
regards,
EricWow, not so much info please... for starters:
Is this in the designer or in an app?
Depending on the above, the following may, or may not apply:
What are you comparing the performance to?
What is the exact version of CR or what CR Service Packs have you applied?
If in an app , what your development language?
What CR SDK are you using?
Web or Win app?
How are you connecting to the database (OLE DB, ODBC, etc .)?
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup
Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports] -
Portait Lock Problem with IOS 4.2.1
Since upgrading to 4.2.1, my phone screen orientation isn't working properly. Browser, text, email, notes etc stay in portrait mode when I turn the device horizontally. With it horizontally, I have to double-tap the home key, swipe to the lock key then lock and unlock before the screen re-orientates.
This only fixes the issue temporarily, during the time I am using the app. When I switch to another app, the same issue occurs. Furthermore, it locks the app in landscape mode (which I don't mind!)
This is only really a pain when I want to use text input.
This image was taken whilst my phone was in portrait mode: http://www.haizdesign.com/lock.pngThere is no legit way to downgrade.
Have you tried basics from the manual?
Restart.
reset.
Restore.
Troubleshooting MMS:
http://support.apple.com/kb/TS2755 -
Auto lock problem with Shuffle 4th gen.
On power up, automatically enters button lock.
I'm then unable to take off the lock (hold play button for >3 seconds)
I have to switch off, then have a second or 2 to use controls before it locks itself again
Tried Reset/Restore etc. Any suggestions please!Tried Reset/Restore etc. Any suggestions please!
A restore would have eliminated the possibility of software glitch/error so the problem is more than likely hardware related meaning you'll need to have the Shuffle serviced or replaced.
B-rock -
Locking Problem with Forms Builder 6i/Oracle 9i
It appears that when form builder has a form open, all of the objects in the form are locked exclusively. This is causing loads of problems when trying to alter objects. Runtime doesn't seem to have this problem. Is this a known bug or is there a way to keep builder from obtaining exclusive locks.
We have the same problem. It seems that if we use drop and create and not create or replace statments we don't get the locks. This is not a solution but perhaps a workaround.
We tried to upgrade the database to 9.0.1.3.1 but that didn't help. -
Screen lock problems with Alarm, etc...
The Alarm notification window goes away too quickly.
I have the screen lock setting ON (so I have to slide the yellow ball up). I also have the screen lock time set to one minute.
When the alarm goes off (IF it goes off, which is another bug) the screen turns on with the slider indicating an alarm is going off, but it quickly goes away.
It doesn't stay active for the minute I have set.
Thus, I have to hit the button, then unlock the screen to snooze the alarm.
Also I noticed that the screen lock, well, works whenever it wants to. Sometimes Im asked to slide the ball, other times I am not. I should be qued to do this every time I tap the power button.
All these little bugs are making me a little leery of my Pre purchase...
Post relates to: Pre p100eww (Sprint)I was on vacation this weekend and set my Pre alarm to go off both mornings. The first morning it went off, but the touch screen, volume buttons, unlock, etc. were all frozen. Nothing had any effect on the Pre whatsoever. Had to completely shut down the Pre.
The next morning, it simply didn't go off at all. Triple-check the settings, and all were correct. Just deecided to not work. -
Phase Lock problem with a PXI-1000 chassis
As already discussed here, we had an application running smoothly on a 1042 chassis with a 8186 controller.
We generate two sine waves in phase quadrature, using two 5411 boards.
Unfortunately, we are now obliged to use a PXI-1000 with a 8170 controller, and we don't get anymore the expected results : the signals are generated with the correct frequency and amplitude, but the phase offset is totally unstable, as observed on an oscilloscop.
We are using the Synchronized wave generation NI example. Are we missing something ?
Please consider that we are not specialists in electronics, just plain biologists .
We need help URGENTLY !!!
Chilly Charly (aka CC)
E-List Master - Kudos glutton - Press the yellow button on the left...One thing that I noticed between the 1000 and the 1042 is that the 1000 has the Fan integrated with the power supply, so the fan is probably run off AC. In the 1042, the fan is run off DC and as stated in the specifications greatly reducing electronic noise. It could be that your phase offset is caused by the AC fan in the 1000.
You might want to try to move everything as far away from the power supply and fan as possible (if it is possible) to see if this helps at all.
Also, the 1042 and 1000 have a 10 MHz reference signal for timing pusposes to each of the modules. The 1042 has an accuracy (skew) of 250 ps between each of the mudules. The 1000 has a skew of 1 ns, obviously much greater of an error (less accurate), which could be causing some issues as well.
I do not know what freq you are operating at, but you may be able to filter some of the 60 Hz frequencies out with a smaller capacitor 0.1uF or so.
Good luck.
Kenny
Kenny -
HT4623 iPad is locked; problem with iCloud
my iPad is locked up, showing only the message iCloud Backup is unable to access my account. I can't shut it down or go to Settings. What to do?
Have you tried a reset ? Press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider if it appears), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.
-
Pessimistic locking with Oracle10gAS (10.0.3) Toplink CMP
Hi,
I try to work with Toplink CMP on the preview of the Oracle Application Server 10g (10.0.3). I use the workbench to create the toplink-ejb-jar.xml file.
I have some problems to use the pessimistic locking. I enabled locks for a method with the name findAndLockByPrimaryKey. The SELECT * FROM XXX FOR UPDATE statement is created correctly, however an other 'data base connection' is used for the update statement. Is it possible
to activate a data base transaction with toplink CMP which starts with a find method and ends when the Session Bean is removed.
Thanks for help.I found the following entry in the Developer Preview Release Notes:
<opm:class-mapping-descriptor xsi:type="toplink:relational-class-mapping-descriptor">
<toplink:cmp-descriptor xsi:type="toplink:cmp-descriptor">
<toplink:pessimistic-locking xsi:type="toplink:pessimistic-locking-policy">
<toplink:locking-mode>no-wait</toplink:locking-mode>
</toplink:pessimistic-locking>
</toplink:cmp-descriptor>
</opm:class-mapping-descriptor>
But I didn't find an option in the workbench to generate
this entry and I'm not able to put this entry into my toplink-ejb-jar.xml file.
Can anybody help me? -
My company primarily uses HP machines but I've been a long time IBM (now Lenovo) fan so I recently had IT purchase me a new Lenovo W520 (product ID 42763LU).
Once the machine arrived I had them do the following:
Remove the 500GB HDD and replace it with an Intel 520 series 240GB SSD
Remove the optical drive and install the 500GB hard drive that came with the machine in the optical bay (with the bay adapter of course)
Format both drives and put a preconfigured windows 7 64-bit image on the SSD
A general summary of the system is the following:
Intel i7-2860QM CPU
8GB RAM
NVIDIA Quadro 1000M
Intel 520 240GB SSD (primary HDD) [SSDSC2CW240A3]
Hitachi 500GB HDD (optical bay) [HTS727550A9E365]
Intel Advanced-N 6205 network adapter
TouchChip Fingerprint Scanner
The machine was a few days delayed getting to me due to "hard drive driver issues" (that's what I was told). When I received the machine I immediately noticed that it was much slower than I expected (I have a custom built i5 HTPC at home running windows 7 on a Crucial SATA III SSD that I was comparing it to) and I was experiencing frequent hangs (ranging from 30 seconds to multiple minutes), super long boot times, general “slowness” at times, and occasional lock-ups. Since our "baseline" laptop here at work is the "equivalent" HP workstation my IT guys have been less than helpful in helping me to solve this issue. Being reasonably computer savvy I decided to try to try to fix the issue myself. I performed the following “troubleshooting” steps:
1. One of the first issues (errors) I noticed in the event viewer was errors related to the optical drive. Clearly the image they installed on the machine was not from a machine with the same hardware configuration. So, I decided to just wipe the machine and perform a fresh install of windows 7 from the disks (well, USB). After spending multiple days installing windows, performing updates, making sure all the drivers were current, and installing only the critical software I need, I was disappointed to realize that although I fixed the optical drive errors the machine was still slow, was hanging, and locking up regularly.
2. Removed the cover on the machine and removed/reinstalled the drive to verify it was secure.Everything looked good.
3. Verified the latest firmware is installed on all my Intel hardware. Everything seemed up to date.
4. I performed a number of troubleshooting steps like booting the machine with/without the battery, with/without the HDD in the optical bay, installed/removed from the docking station, etc. and none of these things helped (also a note – occasionally when running on the battery I was hearing a strange “buzz” or “static” sound coming from the area around the SSD).
5. Next I did some internet research and learned quite a few things. First, it sounds like others have had similar problems with this machine and/or SSD combo and there were quite a few options suggested to “fix” these issues. The general consensus for troubleshooting steps were:
5.1. Download and install the latest Intel chipset drivers and AHCI controller drivers (overwriting whatever windows installs during updates).This didn’t fix anything.
5.2. Turn off PCI express link state power management in the power manager. This didn’t fix anything.
5.3. Disable superfetch, prefetch, indexing, defragmentation, page file, system restore, and hibernate. A few of these were already disabled by windows so in those cases I just verified they were disabled in the services and application editor. These things may have slightly increased performance but did not fix the major hang/lockup issues I was having.
5.4. I followed online steps to edit the registry to disable the PCI link power management by adding ports, adding the required variables, and setting them all to 0. This did seem to have fixed the hangs and/or lock-ups but the machine is still much slower than I would expect (boot times are still pretty slow and it does “stutter” when I’m doing more than one thing at a time. Also a note here – I have the Intel SSD toolbox installed and I noticed that it was giving me a warning for DIPM not being optimized. I made the mistake of clicking “Tune!” and then started having the hang/lock-up issues again. I went back into the registry and sure enough the PCI link power management variables for ports 0 and 1 were set back to 1. I set them back to 0 and the hangs have gone away. I will not be “tuning” the DIPM through the Intel SSD toolbox again…
6. I also fixed a couple of other minor errors I was seeing in the event viewer by disabling benign services and/or making slight timeout modifications (I researched each issue on the internet to verify they were benign before I implemented any changes). These fixes didn't seem to do anything other than make some of the errors/warnings go away. So, the list of errors/warnings has become much smaller but I’m still getting the following (maybe an issue, maybe not?):
Event ID 37 for every processor saying that they are in a reduced performance state for xx seconds since the last report
Event ID 10002 - WLAN Extensibility Module has stopped
Event ID 4001 - WLAN AutoConfig service has successfully stopped
Event ID 27 – Intel® 82579LM Gigabit Network Connection link is disconnected
I suspect the WLAN errors have something to do with windows fighting with the Lenovo access connection tools?
7. Since the machine still seemed slow I downloaded the program AS SSD and checked the performance of the SSD. When I compared my performance numbers to the benchmark numbers I found onlineI was very surprised to discover that I’m getting about 50% of the performance that I should (values below are read/write).
Seq: 262.11 / 188.32 (s/b 504.58 / 298.28) [MB/s]
4K: 15.83 / 44.92 (s/b 21.70 / 62.60) [MB/s]
4K-64Thrd: 165.23 / 154.46 (s/b 241.38 / 234.08) [MB/s]
Acc.time: 0.218 / 0.294 (s/b .0186 / 0.208) [ms]
Score: 207 / 208 (s/b 314 / 327)
Overall Score: 533 (s/b 797)
One more note - it seems like my cooling fan is running at a high speed almost all of the time. This is probably one of my power settings (I think I have it set for max performance) but it's even doing this when there is no load (i.e. I'm using IE and just vieweing webpages - like right now).
So, I apologize for such a long post but I’ve spent countless hours researching and troubleshooting this problem and haven’t been able to figure out what the heck is wrong here. Am I missing something simple or do you guys think I have a SSD and/or problem with the machine itself? To say that any and all help would be greatly appreciated would be a massive understatement – I’m on the verge of pulling my hair out and I really need this machine working as quickly as possible!
Please let me know if you have any suggestions and/or need additional information. Thanks in advance for your help!
-ErikLol gotcha about the drive as an option. I didn't go SSD with mine. Do you have the latest firmware on your drive? It is supposed to be v1.97. Just checking (ah and I see item 3 so guess so). Do you have the SSD drive toolbox software installed?
http://downloadcenter.intel.com/SearchResult.aspx?lang=eng&ProductFamily=Solid+State+Drives+and+Cach...)
Seems some useful tools are in there. I can't say much beyond that with the drive. Oh. Why does your fan always run at high speed? Can you describe that? I mean, are we troubleshooting the right kind of issue? Is there anything else going on with your system? I saw about the reduced core speeds message. what are your system loads like? Anything causing high cpu utilization? Could be something other than the drive causing your low numbers and lockups.
Maybe you are looking for
-
How can I run a script on suspend/resume?
I'd like to run a script when a machine is about to suspend and another after it resumes. Is this possible?
-
Recording from DAT using SB Conn
Long time ago I have recorded DAT tapes using my Denon DTR 2000. I used digital recording from CD for that.Now I am considering using SB Connect for burning CD's (DAT?is such an old stuff?don't want to loose my recordings). Anyone has tried anything
-
CLIENT_RECEIVE_FAILED in XI 3.0
Hi all, I have created this scenario: IDOC ---> XI(Mapping) ---> File When I process IDOC in SXI_MONITOR Transaction this message appear: <SAP:Category>XIServer</SAP:Category> <SAP:Code area="INTERNAL">CLIENT_RECEIVE_FAILED</SAP:Code> <SAP
-
How to display weicome message in sap logon screen?
Hello experts, how to display message " welcome to company name" in the sap logon screen. while typing userid and password in the same screen (right hand side ) , i want to display welcome message. Pls give me the procedure. Moderator message: ea
-
Where is the BOOKMARK ALL TABS gone?
I used to be able to save all opened tabs as a bookmark group. how can I do this in the new firefox 4 i just was made to ddl???