Oracle12C新特性是什么

這篇文章主要講解了“Oracle 12C新特性是什么”,文中的講解內(nèi)容簡單清晰,易于學(xué)習(xí)與理解,下面請大家跟著小編的思路慢慢深入,一起來研究和學(xué)習(xí)“Oracle 12C新特性是什么”吧!

創(chuàng)新互聯(lián)公司專業(yè)為企業(yè)提供廣昌網(wǎng)站建設(shè)、廣昌做網(wǎng)站、廣昌網(wǎng)站設(shè)計(jì)、廣昌網(wǎng)站制作等企業(yè)網(wǎng)站建設(shè)、網(wǎng)頁設(shè)計(jì)與制作、廣昌企業(yè)網(wǎng)站模板建站服務(wù),十年廣昌做網(wǎng)站經(jīng)驗(yàn),不只是建網(wǎng)站,更提供有價(jià)值的思路和整體網(wǎng)絡(luò)服務(wù)。

在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;

---重新執(zhí)行第二條  

SQL> hist 2 run

---編輯第二條

SQL> hist 2 edit

感謝各位的閱讀,以上就是“Oracle 12C新特性是什么”的內(nèi)容了,經(jīng)過本文的學(xué)習(xí)后,相信大家對Oracle 12C新特性是什么這一問題有了更深刻的體會,具體使用情況還需要大家實(shí)踐驗(yàn)證。這里是創(chuàng)新互聯(lián),小編將為大家推送更多相關(guān)知識點(diǎn)的文章,歡迎關(guān)注!

文章名稱:Oracle12C新特性是什么
當(dāng)前URL:http://muchs.cn/article12/isjigc.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供響應(yīng)式網(wǎng)站微信公眾號、企業(yè)網(wǎng)站制作、云服務(wù)器、服務(wù)器托管、做網(wǎng)站

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)

小程序開發(fā)