Oracle12C新特性是什么

这篇文章主要讲解了“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:https://www.cdcxhl.com/article12/isjigc.html

成都网站建设公司_创新互联,为您提供响应式网站微信公众号企业网站制作云服务器服务器托管做网站

广告

声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联

小程序开发