가변길이파일(sparse file) 의 최대영역 줄이는법?

vita1991의 이미지

안녕하세요... 방법을찾지못해 도움을 요청드립니다.

sqlite DBFile 하나가 이렇게 클리가 없는데 7G를 잡아먹고 있습니다.

이로인해 DBCP 라이브러리에서 쿼리수행이되지않고 I/O에러를 발생시키는 현상이 발생하여

크기를 줄여보려 합니다만.. dd등의 유틸로 시도해보았으나 잘 되지 않아요ㅠ

sqlite3 CLI모드에서는 잘 실행되는걸보면 깨진건 아닌것 같습니다..

OS는 솔라리스 sparcv9 이며 파일시스템은 ext4 입니다.

아래는 용량정보입니다.

ls -s 의 경우
14086272
ls -l 의 경우
7212113920

ktd2004의 이미지

혹시 이건 도움이 될까요?

http://www.sqlitetutorial.net/sqlite-vacuum/

shint의 이미지


관련된 내용을 찾아봤습니다. ㅇ_ㅇ;;

//
Limits In SQLite
https://www.sqlite.org/limits.html

Will SQLite performance degrade if the database size is greater than 2 gigabytes?
https://stackoverflow.com/questions/14451624/will-sqlite-performance-degrade-if-the-database-size-is-greater-than-2-gigabytes

Database File Format
https://www.sqlite.org/fileformat.html

DB file size limit #114
https://github.com/sqlitebrowser/sqlitebrowser/issues/114

What is a realistic, real-world, maximum size for a SQLite database?
https://softwareengineering.stackexchange.com/questions/332069/what-is-a-realistic-real-world-maximum-size-for-a-sqlite-database

What is the maximum size of the SQlite database for the archive?
https://support.networkoptix.com/hc/en-us/articles/218168477-What-is-the-maximum-size-of-the-SQlite-database-for-the-archive-

5. Managing SQLite Archives From Application Code
https://www.sqlite.org/sqlar.html

sqlar_compress

14.4. SQLite Archive Update Command
http://code.i-harness.com/ko-kr/docs/sqlite/cli

Sqlite Commant Tutorial
http://sqliteborhan.blogspot.com

//sqlite 파일 용량 줄이기

DB 파일크기 줄이기
http://matthaios.tistory.com/3

sqlite3 파일 사이즈 줄이기
http://jadumate.tistory.com/entry/sqlite3-%ED%8C%8C%EC%9D%BC-%EC%82%AC%EC%9D%B4%EC%A6%88-%EC%A4%84%EC%9D%B4%EA%B8%B0

SQLite 의 모든 것 (1부) - 소개 및 FAQ Database/SQLite
http://crystalcube.co.kr/89

SQLite에 대한 적절한 사용법
https://code-examples.net/ko/docs/sqlite/whentouse

레코드가 많은 경우 SQLite 3 select 성능 관련..
http://www.masterqna.com/android/520/레코드가-많은-경우-sqlite-3-select-성능-관련

SQLite의 FTS를 이용하여 데용량 텍스트 문서 집합에서 효과적으로 검색하기
http://hibrainapps.tistory.com/27

SQLite
2014.10.10 23:28
http://m.blog.daum.net/psyconeer/9

어떻게 코어 데이터 sqlite 파일 크기를 최소화하거나 압축 하시겠습니까?
https://stackoverrun.com/ko/q/2018229

용량큰 테이블 삭제 해도 db용량은 줄어들지 않나요?
http://www.sqler.com/index.php?mid=bSQLQA&category=128529&listStyle=webzine&page=2&document_srl=564068

https://okky.kr

Ms sql ldf log 파일용량 줄이기
https://auctionpro.co.kr/?p=3334

SQLite에 도전하는 오픈소스 모바일 DB ‘렘’
http://www.bloter.net/archives/208063

PostgreSQL: 베큠(VACUUM)을 실행해야되는 이유 그리고 성능 향상
https://blog.gaerae.com/2015/09/postgresql-vacuum-fsm.html

SQLite 파일 용량 줄이기
http://blog.naver.com/PostView.nhn?blogId=haengro&logNo=40083281243

TABLE을 생성하기전에 아래 구문을 추가한다.
PRAGMA auto_vacuum = 1;
그렇지 않으면, DELETE FROM TABLE을 이용해서 모든 내용을 비워도, DB파일의 크기가 줄어들지 않을 것이다.

SQLite - 파일 용량 관련(관리,줄이기)(auto_vacuum)
http://202psj.tistory.com/226

SQLite에서 파일 크기 줄이기
http://blog.purewell.biz/2012/12/sqlite.html

VACUUM;

----------------------------------------------------------------------------
젊음'은 모든것을 가능하게 만든다.

매일 1억명이 사용하는 프로그램을 함께 만들어보고 싶습니다.
정규 근로 시간을 지키는. 야근 없는 회사와 거래합니다.

각 분야별. 좋은 책'이나 사이트' 블로그' 링크 소개 받습니다. shintx@naver.com

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.