Problem with Assocaite Array & Bulk Collect
Hi All,
I encountered compilation error when I executed the following block. Improper reference of elements in associate array ( at var.party_name (r) in the code ) is giving problems. Please help me in correcting it.
Regards,
Kashif
DECLARE
TYPE record1 IS RECORD (
party_name racsf_cust_pre_staging_int.party_name%TYPE,
shipping_address_1 racsf_cust_pre_staging_int.shipping_address_1%TYPE,
cust_acct_site_id racsf_cust_pre_staging_int.cust_acct_site_id%TYPE
TYPE typ_cust_pre_staging_int IS TABLE OF record1
INDEX BY BINARY_INTEGER;
var typ_cust_pre_staging_int;
BEGIN
SELECT party_name,
shipping_address_1,
cust_acct_site_id
BULK COLLECT INTO var
FROM racsf_cust_pre_staging_int;
FORALL r IN var.FIRST .. var.LAST
UPDATE racsf_cust_pre_staging_int
SET party_name = var.party_name (r),
shipping_address_1 = var.shipping_address_1 (r)
WHERE cust_acct_site_id = var.cust_acct_site_id (r);
END;
I thought if i collect BULK collect and update all records, it will avoid context switching b/w SQL & PL/SQL engines and decrease the execution time.Right idea to get rid of FOR loop
But if you can do in a single SQL statement and avoid collections that is best.
How many records in the collection?
Use LIMIT if necessary as already mentioned - 500 to 1000 might be a sensible limit
I believe this is representative of your current error (I'm using insert and new table for simplicity):
SQL> create table t
2 (col1 number
3 ,col2 number);
Table created.
SQL>
SQL> declare
2 cursor c_t
3 is
4 select rownum col1, rownum col2
5 from dual
6 connect by rownum <= 10000;
7 type tt_t is table of t%rowtype index by pls_integer;
8 v_t tt_t;
9 begin
10 open c_t;
11 loop
12 fetch c_t bulk collect into v_t limit 1000;
13 exit when v_t.count = 0;
14 forall i in 1 .. v_t.count
15 insert into t
16 (col1,col2)
17 values
18 (v_t.col1(i), v_t.col2(i));
19 end loop;
20 end;
21 /
(v_t.col1(i), v_t.col2(i));
ERROR at line 18:
ORA-06550: line 18, column 14:
PLS-00302: component 'COL1' must be declared
ORA-06550: line 18, column 27:
PLS-00302: component 'COL2' must be declared
ORA-06550: line 18, column 27:
PLS-00302: component 'COL2' must be declared
ORA-06550: line 18, column 23:
PL/SQL: ORA-00904: "V_T"."COL2": invalid identifier
ORA-06550: line 15, column 9:
PL/SQL: SQL Statement ignored
SQL> If you change to the following you will run into PLS-00436 - a right PITA.
SQL> declare
2 cursor c_t
3 is
4 select rownum col1, rownum col2
5 from dual
6 connect by rownum <= 10000;
7 type tt_t is table of t%rowtype index by pls_integer;
8 v_t tt_t;
9 begin
10 open c_t;
11 loop
12 fetch c_t bulk collect into v_t limit 1000;
13 exit when v_t.count = 0;
14 forall i in 1 .. v_t.count
15 insert into t
16 (col1,col2)
17 values
18 (v_t(i).col1, v_t(i).col2);
19 end loop;
20 end;
21 /
(v_t(i).col1, v_t(i).col2);
ERROR at line 18:
ORA-06550: line 18, column 10:
PLS-00436: implementation restriction: cannot reference fields of BULK In-BIND table of records
ORA-06550: line 18, column 10:
PLS-00382: expression is of wrong type
ORA-06550: line 18, column 23:
PLS-00436: implementation restriction: cannot reference fields of BULK In-BIND table of records
ORA-06550: line 18, column 23:
PLS-00382: expression is of wrong type
ORA-06550: line 18, column 10:
PL/SQL: ORA-22806: not an object or REF
ORA-06550: line 15, column 9:
PL/SQL: SQL Statement ignoredFor workarounds other than using single arrays per column, see Adrian Billington's article here:
http://www.oracle-developer.net/display.php?id=410
Easiest solution is one array per column:
SQL> declare
2 cursor c_t
3 is
4 select rownum col1, rownum col2
5 from dual
6 connect by rownum <= 10000;
7 type tt_t1 is table of t.col1%type index by pls_integer;
8 type tt_t2 is table of t.col2%type index by pls_integer;
9 v_t1 tt_t1;
10 v_t2 tt_t2;
11 begin
12 open c_t;
13 loop
14 fetch c_t bulk collect into v_t1,v_t2 limit 1000;
15 exit when v_t1.count = 0;
16 forall i in 1 .. v_t1.count
17 insert into t
18 (col1,col2)
19 values
20 (v_t1(i), v_t2(i));
21 end loop;
22 end;
23 /
PL/SQL procedure successfully completed.
SQL> Best solution would have been a single piece of SQL:
SQL> insert into t
2 (col1,col2)
3 select rownum col1, rownum col2
4 from dual
5 connect by rownum <= 10000
6 /
10000 rows created.
SQL>
Similar Messages
-
PROBLEM With my procedure (BULK COLLECT)
This s my code
CREATE OR REPLACE PROCEDURE BULK_COLLECT_tipo_per IS
TYPE T_ARRAY_TAB IS TABLE OF tipo_per_22%ROWTYPE
INDEX BY PLS_INTEGER;
T_ARRAY_COL T_ARRAY_TAB;
cursor CUR is
SELECT CIF_ID,
MAX(C1) CL_ORI,
MAX(C2) F_COTI,
MAX(C3) EX_ORI,
MAX(C4) F_EX_MAX
FROM (SELECT /*+ PARALLEL(C,8) */
C.CIF_ID,
MAX(NVL(DECODE(CANAL_ORIGEN, 'INDIRECTO', '1'),
DECODE(CANAL_ORIGEN, 'DIRECTO', '0'))) C1,
NULL C2,
NULL C3,
NULL C4
FROM DBM_PHOTO_POLARIS C
GROUP BY CIF_ID
UNION
SELECT DISTINCT /*+ PARALLEL(C,8) */ C.ID CIF_ID,
NULL C1,
MAX(FECHA_PRESU) C2,
NULL C3,
NULL C4
FROM EMI_PRESU_SOLIC@POLCP C
WHERE FECHA_PRESU > SYSDATE - 730
GROUP BY ID
UNION
SELECT /*+ PARALLEL(C,8)*/
C.CIF_ID,
NULL C1,
NULL C2,
MAX(NVL(DECODE(MAX_BAJA_INDIRECTO, 'S', '1'),
DECODE(MAX_BAJA_DIRECTO, 'S', '0'))) C3,
MAX(FECHA_PROCESO) C4
FROM MX_EX_CLIENTES_5AÑOS C
WHERE FECHA_PROCESO > SYSDATE - 1825
AND (MAX_BAJA_INDIRECTO = 'S' OR MAX_BAJA_DIRECTO = 'S')
GROUP BY CIF_ID)
GROUP BY CIF_ID;
BEGIN
OPEN CUR;
LOOP
FETCH CUR BULK COLLECT
INTO T_ARRAY_COL LIMIT 100;
FORALL I IN 1 .. T_ARRAY_COL.COUNT
INSERT INTO TIPO_PER_2
(CIF_ID , CL_ORI,F_COTI ,EX_ORI ,F_EX_MAX)
VALUES
(T_ARRAY_COL(i).CIF_ID,
T_ARRAY_COL(i).CL_ORI,
T_ARRAY_COL(i).F_COTI,
T_ARRAY_COL(i).EX_ORI ,
T_ARRAY_COL(i).F_EX_MAX);
EXIT WHEN CUR%NOTFOUND;
END LOOP;
COMMIT;
CLOSE CUR;
END;
And this is the errors...
Compilation errors for PROCEDURE MARKETING.BULK_COLLECT_TIPO_PER
Error: PLS-00436: implementation restriction: cannot reference fields of BULK In-BIND table of records
Line: 58
Text: (T_ARRAY_COL(i).CIF_ID,
Error: PLS-00382: expression is of wrong type
Line: 58
Text: (T_ARRAY_COL(i).CIF_ID,
Error: PLS-00436: implementation restriction: cannot reference fields of BULK In-BIND table of records
Line: 59
Text: T_ARRAY_COL(i).CL_ORI,
Error: PLS-00382: expression is of wrong type
Line: 59
Text: T_ARRAY_COL(i).CL_ORI,
Error: PLS-00436: implementation restriction: cannot reference fields of BULK In-BIND table of records
Line: 60
Text: T_ARRAY_COL(i).F_COTI,
Error: PLS-00382: expression is of wrong type
Line: 60
Text: T_ARRAY_COL(i).F_COTI,
Error: PLS-00436: implementation restriction: cannot reference fields of BULK In-BIND table of records
Line: 61
Text: T_ARRAY_COL(i).EX_ORI ,
Error: PLS-00382: expression is of wrong type
Line: 61
Text: T_ARRAY_COL(i).EX_ORI ,
Error: PLS-00436: implementation restriction: cannot reference fields of BULK In-BIND table of records
Line: 62
Text: T_ARRAY_COL(i).F_EX_MAX);
Error: PLS-00382: expression is of wrong type
Line: 62
Text: T_ARRAY_COL(i).F_EX_MAX);
Error: PL/SQL: ORA-22806: not an object or REF
Line: 58
Text: (T_ARRAY_COL(i).CIF_ID,
Error: PL/SQL: SQL Statement ignored
Line: 55
Text: INSERT INTO TIPO_PER_2
i try to solve this errors but i cant....help pleaseHow about replacing your insert with following
INSERT INTO TIPO_PER_2
VALUES
T_ARRAY_COL(i);
I USED YOUR SUGESTION BUT ....
Compilation errors for PROCEDURE MARKETING.BULK_COLLECT_TIPO_PER
Error: PL/SQL: ORA-00947: not enough values
Line: 63
Text: INSERT INTO TIPO_PER_2
Error: PL/SQL: SQL Statement ignored
Line: 63
Text: INSERT INTO TIPO_PER_2
I NOT UNDERSTAND WHAT IS THE RESTRICTION IN MY CASE?
THANKS--------------------------------------------------------------------- -
Hello!
I'm having problems with the Korg Legacy Collection in the new version of Garageband in Mavericks. When I try to load the AU, I get this error message:
"Failed to load Audio Unit, please contact the manufacturer for an updated version or further assistance. (-10110)"
They seem to work fine in Ableton Live 8 Lite, also running in Mavericks. So, I think it is something with Garageband. In addition, Korg updated to 64bit early last year.
Anyone know how to fix the problem? Or is Korg or Apple's problem?
Thanks.They seem to work fine in Ableton Live 8 Lite, also running in Mavericks. So, I think it is something with Garageband. In addition, Korg updated to 64bit early last year.
Have you checked, if you have the newest 64-bit version installed? There may still be an older version sitting around - check both plug-in folders, the one in your Home folder and the one in the system library:
~/Library/Audio/Plug-Ins/
/Library/Audio/Plug-Ins/
Some programs may still be able to use 64-bit plug-ins, but GarageBand will not use them: http://support.apple.com/kb/TS5249 -
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) -
Problem with an array (Array index out of bounds)
Hey guys, i have a problem with an array, i just want to print a few things but it won't let me because of this error, here's my code
public static void MosDat()
int i;
for(i=0 ; i<n ; i++);
Client [ i ].print1();
Client [ i ].print2();
return;
}//MosDat
where "n" is a global variable, and client is .
I pretty much know how it woks, so i tried it like this and gave "n" the value of "1":
public static void MosDat()
int i;
for(i=0 ; i<n ; i++);
Client [ 0 ].print1();
Client [ 0 ].print2();
return;
}//MosDat
the printing methods i created worked prefectly when i tried it like that... so i really don't know where the problem could be... thanks anyone who can help me.for(i=0 ; i < n ; i++);I spy with my little eye,
one semicolon too many.Well-spotted. ;-)Practicing on those weird question marks is my secret training. -
Performance Problems with intrinsic array multiplikation in Fortran with Su
Hello,
I found a serious performance problem in my application with intrinsic array multiplikation. Therefore I wrote a small test program to check if this a general problem or only exists in my code.
The test program (as seen below) was compiled with Sunstudio12 und Solaris 5.10 on an 64 bit Amd Opteron Machine. First with high optimization (f95 -fast -g), and the second time with out optimization (f95 -O0 -g). In both cases the intrinsic array mupltiplication had a lot of tlb and L2 cache misses (I made some test with the performance analyzer) which caused a huge increase in computation time compared to the explicit loop. In the ideal case the compiler should create the nested loops from the intrinsic statement and both functions should use exactly the same computing time.
I also tried compiling with Studio11, the problem also occurs there. Maybe its a compiler bug but I'm not sure.
Greetings
Michael Kroeger
program test
!Test zur Ausfuehrung einer einfachen array Multiplikation
implicit none
real,dimension(:,:,:),pointer::check1,check2
integer i,j,k,ni,nj,nk,status
ni=1000
nj=1000
nk=100
allocate(check1(0:ni,0:nj,0:nk),STAT=status)
write(*,*)status
allocate(check2(0:ni,0:nj,0:nk),STAT=status)
write(*,*)status
check1(i,j,k)=25
check2(i,j,k)=25
call intrinsic_f(check1)
call withloop(check2,i,j,k)
deallocate(check1,check2)
contains
subroutine intrinsic_f(check1)
real, dimension(:,:,:),pointer::check1
check1=check1*5
end subroutine intrinsic_f
subroutine withloop(check2,ni,nj,nk)
real, dimension(:,:,:),pointer::check2
integer i,j,k,nk,nj,ni
do k=0,nk
do j=0,nj
do i=0,ni
check2(i,j,k)=check2(i,j,k)*5
enddo
enddo
enddo
end subroutine withloop
end programI will try the large pages, but what me puzzles is, that the intrinsic function has cache misses, but the loop function has not. All documentation says, that the compiler would expand the intrinsic function into 3 nested loops, so that both functions should be essential the same (and the compiler says it has created 3 loops from the intrinsic). Since they are not the same, this is a severe problem.
I have a fairly large code for high performance simulations, and this intrinsic functions are a significant bottle neck. If it is not a compiler bug, I would have to rewrite all intrinsic functions into loops. -
I got a problem with cloning a Point[] Array.
for example i have 2 Point-Arrays declared as Membervariables:
Point[] array1;
Point[] array2;then in the constructor i filled array1 with random Point Objects
and then
array2 = (Point[])(array1.clone());then i, for example, add 5 to the x-coordinate of every Point in array2.
for (int i = 0; i < array2.length; i++)
array2.x += 5;
But array1's Point objects are also changed when i do that!
Shouldnt clone copy the whole array and leave no connection between them?
Thanks in advanceso i made a method copyArray where every point object's x and y value is copied into the new Array's new Point Object, but as it seems that isnt where the error comes from.
(That method works fine, the arrays are identical after that, but shouldnt reference to the same chunk of memory, right?)
then i run the following method on array2
array2 = (Point[])addFive(array2);
Point[] addFive(Point[] array)
array[0].x += 5;
return line;
}Hence array2[0].x is instead of, e.g., zero 5
But array1[0] .x is 5 intead of 0 too!
Where's the mistake, where's the reference left? =X (and how do i fix it? :)) -
Problems with the CS6 Master Collection disk image (invalid checksum)
I have problems downloading the trial for CS6 Master Collection for MacOS X.
I've tried downloading using the Download Assistant, both as a privileged and an unprivileged user, and have also tried the direct download as both privileged and unprivileged. Each time I've waited until the download was complete before trying to install, but every time the disk image fails to open, complaining of an "invalid checksum".
I've tried mounting the disk image without validating the checksum, but while I can then run the installer, the installation fails due to lack of privileges – again, this is regardsless of user privileges. I've also tried deleting the preferences and cache-files for Download Assistant, but to no avail.
Can anyone confirm that the english version of the CS6 Master Collecion disk image is working and can be mounted without error on MacOS X 10.7? I have now downloaded and re-downloaded the disk image at least eight times, and while I have a fast Internet-connection, this is getting tedious.I just downloaded the DMG from Adobe.com using the trial and it mounts fine. I was able to start the installation.
I did not get a checksum error or any other error.
However, I found these instructions in another thread:http://forums.adobe.com/message/4370247#4370247
<quote>
If the download is completed in the Adobe Download Assistant you can temporarily turn off the feature to verify the checksum. The following steps will allow you to temporarily disable this feature:
Open the Disk Utility located in Applications/Utilities
Go under the Disk Utility menu and select preferences
Deselect the option to verify checksums
Try mounting your DMG file
I would recommend turning this feature back on though after the installation is complete. Also if you notice this happening on additional files it can indicate a problem with your Internet connection.
</quote>
Could you try these steps and let us know if you were able to proceed. -
Problem with building array inside a case statement
I have a problem with my build array.
Iam trying to construct a build array when ever I see a new element in my parent array during run time.
Using shift registers, search array and If- case structure, inside a while loop. Iam implementing this logic (I dont want to use Event structure).
Iam able to achieve most part of it, but have a problem with the first element. Except the first element of my parrent array, every thing is appending in to the build array. Can any one look at my vi and suggest me what Iam doing wrong here.
Thank you
Attachments:
debug.vi 12 KBI think you need to replace the tunnels (carrying the array) in the for loop with a shift register.
Lynn -
Problems with an array (attachMovie)
I've created a 20 x 20 grid of objects (openCircles). They're set to 'alpha = 0', then 'alpha = 100' on rollover. This works for all of them except for the final one at the coordinate T,20 in the bottom right corner, as I'm not able to rollover over it. To test whether or not they all existed, I set them all to an initial value of 'alpha = 100' and they did all appear, but I'm still unable to rollover the one at T20.
The other problem is that when an 'openCircle' is clicked, a 'filledCircle' (set up as another grid of invisible objects in the same place) is supposed to appear in its place. That doesn't happen. All of the objects are created and exist, using attachMovie, so it's maybe due to some logical error. See code:-
I'd be grateful for any help. Many thanks.
stop();
//The purpose of this experiment is to locate a trap of oil. Only 30 exploration holes are allowed.
//Use the grid coordinate to locate the borehole and then plot the depth
//Drilled is set to false in the 1st(previous) frame
//Rolling over a grid coordinate will reveal a borehole (open circle).
//Click on the borehole (open circle) to start drilling
//open circle will be removed
//drilled is set to true for that coordinate
//filled circle will appear in its place
//set up variables for grid array of open circles (undrilled) and closed circles (drilled)
var spacing:Number = 5.75;
var cols:Number = 20; // number of columns in grid
var rows:Number = 20; // number of rows in grid
var leftMargin:Number = 154;
var topMargin:Number = 169;
var currentRow:Number = 0;
var currentCol:Number = 0;
for (i=1; i<=rows; i++) {
for (j=1; j<=cols; j++) {
current = attachMovie("openCircle_mc", "openCircle_mc"+i+"_"+j,getNextHighestDepth());
current._x = leftMargin + ((i-1) * (spacing + current._width));
current._y = topMargin + ((j-1) * (spacing + current._height));
current2 = attachMovie("filledCircle_mc", "filledCircle_mc"+i+"_"+j, getNextHighestDepth());
current2._x = leftMargin + ((i-1) * (spacing + current2._width));
current2._y = topMargin + ((j-1) * (spacing + current2._height));
//open circle initially invisible, then visible on rollOver
current._alpha = 0;
//filled circles initially invisible
currentCol2=(current2._x-leftMargin)/(spacing + current2._width);
currentRow2=(current2._y-topMargin)/(spacing + current2._height);
if (drilled[currentCol,currentRow]==true){
current2._alpha = 100;
}else{
current2._alpha=0;
//open circle visible on rollover
current.onRollOver = function() {
this._alpha = 100;
currentCol=(this._x-leftMargin)/(spacing + current._width);
trace("current column ="+currentCol);
currentRow=(this._y-topMargin)/(spacing + current._height);
trace("current row ="+currentRow);
if (drilled[currentCol,currentRow]==false){
trace("Click on the grid point to drill at "+rowLabel[currentRow]+","+colLabel[currentCol]);
}else{
trace("Click on the grid point to review the core at "+rowLabel[currentRow]+","+colLabel[currentCol]);
} //end 'if-else'
//open circle invisible on rollout
current.onRollOut = function() {
this._alpha = 0;
trace("No grid point selected")
//click on open circle - variable drilled becomes true
current.onRelease=function(){
drilled[currentCol,currentRow]=true;
trace(drilled[currentCol,currentRow]);
this.removeMovieClip();
This is an image of the grid showing an 'openCircle' visible when rolled overThanks for the explanation. That was very helpful.
However, I am having problems with the variables. I did as you suggested though and extended the (grid) layer, but had to create a separate keyframe for the code layer, as that code had to execute first before moving into the next frame. See below (I've also attached the fla, but if you need any more information, please let me know):
In frame 2 of the animation, if an open circle mc is clicked, that mc is deactivated (removed), drilled becomes true for that coordinate, a filled circle becomes visible in its place and you enter another frame(3) (this is currently just a test frame), to later be used to implement the drilling animation for a clicked coordinate.
It all seems to be working as it should, until the open circle is clicked and you enter frame 3. See below:
All the instances of the openCircle mc's are still active in frame 3, so I guess I need to use removeMovieClip(). I know how to do that for a single instance, but howdo I execute that if they're in an array?
I also don't want any instances of the filledCircles from frame 2 to be visible in frame 3. I'm not sure how to hide them temporarily in frame 3 and then have them visible again in frame 2?
When I go back to frame 2 (using a back button), all of the filled circles in the array are visible, whereas only the ones that have been previously clicked (drilled = true) should be visible. However, when I return to frame 2 and do a trace to find out which coordinates are set to true/false, it seems that a whole row is now set to (drilled = true), whereas it should just be a single coordinate set to true. Oddly enough, the variable seems to working properly in frame 2 when the code is first executed, but then when I go to frame 3 and then re enter frame 2, it's not working as it should do. Below is the trace code that I've used:
if (drilled[currentCol,currentRow] == false) {
trace("Click on the grid point to drill at " + rowLabel[currentRow] + "," + colLabel[currentCol]);
} else {
trace("Click on the grid point to review the core at " + rowLabel[currentRow] + "," + colLabel[currentCol]);
If you could help, I'd be very grateful! Very many thanks.
http://synergese.co.uk/boreholes15.fla
Message was edited by: Pippa01
Sorry, Although the original question was correct, I've just unmarked it as correct. Maybe, I should have started it as a new thread? -
i have problem with my program i implement saveing method
but when i open file( game.txt) it does not update my board it return same postion every time i same game
chess class Jframe(Jfilechooser)(call an board array)---->
Gui Japplet class( call and board array------------>
Board(class Jpanel have board array)
it does not update borad array
it just call it once in start and return the same value every time
classChess(){
ChessPlayer java = new ChessPlayer();
public void saveData()
File file = null;
JFileChooser fc = new JFileChooser();
fc.setCurrentDirectory(new File("."));
fc.setDialogTitle("Save Text As...");
int returnVal = fc.showSaveDialog(this);
if (returnVal == JFileChooser.APPROVE_OPTION)
{ file = fc.getSelectedFile();
try
{ PrintWriter out =
new PrintWriter(
new BufferedWriter(
new FileWriter(file)));
//while for all the moves in the array>
for (int i=0;i<120;i++)
out.println( java.saveDAta(i));
out.println("\n");
out.close();
catch (IOException e) {
// Some error has occured while trying to read the file.
// Show an error message.
JOptionPane.showMessageDialog(this,
"Sorry, some error occurred:\n" + e.getMessage());}
public static void main(String[] args) {
JPopupMenu.setDefaultLightWeightPopupEnabled(false);
JFrame frame = new ChessMan();
Container content = frame.getContentPane();
ChessMan f = new ChessMan();
//japplet
ChessPlayer javaAppletication = new ChessPlayer();
javaAppletication.init();
javaAppletication.start();
}Gui
[Gui]
class Gui{
int [] board = new int [120];
int [] boardcolor = new int [120];
Board check = new Board(this,false);
{public void init()
{ // Create new Border
contentPane = getContentPane();
bboard = new Board(this,false);
public String saveDAta(int i)
String l=check. save(i);
return (l);
and finally board Jpanel
class Board extends JPanel
{public Board (JApplet useapplet,boolean bool) {
setup();
{ public String save(int i)
{ String l;
if (color==1)
{System.out.println("notpossible");}
l = board[i]+"$"+boardColor;
return l;
thanks guysMy Jframe
public class ChessMan extends JFrame implements ActionListener, WindowListener {
JMenuItem saveItem, loadItem, copyItem, pasteItem;
JMenu fileMenu, editMenu;
JMenuBar bar;
ChessPlayer java = new ChessPlayer();
public ChessMan() { setTitle("CHESS PLAYER GAME" );
setSize(200,300);
System.out.println("\n"); }
addWindowListener(new java.awt.event.WindowAdapter()
{ public void windowClosing(java.awt.event.WindowEvent e)
{ System.exit(0); } });
JMenu fileMenu = new JMenu("File");
saveItem = new JMenuItem("Save");
saveItem.setActionCommand("save");
saveItem.setAccelerator( KeyStroke.getKeyStroke("ctrl S"));
saveItem.addActionListener(this);
fileMenu.add(saveItem);
loadItem = new JMenuItem("Load");
loadItem.setActionCommand("load");
loadItem.setAccelerator( KeyStroke.getKeyStroke("ctrl L"));
loadItem.addActionListener(this);
fileMenu.add(loadItem);
JMenu editMenu = new JMenu("About");
copyItem = new JMenuItem("Help");
copyItem.setActionCommand("Help");
copyItem.setAccelerator( KeyStroke.getKeyStroke("ctrl H"));
copyItem.addActionListener(this);
editMenu.add(copyItem);
pasteItem = new JMenuItem("Exit");
pasteItem.setActionCommand("Exit");
pasteItem.setAccelerator( KeyStroke.getKeyStroke("ctrl E"));
pasteItem.addActionListener(this);
editMenu.add(pasteItem);
JMenuBar bar = new JMenuBar();
bar.add(fileMenu);
bar.add(editMenu);
setJMenuBar(bar);
setVisible(true);
setLocation(0,0);
public void actionPerformed(ActionEvent e) {
JMenuItem item = (JMenuItem)e.getSource();
String ac = item.getActionCommand();
System.out.println("ac = "+ ac);
// you can use action commands to track menu item events
if(ac.equals("save"))
{System.out.println("ac.equals(\"save\") = "+ ac.equals("save"));
saveData();}
if(ac.equals("load"))
{System.out.println("ac.equals(\"load\") = "+ ac.equals("load"));
loadingData();}
if(ac.equals("Help"))
{System.out.println("ac.equals(\"load\") = "+ ac.equals("Help"));
if(ac.equals("Exit"))
{System.out.println("ac.equals(\"load\") = "+ ac.equals("Exit"));
Exit();}
// the event origin
if(item == saveItem)
System.out.println("item = "+ item.toString().substring
(item.toString().indexOf("text=") + 5, item.toString().lastIndexOf("]")));
if(item == loadItem)
System.out.println("item = "+ item);
// System.out.print( java.saveDAta());
public void saveData()
File file = null;
JFileChooser fc = new JFileChooser();
fc.setCurrentDirectory(new File("."));
fc.setDialogTitle("Save Text As...");
int returnVal = fc.showSaveDialog(this);
if (returnVal == JFileChooser.APPROVE_OPTION)
{ file = fc.getSelectedFile();
try
{ PrintWriter out =
new PrintWriter(
new BufferedWriter(
new FileWriter(file)));
//while for all the moves in the array>
for (int i=0;i<120;i++)
out.println( java.saveDAta(i));
out.println("\n");
out.close();
catch (IOException e) {
// Some error has occured while trying to read the file.
// Show an error message.
JOptionPane.showMessageDialog(this,
"Sorry, some error occurred:\n" + e.getMessage());}
public void loadingData()
File loadfile = null;
JFileChooser fc = new JFileChooser();
fc.setDialogTitle("OpenFile...");
fc.setCurrentDirectory(new File("."));
int returnVal = fc.showOpenDialog(this);
if (returnVal == JFileChooser.APPROVE_OPTION)
{ loadfile = fc.getSelectedFile();
try
{ PrintWriter out =
new PrintWriter(
new BufferedWriter(
new FileWriter(loadfile)));
//while for all the moves in the array>
out.println("�����������������");
out.println("\n");
out.close();
catch (IOException e) {
// Some error has occured while trying to read the file.
// Show an error message.
JOptionPane.showMessageDialog(this,
"Sorry, some error occurred:\n" + e.getMessage());}
public void Exit()
System.exit(0);
public static void main(String[] args) {
JPopupMenu.setDefaultLightWeightPopupEnabled(false);
JFrame frame = new ChessMan();
Container content = frame.getContentPane();
ChessMan f = new ChessMan();
f.setLocation(300,300);
f.show();
ImageIcon customImageIcon = new ImageIcon("ac516.gif");
Image customImage = customImageIcon.getImage();
frame.setIconImage(customImage);
//japplet
ChessPlayer javaAppletication = new ChessPlayer();
// i could not put my constructor here <Static>
javaAppletication.init();
javaAppletication.start();
// for(int i=0; i < .length(); i++)
content.add(javaAppletication, BorderLayout.CENTER);
frame.getContentPane();
javaAppletication.setBackground (Color.black);
frame.setVisible(true);
frame.show();
frame.pack(); // invokes getPreferredSize()
// invokes paint();
public void windowOpened(WindowEvent e) {
fileMenu.doClick();
public void windowClosing(WindowEvent e) {}
public void windowClosed(WindowEvent e) {}
public void windowIconified(WindowEvent e) {}
public void windowDeiconified(WindowEvent e) {}
public void windowActivated(WindowEvent e) {}
public void windowDeactivated(WindowEvent e) {}
My Japplet Class
class ChessPlayer extends JApplet
implements ActionListener,MouseListener
int c;
//Reference for new Board
Board bboard;
//Reference for Button
JButton newgame,undo,onePlayer,TwoPlayer,NormalPieceSet,
FuunyPieceSet,startButton,stopButton;
//Reference for Label
JLabel message;
//Reference for new Panel
JPanel buttonpanel2,buttonpanel,messagepanel,buttonpane;
//Initilize the Applet
DemoAnimation Demo;
Container contentPane;
Board check = new Board(this,false);
int [] board = new int [120];
int [] boardcolor = new int [120];
public void init()
// Create new Border
contentPane = getContentPane();
check = new Board(this,false);
bboard = new Board(this,false);
bboard.setPreferredSize(new Dimension(500,400));
bboard.setBorder(BorderFactory.createLineBorder( Color.red ) );
contentPane.add(bboard);
final ImageIcon image = new ImageIcon("ac516.gif");
bboard.addMouseListener(this);
bboard.setBackground (Color.black);
BorderLayout text=new BorderLayout();
Demo = new DemoAnimation( this );
Demo.setPreferredSize(new Dimension(160, 500));
contentPane.add(Demo);
// Set Background Black
contentPane.setBackground (Color.black);
contentPane.setLayout (new BorderLayout (50,50));
// set new Font "TimesRoman"
Font Text= new Font("TimesRoman", Font.BOLD,15);
//panel to keep buttons together
buttonpanel=new JPanel();
buttonpanel.setLayout(new GridLayout(1,2,6,0));
buttonpanel.add(newgame=new JButton("new game",image));
newgame.addActionListener(this);
buttonpanel.add(undo=new JButton("undo"));
undo.addActionListener(this);
// Create new Choice Panel
buttonpanel2 = new JPanel();
buttonpanel2.setLayout(new GridLayout(6,1,0,10));
buttonpanel2.add(onePlayer=new JButton("Change Colour"));
onePlayer.addActionListener(this);
buttonpanel2.add(TwoPlayer=new JButton("Statistic"));
TwoPlayer.addActionListener(this);
buttonpanel2.add(NormalPieceSet=new JButton("Quit"));
NormalPieceSet.addActionListener(this);
buttonpanel2.add(FuunyPieceSet=new JButton("Change Piece"));
FuunyPieceSet.addActionListener(this);
buttonpanel2.add(startButton = new JButton("Start Animation"));
startButton.addActionListener(this);
buttonpanel2.add(stopButton = new JButton("Stop Animation"));
stopButton.addActionListener(this);
contentPane.add(BorderLayout.WEST, demopanel);
// Set Font For Text Message
setFont(Text);
messagepanel=new JPanel();
messagepanel.setBorder(BorderFactory.createLineBorder( Color.red ) );
messagepanel.setBackground(Color.black);
// essagepanel.setLayout(new GridLayout(1,1));
// Create new Label
messagepanel.add(message = new JLabel());
setMessage("Welcome");
// Postion panels in Layout
contentPane.add("North",buttonpanel);
contentPane.add("East",buttonpanel2);
contentPane.add ("South",messagepanel);
contentPane.add ("Center",bboard);
contentPane.add("West",Demo);
public void mouseReleased(java.awt.event.MouseEvent e)
{ statuseChange();}
public void mouseClicked(java.awt.event.MouseEvent e)
public void mouseEntered(java.awt.event.MouseEvent e) {
public void mouseExited(java.awt.event.MouseEvent e) {
public void mouseMoved(java.awt.event.MouseEvent e) {
statuseChange();
public void mousePressed(java.awt.event.MouseEvent e)
{statuseChange();
public void actionPerformed(ActionEvent e)
Object source=e.getSource();
if (source == newgame)
{ bboard.newgame();
yellow();
setMessage("try again");
pause(100);
c=add(c);
else if (source==undo)
yellow();
bboard.undo();
setMessage("Undo");
else if (source== TwoPlayer )
//bboard.setup();
yellow();
setMessage("Starting new Game");
setMessage("Change Color");
else if(source == FuunyPieceSet)
{yellow();
setMessage("game played::" +c);
bboard.PieceChange();
else if(source == NormalPieceSet)
{yellow();
setMessage("GOODBYE");
destroy();
else if(source == startButton)
{yellow();
setMessage("Start Animation");
Demo.start();
else if(source == stopButton)
{yellow();
setMessage("Stop Animation");
Demo.stop();
else if(source == onePlayer)
{setMessage("");
bboard.changePiece();
setMessage("Change Color");
public void statuseChange()
switch (bboard.gameStatus())
case 1:
red();
setMessage("White won");
break;
case 2:
red();
setMessage("Black won");
break;
case 3:
red();
setMessage("DRAW");
Demo.changeAnimation(2);
break;
case 4:
white();
setMessage("White Turn");
Demo.changeAnimation(1);
break;
case 5:
green();
setMessage("Black turn");
Demo.changeAnimation(3);
break;
case 6:
red();
setMessage(" Check");
Demo.changeAnimation(4);
break;
case 7:
red();
setMessage("Check");
Demo.changeAnimation(4);
break;
case 8:
yellow();
setMessage("I Hope you enjoyed it");
public String saveDAta(int i)
String l=check.save(i);
return (l);
public void LoadData(String load)
public void setMessage(String s)
/*The string s will be shown to the user.*/
Font Text= new Font("Courier", Font.BOLD,30);
message.setText(s);
message.setFont(Text);
public void white()
{ message.setForeground(Color.white);}
public void green()
message.setForeground(Color.green);
public void red()
message.setForeground(Color.red);
public void yellow()
message.setForeground(Color.yellow);
// pause method
void pause(int time)
try {Thread.sleep(time);
} catch (InterruptedException e)
// Create new inset Object
public Insets getInsets()
return new Insets(50,220,150,200);
public void destroy()
contentPane.remove(buttonpanel2);
contentPane.remove(buttonpanel);
contentPane.remove(bboard);
contentPane.repaint();
Demo.start();
public int add(int x)
{ int b=x+1;
return b;
}tanx man i dont the other two because they are to long
my is when i open jframe
i think Japplet and Jframe can not commuinicate to each other -
Aperture performance problems with Lacie array
I have an iMac with 32GB memory and, due to space requirements, an external LaCie 2Big2 disk array, with 2 x 6GB disks in a RAID-1 (mirroring) configuration and attached via USB3.
This has in the past worked extremely quickly. The iMac has a 1TB Fusion drive.
In recent weeks something has changed. It now takes about a minute for Aperture to start up and open a library of photographs. It used to take 3-4 seconds. In the meantime I get a spinning beachball, but can happily use other applications. The manager software for the array says it's working fine. I am more than a little puzzled and frustrated.
I'd appreciate suggestions on how to track down the root cause of the problem, and then how to fix it!
I am on the latest version of Mavericks, with no outstanding software updates.Dear Leonie
Thank you very much for your reply. Here are the answers:
What exactly has changed?
I don't know exactly. Something changes every day on a working system! However I have not installed any new software or hardware.
Did this start after a software update?
Not that I am aware of. In the last 30 days my only software updates have been Epson driver software, a digital RAW compatibility update to Aperture and a Safari update. The Aperture update does not apply to any of the equipment I have.
Or after you moved the library to the Lacie Array?
No. I should have been clearer. The Lacie array was installed several months ago and has been working well.
Did you import new photos?
I import new photos almost every day. However I have several photo libraries and this problem occurs across all of them, even the ones unchanged for months or years.
Did you enable Photo Stream?
No
Does Aperture launch more quickly, if you hold down the Shift key while Aperture is launching? This will defer the generation of previews.
If Aperture is launching more quickly this way, you may have imported a corrupted video or image file, that you need to find and to remove.
No. I have just tested this.
Other possible reasons:
Check the file system on your array. If the filesystem is not MacOS Extended (Journaled), you may have problems with ambigious filenames.
The file system is MacOS Extended (Journaled)
Do you have Photo Stream enabled? Aperture may be hanging while trying to load photos from My Photo Stream.
No, Photo Stream is not enabled.
Thank you again for your help. -
Help: Problem With Seperate Arrays Overwriting Each Other!
Hi,
I have this function that randomly allocates free time to coursework blocks. This method works because I have tested numerous times and it always prints of different allocations of time every time its called.
The problem that I have is that I have this method that called this method twice to store each different call within a separate ArrayList.
When I make the first call the block are assigned to the array fine. But when I called it a second time to store the next result within a separate Array the first Array result are overwritten . Any body have any idea why this is happening, I have asked numerous friends and even my supervisor and he can't find anything wrong with it. Any help would be very helpful...
Code:
public ArrayList<CourseworkTimeBlock> courseworkAllocation(ArrayList timetable, ArrayList<CourseworkTimeBlock> cCourseworkBlocks){
// Calculates and stores the free "time blocks" that can be used
// to allocate coursework.
ArrayList<Integer> freeTimeBlocks = new ArrayList<Integer>();
freeTimeBlocks = freeBlocks(timetable);
Random random = new Random();
ArrayList<CourseworkTimeBlock> courseworkTimeBlocks = new ArrayList<CourseworkTimeBlock>();
for(int i = 0; i < cCourseworkBlocks.size(); i++){
int allocateTo = -100;
int randomPoint = 0;
CourseworkTimeBlock courseworkBlock;
courseworkBlock = cCourseworkBlocks.get(i);
while(allocateTo < 0){
randomPoint = random.nextInt(freeTimeBlocks.size());
allocateTo = freeTimeBlocks.get(randomPoint);
courseworkBlock.setBlockAllocated(allocateTo);
courseworkTimeBlocks.add(courseworkBlock);
freeTimeBlocks.set(randomPoint, -1 );
for( int i = 0; i < courseworkTimeBlocks.size(); i++){
System.out.println("CW: " + courseworkTimeBlocks.get(i).getBlockAllocated());
return courseworkTimeBlocks;
}These are the calls I make in a separate method:
ArrayList<CourseworkTimeBlock> courseworkTimetableOne = new ArrayList<CourseworkTimeBlock>();
ArrayList<CourseworkTimeBlock> courseworkTimetableTwo = new ArrayList<CourseworkTimeBlock>();
courseworkTimetableOne = courseworkAllocation(fixedTimetable, courseworkBlocks);
courseworkTimetableTwo = courseworkAllocation(fixedTimetable, courseworkBlocks);Edited by: ChrisUK on Mar 1, 2008 9:11 AMChrisUK wrote:
Thanks for the reply.
In terms of the:
courseworkTimetableOne = courseworkAllocation(fixedTimetable, courseworkBlocks);
courseworkTimetableTwo = courseworkAllocation(fixedTimetable, courseworkBlocks);They are both supposed to pass in the fixedTimetable object, the reason being is that this is a timetable and is passed through in order to find it "free time" blocks.
The courseworkTimetableOne and courseworkTimetableTwo are just different representations of how the coursework time blocks could be allocated to that given fixedtimetable. You're calling the same method with the same parameters, so both references are going to point to the same object. It's the same as if you just replaced the second line with courseworkTimetableTwo = courseworkTimetableOne.
You've got two references pointing to the same object.
The fact that you do this first:
ArrayList<CourseworkTimeBlock> courseworkTimetableOne = new ArrayList<CourseworkTimeBlock>();
ArrayList<CourseworkTimeBlock> courseworkTimetableTwo = new ArrayList<CourseworkTimeBlock>();means nothing. You create the two new ArrayLists, but then this
courseworkTimetableOne = courseworkAllocation(fixedTimetable, courseworkBlocks);
courseworkTimetableTwo = courseworkAllocation(fixedTimetable, courseworkBlocks);gets rid of them. The new ArrayLists you just created are lost.
Remember when you assign to a reference variable such as courseworkTimetableOne =, all that does is copy a reference so now courseworkTimetableOne is pointing to the same object that whatever is on the RHS is pointing to.
If you want two different lists, then either courseworkAllocation should make a copy of its internal list and return that, or else the caller should do it.
>
By the way what does "SSCCE" mean?[http://mindprod.com/jgloss/sscce.html|http://mindprod.com/jgloss/sscce.html]
[http://homepage1.nifty.com/algafield/sscce.html|http://homepage1.nifty.com/algafield/sscce.html] -
Problem with nested loops in collections
Hi All,
I am trying to insert data captured on a form(elements) into a database table thru a view.
I have a process for insert that looks like..
for x in (select * from htmldb_collections where collection_name = 'PARTY')
loop
for i in 1..50
insert into imds_part_num (mdb_nr,part_nr) values(:P5_MDB_NR,to_number(x.c00(i)));
end loop;
end loop;
the error is 'C00' must be declared.
I have no error when i tried to insert with process like this....
for x in (select * from htmldb_collections where collection_name = 'PARTY')
loop
insert into imds_part_num (mdb_nr,part_nr) values(:P5_MDB_NR,to_number(x.c001));
end loop;
i have 50 items on my form page . i added members into the collection like this,
htmldb_collection.add_member(p_collection_name => 'PARTY',
p_c001 => :P5_ENTWICKLUNGSNUMMER,
p_c002 => :P5_GEHAEUSE_PT,
p_c003 => :P5_GEHAEUSE,
p_c004 => :P5_PRESSTEIL,
p_c005 => :P5_MAEL ,
p_c006 => :P5_KGE_WNZ......, before the process mentioned above....
I see the collection as a VARRAY.
Cud somebody point me the mistake, or a workaround for this.
Thank you.Chalamalasetty,
When you have -
x.c00(i)You're actually trying to access the Nth item in an array, for example if i=2 then you're trying to access the 2nd item in the c00 array.
However, your query which performs the select from htmldb_collections is not returning an array called c00, it does infact return distinct columns such as -
jes@DBTEST> desc htmldb_collections;
Name Null? Type
COLLECTION_NAME NOT NULL VARCHAR2(255)
SEQ_ID NOT NULL NUMBER
C001 VARCHAR2(4000)
C002 VARCHAR2(4000)
C003 VARCHAR2(4000)
C004 VARCHAR2(4000)
C005 VARCHAR2(4000)
C006 VARCHAR2(4000)
....... extra lines deleted .......So you would need to specify the columns individually. If you wished to do this dynamically then you would need to make your insert statement a dynamic statement and build it up as a string.
If you can explain precisely what you're trying to achieve then it will be easier to suggest alternative ways of doing it. -
Problem With Referenced Array Loading
Hi. I'm working on the final lab for my java class at the moment, and I'm to create a program which reads a file containing transaction records, stores each record as an array element, and then prints various types of reports using the array of transactions. I've created a class called Transaction which stores all the data for each transaction, and the array used in my program is of type Transaction.
I'm not having any problems in writing the program, except there's something going wrong with my attempt to write a method to load the array. The method declaration is:
* Method to accept a file from the user and load its data into an array.
* Returns the number of elements added to the array.
public static int loadArray(Transaction[] transactionArray, int size) throws ExceptionNow, I'm under the impression (and my teacher confirmed this) that arrays are passed by reference. So I'm assuming that by creating an array in my main method, passing it into loadArray(), and changing the values within the method, all the data will be present in the array within main without having to explicitly return the loaded array.
However, as soon as I try to do anything with the loaded array, I get a NullPointerException. I opened up the debug mode, set a breakpoint in my main right after loadArray() is called, and it shows that every element in my array is null. I am at a loss as to why. If anyone can help me figure out why my reference array isn't staying updated as it's edited elsewhere, it would be greatly appreciated.
Here is my loadArray() code in case it would help, but there is no error in it's execution, as the same code directly in my main method works fine.
public static int loadArray(Transaction[] transactionArray, int size) throws Exception
int logicalSize = 0; // the number of transactions loaded into the array
int itemID; // the item ID involved in the transaction
int units; // the number of units in the transaction
double unitCost; // the cost of each unit in the transaction
char type; // the type of the transaction
String date; // the date of the transaction
String fileName; // the name of the user selected file
String record; // the current record in the file
Scanner file; // reads input from a user selected file
Scanner parse; // reads input from the file's current record
transactionArray = new Transaction[size]; // creates a new array for the new data
System.out.print("Please enter a file name: ");
fileName = input.nextLine();
file = new Scanner(new File(fileName));
record = file.nextLine(); // discards the initial line of headers
while(file.hasNext())
// grab the next record and parse all its data
record = file.nextLine();
parse = new Scanner(record).useDelimiter(",");
date = parse.next();
itemID = parse.nextInt();
type = parse.next().toUpperCase().charAt(0);
units = parse.nextInt();
unitCost = parse.nextDouble();
transactionArray[logicalSize] = new Transaction(date, itemID, type, units, unitCost); // loads the current transaction into the array
logicalSize++;
return logicalSize;
}Thanks!
Oh, I guess I should also add that the variable input is a global variable of type Scanner.
static Scanner input = new Scanner(System.in); // reads input from keyboardMessage was edited by:
Kristofer.WardNow, I'm under the impression (and my teacher confirmed this) that arrays are
passed by reference.Java passes references to arrays by value.
So I'm assuming that by creating an array in my main method, passing it into
loadArray(), and changing the values within the method, all the data will be present
in the array within main without having to explicitly return the loaded array.Bearing in mind my statement above, what really happens is that a reference to
the array you created is passed to loadArray() by value. What I mean by that
last bit is that your loadArray() is free to assign a reference to a completely
different array to its argument variable and the caller will not notice the change.
That's what's happening here:public static int loadArray(Transaction[] transactionArray, int size) throws Exception
// declarations of local variables
* The argument variable is now assigned a reference to a completely
* new array. When this function returns the variable the caller used to
* invoke this method will have exactly the same value it did before this
* method was invoked. Ie it will *still* refer to an array of nulls.
transactionArray = new Transaction[size];
// more stuff - that involves changing the contents of
// the newly created array, not the one the caller has
// a reference to.
return logicalSize;
}
Maybe you are looking for
-
This morning I went to go into Firefox, a message came up stating it was updating. After the update, Firefox didn't open, so I clicked on the icon and got this message. C:\Program Files (x86) Mozilla Fire\firefox.exe. The application has failed to st
-
Is there a way to create new 'To Do List' items?
My team is making a Help File for our software and it would be very helpful if the To Do List within RoboHelp 6 would allow us to customize it in such a way as to make it more suited for our needs. Thanks.
-
Iphone 4 vibration not working after upgrading to ios5
Hi, I have upgraded my iphone4 iOS from 4.3.5 to iOS5. Then onwards my phones vibration seems not working. I tried with restoring with itunes but doesn't helpful to me. Could anyone face this issue/any resolution. FYI... apart from vibration, remaini
-
Macbook Pro weak wireless signal
I recently purchased a new battery for my MacBook Pro and ever since, I've had terrible wi-fi signal. I've got an iPad, MacBook and iPhone that all have no problem connecting to the network, from all over the house, but with my MacBook Pro, I've got
-
When I click on the HD I get this big question mark on the left side of the window and when I click on the question mark it says the item cannot be found. Any ideas?