關於歸檔日誌的切換測試

流浪的野狼發表於2014-12-25

[oracle@node02 ~]$ sqlplus / as sysdba

 

SQL*Plus: Release 12.1.0.1.0 Production on Wed Dec 10 10:34:02 2014

 

Copyright (c) 1982, 2013, Oracle.  All rights reserved.

Connected to:

Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production

With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,

Advanced Analytics and Real Application Testing options

 

SQL> archive log list;

Database log mode          Archive Mode

Automatic archival         Enabled

Archive destination        USE_DB_RECOVERY_FILE_DEST

Oldest online log sequence     30

Next log sequence to archive   31

Current log sequence           31

SQL> alter system switch logfile;

 

System altered.

 

SQL> archive log list;

Database log mode          Archive Mode

Automatic archival         Enabled

Archive destination        USE_DB_RECOVERY_FILE_DEST

Oldest online log sequence     31

Next log sequence to archive   32

Current log sequence           32

SQL> select name,open_mode from v$pdbs;

 

NAME                   OPEN_MODE

------------------------------ ----------

PDB$SEED               READ ONLY

PDB01                  READ WRITE

 

SQL> alter session set container=pdb01;

 

Session altered.

 

SQL> archive log list;

Database log mode          Archive Mode

Automatic archival         Enabled

Archive destination        USE_DB_RECOVERY_FILE_DEST

Oldest online log sequence     31

Next log sequence to archive   32

Current log sequence           32

SQL> alter system switch logfile;

alter system switch logfile

*

ERROR at line 1:

ORA-65040: operation not allowed from within a pluggable database-------------------在pdb中是不允許switch logfile的

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28612416/viewspace-1379955/,如需轉載,請註明出處,否則將追究法律責任。

相關文章