无法在 Oracle 11g Express 中配置日志归档目标

Unable to configure log archive destination in oracle 11g express

我的机器上有 oracle 11g express,我想更改归档目标。

步骤 1 在执行下面的脚本之前,我有下面的屏幕输出

SQL> archive log list;

Database log mode Archive Mode

Automatic archival Enabled

Archive destination USE_DB_RECOVERY_FILE_DEST

Oldest online log sequence 1

Next log sequence to archive 2

Current log sequence 2

步骤 2 执行脚本更改存档目标后,屏幕输出如下

SQL> ALTER SYSTEM SET log_archive_dest_1='LOCATION=c:\arch\arch\';

System altered.

SQL> archive log list;

Database log mode Archive Mode

Automatic archival Enabled

Archive destination c:\arch\arch\

Oldest online log sequence 1

Next log sequence to archive 2

Current log sequence 2

现在我再次关闭并启动我的数据库实例,然后为什么我的设置已经像第一个屏幕上的前一阶段一样重新更改。

总的来说,我无法更改存档目标。

第 3 步 返回到存档目标位置下方

SQL> shutdown immediate;

ORA-01109: database not open

Database dismounted.

ORACLE instance shut down.

SQL> startup mount;

ORACLE instance started.

Total System Global Area 1068937216 bytes

Fixed Size 2260048 bytes

Variable Size 616563632 bytes

Database Buffers 444596224 bytes

Redo Buffers 5517312 bytes

Database mounted.

SQL> archive log list;

Database log mode Archive Mode

Automatic archival Enabled

Archive destination USE_DB_RECOVERY_FILE_DEST

Oldest online log sequence 1

Next log sequence to archive 2

Current log sequence 2

命令中缺少 Spfile,

ALTER SYSTEM SET log_archive_dest_1='LOCATION=c:\arch\arch\' scope=spfile ; and restart