For more information about how to enable the archive log mode and modify
References
Refer to this setting in the document to enable the archive log mode and modify the default path for archiving logs.
Alter system set log_archive_dest = "location =/u01/app/Oracle/baklog" scope = spfile;
A problem occurs after execution. After the database is closed, it cannot start,
Bytes ------------------------------------------------------------------------------------
SQL> startup nomount;
ORA-32004: obsolete or deprecated parameter (s) specified for RDBMS instance
ORA-16032: parameter LOG_ARCHIVE_DEST destination string cannot be translated
ORA-07286: sksagdi: cannot obtain device information.
Linux-x86_64 Error: 2: No such file or directory
Bytes -------------------------------------------------------------------------------------
The reason is that log_archive_dest is a parameter of an earlier version and is an obsolete parameter. The keyword such as location service cannot be used. The new version is set to the path log_archive_dest_N (N can be 1, 2, 4) 10 Gb supports 10 paths: 11 GB to 31.
Problem solving process. Because my database is installed on the ASM disk, it cannot be used
Create pfile = '/tmp/init. ora' from spfile this command exports the spfile file. Note that the spfile file is a binary file and cannot be edited directly. If the database is installed on the file system, execute this statement directly.
In my environment, execute create pfile = '/tmp/init. ora' from spfile = '+ DATA/orcl/spfileorcl. ora'
This means to export the spfile to the/tmp/init. ora file,
View the init. ora file and find the wrong line. The modification is correct.
---------------------------------------------------------------------------------
[Oracle @ oracle ~] $ Cat/tmp/init. ora
Orcl. _ db_cache_size = 637534208
Orcl. _ Java _pool_size = 16777216
Orcl. _ large_pool_size = 16777216
Orcl. _ oracle_base = '/u01/app/oracle' # ORACLE_BASE set from environment
Orcl. _ pga_aggregate_target = 671088640
Orcl. _ sga_target = 989855744
Orcl. _ shared_io_pool_size = 0
Orcl. _ shared_pool_size = 301989888
Orcl. _ streams_pool_size = 0
*. Audit_file_dest = '/u01/app/oracle/admin/orcl/adump'
*. Audit_trail = 'db'
*. Compatible = '11. 2.0.0.0'
*. Control_files = '+ DATA/orcl/controlfile/current.260.790263943', '+ FRA/orcl/controlfile/current.256.790263943'
*. Db_block_size = 8192
*. Db_create_file_dest = '+ data'
*. Db_domain =''
*. Db_name = 'orcl'
*. Db_recovery_file_dest = '+ fra'
*. Db_recovery_file_dest_size = 4070572032
*. Diagnostic_dest = '/u01/app/oracle'
*. Dispatchers = '(PROTOCOL = TCP) (SERVICE = orclXDB )'
*. Log_archive_dest = 'location =/u01/app/oracle/baklog' pay attention to this line.
*. Memory_target = 1655701504
*. Nls_language = 'simplified CHINESE'
*. Nls_territory = 'China'
*. Open_cursors = 300
*. Processses = 150
*. Remote_login_passwordfile = 'clusive'
*. Undo_tablespace = 'undotbs1'