這篇文章主要講解了“Oracle 12C新特性是什么”,文中的講解內容簡單清晰,易于學習與理解,下面請大家跟著小編的思路慢慢深入,一起來研究和學習“Oracle 12C新特性是什么”吧!
創新互聯公司專業為企業提供廣昌網站建設、廣昌做網站、廣昌網站設計、廣昌網站制作等企業網站建設、網頁設計與制作、廣昌企業網站模板建站服務,十年廣昌做網站經驗,不只是建網站,更提供有價值的思路和整體網絡服務。
在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
感謝各位的閱讀,以上就是“Oracle 12C新特性是什么”的內容了,經過本文的學習后,相信大家對Oracle 12C新特性是什么這一問題有了更深刻的體會,具體使用情況還需要大家實踐驗證。這里是創新互聯,小編將為大家推送更多相關知識點的文章,歡迎關注!
文章名稱:Oracle12C新特性是什么
當前URL:http://m.newbst.com/article12/isjigc.html
成都網站建設公司_創新互聯,為您提供響應式網站、微信公眾號、企業網站制作、云服務器、服務器托管、做網站
聲明:本網站發布的內容(圖片、視頻和文字)以用戶投稿、用戶轉載內容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網站立場,如需處理請聯系客服。電話:028-86922220;郵箱:631063699@qq.com。內容未經允許不得轉載,或轉載時需注明來源: 創新互聯