Julio Cesar Correa
DBA Oracle
Data: 16/12/2009
Passo-a-passo da instalação do Oracle BI EE em Linux Red Hat ou similar com screenshots
Download do software Oracle BIEE v.10.1.3.4.1 :
http://www.oracle.com/technology/software/products/ias/htdocs/101320bi.html
Documentação:
http://download.oracle.com/docs/cd/E10415_01/welcome.html
Download do software Sun JDK :
http://java.sun.com/javase/downloads/index.jsp
Hardware e software usados no teste:
Utilização de uma máquina virtual com:
- Memória RAM = 768MB
- Swap = 1537MB
- Linux = Oracle Enterprise Linux Server release 4 (Carthage)
- Linux Kernel = 2.6.18-53.el5
- Banco de dados = Oracle 10gr2 e ASM configurados e ativos.
Verificando os pré-requisitos do sistema operacional (instalando se necessário)
Pacote GCC-3.4.3 ou superior:
[root@jamaica sw]# rpm -qa |grep gcc
compat-gcc-34-g77-3.4.6-4
libgcc-4.1.2-14.el5
compat-gcc-34-3.4.6-4
compat-gcc-34-c++-3.4.6-4
gcc-4.1.2-14.el5
gcc-c++-4.1.2-14.el5
compat-libgcc-296-2.96-138
[root@jamaica sw]#
Parametros do SO:
root@jamaica etc]# ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
max nice (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 12288
max locked memory (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
max rt priority (-r) 0
stack size (kbytes, -s) 10240
cpu time (seconds, -t) unlimited
max user processes (-u) 12288
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
[root@jamaica etc]#
Criando os diretórios adicionais para a instalação
[root@jamaica ~]# mkdir -p /u03/oracle/biee
[root@jamaica oracle]# chown -R oracle:oinstall /u03
[root@jamaica oracle]# chmod -R 775 /u03
[root@jamaica oracle]#
Instalação do JDK
Requisitos
- Deve ser jdk 1.5.0 ou superior
[root@jamaica sw]# pwd
/u01/sw
[root@jamaica sw]# ls |grep jd
jdk-6u17-linux-i586.bin
jdk-6u17-linux-i586-rpm.bin
[root@jamaica sw]#
Copiar o executável de instalação do JDK para o diretório onde ele será instalado:
[root@jamaica sw]# cp jdk-6u17-linux-i586.bin /u03/oracle/
[root@jamaica sw]# cd /u03/oracle/
[root@jamaica oracle]# ls -l
total 79976
-rwxr-xr-x 1 root root 81792634 Dec 16 11:31 jdk-6u17-linux-i586.bin
drwxr-xr-x 2 oracle oinstall 4096 Dec 16 10:46 OracleBI
drwxr-xr-x 2 oracle oinstall 4096 Dec 16 10:46 OracleBIData
drwxr-xr-x 2 oracle oinstall 4096 Dec 16 10:47 scripts
drwxr-xr-x 2 oracle oinstall 4096 Dec 16 10:47 sw
[root@jamaica oracle]#
Instalação do JDK:
[root@jamaica oracle]# chmod +x jdk-6u17-linux-i586.bin
[root@jamaica oracle]# ./jdk-6u17-linux-i586.bin
Sun Microsystems, Inc. Binary Code License Agreement
for the JAVA SE DEVELOPMENT KIT (JDK), VERSION 6
SUN MICROSYSTEMS, INC. ("SUN") IS WILLING TO LICENSE THE
SOFTWARE IDENTIFIED BELOW TO YOU ONLY UPON THE CONDITION
THAT YOU ACCEPT ALL OF THE TERMS CONTAINED IN THIS BINARY
CODE LICENSE AGREEMENT AND SUPPLEMENTAL LICENSE TERMS
(COLLECTIVELY "AGREEMENT"). PLEASE READ THE AGREEMENT
CAREFULLY. BY USING THE SOFTWARE YOU ACKNOWLEDGE THAT
YOU HAVE READ THE TERMS AND AGREE TO THEM. IF YOU ARE
AGREEING TO THESE TERMS ON BEHALF OF A COMPANY OR OTHER
LEGAL ENTITY, YOU REPRESENT THAT YOU HAVE THE LEGAL
AUTHORITY TO BIND THE LEGAL ENTITY TO THESE TERMS. IF
YOU DO NOT HAVE SUCH AUTHORITY, OR IF YOU DO NOT WISH
TO BE BOUND BY THE TERMS, THEN YOU MUST NOT USE THE
SOFTWARE ON THIS SITE OR ANY OTHER MEDIA ON WHICH THE
SOFTWARE IS CONTAINED.
(...)
storage management systems, and other related systems are
excluded from this definition and not licensed under this
Do you agree to the above license terms? [yes or no]
[yes]
No servidor:
E finalmente:
Validação
[root@jamaica oracle]# ls -ltrh
total 79M
drwxr-xr-x 2 oracle oinstall 4.0K Dec 16 10:46 OracleBIData
drwxr-xr-x 2 oracle oinstall 4.0K Dec 16 10:46 OracleBI
drwxr-xr-x 2 oracle oinstall 4.0K Dec 16 10:47 sw
drwxr-xr-x 2 oracle oinstall 4.0K Dec 16 10:47 scripts
-rwxr-xr-x 1 root root 79M Dec 16 11:31 jdk-6u17-linux-i586.bin
drwxr-xr-x 10 root root 4.0K Dec 16 11:33 jdk1.6.0_17
[root@jamaica oracle]#
Limpeza
[root@jamaica oracle]# rm -rfv jdk-6u17-linux-i586.bin
removed `jdk-6u17-linux-i586.bin'
[root@jamaica oracle]#
Concedendo permissão de escrita para o usuário Oracle
Obs. Senão a instalação do BIEE será interrompida .
[root@jamaica oracle]# pwd
/u03/oracle
[root@jamaica oracle]# ls -l
total 20
drwxr-xr-x 10 root root 4096 Dec 16 11:33 jdk1.6.0_17
drwxr-xr-x 2 oracle oinstall 4096 Dec 16 10:46 OracleBI
drwxr-xr-x 2 oracle oinstall 4096 Dec 16 10:46 OracleBIData
drwxr-xr-x 2 oracle oinstall 4096 Dec 16 10:47 scripts
drwxr-xr-x 2 oracle oinstall 4096 Dec 16 10:47 sw
[root@jamaica oracle]# chmod -R 777 /u03/oracle/jdk1.6.0_17
[root@jamaica oracle]# ls -l
total 20
drwxrwxrwx 10 root root 4096 Dec 16 11:33 jdk1.6.0_17
drwxr-xr-x 2 oracle oinstall 4096 Dec 16 10:46 OracleBI
drwxr-xr-x 2 oracle oinstall 4096 Dec 16 10:46 OracleBIData
drwxr-xr-x 2 oracle oinstall 4096 Dec 16 10:47 scripts
drwxr-xr-x 2 oracle oinstall 4096 Dec 16 10:47 sw
Variáveis de ambiente:
Os comandos abaixo devem ser colocados no .profile do Shell.
export JAVA_HOME=/u03/oracle/jdk1.6.0_17
export PATH=$PATH:$JAVA_HOME/Bin
Descompactar o software do Oracle BIEE
[oracle@jamaica biee]$ pwd
/u01/sw/biee
[oracle@jamaica biee]$ ls -ltrh
total 1.4G
-rw-r--r-- 1 oracle oinstall 1.4G Apr 24 2009 biee_linux_x86_redhat_101341.zip
[oracle@jamaica biee]$
[oracle@jamaica biee]$
Executar unzip do arquivo que foi baixado:
-
[oracle@jamaica biee]$ pwd
/u01/sw/biee
[oracle@jamaica biee]$ unzip biee_linux_x86_redhat_101341.zip
O comando vai gerar um diretório como o nome de “Media”:
[oracle@jamaica biee]$ ls
biee_linux_x86_redhat_101341.zip Media
[oracle@jamaica biee]$
Dentro da pasta Media será gerado um arquivo .tar com 1.5GB .
biee_linux_x86_redhat_101341_1of1.tar
Descompacte com:
tar –xvf biee_linux_x86_redhat_101341_1of1.tar
[oracle@jamaica biee]$ cd Media/RH_Linux/Server/Oracle_Business_Intelligence/
[oracle@jamaica Oracle_Business_Intelligence]$ ls -ltrh
total 862M
-rw-r--r-- 1 oracle oinstall 12 Apr 15 2009 media.inf
-rw-r--r-- 1 oracle oinstall 820M Apr 15 2009 setup.jar
-rwxr-xr-x 1 oracle oinstall 42M Apr 15 2009 Linux.bin
-rw-r--r-- 1 oracle oinstall 108 Apr 15 2009 version.txt
-rwxr-xr-x 1 oracle oinstall 48K Apr 15 2009 UnixChk.sh
-rwxr-xr-x 1 oracle oinstall 2.5K Apr 15 2009 setup.sh
drwxr-xr-x 3 oracle oinstall 4.0K Apr 15 2009 script
-rwxr-xr-x 1 oracle oinstall 6.3K Apr 15 2009 license.xml
drwxr-xr-x 2 oracle oinstall 4.0K Apr 15 2009 help
drwxr-xr-x 4 oracle oinstall 4.0K Apr 15 2009 Config
drwxr-xr-x 3 oracle oinstall 4.0K Apr 18 2009 doc
[oracle@jamaica Oracle_Business_Intelligence]$
Com o usuário oracle :
[oracle@jamaica oracle]$ pwd
/u03/oracle
[oracle@jamaica oracle]$
Criar os diretórios onde residirão os binários do BIEE
$ mkdir OracleBI OracleBIData
[oracle@jamaica oracle]$ mkdir sw
[oracle@jamaica oracle]$ mkdir scripts
[oracle@jamaica oracle]$ ls -ltrh
total 16K
drwxr-xr-x 2 oracle oinstall 4.0K Dec 16 10:46 OracleBIData
drwxr-xr-x 2 oracle oinstall 4.0K Dec 16 10:46 OracleBI
drwxr-xr-x 2 oracle oinstall 4.0K Dec 16 10:47 sw
drwxr-xr-x 2 oracle oinstall 4.0K Dec 16 10:47 scripts
Setup do Oracle BIEE :
[oracle@jamaica Oracle_Business_Intelligence]$ ./setup.sh
1) Tela informative inicial :
2) Na segunda tela temos as opções de localização default :
/usr/local/OracleBI
/usr/local/OracleBIData
Alterei para uma localização pré-definida anteriormente e escolhi o tipo de instalação como Basic:
3) Escolha da opção de instalação completa :
4) Localização do JDK e definição de senha para OC4J :
Obs. A senha deve ter no mínimo 6 caracteres e no máximo 30,contendo pelo menos 1 digito.No meu caso por ser um teste coloquei s senha como “oracle4j” .
5) Seleção do idioma para mensagens de erro.
Prefiro o english .
6) Sumário dos componentes que serão instalados:
7) Instalando:
8) Sumário da instalação que foi feita:
9) Acessando o produto instalado:
Detalhes sobre os serviços do Oracle BI EE
“Default Web port BI services is 9704 and default username/password is Administrator/Administrator”
“To Access Analytics (BI Analytics ) http : // server name:9704/analytics (Administrator/Administrator) “
“To Access Publisher (BI Publisher aka XML publisher )
http :// servername:9704/xmlpserver (Administrator/Administrator)”
OC4J e Application Server Control
Inicializando os serviços : Java_Host e Presentantion Service(processo sawserver)
[oracle@jamaica ~]$ cd /u03/oracle/OracleBI
[oracle@jamaica OracleBI]$ ls
corda50 index_bi_ee.html Install_Backup jdbc oc4j_bi office server systemsmanagement version.txt xmlp
index_bi_ee_files install inventory log odbc oui setup uninstall web
[oracle@jamaica OracleBI]$ cd setup/
[oracle@jamaica setup]$ ls -l
total 144
-rwxr-x--- 1 oracle oinstall 3395 Dec 16 12:03 common.sh
-rwxr-x--- 1 oracle oinstall 136 Dec 16 12:01 installperfsas.sh
-rwxr-x--- 1 oracle oinstall 121 Dec 16 12:04 installperfsaw.sh
-rwxr-x--- 1 oracle oinstall 555 Dec 16 12:00 kill.sh
lrwxrwxrwx 1 oracle oinstall 37 Dec 16 11:58 oc4j -> /u03/oracle/OracleBI/oc4j_bi/bin/oc4j
-rwxr-x--- 1 oracle oinstall 1278 Dec 16 12:00 odbc.ini
-rwxr-x--- 1 oracle oinstall 4280 Dec 16 12:02 run-ccs.sh
-rwxr-x--- 1 oracle oinstall 4759 Dec 16 12:01 run-sa.sh
-rwxr-x--- 1 oracle oinstall 5411 Dec 16 12:03 run-saw.sh
-rwxr-x--- 1 oracle oinstall 4196 Dec 16 12:03 run-sch.sh
-rwxr-x--- 1 oracle oinstall 87 Dec 16 12:00 sa-cli.sh
-rwxr-x--- 1 oracle oinstall 87 Dec 16 12:00 sa-init.sh
-rwxr-x--- 1 oracle oinstall 123 Dec 16 12:03 sawserver.sh
-rwxr-x--- 1 oracle oinstall 513 Dec 16 12:03 saw.sh
-rwxr-x--- 1 oracle oinstall 1479 Dec 16 12:03 sysenvinit.sh
-rwxr-x--- 1 oracle oinstall 904 Dec 16 12:03 systunesrv.sh
-rwxr-x--- 1 oracle oinstall 138 Dec 16 12:01 uninstallperfsas.sh
-rwxr-x--- 1 oracle oinstall 126 Dec 16 12:04 uninstallperfsaw.sh
-rwxr-x--- 1 oracle oinstall 48675 Dec 16 12:00 UnixChk.sh
-rwxr-x--- 1 oracle oinstall 8637 Dec 16 12:01 user.sh
Inicializando:
[oracle@jamaica setup]$ ./run-saw.sh start
Oracle BI Java Host startup initiated.
Please check '/u03/oracle/OracleBIData/web/log/javahost.out.log' for Oracle BI Java Host startup details.
Please go to the '/u03/oracle/OracleBIData/web/log/javahost' directory for Oracle BI Java Host log files after starting up.
Oracle BI Presentation Services startup initiated.
Please go to the '/u03/oracle/OracleBIData/web/log' directory for Oracle BI Presentation Services log files.
[oracle@jamaica setup]$
BI Publisher
Caso não consiga logar com o usuário se senha default:
Segundo a nota Correcting Configuration Problems Between BI Publisher and BI Server [ID 567726.1] do Metalink :
Para verificar se está habilitado:
[oracle@jamaica OracleBI]$ pwd
/u03/oracle/OracleBI
[oracle@jamaica OracleBI]$ cd xmlp/
[oracle@jamaica xmlp]$ ls -l
total 62660
drwxr-x--- 2 oracle oinstall 4096 Dec 16 12:10 fonts
drwxr-x--- 6 oracle oinstall 4096 Dec 16 12:10 XMLP
-rwxr-x--- 1 oracle oinstall 64085119 Apr 15 2009 xmlpserver.ear
[oracle@jamaica xmlp]$ cd XMLP/
[oracle@jamaica XMLP]$ ls
Admin DemoFiles Reports Tools
[oracle@jamaica XMLP]$ cd Admin/Configuration/
[oracle@jamaica Configuration]$ ls
xmlp-server-config.xml
[oracle@jamaica Configuration]$
Faça um backup do arquivo xmlp-server-config.xml e edite-o com o vi:
Visualização do arquivo no editor vi:
Alteração segundo a nota 567726.1 do Metalink :
Na propriedade SECURITY_MODEL altere o valor de “BI_SERVER” para ” XDO”.
Após a alteração:
[oracle@jamaica Configuration]$ pwd
/u03/oracle/OracleBI/xmlp/XMLP/Admin/Configuration
[oracle@jamaica Configuration]$ more xmlp-server-config.xml |grep SECURITY_MODEL
<property name="SECURITY_MODEL" value="XDO"/>
[oracle@jamaica Configuration]$
Reiniciar o OC4J:
/u03/oracle/OracleBI/oc4j_bi/bin
[oracle@jamaica bin]$
[oracle@jamaica bin]$
[oracle@jamaica bin]$ ls -l
total 8
-rwxr-x--- 1 oracle oinstall 6301 Dec 16 11:58 oc4j
[oracle@jamaica bin]$ ./oc4j -shutdown -port 23791 -password oracle4j
Shutdown OC4J instance...
[oracle@jamaica bin]$
[oracle@jamaica bin]$
[oracle@jamaica bin]$ ./oc4j -start
Starting OC4J from /u03/oracle/OracleBI/oc4j_bi/j2ee/home ...
Para efeito de teste foi criado a conexão com o banco de dados OCADB:
Feito isso pode-se desbloquear a senha do usuário master e editar novamente o arquivo xmlp-server-config.xml e voltar o valor do parâmetro SECURITY_MODEL .
Local onde estão localizados os executáveis para inicialização e finalização de serviços :
[oracle@jamaica setup]$ pwd
/u03/oracle/OracleBI/setup
[oracle@jamaica setup]$ ls -ltrh
total 144K
lrwxrwxrwx 1 oracle oinstall 37 Dec 16 11:58 oc4j -> /u03/oracle/OracleBI/oc4j_bi/bin/oc4j
-rwxr-x--- 1 oracle oinstall 87 Dec 16 12:00 sa-init.sh
-rwxr-x--- 1 oracle oinstall 87 Dec 16 12:00 sa-cli.sh
-rwxr-x--- 1 oracle oinstall 555 Dec 16 12:00 kill.sh
-rwxr-x--- 1 oracle oinstall 48K Dec 16 12:00 UnixChk.sh
-rwxr-x--- 1 oracle oinstall 1.3K Dec 16 12:00 odbc.ini
-rwxr-x--- 1 oracle oinstall 4.7K Dec 16 12:01 run-sa.sh
-rwxr-x--- 1 oracle oinstall 8.5K Dec 16 12:01 user.sh
-rwxr-x--- 1 oracle oinstall 138 Dec 16 12:01 uninstallperfsas.sh
-rwxr-x--- 1 oracle oinstall 136 Dec 16 12:01 installperfsas.sh
-rwxr-x--- 1 oracle oinstall 4.2K Dec 16 12:02 run-ccs.sh
-rwxr-x--- 1 oracle oinstall 4.1K Dec 16 12:03 run-sch.sh
-rwxr-x--- 1 oracle oinstall 904 Dec 16 12:03 systunesrv.sh
-rwxr-x--- 1 oracle oinstall 1.5K Dec 16 12:03 sysenvinit.sh
-rwxr-x--- 1 oracle oinstall 513 Dec 16 12:03 saw.sh
-rwxr-x--- 1 oracle oinstall 123 Dec 16 12:03 sawserver.sh
-rwxr-x--- 1 oracle oinstall 5.3K Dec 16 12:03 run-saw.sh
-rwxr-x--- 1 oracle oinstall 3.4K Dec 16 12:03 common.sh
-rwxr-x--- 1 oracle oinstall 126 Dec 16 12:04 uninstallperfsaw.sh
-rwxr-x--- 1 oracle oinstall 121 Dec 16 12:04 installperfsaw.sh
Exemplos :
Oracle BI Server
./OracleBI/setup/run-sa.sh start
./OracleBI/setup/run-sa.sh stop
Oracle BI Presentation Server and Javahost
./OracleBI/setup/run-saw.sh start
./OracleBI/setup/run-saw.sh stop
OC4J
./OracleBI/oc4j_bi/bin/oc4j -start
./OracleBI/oc4j_bi/bin/oc4j –shutdown –port 23791 –password
Bom, acho que é só.
Obs. No arquivo .doc a formatação ficou bem melhor kkk.
Att,
JC
No comments:
Post a Comment