Can't allocate space for object 'syslogs' in database 'ge' because 'logsegment' segment is full/has no free extents. If you ran

 问题描述:
00:00000:00001:2007/09/15 10:56:14.76 server  Completed REDO pass for database 'ge'.
00:00000:00001:2007/09/15 10:56:14.76 server  Recovery of database 'ge' will undo incomplete nested top actions.
00:00000:00001:2007/09/15 10:56:14.76 server  Started recovery checkpoint for database 'ge'.
00:00000:00001:2007/09/15 10:56:14.79 server  Completed recovery checkpoint for database 'ge'.
00:00000:00001:2007/09/15 10:56:14.79 server  Started filling free space info for database 'ge'.
00:00000:00001:2007/09/15 10:56:14.80 server  Completed filling free space info for database 'ge'.
00:00000:00001:2007/09/15 10:56:14.81 server  Started cleaning up the default data cache for database 'ge'.
00:00000:00001:2007/09/15 10:56:14.83 server  Completed cleaning up the default data cache for database 'ge'.
00:00000:00001:2007/09/15 10:56:14.83 server  Checking external objects.
00:00000:00001:2007/09/15 10:56:14.83 server  Space available in the log segment has fallen critically low in database 'ge'.  All future modifications to this database will be suspended until the log is successfully dumped and space becomes available.
00:00000:00001:2007/09/15 10:56:14.83 server  Error: 1105, Severity: 17, State: 4
00:00000:00001:2007/09/15 10:56:14.83 server  Can't allocate space for object 'syslogs' in database 'ge' because 'logsegment' segment is full/has no free extents. If you ran out of space in syslogs, dump the transaction log. Otherwise, use ALTER DATABASE to increase the size of the segment.
00:00000:00010:2007/09/15 10:56:14.84 server  Error: 950, Severity: 14, State: 1
00:00000:00010:2007/09/15 10:56:14.84 server  Database 'ge' is currently offline. Please wait and try your command again later.
00:00000:00010:2007/09/15 10:56:14.84 server  Threshold task could not use database 6, and so cannot execute the threshold procedure for segment 2, free space 153616.
00:00000:00010:2007/09/15 10:56:14.84 server  Failed to execute the threshold procedure for database 6, segment 2, free space 153616.
00:00000:00001:2007/09/15 10:56:14.84 server  SQL Server could not bring database 'ge' online.
00:00000:00001:2007/09/15 10:56:14.84 server  Recovery has restored the value of 'local async prefetch limit' for '16K' pool in 'default data cache' from '80' to 'DEFAULT'.
00:00000:00001:2007/09/15 10:56:14.84 server  Recovery has restored the value of 'local async prefetch limit' for '2K' pool in 'default data cache' from '80' to 'DEFAULT'.
00:00000:00001:2007/09/15 10:56:14.88 server  Recovery has restored the original size for '16K' pool and '2K' pool in 'default data cache'.

 

解决方法:

进入isql

1> use master
2> go
1> dump tran ge with no_log
2> go

1> shutdown
2> go

 

日志中信息如下:

00:00000:00011:2007/09/15 10:59:40.13 server  WARNING: ***************************
00:00000:00011:2007/09/15 10:59:40.13 server  Attempt by user 1 to dump xact on db ge with NO_LOG

sybase@CHQWEB:/sybase/ASE-12_5/install> 00:00000:00011:2007/09/15 11:01:05.62 server  Attempt by user 1 to dump xact on db ge with NO_LOG was successful
00:00000:00011:2007/09/15 11:01:05.63 server  WARNING: ***************************

sybase@CHQWEB:/sybase/ASE-12_5/install> 00:00000:00011:2007/09/15 11:02:30.00 server  SQL Server shutdown by request.
00:00000:00011:2007/09/15 11:02:30.00 kernel  ueshutdown: exiting

 

然后重新启动数据库即可

 

参考文章:http://hi.baidu.com/woshi123/blog/item/2328c31166b4c2c7a6ef3f37.html

系统提示Can"t allocate space for object "syslogs" in database 该如何处理?
2007-05-21 21:46

系统提示Can"t allocate space for object "syslogs" in database "cwbase?" because the "logsegment" segment is full……该如何处理?
 

上面的提示指数据库的日志已满,可用系统管理员按如下方法解决:
(1)如果是 master 库:
dump tran master with no_log
(2)如果是用户数据库(如:cwbase1):
可以等待自动清理,过5分钟后,再重启SQLSERVER;否则:
用WISQL连接该帐套数据库后执行以下语句:
use master
go
sp_dboption cwbase1,"trunc. log on chkpt.",false
go
checkpoint
go
dump tran cwbase1 with no_log
go
sp_dboption cwbase1,"trunc. log on chkpt.",true
go
checkpoint
go

第二套帐依次类推,将1改成2、3、4、5……

 

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
好的,我可以帮你编写一个Winhttp的POST请求函数。以下是示例代码: ```c++ #include <windows.h> #include <winhttp.h> #include <iostream> #include <string> #pragma comment(lib, "winhttp.lib") std::string postRequest(std::string url, std::string headers, std::string postData) { HINTERNET hSession = NULL, hConnect = NULL, hRequest = NULL; DWORD dwSize = 0; DWORD dwDownloaded = 0; LPSTR pszOutBuffer = NULL; std::string response; // Initialize WinHTTP. hSession = WinHttpOpen(L"WinHTTP Example/1.0", WINHTTP_ACCESS_TYPE_DEFAULT_PROXY, WINHTTP_NO_PROXY_NAME, WINHTTP_NO_PROXY_BYPASS, 0); if (!hSession) { goto cleanup; } // Specify an HTTP server. hConnect = WinHttpConnect(hSession, L"sellercentral.amazon.com.au", INTERNET_DEFAULT_HTTPS_PORT, 0); if (!hConnect) { goto cleanup; } // Create an HTTP request handle. hRequest = WinHttpOpenRequest(hConnect, L"POST", L"/ap/signin", NULL, WINHTTP_NO_REFERER, WINHTTP_DEFAULT_ACCEPT_TYPES, WINHTTP_FLAG_SECURE); if (!hRequest) { goto cleanup; } // Add request headers. if (!WinHttpAddRequestHeaders(hRequest, headers.c_str(), headers.length(), WINHTTP_ADDREQ_FLAG_ADD)) { goto cleanup; } // Send a request. if (!WinHttpSendRequest(hRequest, WINHTTP_NO_ADDITIONAL_HEADERS, 0, (LPVOID)postData.c_str(), postData.length(), postData.length(), 0)) { goto cleanup; } // End the request. if (!WinHttpReceiveResponse(hRequest, NULL)) { goto cleanup; } // Query headers size. if (!WinHttpQueryHeaders(hRequest, WINHTTP_QUERY_RAW_HEADERS_CRLF, WINHTTP_HEADER_NAME_BY_INDEX, NULL, &dwSize, WINHTTP_NO_HEADER_INDEX)) { goto cleanup; } else { // Allocate memory for the buffer. pszOutBuffer = new char[dwSize]; if (!pszOutBuffer) { goto cleanup; } // Read the headers. if (!WinHttpQueryHeaders(hRequest, WINHTTP_QUERY_RAW_HEADERS_CRLF, WINHTTP_HEADER_NAME_BY_INDEX, pszOutBuffer, &dwSize, WINHTTP_NO_HEADER_INDEX)) { goto cleanup; } else { response.append(pszOutBuffer); response.append("\r\n"); } } // Read the response. do { dwSize = 0; if (!WinHttpQueryDataAvailable(hRequest, &dwSize)) { goto cleanup; } if (dwSize == 0) { break; } // Allocate space for the buffer. pszOutBuffer = new char[dwSize + 1]; if (!pszOutBuffer) { goto cleanup; } // Read the data. ZeroMemory(pszOutBuffer, dwSize + 1); if (!WinHttpReadData(hRequest, (LPVOID)pszOutBuffer, dwSize, &dwDownloaded)) { goto cleanup; } // Append the response to the buffer. response.append(pszOutBuffer); // Free the memory allocated to the buffer. delete[] pszOutBuffer; } while (dwSize > 0); cleanup: // Clean up the resources. if (hRequest) WinHttpCloseHandle(hRequest); if (hConnect) WinHttpCloseHandle(hConnect); if (hSession) WinHttpCloseHandle(hSession); if (pszOutBuffer) delete[] pszOutBuffer; return response; } ``` 这个函数接受三个参数: - `url`:请求的URL地址,这里是`https://sellercentral.amazon.com.au/ap/signin`。 - `headers`:请求头,可以自行构造需要的请求头。 - `postData`:请求数据,可以自行构造需要POST的数据。 函数返回的是一个字符串,其中包含了响应头和响应内容。你可以使用这个函数来向指定URL发送POST请求,并获取响应。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值