Commit 673cdb2cb8ca03e5df53457411510ed60dce0f5b
1 parent
578e43ef
Exists in
sei-v3.0.0-oracle-dockerimages
and in
1 other branch
Configuração inicial do oracle
Showing
7 changed files
with
59 additions
and
0 deletions
Show diff stats
No preview for this file type
No preview for this file type
... | ... | @@ -0,0 +1,59 @@ |
1 | +# Configuração do Oracle no servidor de aplicação do SEI/SIP | |
2 | + | |
3 | +# Instalação de dependências do projeto | |
4 | +yum -y install libaio | |
5 | + | |
6 | + | |
7 | +# Instalação dos pacotes Basic e SDK Instant Client | |
8 | +rpm -Uvh oracle-instantclient11.2-basic-11.2.0.4.0-1.x86_64.rpm | |
9 | +rpm -Uvh oracle-instantclient11.2-devel-11.2.0.4.0-1.x86_64.rpm | |
10 | +rpm -Uvh oracle-instantclient11.2-sqlplus-11.2.0.4.0-1.x86_64.rpm | |
11 | + | |
12 | +# Instalação dos OCI8 extension | |
13 | +printf "\n" | pecl install oci8-2.0.12 | |
14 | + | |
15 | +# Habilitação da extensão do Oracle | |
16 | +echo "extension=oci8.so" > /etc/php.d/oci8.ini | |
17 | + | |
18 | +# Configuração de diretório do Oracle Instant Client no dynamic linker/loader | |
19 | +echo "/usr/lib/oracle/11.2/client64/lib" > /etc/ld.so.conf.d/oracle-11.conf | |
20 | + | |
21 | +# Variáveis de ambiente | |
22 | +export NLS_LANG=PORTUGUESE_BRAZIL.WE8MSWIN1252 | |
23 | + | |
24 | + | |
25 | +# Configuração do banco de dados Oracle do SEI/SIP | |
26 | + | |
27 | +sqlplus sys/oracle as sysdba; | |
28 | + | |
29 | + | |
30 | +SHUTDOWN; | |
31 | +STARTUP MOUNT; | |
32 | +ALTER SYSTEM ENABLE RESTRICTED SESSION; | |
33 | +ALTER SYSTEM SET JOB_QUEUE_PROCESSES=0; | |
34 | +ALTER DATABASE OPEN; | |
35 | +ALTER DATABASE CHARACTER SET INTERNAL_USE WE8MSWIN1252; | |
36 | +ALTER DATABASE NATIONAL CHARACTER SET INTERNAL_USE AL16UTF16; | |
37 | +SHUTDOWN IMMEDIATE; | |
38 | +STARTUP; | |
39 | + | |
40 | + | |
41 | + | |
42 | +CREATE TABLESPACE SEI DATAFILE '/u01/app/oracle/oradata/XE/sei.dbf' SIZE 20M AUTOEXTEND ON; | |
43 | +CREATE TABLESPACE SIP DATAFILE '/u01/app/oracle/oradata/XE/sip.dbf' SIZE 20M AUTOEXTEND ON; | |
44 | + | |
45 | +create user sei identified by sei_user; | |
46 | +create user sip identified by sip_user; | |
47 | + | |
48 | +grant all privileges to sei; | |
49 | +grant all privileges to sip; | |
50 | + | |
51 | + | |
52 | +imp system/oracle file=/tmp/SEI_3.0.0.dmp full=y | |
53 | + | |
54 | + | |
55 | +drop user sei cascade; | |
56 | +drop user sip cascade; | |
57 | + | |
58 | + | |
59 | + | ... | ... |
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type