Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to enable or disable replay functionality

Posted on 2009-04-12
2
Medium Priority
?
613 Views
Last Modified: 2013-12-27
How to enable or disable replay functionality for AIX, HP-UX, Solaris , linux.

for example if i did sqlplus '/as sysdba' and exit and after some time i do "r sql" then
sqlplus '/as sysdba' gets executed how is that done , how to enable or disable this feature.
0
Comment
Question by:umesh4exp
2 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 1600 total points
ID: 24125678
Hi,

that feature is called 'command history' and is part of your shell, e.g. Korn Shell, regardless of the OS used.

If it's korn shell,  'r' is most probably an alias for the 'fc' command, which exists as a shell builtin as well as a binary file /usr/bin/fc.Check this by issuing 'alias r', and use 'man fc' to learn more.

You can control the size of the command history by setting the HISTSIZE variable, and you can set the location of the history file by setting the HISTFILE variable.

Disabling this feature is done by setting the 'nolog' option: 'set -o nolog'. If desired, set this option in your .profile.

Cheers

wmp

0
 
LVL 62

Assisted Solution

by:gheist
gheist earned 400 total points
ID: 24137009
also you can use "script" command to record all terminal IO for debug purpose.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question