Oracle 12C新特性-History命令
Oracle 12C新特性-History命令
在12c裡,推出了History命令,類似Shell中的history命令
語法如下:
SQL> help history
HISTORY
-------
Stores, lists, executes, edits of the commands
entered during the current SQL*Plus session.
HIST[ORY] [N {RUN | EDIT | DEL[ETE]}] | [CLEAR]
N is the entry number listed in the history list.
Use this number to recall, edit or delete the command.
Example:
HIST 3 RUN - will run the 3rd entry from the list.
HIST[ORY] without any option will list all entries in the list.
過程如下:
[oracle@cjcos ~]$ sqlplus / as sysdba
SQL> hist
SP2-1650: History is off, use "SET HIST[ORY] ON" to enable History.
SQL> set hist on
SQL> show pdbs
SQL> select * from v$version;
SQL> select tablespace_name from dba_tablespaces;
SQL> alter session set container=cjcpdb01;
SQL> select * from tab;
SQL> hist
1 show pdbs
2 select * from v$version;
3 select tablespace_name from dba_tablespaces;
4 alter session set container=cjcpdb01;
5 select * from tab;
---重新執行第二條
SQL> hist 2 run
---編輯第二條
SQL> hist 2 edit
歡迎關注我的微信公眾號"IT小Chen",共同學習,共同成長!!!
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29785807/viewspace-2681112/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle 12C 新特性之 sqlplus檢視History命令OracleSQL
- Oracle 12c新特性Oracle
- Oracle 12c 新特性(四)Oracle
- Oracle 12c 新特性(三)Oracle
- Oracle 12c 新特性(二)Oracle
- Oracle 12c 新特性(一)Oracle
- Oracle 12c 兩個新特性Oracle
- Oracle 12C新特性In-MemoryOracle
- Oracle GoldenGate 12c 新特性OracleGo
- Oracle 12c新特性--ASMFD(ASM Filter Driver)特性OracleASMFilter
- Oracle 12c新特性之Sequence的Session特性OracleSession
- Oracle 12c DG新特性Far SyncOracle
- Oracle 12c 新特性之 temp undoOracle
- ORACLE 12C新特性——CDB與PDBOracle
- Oracle 12C新特性-RMAN恢復表Oracle
- Oracle 12C 新特性之級聯truncateOracle
- 12c新特性-Oracle Sharding簡介Oracle
- Oracle 12C 新特性之 恢復表Oracle
- Oracle 12c新特性 - Hybrid histogram 3OracleHistogram
- Oracle 12c新特性 - Hybrid histogram 2OracleHistogram
- Oracle 12c新特性 - Hybrid histogram 1OracleHistogram
- Oracle 12c新特性 - Top frequency histogram 3OracleHistogram
- Oracle 12c新特性 - Top frequency histogram 2OracleHistogram
- Oracle 12c新特性 - Top frequency histogram 1OracleHistogram
- oracle 12c 新特性三:rman命令視窗可以執行sql語句OracleSQL
- Oracle 12c 新特性 Active Data Guard Far SyncOracle
- oracle 12c 新特性之不可見欄位Oracle
- oracle 12C 新特性之臨時undo控制Oracle
- Oracle 12C 資料泵新特性測試Oracle
- HTML5 history新特性pushState、replaceStateHTML
- Oracle NET 12c 新特性 (文件 ID 2102464.1)Oracle
- 開發者必讀:Oracle 12c新特性再總結Oracle
- Oracle 資料庫12c新特性總結(一)Oracle資料庫
- Oracle 12c新特性 - Active Data Guard功能增強Oracle
- Oracle 12c 新特性 - 臨時表undo(TEMP UNDO)Oracle
- Oracle 12C新特性-資料泵新引數(LOGTIME)Oracle
- Oracle 12C新特性-資料泵新引數(VIEWS_AS_TABLES)OracleView
- 【12C】Oracle 12C 新特性“可插拔資料庫”功能體驗Oracle資料庫