0% found this document useful (0 votes)
304 views3 pages

How To Recreate Database Saptools On ASE 16.0 SP03 or Later - SAP ASE For BS

Uploaded by

braindamaged
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
304 views3 pages

How To Recreate Database Saptools On ASE 16.0 SP03 or Later - SAP ASE For BS

Uploaded by

braindamaged
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

SAP Knowledge Base Article

3007299 - How to recreate database saptools on ASE 16.0 SP03 or later - SAP ASE for
BS
Component: BC-DB-SYB (Business Suite on Adaptive Server Enterprise), Version: 2, Released On: 12.06.2023

Symptom
Database 'saptools' need to be recreated.

Environment
SAP Adaptive Server Enterprise (ASE) 16.0 for Business Suite
SAP Solution Manager (SOLMAN) 7.x
SAP NetWeaver (NW) - All versions
Built-In ASE Longterm Monitoring Data Repository ( BALDR )

Resolution
You have to delete the database device to recreate database 'saptools'. Therefore, You have to keep the database device
information before the delete of the database device.
1. Check BALDR version
1> use saptools
2> go
1> select * from DBH_CONFIG where [KEY] like 'BALDR%'
2> go
2. Check status and database device for database saptools
1> sp_helpdb saptools
2> go
1> sp_helpdevice
2> go
3. Stop and disable Job Scheduler

1 > sybmgmtdb..sp_sjobcontrol @name=NULL, @option="stop_js"


2> go
1> sp_configure "enable job scheduler", 0
2> go
4. Drop database 'saptools'
1> use master
2> go
1> drop database saptools
2> go
5. Drop database device for database 'saptools'

As the default, database 'saptools' is using saptools_data_001 and saptools_log_001.


If you have been created more database device for database 'saptools', please also drop all database device which is
using database 'saptools'
1> sp_dropdevice saptools_data_001
2> go
1> sp_dropdevice saptools_log_001
2> go
6. Delete all database device files for database 'saptools' on OS by OS command
As the default, database device file for database 'saptools' located under $SYBASE/sapdiag

7. Create database 'saptools' by using the SAP Host Agent

saphostctrl -function SetDatabaseProperty -dbname <SID> -dbtype syb SETUP_LIST_METRICS=saptools

This will create database 'saptools' with data device : 2048 MB and log device : 200 MB

If the database size differs with the result of above 2. step, please increase the database size for database 'saptools'.

Data device

Expand an existing database device


1> use master
2> go
1> disk resize name = "<device_name>", size = "<size>M"
2> go
1> alter database saptools on <device_name>= "<size>M"
2> go

OR

Add the new database device


1 > use master
2> go
1> disk init name = '<new_device_name>', physname = '<path/filename>', size = "<size>M"
2> go
1> alter database saptools on <new_device_name> = "<size>M"
2> go
Log Device
Expand an existing database device
1 > use master
2> go
1> disk resize name = "<log_device_name>", size = "<size>M"
2> go
1> alter database saptools log on <log_device_name> = "<size>M"
2> go

OR

Add the new database device


1 > use master
2> go
1> disk init name = '<new_log_device_name>', physname = '<path/filename>', size = "<size>M"
2> go
1> alter database saptools log on <new_log_device_name> = "<size>M"
2> go
8. Check the status for database 'saptools'

Please check whether it was matching with the status of above 2. step result.

1> sp_helpdb saptools


2> go

9. Check BALDR version

If BALDR version differs with the result of above 1. step or need to implement latest BALDR version, please run the
scripts in the following note attached.
Note 2502193 - SYB: BALDR - New Monitoring Persistency Layer for SAP ASE

10. Start and enable Job Scheduler

1> sp_configure "enable job scheduler", 1


2> go
1> sybmgmtdb..sp_sjobcontrol @name=NULL, @option="start_js"
2> go

See Also
SAP KBA 2926293 - How to Determine your current BALDR release
SAP Note 2502193 - SYB: BALDR - New Monitoring Persistency Layer for SAP ASE
ASE Reference Manual: Commands : alter database
ASE Reference Manual: Commands : disk init
ASE Reference Manual: Commands : disk resize

Keywords
dbacockpit , DBACOCKPIT , DBA COCKPIT , ATM , Data Collectors , DCF , DBA Cockpit Framework , SP04

Products
Products

SAP Adaptive Server Enterprise 16.0

SAP ERP 6.0

SAP NetWeaver all versions

SAP Solution Manager 7.1

SAP Solution Manager 7.2

This document refers to


SAP Component Title
Note/KBA

2926293 BC-DB-SYB How to Determine your current BALDR release - SAP ASE for BS

2497314 BC-DB-SYB How to recreate database saptools when it is corrupted and no clear backup - SAP ASE for Business
Suite

2502193 BC-DB-SYB SYB: BALDR - New Monitoring Persistency Layer for SAP ASE

ASE Reference Manual: Commands : disk init

ASE Reference Manual: Commands : alter database

ASE Reference Manual: Commands : disk resize

You might also like