{"id":258290,"date":"2022-12-25T09:16:24","date_gmt":"2022-12-25T01:16:24","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=258290"},"modified":"2022-11-29T10:17:24","modified_gmt":"2022-11-29T02:17:24","slug":"much-server-linux","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/much-server-linux.html","title":{"rendered":"Sql Server \u538b\u7f29\u6570\u636e\u5e93\u65e5\u5fd7\u6587\u4ef6\u7684\u65b9\u6cd5\u89e3\u6790"},"content":{"rendered":"
\u5bfc\u8bfb<\/td>\n | Sql Server \u65e5\u5fd7 _log.ldf\u6587\u4ef6\u592a\u5927\uff0c\u6570\u636e\u5e93\u6587\u4ef6\u6709500g,\u65e5\u5fd7\u6587\u4ef6\u4e5f\u8fbe\u5230\u4e86500g,\u5360\u7528\u78c1\u76d8\u7a7a\u95f4\u8fc7\u5927\uff0c\u4e14\u53ef\u80fd\u5f71\u54cd\u7a0b\u5e8f\u6027\u80fd\uff0c\u9700\u8981\u538b\u7f29\u65e5\u5fd7\u6587\u4ef6\uff0c\u4e0b\u9762\u5c0f\u7f16\u7ed9\u5927\u5bb6\u8bb2\u89e3\u4e0bSql Server \u538b\u7f29\u6570\u636e\u5e93\u65e5\u5fd7\u6587\u4ef6\u7684\u65b9\u6cd5\uff0c\u611f\u5174\u8da3\u7684\u670b\u53cb\u4e00\u8d77\u770b\u770b\u5427<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n Sql Server \u65e5\u5fd7 _log.ldf\u6587\u4ef6\u592a\u5927\uff0c\u6570\u636e\u5e93\u6587\u4ef6\u6709500g,\u65e5\u5fd7\u6587\u4ef6\u4e5f\u8fbe\u5230\u4e86500g,\u5360\u7528\u78c1\u76d8\u7a7a\u95f4\u8fc7\u5927\uff0c\u4e14\u53ef\u80fd\u5f71\u54cd\u7a0b\u5e8f\u6027\u80fd\uff0c\u9700\u8981\u538b\u7f29\u65e5\u5fd7\u6587\u4ef6\u3002<\/p>\n \u538b\u7f29\u65e5\u5fd7\u811a\u672c\u91cc\u8981\u586b\u7684\u540d\u5b57\u4ece\u8981\u538b\u7f29\u7684\u6570\u636e\u5e93\u5c5e\u6027\u91cc\u67e5\u770b<\/p>\n <\/p>\n \u811a\u672c\u6587\u4ef6<\/strong><\/span><\/div>\n use [master]\r\ngo\r\nalter database [dbname] set recovery simple with no_wait\r\ngo\r\nalter database [dbname] set recovery simple\r\ngo\r\n \r\nuse [dbname]\r\ngo\r\ndbcc shrinkfile (N'dblogname',11,truncateonly)\r\ngo\r\n \r\nuse [master]\r\ngo\r\nalter database [dbname] set recovery full with no_wait\r\ngo\r\nalter database [dbname] set recovery full\r\ngo<\/pre>\n |