Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3523

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

$
0
0

Hi All,

 

I'm back , I was very glad when retrieving a lot of extremely useful information in my previous post (How do I get the spid of Sybase when using JDBC). I did apply for my project and it has worked perfectly, thank so much for your supports. Today, I come back with some questions about Sybase device and database auto expansion functionality. Hopefully we will have an interesting discussion on this, and then we can find a good solution for my situation. Here is the questions:

 

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 ?

 

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 !!!

 

Thanks

Khoa Tran


Viewing all articles
Browse latest Browse all 3523

Trending Articles



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