how to put script in startup


 
Thread Tools Search this Thread
Operating Systems Solaris how to put script in startup
# 1  
Old 05-02-2010
how to put script in startup

Hi All,
O/S: Solaris 5.10
Software installed :-
Oracle 10G
Weblogic 10.30

the problem i face that
when the server restart for any reason


Code:
SQL> exit
bash-3.00# sqlplus sys/manchester as sysdba

SQL*Plus: Release 10.2.0.1.0 - Production on Sun May 2 11:04:50 2010

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

Connected to an idle instance.

SQL> show user
USER is "SYS"
SQL> select * from tab;
select * from tab
*
ERROR at line 1:
ORA-01034: ORACLE not available

i should run startup sql command to start Oracle database

and the same thing for weblogic server

what i want to make is to put startup script
to start oracle and weblogic server when the server restart
# 2  
Old 05-02-2010
You can put the database startup Script in /etc/rc3.d directory:

1)The script name should start from "S" (capital s)
2)Followed by some number say "91"
3)Followed by script name "database_startup_script"

So, here is the complete name of the script in /etc/rc3.d directory : /etc/rc3.d/S91database_startup_script

Every time when server reboots and come to Run Level-3, it will execute the script "/etc/rc3.d/S91database_startup_script" and automatically start the database...

You just need to put your contents in this file, assigning proper permisions.
# 3  
Old 05-02-2010
What you need to do is ask your Oracle support and your WebLogic support for SMF scripts.
# 4  
Old 05-02-2010
how about checking the SMF for available but disabled startup files?

Code:
scvs -a | grep -i oracle

Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Startup script

I can't quite find a clear answer on how to properly write a start up script. Does anybody have any ideas?? (3 Replies)
Discussion started by: Huitzilopochtli
3 Replies

2. Shell Programming and Scripting

Startup script problem

The attached file is a copy of my rc.local. The rc.local script appears to execute as the tightvncserver gets started. However the nodemon process does not start. The element nodemon is a symlink to nodemon and the path is correct. I have a little start script located in the... (3 Replies)
Discussion started by: barrygordon
3 Replies

3. Shell Programming and Scripting

Apache tomcat startup script not booting at startup.

I copied the script from an AskUbuntu post - #!/bin/bash ### BEGIN INIT INFO # Provides: tomcat7 # Required-Start: $network # Required-Stop: $network # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start/Stop Tomcat server ### END INIT INFO ... (14 Replies)
Discussion started by: Hijanoqu
14 Replies

4. Red Hat

Dummy Question, put a script on startup fails

Hi all, im pretty new to unit/redhat 6.2 I am trying to load a script upon startup of my redhat 6.2 (instance in ec2 AWS if someone cares) I want everytime when instance starts (after stop/reboot) a script i build to launch. when i run the script ./scriptname the script runs and everything is... (4 Replies)
Discussion started by: hookedatwalla
4 Replies

5. AIX

startup script

Hi I need the below script to be started whenever I reboot my aix server ? #cat cdbegin /cdirect/cdunix/ndm/bin/cdpmgr -i /cdirect/cdunix/ndm/cfg/cbspsdb01/initparm.cfg Please suggest how to add this to the startup ? (2 Replies)
Discussion started by: samsungsamsung
2 Replies

6. UNIX for Dummies Questions & Answers

Startup Script Somewhere ?

Hello there! I need help. Everytime I login to my ssh, i see this: -bash: .export: command not found -bash: .export: command not found -bash: .export: command not found -bash: .export: command not found any help ? thanks (0 Replies)
Discussion started by: fbauto1
0 Replies

7. Shell Programming and Scripting

how to take input at the startup script!!

Hi all, I am trying to modify a startup script... The problem is that i am unable to figure out how to take inputs from the user at the startup screen and proceed with the processing accordingly... Eg: $ echo "this is a test" (typically this would produce the output)... $ echo "this is a... (6 Replies)
Discussion started by: wrapster
6 Replies

8. HP-UX

Executing a script at startup

Hi, I want a script to execute as soon as a user logs in(instead of directing to his home directory). i know that i have to mention the path of script in the user's .profile to execute this, but not sure where and what to edit. I just tried and was unsuccesful. Kindly provide the code that i... (4 Replies)
Discussion started by: sridharr83
4 Replies

9. Shell Programming and Scripting

Startup script

New in Unix, I am adding a line "route add 57.14.y.y 57.14.x.x" every day after rebooting the system. Where can I add the line so during boot up (the system is re-started every day by design (???) the line is executed? (I tried the /etc/rc2.d/S90 but for some reason the line needs to be added... (2 Replies)
Discussion started by: texaspanama
2 Replies
Login or Register to Ask a Question