Installation d'oracle 12C et Apex5.1.3 sur debian 8.9
Bonjour,
J'essaie d'installer Apex 5.1.3 mais sans grand succès.
Je vais mettre les protocoles d'install comme ça vous pourrez juger de de que j'ai fait.
Création des groupes et user(depuis root)
Code:
1 2 3 4 5 6
| groupadd oinstall
groupadd dba
groupadd oper
adduser oracle
usermod -g oinstall oracle
usermod -G dba,oper oracle |
Création du répertoire d'installation(depuis root)
Code:
1 2
| mkdir -p /u01/app/oracle/product/12.1.0/dbhome_1
mkdir -p /u01/setup |
Copier le fichier linuxx64_12201_database.zip dans /u01/setup(depuis root)
Code:
1 2 3
| unzip linuxx64_12201_database.zip
chown -R oracle:oinstall /u01
chmod -R 775 /u01 |
supprimer le fichier linuxx64_12201_database.zip dans /u01/setup
dans /etc/sysctl.conf ajouter les lignes suivantes(depuis root)
Code:
1 2 3 4 5 6 7 8 9 10 11
| fs.file-max = 6815744
kernel.sem = 250 32000 100 128
kernel.shmmni = 4096
kernel.shmall = 1073741824
kernel.shmmax = 4398046511104
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
fs.aio-max-nr = 1048576
net.ipv4.ip_local_port_range = 9000 65500 |
executerdans /etc/security/limits.conf ajouté les lignes suivantes (depuis root)
Code:
1 2 3 4 5 6
| oracle soft nofile 1024
oracle hard nofile 65536
oracle soft nproc 16384
oracle hard nproc 16384
oracle soft stack 10240
oracle hard stack 32768 |
installer plein de softs et liens logiques(depuis root)
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
| apt-get install binutils -y
apt-get install compat-libcap1 -y
apt-get install compat-libstdc++-33 -y
apt-get install compat-libstdc++-33.i686 -y
apt-get install gcc -y
apt-get install gcc-c++ -y
apt-get install glibc -y
apt-get install glibc.i686 -y
apt-get install glibc-devel -y
apt-get install glibc-devel.i686 -y
apt-get install ksh -y
apt-get install libgcc -y
apt-get install libgcc.i686 -y
apt-get install libstdc++ -y
apt-get install libstdc++.i686 -y
apt-get install libstdc++-devel -y
apt-get install libstdc++-devel.i686 -y
apt-get install libaio -y
apt-get install libaio.i686 -y
apt-get install libaio-devel -y
apt-get install libaio-devel.i686 -y
apt-get install libXext -y
apt-get install libXext.i686 -y
apt-get install libXtst -y
apt-get install libXtst.i686 -y
apt-get install libX11 -y
apt-get install libX11.i686 -y
apt-get install libXau -y
apt-get install libXau.i686 -y
apt-get install libxcb -y
apt-get install libxcb.i686 -y
apt-get install libXi -y
apt-get install libXi.i686 -y
apt-get install make -y
apt-get install sysstat -y
apt-get install unixODBC -y
apt-get install unixODBC-devel -y
apt-get install comapt-libstdc* -y
apt-get install libbaio-devel -y
apt-get install glib-devel -y
apt-get install glibc-headers -y
apt-get install glib-common -y
apt-get install kernel-header -y
apt-get install libbaio-devel -y
apt-get install glib-devel -y
apt-get install glibc-headers -y
apt-get install glib-common -y
apt-get install kernel-header -y
apt-get install elfutils -y
apt-get install libaio1 -y
apt-get install libaio-dev -y
apt-get install numactl -y
apt-get install pdksh -y
apt-get install unixODBC-dev -y
apt-get install build-essential -y
apt-get install gawk -y
apt-get install libmotif3 -y
apt-get install alien -y
apt-get install libtool -y
apt-get install xorg -y
apt-get install unzip -y
apt-get install rlwrap -y
apt-get install original-awk -y
apt-get install libpcap-dev -y
apt-get install g++ -y
apt-get install libc6 -y
apt-get install libc6-dev -y
apt-get install libstdc++-4.8-dev -y
apt-get install libXi6 -y
apt-get install libXtst6 -y
apt-get install gcc-multilib -y
apt-get install lib32z1 -y
apt-get install lib32ncurses5 -y
apt-get install libstdc++5 -y
apt-get install rpm -y
apt-get install xauth -y
ln -s /usr/bin/awk /bin/awk
ln -s /usr/lib/x86_64-linux-gnu/ /usr/lib64
ln -s /etc /etc/rc.d
ln -s /usr/bin/basename /bin/basename
ln -s /usr/bin/rpm /bin/rpm |
dans /etc/hosts modifier les lignes suivantes(depuis root)
Code:
127.0.1.1 BGGOracle.localdomain BGGOracle
Ajouter dans /home/oracle/.profile,/home/oracle/.bash_profile,/root/.profile,/root/.bash_profile(depuis root)
Code:
1 2 3 4 5 6 7 8 9 10 11 12
| # Oracle Settings
export TMP=/tmp
export TMPDIR=$TMP
export ORACLE_HOSTNAME=bggoracle
export ORACLE_UNQNAME=bggoracle
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/12.1.0/dbhome_1/
export ORACLE_SID=bggoracle
export PATH=/usr/sbin:$PATH
export PATH=$ORACLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib |
Executer(depuis oracle)
/u01/setup/database/runInstaller
https://image.ibb.co/gWZVam/oracle001.png
https://image.ibb.co/iQvQ86/oracle002.png
https://image.ibb.co/gXMnMR/oracle003.png
https://image.ibb.co/cBYdT6/oracle004.png
https://image.ibb.co/kTSSMR/oracle005.png
https://image.ibb.co/fZhGFm/oracle006.png
https://image.ibb.co/ippk86/oracle007.png
https://image.ibb.co/fcSGFm/oracle008.png
https://image.ibb.co/mhQQ86/oracle009.png
https://image.ibb.co/i2wnMR/oracle010.png
executer ces scripts(depuis root)
Code:
1 2
| /u01/app/oraInventory/orainstRoot.sh
/u01/app/oracle/product/12.1.0/dbhome_1/root.sh |
installation de la db d'oracle avec le compte oracle(depuis oracle)https://image.ibb.co/jo28vm/DBCA01.png
https://image.ibb.co/iYNV86/DBCA02.png
https://image.ibb.co/cRA6gR/DBCA03.png
https://image.ibb.co/mKMq86/DBCA04.png
https://image.ibb.co/d9bOT6/DBCA05.png
https://image.ibb.co/bxfiT6/DBCA05_1.png
https://image.ibb.co/nCuco6/DBCA06.png
https://image.ibb.co/bvCmgR/DBCA07.png
https://image.ibb.co/fvAvam/DBCA08.png
https://image.ibb.co/iHKXMR/DBCA09.png
https://image.ibb.co/kb2mgR/DBCA09_1.png
https://image.ibb.co/k67K1R/DBCA09_2.png
https://image.ibb.co/gdgq86/DBCA09_3.png
https://image.ibb.co/cnyFam/DBCA09_4.png
https://image.ibb.co/fXHmgR/DBCA10.png
https://image.ibb.co/hDNaam/DBCA11.png
https://image.ibb.co/eShaam/DBCA12.png
https://image.ibb.co/b2JgFm/DBCA12_1.png
https://image.ibb.co/fG9A86/DBCA12_2.png
https://image.ibb.co/dzoRgR/DBCA12_2_1.png
https://image.ibb.co/ghOFam/DBCA12_2_2.png
https://image.ibb.co/eK3Fam/DBCA12_2_3.png
https://image.ibb.co/cdnK1R/DBCA12_2_4.png
https://image.ibb.co/dDmOT6/DBCA12_2_5.png
https://image.ibb.co/jPvvam/DBCA13.png
pour la démarrage auto de la db au boot(depuis root)
Code:
dans /etc/oratab, change the autostart field from N to Y for any
et créer fichier /etc/systemd/system/oracle.service et mettre dedans(depuis root)
Code:
1 2 3 4 5 6 7 8 9 10 11 12
| [Unit]
Description=Oracle 12c DataBase
[Service]
Type=oneshot
RemainAfterExit=yes
Environment="ORACLE_HOME=/u01/app/oracle/product/12.1.0/dbhome_1"
ExecStart=/bin/su oracle -c '/u01/app/oracle/product/12.1.0/dbhome_1/bin/dbstart $ORACLE_HOME'
ExecStop=/bin/su oracle -c '/u01/app/oracle/product/12.1.0/dbhome_1/bin/dbshut $ORACLE_HOME'
[Install]
WantedBy=multi-user.target |
Ensuite(depuis root)
Code:
1 2 3 4
| systemctl daemon-reload
systemctl enable oracle
systemctl start oracle
reboot |
Installation de SQLPLUS
création du répertoire d'installation
Code:
mkdir -p /u01/app/sqlplus
copier instantclient-basic-linux.x64-12.2.0.1.0.zip et instantclient-sqlplus-linux.x64-12.2.0.1.0.zip
Code:
1 2 3
| cd /u01/app/sqlplus
unzip instantclient-basic-linux.x64-12.2.0.1.0.zip
unzip instantclient-sqlplus-linux.x64-12.2.0.1.0.zip |
effacer instantclient-basic-linux.x64-12.2.0.1.0.zip et instantclient-sqlplus-linux.x64-12.2.0.1.0.zip
[CODDE]chown -R oracle:oinstall /u01/app/sqlplus
chmod -R 775 /u01/app/sqlplus[/CODE]
Pour se connecter en sys (depuis oracle)
Code:
sqlplus "sys as sysdba"
niquer la limite de temps pour les password
Code:
SQL> ALTER PROFILE "DEFAULT" LIMIT PASSWORD_VERIFY_FUNCTION NULL;
Le Oracle WebTier 12cR2
mettre le homeoracle.bin dans /u01/setup(depuis root)
Code:
1 2
| chmod 744 /u01/setup/homeoracle.bin
/u01/setup/homeoracle.bin |
https://image.ibb.co/kGbtvm/OFMWT01.png
https://image.ibb.co/gQtHMR/OFMWT02.png
https://image.ibb.co/ns3v86/OFMWT03.png
https://image.ibb.co/dzsBgR/OFMWT04.png
https://image.ibb.co/jgTj1R/OFMWT05.png
https://image.ibb.co/hRvLam/OFMWT06.png
https://image.ibb.co/erQxMR/OFMWT07.png
https://image.ibb.co/mayv86/OFMWT08.png
https://image.ibb.co/bCTv86/OFMWT09.png
mettre dans /etc/environment (depuis root)
Code:
JAVA_HOME="/u01/app/Middleware/Oracle_Home/oracle_common/jdk/jre"
executer(depuis oracle)
Code:
/u01/app/Middleware/Oracle_Home/oracle_common/common/bin/config.sh
https://image.ibb.co/ierq86/ACOFMWT01.png
https://image.ibb.co/hUjMFm/ACOFMWT02.png
https://image.ibb.co/np5iT6/ACOFMWT03.png
https://image.ibb.co/bx0iT6/ACOFMWT04.png
https://image.ibb.co/fXX8vm/ACOFMWT05.png
https://image.ibb.co/ecZz1R/ACOFMWT06.png
https://image.ibb.co/kFxaam/ACOFMWT07.png
https://image.ibb.co/mF8gFm/ACOFMWT08.png
https://image.ibb.co/eV7DT6/ACOFMWT09.png
Ensuite faut lancer se serveur(depuis oracle)
Code:
1 2 3 4
| cd /u01/app/Middleware/Oracle_Home/user_projects/domains/base_domain/bin/
./startNodeManager.sh
dans un autre fenêtre mobaxterm(depuis oracle)
./startComponent.sh ohs1 |
j'ai pas automatiser leur lancement au démarrage pour le moment
Et finalement cette Apex
copier apex_5.1.3.zip dans /u01/app/
Code:
1 2
| cd /u01/app (depuis oracle)
unzip apex_5.1.3.zip |
supprimer apex_5.1.3.zip
Code:
1 2
| cd /u01/app/apex/
sqlplus "sys as sysdba" |
Dans SQLPLUS(depuis oracle)
Code:
1 2 3 4 5 6 7
| SQL> CREATE TABLESPACE apex
DATAFILE '/u01/app/oracle/oradata/bggoracle/apex01.dbf' SIZE 50M AUTOEXTEND ON NEXT 50M MAXSIZE 500M
LOGGING
PERMANENT
EXTENT MANAGEMENT LOCAL AUTOALLOCATE
BLOCKSIZE 8K
SEGMENT SPACE MANAGEMENT AUTO; |
pour observer le tablespace créer
Code:
SQL> SELECT TABLESPACE_NAME, FILE_NAME, FILE_ID FROM DBA_DATA_FILES;
Et c'est là que tout merde
Code:
SQL> @apexins.sql APEX APEX TEMP /i/
Il me dit qu'il y a un problème d'ouverture de pdb, que faut-il que je fasse?
Problème
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| catcon: ALL catcon-related output will be written to [/u01/app/apex/apexins_cdb_catcon_26334.lst]
catcon: See [/u01/app/apex/apexins_cdb*.log] files for output generated by scripts
catcon: See [/u01/app/apex/apexins_cdb_*.lst] files for spool files, if any
validate_con_names: BGGORACLEPDB is not open
catconInit: Unexpected error returned by validate_con_names
Unexpected error encountered in catconInit; exiting
Installation completed. Log files for each container can be found in:
apexins_cdb*.log
You can quickly scan for ORA errors or compilation errors by using a utility
like grep:
grep ORA- *.log
grep PLS- *.log |