Oracle 10gR2 Step by step installation on Solaris 10 Luglio 29, 2008
Posted by installatore in Oracle.Tags: 10, 10g, 10gr2, linux, Oracle, solaris, solaris10, sys, unix
trackback
Controlliamo i requisiti:
—————————-
#/usr/sbin/prtconf | grep “Memory size” [Controlliamo la ram]
# /usr/sbin/swap -s [Controlliamo la memoria swap]
# df -k /tmp [check /tmp size (>400mb)]
# uname -r [Controlliamo la versione di solaris]
# pkginfo -i SUNWarc SUNWbtool SUNWhea SUNWlibm SUNWlibms SUNWsprot SUNWsprox SUNWtoo SUNWi1of SUNWi1cs SUNWi15cs SUNWxwfnt
# cat /etc/nsswitch.conf | grep hosts
# hostname
# domainname
Avviamo l’installazione:
—————-
A. create group name “dba”, oracle inventory group “oinstall” and “oracle” user
# /usr/sbin/groupadd oinstall
# /usr/sbin/groupadd dba
[Controlliamo se esiste già l'utente oracle]
# id -a oracle
[Se già esiste avremo un riscontro di questo tipo= uid=440(oracle) gid=200(oinstall) group........]
[Creiamo l'utente oracle]
# useradd -d /export/home/oracle -g dba -G oinstall -m -s /bin/bash oracle [bash...è molto più comodo]
#mkdir /export/home/oracle
#chown oracle:dba /export/home/oracle
[Configuriamo la password]
# passwd -r files oracle
[Controlliamo che esista l'utente nobody]
# id nobody
[In caso contrario lo creiamo noi]
# /usr/sbin/useradd nobody
[Ricordiamo di dare il massimo delle permissioni alle cartelle utilizzate da Oracle per non incorrere in spiacevoli inconvenienti o nel corso dell'installazione o quando l'istanza starà girando!]
Editiamo il file /export/home/oracle/.profile
————————————–
umask 022
TMP=/tmp
TMPDIR=$TMP
DISPLAY=localhost:0.0
export TMP TMPDIR DISPLAY
ORACLE_BASE=/u01/app/oracle [da sostituire con la propria oracle base]
ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1 [da sostituire con la propria oracle home]
ORACLE_SID=jktdb [da sostituire con il nome della propria istanza]
PATH=$ORACLE_HOME/bin:$PATH
export ORACLE_BASE ORACLE_HOME ORACLE_SID PATH
Configuriamo i parametri del kernel
—————————–
#projadd oracle [Creiamo un nuovo 'resource project']
edit the /etc/user_attr file:
adm::::profiles=Log Management
lp::::profiles=Printer Management
root::::auths=solaris.*,solaris.grant;profiles=Web Console Management,All;lock_after_retries=no
oracle::::project=oracle [mentre le altre righe potrebbero essere presenti questa è da aggiungere]
[Quindi proseguiamo...]
#su – oracle
$ id -p
$ prctl -n project.max-shm-memory -i project oracle
[Quello che vedremo sarà + o - così...]
project: 100: oracle
NAME PRIVILEGE VALUE FLAG ACTION RECIPIENT
project.max-shm-memory
privileged 126MB – deny -
system 16.0EB max deny -
[Lasciamo quindi l'utente Oracle collegato su questa finestra e proseguiamo aprendo un'altra finestra terminal da utente root...]
#prctl -n project.max-shm-memory -v 4gb -r -i project oracle [amplia la memoria massima a 4GB]
[Lanciato questo comando ritorniamo sulla finestra terminal dell'utente Oracle]
$ prctl -n project.max-shm-memory -i project oracle
[Nota]
#prctl -n project.max-shm-memory -v 4gb -r -i project oracle [Questo comando verrà perso al riavvio]
[Per settarlo permanentemente]
#projmod -s -K “project.max-shm-memory=(priv,4gb,deny)” oracle
Lanciamo l’installazione di Oracle
————————————-
#su – oracle
$xhost +
$export DISPLAY=myserver;0.0
$ xhost +mydatabaseserver
$ cd /export/home/database/ [Ci estraiamo il contenuto dello zip di oracle qui]
./runInstaller [Lanciamo l'installer e proseguiamo passo passo]
FOR SOLARIS SPARC:
====================
$ gunzip ship_rel10_sol64_db.cpio.gz
$ cpio -idm < ship_rel10_sol64_db.cpio
$./runInstaller
If you found unsufficient SWAP disk space on your disk, create folder under / then run this command:
—————————————————
$ TMP=/directory
$ TMPDIR=/directory
$ export TMP TMPDIR
Follow the screen>>NEXT>>NEXT
[Lanciamo per ultimi questi due script per completare l'installazione]
—————————-
/u01/app/oracle/oraInventory/orainstRoot.sh
/u01/app/oracle/product/10.2.0/db_1/root.sh
Per permettere l’avvio di Oracle all’avvio della macchina…
———————————————–
Creiamo il file “/etc/init.d/dbora”
——-
#!/bin/sh
ORA_HOME=/u01/app/oracle/product/10.2.0/db_1
ORA_OWNER=oracle
if [ ! -f $ORA_HOME/bin/dbstart ]
then
echo “Oracle startup: cannot start”
exit
fi
case “$1″ in
’start’)
su – $ORA_OWNER -c “$ORA_HOME/bin/dbstart”
;;
’stop’)
su – $ORA_OWNER -c “$ORA_HOME/bin/dbshut”
;;
esac
———
#chmod 777 /etc/init.d/dbora
#/etc/init.d/dbora stop
#ln -s /etc/init.d/dbora /etc/rc0.d/K01dbora
#ln -s /etc/init.d/dbora /etc/rc2.d/S99dbora
[Nel caso risultassero errori di seguito trovate consigli sulla struttura delle directory e errori tipici che possono avvenire in fase di installazione....]
ORACLE_HOME_LISTNER is not SET, unable to auto-stop Oracle Net Listener
edit file “dbstart” & “dbshut”, find line $ORACLE_HOME_LISTNER=$1
and change to = $ORACLE_HOME_LISTNER=/u01/app/oracle/product/10.2.0/db_1
RECOMMENDED DIRECTORY STRUCTURE:
[Oracle Base Directory:]
/u01/app/oracle
/u01/app/orauser
/opt/oracle/app/oracle
[Oracle Inventory Directory:]
ORACLE_BASE/oraInventory
[Oracle Home Directory:]
ORACLE_BASE/product/10.2.0/db_1
[Identify an existing oracle base directory:]
#more /var/opt/oracle/oraInst.loc
[the output should be:]
inventory_loc=/u01/app/oracle/oraInventory
inst_group=oinstall
# more /var/opt/oracle/oratab
*:/u03/app/oracle/product/10.2.0/db_1:N
*:/opt/orauser/infra_904:N
*:/oracle/9.2.0:N
COMMON INSTALLATION ERROR:
===========================
Unable to convert from “UTF-8″ to “646″ for NLS!
Solution: Install SUNWuiu8 package.
error adduser:
———————
UX: useradd: ERROR: Inconsistent password files. See pwconv(1M)
This is because the /etc/passwd and /etc/shadow files are out of synchronization on your machine. [CSCdi74894]
To fix this, run the pwconv command, and then rerun cwconfigure.
try to run:
wc -l /etc/passwd /etc/shadow
————–
ERROR Checking monitor: must be configured to display at least 256 colors >>> Could not execute auto check for
display colors using command /usr/openwin/bin/xdpyinfo. Check if the DISPLAY variable is set. Failed <<<<
Some requirement checks failed. You must fulfill these requirements before continuing with theinstallation, at which time they will be rechecked.
Solution(s):
1. Install SUNWxwplt package
2. Set DISPLAY variable
3. Execute xhost + on target (set in DISPLAY) computer
———————————————————-
Exception in thread “main” java.lang.UnsatisfiedLinkError:
… libmawt.so: ld.so.1: java: fatal: libXm.so.4: open failed: No such file or directory
Solution: Install the SUNWmfrun package.
—————————————————————————————————-
Can’t load ‘/usr/perl5/5.8.4/lib/i86pc-solaris-64int/auto/Sun/Solaris/Project/Project.so’ for module
Sun::Solaris::Project: ld.so.1: perl: fatal: libpool.so.1: open failed: No such file or directory at
/usr/perl5/5.8.4/lib/i86pc-solaris-64int/DynaLoader.pm line 230. at /usr/sbin/projadd line 19 Compilation
failed in require at /usr/sbin/projadd line 19. BEGIN failed–compilation aborted at /usr/sbin/projadd line 19.
Solution: Install the SUNWpool SUNWpoolr packages.
———————————————————————–
bash-3.00$ /u01/app/oracle/product/10.2.0/db_1/bin/./emctl start dbconsole
Exception in getting local host
java.net.UnknownHostException: -a: -a
at java.net.InetAddress.getLocalHost(InetAddress.java:1191)
at oracle.sysman.emSDK.conf.TargetInstaller.getLocalHost(TargetInstaller.java:4977)
at oracle.sysman.emSDK.conf.TargetInstaller.main(TargetInstaller.java:3758)
Exception in getting local host
Solution : check server hostname and /etc/hosts
Commenti»
No comments yet — be the first.