Quantcast
Channel: SCN : Discussion List - SAP Adaptive Server Enterprise (SAP ASE) for Custom Applications
Viewing all 685 articles
Browse latest View live

An IPL file for dataserver

$
0
0

Hi,

 

I would like to write an IPL file (Initial Program Loading) for my dataserver so I can create thresholds for tempdb (thresholds defined on tempdb go kaput after restart).

Either, I'd like to copy user types to tempdb so developers don't have to check out the data original data type of the user type when creating a table in tempdb.

 

I have a startup shell which performs the startserver launcher, but it seems that all logins a still unknown yet, should I put a sleep ?

(dont want to use sa login)

 

Someone got an idea ?


Set current instance

$
0
0

Bonjour,

   I would like to know how I can log to an instance and execute code as if I was connected on the second instance.  Not clear hey!?!

 

Ok,

 

Sybase ASE CE 15.7 SP136

 

I connect on the first node and start listener.  I would like to start listener on the second node without having to disconnect and reconnect.

 

Is there anything like "set instance node2" ?

 

Thanks

rebooted server and status is "running" with cmd "recovery" but never recovers

$
0
0

hi everybody. our version is:

Adaptive Server Enterprise/15.5/EBF 17795 SMP ESD#1/P/x86_64/Enterprise Linux/asear155/2495/64-bit/FBO/Thu May 27 06:07:23 2010

 

we were running some database maintenance and the client received:

Number (803) Severity (20) State (1) Server (RISKSYBDEMO_DS) Unable to place buffer '0xc5f5afb80' from cache 'default data cache' holding logical page '4299561985' in sdes for object 'rup_01_var' - either there is no room in sdes or buffer already in requested slot.

 

 

the msg does NOT appear in the log.

 

so, we bounced the server and it came back up except for the one database which shows status: running and cmd: recovery. virtually no i/o is taking place but there is a fully pinned cpu on the box. it never recovers.

 

please,

what is the action here ? we can drop and reload if we have to. what would be the sequence of commands for that ?

 

thanks,

 

david

New Features Guide for ASE16 SP02 PL03

$
0
0

I am looking for new features guide for ASE16SP02PL03. I am unable to find it in the documentation. Appreciate any help on this!

Binding LOB data to stored procedure parameters

$
0
0

I've got a SP that has TEXT type parameter. I want to bind data to this parameter using OpenClient's ct_bind call and send data using ct_send_data in chunks (the data size exceeds 16k, so I can't use CHAR instead which works just fine). For testing, I've used the following code snippet:

 

http://infocenter.sybase.com/help/topic/com.sybase.infocenter.dc20155.1570/html/OS_SDK_nf/CIHHICJE.htm

 

but it doesn't work correctly. I'm getting "Type '7' not supported' from server error message when ct_send is executed.

My question is:

 

what are minimum server and OpenClient versions to get it working?

Sybase DR setup using log shipping

$
0
0

Hello Experts,

 

Could you please explain me steps to configure the log shipping procedure for sybase in details.

i know there is a standard SAP note 1650511 which contains scripts as well.

My present OS is RHEL 6.2 and sybase 15.7

 

We are maintaining the DR server within LAN for a distance of 2 km at different location.

 

Also i have a few questions in my mind,

 

1.what happens when there is some network disconnection

for about 20 hours (or) about 3 days with DR server (standby system)?

 

2.what are the major pre-requisites to be taken care before the DR drill?

 

3.In future after one year we want to use standby server as a primary server as

hardware is good enough in DR server compared to Primary?

 

 

Thanks in Advance.

Spinlocks on "Sched Q"

$
0
0

Is there any documentation about spinlock contention on "Sched Q" ?

 

Thanks

 

Mike

hands on 'optimizer', optdiag statistics...

$
0
0

--- sybase version ---

Adaptive Server Enterprise/15.7.0/EBF 22639 SMP SP52 /P/Sun_svr4/OS 5.10/ase157sp5x/3293/64-bit/FBO/Wed May 21 02:49:14 2014

--- end version ---

 

Hi community,

 

I'm starting reading/reading again some chapters of 'ASE 15.7 Performance and Tuning Series: Query Processing and Abstract Plans'.

 

I think I get the 'big picture' of the need of the optimizer but I'm looking for way to better understand it and the information it needs to provide the best plan to the execution engine.

 

Is there any document/presentation that will present a kind of 'hands-on understanding the optimizer'?

 

For example, I get a rough image when I read this

"

The query optimizer processes join predicates the same way it processes search

arguments, in that it uses statistics, number of rows in the table, index heights,

and the cluster ratios for the index and data pages to determine which index and

join method provides the cheapest access. In addition, the query optimizer also

uses join density estimates derived from join histograms that give accurate

estimates of qualifying joining rows and the rows to be scanned in the outer and

inner tables. The query optimizer also must decide on the optimal join ordering

that will yield the most efficient query plan. The next sections describe the key

techniques used in processing joins.

"

 

Those words would be meaningfull to me if I can see in practice how the output of 'optdiag statistics' helps the optimizer choosing the right plan, how some dbcc traceon(traceflags) can help me understanding the optimizer work.

 

Thanks in advance for your input.

 

 

Simon


SSL or Crypto Error Message

$
0
0

Hi experts,

 

The ASE 15.5 log is throwing the following error:

 

00:02:00000:00073:2016/05/09 05:02:31.79 kernel  SSL or Crypto Error Info: psn -1, vsn -1, sockp 0 error id 96, severity -2, provide

r id 2.

00:02:00000:00073:2016/05/09 05:02:31.80 kernel  SSL or Crypto Error Message: 'An unexpected failure occurred while performing an Op

enSSL cryptography operation.  Root error: error:0606506D:digital envelope routines:EVP_DecryptFinal_ex:wrong final block length.'.

 

I'm new on sybase, does anybody have any idea what the issue could be?

 

Thank you

How to register an ASE instance in Cockpit's Repository ?

$
0
0

HI

 

What is the solution to "force" the Cockpit to display an ASE instance in its connection Dialog Box ?

 

The issue is the following :

 

I have installed IQ cockpit and ASE cockpit on the top of an existing installation of ASE and IQ on my laptop.

When connecting to the cockpit (https://xxxxx:4283/cockpit/#) the dialog box shows the IQ server but not the ASE server (See the enclosed screen shot).

 

So my questions are

- is there a 'discovery' mode to force the cockpit to register a server in its repository ?

- How can I manualy register an ASE server into the  cockpit repository ?

- How the Server are added in the Cockpit repository

and...

- Where can we find a REAL documentation about Cockpit ?

 

Many Thanks in advance

 

Best Rgds

 

Emmanuel

ASECOCKPIT.PNG

Bcp tuning

$
0
0

Hi

 

(ASE 15.7 sp60 running on windows 2008)

 

We are in the process of aggregating many similar databases to one big database on a new server.

Because this is time consuming, we are planing to do this in steps like this:

 

1. Create the new database, tables etc (but not index, triggers, constraints)

2. Bcp in some of the databases (using fast bcp)

3. create the indexes, triggers, constraints

4. Let the users in and use the new database for some days

5. Drop indexes, triggers and constraints)

6. Bcp in more databases (using fast bcp)

7. create the indexes, triggers, constraints

8. Let the users in and use the new database for some days

(continue until all databases have been bcp-ed into the new database)

 

Now, the problem.

 

When we test this, we get good speed on the first bcp-jobs (2.)

Typical we see 1000+ rows / second

 

BUT after creating indexes etc, and dropping them we get much slower speeds for the rest of the bcp-jobs (6.)

On the same table, we now get 80 rows / second.

 

What are we doing wrong?

How can I find out more about what is taking so long?

 

Regards

Pål

ASE Cockpit Documentation

$
0
0

Hi

Is there any document decribing the components of ASE/IQ (Cokpit Server RMI Agent,  Gateway etc ...) and their respectiv role and how they interact ?

Thanks

Emmanuel

dbcc page() in ASE 15.7 /16.0

$
0
0

Hello,

Is there any way to find the Object Id (objid) from page number in ASE 15.7 or 16.0?

In 12.5.x it came in the output from Page Header Section, but in the last 2 ASE  versions I can't  fin them, i.e:


Ouput from ASE 16.0


DBCC TRACEON (3604);

DBCC PAGE (machi, 31122598)

DBCC TRACEOFF (3604);

GO

DBCC execution completed. If DBCC printed error messages, contact a user with System Administrator (SA) role.

Page found in Cache: default data cache. Cachelet: 1

 

BUFFER:

Buffer header for buffer 0x0x272b34000

page=0x0x272b32000 bdnew=0x0x17dfdd0c88 bdold=0x0x17dfdd0c88 bhash=0x0x17dd0e79c8

bmass_next=0x0x17d0512fd0 bmass_prev=0x0x17cf297780 bdbid=6

bvirtpg=[ 0x0x272b340d0 vpgdevno=12 vpvpn=11242676 vdisk=0x0x1a5c8ae50 ]

bmass_head=0x0x17dfdd0c88 bmass_tail=0x0x17dfdd0c88

bcache_desc=0x0x272b393e8 (cid=0 cache name='default data cache')

bpool_desc=0x0x272b43658 bdbtable=0x0x1ff3f5e00

Mass bkeep=0 Mass bpawaited=0 Mass btripsleft=0 Mass btripsleft_orig=0

bmass_size=8192 (8K pool) bunref_cnt=0

bmass_stat=0x4001000(0x0000000004000000 (MASS_DONT_DISCARD), 0x0000000000001000 (MASS_HASHED))

blfb_status=0x(nil)

bbuf_stat=0x1 (0x00000001 (BUF_PG_REF))

bcas_wait_***:0 bcache_spin:0 bversion:0 bhot_keep:0    Buffer blpageno=31122221 bpg_size=8k Mass blpageno=31122221 Mass blocallockkeep=0 bxls_pin=0x(nil) bxls_next=0x(nil) bspid=0

bxls_flushseq=0 bxls_pinseq=0 bcurrxdes=0x(nil) bssdbuf_ptr=0x(nil) LFB delta=0x(nil)

 

Latch and the wait queue:

Latch (address: 0x0x272b34038)

latchmode: 0x0 (FREE_LATCH)

latchstatus: 0x0     latchowner: -1

latchnoofowners: 0

latchwaitq: 0x(nil)    latchwaitqt: 0x(nil)

latchlastfileindex=0 (nofilename) latchlastlineno=0

 

Latch wait queue:

 

PAGE HEADER:

Page header for page 0x0x272b32000

>>pageno=31122221 nextpg=31122222 prevpg=31122220 ptnid=719832583  timestamp=0417 8bdc2795

lastrowoff=4091 level=0 indid=3: freeoff=4102 minlen=11

page status bits (pstat): 0x82 (0x0080 (PG_FIXED), 0x0002 (PG_LEAF))

 

Thank you

 

Regards

Jose

LOAD DATABASE WITH HEADERONLY output change

$
0
0

Hello,

 

Somewhere between "Adaptive Server Enterprise/16.0/EBF 22383 SMP/P/x86_64/Enterprise Linux/asecepheus/3530/64-bit/FBO/Sun Feb 16 06:09:40 2014" and "Adaptive Server Enterprise/16.0 SP02 PL01/EBF 25184 SMP/P/x86_64/Enterprise Linux/ase160sp02pl00/2424/64-bit/FBO/Thu Sep 17 22:46:42 2015", the output of "LOAD DATABASE WITH HEADERONLY" changed significantly breaking some of our products parsing logic.

 

Just curious if there is a trace flag that would revert the output?

 

Also curious if there was ever discussion of recording backup information in a table similar to how other products do it so that it is easily queried?

 

Older HEADERONLY output:

1> load database pubs2 from '/home/sybase/backups2/pubs2.full.1' with headeronly

2> go

Backup Server session id is: 13. Use this value when executing the

'sp_volchanged' system stored procedure after fulfilling any volume change

request from the Backup Server.

Backup Server: 6.28.1.1: Dumpfile name 'pubs216131076CA  ' section number 1

mounted on disk file '/home/sybase/backups2/pubs2.full.1'

This is a database dump of database ID 13, name 'pubs2', from May 10 2016

8:26AM. ASE version: Adaptive Server Enterprise/16.0/EBF 22383

SMP/P/x86_64/Enterprise Linux/asecepheus/3530/64-bit/FBO/S. Backup Server

version: Backup Server/16.0/EBF 22383/P/Linux AMD Opteron/Enterprise

Linux/asecepheus/4465/64-bit/OPT/Sun Fe. Database page size is 4096.

Database contains 1792 pages; checkpoint RID=(Rid pageid = 0x529; row num =

0xd); next object ID=1312004674; sort order ID=50, status=0; charset ID=1.

        Database encrypted: NO

        Database Encryption Key: N/A

Database log version=7; database upgrade version=41; database

durability=UNDEFINED.

Full dump timestamp: 0x0000 0x00000000

Cumulative dump timestamp: 0x0000 0x00000000

Delta dump timestamp: 0x0000 0x00000000

segmap: 0x00000007 lstart=0 vstart=[vpgdevno=0 vpvpn=60420] lsize=1792

unrsvd=559

The database contains 1792 logical pages (7 MB) and 1792 physical pages (7 MB).

dbdevinfo: devtype=0 vdevno=0 devname=master

physname=/opt/sybase/devices/data1/S1_master.dat devsize=102400 dbdevsize=1792

vstart=0 devstat=3 devstat2=0

This is the SYSDATABASES row of database ID 13, name 'pubs2' from the dump

header. Status:0x0009. Crdate:May 10 2016  8:25AM. Dumptrdate:May 10 2016

8:25AM. Status2:0xffff8000. Audflags:0x0000. Deftabaud:0. Defvwaud:0.

Defpraud:0. Def_remote_type:0. Status3:0x20000. Status4:0x4000. Durablility:1.

Lobcomp_lvl:0. Inrowlen:0. Dcompdefault:1. Status5:0x0000.

This is the SYSATTRIBUTES row for the  database 'pubs2' from the dump header.

Flmode:0x0000.

 

 

Features found in the database or transaction dump header:

 

 

  ID =  4 : 15.7.0.000  : Database has system catalog changes made in 15.7 GA

  ID =  7 : 15.7.0.020  : Database has system catalog changes made in 15.7

ESD#02

  ID = 11 : 15.7.0.100  : Database has the Sysdams catalog

 

ASE 16 SP02 PL01 "LOAD DATABASE ... WITH HEADERONLY" output looks like:

 

Backup Server session id is: 29. Use this value when executing the 'sp_volchanged' system stored procedure after fulfilling any volume change request from the Backup Server.

Backup Server: 6.28.1.1: Dumpfile name 'pubs2161310649A  ' section number 1 mounted on disk file '/home/sybase/backups/pubs2.full.1'

 

 

General:

        This is a full database dump

        Name: pubs2

        Id: 4

        Dump date: May 10 2016  7:09AM

        Database page size:  4096.

        Number of pages: 1792

        Checkpoint RID: (1329, 33)

        Next object id: 1312004674

        Sort order id: 50

        Status: 0

        Charset id: 1

        Database durability: UNDEFINED

        Compression level: N/A

        Database encrypted: NO

        Database Encryption Key: N/A

 

 

Versions:

        Adaptive Server version: Adaptive Server Enterprise/16.0 SP02 PL01/EBF 25184 SMP/P/x86_64/Enterprise Linux/ase160sp02pl00/242

        Backup Server version: Backup Server/16.0 SP02 PL01/EBF 25184/P/Linux AMD Opteron/Enterprise Linux/ase160sp02pl00/4902/64-

 

 

        Database log version: 7

        Database upgrade version: 41

 

 

Dump timestamps:

        Full: 0x0000 00000000

        Cumulative: 0x0000 00000000

        Delta: 0x0000 00000000

 

 

Sysusages:

        segmap: 0x00000007 lstart=0 vstart=[0, 22532]  lsize=1792 unrsvd=494

 

 

        Number of logical pages: 1792 (7 MB)

        Number of physical pages: 1792 (7 MB)

 

 

Sysdevices:

        devtype=0, vdevno=0, devname=master,

                physname=/opt/sybase16sp2/data/master.dat,

                devsize=40960, dbdevsize=1792, vstart=0,

                devstat=3, devstat2=0

 

 

Sysdatabases:

        status=0x0008, crdate=May 10 2016  7:01AM,

                dumptrdate=May 10 2016  7:01AM, status2=0xffff8000,

                audflags=0x0000, deftabaud=0, defvwaud=0, defpraud=0,

                def_remote_type=0, status3=0x20000, status4=0x4000,

                durablility=1, lobcomp_lvl=0, inrowlen=0,

                dcompdefault=1 status5=0x0000

 

 

Sysattributes:

                flmode: 0x0000

 

 

Features found in the database or transaction dump header:

 

 

  ID =  4 : 15.7.0.000  : Database has system catalog changes made in 15.7 GA

  ID =  7 : 15.7.0.020  : Database has system catalog changes made in 15.7 ESD#02

  ID = 11 : 15.7.0.100  : Database has the Sysdams catalog

Thanks,

Neal

sybase Replication issue with BODS data connector

$
0
0

Dear SAP,

 

I have an issue while connecting to Sybase Replication server from BODS connector

 

Sybase Connection was established in BODS

 

getting this error while extracting the tables from master or Pub02 database.

 

Thanks,

Rahul Yedapally


user databse log segemnt filling up when no active transaction present

$
0
0

Hi Everyone, Recently we migrated our databases from ASE 15.5 version to ASE version 15.7 using dump and load method. Since then we are finding an issue of log segment of both target and source server shows all the time almost 80% of usage even when there is no open transaction or no entry in syslogshold table. I am little curious about why and how this log segment space is filling up when there is no activity on the server. I know the remedies like dump Tran with different option but I am more interested in knowing why and how this transaction log are filling up when there is no open transaction on server. Please note that this databases are part of table level replication system and work as primary and target database simultaneously. Your reply to this thread will be helpful in finding root cause for this issue. Thanks and Regards, Swapnil

SAP Ase Unified Agent installation

$
0
0

Hi Experts,

 

I am trying to configure SAP Control Center for ASE. I found out that to be able to do majority I need to register an agent. Started to browse around and found information that ASE should have Unified Agent installed on each database. Apparently this should be installed as part of the DB but mine does not have it.

 

How I can perform stand alone installation for Unified Agent on my databases ? Where do I find the agent files for it ?

 

Sap Control Center version 3.3

SAP Databases 15.7

 

Thank you in advance for advice.

 

Regards,

Lukasz Goral

loading 2 transactions in parallele

$
0
0

Hi,

In the past (sybase 12.5.4) , I was able to run 2 agents loading each one a transaction on a different database, now, under 15.7 sp63, it works for a little while and then my database gets status 384 or even worse.

The status is updatable and after a server restart everything goes back ok, but I cannot handle such situation, it there an open ticket on this on the next sybase server version ?

 

 

Thanks.

 

PS : Replication server is not an option, we use log shipping.

Download oldest version patches.

$
0
0

We need download a old version / package from SAP ASE 15.0 for Linux systems. Were I can download this software?

Qstn: Can we have ASE 16 on raw level data built upon file-systems

$
0
0

Can we raw level devices built on top of NFS file-systems in ASE? What are the pros & cons please?

Viewing all 685 articles
Browse latest View live


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