Problem with IN clause substitution in Sybase

I am experiencing a problem with IN clause substitution in
embedded SQL with a Sybase databse.
My Cold Fusion server is MX 7.
The Database is Adaptive Server Enterprise/12.5.0.3/EBF 10689
IR/P/Sun_svr4/OS 5.8/rel12503/1915/64-bit/FBO/Thu Jan 23 16:05:19
2003
Here's the problem. I have a Cold Fusion variable
bureau_incode which I am using to define the values in my IN
clause. When I comment out my query and display this value to the
HTML page, bureau_incode has the following value:
('OET','OGC','OIG','OLA','OMD','OMR','OSP','OTHER','OWD','PSHSB','WCB','WTB')
My embedded SQL CFQUERY looks like this:
quote:
<cfquery name="qResults" datasource="#request.dsn#">
Select Name,
bureau_code,
Telephone,
CellPhone,
Pager,
Email,
Availability,
Explanation,
Password,
Admin,
last_login = convert(varchar(20),last_login,0)
from PAMS where Availability = 'N'
<cfif #request.seltype# IS NOT "ALL">
and bureau_code IN #bureau_incode#
</cfif>
</cfquery>
When the code runs, I get the error
Error Executing Database Query. Incorrect syntax near 'OET'.
There is no incorrect syntax. Is there any special way to
submit the IN clause to ColdFusion MX 7? Previously, we were using
ColdFusion 4.5 (I believe) server, and the code worked perfectly,
albiet with double-quotes in the replacement string. Any help would
be appreciated. This type of substitution worked nicely in the
previous server version, I can't imagine why it would no longer
work.

No, I am not. The parentheses are part of the #bureau_incode#
coldfusion variable. I've edited the first message to make this
more clear. I have tried the query with the parentheses in the
#bureau_incode# variable, and with the parentheses in the CFquery
with (#bureau_incode#). The results are always the same.
I will indeed try to help with other stuff in the future. :)
Thanks for trying to help!

Similar Messages

  • Problem with IN clause in..........

    hello
    select RECPT_FRM_DE,tenq_no from enq_folloup where tenq_no in (:dumy_enq)
    in this :dummy_enq is a field with char as data type and tenq_no of the table is varchar2. when i enter more than one value in the :dummy_enq field with comma seperation ( eg. 1260,1265 ) no data is selected. how to correct this ?
    regrds
    Kris
    Message was edited by:
    Kris

    First, could you edit your post above and change the subject to something like: Problem with IN (...) clause
    Oracle does not parse the value in :dummy_enq. If you really want to use an IN list, you need to create multiple fields, and use:
    select RECPT_FRM_DE,tenq_no from enq_folloup
      where tenq_no in (:dumy_enq1, :dumy_enq2, :dumy_enq3)

  • Urgent: Performance problem with where clause using IN and an OR condition

    Select statement is:
    select fl.feed_line_id
    from ap_expense_feed_lines_all fl
    where ((:1 is not null and
    fl.feed_line_id in (select distinct r2.object_id
    from xxdl_pcard_wf_routing_lists r2,
         per_people_f hr2
    where upper(hr2.full_name) like upper(:1||'%')
              and hr2.person_id = r2.person_id
    and r2.fyi_list is null
              and r2.sequence_number <> 0))
    or
    (:1 is null))
    If I modify the statement to remove the "or (:1 is null))" part at the bottom of the where clause, it returns in .16 seconds. If I modify the statement to only contain the "(:1 is null))" part of the where clause, it returns in .02 seconds. With the whole statement above, it returns in 477 seconds. Anyone have any suggestions?
    Explain plan for the whole statement is:
    (1) SELECT STATEMENT CHOOSE
    Est. Rows: 10,960 Cost: 212
    FILTER
    (2) TABLE ACCESS FULL AP.AP_EXPENSE_FEED_LINES_ALL [Analyzed]
    (2) Blocks: 8,610 Est. Rows: 10,960 of 209,260 Cost: 212
    Tablespace: APD
    (6) TABLE ACCESS BY INDEX ROWID HR.PER_ALL_PEOPLE_F [Analyzed]
    (6) Blocks: 4,580 Est. Rows: 1 of 85,500 Cost: 2
    Tablespace: HRD
    (5) NESTED LOOPS
    Est. Rows: 1 Cost: 4
    (3) TABLE ACCESS FULL XXDL.XXDL_PCARD_WF_ROUTING_LISTS [Analyzed]
    (3) Blocks: 19 Est. Rows: 1 of 1,303 Cost: 2
    Tablespace: XXDLD
    (4) UNIQUE INDEX RANGE SCAN HR.PER_PEOPLE_F_PK [Analyzed]
    Est. Rows: 1 Cost: 1
    Thanks in advance,
    Peter

    Thanks for the reply, but I have already checked what you are suggesting and I am pretty sure those are not causing the problem. The hr2.full_name column has an upper index and the (4) line of the explain plan shows that index being used. In addition, that part of the query executes on its own quickly.
    Because the sql is not displayed in an indented format on this page it is a little hard to understand the structure so I am going to restate what is happening.
    My sql is:
    select a_column
    from a_table
    where ((:1 is not null) and a_column in (sub-select statement)
    or
    (:1 is null))
    The :1 bind variable is set to a varchar2 entered on the screen of an application.
    If I execute either part of the sql without the OR condition, performance is good.
    If the :1 bind variable is null with the whole sql statement (so all rows or a_table are returned), performance is still good.
    If the :1 bind variable is a not-null value with the whole sql statement, performance stinks.
    As an example:
    where (('wa' is not null) and a_column in (sub-select statement)) -- fast
    where (('wa' is null)) -- fast
    where (('' is not null) and a_column in (sub-select statement) -- fast
    or
    ('' is null))
    where (('wa' is not null) and a_column in (sub-select statement) -- slow
    or
    ('wa' is null))

  • Problems with WHERE CLAUSE in selects executed by BAPIs

    Dear Experts,
    I'm trying to make a SAP Java Connector. My problem is that, when they are called by Java, BAPI functions don't run in the same manner as in SAP testing mode .
    I tested two BAPI functions called through my connector and I saw with the debbuger that BAPI functions don't execute the select and loop at with a WHERE clause when they are called by Java, therefore they throw errors. But in the SAP testing mode functions work just fine.
    I'm  new to SAP and I don't know why this happens. Would you like to explain to me how to fix this problem?
    Thank you very much.
    Kind regards,
    Maricica

    979380 wrote:
    Yeah,i m sorry.I m a forum newbie.All right,we ve been given an oracle account for the purpose of this project,an we have connect to the oracle database either via linux terminal with sqlplus,or via oracle client and plsql.So i have to create some tables,then fill these tables with tuples(we ve been given fixed .sql files to do that),and we re suggested to do that from the linux terminal.I did that successfully.Then we have to run some queries either in terminal or plsql.I chose plsql.I connect,i can see the tables that i have created but when i run(in both sql and terminal window) for example the query "select * from table_1",i take 0 rows as a result.I tested to run the query from terminal(with sqlplus) to see if the tables are really empty,but i recieve the results as i should.
    I am sorry for my chaotic writing but i cant even explain the problem to myself better and i m not a native.
    (im using oracle version 11.2.0.1, this is the first time i m using oracle databases and i m a rookie in databases in general)
    Edited by: 979380 on 1 Ιαν 2013 10:33 πμ
    [oracle@localhost ~]$ sqlplus user1/user1
    SQL*Plus: Release 11.2.0.2.0 Production on Tue Jan 1 11:19:29 2013
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> create table table_1 (id number);
    Table created.
    SQL> select * from table_1;
    no rows selected
    SQL> insert into table_1 values(1);
    1 row created.
    SQL> select * from table_1;
            ID
             1
    SQL> in order to SELECT any rows from any table, first you must INSERT data into the table!
    is COPY & PASTE broken for you?

  • Problem with GROUP BY/HAVING in Sybase -- Oracle Migration

    Having problem converting SQL from Sybase to Oracle. The SQL statement in Sybase does
    not work in Oracle (ORA-979). When make changes the Oracle result is incorrect. Oracle Version
    is 8.1.6.3.
    #1 Sybase
    SELECT
    BIRTHDTE, FSCDTE, MINCDE, RETDISDTE, RETOPTDTE, RETPLAN,
    RMPAYSTAT, RSCDTE, SEX, SSN, VETPREF, VIETVETIND, MAX(OBS_DATE)
    FROM wims3.adm_new_stscrnt ans, wims3.tt_t_ssn2 t
    WHERE (t.newssn = ans.SSN)
    GROUP BY
    SSN
    HAVING obs_date = MAX(obs_date);
    Result = 19,567 (Correct)
    #2 Oracle (8.1.6.3)
    SELECT
    BIRTHDTE, FSCDTE, MINCDE, RETDISDTE, RETOPTDTE, RETPLAN,
    RMPAYSTAT, RSCDTE, SEX, SSN, VETPREF, VIETVETIND, MAX(OBS_DATE)
    FROM wims3.adm_new_stscrnt ans, wims3.tt_t_ssn2 t
    WHERE (t.newssn = ans.SSN)
    GROUP BY
    SSN
    HAVING obs_date = MAX(obs_date);
    Result = ORA-00979 not a Group By expression
    #3 Oracle
    SELECT
    BIRTHDTE, FSCDTE, MINCDE, RETDISDTE, RETOPTDTE, RETPLAN,
    RMPAYSTAT, RSCDTE, SEX, SSN, VETPREF, VIETVETIND, MAX(OBS_DATE)
    FROM wims3.adm_new_stscrnt ans, wims3.tt_t_ssn2 t
    WHERE (t.newssn = ans.SSN)
    GROUP BY
    OBS_DATE, BIRTHDTE, FSCDTE, MINCDE, RETDISDTE, RETOPTDTE, RETPLAN,
    RMPAYSTAT, RSCDTE, SEX, SSN, VETPREF, VIETVETIND
    HAVING obs_date = MAX(obs_date);
    Result = 19,598 (incorrect count)
    Possible suggestions?

    SELECT
    BIRTHDTE, FSCDTE, MINCDE, RETDISDTE, RETOPTDTE, RETPLAN,
    RMPAYSTAT, RSCDTE, SEX, SSN, VETPREF, VIETVETIND, OBS_DATE
    FROM wims3.adm_new_stscrnt ans, wims3.tt_t_ssn2 t
    WHERE (t.newssn = ans.SSN)
    AND obs_date = (select MAX(obs_date) from wims3.adm_new_stscrnt ans2, wims3.tt_t_ssn2 t2 where ...)
    ... should be the primary key-where

  • Problem with IN Clause in Query

    hi,
    i have a query
    select RECPT_FRM_DE,tenq_no from enq_folloup where tenq_no in ('&dumy_enq')
    in this the tenq_no of the table is varchar2 and the &dummy_enq which comes from the user screen is also of char type. but when the user enters 1260,1265 in the user screen as a comma seperated values to query for both values, not data is returned. but if try in sql by removing the quotes from this ie just &dummy_enq it gets the data. how to correct this
    kris

    hi,
    in the front end there is only a single entry field, in which the user enters the data, it is of type char and user enters value 1260,1265 in this field. when it is passed it becomes '1260,1265' there is no appending.....
    kris

  • Problem with Variable Substitution Receiver Adapter

    Hi,
    I need to use a dynamic filename so I'm using the variable substitution in my receiver adapter. BUT, the filename can't appear in the file. So i used this blog in reference --> Solution to the problem encountered using Variable Substitution with XI-SP12
    The PROBLEM is I still get and extra blank line in the file. How can I eliminate this extra line?
    Thanks in advance.
    Using XI 7.0

    Hi Gaurav,
    Data Type:
    Lines
       Line
    Config
       FileName
    XML - example:
    <?xml version="1.0" encoding="utf-8"?>
    <nr1:MT_TP_TipoCambio_Detalle_ECC_Req xmlns:nr1="urn:erplatam/tipocambio:tp:ecc">
    <Lines>
    <Line>USDSOL0000000000003.10000013-09-200813-09-2008V</Line>
    </Lines>
    <Lines>
    <Line>USDSOL0000000000002.50000014-09-200814-09-2008V</Line>
    </Lines>
    <Config>
    <FileName>SIGMA_TCSAP_F081031.DAT.TXT</FileName>
    </Config>
    </nr1:MT_TP_TipoCambio_Detalle_ECC_Req>
    Output - File, has 3 lines should have only 2:
    USDSOL0000000000003.10000013-09-200813-09-2008V
    USDSOL0000000000002.50000014-09-200814-09-2008V
    FCC parameters:
    RecordSet Structure: Lines,Config
    Lines.fieldSeparator 'nl'
    Lines.endSeparator 'nl'
    Config.fieldSeparator 'nl'
    Config.endSeparator 'nl'
    Thanks in advance!

  • Problem with performance of a query having order by, distinct clause

    Hi,
    I have a problem with queries having order by, distinct clause.
    While its executing its taking lot of time. With DBMS_PROFILER identified the queries taking long time.
    The table is having approximately 70 million rows.
    Problem -1
    select * from table_name order by col1;
    select distinct col1,col2 from table_name;
    Here i am having 2 solutions request to let me know whether i am right if not suggest me right solution.
    Solution1:
    Max parallel servers is 8.
    select /* + parallel(table_name,8) */ * from table_name order by col1;
    select /* + parallel(table_name,8) */ distinct col1, col2 from table_name ;
    Solution-2:
    select /* + first_rows */ * from table_name order by col1;
    select /* + first_rows */ distinct col1, col2 from table_name ;
    Problem-2
    I am having a query with where condition on columns.
    Select * from table_name where col1='value1' and col2!='value2';
    Index created on col1 and col2.
    As we no that not equal won't use index as it is a composite index it should use the lead column. but its not using the index.
    Should i forcibly use index with hint or suggest me better solution.
    Any help really appreciated.
    Thanks in advance

    unique wrote:
    The table is having approximately 70 million rows.
    select * from table_name order by col1;Do you really want 70,000,000 rows from your table without any restrictions ? And furthermore ordered output ? I honestly understand the slowness of that query.
    Here i am having 2 solutions request to let me know whether i am right if not suggest me right solution.Who knows if you choosed the right solution. I would suggest to reconsider your query and the need of 70,000,000 returned rows.
    Problem-2
    I am having a query with where condition on columns.
    Select * from table_name where col1='value1' and col2!='value2';Please, provide the explain plan, eventually the tkprof output could also help. And tables descirption AND indexes description.
    And OS and Oracle version.
    Nicolas.

  • Problem with DECODE block in WHERE clause

    Hi,
    I'm facing problem with DECODE statement. I just simulated my problem in the simple way as follows. If I execute this following query, I should get "hello", but I'm not getting anything (ZERO rows returned).
    SELECT 'hello' FROM DUAL
    WHERE 'sample1' in (DECODE(1, 1, '''sample1'', ''sample2'', ''sample3''',
    2, '''sample4'', ''sample5'', ''sample6'''
    I think some problem is there in my WHERE clause.
    But When I'm exeucting the following query as a seperate query, then I'm getting the value of DECODE block properly, but didn;t understnad why its not returning the same way when I'm putting the same DECODE statement in WHERE clause.
    SELECT DECODE(1, 1, '''sample1'', ''sample2'', ''sample3''',
    2, '''sample4'', ''sample5'', ''sample6'''
    FROM DUAL;
    Please help me to get out of this problem. Thank you so much in advance.
    Thanks,
    Ramji.

    The value returned by SELECT DECODE(1, 1, '''sample1'', ''sample2'', ''sample3''',2, '''sample4'', ''sample5'', ''sample6''') FROM DUAL;
    'sample1', 'sample2', 'sample3' is a single string. Consider it x.
    SELECT 'hello' FROM DUAL WHERE 'sample1' in ( DECODE(1, 1, '''sample1'', ''sample2'', ''sample3''',2, '''sample4'', ''sample5'', ''sample6'''));
    is like SELECT 'hello' FROM DUAL WHERE 'sample1' in ('x');
    or
    SELECT 'hello' FROM DUAL WHERE 'sample1' in ('''sample1'', ''sample2'', ''sample3''') and not
    SELECT 'hello' FROM DUAL WHERE 'sample1' in ('sample1', 'sample2', 'sample3');
    For this same reason SELECT 'hello' FROM DUAL WHERE 'sample1' in (select '''sample1'', ''sample2'', ''sample3''' from dual);
    also does'nt work.
    Please use INSTR to find whether 'sample1' exists in the string 'sample1', 'sample2', 'sample3'.

  • Problem with the query in group by clause

    hi, i have problem with group by clause, can some one please help me.
    select
    header_id,
    (select sum(nvl(dr,0) - nvl(cr ,0)) from temp_tab a1
    where
    a1.country=a.country
    and a1.source='AP'
    and a1.header_id=a.header_id) WHT,
    sum(dr),
    sum(cr) from temp_tab a
    group by header_id,
    (select sum(nvl(dr,0) - nvl(cr ,0)) from temp_tab a1
    where
    a1.country=a.country
    and a1.source='AP'
    and a1.header_id=a.header_id)
    select * from temp_tab
    drop table temp_tab
    create table temp_tab(header_id number ,line_num number, country varchar2(2),
    source varchar2(2), dr number, cr number,primary key(header_id,line_num));
    insert into temp_tab(header_id, line_num,country, source, dr,cr) values(1, 1,'NL','AP',100,20);
    insert into temp_tab(header_id, line_num,country, source, dr,cr) values(1, 2,'PO','AP',20,20);
    insert into temp_tab(header_id, line_num,country, source, dr,cr) values(1, 3,'NL','AP',70,20);
    insert into temp_tab(header_id, line_num,country, source, dr,cr) values(2, 1,'NL','PA',100,20);
    insert into temp_tab(header_id, line_num,country, source, dr,cr) values(2, 2,'NL','PA',100,20);
    insert into temp_tab(header_id, line_num,country, source, dr,cr) values(3, 1,'KR','PO',100,20);
    commit;
    Appreciate your help.
    Thanks,

    select header_id,
             (select sum(nvl(dr,0) - nvl(cr ,0)) from temp_tab a1
             where a1.country=a.country
             and a1.source='AP'
             and a1.header_id=a.header_id) WHT,
             sum(dr),
             sum(cr)
      from temp_tab a
    group by header_id
    ,countryIt's kinda hard to follow what your query does... maybe because I'm only at my second coffee..
    Edited by: Alex Nuijten on Oct 2, 2009 8:07 AM

  • WHERE clause in a SMARTFORM loop, problems with parenthesis

    Hi all gurus,
    a simple question: I'm coding a LOOP in the form builder for a smartform ... this simple loop should bind text elements to every position of a purchase order. The WHERE clause should be as follows:
    WHERE GUID = WA_ITEM-GUID
    AND ( TDID EQ 'ZDES' OR TDID EQ 'ZDST' ).
    Anyway, in the Form Builder I didn't find a way to add parenthesis; I workarounded the problem with the following query:
    (conditions in lines are in AND conjunction)
    GUID EQ     WA_ITEM-GUID
    TDID      EQ   'ZDES'
    OR
    GUID EQ     WA_ITEM-GUID                                                                               
    TDID      EQ 'ZDST'.
    It's quite a 'bad' way, but it works. I wonder if there's a way to express "complex" WHERE clauses (with addiction of parenthesis) in Form Builder.
    Thanks in advance

    In this case, your solution is the one that works. However in more complex cases with more variables, this can proove difficult to make or mantain.
    What I usually do is use the first part of the condition in the where and then add a condition to the printing area with the rest of the formula. Just remember to document this so that you'll find it easy and it's way more amintainable.
    In this case the loop would contain WHERE GUID = WA_ITEM-GUID and the inside condition TDID EQ 'ZDES' OR TDID EQ 'ZDST. This creates the and between the two blocks.

  • Problem with order by clause

    Hai all,
    I have problem with order by clause,
    My query is
    "select number from table1 order by number asc "
    and the output is displaying as
    1
    10
    12
    13
    15
    17
    19
    2
    20
    21
    22
    But if we give order by it should display as below only right ?
    1
    2
    10
    12
    13
    15
    17
    19
    20
    21
    22 ........
    Please help me why it is not displaying like it. and how to make the statement to display like the second case. Thanks in advance.
    Regards,
    Uraja

    The column datatype that you are selecting is not of NUMBER datatype(might be char or varchar2) hence you are getting such result set.
    And for this purpose, it is recommended to set datatype of a column appropriately.
    For now you can add TO_NUMBER function to column in ORDER BY clause, only if it has data of number type.
    Edited by: Ora on 19 Nov, 2012 3:10 AM

  • Problem with table(cast..)) clause - timeout

    Hello,
    I've in shared memory one query in multiple copies - one differences between copies is in arguments count given with in clause. For example, in shared memory i have:
    select name from a where id in (?);
    select name from a where id in (?,?);
    select name from a where id in (?,?,?);
    I try to minimize size of shared memory by change this query as in example:
    select name from a where id in (select * from table(cast(? as seqintegertable)))
    In this case my shared memory is ok, but I have problem with timeout exception:
    - time of executing query without cast is about 250 ms
    - with cast: about 10560 ms and sometimes I get ORA-01652
    Why this time is so long? Can I reduce it? Maybe I should change something other?

    user13241971 wrote:
    Why this time is so long? Can I reduce it? Maybe I should change something other?To know why your query takes so long: {thread:id=501834}
    Likely it's because of wrong cardinalities, to which this excellent article gives possible solutions: http://www.oracle-developer.net/display.php?id=427
    Regards,
    Rob.

  • 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 MENCIA

    Tomo:
    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)

  • 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

Maybe you are looking for