Quantcast
Channel: SCN: Message List - SAP Adaptive Server Enterprise (SAP ASE) for Custom Applications
Viewing all articles
Browse latest Browse all 3587

Re: How to capture database auto expansion event that is triggered by Sybase ASE ?

$
0
0

Hi!

1. Can we remove a device without deleting database first ? As far as I know, a device ( physical file on Operating System level ) is the first thing that need to be created before we do another things, such: creating segment, partition, create/alter database ....  Over the time, the data in database will grow more and more bigger, and we need to create a new device to store the data. But we also want to remove old device because it no longer uses, the only way to remove the old device is to delete database first and then removing the device. That is impossible for my product, I did google the solution and there is a suggestion about removing record in sysdevices and sysdatabase tables, but I'm not sure that will be good approach. Would you please share me your idea about this ?

You usually create a new device as additional device, this device adds its storage space to the database, not replaces it. If you want to add a new device and remove the old one, you can use for example disk (device) mirroring.

2. Can we capture the database auto expansion event that is triggered by Sybase ASE ? I'm using the Database Auto Expansion functionality, that is provided by Sybase ASE ($SYBASE_HOME/ASE-15_0/scripts/installdbextend). When enabling this function, we can set the threshold, max device size and growth rate for a specific device. And then Sybase ASE will trigger automatically if threshold is reached, the only way to know the event has occurred or not via Sybase log file  ($SYBASE_HOME/ASE-15_0/install/<Database_Name>.log). I need to know when the event occurs for notification purpose, if you have any ideas on this, please share with me. I really appreciate !!!

I think that you would have to modify threshold stored procedure (sp_dbxt_extend_db) or create your own to send some kind of notification.


Viewing all articles
Browse latest Browse all 3587

Trending Articles



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