Quantcast
Channel: SCN : All Content - SAP Adaptive Server Enterprise (SAP ASE) for Custom Applications
Viewing all articles
Browse latest Browse all 757

how to re-enabled the threshold sp?

$
0
0

I have a threshold set on log segment with action procedure.

Then I increased log segment space and got message said the threshold disabled.

 

this is the info from

 

sp_helpthreshold 'logsegment'

go

 

segment namefree pageslast chance?threshold procedure
1logsegment3000000dbo.sp_thresholdaction
2logsegment3000161dbo.sp_thresholdaction_lastchance

 

 

Here is what I am trying to do: drop it and recreated it again:

 

---1. drop one, it is okay.

EXEC sp_dropthreshold 'mydb','logsegment',300000

go

 

--2. drop another one:

EXEC sp_dropthreshold 'mydb','logsegment',300016

go

 

---got followinng error message:

Procedure (sp_dropthreshold) You may not drop the log's last-chance threshold.

 

--3. try to put it back:

EXEC sp_addthreshold 'mydb','logsegment',300000,'dbo.sp_thresholdaction'

go

 

---got following message

Procedure (sp_addthreshold) This threshold is too close to one or more existing thresholds.  Thresholds must be no closer than 128 pages to each other.

 

How to resolve this problem?


Viewing all articles
Browse latest Browse all 757

Trending Articles



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