I was able to identify which table has many tablescans using Rob Verschoor tool sp_mda_monOpenObjectActivity, but the table is used in 100s stored procedures and has several triggers, how to make next step and see which SQL with this table makes a lot of tablescans?
How to identify in sybase 15.7 sql which is doing expensive tablescans?
Migrating from ASE 15.5 to 16.0 (when its out) + page size change...
Lets assume for the sake of arguement that ASE version 16.0 is out ......
My Client wants to migrate to the latest and greatest ASE Server from the current version of 15.5 on linux. Additionally they want to go from 2K pages to either 4K or 8K. I only know of 'sybmigrate' for this. Any tools that people can recommend or have tried?
ISQL error on Sybase (Solman 7.1)
I have installed SAP Solman 7.1 on the Sybase DB , When i first time try to login to Sybase DB with SAPSA user , i am getting below error.
Msg 1640, Level 16, State 2:
Server 'SID':
Adaptive Server requires encryption of the login password on the network.
Msg 4002, Level 14, State 1:
Server 'SID':
Login failed.
CT-LIBRARY error:
ct_connect(): protocol specific layer: external error: The attempt to connect to the server failed
Please can you help , it is very urgent issue to be solved..
Thanks
Prasanna
Backup & recovery strategies for Partitioned Database in Sybase ASE
Hi Team,
I need to know about backup & recovery strategies for partitioned Database in Sybase ASE 15.7 . I am not worried about transaction failure & recovery scenarios
We have already faced this 2 scenarios previously in un-partitioned database & it took more than 6 hrs for us to recover back [Reason : Low level sybase error]
In case of catastrophic failure like,
- Data corruption (Some low level defect causes a table corruption that went unnoticed for days or weeks)
- Failure of a device [A storage system gets corrupted]
1. Is my idea good to partition my database to achieve better resiliency?
2. In case I am doing so, is it possible to recover only failed partition? Sybase ASE maintains logical partitions, so is it possible to do piecemeal recovery?
3. In case my primary partition gets corrupted because of sybase low level error / disk corruption, will my replica also gets corrupted? [After all it's a replication :)]
Thanks
Dharam
Can't truncate log although it looks empty
Hello Sybase gurus,
I have an ASE 15.02, running on windows server 2008. A replica database "mcall" acts as if it has log full. Transactions / replication stopped.
I try:
dump tran mcall with truncate_only
and
dump tran mcall with no_log
They both report:
DUMP TRANSACTION for database 'mcall' could not truncate the log. Either extend the log using ALTER DATABASE ... LOG ON command or eliminate the oldest active transaction in database 'mcall' shown in syslogshold table.
I tried to extend the log, to no avail.
In fact, the log seems to be empty. I try:
dbcc checktable ('syslogs')
It reports the following:
Checking table 'syslogs' (object ID 8): Logical page size is 2048 bytes.
Checking partition 'syslogs_8' (partition ID 8) of table 'syslogs'. The logical page size of this table is 2048 bytes.
The total number of data pages in partition 'syslogs_8' (partition ID 8) is 1.
Partition 'syslogs_8' (partition ID 8) has 15 data rows.
The total number of data pages in this table is 1.
*** NOTICE: Space used on the log segment is 17201 pages (33.60 MB), 0.39%.
*** NOTICE: Space reserved on the log segment is 0 pages (0.00 MB), 0.00%.
*** NOTICE: Space free on the log segment is 4385999 pages (8566.40 MB), 99.61%.
Table has 15 data rows.
Msg 1105, Level 17, State 4:
Server 'WDBASE10', Line 3:
Can't allocate space for object 'syslogs' in database 'mcall' because 'logsegment' segment is full/has no free extents. If you ran out of space in syslogs, dump the transaction log. Otherwise, use ALTER DATABASE to increase the size of the segment.
DBCC execution completed. If DBCC printed error messages, contact a user with System Administrator (SA) role.
I try:
select * from syslogshold
It shows 0 rows.
Per Sybase troubleshooting guide, I checked sysusages; unreservedpgs column for this database does not have any NULL value.
Also ran (just in case):
dbcc settrunc (ltm, ignore)
it shows:
secondary trunc page secondary trunc state dbrepstat generation id database id database name ltl version
-------------------- --------------------- --------- ------------- ----------- ------------------------------ -----------
10580254 0 166 1 5 mcall 720
Has anyone encountered such a situation, or has any other thoughts?
Thanks much!
How to apply transaction log backup in Sybase
Hi,
Ten days before i took an dump backup by using commnad dump database <SID> to 'path to backup/backup.dmp'.Backup done succesfully.
I want to restore on another server with data till today.
Can i use last full backup which i took 10 days before and today do only transaction log backup and restore it?Like we do in Oracle by applying archive logs.
Regards
Adil
SYBASE unable to Create a dump configuration
Hi All,
We have installed a new crm 7.0 ehp3 with Sybase database on 2008 r2
Now we trying to setup the database backup and trans log backup
I followed the note 1588386 when we try connect to db
it gives the error we also tried unlocking the sa account.
below Is the error we are facing
DBA planning calendar
Hello,
I'm getting several errors with scheduled jobs. But It's so rare, sometimesit works, sometimesnot.
I've scheduled the backup of transaction log, DB, and master.
--SAP DBA Planning Calendar: SQL Script
print( SELECT "starting job execution at " || str_replace(convert(VARCHAR(20),getdate(),23),"T","") )
dump transaction PRD using config = 'PRDLOG'
go
print( SELECT "job execution finished at " || str_replace(convert(VARCHAR(20),getdate(),23),"T","") )
I've defined a store procedure for backup.
The job for master backup, It always fails.
--SAP DBA Planning Calendar: SQL Script
print( SELECT "starting job execution at " || str_replace(convert(VARCHAR(20),getdate(),23),"T","") )
--SAP DBA Planning Calendar: SQL Script
print( SELECT "starting job execution at " || str_replace(convert(VARCHAR(20),getdate(),23),"T","") )
dump database master using config = 'master'
go
print( SELECT "job execution finished at " || str_replace(convert(VARCHAR(20),getdate(),23),"T","") )
print( SELECT "job execution finished at " || str_replace(convert(VARCHAR(20),getdate(),23),"T","") )
I´ve checked partition space but this isn't the reason.
ASE service Syabase SQLServer_"SID" don't start
Hi,
We have shutdown the ASE Server, after that we tried to start it insuccefully. with the msg
"The Sybase SQLServer_"SID" service on "host" started and then stopeped.Somme services stop automatically are no in use by other services or programs"
We have checked the log SID.log, where we have see that the saptools has defalut segment full
Can't allocate space for object 'DBH_MSG_LOG' in database 'saptools' because 'default' segment is full/has no free extents. If you ran out of space in syslogs, dump the transaction log. Otherwise, use ALTER DATABASE to increase the size of the segment.
00:0000:00000:00000:2014/02/24 13:45:50.22 kernel SySAM: Checked out license for 8 ASE_COMPRESSION (2014.1231/permanent/1296 8FE3 0A83 A167).
00:0000:00000:00000:2014/02/24 13:45:50.22 kernel Checked out license ASE_COMPRESSION
00:0000:00000:00000:2014/02/24 13:45:50.24 kernel SySAM: Checked out license for 8 ASE_ASM (2014.1231/permanent/1296 8FE3 0A83 A167).
00:0000:00000:00000:2014/02/24 13:45:50.24 kernel Checked out license ASE_ASM
00:0000:00000:00000:2014/02/24 15:04:20.87 kernel SySAM: Using licenses from: D:\sybase\"SID"\\SYSAM-2_0\licenses\SYBASE.lic;D:\sybase\"SID"\\SYSAM-2_0\licenses\SYBASE_ASE_DE.lic
00:0000:00000:00000:2014/02/24 15:04:21.24 kernel SySAM: Checked out license for 8 ASE_CORE (2014.1231/permanent/1296 8FE3 0A83 A167).
00:0000:00000:00000:2014/02/24 15:04:21.24 kernel This product is licensed to: SAP, for use with SAP Business Applications.
00:0000:00000:00000:2014/02/24 15:04:21.24 kernel Checked out license ASE_CORE
00:0000:00000:00000:2014/02/24 15:04:21.24 kernel Adaptive Server Enterprise (Enterprise Edition)
00:0000:00000:00000:2014/02/24 15:04:21.24 kernel Using config area from primary master device.
00:0000:00000:00000:2014/02/24 15:04:21.26 kernel Warning: Using default file 'D:\sybase\"SID"\"SID".cfg' since a configuration file was not specified. Specify a configuration file name in the RUNSERVER file to avoid this message.
00:0000:00000:00000:2014/02/24 15:04:21.26 server The dump history file version is missing or invalid.
00:0000:00000:00000:2014/02/24 15:04:21.26 server Verification failed for parameter 'enable dump history'.
00:0000:00000:00000:2014/02/24 15:04:21.26 server The dump history file version is missing or invalid.
00:0000:00000:00000:2014/02/24 15:04:21.26 server Verification failed for parameter 'dump history filename'.
00:0000:00000:00000:2014/02/24 15:04:21.26 kernel The value of the option 'number of engines at startup' is not set to its default. This option has no effect in threaded mode.
00:0000:00000:00000:2014/02/24 15:04:21.26 kernel SySAM: Checked out license for 8 ASE_PARTITIONS (2014.1231/permanent/1296 8FE3 0A83 A167).
00:0000:00000:00000:2014/02/24 15:04:21.26 kernel Checked out license ASE_PARTITIONS
00:0000:00000:00000:2014/02/24 15:04:21.28 kernel SySAM: Checked out license for 8 ASE_COMPRESSION (2014.1231/permanent/1296 8FE3 0A83 A167).
00:0000:00000:00000:2014/02/24 15:04:21.28 kernel Checked out license ASE_COMPRESSION
00:0000:00000:00000:2014/02/24 15:04:21.28 kernel SySAM: Checked out license for 8 ASE_ASM (2014.1231/permanent/1296 8FE3 0A83 A167).
00:0000:00000:00000:2014/02/24 15:04:21.28 kernel Checked out license ASE_ASM
At this moment we are unable to logon using isql.exe, this is normal because the ASE isn´t started.
Have any advice to solve this?
Thanks in adcance for your help.
log full, can't alter the database, ...
Hello,
I'm having troubles with a database. The transaction log is full.
When I look at syslogshold, the oldest transaction in the database belongs to spid6 :
Database Start spid User Name
--------------- -------------------- ------ -------- ------------------------
workflow_db 24 Feb 2014 18:39:38 6 NULL $dmpxact
spid 6 is the checkpoint task :
spid status loginame host progname blk dbname cmd
---- -------- -------- ------ -------- ---- ---------- ------------------------------
1 recv sle wlprd02 CR2920 WL_7001 0 weblogic_d AWAITING COMMAND
2 sleeping NULL NULL NULL 0 master DEADLOCK TUNE
3 sleeping NULL NULL NULL 0 master KPP HANDLER
4 sleeping NULL NULL <astc> 0 master ASTC HANDLER
5 sleeping NULL NULL <astc> 0 master ASTC HANDLER
6 PLC slee NULL NULL NULL 0 workflow_d CHECKPOINT SLEEP
7 sleeping NULL NULL NULL 0 workflow_d HK WASH
8 sleeping NULL NULL NULL 0 master HK GC
9 sleeping NULL NULL NULL 0 master HK CHORES
10 sleeping NULL NULL NULL 0 master PORT MANAGER
11 sleeping NULL NULL NULL 0 master NETWORK HANDLER
When I try to alter the database to extend the log, it's hanging on process 6 :
spid status loginame host progname blk dbname cmd
------ -------- -------- ------ -------- ---- ---------- ------------------------------
8 sleeping NULL NULL NULL 0 master HK GC
9 sleeping NULL NULL NULL 0 master HK CHORES
131 sleeping wlprd02 j2eete WL_7081 0 weblogic_d INSERT
161 sleeping sa xena-d sqsh-2.1 0 workflow_d DBCC
189 lock sle sa xena-d sqsh-2.1 6 master ALTER DATABASE
402 sleeping jparent CR2920 NULL 0 workflow_d DELETE
Proccesses 8 and 9 also have locks in the workflow_db :
spid locktype table_name page dbname
------ ------------------ -------------------- ------------- ---------------
8 Sh_page sysmessages 1413 master
8 Sh_page sysmessages 1857 master
8 Ex_intent JBPM_VARIABLEINSTANC 0 workflow_db
9 Sh_page sysmessages 1413 master
9 Sh_page sysmessages 1857 master
9 Sh_intent JBPM_VARIABLEINSTANC 0 workflow_db
9 Ex_intent systabstats 0 workflow_db
Process 161 is executing a dbcc checktable(syslogs) command which also hangs on a full transaction log :
[102] DST_ST_2.sa.workflow_db.1> dbcc checktable(syslogs);
Checking table 'syslogs' (object ID 8): Logical page size is 4096 bytes.
Checking partition 'syslogs_8' (partition ID 8) of table 'syslogs'. The logical page size
of this table is 4096 bytes.
The total number of data pages in partition 'syslogs_8' (partition ID 8) is 50996.
Partition 'syslogs_8' (partition ID 8) has 2041034 data rows.
The total number of data pages in this table is 50996.
*** NOTICE: Space used on the log segment is 51196 pages (199.98 MB), 99.99%.
*** NOTICE: Space reserved on the log segment is 18 pages (0.07 MB), 0.04%.
*** NOTICE: Space free on the log segment is -14 pages (-0.05 MB), -0.03%.
Table has 2041034 data rows.
Processed 10241 allocation unit(s) out of 20480 units (allocation page 2621440). 50% completed.
Processed 12288 allocation unit(s) out of 20480 units (allocation page 3145472). 60% completed.
Processed 14336 allocation unit(s) out of 20480 units (allocation page 3669760). 70% completed.
Processed 16384 allocation unit(s) out of 20480 units (allocation page 4194048). 80% completed.
Processed 18432 allocation unit(s) out of 20480 units (allocation page 4718336). 90% completed.
Processed 20480 allocation unit(s) out of 20480 units (allocation page 5242624). 100% completed.
Processed 22528 allocation unit(s) out of 20480 units (allocation page 5766912). 110% completed.
Processed 24576 allocation unit(s) out of 20480 units (allocation page 6291200). 120% completed.
Processed 26624 allocation unit(s) out of 20480 units (allocation page 6815488). 130% completed.
Processed 28672 allocation unit(s) out of 20480 units (allocation page 7339776). 140% completed.
Processed 30720 allocation unit(s) out of 20480 units (allocation page 7864064). 150% completed.
Processed 34897 allocation unit(s) out of 30720 units (allocation page 8933376). 113% completed.
Processed 37786 allocation unit(s) out of 30720 units (allocation page 9672960). 123% completed.
Processed 40858 allocation unit(s) out of 30720 units (allocation page 10459392). 133% completed.
Processed 43930 allocation unit(s) out of 30720 units (allocation page 11245824). 143% completed.
Processed 47002 allocation unit(s) out of 30720 units (allocation page 12032256). 153% completed.
Msg 1105, Level 17, State 7
Server 'DST_ST_2_b', Line 1
Can't allocate space for object 'syslogs' in database 'workflow_db' because 'logsegment'
segment is full/has no free extents. If you ran out of space in syslogs, dump the
transaction log. Otherwise, use ALTER DATABASE to increase the size of the segment.
Msg 3475, Level 21, State 7
Server 'DST_ST_2_b', Line 1
There is no space available in SYSLOGS to log a record for which space has been reserved
in database 'workflow_db' (id 58). This process will retry at intervals of one minute.
Something seems wrong with the numbers and percentages.
Dataserver version is :
Adaptive Server Enterprise/15.7/EBF 21709 SMP SP110 /P/Solaris AMD64/OS 5.10/ase157sp11x/3546/64-bit/FBO/Fri Nov 8 06:01:08 2013
De database was loaded from a dump made on a :
Adaptive Server Enterprise/15.7.0/EBF 20734 SMP ESD#03 /P/Solaris AMD64/OS 5.10/ase157 esd3/3183/64-bit/FBO/Sat Dec 8 19:24:28 2012
system.
Any idea how to proceed ?
Thanks,
Luc.
help with database and devices
I have a problem I need to deatach 2 devices from the tempdb and beable to use them in a new db im going to create , How can I do this I tried (alter database tempdb log off mydev='10M') I get the following error, ------ you cannot shrink database 'tempdb' because the database either has reduced durability or is being used as a template---. Anyone else have a solution to my problem? please helpp. I'm using ASE 15.7
Tempdb and devices?
Hello, I have a tempdb with a few devices, each device was created for data or log as it is recomended to keep them separate. My problem now is I need to take out a few of those devices that the tempdb is atached too, to then move them to a tempdb2 thats going to be created. I know that the database ihas to be dropped to then move the devices but ASE dosnt let me. Please help me my job depends on this.
thank you in advance and sorry i for my english
ps. tempdb needs to stay on the server. Just to make it simple if i didn't make my self clear is that i need to move the tempdb devices and move them to a tempdb2
BSI U.S. Payroll Tax Processing, on SAP Adaptive Server Enterprise
Today SAP, is excited to announce that in collaboration with BSI (www.bsi.com), that BSI US Payroll Tax Processing systems for the TF90K2 and TF10B versions, supports our leading XOLTP database, SAP Sybase Adaptive Server Enterprise.
For further information please: -
- Contact your SAP or BSI Account Executive
- BSI Support Support@bsi.com
More information can also be obtained from www.mybsi.com at the following location (My Support -> Maintenance -> Cyclic Bulletin -> Go ->SAP downloads) /(username/password) may be required.
Client configuration for Setting net password encryption reqd
I am trying to enforce all connections to the Database Server, however we have a few different type of clients connecting using several applications. I am currently gathering all the applications and settings required to be able to connect to the server successfully
ISQL and BCP
add -X switch
ASE ADO.NET Data Provider
Data Source=myASEserver;Port=5000;Database=myDataBase;Uid=myUsername; Pwd=myPassword;EncryptPassword=1;
Open Client
cat ocs.cfg
[DEFAULT]section
CS_SEC_ENCRYPTION = CS_TRUE
CS_SEC_EXTENDED_ENCRYPTION = CS_TRUE
Will Perl, Python use the same ocs.cfg file or is there another way to set the connection to allow encryption?
Others Apps
DBArtisan
On the Security Tab check option 'Enable net password encryption'
I have not found ways to set Sybase Central and Toad For Sybase
Has anyone been able to get these applications connected with 'net password encryption reqd' set to1 ?
Sybase / SAP DR solution on High Availability
Hi,
We have installed production server on High availability ( CI - DB ) active -active cluster.
i.e CI is running on once machine and DB is running on another machine and i have 6 additional apps on different machines.
SAP version is ECC 6.0 EHP5 on HP-UX/Sybase.
Now we are planning for DR server which is STORAGE-STORAGE replication.That means all the mount points available from CI and DB servers are available at DR side. But in my case i have only one hardware at DR Side.That means both CI and DB are on same machine. Here i have 3 apps on different machines. How can i work? Please suggest.
In this case will it work storage to storage replication ans sap will run if all mount points of CI and DB are attached to single machine at DR side.
But i need storage to storage replication instead of log shipping because my sap users are around 3000.
Regards,
Sivarajesh.
steps need to take to start sap / sybase on passive node
Hi,
We have installed ECC6.0 EHP6 on AIX/Sybase 15.7 . We have two servers one is active and second
one is passive node. We have taken high availability option and installed both application and database
on active node. After completing the successful installation we have moved all the mount points from
active node to passive node. On passive node we have created users,groups and services etc.
While trying to start database on passive node we are getting issue.Data base is not starting.
Please suggest is there any special actions need to perform once mount points moved from active
node to passive node.
Awaiting for your valuable suggestions.
Regards,
Sivarajesh
problem using sp_opt_querystats
The stored procedure can be very useful, but I can not make it work with all the option proposed in sp_opt_querystats help, here is an example
exec
sp_opt_querystats"select * from POS where br_number='XyZ' and acc_number='0000097' and cur_code='USD'","plancost",mydatabase.
the result is NULL output
[ BEGIN QUERY ANALYSIS ]
[ END QUERY ANALYSIS ]
the same no result is produced with
exec
sp_opt_querystats"select * from POS where br_number='XyZ' and acc_number='0000097' and cur_code='USD'","plancost",mydatabase.
[ BEGIN QUERY ANALYSIS ]
[ END QUERY ANALYSIS ]
Some other options such showplan statio etc are working fine.
Am I misusing the proc or there are shortcomings in it, The version of my ASE is:
Adaptive Server Enterprise/15.7/EBF 21342 SMP SP101 /P/Solaris AMD64/OS 5.10/ase157sp101/3439/64-bit/FBO/Thu Jun 6 16:33:15 2013
How to update statistic of a single table in SYBASE
Hi,
Could anybody tell , how to update the statistics for table D010INC in SYBASE , as we'd tried via commad "update statistics D010INC" but it is giving error "table D010INC does not exist".
If anybody had tried updating a single table in SYBASE , please share the procedure with us.
Regards
MAYANK
SAP Sybase Landscape setup...
Dear SAP/ Sybase Experts ,
Need your suggestion and expert advise on Sybase Replication server Setup in SAP landscape.
We will have our production servers setup on High Availability as per best practice{Windows, SAP and DB on Cluster } and we will be using SRS for disaster recovery on secondary Site. All Our Windows servers are on VMware 5.5
As configuration and management of SRS is not one of easiest , will it be wise to have HA on Primary and setup DR.
Appreciate your suggestion on our SAP landscape
- HA on Primary site {different Virtual hostname for DB and SAP } Multiple application/Dialog server and Disaster recovery with SRS
- Single Node Production, Multiple application/Dialog server and Disaster recovery with SRS.
Regards
Mohammad
BW agregate Can't allocate space for object "temp worktable" in database "tempdb" because system segment is full/has no free extents.
Hi all,
We are getting this error when try to do an agregate at BW with ASE 15.7 sp110.
Can't allocate space for object "temp worktable" in database "tempdb" because system segment is full/has no free extents. If you ran out of space in syslogs, dump the transaction log
We have extendend the tempdb device and also we have put autoextensible database but doesn't solve the error.