Command history in SQLplus

Hello,
How I can get sql command histyory in sqlplus. I am using Oracle 9i version 2 on Red Hat 9. Thank you in advance.

iSQL*Plus has a History tab which lists all the commands issued in the current session. Command line SQL*Plus has no history function, other than the command buffer which contains the last command issued.
Alison

Similar Messages

  • Sqlplus command history

    Hi,
    is there any command history available inside of sqlplus (or svrmgrl)?
    Thank you.

    <flame>
    i don't think sqlplus has been updated since oracle 5. after all what would separate dba's from the rest of us if we could just the up arrow instead of 1c/this/that blah
    next thing your'll be asking for intellegent column widths instead of the set a10 rubbish
    what do you think this is postgres?
    </flame>

  • ICE Command History

    <p>Hi,</p><p>One way of getting an easy to edit command history is to use JLine as a wrapper for ICE.</p><p>You can download JLine from:</p><p>http://jline.sourceforge.net/</p><p>After you have downloaded and unzipped JLine, copy the JLine.jar file to the Quark distribution directory.</p><p>Then on windows:</p><p>create a new file "set-javacp-extended.bat" in the Quark directory containing the following line:</p><p> set JAVACP_PATH=%JAVACP_PATH%;jline-0.9.9.jar</p><p>edit ICE.bat so that it looks like this:</p><p>@rem This starts ICE with the cal.samples.cws workspace.</p><p>@javacp -DCAL.workspace.spec="StandardVault cal.samples.cws"  jline.ConsoleRunner com.businessobjects.lang.cal.ICE %1 %2 %3 %4 %5 %6 %7 %8 %9</p><p> And then start ICE using ICE.bat as normal, and ICE will run with full command line editing thanks to Jline. </p><p>On UNIX/Mac:</p><p> create a new file "set-javacp-extended.sh" in the Quark directory containing the following line:</p><p>set JAVACP_PATH=$JAVACP_PATH:jline-0.9.9.jar </p><p>edit ICE.sh so that it looks like this:</p><p>#!/bin/sh</p><p># This starts ICE with the cal.samples.cws workspace.</p><p>cd "`dirname "$0"`"</p><p>./javacp-workspace.sh cal.samples.cws jline.ConsoleRunner com.businessobjects.lang.cal.ICE $*</p><p> </p><p>I&#39;m afraid this won&#39;t give you tab completion - that would require updating ICE to use jline directly and supplying some completers...  </p><p>Magnus.</p><p> </p><p> </p><p> </p><p> </p>

    There is some support for command history in ICE . The commands can be seen by typing :h on the ICE command line.<br />:spc                               (Show previously executed commands in a numbered list)<br />:pc <command number>               (Execute a previous command indicated by the command number)<br />:npc <number of commands>          (Set the size of the command history)<br />:rr                                (Re-evaluate the last entered CAL expression.)<br /><br />One can also script ICE commands, editing the script in one&#39;s preferred editor. Note that script files support /*.. */ and // style comments and can also contain any other ICE commands, one per line.<br />:script <script file name>         (Run the specified script.)<br /><br />ICE itself just uses the standard Java console which doesn&#39;t support the functionality needed for some fancier shell-like features such as up-down arrow command histories. However, it is possible to write a custom shell (i.e. essentially a Java UI program), to get some of the features you suggest. <br /><br />

  • How to Clean the Command History in SAP Logon Screen

    Hi
    Can any one let me know on how to clean the Command History (Where we generally enter the T Codes) in SAP Logon Screen.
    I dont want to List/see all the Previous command Hits in drop down box.
    Thanks
    Dan

    Hi Eric and Markus,
    We found the Solution and off course we did good R & D, Finally I am able to implement the fix to Clear the Command Line History.
    All I did is I Disabled the Permissions for Code Folder (Right Click > Permissions > Deny) in Regedit.
    Thats It, The Commands stopped storing in the History.
    Thank you Erick and Markus.
    Rg
    Dan

  • Command history in sh

    Hello all,
    do I understand this right ... that in solaris 10 only csh ksh have this command history feature, sh does not have it?
    if I m wrong, then how to enable command history in sh. thanks.
    Regards!

    You are partially right.
    sh doesn't do command history, but most of the other shells available in Solaris 10 do; ksh, tcsh, bash probably csh and maybe some others which i might have forgotten.
    //Magnus

  • Where can I find the LOG file for bash/command history typed into Terminal?

    Where can I find the LOG file for bash/command history typed into Terminal?
    For 2 weeks ago I was searching for a log file on my server. Somehow I opend a file where I could see a list of all bash-commands I had ever entered into OSX Terminal.
    Now I need this file.. but cant find it.
    What is the official location for this LOG file?
    Thank you so much for helping.

    cat .bash_history

  • Want to know where oracle stores its command history?

    Hi,
    I want to know that as one user execute a command(sql/PL?SQL)...where this command history is stored in oracle....
    like a table is truncate by user...i just wann to know the detail of user who fired it,timestamp.......
    Thanks in advance

    Hi,
    I am also facing a similar situation where I need to get information as to who changed data last month.
    Can anyone please point me to some documents as to how I can get this information or how can I develop an auditing strategy so that next time I can get this info.
    Thanks

  • Command History

    I use TELNET to connect to a Solaris server. I have the following doubts:
    1. I would like to know how to get the command history from the prompt. For example in dos, if we hit the Up Arrow, we get the previous command. I am not getting this in my telnet session at the prompt.
    2. My OS version is SunOS 5.9. Is that equivalent to Solaris9 ?
    3. I usually face the problem of typo error. If I had to type a very big command, and if i made a typing error, I am not able to use backspace button. That adds another control character onto the command. How do we achieve the backspace functionality at the command prompt ?
    Thanks in advance,
    - Prasad P

    1) It depends on which shell you are using, the default shell if you login as root is bourne-shell, which do not have command history. What you should do if you want to have command history is to switch to "bash", "tcsh" or "ksh". (Just type "bash" and you will enter the more feature-rich bash shell).
    2) Yes.
    3) Switch to bash, tcsh, ksh or type "stty erase <backspace>".
    7/M.

  • Solaris10 Command history in $HISTFILE

    Solaris 10 Experts
    Recently we upgraded our Solaris8 boxes to Solaris 10 ( all except our nfs box which is still Sol8). I have noticed that on the Sol10 boxes the command history is being written to $HOME/.sh_history instead of $HOME/$HISTFILE in a particular scenario.
    ==== This is what I have in .profile ( home dir is nfs mounted )====
    export HISTFILE="$HOME/.history.`logname`"
    export HISTSIZE=2000
    We use op command to login as the applicatin id. Here are the sequence of events that will give a better understanding of the problem
    e.g my id is "jsmith", application id is "catprod", app is a distributed application on "app1", "app2" , one nfs box "appnfs" and one dbbox "appdb".
    1. Login to box app1( Solaris 10)
    2. op in as the application id
    3. HISTFILE is .history.myid
    ( no issues so far , commands are written to the above file as expected )
    4. ssh to box app2 (Solaris 10)
    5 HISTFILE is .history.catprod
    ( But the commands are always beting written to $HOME/.sh_history file)
    6. ssh to box appnfs ( Solaris 8)
    7. HISTFILE is .history.catprod
    ( no issues , commands are always written to the above file as expected )
    We have the same application running in a UAT environment on Solaris 8 boxes. No issues here always writes to whatever $HISTFILE points to.
    My Questions:
    Why is not always writing to whatever $HISTFILE points to?
    Is this because of the home directory mounted from a nfs box which is on Solaris8.?
    Any pointers will be greatly appreciated. Thanks for your valuable time in advance.

    We just found that if I invoke another shell after I log in it starts to write to the file whatever $HISTFILE points to.
    A workaround may be, but not a acceptable solution.

  • Prevent a command to show up in the command history

    Can I prevent a command to show up in the command history?
    ITextModelCmds::TypeTextCmd does what I want but since I'm calling that command to update some text in order to stay synced with a change the user did, I don't want it to show up in the command history as an entry.
    A command sequence is not the solution as the command is executed in an observer which is notified on the users change.
    I want to circumvent reimplementing TypeTextCmd on my own.
    Regards,
    Martin

    I resolved the problem by regenerating the PDF -- by printing to Postscript and then distilling. I'm now in the process of adding the file information in Properties and making bookmarks again. I trust these additional things don't break the store again.
    Apparently there was some problem somewhere that my store was aware of but that InDesign, Acrobat, and ACS were unaware of.

  • How to get command history with timestamp ?

    how to get command history with timestamp ?

    If you are using bash:
    HISTTIMEFORMAT If this variable is set and not null, its value is used as a format string for strftime(3) to print the time stamp associated with each history entry displayed by the history builtin. If this variable is set, time stamps are written to the history file so they may be preserved across shell sessions.
    [SunOS 5.10/bash] [email protected]:/etc/ftpd
    # HISTTIMEFORMAT="%h/%m - %H:%M:%S ";export HISTTIMEFORMAT;history
        1  Aug/08 - 19:07:52 chmod a+rwx /root
        2  Aug/08 - 19:07:52 ll /
        3  Aug/08 - 19:07:52 tail -f /root/mylog.log
        4  Aug/08 - 19:07:52 vi /usr/dt/bin/Xsession
        5  Aug/08 - 19:07:52 cat /root/mylog.log
        6  Aug/08 - 19:07:52 ls /export/home/p661210/.dt
        7  Aug/08 - 19:07:52 ls -la  /export/home/p661210/.dt
        8  Aug/08 - 19:07:52 cat  /export/home/p661210/.dt/errorlog
        9  Aug/08 - 19:07:52 vi /usr/dt/config/C/sys.dtwmrc
       10  Aug/08 - 19:07:52 ls
       11  Aug/08 - 19:07:52 cat Xresources.jds
       12  Aug/08 - 19:07:52 vi /usr/dt
    [SunOS 5.10/bash] [email protected]:/etc/ftpd
    [SunOS 5.8/bash] root@wgls03:/root
    # HISTTIMEFORMAT="%h/%m - %H:%M:%S ";export HISTTIMEFORMAT;history
        1  Jul/07 - 09:02:21 vi /etc/vfstab
        2  Jul/07 - 09:02:21 mount /store
        3  Jul/07 - 09:02:21 cd /store/bnz
        4  Jul/07 - 09:02:21 ls
        5  Jul/07 - 09:02:21 ./BNZ_installBaseSoftware
        6  Jul/07 - 09:02:21 find /usr -name gunzipCheers,
    Andreas

  • I5 OS command history

    Hi,
    I am wondering if there is a way to see commands entered by a user in Iseries.
    Something like "history" command in unix and linux.
    We need something like this. Does anybody know how to see command history?
    Best Regards

    You can see the command history (and their associated system messages) in the job log. When you log on to an i5/OS telnet session, the job log is automatically active. To see the job log, you have at least two choices:
    1) At i5/OS command line, type the command DSPJOBLOG+Enter, then press F10 to include detailed messages and page up-down to see the job log contents. If there is too much information, press F10 again to filter out details.
    2) At i5/OS command line, type CALL QCMD+Enter. Then press F10 to include detailed messages. From now on, you will always see the job log's contents on the screen. Use Page Up-Down to scan the log.
    To save the job log of the session, use SIGNOFF LOG(*LIST).
    To force all sessions' job log to be saved (in spooled files named QPJOBLOG), you can modify the job description in R3<sid>400 library to include LOG(4 0 SECLVL) and LOGCLPGM(YES).  Use the command WRKJOBD JOBD(R3<sid>400/*ALL) to do the modification.
    You should also run GO CLEANUP and select option 1 (you will not see it if you do not have sufficient authority) and specify how long (in days) to keep "Job logs and other system output" with "Allow automatic cleanup" = Y.
    Hope this help.
    Satid S.
    IBM Thailand

  • Xfce application finder commands history not remembering

    After upgrading to Xfce appfinder 4.10, my command history doesn't seem to retain any new commands. If I want to launch nautilus, for example, I have to type all the way to the "s" before the icon appears and I can launch it. Is there a simple fix?

    I would store the command history (and other settings) using java.util.prefs.Preferences
    /Kaj

  • Clear command history

    How can I clear or reset the Cisco command line history?

    Adam
    You can clear the command history buffer with an exec command. The history buffer size defaults to 10 but you can control the size. If you want to change the size permanently you use a command in line configuration mode: history size and if you want to change it only for your session you use this command in exec mode: term history size .
    So if you want to clear or reset the history buffer I would do this:
    term history size 0 (which empties the buffer)
    term history size 10 (or whatever value it had been set to).
    I tested it and it worked very well for me.
    HTH
    Rick

  • View command history

    Hi-   Is there a way to view your history in script format? What I mean is, view a print-out of your command history like it would appear as if you were executing a series of script commands (in order to view the correct script syntax for whatever you're doing).  The 3D software Maya has this, and it is extremely useful.  I'm guessing Photoshop doesn't have this - ?
    thanks,
    -d

    As far as I know, there is no mask object in photoshop's DOM. Therefore there are no methods to delete it.
    So the only way to do it is using action manager comands. And that is what script listener does.
    Fortunately, there is a library, that already has all the nessesary code: http://www.ps-scripts.com/bb/viewtopic.php?t=318 And it is defenetly more readable then script listener's one.
    You can just copy the functions you need to your script and use them as any other photoshop functions.

Maybe you are looking for

  • Quick Time video import problem (MXPro, not 8)

    I first posted this a few days ago, the help I received has not been too useful, though, so I'm trying again. I've got a flash file (.fla) whose purpose is to create a playable movie slide to be used in another flash presentation. It is a template, a

  • Document browser / Folder Structure in DMS

    Dear Experts, I have activated document browser and was able create folder structure. As per clients requirement, We designed a department wise folder structure. Example : Main Folder 1 Main Folder 2 etc.. Under each main folder a sub folder is creat

  • What are the BEST Books and Best websites for java biginners?

    Dear All, What are the BEST Books and Best websites for java biginners-Especially for fast learning. Thnaks KMK

  • More than 5 base stations...?

    I could use some advicce in setting up what has become a rather complex airport network... Due to the floorplan of our apartment, it's extremely thick (1 meter, stone) walls, the limited location of available sockets and cables (DSL and ethernet) and

  • Delete Attachment - GOS

    Hi, I am deleting a GOS attachment using following code. data: i_borident  type borident,        i_attsrv    type ref to cl_gos_document_service.   i_objectd-objtype = 'YATTA'.   i_objectd-logsys  = 'BO'.   i_objectd-objkey  = inumber.   select * fro