Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: done something dumb!

Re: done something dumb!

From: Joel Garry <joel-garry_at_home.com>
Date: 19 Aug 2004 10:06:32 -0700
Message-ID: <91884734.0408190906.145711e3@posting.google.com>


D Alpern <ivorykeyer88ns_at_nshotmail.com> wrote in message news:<403jh0ttb4u6s98j0nl7vr3h497ml27i35_at_4ax.com>...
> I agree with Howard's suggestion for color coding your telnet session
> desktop. The basis of my color choice, however, is a little bit
> different.. The background color is based upon the environment, not
> the DB version. Bright eye-strain red for production, lurid orange for
> pre-production and a lovely soothing shade of green for test/dev.
>
> In addition, we use a very basic single character prefix standard for
> the SID, dsid for development, tsid for test, psid for pre-production
> and sid (with no prefix) for the production instance.
>

And in case anyone doesn't know how to do it with Reflections, here is what an .rxc file might look like to hp-ux:

[RX Connection]
AutoDescription=0
Version=3
Type=1
Temporary=0
Description=CDE for Production
ResponseTimeout=10
ReceiveTimeout=2
NeverCloseConnection=0
Host=yourhostname
Method=TELNET

line1=1,0,login:|Username:,yourloginname,0,0
line2=2,1,Password:,,0,0
line3=0,0,%|$|>|#,/usr/bin/X11/xauth add %IP#% %C%,0,1
line4=0,0,%|$|>|#,(/usr/bin/X11/dtterm -fg white -bg blue4 -display
%IP#% -name %T% &),0,1

The colors on a unix box are often documented in a file named rgb.txt, on hp-ux it might be in /etc/X11.

I also tend to put dotable files in my local directory, calling more general files in /usr/local/bin, to control environment variables for various local and non-local instances, including my prompt. Interesting ways to set prompts are in Unix Power Tools, like [google "set prompt" in group net.unix-wizards].

So I have a file with this in it (korn shell): . /usr/local/bin/oradbenvfred # which sets TWO_TASK, NLS_LANG, ORACLE_SID, etc.
export SHLIB_PATH=$ORACLE_HOME/lib
export PS1="`whoami`:$ORACLE_SID@`hostname` "'$PWD$ '

There are man pages that say commands for changing the color of the box around the X-window (bordercolor), but I wasn't able to make those work with reflections (last time I tried, several years ago), so if anyone knows how to do that I'd like to know.

jg

--
@home.com is bogus.
$20 digital camera: http://www.usatoday.com/tech/news/2004-08-18-puredigital_x.htm
Received on Thu Aug 19 2004 - 12:06:32 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US