-
Notifications
You must be signed in to change notification settings - Fork 0
/
s-05-crea-directorios-root.sh
executable file
·110 lines (93 loc) · 2.5 KB
/
s-05-crea-directorios-root.sh
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# @Autor Lara Sala Kevin Arturo y Miranda Cortes Yak Balam
# @Fecha 02/05/2022
# @Descripcion Script para la creacion de los directorios para crear la BD:
# - Directorio para los Data Files
# - Directorio para archivos Redo Logs
# - Directorio para archivos Control Files
export ORACLE_SID=lamiproy
#Directorio para tablespaces de sistema.
cd /u01/app/oracle/oradata
mkdir ${ORACLE_SID^^}
chown oracle:oinstall ${ORACLE_SID^^}
chmod 750 ${ORACLE_SID^^}
# Creacion de dir para Data Files de la Base.
cd /unam-bda
mkdir -p d14/app/oracle/oradata/LAMIPROY
# ts_provedor (disco 1)
cd /unam-bda/d14
chown -R oracle:oinstall app
chmod -R 750 app
cd /unam-bda
mkdir -p d15/app/oracle/oradata/LAMIPROY
# ts_provedor (disco 2)
cd /unam-bda/d15
chown -R oracle:oinstall app
chmod -R 750 app
cd /unam-bda
mkdir -p d16/app/oracle/oradata/LAMIPROY
# ts_p_docs-fotos (Provedor)
cd /unam-bda/d16
chown -R oracle:oinstall app
chmod -R 750 app
cd /unam-bda
mkdir -p d17/app/oracle/oradata/LAMIPROY
cd /unam-bda/d17
# ts_p_indices
chown -R oracle:oinstall app
chmod -R 750 app
cd /unam-bda
mkdir -p d18/app/oracle/oradata/LAMIPROY
cd /unam-bda/d18
# ts_p_foto-servicio
chown -R oracle:oinstall app
chmod -R 750 app
cd /unam-bda
mkdir -p d19/app/oracle/oradata/LAMIPROY
cd /unam-bda/d19
# ts_cliente (disco 1)
chown -R oracle:oinstall app
chmod -R 750 app
cd /unam-bda
mkdir -p d20/app/oracle/oradata/LAMIPROY
cd /unam-bda/d20
# ts_cliente (disco 2)
chown -R oracle:oinstall app
chmod -R 750 app
cd /unam-bda
mkdir -p d21/app/oracle/oradata/LAMIPROY
cd /unam-bda/d21
# ts_c_docs-fotos (Cliente)
chown -R oracle:oinstall app
chmod -R 750 app
cd /unam-bda
mkdir -p d22/app/oracle/oradata/LAMIPROY
cd /unam-bda/d22
# ts_c_indices
chown -R oracle:oinstall app
chmod -R 750 app
# Directorio para la FRA
cd /unam-bda
mkdir -p d23/fra
cd /unam-bda/d23
# ts_fra
chown -R oracle:oinstall app
chmod -R 750 app
# Crecion de directorios para archivos de control multiplexados y grupos Redo Logs
cd /unam-bda/d11
mkdir -p app/oracle/oradata/LAMIPROY
chown -R oracle:oinstall app
chmod -R 750 app
cd /unam-bda/d12
mkdir -p app/oracle/oradata/LAMIPROY
chown -R oracle:oinstall app
chmod -R 750 app
cd /unam-bda/d13
mkdir -p app/oracle/oradata/LAMIPROY
chown -R oracle:oinstall app
chmod -R 750 app
echo "Mostrando directorio de data files"
ls -l /unam-bda/
echo "Mostrando directorios para control files y Redo Logs"
ls -l /unam-bda/d11/app/oracle/oradata
ls -l /unam-bda/d12/app/oracle/oradata
ls -l /unam-bda/d13/app/oracle/oradata