#Q

  Рет қаралды 110

Pandey Guruji

Pandey Guruji

Күн бұрын

In SQL, a log refers to a record of events or activities that have occurred within a database or database system. There are several types of logs in SQL, including:
1. *Transaction Log*: Records all changes made to the database, including inserts, updates, and deletes. This log is used for recovery purposes in case of a failure.
2. *Error Log*: Records errors and exceptions that occur during database operations.
3. *Query Log*: Records all SQL queries executed against the database.
4. *Audit Log*: Records sensitive operations, such as login attempts, privilege changes, and data access.
5. *Binary Log*: Records changes to the database in a binary format, used for replication and backup purposes.
Logs are essential for:
- Troubleshooting and debugging
- Auditing and security
- Recovery and backup
- Performance monitoring and optimization
Some common SQL log-related commands include:
- `SELECT * FROM sys.log` (viewing log entries)
- `ALTER DATABASE [database_name] SET LOGGING = ON` (enabling logging)
- `BACKUP LOG [log_name] TO DISK = 'file_name'` (backing up logs)
Note that specific log commands and features may vary depending on the SQL database management system (DBMS) being used, such as MySQL, SQL Server, or Oracle.
#DatabaseInterviewQuestions #Database #InterviewQuestions #SQL #DatabaseManagement #DataAnalysis #DataScience #DatabaseDesign #DatabaseAdministrator #DatabaseDeveloper #DatabaseSkills #DatabaseExpert #DatabaseKnowledge #DatabaseTips #DatabaseTricks #DatabaseSolutions #DatabaseQueries #DatabasePerformance #DatabaseOptimization #DatabaseSecurity

Пікірлер: 1
@KitsuCuts
@KitsuCuts Ай бұрын
Sir i have done an oracle dba class I'm a fresher I'm not getting any calls what should i do???
Complete guide to Database Normalization in SQL
40:51
techTFQ
Рет қаралды 171 М.
SCHOOLBOY. Мама флексит 🫣👩🏻
00:41
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 7 МЛН
Worst flight ever
00:55
Adam W
Рет қаралды 7 МЛН
The 25 SQL Questions You MUST Know for Data Analyst Interviews
32:47
KSR Datavizon
Рет қаралды 223 М.
Become a Data Engineer in 100 Days-Here's How! | Sql for ADE
1:03:54
KSR Datavizon
Рет қаралды 1,1 М.
Postgres just got even faster
26:42
Hussein Nasser
Рет қаралды 23 М.
FULL SQL DATABASE COURSE | Learn SQL in 70 minutes
1:10:01
Mo Chen
Рет қаралды 144 М.
Solving one of PostgreSQL's biggest weaknesses.
17:12
Dreams of Code
Рет қаралды 195 М.
Apple October Event LEAKS - 7 NEW Devices are COMING!
10:20
Max Tech
Рет қаралды 160 М.