Database Install
Database Install
Database Install
https://bintray.com/tigervnc/stable/tigervnc/1.6.0#files/el6/RPMS/x86_64
https://bintray.com/tigervnc/stable/tigervnc/1.6.0#files/el6/RPMS/noarch
Download all files to a specific directory, copy them on the Linux VM and install them using
rpm –Uvh *
Start the VNC server using
vncserver
/etc/pam.d/login:
session required pam_limits.so
/etc/sysconfig/ntpd:
add the -x option in the line below, as follows:
OPTIONS=”-x -u ntp:ntp ...”
Add the needed OS users and groups. Execute the following commands:
mkdir -p /u01/app/12.1.0.2/grid
mkdir -p /u01/app/grid
mkdir -p /u01/app/oracle
ORACLE_BASE=/u01/app/grid
ORACLE_HOME=/u01/app/12.1.0.2/grid
ORACLE_SID=+ASM
LD_LIBRARY_PATH=$ORACLE_HOME/lib
PATH=$PATH:$ORACLE_HOME/bin
export ORACLE_BASE ORACLE_HOME ORACLE_SID LD_LIBRARY_PATH PATH ORACLE_HOSTNAME
ORACLE_BASE=/u01/app/grid
ORACLE_HOME=/u01/app/12.1.0.2/grid
ORACLE_SID=+ASM
LD_LIBRARY_PATH=$ORACLE_HOME/lib
PATH=$PATH:$ORACLE_HOME/bin
export ORACLE_BASE ORACLE_HOME ORACLE_SID LD_LIBRARY_PATH PATH ORACLE_HOSTNAME
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=/u01/app/oracle/product/12.1.0.2/dbhome_1
ORACLE_SID=test pune un nume cu maxim 8 caractere, fara cifre
passwd grid
[provide the grid password when asked]
# apoi dau lui oracle drepturi de proprietar
chown oracle:oinstall -r database
chown oracle:oinstall -r grid
Grid Infrastructure Installation
The below commands, if prefixed with #, it means they are executed by root. If prefixed with $, it means they are
executed by grid or oracle.
#1. Open a VNC Session and connect to the VM Box Machine. Remember, to connect to the VM Box, you should
normally use the <IP>:1 string, as indicated below:
#2. Once the session starts, start two shells by right clicking in the desktop and selecting Open in Terminal. You can
open a session in the same terminal by clicking Ctrl+Shift+T
#3. In one session you will be connected as root all the time. Run
$xhost +
in this session. - trebuie sa dea access control disabled, clients can connect from any host
#4. In the other session, we install the grid infrastructure using the grid user. So run
#su – grid
in this second session.
#5. In the grid session, change directories to the place where the oracle software is residing:
$ cd /opt/software/oracle/
#6. If the ownership of the file is root, change it to grid. Do the same for the parent directory:
# chown grid.oinstall /opt/software/oracle
# chown grid.oinstall <file name>
Then change the /etc/hosts and add your computer name and ip address, connected as root:
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.1.15 dragos.mossit.ro
#19.1 To install the packages that are not available, we copy the V77197-01.iso to the Linux VM using winscp, in a
location of choice, eg: /opt/software/linux.
#19.2. Then we mount the file system using a command similar to the one below:
mkdir /mnt/linux
mount -t iso9660 -o loop /opt/software/linux/V77197-01.iso /mnt/linux/
# /tmp/CVU_12.1.0.2.0_grid/runfixup.sh
#19.6 Oracle will repeat the checks.
Some of the prerequisites can be ignored:
#24. The grid infrastructure for stand alone server is now complete.
#26. The last thing to do is to add a new listener service, connected as grid:
$ srvctl add listener -l listener_grid -o $ORACLE_HOME -p tcp:1721
$ srvctl status listener -l listener_grid
Listener LISTENER_GRID is enabled
Listener LISTENER_GRID is not running
srvctl start listener -l listener_grid
$ srvctl status listener -l listener_grid
Listener LISTENER_GRID is enabled
Listener LISTENER_GRID is running on node(s): dragos
Database Installation
#1. Open a new shell using Ctrl+Shift+T. You should have now 3 shells opened from the same terminal, one for
root, another for grid and one for oracle
#2. As oracle, go to the software location and unzip the database files.
$ cd /opt/software/oracle
$ unzip <file 1>
$ unzip <file 2>
In case you get permission denied errors, run as root the below:
# setfacl -m g:oinstall:rwx /opt/software/oracle
#4. Click Next and ignore the error that pops up.
#5. Select “Skip Software Updates” and Next:
# /app/app/oracle/product/12.1.0.2/dbhome_1/root.sh
Press Enter for any question asked.
#8. Make sure Fast Recovery Area is enabled. Do not change the parameters:
#9. Do not enable sample schemas: