Script

Doug's Oracle Blog

  • Home
  • Papers
  • Books
  • C.V.
  • Fun
  • Oracle Blog
  • Personal Blog

Oct 28: Script

Well, as the which blog was deemed useful (although most commentors did already know about it), how about the script Unix command?

It's very useful for keeping a record of an extended series of actions, like those a DBA will often encounter when implementing a complex change. It's also useful for attaching a complex working example to a Service Request to illustrate a problem. (That was the example that cropped up the other day that prompted this blog.)
Posted by Doug Burns Comments: (5) Trackbacks: (0)
Defined tags for this entry: Unix/Shell
Related entries by tags:
Paste
Which?

Trackbacks
Trackback specific URI for this entry

No Trackbacks

Comments
Display comments as (Linear | Threaded)

#1 - Noons said:
2007-10-29 05:18 - (Reply)

tee -a
is also not bad at all as a quick and dirty "script".

#2 - laurent schneider said:
2007-10-29 08:14 - (Reply)

I do not like in script that you need to be clever to uncipher the command that have been typed

If the admin types

hello[CTRL-A][CTRL-D][CTRL-D][CTRL-D][CTRL-E]s

the command issued is

ls

another way is to turn on logging on a terminal basis, like xterm -lf filename, but it does not work on AIX :-(

Off topic, but a good tool to run script that should not crash when the user PC or session crashes is SCREEN.

Check
man screen

Cheers

#2.1 - Doug Burns said:
2007-10-29 18:33 - (Reply)

I do not like in script that you need to be clever to uncipher the command that have been typed

True, and a definite weakness, but hopefully not so bad when I'm just running set procedures. It might also be deemed useful (if tricky) to decipher the real actions ;-)

#3 - bill banham 2007-11-02 14:10 - (Reply)

script is excellent but as with all sub-shells you lose aliases and functions so remember to source .profile again after typing script.

#3.1 - Doug Burns said:
2007-11-02 21:27 - (Reply)

Good point, Bill


Add Comment

Standard emoticons like :-) and ;-) are converted to images.
E-Mail addresses will not be displayed and will only be used for E-Mail notifications.
BBCode format allowed
 
 

Statistics on Partitioned Tables

Contents

Part 1 - Default options - GLOBAL AND PARTITION
Part 2 - Estimated Global Stats
Part 3 - Stats Aggregation Problems I
Part 4 - Stats Aggregation Problems II
Part 5 - Minimal Stats Aggregation
Part 6a - COPY_TABLE_STATS - Intro
Part 6b - COPY_TABLE_STATS - Mistakes
Part 6c - COPY_TABLE_STATS - Bugs and Patches
Part 6d - COPY_TABLE_STATS - A Light-bulb Moment
Part 6e - COPY_TABLE_STATS - Bug 10268597

Comments

Doug Burns about 10053 Trace Files - Different Plan in Different Environments
Tue, 02.04.2013 08:57
You're welcome. Now I just nee d to pull my finger out and ac tually come up [...]
Howard Rogers about 10053 Trace Files - Different Plan in Different Environments
Mon, 01.04.2013 23:08
Makes a big difference, so tha nks for that! With two brow ser windows, o [...]
stelioscharalambides.com about 10053 Trace Files
Sat, 30.03.2013 16:28

Upcoming Presentations

Bookmark

Open All | Close All

Syndicate This Blog

  • XML RSS 2.0 feed
  • ATOM/XML ATOM 1.0 feed
  • XML RSS 2.0 Comments
  • Feedburner Feed

Powered by

Serendipity PHP Weblog

Show tagged entries

xml 11g
xml ACE
xml adaptive thresholds
xml ASH
xml Audit Vault
xml AWR
xml Blogging
xml conferences
xml Cuddly Toys
xml Database Refresh
xml DBMS_STATS
xml Direct Path Reads
xml Fun
xml grid control
xml hotsos 2010
xml listener
xml Locking
xml oow
xml oow2009
xml optimiser
xml OTN
xml Parallel
xml Partitions
xml Patching
xml swingbench
xml The Reality Gap
xml time matters
xml ukoug
xml ukoug2009
xml Unix/Shell
xml Useful Links

Disclaimer

For the avoidance of any doubt, all views expressed here are my own and not those of past or current employers, clients, friends, Oracle Corporation, my Mum or, indeed, Flatcat. If you want to sue someone, I suggest you pick on Tigger, but I hope you have a good lawyer. Frankly, I doubt any of the former agree with my views or would want to be associated with them in any way.

Design by Andreas Viklund | Conversion to s9y by Carl