03-17-2006
Sorry for the delayed response, I was out of the office a couple days.
The way we do it is that the Oracle DBAs have written scripts placed in /etc/rc2.d on our Sun boxes to start up and shut down their databases. When I reboot the box during maintenance I just issue the command "init 6" to cause a reboot. That command runs all the shutdown scripts before the reboot occurs, so the DBA's script takes care of their databases. That way I don't have to log into Oracle at all. One of the DBA team will be in the office for maintenance as well so if there is a problem (for example one of the servers hangs on the shutdown script or the databases don't restart after the reboot) they can check it out.
9 More Discussions You Might Find Interesting
1. SCO
Hi. Can entire data be taken thr' ncftp from one SCO Unix server to another?
Please let me know. (0 Replies)
Discussion started by: hrishi10a
0 Replies
2. UNIX for Dummies Questions & Answers
hi all!
I am VB developer and i am trying to automate a process in UNIX for which i request your help.
I want to learn the technique by which we can write batch process in unix server to search for a list of files and to note down files that are missing from the list in the form of a log so... (2 Replies)
Discussion started by: varsai123
2 Replies
3. UNIX for Dummies Questions & Answers
Hello, i am new to both this forum and UNIX as well; i am working at a local cancer center trying to reassociate 2 UNIX server systems that i am unfamiliar with; Both C3600 workstations were associated, however they were disassociated and need to be reassociated so programs can be accessed on... (0 Replies)
Discussion started by: RarisRSX
0 Replies
4. UNIX for Advanced & Expert Users
Guys,
I need a monitoring software for my Unix servers.
Over the last couple of years, the number has increased to well over 40 servers.
All have different applications running on them and it is impossible to go to everyone of them and do checks.
I was using Spotlight on Unix.
I was... (1 Reply)
Discussion started by: jair
1 Replies
5. Shell Programming and Scripting
Hi
I have server A and server B.
On server B the directory is called /tmp/hmp
On server A I want to get the files on server B:/tmp/hmp via FTP. After I have got the files via FTP I have to delete them. In the script below I'm affraid of that I delete files before I get them by ftp.
... (1 Reply)
Discussion started by: hpedersen4
1 Replies
6. Shell Programming and Scripting
hi,
anyone please explain ab the unix servers
thanks in advance
Satya (2 Replies)
Discussion started by: Satyak
2 Replies
7. Shell Programming and Scripting
Is it possible to use the diff command to compare two directories on different Unix (AIX) servers?
We have two regions set up and we want to be able to compare if the scripts directory in both regions contain the same files?
I want to figure out if its possible.. Have been messing around by... (10 Replies)
Discussion started by: Jazmania
10 Replies
8. UNIX for Dummies Questions & Answers
Hi All,
when i ftp the file from windows machine to unix server the record count in the file is decreased by 1.
example: Say a text file has three lines in it and when you place this file in unix server from your local machine and run a below command
cat filename | wc -l
the output is... (2 Replies)
Discussion started by: Umeshrm
2 Replies
9. UNIX for Dummies Questions & Answers
:wall: Does anyone know of a good Unix Server Syncronization Softwarware, I have a customer that has a primary server but he wants to get another one as a backup and he wants to syncronize all the disks on a daily or weekly bases to have it ready in case the primary fails. Your help would be... (2 Replies)
Discussion started by: reb
2 Replies
reboot(1M) reboot(1M)
NAME
reboot - restart the operating system
SYNOPSIS
/usr/sbin/reboot [-dlnq] [boot_arguments]
The reboot utility restarts the kernel. The kernel is loaded into memory by the PROM monitor, which transfers control to the loaded kernel.
Although reboot can be run by the super-user at any time, shutdown(1M) is normally used first to warn all users logged in of the impending
loss of service. See shutdown(1M) for details.
The reboot utility performs a sync(1M) operation on the disks, and then a multi-user reboot is initiated. See init(1M) for details. On
systems, reboot may also update the boot archive as needed to ensure a successful reboot.
The reboot utility normally logs the reboot to the system log daemon, syslogd(1M), and places a shutdown record in the login accounting
file /var/adm/wtmpx. These actions are inhibited if the -n or -q options are present.
Normally, the system reboots itself at power-up or after crashes.
The following options are supported:
-d Force a system crash dump before rebooting. See dumpadm(1M) for information on configuring system crash dumps.
-l Suppress sending a message to the system log daemon, syslogd(1M) about who executed reboot.
-n Avoid calling sync(2) and do not log the reboot to syslogd(1M) or to /var/adm/wtmpx. The kernel still attempts to sync
filesystems prior to reboot, except if the -d option is also present. If -d is used with -n, the kernel does not attempt to
sync filesystems.
-q Quick. Reboot quickly and ungracefully, without shutting down running processes first.
The following operands are supported:
boot_arguments An optional boot_arguments specifies arguments to the uadmin(2) function that are passed to the boot program and kernel
upon restart. The form and list of arguments is described in the boot(1M) and kernel(1M) man pages.. If the arguments are
specified, whitespace between them is replaced by single spaces unless the whitespace is quoted for the shell. If the
boot_arguments begin with a hyphen, they must be preceded by the -- delimiter (two hyphens) to denote the end of the reboot
argument list.
Example 1: Passing the -r and -v Arguments to boot
In the following example, the delimiter -- (two hyphens) must be used to separate the options of reboot from the arguments of boot(1M).
example# reboot -dl -- -rv
Example 2: Rebooting Using a Specific Disk and Kernel
The following example reboots using a specific disk and kernel.
example# reboot disk1 kernel.test/unix
/var/adm/wtmpx login accounting file
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
mdb(1), boot(1M), dumpadm(1M), fsck(1M), halt(1M), init(1M), kernel(1M), shutdown(1M), sync(1M), syslogd(1M), sync(2), uadmin(2),
reboot(3C), attributes(5)
The reboot utility does not execute the scripts in /etc/rcnum.d or execute shutdown actions in inittab(4). To ensure a complete shutdown
of system services, use shutdown(1M) or init(1M) to reboot a Solaris system.
11 Apr 2005 reboot(1M)