Documentos de Académico
Documentos de Profesional
Documentos de Cultura
INSTALACIÓN DE
DATAGUARD PARA
DUMMIES
Basado en los MOPs de Ericsson y en
chocazos contra la pared.
GFI
LISTENER ................................................................. 12
TNSNAMES .............................................................. 12
RECREACIÓN ............................................................ 18
Ésta será nuestra máquina PRIMARY. Para cualquier duda, consultar documento de creación de
máquina virtual con Linux.
2) Recordar que el SELINUX y el FIREWALL deben estar desactivados o en modo permisivo para que no
haya problemas en la instalación de ORACLE.
Hay que comprobar el Firewall cuando se entra por IPv4 e IPv6, para ello:
FIREWALL
COMO ROOT:
===========
A) IPv4: service iptables status
- Pueden darse dos casos:
a) El cortafuegos está detenido.
b) Vemos que hay un montón de aceptados (ACCEPT). Si estamos en este caso, hay que
parar el servicio:
Forma fácil: service iptables stop
Ahora lo comprobamos: [root@em init.d]# service iptables status
El cortafuegos está detenido.
B) IPv6: service ip6tables status
- Mismos casos que antes. Si hubiera que detener: service ip6tables stop
- Comprobar: service ip6tables status
SELINUX
COMO ROOT:
===========
Editar (VI) el fichero "/etc/selinux/config", cambiando SELINUX=disabled
3) CREACIÓN DE GRUPOS
COMO ROOT:
===========
groupadd oinstall
groupadd dba
useradd -g oinstall -G dba oracle
passwd oracle // Ahora meterías la nueva password (si pones oracle, te va a decir que es simple, pero
da igual, continúa)
COMO ROOT:
===========
mkdir -p /u01/app/oracle/product/11.2.0.3/db_1
chown -R oracle:oinstall /u01 //El directorio /u01 (y sus hijos por la -R) pertenece al usuario oracle
del grupo oinstall.
chmod -R 775 /u01 //El grupo "otros" no puede ejecutar el directorio /u01.
5) CREAR VARIABLES DE ENTORNO (Las necesarias realmente son ORACLE_HOME, ORACLE_SID y PATH de
Oracle, pero se recomiendan para la posterior instalación las marcadas en negrita)
COMO ORACLE:
=============
vi .bash_profile // Está en $HOME (/home/oracle)
# Oracle Settings
PATH=/usr/sbin:$PATH; export PATH // Éste te venía ya.
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
6) INSTALACIÓN DE PAQUETES
COMO ROOT:
===========
A) Puedo tener los paquetes en Windows y con un programita (winSCP), los paso a mi máquina virtual
B) Puedos tenerlos en disco:
- Entro a Virtual Box --> Almacenamiento --> selecciono el disco --> Comprobamos que nuestro
Linux está. Si no está, pincho en el disco vacío, selecciono mi Linux correspondiente, salgo de la sesión y vuelvo
a entrar. Veremos que en el escritorio aparece.
- Desde la máquina virtual como ROOT:
[root@oel /]# cd .. //Me voy a la raíz
[root@oel /]# pwd
/
[root@oel /]# cd media
[root@oel media]# ls -l
drwxr-xr-x. 12 root root 6144 Feb 26 2013 OL6.4 x86_64 Disc 1 20130225
[root@oel media]# cd OL6.4\ x86_64\ Disc\ 1\ 20130225/ //Ésta es la imagen del CD
[root@oel media]# cd packages //NOTA: en la versión 5, están en la carpeta Server
C)Ahora ya instalo los paquetes en sí. Algunos ya los tendré, a otros les faltarán dependencias, pero en
ese caso, lo señalo y al final de instalarlos todos, vuelvo a instalar el señalado. Podemos hacerlo de dos formas:
Uno a uno:
rpm -Uvh binutils-2.* // -Uvh para instalar y actualizar el paquete rpm
rpm -Uvh compat-libstdc++-33*
rpm -Uvh compat-libstdc++-33*.i386.rpm
rpm -Uvh elfutils-libelf*
rpm -Uvh gcc-4.*
rpm -Uvh gcc-c++-4.*
rpm -Uvh glibc-2.*
rpm -Uvh glibc-common-2.*
rpm -Uvh glibc-devel-2.*
rpm -Uvh glibc-headers-2.*
rpm -Uvh ksh*
rpm -Uvh libaio-0.*
rpm -Uvh libaio-devel-0.*
rpm -Uvh libgomp-4.*
rpm -Uvh libgcc-4.*
rpm -Uvh libstdc++-4.*
rpm -Uvh libstdc++-devel-4.*
rpm -Uvh make-3.*
rpm -Uvh sysstat-7.*
rpm -Uvh unixODBC-2.*
rpm -Uvh unixODBC-devel-2.*
Buscando cuáles tenemos de todos esos y cuáles no, con el siguiente comando:
rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n' binutils- compat-
libstdc++-33 elfutils-libelf elfutils-libelf-devel expat gcc gcc-c++ glibc glibc-common
glibc-devel glibc-headers ksh libaio libaio-devel libgcc libstdc++ libstdc++-devel make
numactl pdksh unixODBC sysstat
7) COMO ROOT: Abrir el fichero "/etc/security/limits.conf" y editarlo con el VI añadiendo las siguientes
líneas:
===========
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 4096
oracle hard nofile 65536
oracle soft stack 10240
9.2) Veo los permisos que tiene la carpeta /tmp (ls -lrt). Si los zip no tienen permiso de ejecución,
desde ROOT, hacemos chmod -R 777 /tmp
9.3) Ya puedo descomprimir los archivos que tengo en el temporal
COMO ORACLE:
============
unzip p10404530_112030_Linux-x86-64_1of7.zip
unzip p10404530_112030_Linux-x86-64_2of7.zip
Estos paquetes generan una carpeta que llamada Database (comprobar con ls -la)
9.4) Tengo que darle permisos a la carpeta Database (desde ROOT):
chown -R oracle:oinstall database
chmod -R 775 database
En vez de ejecutar el runInstaller como siempre (situado en la carpeta Database), vamos a usar un response
file (11203rdbms.sp) con los parámetros que queramos. Abrimos ese fichero con un editor de texto en
Windows o con el vi en linux y editamos los siguientes campos:
ORACLE_HOSTNAME=oel.oracle75.com
INVENTORY_LOCATION=/u01/app/oracle/oraInventory
ORACLE_HOME=/u01/app/oracle/product/11.2.0.3/db_1
ORACLE_BASE=/u01/app/oracle
Guardo este response file por ejemplo en /tmp y ya puedo lanzar la instalación de Oracle:
[root@oel tmp]#su oracle
[oracle@oel tmp ]$ cd /tmp/database
[oracle@oel database]$ ./runInstaller -silent -responseFile /tmp/11203rdbms.sp
2) Scripts
Tardará un rato y me dirá al final que tengo que ejecutar (COMO ROOT) 2 scripts:
a) /u01/app/oracle/oraInventory/orainstRoot.sh
b) /u01/app/oracle/product/11.2.0.3/db_1/root.sh
3) Parchear
Debido a un bug, debemos parchear. Para ello, primero comprobamos que versión del OPatch
tenemos en nuestro sistema:
[oracle@oel root]$ cd
[oracle@oel ~]$ . .bash_profile /* Éste paso sólo hay que hacerlo si estoy desde SecureCRT, ya que al
ponerme como root y luego volver al usuario oracle tengo que volver a cargar mis variables de entorno */
/home/oracle
[oracle@oel ~]$ mkdir patches //Aquí pasamos los zip a esta carpeta con winSCP
[oracle@oel patches]$ ls
p16619892_112030_Linux-x86-64.zip p6880880_112000_Linux-x86-64.zip
Antes de parchear, Oracle recomienda ejecutar el siguiente comando para verificar la consistencia del
home: [oracle@oel patches]$ $ORACLE_HOME/OPatch/opatch lsinventory -oh
$ORACLE_HOME
PARTE 5: CLONACIÓN
1) Paramos la máquina virtual (cerrarla y darle a GUARDAR ESTADO DE LA MÁQUINA)
- La clonamos (botón derecho/clonar). Como nombre le ponemos por ejemplo STANDBY.
- Next/Clonación completa
- Clonar
2)Ahora mismo, la nueva máquina (STANDBY) tiene la misma IP y hostname que la PRIMARY de la cual la
hemos clonado. Para cambiarla, seguimos el procedimiento siguiente (obtenido de
http://www.thegeekstuff.com/2013/10/change-hostname-ip-address/ )
2.1) Cambiar el hostname:
[oracle@oel ~]$ su - //Cambio a ROOT
[root@oel ~]# hostname oel.oracle76.com //Le ponemos éste por ejemplo
[root@oel ~]# hostname //Comprobación
oel.oracle76.com
2.2) Modificar el /etc/hosts
[root@oel ~]# vi /etc/hosts /* Cambio el hostname y aprovecho para cambiar la IP
también, aunque podría hacerlo luego */
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
192.168.56.76 oel.oracle76.com.localhost oel.oracle76.com
2.3) Modificar el /etc/sysconfig/network
[root@oel ~]# vi /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=yes
HOSTNAME=oel.oracle76.com
GATEWAY=192.168.56.1
2.4) Reiniciar el network (saldrán varios OK)
[root@oel ~]# service network restart
2.5) Cambiar la IP (permanente)
[root@oel ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
BROADCAST=192.168.56.255
HWADDR=08:00:27:F3:E9:80
IPADDR=192.168.56.76
IPV6INIT=yes
IPV6_AUTOCONF=yes
NETMASK=255.255.255.0
NETWORK=192.168.56.0
ONBOOT=yes
2.6) Reiniciar el network
[root@oel ~]# service network restart
3) Pasamos todos los scripts con winSCP a esa carpeta y veo que están ahí:
[oracle@oel ~]$ cd mis_scripts
[oracle@oel mis_scripts]$ ls
crea_bd_EG_11g_2.sql crea_bd_EG_11g_3.sql crea_bd_EG_11g_4.sql crea_bd_EG_11g.sql
SQL> @crea_bd_EG_11g.sql
//El final debe ser : Database created.
SQL> @crea_bd_EG_11g_4.sql
//Me pedirá que ponga una contraseña para orapwd: oracle.
/* El resultado debe ser:
SQL> disconnect
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0
- 64bit Production
With the Partitioning and Real Application Testing options
SQL> exit; */
5) Creamos el LISTENER
[oracle@oel EGSDP]$ cd $TNS_ADMIN
[oracle@oel admin]$ vi listener.ora
LISTENER_1 =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.56.75) (PORT = 1521))
)
)
CONNECT_TIMEOUT_LISTENER = 10
STARTUP_WAIT_TIME_LISTENER = 1
LOGGING_LISTENER = OFF
EGSDP_STANDBY=
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(Host = 192.168.56.76)(Port = 1521))
(CONNECT_DATA = (SERVICE_NAME = EGSDP_STANDBY))
(SERVER=DEDICATED))
7) Hacemos los mismo en la STANDBY. Cambiamos el listener (el tnsnames sería el mismo):
[oracle@oel ~]$ cd $TNS_ADMIN
[oracle@oel admin]$ vi listener.ora
LISTENER_2 =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.56.76) (PORT = 1521))
)
CONNECT_TIMEOUT_LISTENER = 10
STARTUP_WAIT_TIME_LISTENER = 1
LOGGING_LISTENER = OFF
NAME LOG_MODE
--------- ------------
EGSDP ARCHIVELOG
1.1 ) Si no fuera así, ponerla en dicho modo ejecutando los siguientes comandos:
NAME FOR
--------- ---
EGSDP YES
3) Comprobar que en la base de datos primaria tenemos configurados todos los parámetros de arranque
(nuestro init) como los siguientes, y en caso contrario modificarlos:
SQL> exit
[oracle@oel mis_scripts]$ cd $ORACLE_HOME/dbs
[oracle@oel dbs]$ vi initEGSDP_PRIMARY.ora
//Busco las siguientes cadenas y las cambio o las creo si no existen:
Nota: en el caso de que la transmisión de la información de Redo se vaya a realizar por los procesos ARC (y
no por LWGR como aparece en el ejemplo anterior), entonces se especificaría en los parámetros
log_archive_dest_2 y log_archive_dest_3, el atributo ARCH en lugar de LGWR. Ejemplo:
*.log_archive_dest_2='service=CLUSTER2 OPTIONAL REOPEN=30 ARCH ASYNC
NOAFFIRM valid_for=(online_logfiles,primary_role)
7) Ejecutamos el bash_profile
[oracle@oel ~]$ . .bash_profile
10) Realizar un backup con RMAN de la base de datos de la PRIMARY. Para ello:
10.1 ) Crear una carpeta llamada backup y dentro de ella otra llamada diario dentro del recovery_area:
[oracle@oel dbs]$ cd $ORACLE_BASE/oradata/EGSDP/recovery_area/
[oracle@oel recovery_area]$ mkdir -p backup/diario
10.2) Mover con winSCP los archivos sdp_env_standby.sh y sdp_cron_rman.sh a la carpeta
$HOME/mis_scripts por ejemplo.
10.3) Editar el sdp_env_standby.sh:
[oracle@oel recovery_area]$ cd /home/oracle/mis_scripts/
[oracle@oel mis_scripts]$ vi sdp_env_standby.sh
ORACLE_BASE=/u01/app/oracle
ORACLE_BACKUP=/u01/app/oracle/oradata/EGSDP/recovery_area/backup
ORACLE_HOME=/u01/app/oracle/product/11.2.0.3/db_1
ORACLE_DATABASE=EGSDP
export ORACLE_DATABASE ORACLE_BASE ORACLE_BACKUP
export ORACLE_SID ORACLE_HOME
10.6) Lo llevamos a la STANDBY al mismo directorio de la PRIMARY (con winSCP), por lo que
primero hemos de crearlo allí también:
[oracle@oel dbs]$ cd /u01/app/oracle/oradata/EGSDP/recovery_area/
[oracle@oel recovery_area]$ mkdir -p backup/diario
//Lo pasamos con winSCP
[oracle@oel recovery_area]$ cd backup/diario/
[oracle@oel diario]$ ls
rman_2014-01-12_060951.tar
10.7) Descomprimimos
[oracle@oel diario]$ tar -xvf rman_2014-01-12_060951.tar
10.9) Nos situamos en el directorio 'actual' y lanzamos el restore para crear el STANDBY:
[oracle@oel diario]$ cd actual
[oracle@oel actual]$ ./restore.sh standby
Puede aparecer este error, pero no hay problema:
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 01/12/2014 07:05:42
RMAN-06054: media recovery requesting unknown archived log for thread 1 with
sequence 29 and starting SCN of 227699
11) Una vez haya terminado la ejecución del script del restore, activamos el envío de archivelogs en PRIMARY:
SQL> alter system set log_archive_dest_state_2='ENABLE' scope=both sid='*';
System altered
SQL> r
1* alter system archive log current
System altered.
Nota: si hemos activado un N3 físico, activaríamos el envío a ese N3.
13) Comprobamos que la standby recibe y aplica correctamente los archivelogs generados por la BBDD de la
PRIMARY. Para ello:
THREAD# MAX(SEQUENCE#)
---------- --------------
1 48
13.2) En la STANDBY:
[oracle@oel dbs]$ sqlplus / as sysdba
//Comprobamos que la STANDBY está montada:
SQL> select status from v$instance;
STATUS
------------
MOUNTED
//Comprobamos que efectivamente recibe los cambios (tiene que dar el mismo número que en 13.1):
SQL> select 'Ultimo Recibido' dato, THREAD# instancia, max(SEQUENCE#)
archive from v$archived_log where RESETLOGS_TIME = (select
max(RESETLOGS_TIME) from v$archived_log) group by THREAD# union select
'Ultimo Aplicado' dato, THREAD# instancia, max(SEQUENCE#) archive from
v$log_history where RESETLOGS_TIME = (select max(RESETLOGS_TIME) from
v$log_history) group by THREAD#;
14) Ahora que todo va bien, hacemos un spfile del pfile en el STANDBY:
SQL> create spfile from pfile;
NOTA: Si por lo que sea esto nos falla y tras investigar nos damos cuenta de que algún parámetro estaba mal,
tras aplicar los cambios y hacerle un shutdown abort a la STANDBY, ejecutaríamos lo siguiente:
SQL> startup nomount;
SQL> alter database mount standby database;
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;
//A partir de aquí, volveríamos al punto 12
Puede ser que hayamos configurado mal los listeners o cualquier parámetro del init relacionado con
ellos. Una manera fácil de comprobarlo es haciendo desde STANDBY:
sqlplus sys@EGSDP_PRIMARY as sysdba (tiene que estar previamente en OPEN la BBDD PRIMARY. Esto
funcionaría gracias al password file, que nos permite conectarnos en remoto como sys dba)
1) En PRIMARY, desactivar el envío de archive logs al resto de máquinas (en este caso, sólo tenemos la 2):
SQL> alter system set log_archive_dest_state_2='DEFER' scope=both sid= '*';
2) Se recomienda monitorizar el alert del STANDBY por si hay algún fallo. Para ello:
[oracle@oel ~]$ find /u01 -name alert*.log //Busco la ruta donde está
/u01/app/oracle/diag/rdbms/egsdp/EGSDP_STANDBY/trace/alert_EGSDP_STANDBY.log
[oracle@oel~]$ tail -100f
/u01/app/oracle/diag/rdbms/egsdp/EGSDP_STANDBY/trace/alert_EGSDP_STANDBY.log &
4)Reiniciamos la STANDBY:
SQL> shutdown immediate;
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
NAME DATABASE_ROLE
--------- ----------------
EGSDP PRIMARY
7) Los siguientes pasos se realizan sobre la STANDBY (que es la nueva PRIMARY) si la siguiente consulta nos da
error (Si falla, se nos ha borrado el tablespace temporal). Si no, continuar al paso 9;
7.1) Si nos da error, recreamos el tablespace temporal, para ello creamos un tablespace temporal
auxiliar y lo asociamos como tablespace temporal por defecto de la BD:
SQL> create temporary tablespace TEMP_AUX tempfile
'/u01/app/oracle/oradata/EGSDP/dat_001/EGSDP_PF_TMP_AUX_01.dbf' size 1000M;
7.2) Con el paquete dbms_metadata, sacamos la sentencia ddl de creación del tablespace temporal
original de la base de datos (tablespace TEMP) que será la que utilicemos posteriormente para crear de nuevo
este tablespace:
SQL> select dbms_metadata.get_ddl('TABLESPACE','<tablespace_name>')
from dual;
7.3) Borramos el tablespace temporal que tenía con anterioridad la base de datos (tablespace TEMP) y
lo volvemos a crear con las mismas características y tamaño que tenía inicialmente. Una vez creado lo
asignamos como tablespace temporal por defecto de la base de datos.:
SQL> drop tablespace TEMP including contents and datafiles;
7.5) Finalmente, abrimos la standby y revisamos el alert para comprobar que no aparezcan errores:
SQL> alter database open;
8) Para recuperar la antigua PRIMARY, tenemos que hacer la RECREACIÓN, es decir, realizar un backup
de la que ahora es la PRIMARY (antigua STANDBY) y hacer el restore en la antigua PRIMARY. Hay que
borrar todos los backup de la máquina que era primaria.
8.2) Lo comprimimos:
[oracle@oel mis_scripts]$ cd /u01/app/oracle/oradata/EGSDP/recovery_area/backup/diario/
8.3) Lo llevamos a la PRIMARY (que actualmente está caída, no operativa) con winSCP al mismo
directorio:
[oracle@oel ~]$ cd /u01/app/oracle/oradata/EGSDP/recovery_area/backup/diario/
[oracle@oel diario]$ ls
actual rman_2014-01-12_060951 rman_2014-01-12_060951.tar
[oracle@oel diario]$ rm -Rf * //Borro todos los backups que había
//Paso mi .tar a esa carpeta con winSCP y compruebo que está ahí:
[oracle@oel diario]$ ls
rman_2014-01-12_141916.tar
8.4) Descomprimimos
[oracle@oel diario]$ tar -xvf rman_2014-01-12_141916.tar
8.5) Creamos el link actual apuntando a este backup:
[oracle@oel diario]$ ln -s rman_2014-01-12_141916 actual
8.6) Nos situamos en el directorio 'actual' y lanzamos el restore para crear el STANDBY:
[oracle@oel diario]$ cd actual
[oracle@oel actual]$ ./restore.sh standby
// Me dirá este mensaje:
WARNING !!!!!!
ACTIVE DATABASE WILL BE OVERWRITTEN.
ARE YOU SURE? Y/N --> Elegimos Y
9) Activamos el envío de archivelogs en la antigua STANDBY (la que tenemos actualmente como PRIMARY a
falta de levantar la otra):
SQL> alter system set log_archive_dest_state_2='ENABLE' scope=both sid='*';
System altered
SQL> r
1* alter system archive log current
System altered.
11) Comprobamos que la nueva standby (antigua PRIMARY) recibe y aplica correctamente los archivelogs
generados por la BBDD. Para ello:
---------- --------------
1 19
//Comprobamos que efectivamente recibe los cambios (tiene que dar el mismo número que en 13.1):
SQL> select 'Ultimo Recibido' dato, THREAD# instancia, max(SEQUENCE#)
archive from v$archived_log where RESETLOGS_TIME = (select
max(RESETLOGS_TIME) from v$archived_log) group by THREAD# union select
'Ultimo Aplicado' dato, THREAD# instancia, max(SEQUENCE#) archive from
v$log_history where RESETLOGS_TIME = (select max(RESETLOGS_TIME) from
v$log_history) group by THREAD#;
PARTE 9: SWITCHOVER
Consiste en cambiar el rol de dos clusters. En este caso, podemos partir del punto anterior, ya que si
hacemos el cambio de rol, volveremos a tener todo como al principio.
1) Ambas máquinas deben estar sincronizadas, como vimos en el punto anterior.
2) Verificamos que se puede hacer switchover en la BBDD primaria (que ahora está en la antigua STANDBY):
SQL> select switchover_status from v$database;
SWITCHOVER_STATUS
--------------------
TO STANDBY
Es lo correcto. Si el resultado fuera SESSIONS ACTIVE, deberíamos lanzar ALTER DATABASE COMMIT TO
SWITCHOVER TO STANDBY WITH SESSION SHUTDOWN parameter;
4) Cambiamos el rol:
SQL> ALTER DATABASE COMMIT TO SWITCHOVER TO PHYSICAL STANDBY WITH SESSION
SHUTDOWN WAIT;
6) Ponemos la BBDD primaria (la antigua STANDBY) como STANDBY, para recuperar el rol original.:
SQL> shutdown immediate;
SQL> startup nomount; //Si da un fallo, exit y vuelta a entrar al sqlplus
SQL> alter database mount standby database;
7) Comprobamos el estado:
SQL> select switchover_status from v$database;
SWITCHOVER_STATUS
--------------------
RECOVERY NEEDED
//Lo normal es que diera TO PRIMARY, pero en este estado, también funcionaría.
9) En la actual STANDBY (antigua PRIMARY), le cambiamos el rol para dejarla como al principio de los tiempos:
SQL> alter database commit to switchover to primary;
Database altered.
11) Activamos el envío de la nueva PRIMARY, pues comprobamos que está desactivado:
SQL> show parameter state_2;
12) Permito que la que ahora será STANDBY reciba los archivers:
SQL> alter database recover managed standby database disconnect from
session;
THREAD# MAX(SEQUENCE#)
---------- --------------
1 46
#--------------------------------------------------------------------------
-----
# Do not change the following system generated value.
#--------------------------------------------------------------------------
-----
oracle.install.responseFileVersion=/recovery_area/export/oracle/software/Or
acle11Software/0.Linux_x86_64/1.RDBMS/database/install/rspfmt_dbinstall_res
ponse_schema_v11_2_0
#--------------------------------------------------------------------------
-----
# Specify the installation option.
# It can be one of the following:
# 1. INSTALL_DB_SWONLY
# 2. INSTALL_DB_AND_CONFIG
# 3. UPGRADE_DB
#--------------------------------------------------------------------------
-----
oracle.install.option=INSTALL_DB_SWONLY
#--------------------------------------------------------------------------
-----
# Specify the hostname of the system as set during the install. It can be
used
# to force the installation to use an alternative hostname rather than
using the
# first hostname found on the system. (e.g., for systems with multiple
hostnames
# and network interfaces)
#--------------------------------------------------------------------------
-----
ORACLE_HOSTNAME=oel.oracle50.com
#--------------------------------------------------------------------------
-----
# Specify the Unix group to be set for the inventory directory.
#--------------------------------------------------------------------------
-----
UNIX_GROUP_NAME=oinstall
#--------------------------------------------------------------------------
-----
# Specify the location which holds the inventory files.
# This is an optional parameter if installing on
# Windows based Operating System.
#--------------------------------------------------------------------------
-----
INVENTORY_LOCATION=/u01/app/oracle/oraInventory
#--------------------------------------------------------------------------
-----
# Specify the languages in which the components will be installed.
#
# en : English ja : Japanese
# fr : French ko : Korean
# ar : Arabic es : Latin American Spanish
# bn : Bengali lv : Latvian
# pt_BR: Brazilian Portuguese lt : Lithuanian
# bg : Bulgarian ms : Malay
# fr_CA: Canadian French es_MX: Mexican Spanish
# ca : Catalan no : Norwegian
# hr : Croatian pl : Polish
# cs : Czech pt : Portuguese
# da : Danish ro : Romanian
# nl : Dutch ru : Russian
# ar_EG: Egyptian zh_CN: Simplified Chinese
# en_GB: English (Great Britain) sk : Slovak
# et : Estonian sl : Slovenian
# fi : Finnish es_ES: Spanish
# de : German sv : Swedish
# el : Greek th : Thai
# iw : Hebrew zh_TW: Traditional Chinese
# hu : Hungarian tr : Turkish
# is : Icelandic uk : Ukrainian
# in : Indonesian vi : Vietnamese
# it : Italian
#
# all_langs : All languages
#
# Specify value as the following to select any of the languages.
# Example : SELECTED_LANGUAGES=en,fr,ja
#
# Specify value as the following to select all the languages.
# Example : SELECTED_LANGUAGES=all_langs
#--------------------------------------------------------------------------
-----
SELECTED_LANGUAGES=en
#--------------------------------------------------------------------------
-----
# Specify the complete path of the Oracle Home.
#--------------------------------------------------------------------------
-----
ORACLE_HOME=/u01/app/oracle/product/11.2.0.3/db_1
#--------------------------------------------------------------------------
-----
# Specify the complete path of the Oracle Base.
#--------------------------------------------------------------------------
-----
ORACLE_BASE=/u01/app/oracle
#--------------------------------------------------------------------------
-----
# Specify the installation edition of the component.
#
# The value should contain only one of these choices.
# EE : Enterprise Edition
# SE : Standard Edition
# SEONE : Standard Edition One
# PE : Personal Edition (WINDOWS ONLY)
#--------------------------------------------------------------------------
-----
oracle.install.db.InstallEdition=EE
#--------------------------------------------------------------------------
-----
# This variable is used to enable or disable custom install and is
considered
# only if InstallEdition is EE.
#
# true : Components mentioned as part of 'optionalComponents' property
# are considered for install.
# false : Value for 'optionalComponents' is not considered.
#--------------------------------------------------------------------------
-----
oracle.install.db.EEOptionsSelection=true
#--------------------------------------------------------------------------
-----
# This property is considered only if 'EEOptionsSelection' is set to true
#
# Description: List of Enterprise Edition Options you would like to enable.
#
# The following choices are available. You may specify any
# combination of these choices. The components you choose
should
# be specified in the form "internal-component-name:version"
# Below is a list of components you may specify to enable.
#
# oracle.oraolap:11.2.0.3.0 - Oracle OLAP
# oracle.rdbms.dm:11.2.0.3.0 - Oracle Data Mining RDBMS Files
# oracle.rdbms.dv:11.2.0.3.0- Oracle Database Vault option
# oracle.rdbms.lbac:11.2.0.3.0 - Oracle Label Security
# oracle.rdbms.partitioning:11.2.0.3.0 - Oracle Partitioning
# oracle.rdbms.rat:11.2.0.3.0 - Oracle Real Application
Testing
#--------------------------------------------------------------------------
-----
oracle.install.db.optionalComponents=oracle.rdbms.partitioning:11.2.0.3.0,o
racle.rdbms.rat:11.2.0.3.0
###########################################################################
####
#
#
# PRIVILEGED OPERATING SYSTEM GROUPS
#
# ------------------------------------------
#
# Provide values for the OS groups to which OSDBA and OSOPER privileges
#
# needs to be granted. If the install is being performed as a member of the
#
# group "dba", then that will be used unless specified otherwise below.
#
#
#
# The value to be specified for OSDBA and OSOPER group is only for UNIX
based #
# Operating System.
#
#
#
###########################################################################
####
#--------------------------------------------------------------------------
----
# The DBA_GROUP is the OS group which is to be granted OSDBA privileges.
#--------------------------------------------------------------------------
-----
oracle.install.db.DBA_GROUP=oinstall
#--------------------------------------------------------------------------
----
# The OPER_GROUP is the OS group which is to be granted OSOPER privileges.
# The value to be specified for OSOPER group is optional.
#--------------------------------------------------------------------------
----
oracle.install.db.OPER_GROUP=oinstall
#--------------------------------------------------------------------------
-----
# Specify the cluster node names selected during the installation.
# Example : oracle.install.db.CLUSTER_NODES=node1,node2
#--------------------------------------------------------------------------
-----
oracle.install.db.CLUSTER_NODES=
#--------------------------------------------------------------------------
----
# This variable is used to enable or disable RAC One Node install.
#
# true : Value of RAC One Node service name is used.
# false : Value of RAC One Node service name is not used.
#
# If left blank, it will be assumed to be false.
#--------------------------------------------------------------------------
----
oracle.install.db.isRACOneInstall=false
#--------------------------------------------------------------------------
----
# Specify the name for RAC One Node Service.
#--------------------------------------------------------------------------
----
oracle.install.db.racOneServiceName=
#--------------------------------------------------------------------------
-----
# Specify the type of database to create.
# It can be one of the following:
# - GENERAL_PURPOSE/TRANSACTION_PROCESSING
# - DATA_WAREHOUSE
#--------------------------------------------------------------------------
-----
oracle.install.db.config.starterdb.type=GENERAL_PURPOSE
#--------------------------------------------------------------------------
-----
# Specify the Starter Database Global Database Name.
#--------------------------------------------------------------------------
-----
oracle.install.db.config.starterdb.globalDBName=
#--------------------------------------------------------------------------
-----
# Specify the Starter Database SID.
#--------------------------------------------------------------------------
-----
oracle.install.db.config.starterdb.SID=
#--------------------------------------------------------------------------
-----
# Specify the Starter Database character set.
#
# One of the following
# AL32UTF8, WE8ISO8859P15, WE8MSWIN1252, EE8ISO8859P2,
# EE8MSWIN1250, NE8ISO8859P10, NEE8ISO8859P4, BLT8MSWIN1257,
# BLT8ISO8859P13, CL8ISO8859P5, CL8MSWIN1251, AR8ISO8859P6,
# AR8MSWIN1256, EL8ISO8859P7, EL8MSWIN1253, IW8ISO8859P8,
# IW8MSWIN1255, JA16EUC, JA16EUCTILDE, JA16SJIS, JA16SJISTILDE,
# KO16MSWIN949, ZHS16GBK, TH8TISASCII, ZHT32EUC, ZHT16MSWIN950,
# ZHT16HKSCS, WE8ISO8859P9, TR8MSWIN1254, VN8MSWIN1258
#--------------------------------------------------------------------------
-----
oracle.install.db.config.starterdb.characterSet=
#--------------------------------------------------------------------------
----
# This variable should be set to true if Automatic Memory Management
# in Database is desired.
# If Automatic Memory Management is not desired, and memory allocation
# is to be done manually, then set it to false.
#--------------------------------------------------------------------------
----
oracle.install.db.config.starterdb.memoryOption=false
#--------------------------------------------------------------------------
-----
# Specify the total memory allocation for the database. Value(in MB) should
be
# at least 256 MB, and should not exceed the total physical memory
available
# on the system.
# Example: oracle.install.db.config.starterdb.memoryLimit=512
#--------------------------------------------------------------------------
-----
oracle.install.db.config.starterdb.memoryLimit=
#--------------------------------------------------------------------------
-----
# This variable controls whether to load Example Schemas onto
# the starter database or not.
#--------------------------------------------------------------------------
-----
oracle.install.db.config.starterdb.installExampleSchemas=false
#--------------------------------------------------------------------------
-----
# This variable includes enabling audit settings, configuring password
profiles
# and revoking some grants to public. These settings are provided by
default.
# These settings may also be disabled.
#--------------------------------------------------------------------------
-----
oracle.install.db.config.starterdb.enableSecuritySettings=true
###########################################################################
####
#
#
# Passwords can be supplied for the following four schemas in the
#
# starter database:
#
# SYS
#
# SYSTEM
#
# SYSMAN (used by Enterprise Manager)
#
# DBSNMP (used by Enterprise Manager)
#
#
#
# Same password can be used for all accounts (not recommended)
#
# or different passwords for each account can be provided (recommended)
#
#
#
###########################################################################
####
#--------------------------------------------------------------------------
----
# This variable holds the password that is to be used for all schemas in
the
# starter database.
#--------------------------------------------------------------------------
-----
oracle.install.db.config.starterdb.password.ALL=
#--------------------------------------------------------------------------
-----
# Specify the SYS password for the starter database.
#--------------------------------------------------------------------------
-----
oracle.install.db.config.starterdb.password.SYS=
#--------------------------------------------------------------------------
-----
# Specify the SYSTEM password for the starter database.
#--------------------------------------------------------------------------
-----
oracle.install.db.config.starterdb.password.SYSTEM=
#--------------------------------------------------------------------------
-----
# Specify the SYSMAN password for the starter database.
#--------------------------------------------------------------------------
-----
oracle.install.db.config.starterdb.password.SYSMAN=
#--------------------------------------------------------------------------
-----
# Specify the DBSNMP password for the starter database.
#--------------------------------------------------------------------------
-----
oracle.install.db.config.starterdb.password.DBSNMP=
#--------------------------------------------------------------------------
-----
# Specify the management option to be selected for the starter database.
# It can be one of the following:
# 1. GRID_CONTROL
# 2. DB_CONTROL
#--------------------------------------------------------------------------
-----
oracle.install.db.config.starterdb.control=DB_CONTROL
#--------------------------------------------------------------------------
-----
# Specify the Management Service to use if Grid Control is selected to
manage
# the database.
#--------------------------------------------------------------------------
-----
oracle.install.db.config.starterdb.gridcontrol.gridControlServiceURL=
###########################################################################
####
#
#
# SPECIFY BACKUP AND RECOVERY OPTIONS
#
# ------------------------------------
#
# Out-of-box backup and recovery options for the database can be mentioned
#
# using the entries below.
#
#
#
###########################################################################
####
#--------------------------------------------------------------------------
----
# This variable is to be set to false if automated backup is not required.
Else
# this can be set to true.
#--------------------------------------------------------------------------
-----
oracle.install.db.config.starterdb.automatedBackup.enable=false
#--------------------------------------------------------------------------
----
# Regardless of the type of storage that is chosen for backup and recovery,
if
# automated backups are enabled, a job will be scheduled to run daily to
backup
# the database. This job will run as the operating system user that is
# specified in this variable.
#--------------------------------------------------------------------------
-----
oracle.install.db.config.starterdb.automatedBackup.osuid=
#--------------------------------------------------------------------------
-----
# Regardless of the type of storage that is chosen for backup and recovery,
if
# automated backups are enabled, a job will be scheduled to run daily to
backup
# the database. This job will run as the operating system user specified by
the
# above entry. The following entry stores the password for the above
operating
# system user.
#--------------------------------------------------------------------------
-----
oracle.install.db.config.starterdb.automatedBackup.ospwd=
#--------------------------------------------------------------------------
-----
# Specify the type of storage to use for the database.
# It can be one of the following:
# - FILE_SYSTEM_STORAGE
# - ASM_STORAGE
#--------------------------------------------------------------------------
-----
oracle.install.db.config.starterdb.storageType=
#--------------------------------------------------------------------------
-----
# Specify the database file location which is a directory for datafiles,
control
# files, redo logs.
#
# Applicable only when
oracle.install.db.config.starterdb.storage=FILE_SYSTEM_STORAGE
#--------------------------------------------------------------------------
-----
oracle.install.db.config.starterdb.fileSystemStorage.dataLocation=
#--------------------------------------------------------------------------
-----
# Specify the backup and recovery location.
#
# Applicable only when
oracle.install.db.config.starterdb.storage=FILE_SYSTEM_STORAGE
#--------------------------------------------------------------------------
-----
oracle.install.db.config.starterdb.fileSystemStorage.recoveryLocation=
#--------------------------------------------------------------------------
-----
# Specify the existing ASM disk groups to be used for storage.
#
# Applicable only when
oracle.install.db.config.starterdb.storageType=ASM_STORAGE
#--------------------------------------------------------------------------
-----
oracle.install.db.config.asm.diskGroup=
#--------------------------------------------------------------------------
-----
# Specify the password for ASMSNMP user of the ASM instance.
#
# Applicable only when
oracle.install.db.config.starterdb.storage=ASM_STORAGE
#--------------------------------------------------------------------------
-----
oracle.install.db.config.asm.ASMSNMPPassword=
#--------------------------------------------------------------------------
----
# Specify the My Oracle Support Account Username.
#
# Example : MYORACLESUPPORT_USERNAME=abc@oracle.com
#--------------------------------------------------------------------------
----
MYORACLESUPPORT_USERNAME=
#--------------------------------------------------------------------------
----
# Specify the My Oracle Support Account Username password.
#
# Example : MYORACLESUPPORT_PASSWORD=password
#--------------------------------------------------------------------------
----
MYORACLESUPPORT_PASSWORD=
#--------------------------------------------------------------------------
----
# Specify whether to enable the user to set the password for
# My Oracle Support credentials. The value can be either true or false.
# If left blank it will be assumed to be false.
#
# Example : SECURITY_UPDATES_VIA_MYORACLESUPPORT=true
#--------------------------------------------------------------------------
----
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
#--------------------------------------------------------------------------
----
# Specify whether user doesn't want to configure Security Updates.
# The value for this variable should be true if you don't want to configure
# Security Updates, false otherwise.
#
# The value can be either true or false. If left blank it will be assumed
# to be false.
#
# Example : DECLINE_SECURITY_UPDATES=false
#--------------------------------------------------------------------------
----
DECLINE_SECURITY_UPDATES=true
#--------------------------------------------------------------------------
----
# Specify the Proxy server name. Length should be greater than zero.
#
# Example : PROXY_HOST=proxy.domain.com
#--------------------------------------------------------------------------
----
PROXY_HOST=
#--------------------------------------------------------------------------
----
# Specify the proxy port number. Should be Numeric and atleast 2 chars.
#
# Example : PROXY_PORT=25
#--------------------------------------------------------------------------
----
PROXY_PORT=
#--------------------------------------------------------------------------
----
# Specify the proxy user name. Leave PROXY_USER and PROXY_PWD
# blank if your proxy server requires no authentication.
#
# Example : PROXY_USER=username
#--------------------------------------------------------------------------
----
PROXY_USER=
#--------------------------------------------------------------------------
----
# Specify the proxy password. Leave PROXY_USER and PROXY_PWD
# blank if your proxy server requires no authentication.
#
# Example : PROXY_PWD=password
#--------------------------------------------------------------------------
----
PROXY_PWD=
#--------------------------------------------------------------------------
----
# Specify the proxy realm.
#
# Example : PROXY_REALM=metalink
#--------------------------------------------------------------------------
----
PROXY_REALM=
#--------------------------------------------------------------------------
----
# Specify the Oracle Support Hub URL.
#
# Example :
COLLECTOR_SUPPORTHUB_URL=https://orasupporthub.company.com:8080/
#--------------------------------------------------------------------------
----
COLLECTOR_SUPPORTHUB_URL=
#--------------------------------------------------------------------------
----
# Specify the auto-updates option. It can be one of the following:
# a.MYORACLESUPPORT_DOWNLOAD
# b.OFFLINE_UPDATES
# c.SKIP_UPDATES
#--------------------------------------------------------------------------
----
oracle.installer.autoupdates.option=SKIP_UPDATES
#--------------------------------------------------------------------------
----
# In case MYORACLESUPPORT_DOWNLOAD option is chosen, specify the location
where
# the updates are to be downloaded.
# In case OFFLINE_UPDATES option is chosen, specify the location where the
updates
# are present.
oracle.installer.autoupdates.downloadUpdatesLoc=
#--------------------------------------------------------------------------
----
# Specify the My Oracle Support Account Username which has the patches
download privileges
# to be used for software updates.
# Example : AUTOUPDATES_MYORACLESUPPORT_USERNAME=abc@oracle.com
#--------------------------------------------------------------------------
----
AUTOUPDATES_MYORACLESUPPORT_USERNAME=
#--------------------------------------------------------------------------
----
# Specify the My Oracle Support Account Username password which has the
patches download privileges
# to be used for software updates.
#
# Example :
APÉNDICE B: INIT DEL PRIMARY (initEGSDP_PRIMARY.ora)
*._trace_files_public=FALSE
*.aq_tm_processes=1
*.archive_lag_target=900
*.audit_file_dest='/u01/app/oracle/diag/rdbms/EGSDP/EGSDP/adump'
*.audit_sys_operations=FALSE
*.audit_trail='DB'
*.cluster_database=FALSE
*.compatible='11.2.0.3'
*.control_files='/u01/app/oracle/oradata/EGSDP/control/EGSDP_PF_CTL_01.ctl'
,'/u01/app/oracle/oradata/EGSDP/control/EGSDP_PF_CTL_02.ctl','/u01/app/orac
le/oradata/EGSDP/control/EGSDP_PF_CTL_03.ctl'
*.core_dump_dest='/u01/app/oracle/diag/rdbms/EGSDP/EGSDP/cdump'
*.db_block_checking='true'
*.db_block_size=8192
*.db_cache_advice='ON'
*.db_cache_size=6000M
*.db_domain=''
*.db_file_multiblock_read_count=16
*.db_files=200
*.db_name='EGSDP'
*.db_recovery_file_dest='/u01/app/oracle/oradata/EGSDP/recovery_area'
*.db_recovery_file_dest_size=30000M
*.db_writer_processes=2
*.diagnostic_dest='/u01/app/oracle'
*.disk_asynch_io=true
*.fal_client='EGSDP_PRIMARY'
*.fast_start_mttr_target=300
*.filesystemio_options='SETALL'
*.java_pool_size=16M
*.job_queue_processes=10
*.large_pool_size=64M
*.local_listener='EGSDP_PRIMARY'
*.log_archive_dest_1='LOCATION=USE_DB_RECOVERY_FILE_DEST MANDATORY ARCH
SYNC NOAFFIRM valid_for=(online_logfiles,primary_role)'
*.log_archive_dest_state_1='ENABLE'
*.log_archive_format='EGSDP_D%d_T%tS%sR%r.ARC'
*.log_archive_max_processes=10
*.log_checkpoint_timeout=0
*.log_checkpoints_to_alert=TRUE
*.max_dispatchers=5
*.max_dump_file_size='10240'
*.max_shared_servers=16
*.O7_DICTIONARY_ACCESSIBILITY=FALSE
*.open_cursors=200
*.optimizer_dynamic_sampling=0
*.optimizer_mode='ALL_ROWS'
*.parallel_execution_message_size=4096
*.parallel_max_servers=16
*.pga_aggregate_target=512M
*.processes=300
*.recovery_parallelism=8
*.remote_login_passwordfile='EXCLUSIVE'
*.remote_os_roles=FALSE
*.resource_limit=TRUE
*.sec_case_sensitive_logon=FALSE
*.service_names='EGSDP_PRIMARY'
*.session_cached_cursors=100
*.sessions=335
*.sga_max_size=8000M
*.sga_target=8000M
*.shared_pool_reserved_size=50M
*.shared_pool_size=1000M
*.shared_servers=10
*.sort_area_retained_size=0
*.sort_area_size=0
*.sql92_security=TRUE
*.standby_file_management='AUTO'
*.statistics_level='TYPICAL'
*.timed_statistics=TRUE
*.undo_management='AUTO'
*.undo_retention=600
*.undo_tablespace='UNDOTBS'
*.utl_file_dir='/tmp'
*.workarea_size_policy='auto'
APÉNDICE C: INIT DEL STANDBY (initEGSDP_STANDBY.ora)
EGSDP_PRIMARY.__db_cache_size=7197425664
EGSDP_PRIMARY.__java_pool_size=16777216
EGSDP_PRIMARY.__large_pool_size=67108864
EGSDP_PRIMARY.__oracle_base='/u01/app/oracle'#ORACLE_BASE set from
environment
EGSDP_PRIMARY.__pga_aggregate_target=536870912
EGSDP_PRIMARY.__sga_target=8388608000
EGSDP_PRIMARY.__shared_io_pool_size=0
EGSDP_PRIMARY.__shared_pool_size=1056964608
EGSDP_PRIMARY.__streams_pool_size=0
*._trace_files_public=FALSE
*.aq_tm_processes=1
*.archive_lag_target=900
*.audit_file_dest='/u01/app/oracle/diag/rdbms/EGSDP/EGSDP/adump'
*.audit_sys_operations=FALSE
*.audit_trail='DB'
*.cluster_database=FALSE
*.compatible='11.2.0.3'
*.control_files='/u01/app/oracle/oradata/EGSDP/control/EGSDP_PF_CTL_01.ctl'
,'/u01/app/oracle/oradata/EGSDP/control/EGSDP_PF_CTL_02.ctl','/u01/app/orac
le/oradata/EGSDP/control/EGSDP_PF_CTL_03.ctl'
*.core_dump_dest='/u01/app/oracle/diag/rdbms/EGSDP/EGSDP/cdump'
*.db_block_checking='true'
*.db_block_size=8192
*.db_cache_advice='ON'
*.db_cache_size=6000M
*.db_domain=''
*.db_file_multiblock_read_count=16
*.db_files=200
*.db_name='EGSDP'
*.db_recovery_file_dest='/u01/app/oracle/oradata/EGSDP/recovery_area'
*.db_recovery_file_dest_size=30000M
*.db_writer_processes=2
*.diagnostic_dest='/u01/app/oracle'
*.disk_asynch_io=true
*.fal_client='EGSDP_PRIMARY'
*.fal_server='EGSDP_STANDBY'
*.fast_start_mttr_target=300
*.filesystemio_options='SETALL'
*.java_pool_size=16M
*.job_queue_processes=10
*.large_pool_size=64M
*.local_listener='EGSDP_PRIMARY'
*.log_archive_dest_1='LOCATION=USE_DB_RECOVERY_FILE_DEST MANDATORY ARCH
SYNC NOAFFIRM valid_for=(online_logfiles,primary_role)'
*.log_archive_dest_2='service=EGSDP_STANDBY OPTIONAL REOPEN=30 LGWR ASYNC
NOAFFIRM valid_for=(online_logfiles,primary_role)'
*.log_archive_dest_state_1='ENABLE'
*.log_archive_dest_state_2='DEFER'
*.log_archive_format='EGSDP_D%d_T%tS%sR%r.ARC'
*.log_archive_max_processes=10
*.log_checkpoint_timeout=0
*.log_checkpoints_to_alert=TRUE
*.log_file_name_convert='/u01/app/oracle/oradata/EGSDP','/u01/app/oracle/or
adata/EGSDP'
*.max_dispatchers=5
*.max_dump_file_size='10240'
*.max_shared_servers=16
*.O7_DICTIONARY_ACCESSIBILITY=FALSE
*.open_cursors=200
*.optimizer_dynamic_sampling=0
*.optimizer_mode='ALL_ROWS'
*.parallel_execution_message_size=4096
*.parallel_max_servers=16
*.pga_aggregate_target=512M
*.processes=300
*.recovery_parallelism=8
*.remote_login_passwordfile='EXCLUSIVE'
*.remote_os_roles=FALSE
*.resource_limit=TRUE
*.sec_case_sensitive_logon=FALSE
*.service_names='EGSDP_STANDBY'
*.session_cached_cursors=100
*.sessions=335
*.sga_max_size=8000M
*.sga_target=8000M
*.shared_pool_reserved_size=50M
*.shared_pool_size=1000M
*.shared_servers=10
*.sort_area_retained_size=0
*.sort_area_size=0
*.sql92_security=TRUE
*.standby_file_management='AUTO'
*.statistics_level='TYPICAL'
*.timed_statistics=TRUE
*.undo_management='AUTO'
*.undo_retention=600
*.undo_tablespace='UNDOTBS'
*.utl_file_dir='/tmp'
*.workarea_size_policy='auto'
APÉNDICE D: crea_bd_EG_11g
spool EGSDP_crea_bd.lst
REM *
REM * Debe estar declarada las variables de entorno:
REM * ORACLE_DATABASE Nombre de la base de datos (EGSDP)
REM * ORACLE_SID Nombre del SID de la base de datos para la
instancia del nodo.
REM * ORACLE_HOME Directorio de oracle
REM * ORACLE_BASE Directorio base a partir del cual se
instalan todos los productos de oracle
REM * ORACLE_DATA Directorio de localizacion de los enlaces
simbolicos
REM * ORACLE_STORAGE Directorio de localizacion de los Raw
Devices
REM * ORACLE_ARCHIVE Directorio donde se vuelcan los ficheros de
Redo Log archivados
REM * ORACLE_PFILE Directorio donde se encuentra el directorio
init.ora para ese cluster
REM *
connect / as sysdba
startup nomount pfile=$ORACLE_HOME/dbs/initEGSDP_PRIMARY.ora
REM *
REM * Crea la base de datos
REM * Este nombre debe estar definido en el parametro DB_NAME del fichero
init${ORACLE_SID}.ora
REM *
create database
maxinstances 8
maxloghistory 1
maxlogfiles 192
maxlogmembers 3
maxdatafiles 1024
character set "WE8ISO8859P9"
national character set "AL16UTF16"
controlfile reuse
datafile
'/u01/app/oracle/oradata/EGSDP/dat_001/EGSDP_PF_SYS_01.dbf' size 100M
AUTOEXTEND ON NEXT 10240K extent management local
sysaux datafile
'/u01/app/oracle/oradata/EGSDP/dat_001/EGSDP_PF_SYSAUX_01.dbf' size 50M
AUTOEXTEND ON NEXT 10240K MAXSIZE 1024M
SMALLFILE default temporary tablespace TEMP tempfile
'/u01/app/oracle/oradata/EGSDP/dat_001/EGSDP_PF_TMP_01.dbf' size
50M AUTOEXTEND ON NEXT 640K MAXSIZE 2048M
SMALLFILE undo tablespace UNDOTBS datafile
'/u01/app/oracle/oradata/EGSDP/dat_001/EGSDP_PF_UNDO_01.dbf' size
100M AUTOEXTEND ON NEXT 5120K MAXSIZE 2048M
user SYS identified by "change_on_install" user SYSTEM identified by
"manager"
logfile
group 1
('/u01/app/oracle/oradata/EGSDP/redos_001/EGSDP_PF_RDO_T1G01M1.log') size
50M reuse,
group 2
('/u01/app/oracle/oradata/EGSDP/redos_001/EGSDP_PF_RDO_T1G02M1.log') size
50M reuse;
spool off
APÉNDICE E: crea_bd_EG_11g_2
REM *
REM * En este punto la base de datos debe estar levantada con su init.ora
correspondiente
REM *
connect / as sysdba
REM *
REM * Crea las vistas del dictionary
REM *
@?/rdbms/admin/catalog.sql
REM *
REM * Ejecucion para los procedimientos
REM *
@?/rdbms/admin/catproc.sql
REM *
REM * Ejecucion para Oracle Cluster
REM *
-- @?/rdbms/admin/catclust.sql
spool off
set term on
REM *
REM * Creacion de tablespaces
REM *
connect / as sysdba
spool EGSDP_crea_tabspcs_datos.lst
REM *
REM * Creacion de tablespaces de datos
REM *
REM *
REM * Modificacion de usuarios internos
REM *
alter user sys temporary tablespace temp;
alter user system default tablespace PP_DAT temporary tablespace temp;
alter user outln temporary tablespace temp;
connect system/manager
-- @?/rdbms/admin/catdbsyn.sql
@?/sqlplus/admin/pupbld.sql
@?/sqlplus/admin/help/hlpbld.sql helpus.sql
spool off
disconnect
REM *
REM * Creacion del usuario SDP
REM *
@crea_bd_EG_11g_3.sql
APÉNDICE F: crea_bd_EG_11g_3
REM *
REM * En este punto la base de datos tiene que estar levantada con su
correspondiente init.ora
REM *
connect system/manager
spool EGSDP_crea_usuario_SDP.lst
REM *
REM * Creacion del usuario SDP y asignacion de permisos
REM *
create user sdp identified by sdp
default tablespace PP_DAT
temporary tablespace temp
quota unlimited on PP_DAT
quota unlimited on PP_IND;
connect / as sysdba
spool off
disconnect
APÉNDICE G: crea_bd_EG_11g_4
REM *
REM * En este punto la base de datos tiene que estar levantada con su
correspondiente init.ora
REM *
connect / as sysdba
spool EGSDP_post_bd_creation.lst
shutdown immediate;
connect / as sysdba
startup mount;
shutdown immediate;
connect / as sysdba
startup ;
execute utl_recomp.recomp_serial();
host /u01/app/oracle/product/11.2.0.3/db_1/bin/orapwd
file=/u01/app/oracle/product/11.2.0.3/db_1/dbs/orapwEGSDP_PRIMARY
password=&&oracle force=y
shutdown immediate;
startup
spool off
disconnect
exit;