Table of Contents
1.未设置闪回区时,可以动态配置log_archive_dest或log_archive_dest_1
2.配置闪回区时,不可以动态配置log_archive_dest
3.配置了闪回区和log_archive_dest后,不可动态配置log_archive_dest或log_archive_dest_1
Home Database Mysql Tutorial 做dg时遇到的log_archive_dest、log_archive_dest_1、db_recover

做dg时遇到的log_archive_dest、log_archive_dest_1、db_recover

Jun 07, 2016 pm 03:57 PM
archive log recover meet

前提:归档开启,默认不指定归档目录。 今晚遇到客户那里设置了闪回区和log_archive_dest,不停库做DG时,无法指定log_archive_dest_n参数,巨坑。。实验了下,结论如下: 数据库版本:ORACLE10.2.0.1 1.未设置闪回区时,可以动态配置log_archive_dest或log_ar

前提:归档开启,默认不指定归档目录。

今晚遇到客户那里设置了闪回区和log_archive_dest,不停库做DG时,无法指定log_archive_dest_n参数,巨坑。。实验了下,结论如下:

数据库版本:ORACLE10.2.0.1

1.未设置闪回区时,可以动态配置log_archive_dest或log_archive_dest_1
2.配置闪回区时,不可以动态配置log_archive_dest
3.配置了闪回区和log_archive_dest后,不可动态配置log_archive_dest或log_archive_dest_1

1.未设置闪回区时,可以动态配置log_archive_dest或log_archive_dest_1

SQL> alter database archivelog;
Database altered.
SQL> alter database open;
Database altered.
SQL> show parameter log_archive
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
log_archive_config string
log_archive_dest string /home/oracle/
log_archive_dest_1 string
log_archive_dest_10 string
log_archive_dest_2 string
log_archive_dest_3 string
log_archive_dest_4 string
log_archive_dest_5 string
log_archive_dest_6 string
log_archive_dest_7 string
log_archive_dest_8 string

NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
log_archive_dest_9 string
log_archive_dest_state_1 string enable
log_archive_dest_state_10 string enable
log_archive_dest_state_2 string enable
log_archive_dest_state_3 string enable
log_archive_dest_state_4 string enable
log_archive_dest_state_5 string enable
log_archive_dest_state_6 string enable
log_archive_dest_state_7 string enable
log_archive_dest_state_8 string enable
log_archive_dest_state_9 string enable

NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
log_archive_duplex_dest string
log_archive_format string %t_%s_%r.dbf
log_archive_local_first boolean TRUE
log_archive_max_processes integer 2
log_archive_min_succeed_dest integer 1
log_archive_start boolean FALSE
log_archive_trace integer 0
SQL> alter system set log_archive_dest='';
System altered.
SQL> show parameter recover
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_recovery_file_dest string
db_recovery_file_dest_size big integer 0
recovery_parallelism integer 0

2.配置闪回区时,不可以动态配置log_archive_dest

SQL> show parameter log_archive
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
log_archive_config string
log_archive_dest string
log_archive_dest_1 string
log_archive_dest_10 string
log_archive_dest_2 string
log_archive_dest_3 string
log_archive_dest_4 string
log_archive_dest_5 string
log_archive_dest_6 string
log_archive_dest_7 string
log_archive_dest_8 string
log_archive_dest_9 string
log_archive_dest_state_1 string enable
log_archive_dest_state_10 string enable
log_archive_dest_state_2 string enable
log_archive_dest_state_3 string enable
log_archive_dest_state_4 string enable
log_archive_dest_state_5 string enable
log_archive_dest_state_6 string enable
log_archive_dest_state_7 string enable
log_archive_dest_state_8 string enable
log_archive_dest_state_9 string enable
log_archive_duplex_dest string
log_archive_format string %t_%s_%r.dbf
log_archive_local_first boolean TRUE
log_archive_max_processes integer 2
log_archive_min_succeed_dest integer 1
log_archive_start boolean FALSE
log_archive_trace integer 0
SQL> alter system set log_archive_dest='/home/oracle/'; ----不可动态修改
alter system set log_archive_dest='/home/oracle/'
*
ERROR at line 1:
ORA-02097: parameter cannot be modified because specified value is invalid
ORA-16018: cannot use LOG_ARCHIVE_DEST with LOG_ARCHIVE_DEST_n or
DB_RECOVERY_FILE_DEST
SQL> alter system set log_archive_dest_1='location=/home/oracle/'; -----可动态修改
System altered.
SQL> alter system set log_archive_dest_1='';
System altered.
SQL> alter system set log_archive_dest='/home/oracle/' scope=spfile;


3.配置了闪回区和log_archive_dest后,不可动态配置log_archive_dest或log_archive_dest_1

SQL> startup
ORACLE instance started.
Total System Global Area 524288000 bytes
Fixed Size 1220360 bytes
Variable Size 150995192 bytes
Database Buffers 369098752 bytes
Redo Buffers 2973696 bytes
Database mounted.
Database opened.
SQL> show parameter log_archive_dest
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
log_archive_dest string /home/oracle/
log_archive_dest_1 string
log_archive_dest_10 string
log_archive_dest_2 string
log_archive_dest_3 string
log_archive_dest_4 string
log_archive_dest_5 string
log_archive_dest_6 string
log_archive_dest_7 string
log_archive_dest_8 string
log_archive_dest_9 string
log_archive_dest_state_1 string enable
log_archive_dest_state_10 string enable
log_archive_dest_state_2 string enable
log_archive_dest_state_3 string enable
log_archive_dest_state_4 string enable
log_archive_dest_state_5 string enable
log_archive_dest_state_6 string enable
log_archive_dest_state_7 string enable
log_archive_dest_state_8 string enable
log_archive_dest_state_9 string enable
SQL> alter system set log_archive_dest_1='location=/home/oracle/'; ------不可动态修改
alter system set log_archive_dest_1='location=/home/oracle/'
*
ERROR at line 1:
ORA-02097: parameter cannot be modified because specified value is invalid
ORA-16019: cannot use LOG_ARCHIVE_DEST_1 with LOG_ARCHIVE_DEST or
LOG_ARCHIVE_DUPLEX_DEST


SQL> alter system set log_archive_dest=''; ------不可动态修改
alter system set log_archive_dest=''
*
ERROR at line 1:
ORA-02097: parameter cannot be modified because specified value is invalid
ORA-16018: cannot use LOG_ARCHIVE_DEST with LOG_ARCHIVE_DEST_n or
DB_RECOVERY_FILE_DEST

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Use the math.Log2 function to calculate the base 2 logarithm of a specified number Use the math.Log2 function to calculate the base 2 logarithm of a specified number Jul 24, 2023 pm 12:14 PM

Use the math.Log2 function to calculate the base 2 logarithm of a specified number. In mathematics, the logarithm is an important concept that describes the exponential relationship of one number to another number (the so-called base). Among them, the base 2 logarithm is particularly common and is frequently used in the fields of computer science and information technology. In the Python programming language, we can calculate the base 2 logarithm of a number using the log2 function from the math library. Here is a simple code example: importmathdef

panic and recovery in Golang exception handling panic and recovery in Golang exception handling Apr 15, 2024 pm 06:15 PM

In Go, Panic and Recover are used for exception handling. Panic is used to report exceptions, and Recover is used to recover from exceptions. Panic will stop program execution and throw an exception value of type interface{}. Recover can catch exceptions from deferred functions or goroutines and return the exception value of type interface{} it throws.

Centos7 system—detailed explanation of file compression and decompression commands. Centos7 system—detailed explanation of file compression and decompression commands. Feb 19, 2024 pm 02:30 PM

The CentOS7 system provides a variety of commands for file compression and decompression operations. The following are some commonly used commands and their usage. tar: The tar command is used to package a file or directory and optionally compress it into a tar archive. Create tar compressed package: tar-cvfarchive.tarfile1file2directory Decompress tar compressed package: tar-xvfarchive.tar Create tar.gz compressed package: tar-czvfarchive.tar.gzfile1file2directory Decompress tar.gz compressed package: tar-xzvfarchive.tar.gz Create tar .bz2 compressed package: t

The application of golang framework panic and recovery in debugging The application of golang framework panic and recovery in debugging Jun 04, 2024 pm 01:01 PM

Panic in the Go framework is used to raise unrecoverable exceptions, and Recover is used to recover from Panic and perform cleanup operations. They can handle exceptions such as database connection failures, ensuring application stability and user experience.

How to use Golang's recover() function to handle panics? How to use Golang's recover() function to handle panics? Jun 01, 2024 pm 02:42 PM

By using the recover() function, you can capture panics in the current function context, prevent program crashes and handle errors gracefully: recover() returns nil when a panic does not occur, and returns a panic when an uncaught panic occurs or when recovering from the function where the panic occurred value. Add defer callbacks around function calls to catch panics and perform custom handling, such as logging error information. recover() can only capture panics in the current function context, it will not cancel panics, and it only works on unhandled errors.

Use the math.Log10 function to calculate the base 10 logarithm of a specified number Use the math.Log10 function to calculate the base 10 logarithm of a specified number Jul 25, 2023 pm 06:33 PM

Use the math.Log10 function to calculate the base 10 logarithm of a specified number. Logarithms are a common concept in mathematics and computer science. We often use logarithms to describe the size or proportion of numbers. In computer programming, the commonly used logarithmic function is the logarithmic function with base 10. In the Python language, you can use the log10 function in the math library to calculate the base 10 logarithm of a specified number. Below we will demonstrate the use of this function through a simple code example. First, we need

Why are there problems with PHP8 installation? Why are there problems with PHP8 installation? Jan 05, 2024 am 08:41 AM

Why are you having problems installing PHP8? In recent years, PHP has been one of the preferred languages ​​for developing websites and web applications. As a popular open source programming language, it has extensive functionality and strong community support. However, some people may encounter some problems when installing with PHP8. This article will explore some of the reasons why you may encounter PHP8 installation problems and provide specific code examples to help solve these problems. First, make sure your operating system meets the minimum requirements for PHP8. PHP8 required

Use the log.Println function in golang to print log information Use the log.Println function in golang to print log information Nov 18, 2023 pm 12:14 PM

Title: Use the log.Println function in Golang to print log information. Logs are very important in software development. They can help us track various information during program running, such as errors, warnings, debugging information, etc. In Golang, there is a built-in log package, which provides many functions to handle log output. One of the commonly used functions is log.Println, which prints log information to standard output. Below is a simple example code showing how to use log.Print

See all articles