Quantcast
Channel: SCN : All Content - SAP Adaptive Server Enterprise (SAP ASE) for Custom Applications
Viewing all 757 articles
Browse latest View live

Required output of a loading a database from tapes

$
0
0

Hi,

 

I understood that we have to use the below command to load a database dump from a tape

 

1>load database <database of my environment> from "path of the tape where dump is stored"

2>go

 

but I don't have the output of this in case the load is successful and failed. Can anyone help me in providing the output to analyse? Also, correct me in case my syntax is wrong.

 

Regards,

Dilip Voora


ASE16 install with response file failed

$
0
0

Hello

 

I'm trying to install SAP ASE 16 with a response file created with the GUI installation mode: setup.bin -r ASE16.txt, but it's failed, linux console return the following informations

 

./setup.bin –f ASE16.txt -i silent -DAGREE_TO_SAP_LICENSE=true -DRUN_SILENT=true

Usage: setup [-f <path_to_installer_properties_file> | -options]

            (to execute the installer)

 

where options include:

    -?

            show this help text

    -i [swing | console | silent]

            specify the user interface mode for the installer

    -D<name>=<value>

            specify installer properties

    -r <path_to_generate_response_file>

            Generates response file.

The options field may also include the following in case of uninstaller

if it is enabled for Maintenance Mode

    -add <feature_name_1> [<feature_name_2 ...]

            Add Specified Features

    -remove <feature_name_1> [<feature_name_2 ...]

            Remove Specified Features

    -repair

            Repair Installation

    -uninstall

            Uninstall

 

notes:

    1. the path to the installer properties file may be either absolute,

       or relative to the directory in which the installer resides.

    2. if an installer properties file is specified and exists, all other

       command line options will be ignored.

    3. if a properties file named either 'installer.properties' or

       <NameOfInstaller>.properties resides in the same directory as the

       installer, it will automatically be used, overriding all other command

       line options, unless the '-f' option is used to point to another valid

       properties file.

    4. if an installer properties file is specified but does not exist, the

       default properties file, if present, will be used.  Otherwise, any

       supplied command line options will be used, or if no additional

       options were specified, the installer will be run using the default

       settings.

 

Thanks for your support

 

Eric

Delphix

$
0
0

Anybody already some experience with Delphix for Sybase ASE?

 

Rob V. wrote some blog about it a while ago

Delphix for SAP ASE - available now

 

Would be interesting to hear some practical experiences about this product

SAP ASE database growth analysis on a monthly/weekly basis.

$
0
0

Dear Colleagues,

 

If you have some script, that does weekly, monthly reporting of db growth sizes, please help me. I have been trying for quite some time now.

 

Was trying to develop a script myself,  (to analyse the SAP ASE database growth on weekly or monthly basis). I am using SAP on AIX. I did post it on SAP on AIX form, but in vain.

 

I have the following files as input (file1.in and file2.in)

 

% cat file1.in

dbname                         LogTotal(MB) DataTotal(MB) DataUsed(MB) DataFree(MB) DataPercentfull

------------------------------ ------------ ------------- ------------ ------------ ---------------

master                                 0          248            33          215        13.31

tempdb                                 0         5144            20        5124         0.39

model                                  0           24            14          10        58.33

E10                                26564       328576        187013      141563        56.92

saptools                             600        10240          3042        7198        29.71

saptempdb                              0        10240            53        10187         0.52

sybsystemdb                            0           48            14          34        29.17

sybsystemprocs                         0          200           132           68        66.00

sybmgmtdb                              0          320           122          198        38.13

 

 

% cat file2.in

dbname                         LogTotal(MB) DataTotal(MB) DataUsed(MB) DataFree(MB) DataPercentfull

------------------------------ ------------ ------------- ------------ ------------ ---------------

master                                 0          248            43          215        13.31

tempdb                                 0         5144            30        5124         0.39

model                                  0           24            18          10        58.33

E10                                26564       328576        197013      141563        56.92

saptools                             600        10240          3142        7198        29.71

saptempdb                              0        10240            93        10187         0.52

sybsystemdb                            0           48            84          34        29.17

sybsystemprocs                         0          200           192          68        66.00

sybmgmtdb                              0          320           222          198        38.13

 

 

I was trying to compare the files ( file1.in and file2.in ) for the only coloum DataUsed(MB) and give me the result/change in percentage.

 

 

The output should be something like:-

 

Growth Percentage :-

 

.1%

-1%

.4%

1%

100%

.4%

.7%

.4%

1%

 

 

Any help highly appreciated ..

 

 

Kind Regards,

Ajith Prabhakaran

Unmounting and Mounting a SYBASE database

$
0
0

Hello Everyone,

 

We have 2 instances with some set of databases in each instances . ( Both are with same version and running on same host 15.7 ) .

 

We would like to move database named as "QWE" (DBID is 6 ) from instance1 to instance2.

 

But in instance2 , We have set of  databases and one of DB is assigned with DBID as 6.  Now as i mentioned i would like to move database "QWE" from instance1 to instance2.

 

I read in manuals as "In destination server DBID slot should be free i.e here DBID 6 ) . But in my case database exists with DBID = 6 in instance2 .

 

 

How to UNMOUNT and MOUNT database with new DBID or How to change the DBID of existing database ?.

 

Please advise on this

adaptive server was shutdown

$
0
0

Dear Sirs,

 

Could you please look at timeslice errorlog and

suggest the solution.

where adaptive server went down?

 

error log:

 

00:0005:00000:00992:2016/02/09 14:09:10.23 kernel  FR23: -2.000003

00:0005:00000:00992:2016/02/09 14:09:10.23 kernel  FR24: -2.000003

00:0005:00000:00992:2016/02/09 14:09:10.23 kernel  FR25: -2.000003

00:0005:00000:00992:2016/02/09 14:09:10.23 kernel  FR26: -2.000003

00:0005:00000:00992:2016/02/09 14:09:10.23 kernel  FR27: -2.000003

00:0005:00000:00992:2016/02/09 14:09:10.23 kernel  FR28: -2.000003

00:0005:00000:00992:2016/02/09 14:09:10.23 kernel  FR29: -2.000003

00:0005:00000:00992:2016/02/09 14:09:10.23 kernel  **** end of signal context ****

00:0005:00000:00992:2016/02/09 14:09:10.23 kernel  timeslice error: spid 992 exhausted its 'time slice' of 1000 milliseconds and additional 'cpu grace time' of 500 ticks (50000 milliseconds). It has been marked for termination.

00:0005:00000:00992:2016/02/09 14:09:10.23 kernel  This Adaptive Server process has had 3 major and 496 minor page faults since boot.

00:0007:00000:00012:2016/02/09 14:09:10.23 kernel  ************************************

00:0007:00000:00012:2016/02/09 14:09:10.23 server  SQL Text: [no text]

00:0007:00000:00012:2016/02/09 14:09:10.23 kernel  curdb = 31516 tempdb = 2 pstat = 0x200 p2stat = 0x100000

00:0007:00000:00012:2016/02/09 14:09:10.23 kernel  p3stat = 0x400800 p4stat = 0x0 p5stat = 0x0 p6stat = 0x0 p7stat = 0x10000

00:0007:00000:00012:2016/02/09 14:09:10.23 kernel  lasterror = 0 preverror = 0 transtate = 0

00:0007:00000:00012:2016/02/09 14:09:10.23 kernel  curcmd = 0 program =                              

00:0007:00000:00012:2016/02/09 14:09:10.23 kernel  extended error information: hostname:  login:

00:0005:00000:00992:2016/02/09 14:09:10.23 kernel  Spinlocks held by  kpid 474809261

 

00:0005:00000:00992:2016/02/09 14:09:10.23 kernel  Spinlock default data cache at address c000000102c77300 owned by 474809261

00:0002:00000:00011:2016/02/09 14:09:10.23 kernel  ************************************

00:0002:00000:00011:2016/02/09 14:09:10.23 server  SQL Text: [no text]

00:0002:00000:00011:2016/02/09 14:09:10.23 kernel  curdb = 1 tempdb = 2 pstat = 0x200 p2stat = 0x100100

00:0002:00000:00011:2016/02/09 14:09:10.23 kernel  p3stat = 0x800 p4stat = 0x2 p5stat = 0x0 p6stat = 0x400 p7stat = 0x10000

00:0002:00000:00011:2016/02/09 14:09:10.23 kernel  lasterror = 0 preverror = 0 transtate = 1

00:0002:00000:00011:2016/02/09 14:09:10.23 kernel  curcmd = 0 program =                              

00:0002:00000:00011:2016/02/09 14:09:10.23 kernel  extended error information: hostname:  login:

00:0005:00000:00992:2016/02/09 14:09:10.23 kernel  End of spinlock display.

00:0007:00000:00012:2016/02/09 14:09:10.24 kernel  pc: 0x4000000005bf81a0 pcstkwalk+0xf0(0x00000000007d003f, 0x0000000000000002, 0x000000000000270f, 0x0000000000000000, 0x0000000000000000)

00:0002:00000:00011:2016/02/09 14:09:10.25 kernel  pc: 0x4000000005bf81a0 pcstkwalk+0xf0(0x00000000007b003e, 0x0000000000000002, 0x000000000000270f, 0x0000000000000000, 0x0000000000000000)

00:0005:00000:00992:2016/02/09 14:09:10.26 kernel  pc: 0x4000000005bf81a0 pcstkwalk+0xf0(0x000000001c4d03ad, 0x0000000000000002, 0x000000000000270f, 0x0000000000000000, 0x0000000000000000)

00:0007:00000:00012:2016/02/09 14:09:10.26 kernel  pc: 0x4000000005bf7030 ucstkgentrace+0xb70(0x00000000007d003f, 0x0000000000000001, 0x6000000000668138, 0xc000000000000918, 0x4000000003302330)

00:0007:00000:00012:2016/02/09 14:09:10.26 kernel  pc: 0x4000000005bf0680 ucbacktrace+0x140(0x0000000000000000, 0xffffffffffffffff, 0x6000000000668138, 0xc000000000000591, 0x4000000005c93b00)

00:0007:00000:00012:2016/02/09 14:09:10.26 kernel  pc: 0x4000000003302330 $cold_terminate_process+0x1de0(0xc00000026f2dbd18, 0xc000000000000187, 0xc0000001c100c000, 0x6000000000668138, 0xe00000013af97420)

00:0005:00000:00992:2016/02/09 14:09:10.26 kernel  pc: 0x4000000005bf7030 ucstkgentrace+0xb70(0x000000001c4d03ad, 0x0000000000000001, 0x6000000000668138, 0xc000000000000b9f, 0x4000000003300730)

00:0002:00000:00011:2016/02/09 14:09:10.27 kernel  pc: 0x4000000005bf7030 ucstkgentrace+0xb70(0x00000000007b003e, 0x0000000000000001, 0x6000000000668138, 0xc000000000000918, 0x4000000003302330

Error while performing database dump

$
0
0

Hi Experts,

 

We have scheduled a full database backup everyday at 19:30 on SDA server. However, today it got failed with the below error.

 

Error:

 

version=221, API routine=syb_write(), Message=syb_write: Unable to write object.        Run "omnidb -session 2016/02/25 0118 -report"    to get error details.

Feb 25 19:46:33 2016: Backup Server: 4.188.1.1: Database SDA: 55614648 kilobytes (64%) DUMPED.

Feb 25 19:46:33 2016: Backup Server: 4.124.2.1: Archive API error for device='ob2syb::HEC_VLHECSDADB_SDA::000': Vendor application name=Data Protector A.09.00, Library version=221, API routine=syb_write(), Message=syb_write: Unable to write object.        Run "omnidb -session 2016/02/25 0118 -report"    to get error details.

Feb 25 19:46:34 2016: A00: SYBMULTBUF ERROR: Emulator interprocess communication failed with error state = 16, error code=32, system message=Broken pipe.

Feb 25 19:46:34 2016: D00: SYBMULTBUF ERROR: Emulator interprocess communication failed with error state = 9, error code=0, system message=Pipe I/O returned 0 bytes.

 

Please provide your valuable input on this to get out of this situation.

 

NOTE: My understanding on this error is "dump failed because the size of the database file become too large and it has to be dumped on stripes(as of now we are not using any stripe)

 

Regards,

Dilip Voora

What is the difference between reorg defrag and reorg rebuild online ?

$
0
0

Both seems to server same purpose. Why there are 2 different command ?


execute as owner restricted

$
0
0

Since ASE 15.7 it's possible to create stored procedures with option "execute as owner"

 

Which is quite a nice feature, e.g. to allow a user to unlock a login without having sso_role, you simply create a procedure like this

 

create procedure sp__locklogin  @login  varchar(30) = null, @action varchar(10) = null

with execute as owner

as  exec sp_locklogin @login, @action

 

Normally you would use the sa login to create this procedure in sybsystemprocs and grant execute permissions to a user defined role.

Grant the user defined role to a login, and that login can lock or unlock any other login wihout having sso_role

 

However, this feature presented a big security loop hole....

Just having a dbo alias in database sybsystemprocs allows you to create any procedure with execute as owner and executing it as the sa login, e.g.

create procedure sp_myproc  @cmd varchar(500)

with execute as owner

as  exec (@cmd)

 

With the latest patch level SP136 for ASE 15.7 (and latest patch level for 16.0) this security hole has been partly fixed. (See KB 2202914)

When impersonating the database owner, via a dbo alias or via setuser, it's not possible anymore to refer to objects outside of the database when using option "with execute as owner". Instead you'll have to create the object with the database owner itself.

(Creating the proc sp_myproc, executing any SQL statement as login sa, is still allowed)

 

Example of what will fail

use a login having sa_role (not sa), which gets dbo alias in sybsystemprocs

 

create proc sp__listen

with execute as owner

as select * from master..syslisteners

go

Msg 16367, Level 16, State 1:

Server 'ASE157', Procedure 'sp__listen', Line 1:

EXECUTE AS OWNER procedures cannot be created by an alias or with the SETUSER command when the procedure has SQL statements hat reference objects across databases. Create the procedure from a non-impersonated session.

 

The only way to get this procedure created is using the sa login itself.

(Of course the same result can be achieved by executing sp_listener from sp__listen, but that's not the point)

 

Error 16367 is also produced at other times, e.g. when running installmaster.

This must be executed using the sa login, because several procedures for sp_sysmon rely on this feature (KB 2183652) and can now only be installed by sa

 

In many environments the sa login is locked out for security reasons

Do you want to unlock the sa login just to deploy a stored procedure in sybsystemprocs?

Mirroring of Sybase devices

$
0
0

Hello guys.

 

We use disk mirror to change the physical device or from file system to raw device (and vice-versa).

 

Another DBA said we could not mirror a device that was already mirrored in the past.

 

For example: I mirrored Dev1 to Dev2 and now I need to mirror Dev2 to Dev3. He said it would not work.

 

It doesn't make sense to me, but I would like to have confirmation it would be possible.

 

Thanks in advance.

Sergi T.

thread utilization vs OS cpu uitlization in sap 16

$
0
0

Hi folks

 

I see that thread utitlization is 100% in Sybase engine but OS utilization is only 70% on Aix Power 7 . AIX box has 16pcu mutlithreaded to 32 .

Increased  Sybase thread from 24 to 32 but  with same result . Is it possible  to increase OS utlization to say 80 % - 85 % .

 

Thanks

RK

strange cache problem

$
0
0

Hi

 

 

After moving an ASE db to a different physical server by unmount/re-mounting SAN disks (no ASE reconfiguration), one big query is slower than before.

 

The ASE15.7 SP62 database was moved:

from an Oracle M4000 server (no Zone/VM, no ZFS, ASE devices in UFS filesystems mounted in directio)

to a M10-4 server (in a LDOM/VM, capped ZFS for the OS filesystem only, ASE devices in UFS filesystems mounted in directio)

 

=> similar: same ASE config, same SAN with SSDs, same RAM amount, same number of engines (24 in threaded-mode kernel)

=> different: faster cpu cores (3.4GHz to 2.5GHz) in different server, one layer of virtualization (hypervisor), ZFS

 

 

After the move, some SPs&queries are faster but the biggest SP doubled the time on the new server => 14 mins compared to 7 mins before.

 

 

We extracted the slowest query from the SP, updated statistics, rebuild/recreated index => still 14 mins.

sp_sysmon did not show anything interesting except the abnormaly high "fully logged DML":

Fully Logged DMLs

    by Full ULC                           22.1           2.8       19908      52.8 %

    by Single Log Record              6.8           0.9        6100      16.2 %

 

 

Then we tried to send the query result to a temporary table #test using "SELECT INTO" =>  3 mins !!!

So we thought that the query plan was wrong. We compared the query plans but did not see much difference:

similar abstract time, very closed statistics IO and time excluding the SELECT INTO part.

 

 

During my tests, I had tried to use "set statement_cache off" but it did not make any difference.

But then today I rebooted ASE, increased the procedure cache from 1800000 to 3000000 (still 14 mins)

and set "set statement_cache off" before the query => 3 mins !!!

 

So it is not a wrong query plan because it is fast when ignoring previous query plan.

It was confirmed by:

- stopping all db activity,

- running "dbcc purge purgesqlcache" to clean the statement cache

- checking there is no row in monCachedStatement

- running the query  => still 14 mins

- monCachedStatement shows a huge number of IOs:

 

SSQLID      UseCount    StatementSize MinPlanSizeKB MaxPlanSizeKB CurrentUsageCount MaxUsageCount NumRecompilesSchemaChanges NumRecompilesPlanFlushes HasAutoParams ParallelDegree QuotedIdentifier TransactionIsolationLevel TransactionMode SAAuthorization SystemCatalogUpdate MetricsCount MinPIO      MaxPIO      AvgPIO      MinLIO      MaxLIO      AvgLIO      MinCpuTime  MaxCpuTime  AvgCpuTime  MinElapsedTime MaxElapsedTime AvgElapsedTime AvgScanRows MaxScanRows AvgQualifyingReadRows MaxQualifyingReadRows AvgQualifyingWriteRows MaxQualifyingWriteRows LockWaits   LockWaitTime SortCount   SortSpilledCount TotalSortTime MaxSortTime ParallelDegreeReduced ParallelPlanRanSerial WorkerThreadDeficit DBName                         CachedDate          LastUsedDate        LastRecompiledDate  OptimizationGoal               OptimizerLevel      

----------- ----------- ------------- ------------- ------------- ----------------- ------------- -------------------------- ------------------------ ------------- -------------- ---------------- ------------------------- --------------- --------------- ------------------- ------------ ----------- ----------- ----------- ----------- ----------- ----------- ----------- ----------- ----------- -------------- -------------- -------------- ----------- ----------- --------------------- --------------------- ---------------------- ---------------------- ----------- ------------ ----------- ---------------- ------------- ----------- --------------------- --------------------- ------------------- ------------------------------ ------------------- ------------------- ------------------- ------------------------------ ------------------------------

1775483371           1          5296            94           176                 0             1                          0                        0             1              1                0                         1              32               1                   0            1        1754        1754        1754   983402953   983402953   983402953      802089      802089      802089         807229         807229         807229     3162300     3162300                 83403                 83403                      0                      0           0            0          21                7        802044      802044                     0                     0                   0 prodOdr                        Mar  2 2016  5:02PM Mar  2 2016  5:16PM                NULL allrows_oltp                   ase_current  

 

 

QUESTION: why disabling statement_cache at the session level or sending the result to #temp would be faster?

(and of course what is the link with changing the server => faster cpu and memory requires cache reconfig?)

 

 

Thanks. Vincent

Sybase ASE 15.7 installation on Windows7 professional

$
0
0

Dear Experts,

 

I am trying to install ASE 15.7 in my PC and I have few questions that keep on running in my mind.

 

Do we need to install SDK(software developer's kit) explicitly from SAP Service Market Place before installing ASE 15.7?

Which among the below patches I should have before installation?

                  Microsoft Visual C++ 2010 Service Pack 1 Redistributable Package

                  Microsoft Visual C++ 2010 Service Pack 1 Redistributable Package and KB2565063

                  Microsoft Visual Studio 2010 Service Pack 1

                  Microsoft Visual Studio 2010 Service Pack 1 and KB2565057

Are the first and the second patches same?

What is the exact patch name I have to download from Google? (Found MFC security patch update but I am not sure as I don't have experience about these patches)

I am intended to install SCC along with ASE 15.7 so in the open client section while installing any other open client apart from SCC has to be selected?

Is this the right way and the correct object I am downloading from SAP SMP w.r.t ASE 15.7 on Windows7 professional 32 bit?

    Selecting software downloads after entering support.sap.com, selecting databases option in the left hand side, selecting Adaptive

    Server Enterprise, Entered the credentials, selected database option, selected SAP Adaptive Server Enterprise, selected SAP            Adaptive Server Enterprise 15.7, selected Installation, selected the OS as Windows, selected the object 51044414 from the list ( is it             the right object), entered credentials to start the download

 

Please help me with your valuable answers on the above. Will be highly anticipating.

 

NOTE: I am referring to http://infocenter.sybase.com/help/topic/com.sybase.infocenter.dc35888.1600/doc/pdf/aseigwin.pdf

 

Regards,

Dilip Voora

C# ADO .net driver bug in AseBulkCopyBusinessBulk.cs

$
0
0


We're attempting to use Sybase Bulk Copy API in C# but have found that it doesn't work.

We've tried both 15.5 and 15.7 versions (dll version 2.155.12000.0 and 2.157.401.0) and both have the same flaw.

(We're currently using the SDK 15.5 C# version with Bulk Copy implemented as "insert" statements which is obviously too slow).

 

We've managed to look at the Sybase C# code and have found the line with the bug in AseBulkCopyBusinessBulk.

 

Is there a version of C# ado .net driver which implements the Bulk Copy correctly ?

Is there somewhere I can see a list of versions of the SDK ?

 

Any help greatly appreciated.

 

Thanks

 

 

What version of SAP ASE SDK works with .Net Entity Framework 6?


Ordering by column position generates error if called from within SP - ASE 16.0.1.3

$
0
0

The following code:


create table test1 (a int, b int, c int)

create table test2 (a int, b int, c int)


create proc sp_test

as

begin

select a.a, a.b from test1 a where a.a > 1 and a.a is not null

and exists (select 1 from test2 b where b.a = a.a)

order by 1, 2

return 0

end

 

will work on ASE versions 15, 16.0.1.2, 16.0.2.2 but not on 16.0.1.3:

 

Msg 207, Level 16, State 4:

Server 'XXX', Procedure 'sp_test', Line 4:

Invalid column name 'a'.

Msg 207, Level 16, State 4:

Server 'XXX', Procedure 'sp_test', Line 4:

Invalid column name 'a'.

1>

  1. Depending on how many conditions are in the where clause
  2. Depending whether exists is present
  3. Depending it sorting is done by position

 

Did anyone come across this? 


The same statement run from outside SP will work correctly:


select a.a, a.b from test1 a where a.a > 1 and a.a is not null

and exists (select 1 from test2 b where b.a = a.a)

order by 1, 2


a          b

----------- -----------


(0 rows affected)


Took me a while to understand what the problem is....

 

HTH,

 

Andrew

change in replicating system procedures between ase 12.5 and ase 15.7

$
0
0


Hello,

 

I am trying to figure out at what point I didn't read the documentation well enough :).

 

We are using bidirectional database replication (coming from a warm-standby configuration).

In our older ASE 12.5 - REP 15.2 configurations,

 

-  The Rep.Sys. column in the rs_helpdbrep output shows 'All'.

 

-  sp_reptostandby in the database shows :

      The replication status for database 'my_db' is 'ALL'.


-  "send warm standby xacts" is set to true in the repagents.

 

-  database replication definitions contain 'replicate ddl on' option.

 

Replication works as expected, it replicates table/triggers/procs/... changes and it replicates system procedures like sp_rename/...


We upgraded our ase servers to 15.7 a while ago, but I just recently found out that replicating the set of system procedures doesn't work anymore.

Is this change docmentend somewhere ? I can't find it in the new features manual or release bulletin.


To get the same behaviour in 15.7, we have to include the "replicate system procedures" clause in the databases replication definition and exclude executing sp_config_rep_agent.
And then all system procedures including the logexec() function are replicated (the others are not).
Is that correct ?

 

Thanks,
Luc.


Problem with NULL values using Sybase ODBC driver in Linux

$
0
0

Hi,

 

I am accessing a Sybase ASE 15.7 database using Sybase ASE 16.0 ODBC driver on Ubuntu 14.04.

 

I have a strange problem with fetching NULL values. At first I noticed the problem with a Python script,

but the problem remains the same when using the isql command line tool that comes with unixodbc

package. The isql command line tool can be used to access the Sybase ASE database via ODBC driver

and test if the ODBC driver configuration is valid.

 

The problem can be tested with a simple select statement with a column which does not have a value

i.e. is NULL.

 

As you can see the ISNULL function is used here to make sure the column customer_segment is NULL:

 

SQL> select ISNULL(customer_segment, 'has no value') from test_table where id = 50

+-------------+

|             |

+-------------+

| has no value|

+-------------+

SQLRowCount returns -1

1 rows fetched

 

 

SQL> select language, customer_segment from test_table where id = 50

+---------+-----------------+

| language| customer_segment|

+---------+-----------------+

| FI      | FI              |

+---------+-----------------+

SQLRowCount returns -1

1 rows fetched

SQL>

 

Has anyone of you seen this before? Is this a known problem?

 

Any help would be appreciated.

 

Thanks is advance,

Kari

Sybase 16 and @table vars

$
0
0

We're having a look at Sybase 16 and the @table variables

 

This doesn't seem right to me

 

declare @a_table_var table( colA int, colB varchar(5), colC numeric(10,2) null )

 

insert @a_table_var (colA,colB,colC)   values( 1, 'OK', 945.32 )

insert @a_table_var (colA,colB)        values( 2, 'WRONG' )

insert @a_table_var (colA,colB,colC)   values( 3, 'OK', null )

 

select * from @a_table_var


colA     colB     colC   

-------  ------- -------

1        OK       945.32 

2        WRONG    945.32

3        OK       (null) 



Sybase 16 upgrade : Stack traces on various procs

$
0
0

After upgrading to Sybase 16, we're seeing a few procs generating stack traces.

 

00:0008:00000:02455:2016/03/09 12:56:32.72 kernel Current process (0x86b0436) infected with signal 11 (SIGSEGV)

00:0008:00000:02455:2016/03/09 12:56:32.72 kernel Address 0x0x0000000001c0c3cd (s_mustrecompile+0x5dd), siginfo (code, address) = (1, 0x(nil))

00:0008:00000:02455:2016/03/09 12:56:32.72 kernel **** Saved signal context (0x0x00002aab17136080): ****

00:0008:00000:02455:2016/03/09 12:56:32.72 kernel uc_flags: 0x1, uc_link: 0x(nil)

00:0008:00000:02455:2016/03/09 12:56:32.72 kernel uc_sigmask: 0x416000 0xb 0x1 0x0

00:0008:00000:02455:2016/03/09 12:56:32.72 kernel uc_stack: ss_sp: 0x(nil), ss_size: 0x0, ss_flags: 0x2

00:0008:00000:02455:2016/03/09 12:56:32.72 kernel General Registers (uc_mcontext.gregs):

00:0008:00000:02455:2016/03/09 12:56:32.72 kernel PC : 0x0000000001c0c3cd (s_mustrecompile+0x5dd)

00:0008:00000:02455:2016/03/09 12:56:32.72 kernel RAX : (nil) RBX : (nil)

00:0008:00000:02455:2016/03/09 12:56:32.72 kernel RCX : (nil) RDX : 0x0000000003d72ee8

00:0008:00000:02455:2016/03/09 12:56:32.72 kernel RBP : 0x00002aab171366c0 RSP : 0x00002aab17136630

00:0008:00000:02455:2016/03/09 12:56:32.72 kernel R8 : 0x0000000000000121 R9 : 0x00002aaf86f85800

00:0008:00000:02455:2016/03/09 12:56:32.72 kernel R10 : 0x0000000000000004 R11 : 0x00002aaf86f3f9b8

00:0008:00000:02455:2016/03/09 12:56:32.72 kernel R12 : 0x00002aae360286c8 R13 : 0x00002aaf86f895f0

00:0008:00000:02455:2016/03/09 12:56:32.72 kernel R14 : (nil) R15 : 0x00002aab17136690

00:0008:00000:02455:2016/03/09 12:56:32.72 kernel RDI : 0x00002aaf86fd2e50 RSI : (nil)

00:0008:00000:02455:2016/03/09 12:56:32.72 kernel RIP : 0x0000000001c0c3cd CSGSFS : 0x0000000000000033

00:0008:00000:02455:2016/03/09 12:56:32.72 kernel TRAPNO : 0x000000000000000e ERR : 0x0000000000000004

00:0008:00000:02455:2016/03/09 12:56:32.72 kernel EFL : 0x0000000000010246

00:0008:00000:02455:2016/03/09 12:56:32.72 kernel **** end of signal context ****

 

with the client reporting

     ASE is terminating this process.

 

Anyone else seen this ?

Is there something needed after an upgrade ?

Viewing all 757 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>