12c rman中輸入sql命令

12c以前版本,要在rman中執行sql語句,必須使用sql "alter system switch logfile";
而在12c版本中,能夠支持大量的sql語句了:
好比:

C:\Users\zhengquan>rman target /

恢復管理器: Release 12.2.0.1.0 - Production on 星期六 4月 1 17:15:52 2017

Copyright (c) 1982, 2017, Oracle and/or its affiliates. All rights reserved.

已鏈接到目標數據庫: ORCL (DBID=1467954999)

RMAN> select * from dual;

使用目標數據庫控制文件替代恢復目錄
D
-
X

RMAN> select group#,sequence#,status from v$log;

GROUP# SEQUENCESTATUS

1 1 INACTIVE
2 2 CURRENT
3 0 UNUSED

RMAN>

這樣是否是很方便.sql

相關文章
相關標籤/搜索