- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Oracle 8.16 HP-UX 11.0 startup
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2000 02:14 PM
тАО10-10-2000 02:14 PM
Oracle 8.16 HP-UX 11.0 startup
The oracle script does su - oracle -c dbstart
type processing. A sample follows:
Rights for non-DOD U.S. Government Departments and Agencies are as set
forth in FAR 52.227-19(c)(1,2).
You have mail.
***** Setting up private environment ... *****
Not a terminal
stty: : Not a typewriter
stty: : Not a typewriter
[3g
H H H H H H H H H
mesg: not a tty
LSNRCTL for HPUX: Version 8.1.6.0.0 - Production on 01-OCT-2000 02:15:31
--End of sample---
I would at least like to get rid of the Not a terminal and not a typewriter messages.
Thanks for your HELP.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2000 02:30 PM
тАО10-10-2000 02:30 PM
Re: Oracle 8.16 HP-UX 11.0 startup
The messages you are seeing are a consequence of the .profile being read during the 'su'. The "not a terminal" message is from stty failing to get the terminal type -- it can't; it's not a interactive login.
The easist solution is to redirect stdout & stderr to /dev/null, as:
su - oracle -c "dbstart" > /dev/null 2>&1
This gets rid of the nasty messages.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2000 04:33 PM
тАО10-10-2000 04:33 PM
Re: Oracle 8.16 HP-UX 11.0 startup
as james said its your script is expecting some thing from tty . its most common messge , if you dont like this best way is to redirect standard out and standard error to /dev/null ie > /dev/null 2>&1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2000 10:36 PM
тАО10-10-2000 10:36 PM
Re: Oracle 8.16 HP-UX 11.0 startup
su oracle -c "dbstart"
This prevents the 'profile' scripts from being run so be aware that any script that you run in this manner can't rely on any environment variable being set by them.
Oracle's dbstart script sets up its own environment from /etc/oratab however so it will be ok.
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2000 10:51 PM
тАО10-10-2000 10:51 PM
Re: Oracle 8.16 HP-UX 11.0 startup
you could also put the stty commands within an if..then..fi statement into /home/oracle/.profile:
if [ -t ]
then
stty ....
....
fi
The if [ -t ] checks if the proccess is assosiated with a terminal. If this is not true, then the stty commands are nor executed.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2000 12:58 AM
тАО10-13-2000 12:58 AM
Re: Oracle 8.16 HP-UX 11.0 startup
you don't have to redirect the output of the
"su - c ....". we had the same problem. it happens 'cos the standard system-wide profile has a bug. to solve the problem we simply entered the following lines to the oracle user's profile :
set -u
stty hupcl ixon ixoff 2>/dev/null
This should help
have fun....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2000 01:18 AM
тАО10-13-2000 01:18 AM
Re: Oracle 8.16 HP-UX 11.0 startup
stty hupcl ixon ixoff 2> /dev/null , as Sandro has pointed out.
This will help you correct any problem that occured during startup from the /etc/rc.log file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2000 01:34 AM
тАО10-13-2000 01:34 AM
Re: Oracle 8.16 HP-UX 11.0 startup
Thanks Sandro & Chris. I wasn't aware of the profile setting, although I well appreciated the potential loss of good information with the redirection.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-16-2000 11:40 AM
тАО10-16-2000 11:40 AM
Re: Oracle 8.16 HP-UX 11.0 startup
Special thanks to Sandros and Andreas. I ended up using bothe these recommendations.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-24-2000 11:47 PM
тАО10-24-2000 11:47 PM
Re: Oracle 8.16 HP-UX 11.0 startup
Be aware that the provided dbstart script in 8.1.6 have a bug, that Oracle knows of.
The following is from MetaLink:
Problem Description
===================
"dbstart" is a shellscript used on Unix platforms to start databases
listed in the "oratab" file. It is often called from system startup
scripts.
The "dbstart" script shipped with all versions of Oracle up to and
including 8.1.6 does not start any 8.1.6 instances if they are down.
"dbstart" will report "Database
the instance. This problem only affects 8.1.6 (or later) instances.
The change in the banner may affect users custom startup / shutdown
scripts.
"dbshut" has no problem.
Please note there are 2 related issues which should be born in mind
when changing any startup / shutdown scripts:
Advance notification of Server Manager desupport [NOTE:74943.1]
Advance notification of CONNECT INTERNAL desupport [NOTE:50508.1]
Solution Description
====================
Enterprise Edition Workaround
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The workaround is to change the dbstart script to look for the string
"Oracle8i Enterprise Edition" instead of "PL/SQL" by making the following
changes:
1. Save a copy of the 8.1.6 $ORACLE_HOME/bin/dbstart script
2. Edit the script and change the 'awk' lines
from:
VERSION=`$ORACLE_HOME/bin/svrmgrl command=exit | awk '
/PL/SQL (Release|Version)/ {substr($3,1,3) ;
print substr($3,1,3)}'`
to:
VERSION=`$ORACLE_HOME/bin/svrmgrl command=exit | awk '
/PL/SQL (Release|Version)/ { print substr($3,1,3); exit }
/Oracle7 Server (Release|Version)/ { print substr($4,1,3); exit }
/Oracle8i Enterprise Edition (Release|Version)/ { print substr($5,1,3); exit }
/Oracle8i (Release|Version)/ { print substr($3,1,3); exit }'`
Additionally for platforms which set LD_LIBRARY_PATH in the dbstart
script you should change the following:
From:
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${ORACLE_HOME}/lib ;
export LD_LIBRARY_PATH
To:
LD_LIBRARY_PATH=${ORACLE_HOME}/lib:${LD_LIBRARY_PATH} ;
export LD_LIBRARY_PATH
3. Copy the updated "dbstart" to any location it is expected to reside.
Eg: system startup scripts often run /usr/local/bin/dbstart.
IMPORTANT: Do not overwrite existing scripts without taking a backup
copy first as the script you are overwriting may have
been modified.
NOTE: This workaround will only work for Oracle8 Enterprise Editions
Similar workarounds may be used for other editions.
Explanation
-----------
The problem is caused by a change in the Oracle banner which is output
by Oracle version 8.1.6. The banner no longer includes a PL/SQL line
and so the test in "dbstart" for a PL/SQL version returns a blank string
which in turn causes the step to startup the instance to be skipped.
References
----------
The problem is reported in [BUG:1154931]
The "oratab" file typically exists in either /etc/oratab or
/var/opt/oracle/oratab
[NOTE:50508.1] - Advance notification of CONNECT INTERNAL desupport
[NOTE:74943.1] - Advance notification of Server Manager desupport