oracle installation

G

gismo

Jungspund
Hallo

brauche ein kleine Hilfe bei meiner Oracle installation (leider bin ich im Moment noch Newbie)
Also system Linux 8.2 und ich will Oracle 8.1.7 installieren.

wenn ich ./runinstall eingebe kommt "Display not set. Please set the Display and try again."

Wie setze ich das Display?

Danke JAN
 
du brauchst wohl einen x-server für die installation. ist wohl ein GUI-installer.

hast du einen lokal am laufen?

wenn du irgendwo einem im netz hast dann kannst du mit die ausgabe dorthin umlenken:
export DISPLAY=<ip adresse>:0.0

auf dem server wo X läuft musst dann noch mit:

xhost +<ip adresse werdender oracle server>

den zugriff erlauben.
 
nachdem ich export display=:0 gemacht habe gehts weiter allerdings kommt dann das hier und er bleibt stehen


System Monitor Status
---------------------
Thread queue lock: unowned.
Name and type hash table lock: unowned.
String intern lock: unowned.
JNI pinning lock: unowned.
JNI global reference lock: unowned.
Zip lock: unowned.
BinClass lock: unowned.
Class loading lock: unowned.
Java stack lock: unowned.
Code rewrite lock: unowned.
Heap Lock: unowned.
Has finalization queue lock: unowned.
Finalize me queue lock: unowned.
Integer lock access-lock: unowned.
Monitor cache lock: unowned.
Monitor registry: unowned.

Object Monitor Status
---------------------
OK


Was ist das und wie komme ich weiter


danke gismo
 
Hallo bin jetzt mit der Installation von Oracle soweit durch

der Haken ist allerdings jetzt der dbassist startet leider nicht wenn ich ihn unter user oracle ./dbassist eintippe kommt diese meldung

./dbassist
SIGSEGV received at bfffede8 in /usr/oradatenbank/jre/1.1.8/lib/linux/native_thr eads/libjava.so. Processing terminated
Writing stack trace to javacore25970.txt ... OK
./dbassist: line 103: 25970 Speicherzugriffsfehler (core dumped) $JRE_EXEC -Dus er.dir=$USER_DIR -classpath $CLASSPATH DBCreateWizard $ARGUMENT


wenn ich unset NLS_LANG und unset LANG eintippe was ich übrigens auch bei der Installation gemacht habe kommt dann diese Meldung als popup mit der meldung

JNLS Exception:oracle.ntpg.jnls.JNLSExeption Unable to find any National Character Sets. Check your Oracle installation and make sure that the ORACLE_HOME environment variable is defined correctly


Wie bekomme ich das wieder hin?

Mfg gismo
 
hmmm das ist schon etwas "tiefers".
wenn so ein proggy einen core dump wirft da kann man als "otto normal user" kaum viel machen. alle oracle patches und alle abhängigkeiten (library versionen) installiert bzw. erfüllt?
 
Auf der homepage von oracle steht irgentwo (ich weiss nichmer auswendig) welcher kernel von oracle suportet wird. weil wennst da den falschen hast, kans auch probleme geben.
 
Bekommst du keine ORA-Fehlernummern?
Hab mich mal durchgekämpft mit Oracle 9i und SuSE 8.0 und die Fehlermeldungen haben dann nach Knapp einer Woche zum erfolg geführt.

Den Fehler mit dem Speicherzugriff hatte ich auch, da mußt du nur für die Installation (glaube an der stelle wo die Datenbank erstellt wird) den Swapspeicher temporär erhöhen.

Da das aber schon ein Jahr her ist hab ich auch leider keine Unterlagen mehr dazu, die ich mir dazu angesammelt hatte.

Also, am besten immer nach den ORA-Fehlernummern googeln und dann wirds schon irgendwie klappen.
 
gismo schrieb:
wenn ich unset NLS_LANG und unset LANG eintippe was ich übrigens auch bei der Installation gemacht habe kommt dann diese Meldung als popup mit der meldung

JNLS Exception:oracle.ntpg.jnls.JNLSExeption Unable to find any National Character Sets. Check your Oracle installation and make sure that the ORACLE_HOME environment variable is defined correctly


Wie bekomme ich das wieder hin?

Mfg gismo

Hier will dir Oracle sagen das er seine Umgebungsvariablen nicht findet. hast du benutzerwechsel durchgeführt ? su - "oracle User", versuchs dann nochmal.

MFG Svele
 
hallo Svele


user ist oracle user wo finde ich denn die variable und worauf muss sie stehen?


besten dank gismo
 
die variablen sollte, soweit ich das noch weiss, im .profile des users "oracle" sein.
 
ja habe ich

steht auf dem Verzeichniss wo ich die Datenbank installiert habe

habe es mal geändert auf des homeverzeichniss von oracle aber immer noch das gleich


MFG gismo
 
Hallo,

also bei mir gibt es eine .dbenvSID.sh bzw .*.ksh in dieser stehen alle Variablen drinne. wie SID, NLS, Lanuage, HOME .......

Im normalfall sollte vermutlich eine angelegt worden sein bei der Installation.

Du hast also auf der Shell "su - ora"SID" " durchgeführt ? Damit wechselst du zu dem User und er sollte alle seine Variablen geladen habe.

In meiner .profile wird abgefragt im zusammenhang der genutzen shell (bei mir Korn Shell) ob diese Datei existiert.

if [ -f $HOME/.kshrc]; then
ENV $HOME/.kshrc; export ENV
fi

und in der .kshrc ist dann ein ähnlicher verweis:

if [ -f $HOME/.dbenv_'hostname'.sh]; then
$HOME/.dbenv_'hostname'.sh
elif
[ -f $HOME/.dbenv.sh]; then
$HOME/.dbenv.sh
fi

Schau mal ob du so etwas auch hast. Und poste mal.

MFG Svele
 
erstmal danke svele

wo soll denn .dbenvSID.sh sein im Userverzeichniss vom User Oracle wenn ja da ist nichts.

der User oracle hat sowies extrem wenige datein in home

linux-jke:~ # su - oracle
oracle@linux-jke:~> ls -la
insgesamt 32
drwxr-xr-x 2 oracle oinstall 208 2004-01-29 19:08 .
drwxr-xr-x 7 root root 176 2003-12-01 16:00 ..
-rw-r--r-- 1 oracle oinstall 528 2004-01-08 11:51 .X.err
-rw------- 1 oracle oinstall 162 2004-01-08 11:51 .Xauthority
-rw------- 1 oracle oinstall 5717 2004-02-03 15:41 .bash_history
-rw-r--r-- 1 oracle oinstall 1648 2004-01-29 19:08 .bashrc
-rw-r--r-- 1 oracle oinstall 1326 2004-01-29 19:06 .profile
-rw------- 1 oracle oinstall 4242 2004-01-29 19:08 .viminfo
 
Was steht in .bashrc und .profile ?

kanst du mir ja mal mailen..
 
Hallo nett das du mir helfen willst


hier erstmal eine Auszug von der Boot.msg da läuft schon einiges schief.


#############################################################################

# Begin of O R A C L E startup section #

#############################################################################





ORACLE_HOME directory /opt/oracle/product/9ir2 does not exist!

Unsetting ORACLE_HOME, will try to determine it from system...



ORACLE_HOME not set, but I found this in /etc/oratab:



ORACLE_HOME environment variable not set.

Check /etc/profile.d/oracle.sh and /etc/oratab

Cannot find ORACLE_HOME directory .

Environment settings are wrong! Check /etc/profile.d/oracle.sh



SETTINGS start from /etc/sysconfig/oracle

- Set Kernel Parameters for Oracle: yes

- Start Oracle OCFS: no

- Start Oracle OCM: no

- Start Oracle GSD: no

- Start Oracle Database: no

- Start Oracle Listener: no

- Start Oracle Webserver: no

- Start Oracle CManager: no

- Start Oracle Agent: no

- Start Oracle Internet Filesystem: no

- Start Oracle Directory Manager: no





Setting kernel parameters for Oracle, see file

/etc/sysconfig/oracle for explanations.



Shared memory: SHMMAX=3294967296 SHMMNI=4096 SHMALL=2097152

Semaphore values: SEMMSL=1250 SEMMNS=32000 SEMOPM=100 SEMMNI=256

Other values: FILE_MAX_KERNEL=131072 IP_LOCAL_PORT_RANGE=1024 65000

VM_MAPPED_RATIO=1000 AIO_MAX_SIZE=262144

ULIMIT values: MAX_CORE_FILE_SIZE_SHELL=unlimited

FILE_MAX_SHELL=65536 PROCESSES_MAX_SHELL=16384



Kernel parameters set for Oracle:
done





- Starting Oracle Cluster Filesystem...
unused

- Starting Oracle Cluster Manager...
unused

- Starting Oracle GSD...
unused



+ Starting Database(s)...
unused



- Starting Listener...
unused

- Starting Apache...
unused

- Starting Agent...
unused

- Starting Connection Manager...
unused

- Starting Oracle Internet Filesystem...
unused

- Starting Oracle Internet Directory...
unused



#############################################################################

# End of O R A C L E section #

#############################################################################


und hier bashrc

# Sample .bashrc for SuSE Linux
# Copyright (c) SuSE GmbH Nuernberg

# There are 3 different types of shells in bash: the login shell, normal shell
# and interactive shell. Login shells read ~/.profile and interactive shells
# read ~/.bashrc; in our setup, /etc/profile sources ~/.bashrc - thus all
# settings made here will also take effect in a login shell.
#
# NOTE: It is recommended to make language settings in ~/.profile rather than
# here, since multilingual X sessions would not work properly if LANG is over-
# ridden in every subshell.

# This might be helpful for Linux newbies who previously used DOS...
test -f /etc/profile.dos && . /etc/profile.dos

# Some applications read the EDITOR variable to determine your favourite text
# editor. So uncomment the line below and enter the editor of your choice :-)
#export EDITOR=/usr/bin/vim
#export EDITOR=/usr/bin/mcedit

# For some news readers it makes sense to specify the NEWSSERVER variable here
#export NEWSSERVER=your.news.server

# If you want to use a Palm device with Linux, uncomment the two lines below.
# For some (older) Palm Pilots, you might need to set a lower baud rate
# e.g. 57600 or 38400; lowest is 9600 (very slow!)
#
#export PILOTPORT=/dev/pilot
#export PILOTRATE=115200
####ORACLE: ##################################################
ORACLE_BASE=/usr/oradatenbank; export ORACLE_BASE
ORACLE_HOME=/opt/oracle; export ORACLE_HOME
ORACLE_SID=orardb; export ORACLE_SID
PATH=$PATH:/usr/datenbank; export PATH
ORA_NLS33=/usr/oradatenbank/admin/data; export ORA_NLS33
NLS_LANG=german; export NLS_LANG
### END Oracle ###############################################

und auch .profile

# Sample .profile for SuSE Linux
# rewritten by Christian Steinruecken <cstein@suse.de>
#
# This file is read each time a login shell is started.
# All other interactive shells will only read .bashrc; this is particularly
# important for language settings, see below.

test -z "$PROFILEREAD" && . /etc/profile

# Most applications support several languages for their output.
# To make use of this feature, simply uncomment one of the lines below or
# add your own one (see /usr/share/locale/locale.alias for more codes)
#
#export LANG=de_DE@euro # uncomment this line for German output
#export LANG=fr_FR@euro # uncomment this line for French output
#export LANG=es_ES@euro # uncomment this line for Spanish output


# Some people don't like fortune. If you uncomment the following lines,
# you will have a fortune each time you log in ;-)

#if [ -x /usr/bin/fortune ] ; then
# echo
# /usr/bin/fortune
# echo
#fi
###ORACLE: ##################################################
ORACLE_BASE=/usr/oradatenbank; export ORACLE_BASE
ORACLE_HOME=/opt/oracle; export ORACLE_HOME
ORACLE_SID=orardb; export ORACLE_SID
PATH=$PATH:/usr/datenbank; export PATH
ORA_NLS33=/usr/oradatenbank/admin/data; export ORA_NLS33
NLS_LANG=german; export NLS_LANG
### END Oracle ###############################################
 
1. Stimmen die Pfadangaben und die SID in der ,bashrc?
# echo ORACLE_BASE
# echo ORACLE_HOME
# echo ORACLE_SID

2. Ich glaube der listener mußte vorher noch gestartet werdern # lsnrctl start.

... alles nur vermutungen :)
 
ok. das sieht aaaber sseeehr komisch aus.

Also die Variablen stehen schon mal in .bashrc das ist erst mal gut, aber das script /etc/profile.d/oracle.sh und das file /etc/oratab scheinen deine Installation woanders zu suchen.

Die Pfade in den beiden Datein stimmen, oder ?

Das mit dem listener ist auch richtig, aber wenn ich mich recht entsinne sollte er dir das dann auch so bemeckern.

Hast du dir die beiden Datein schon mal angeschaut ?

Wie ist eigentlich dein Vorgehen die DB zu starten ? Schreib mal auf, damit ich mir das besser vorstellen kann. Ich habe nur richtiges UNIX im Einsatz ;-))


MFG Svele
 
Ja du hast recht das ist die oracle.sh da ist einiges falsch

was muss ich wo eintragen?

# Login environment variable settings for Oracle

################## BEGIN of user editable section ##################
# Change these settings according to your installation. Of course #
# you can change the rest below, but if you have little Oracle #
# experience we suggest you leave the default values in place. #
# An exception is if the documentation for your particular Oracle #
# product explicitly suggests other values. #
ORACLE_BASE=/opt/oracle
ORACLE_SID=mydb
################### END of user editable section ###################


ORACLE_HOME=$ORACLE_BASE/product/9ir2
TNS_ADMIN=$ORACLE_HOME/network/admin
ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
PATH=$PATH:$ORACLE_HOME/bin
LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}$ORACLE_HOME/lib:$ORACLE_HOME/ctx/lib
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib:$ORACLE_HOME/network/jlib

export ORACLE_BASE ORACLE_HOME ORA_NLS33 ORACLE_SID PATH LD_LIBRARY_PATH CLASSPATH TNS_ADMIN

# ORACLE_TERM=xterm; export ORACLE_TERM
# NLS_LANG=AMERICAN_AMERICA.UTF8; export NLS_LANG



#
# The code below is done ONLY if the user is "oracle":
# Set the ULIMITs for the shell and add gcc_old to PATH if it's installed
#
# This requires the limits to have been increased by root
# e.g. at boot time by the /etc/rc.d/oracle script, both
# ulimit and kernel parameters.
#
if [ `id -un` == "oracle" ]; then

# Add package "gcc_old" gcc 2.95.3 to path - FIRST
if test -x /opt/gcc295/bin/gcc; then
export PATH=/opt/gcc295/bin:$PATH
fi

# RAC (cluster) component GSD commands don't run when this is
# set - which it is if a SuSE Java package is installed.
unset JAVA_BINDIR JAVA_HOME

# Get settings, if file(s) exist(s). If not, we simply use defaults.
if test -f /etc/sysconfig/oracle; then
# new location as of SL 8.0 is directory /etc/sysconfig/
. /etc/sysconfig/oracle
else
if test -f /etc/rc.config.d/oracle.rc.config; then
# location is directory /etc/rc.config.d/
. /etc/rc.config.d/oracle.rc.config
else
if test -f /etc/rc.config; then
# old SuSE location was to have everything in one file
. /etc/rc.config
fi
fi
fi

# Set ulimits:
#
# We suppress any warning messages, so if the hard limits have not been
# increased by root and the commands don't work we keep silent...
# This is because the only one who needs it is the shell that starts
# the DB server processes, and the number of warning messages created
# here is potentially way too much and confusing

# core dump file size
ulimit -c ${MAX_CORE_FILE_SIZE_SHELL:-0} 2>/dev/null

# max number of processes for user
ulimit -u ${PROCESSES_MAX_SHELL:-16384} 2>/dev/null

# max number of open files for user
ulimit -n ${FILE_MAX_SHELL:-65536} 2>/dev/null

fi



und hier die oratab

#

# 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.
#
 
Zuletzt bearbeitet:

Ähnliche Themen

Zugriff Ubuntu 16.04. auf Freigabe 18.04. LTS nicht möglich

Arch Installierung - Grub-Installations-Error

X startet nichtmehr

rpm mittels yum

Deutsche Tastatur in Debian Wheezy einstellen

Zurück
Oben