D:\instantclient_12_2>sqlplus hr/hr@pdbtest
SQL*Plus: Release 12.2.0.1.0 Production on Fri Dec 29 15:32:34 2017
Copyright (c) 1982, 2016, Oracle. All rights reserved.
Last Successful login time: Fri Dec 29 2017 15:16:43 +08:00
Connected to:
Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production
SQL> history
SP2-1650: History is off, use "SET HIST[ORY] ON" to enable History.
SQL> SET HIST ON
SQL> show hist
history is ON and set to "100"
SQL> hist
1 show hist