Hi, ich habe Oracle 9.2 auf RedHat 8.0 installiert. Hat auch alles soweit funktioniert.
Umgebungsvariablen sind in /etc/profile einegtragen
# JAVA Umgebungsvariablen
export JAVA_HOME=/usr/java/j2sdk1.4.0_02
export JAVA_HOME=/usr/java/j2re1.4.0_02
export PATH=$JAVA_HOME/bin:$PATH
# Oracle Umgebungsvariablen
RACLE_BASE=/ora01/app/oracle
ORACLE_HOME=/ora01/app/oracle/product/9.2.0
ORACLE_SID=orc1
ORACLE_TERM=xterm
TNS_ADMIN=$ORACLE_HOME/config
NLS_LANG=german_germany
ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib
PATH=$PATH:$ORACLE_HOME/bin
CLASSPATH=$CLASSPATH:ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib:
CLASSPATH=$CLASSPATH:ORACLE_HOME/network/jlib
export ORACLE_BASE ORACLE_HOME ORACLE_SID PATH CLASSPATH LD_LIBRARY_PATH
export ORACLE_TERM ORA_NLS33 NLS_LANG
Jetzt habe ich wärend der Installation eine datenbank mit namen dinobase angelegt. Alles ok.
nun soll diese datenbank beim booten gestartet werden.
Wenn ich nun dbstart eingebe kommt folgende Fehlermeldung
$ dbstart
SQL*Plus: Release 9.2.0.1.0 - Production on Mi Okt 16 11:50:34 2002
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
SQL> ERROR:
ORA-12162: TNS:service name is incorrectly specified
SQL> ORA-12162: TNS:service name is incorrectly specified
SQL>
Database "" warm started.
Can't find init file for Database "dinobase".
Database "dinobase" NOT started.
die /etc/oratab sieht so aus
# This file is used by ORACLE utilities. It is created by root.sh
# and updated by the Database Configuration Assistant when creating
# a database.
# A colon, ':', is used as the field terminator. A new line terminates
# the entry. Lines beginning with a pound sign, '#', are comments.
#
# Entries are of the form:
# $ORACLE_SID:$ORACLE_HOME:<N|Y>:
#
# The first and second fields are the system identifier and home
# directory of the database respectively. The third filed indicates
# to the dbstart utility that the database should , "Y", or should not,
# "N", be brought up at system boot time.
#
# Multiple entries with the same $ORACLE_SID are not allowed.
#
#
*:/ora01/app/oracle/product/9.2.0:Y
dinobase:/ora01/app/oracle/product/9.2.0:Y
Wie bekomme ich die datenbank sauber unter der console gestartet???