일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
- 유닉스
- JVM
- 자바네트워크
- 자바암호
- kotlin
- 시스템
- write by GPT-4
- 코틀린
- 역학
- chatGPT's answer
- spring data jpa
- 자바
- write by chatGPT
- Java
- 웹 크롤링
- Spring boot
- NIO
- flet
- python
- 고전역학
- 파이썬
- jpa
- 리눅스
- oracle
- 소프트웨어공학
- GPT-4's answer
- 데이터베이스
- android
- 인프라
- Database
- Today
- Total
Akashic Records
How to enable oracle archivelog 본문
To enable archivelog mode in Oracle, follow these steps:
1. Connect to the database using SQL*Plus or a similar tool as a user with SYSDBA privileges.
2. Check the current log mode of the database by running the following command:
SELECT log_mode FROM v$database;
This will show whether the database is currently in NOARCHIVELOG or ARCHIVELOG mode.
3. If the database is currently in NOARCHIVELOG mode, shut down the database using the SHUTDOWN IMMEDIATE command.
4. Start up the database in MOUNT mode using the following command:
STARTUP MOUNT;
5. Enable archivelog mode using the ALTER DATABASE command as follows:
ALTER DATABASE ARCHIVELOG;
6. Open the database using the following command:
ALTER DATABASE OPEN;
7. Verify that the database is now in ARCHIVELOG mode by running the following command:
SELECT log_mode FROM v$database;
This should show that the database is now in ARCHIVELOG mode.
8. After enabling archivelog mode, make sure to back up your database regularly to prevent the archive logs from filling up the disk. You can set up a backup strategy using Oracle Recovery Manager (RMAN) or a similar tool.
Note: Enabling archivelog mode requires a database restart, so be sure to plan accordingly and schedule downtime as needed.
'Database Learning Guide' 카테고리의 다른 글
Explain Oracle database backup (0) | 2023.03.13 |
---|---|
노-아카이브와 아카이브 모드 (0) | 2023.03.13 |
I am trying to study database. How would you like to start? (0) | 2023.03.10 |
아카이브 로그로 복구 할때 특정 시점까지 지정할수 있나? (0) | 2023.03.03 |
오라클 11에서 아카이브로그을 이용해 데이터 복구하는 방법 설명해줘 (0) | 2023.03.03 |