- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Oracle cannot start
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
Forums
Discussions
Discussions
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
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
11-01-2007 08:46 PM
11-01-2007 08:46 PM
Oracle cannot start
When I'm trying start the oracle package I receive the following error from oracle control file:
ttytype: couldn't open /dev/tty for reading
stty: : Not a tpewriter
....
Not a terminal
stty: : Not a tpewriter
stty: : Not a tpewriter
Coul you please help me about this problem?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2007 09:05 PM
11-01-2007 09:05 PM
Re: Oracle cannot start
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2007 09:42 PM
11-01-2007 09:42 PM
Re: Oracle cannot start
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2007 12:27 AM
11-02-2007 12:27 AM
Re: Oracle cannot start
DOC ID UMCSGKBRC00012842
The messages come from stty settings listed in .profile or similar shell-configuring files when no terminal is associated to the session, such as when an 'su -c ...' is performed.
The resolution is to code the .profile (or similar files) to avoid any tty configuring commands when no terminal is associated with the session. The document and previously mentioned thread discusses how.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2007 08:20 PM
11-04-2007 08:20 PM
Re: Oracle cannot start
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2007 10:31 PM
11-04-2007 10:31 PM
Re: Oracle cannot start
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2007 10:41 PM
11-04-2007 10:41 PM
Re: Oracle cannot start
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2007 08:40 PM
11-05-2007 08:40 PM
Re: Oracle cannot start
tty device; that is, no interactive terminal is present. This would be true
for a script that uses a "su -" to start the application:
su -
Embedding this sort of command in a script causes the
(and /etc/profile) to be read. If .profile (or .kshrc) executes stty,
ttytype, or output-generating commands that expect a non-existent TTY,
the "stty: : Not a typewriter" messages are generated.
To avoid such errors, the .profile and related file(s) should test the calling
process for "standard out" and skip the terminal-expecting commands when no
std-out exists.
Try one of these two methods to skip the terminal-related lines:
if [ "$-" != "${-%%*i*}" ]
then
(stty, ttytype, output-generating commands)
fi
-OR-
if [ -t 1 ] # standard out device exists
then
(terminal-setting or output-generating commands here)
fi
Explanation from sh-posix(1):
-t fildes True, if file descriptor number fildes is
open and is associated with a terminal
device.
If the error messages still occur after updating .profile (and /etc/profile if
needed), add a "set -x" to the section of the script that invokes the
application so that every command action is displayed in the log. This can
help isolate the message source. Use "set -" later in the script to
terminate the tracing.
Another method is to send all output from a non-root user command to
/dev/null.
Example:
su - oracle -c "script_path >/dev/null 2>&1" 2>/dev/null 1>&2
### END ###
Regards,
Asif Sharif
Asif Sharif