?
Solved

sql in aix

Posted on 2014-04-24
3
Medium Priority
?
359 Views
Last Modified: 2014-04-25
How can we see the previously used commands in sql prompt in aix.
0
Comment
Question by:vangogpeter
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 77

Expert Comment

by:slightwv (䄆 Netminder)
ID: 40021069
If you mean sqlplus: you can't.  sqlplus doesn't have a command history.

You can only see what is currently in the buffer with a list (or single l) command.
0
 
LVL 23

Expert Comment

by:David
ID: 40021432
There may be a after-market product floating around, but a fast/cheap alternative is to pick up a GUI tool such as Oracle's SQL*Developer, or Dell/Quest's TOAD; there are others, of course.

Within the CLI, I've had limited success just doing a manual copy/paste into a text editor -- or if desperate, a series of screen snapshots using the MS snipping tool.
0
 
LVL 16

Accepted Solution

by:
Wasim Akram Shaik earned 2000 total points
ID: 40021688
also to add .. if you have logged in aix via putty.exe then you could do setting to increase scroll back so as you can always go up and check what you have typed

can be done by clicking on settings and  increase the scrollback by selecting the Window options category and changing the Lines of scrollback option.
This will increase your visibility on terminal window for a limited period but as such with history,  not much can be done as our experts suggested

alternatively spool sql in text file to maintain a history. . not a goodand convenient option though
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.
Suggested Courses

764 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