In sybase, table space logs are full. How to delete table records.
Source: Internet
Author: User
In sybase, table space logs are full. How to delete table records. -- Linux general technology-Linux technology and application information. For details, refer to the following section. During high-traffic testing of procedural performance, the program writes too many logs into sybase data, resulting in a prompt when performing operations on the table (such as deleting logs:
"The transaction log in the database *** is full and will not be suspended until there is available space in the log"
Every table in this database is like this. Except for queries, other operations cannot be performed, and the program connecting to this database cannot run smoothly.
How can this problem be solved? How do I delete records in a table?
Two solutions:
1. dump transaction test with truncate_only truncates logs (Note: This is used when your database has been backed up, so as to ensure the security of the Evidence)
2. alter database test log on newdevice = [addSize] add logs. If there is no full backup, directly add logs.
Note: test is only your database name. The second method should be executed under the master database.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service