sybaseASE日志溢出解决方式探究
1.准备数据库环境 --创建设备disk init name=dat1,physname=/opt/sybase/data/dat1,size=1Mdisk init name=log1,physname=/opt/sybase/data/log1,size=1M--设备太小,扩充disk resize name=dat1,size=1M--创建数据库create database test on dat1=2M log on l
1.准备数据库环境
--创建设备 disk init name='dat1',physname='/opt/sybase/data/dat1',size='1M' disk init name='log1',physname='/opt/sybase/data/log1',size='1M' --设备太小,扩充 disk resize name='dat1',size='1M' --创建数据库 create database test on dat1='2M' log on log1='1M'
2.插入数据一直到日志满
use test go create table person(name varchar(64)) insert into person values('name') insert into person select * from person --truncate table person dbcc checktable('syslogs')
3.出现现象如下
1.free为7%,进程出现logsuspend状态,数据库日志中出现 xtasks are sleeping .for space to become available in the log segment for database test 2.进程状态为LOGSUSPEND
4.经测试,执行如下操作可以解决问题
1.如果 syslogshold无数据,则可以直接执行dump transaction test with truncate_only
2.如果 syslogshold有数据,则直接执行dump transaction test with truncate_only,可能报如下错误
‘DUMP TRANSACTION for database 'test' could not truncate the log. Either extend the log using ALTER DATABASE ... LOG ON command or eliminate the oldest active transaction in database 'test' shown in syslogshold table.’
这个时候可以选择三种方式进行处理
1.kill进程,用kill with status_only监控回滚进度
2.重启服务
3.增加设备
重启方式测试:
[root@sybasehost ~]# isql -Usa -P -S ASE12_5_4 1> shutdown 2> go 2 task(s) are sleeping waiting for space to become available in the log segment for database test.
日志中出现如下信息:
SHUTDOWN is waiting for 1 process(es) to complete. SHUTDOWN is waiting for 1 process(es) to complete.
进程hang住,这时从另外一个窗口进去,用shutdown with nowait停掉,然后重启,重启后用户库标红,状态为suspend
执行执行online database test,报错如下
SQL Server could not bring database 'test' online.
执行dump transaction test with truncate_only,然后online database test成功
增加设备方式测试
disk init name='log2',physname='/opt/sybase/data/log2',size='1M' alter database test log on log2 ='1M'
显示执行成功
Extending database by 512 pages (1.0 megabytes) on disk log2 Warning: Using ALTER DATABASE to extend the log segment will cause user thresholds on the log segment within 128 pages of the last chance threshold to be disabled. 执行时间: 1.471 秒
原来挂起的进程自动继续执行
已插入 8192 行 Space available in the log segment has fallen critically low in database 'test'. All future modifications to this database will be suspended until the log is successfully dumped and space becomes available. The transaction log in database test is almost full. Your transaction is being suspended until space is made available in the log. 执行时间: 158.9 秒
总结:
出现日志挂起,先用截断日志的方式处理,如果不行,则根据情况以下采用三种方式处理
1.kill进程,用kill with status_only监控回滚进度
2.重启服务,记着要用shutdown with nowait,重启后要先截断日志再online数据库
3.增加设备

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

As smartphone technology continues to develop, mobile phones play an increasingly important role in our daily lives. As a flagship phone focusing on gaming performance, the Black Shark phone is highly favored by players. However, sometimes we also face the situation that the Black Shark phone cannot be turned on. At this time, we need to take some measures to solve this problem. Next, let us share five tips to teach you how to solve the problem of Black Shark phone not turning on: Step 1: Check the battery power. First, make sure your Black Shark phone has enough power. It may be because the phone battery is exhausted

With the continuous development of social media, Xiaohongshu has become a platform for more and more young people to share their lives and discover beautiful things. Many users are troubled by auto-save issues when posting images. So, how to solve this problem? 1. How to solve the problem of automatically saving pictures when publishing on Xiaohongshu? 1. Clear the cache First, we can try to clear the cache data of Xiaohongshu. The steps are as follows: (1) Open Xiaohongshu and click the "My" button in the lower right corner; (2) On the personal center page, find "Settings" and click it; (3) Scroll down and find the "Clear Cache" option. Click OK. After clearing the cache, re-enter Xiaohongshu and try to post pictures to see if the automatic saving problem is solved. 2. Update the Xiaohongshu version to ensure that your Xiaohongshu

DDREASE is a tool for recovering data from file or block devices such as hard drives, SSDs, RAM disks, CDs, DVDs and USB storage devices. It copies data from one block device to another, leaving corrupted data blocks behind and moving only good data blocks. ddreasue is a powerful recovery tool that is fully automated as it does not require any interference during recovery operations. Additionally, thanks to the ddasue map file, it can be stopped and resumed at any time. Other key features of DDREASE are as follows: It does not overwrite recovered data but fills the gaps in case of iterative recovery. However, it can be truncated if the tool is instructed to do so explicitly. Recover data from multiple files or blocks to a single

0.What does this article do? We propose DepthFM: a versatile and fast state-of-the-art generative monocular depth estimation model. In addition to traditional depth estimation tasks, DepthFM also demonstrates state-of-the-art capabilities in downstream tasks such as depth inpainting. DepthFM is efficient and can synthesize depth maps within a few inference steps. Let’s read about this work together ~ 1. Paper information title: DepthFM: FastMonocularDepthEstimationwithFlowMatching Author: MingGui, JohannesS.Fischer, UlrichPrestel, PingchuanMa, Dmytr

The performance of JAX, promoted by Google, has surpassed that of Pytorch and TensorFlow in recent benchmark tests, ranking first in 7 indicators. And the test was not done on the TPU with the best JAX performance. Although among developers, Pytorch is still more popular than Tensorflow. But in the future, perhaps more large models will be trained and run based on the JAX platform. Models Recently, the Keras team benchmarked three backends (TensorFlow, JAX, PyTorch) with the native PyTorch implementation and Keras2 with TensorFlow. First, they select a set of mainstream

Facing lag, slow mobile data connection on iPhone? Typically, the strength of cellular internet on your phone depends on several factors such as region, cellular network type, roaming type, etc. There are some things you can do to get a faster, more reliable cellular Internet connection. Fix 1 – Force Restart iPhone Sometimes, force restarting your device just resets a lot of things, including the cellular connection. Step 1 – Just press the volume up key once and release. Next, press the Volume Down key and release it again. Step 2 – The next part of the process is to hold the button on the right side. Let the iPhone finish restarting. Enable cellular data and check network speed. Check again Fix 2 – Change data mode While 5G offers better network speeds, it works better when the signal is weaker

I cry to death. The world is madly building big models. The data on the Internet is not enough. It is not enough at all. The training model looks like "The Hunger Games", and AI researchers around the world are worrying about how to feed these data voracious eaters. This problem is particularly prominent in multi-modal tasks. At a time when nothing could be done, a start-up team from the Department of Renmin University of China used its own new model to become the first in China to make "model-generated data feed itself" a reality. Moreover, it is a two-pronged approach on the understanding side and the generation side. Both sides can generate high-quality, multi-modal new data and provide data feedback to the model itself. What is a model? Awaker 1.0, a large multi-modal model that just appeared on the Zhongguancun Forum. Who is the team? Sophon engine. Founded by Gao Yizhao, a doctoral student at Renmin University’s Hillhouse School of Artificial Intelligence.

Recently, the military circle has been overwhelmed by the news: US military fighter jets can now complete fully automatic air combat using AI. Yes, just recently, the US military’s AI fighter jet was made public for the first time and the mystery was unveiled. The full name of this fighter is the Variable Stability Simulator Test Aircraft (VISTA). It was personally flown by the Secretary of the US Air Force to simulate a one-on-one air battle. On May 2, U.S. Air Force Secretary Frank Kendall took off in an X-62AVISTA at Edwards Air Force Base. Note that during the one-hour flight, all flight actions were completed autonomously by AI! Kendall said - "For the past few decades, we have been thinking about the unlimited potential of autonomous air-to-air combat, but it has always seemed out of reach." However now,
