전체 글(137)
-
After deleting data in MongoDB, how to reclaim disk space using the compact comm
Recently, while monitoring MongoDB, I was reminded of the importance of DML (Data Manipulation Language) - the ability to query (SELECT), modify (UPDATE), store (INSERT), and delete (DELETE) data. I had a surprising issue with MongoDB: after deleting data, the disk space was not being returned. The disk usage of our MongoDB server had reached 78%, and the MongoDB development server, which hadn't..
2023.03.15 -
Resolving Oracle Archive Capacity Errors: Common Commands and Solutions
0. What is Oracle Archive Capacity Error? An Oracle Archive Capacity Error is a problem that occurs when the archive log files in a database exceed the allowed capacity. In this case, the database can no longer create archive log files, and database operations may be interrupted. Below are common ways to resolve an Oracle Archive Capacity Error: 1.Analyze the error message. 2.Check the database ..
2023.03.15 -
MongoDB Indexing: Advantages, Precautions, and How to Create Background Indexes
1. Advantages of MongoDB Index: - Using indexes in MongoDB has many advantages, such as improving data search speed. 1.Fast data retrieval: By using indexes, data can be searched quickly. Without indexes, all data needs to be searched, but with indexes, the amount of data that needs to be searched is reduced, greatly improving search speed. 2.Query optimization: When using indexes, query process..
2023.03.15 -
Ubuntu 명령어 정리
Ubuntu 명령어를 모두 다루기에는 방대한 양이므로, 여기에서는 기본적인 명령어를 소개합니다. 1. 파일 및 디렉토리 관리 - ls : 현재 디렉토리의 파일 및 디렉토리 목록 표시 ls - cd : 디렉토리 변경 cd folder1 - mkdir : 디렉토리 생성 mkdir folder3 - touch : 빈 파일 생성 touch file3.txt - cp : 파일 복사 cp file1.txt file1_copy.txt - mv : 파일 이동 및 이름 변경 mv file2.txt folder2/file2_new.txt - rm : 파일 삭제 rm file3.txt - rmdir : 디렉토리 삭제 rmdir folder3 2. 패키지 관리 - apt-get : 패키지 설치, 삭제, 업데이트, 검색 등을 ..
2023.03.14 -
Mongodb 인덱스 생성시 주의사항 - ( 백그라운드 인덱스 생성 )
1. mongodb index 장점 - MongoDB에서 인덱스를 사용하는 것은 데이터 검색 속도를 향상시키는 등 많은 장점이 있습니다. 1. 빠른 데이터 검색: 인덱스를 사용하면 데이터를 빠르게 검색할 수 있습니다. 인덱스를 사용하지 않을 경우 모든 데이터를 검색해야 하지만, 인덱스를 사용하면 검색 대상 데이터가 줄어들기 때문에 검색 속도가 크게 향상됩니다. 2. 쿼리 최적화: 인덱스를 사용하면 데이터를 쿼리할 때 쿼리 처리 시간이 크게 줄어듭니다. 데이터를 검색할 때 쿼리가 수행되는 방식을 최적화하기 때문입니다. 3. 데이터 정렬: 인덱스를 사용하면 데이터를 정렬할 때 매우 빠릅니다. 인덱스가 정렬된 상태에서 데이터를 가져오므로, 추가적인 정렬 작업을 수행하지 않아도 됩니다. 4. 중복 데이터 방지:..
2023.03.14 -
오라클 아카이브 용량 에러 해결 방안
0. 오라클 아키이브 용량 에러란? 오라클 아카이브 용량 에러는 데이터베이스의 아카이브 로그 파일이 허용 용량을 초과하여 발생하는 문제입니다. 이 경우 데이터베이스는 더 이상 아카이브 로그 파일을 생성할 수 없으며, 데이터베이스 작업이 중단될 수 있습니다. 아래는 오라클 아카이브 용량 에러를 해결하는 일반적인 방법입니다. 에러 메시지를 분석합니다. 데이터베이스 설정을 확인하고, 아카이브 로그 파일 크기와 보존 기간을 조정합니다. 오래된 아카이브 로그 파일을 삭제합니다. 아카이브 로그 파일 저장 경로를 변경합니다. 데이터베이스 백업을 수행합니다. 오라클 버전을 업그레이드합니다. 데이터베이스 용량을 늘립니다. 아카이브 용량 에러를 해결하기 위한 명령어는 다양하며, 오류 상황과 원인에 따라 적용할 수 있는 명..
2023.03.10