- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- rc shut/start script problems
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
тАО07-12-2005 12:29 AM
тАО07-12-2005 12:29 AM
rc shut/start script problems
we recently rebooted our rp8400 and the system
got stuck on the oracle startup script. right after the kernal was booting it started getting "stty ...." repeatedly. i rebooted in single user mode removed the links in /sbin/rc2.d for oracle startup and the system came up find. then i tested the oracle script in crontab and from a command line and it worked fine. so it must have been the rc links somehow. anybody have an easy way to to startup scripts for oracle on a standalone box
thx in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2005 12:41 AM
тАО07-12-2005 12:41 AM
Re: rc shut/start script problems
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2005 04:41 AM
тАО07-12-2005 04:41 AM
Re: rc shut/start script problems
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2005 04:50 AM
тАО07-12-2005 04:50 AM
Re: rc shut/start script problems
here is the script in /sbin/init.d. it calls another longer script. i just made a link to this in /sbin/rc2.d:
# Invoke the script to issue the commands as the
# Oracle user.
loc="/ora2db01/app/oracle/admin/bin"
script="${loc}/ora2_startup_dbs_ipl.ksh"
/usr/bin/su - oracle -c ${script}
#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2005 05:11 AM
тАО07-12-2005 05:11 AM
Re: rc shut/start script problems
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2005 05:17 AM
тАО07-12-2005 05:17 AM
Re: rc shut/start script problems
Also keep the starting no. the last & stopping no. the first in its run level for proper functioning. This will start oracle in the end while machine boots & stop oracle first while shutting down.
The problem here seems due to not using the template file as indicated above.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2005 05:18 AM
тАО07-12-2005 05:18 AM
Re: rc shut/start script problems
.
this file to set and export these variables.
This sourced file must not contain a return or exit statement.
Plan B.
Surround those commands in oracle' .profile with
if [[ -t 0 ]] # is stdin a tty device?
then
tset ...
stty ...
fi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2005 02:39 PM
тАО07-12-2005 02:39 PM
Re: rc shut/start script problems
can you try this:
=============================================
echo "/u01/app/oracle/product/8.1.7/bin/sqlplus /nolog <
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2005 03:36 PM
тАО07-12-2005 03:36 PM
Re: rc shut/start script problems
Do the following steps:
step 1: edit /etc/oratab file
ORACLE_SID:ORACLE_HOME: {Y|N}
y -> for dbstart and dbshut scripts to startup and shutdoen the database
step 2: Create dbora script in the /etc/init.d
see attachment for the script
step 3: Create symbolic links to the dbora script in the appropriate run-level
script directories
# ln -s /etc/init.d/dbora /sbin/rc2.d/K10dbora
# ln -s /etc/init.d/dbora /sbin/rc3.d/S99dbora
step 4: avoidance of "stty is not a typewriter" error message
The not-a-typewriter error is caused by running commands where there is no
controlling tty device; that is, no interactive terminal is present. This would
be true for a script that runs in cron or has su - to run a batch job.
Uncomment all stty commands in /home/$ORA_OWNER/.profile as $ORA_OWNER
Example:
# Set up the terminal:
# if [ "$TERM" = "" ]
# then
# eval ` tset -s -Q -m ':?hp' `
# else
# eval ` tset -s -Q `
# fi
# stty erase "^H" kill "^U" intr "^C" eof "^D"
# stty hupcl ixon ixoff
# tabs
Recheck the scripts before applying...
Any suggestions warmly welcomed...
Good Luck !!
Vinod K