08-31-2015
Quote:
Originally Posted by
jim mcnamara
oracle has a statup/shutdown file called oratab. If you could tell us what your OS is we could probably tell you where it is, minus that the find command is your friend.
Read up on oratab syntax first - you are allowed to call ONE shell script per db.
The file is used both for startup & shutdown. If you have oracle installed you probably have the file. A companion file is oraenv.
Oratab - Oracle FAQ
PS your file should be
/etc/oratab
https://community.oracle.com/thread/2538383
Thanks Jim,
There are start and stop files. I have this process which needs to startup a service once the "Foundationstarted.txt" exists. The .sh script should come into play as soon as the system reboots. so whenever the linux (gnu/linux) box is rebooted this ".sh" should be executed and this will keep looking for the "Foundationstarted.txt" file every minute until it finds it and then once it finds it restart the Essbase services.
10 More Discussions You Might Find Interesting
1. Filesystems, Disks and Memory
Hi all,
Just started holidays (ya!) and Murphy's Law has kicked in already (doh!).
I'm looking after (when at work) two SCO 5.0.5 Systems running on Netfinity 5500 Servers (Model # 8662-3RY). Every once and a while the production server just reboot's itself. There is no mention of a cause... (8 Replies)
Discussion started by: Cameron
8 Replies
2. UNIX for Dummies Questions & Answers
Hi,
Can someone advise me how to find the last system rebooted date(s)? Thanx N Regards,
Hush (2 Replies)
Discussion started by: hush
2 Replies
3. Solaris
dear all,
I have 2 T2000 with solaris 10 and oracle 10g installed on it. these two servers are rebooted by itself.
could anyone help me investigate the cause.
the message log is attached
thanx, (3 Replies)
Discussion started by: fsmadi
3 Replies
4. Solaris
Hello Everyone ,
I am a new member to this forum and came to know about this from so many of my friends . I face one issue last day when suddenly the system got rebooted ( But don,t know why ) . Can someone please help me in investigating this issue as to why the system got rebooted and who... (4 Replies)
Discussion started by: gera_sachin125
4 Replies
5. Linux
Hi,
Once again I came to get rescued in a situation where one of my workstations has this ierd thing that "xinetd" won't start at reboot or shutdown. I have done the follwoing but no change in results.
chkconfig --list xinetd
xinetd 0:off 1:off 2:on 3:on 4:on 5:on ... (2 Replies)
Discussion started by: harjitsingh
2 Replies
6. Solaris
Hi all,
i want to know the procedure reboot the server through console if the system is completely down.Please help me if anybody knows this. I would really thanfull to all.
regards
Krishna Murthy (1 Reply)
Discussion started by: murthy76
1 Replies
7. AIX
As topic, assume we have a service called "blahservice"
and we can start it by:
startsrc -s blahservice
what is the best practice to run such command when system start?
- directly use mkitab to add it into /etc/inittab
or
- drop startup scripts in /etc/rc.d/rcX.d
I know they... (4 Replies)
Discussion started by: acerlinux
4 Replies
8. Shell Programming and Scripting
Hi
I had written a piece of script .
Please let me know is it possible to run / execute this script at system startup ??
Thanks in advance . (5 Replies)
Discussion started by: Ravi Pavanv
5 Replies
9. Red Hat
Hello Guys - I need to disable xen server not to start when the server is rebooted.
1) What is the parameter to be used to do this..below is the entry in my config file...
on_reboot = "restart"
2) What is the default behaviors of the xen on reboot ? in case we comment this line from config... (0 Replies)
Discussion started by: saurabh84g
0 Replies
10. UNIX for Beginners Questions & Answers
The script works and creates a modified iso fine until I added the chrootbeg and chrootend functions and executed them. I'm sorry if I did something wrong this is my first post. I uploaded entire bash script for reference or in case you want to run it to debug it is called isoremast.txt.
... (5 Replies)
Discussion started by: paulhoffusa
5 Replies
reboot(3C) reboot(3C)
NAME
reboot - reboot system or halt processor
SYNOPSIS
#include <sys/reboot.h>
int reboot(int howto, char *bootargs);
The reboot() function reboots the system. The howto argument specifies the behavior of the system while rebooting and is a mask con-
structed by a bitwise-inclusive-OR of flags from the following list:
RB_AUTOBOOT The machine is rebooted from the root filesystem on the default boot device. This is the default behavior. See boot(1M) and
kernel(1M).
RB_HALT The processor is simply halted; no reboot takes place. This option should be used with caution.
RB_ASKNAME Interpreted by the bootstrap program and kernel, causing the user to be asked for pathnames during the bootstrap.
RB_DUMP The system is forced to panic immediately without any further processing and a crash dump is written to the dump device
(see dumpadm(1M)) before rebooting.
Any other howto argument causes the kernel file to boot.
The interpretation of the bootargs argument is platform-dependent.
Upon successful completion, reboot() never returns. Otherwise, -1 is returned and errno is set to indicate the error.
The reboot() function will fail if:
EPERM The {PRIV_SYS_CONFIG} privilege is not asserted in the effective set of the calling process.
intro(1M), boot(1M), dumpadm(1M), halt(1M), init(1M), kernel(1M), reboot(1M), uadmin(2)
22 Mar 2004 reboot(3C)