sqlite - SQLite VACUUM 使用哪个临时目录
问题描述
以编程方式运行 SQLite VACUUM 命令时,如何在执行命令时查找使用了哪个临时目录。我正在使用 sqlite 版本 3.6.7 我有这个问题,因为我得到以下异常。所以我想检查一下,如果可能的话,更改 VACUUM 使用的临时目录。
java.sql.SQLException: [SQLITE_FULL] Insertion failed because database is full (database or disk is full)
I tried monitoring the following directories (using java WatchService), but no files where changed in those directories by the VACUUM.
/var/tmp
/usr/tmp
/tmp
current directory
I tried executing PRAGMA temp_store_directory on the database, but go the following error(as it is not set/available):
java.sql.SQLException: query does not return ResultSet
解决方案
推荐阅读
- android - 解析 JSON 数组 - 如何?
- javascript - 如何在此代码上添加此函数“setInterval”以使我的页面无需刷新即可获取表单或数据
- matlab - 如何在 Linux 服务器上运行 matlab m 文件脚本
- python - 尝试将简单产品添加到购物车时出现 CSRF 错误
- javascript - nodejs mysql中的动态下拉列表
- php - 如何在 foreach 循环的每个迭代中更改 post 值
- javascript - text() 不返回组件内的文本
- django - 如果他/她尝试在不同的浏览器上登录,我们是否可以避免为单个用户生成多个令牌?
- assembly - 所有英特尔 CPU 芯片组设备接口上的英特尔 ME 影子完全访问操作系统
- c - 输入所有数据后立即出现错误。