Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: starting and stopping Database 10g on SuSE linux 9.3 Professional
Tamer Higazi wrote:
> Hi!
> I have installed Oracle 10g RDBMS on SuSE Linux 9.3 Professional with
> start / stop scripts. But I dont understand something... > > How do I start up the database itself? > > After I have runed up the Enterprise Manager from Oracle 10g, and I > loaded the Oracle10 em, from the browser, the page displayed that Ihave
> to enter a user id (on both fields) with password to fireup the DB. > > Which username and password is from me required?! > > > > Tamer Higazi
As my crystal ball is still in the shop for repairs my guessing ability is somewhat limited, however I expect your 'start / stop scripts' would be dbstart and dbshut. These, of course, by themselves will not automatically start your instance at boot. You'll need another script, located in /etc/init.d and referenced in /etc/rc3.d, to actually start and stop the instance at system boot/shutdown. Such a script is provided below:
#!/bin/sh
# /etc/init.d/dbora - database startup/shutdown
#
ORACLE_BASE=/oralinux/app/oracle ORACLE_HOME=$ORACLE_BASE/product/9.2.0 ORACLE_SID=dev9z
This should be placed in the /etc/init.d directory (this requires root permissions and a basic understanding of vi):
cd /etc/init.d
vi dbora
<paste the text from this post into your file>
<change the definitions of ORACLE_BASE, ORACLE_HOME, ORACLE and
ORACLE_SID to match those of your installation>
:wq!
chmod 755 dbora
Create symbolic links to this script as S99dbora and K03dbora using the ln -s command:
cd ../rc2.d
ln -s ../init.d/dbora S99dbora
ln -s ../init.d/dbora K03dbora
Once this is complete the database should start at system boot and stop at a system shutdown with no additional intervention. Of course, you need to test your dbstart and dbshut scripts to ensure they function properly; running 9.2.0.6 on Solaris I found I needed to edit the dbshut and dbstart scripts, commenting the PFILE assignment lines, to get them to work properly.
I hope this helps.
David Fitzjarrell Received on Fri May 06 2005 - 07:54:34 CDT