Installer sur une distribution Red Hat Enterprise Server 6.x (6.8 dans notre cas). Mode Basic Server
Attention : même sur un système 64 bits, Sun DSEE fonctionne en mode 32 bits. Il faut donc s'assurer d'avoir installé les librairies compatibles.
Installer les paquets :
On utilise yum pour installer tout cela :
yum install unzip wget compat-libstdc++-33.x86_64 compat-libstdc++-33.i686 compat-glibc compat-gcc compat-libstdc++-296.i686 libstdc++ libstdc++.i686 zlib.i686
On a créer / utiliser les répertoires suivants :
Récupérer le zip,et l'extraire.
unzip ofm_odsee_linux_11.1.1.5.0_64_disk1_1of1-1.zip
On peut alors se positionner dans le répertoire ODSEE_ZIP_Distribution et lancer l'utilitaire idsktune. Cet utilitaire va vérifier la version de l'OS, les librairies installées, etc.
Exemple de sortie :
./idsktune
ODSEE 11gR1+PS1 platform tuning analysis version May 2 2011 (ODSEE 11.1.1.5.0).
Copyright (c) 2001, 2011, Oracle and/or its affiliates. All rights reserved.
ERROR : compat-glibc-2.3.4 is not installed.
ERROR : Required 32-bit Run-Time is not installed.
NOTICE : System is x86_64-unknown-rhel60linux3.10.0-514.26.2.el7.x86_64 (2 processors).
WARNING: Only 3790MB of physical memory is available on the system.
4000MB is the recommended minimum for a production system.
Consult "Oracle Directory Server Enterprise Edition 11gR1+PS1 Deployment Planning Guide: Tuning System Characteristics and Hardware Sizing" for more information about system sizing.
NOTICE : The net.ipv4.tcp_keepalive_time is set to 7200000 milliseconds
(120 minutes). This may cause temporary server congestion from lost
client connections.
ERROR : The above errors MUST be corrected before proceeding.
Une fois les erreurs résolues, on peut alors extraire le fichier sun-dsee7.zip. Dans notre exemple, on va installer dans /opt
cd /opt
unzip /opt/ODSEE_ZIP_Distribution/sun-dsee7.zip
On crée une instance avec l'utilitaire dsadm, en fournissant les ports d'écoute (ldap et ldaps) ainsi que le répertoire d'installation de l'instance. Par exemple :
/opt/dsee7/bin/dsadm create -p 1389 -P 1636 /var/lib/dsee/monInstance
Choose the Directory Manager password:
Confirm the Directory Manager password:
Use 'dsadm start '/var/lib/dsee/monInstance'' to start the instance
Le démarrage se fait avec la commande dsadm start :
/opt/dsee7/bin/dsadm start /var/lib/dsee/monInstance
La configuration d'une instance se fait avec la commande dsconf :
/opt/dsee7/bin/dsconf create-suffix -p 1389 -e dc=example,dc=com
Il faut saisir le mot de passe du compte administrateur de l'instance.
On peut ensuite importer des données. Dans l'installation, on trouve des fichiers d'exemple (dans le répertoire resources/ldif).
La syntaxe est la suivante :
/opt/dsee7/bin/dsconf import -p 1389 -e /opt/dsee7/resources/ldif/Example.ldif dc=example,dc=com
Enter "cn=Directory Manager" password:
New data will override existing data of the suffix "dc=example,dc=com".
Initialization will have to be performed on replicated suffixes.
Do you want to continue [y/n] ? y
## Index buffering enabled with bucket size 40
## Beginning import job...
## Starting to process and index entries
## Processing file "/opt/dsee7/resources/ldif/Example.ldif"
## Finished scanning file "/opt/dsee7/resources/ldif/Example.ldif" (160 entries)
## Workers finished; cleaning up...
## Cleaning up producer thread...
## Indexing complete.
## Starting numsubordinates attribute generation.
## This may take a while, please wait for further activity reports.
## Numsubordinates attribute generation complete. Flushing caches...
## Closing files...
## Import complete. Processed 160 entries in 4 seconds. (40.00 entries/sec)
Task completed (slapd exit code: 0).