=====NFS für einen VOT File einem 12c Oracle Real Applikation Clusters unter Linux 7 verwenden=====
**A... D_HOME/bin/crsctl query css votedisk
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------... mpleted after 50% of the maximum interval. Voting file /dev/oracleasm/disks/VOT1_02 will be considered n
.sh eine Fehlermeldung (sh: /bin/netstat: No such file or directory ) daher, idt doch die Installation d... ain/repo/OracleLinux/OL8/addons/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
... eut per ssh anmelden
# Meldung " /usr/bin/xauth: file /root/.Xauthority does not exist"
# prüfen ob nu... rid
</code>
==== User Securtiy und Limits / Profile setzen ====
Um die Limits zu konfigurieren stehe
lesen und Ändern von Text Dateien seht das "lineinfile" BuildIn zur Verfügung, siehe dazu => https://doc... /ansible/latest/collections/ansible/builtin/lineinfile_module.html .
----
==== Test Playbooks erstel... dd parameter if missing
ansible.builtin.lineinfile:
path: /tmp/sshd_config
line: "AllowUse... to parameter if exits
ansible.builtin.lineinfile:
path: /tmp/sshd_config
regexp: '^(
.sh eine Fehlermeldung (sh: /bin/netstat: No such file or directory ) daher, idt doch die Installation d... eut per ssh anmelden
# Meldung " /usr/bin/xauth: file /root/.Xauthority does not exist"
# prüfen ob nu... -R 775 /opt/18.1.0.0/grid
</code>
----
=== Tmp File Verhalten ===
Configure verify temporary locatio... sr/tmp/.oracle*
</code>
----
===Shared Memory File System Mount on Linux===
Set to:
<code bash>
#Che
eter max
alter system set sga_target=40G scope=spfile sid='*';
alter system set sga_max_size=40G scope=spfile sid='*';
alter system reset memory_target sid='*...
alter system set pga_aggregate_target=8G scope=spfile sid='*';
exit
</code>
Bei Fehler mit memory_t... sql>alter system set use_large_pages=only scope=spfile sid='*';
exit
srvctl stop database -d GPIDB
#
uchen mit Schalter **-R**
<code bash>
grep -R 'my_file' /dir/
</code>
----
==== Find ====
Suche eine... icht älter als x tage sind:
(Man Page: -mtime n File's data was last modified n*24 hours ago )
<code... anlegen:
<code bash>
dd if=/dev/zero of=copy_test_file.dmp bs=1M count=1000
</code>
----
==== In allen... n anderes ersetzen.\\
<code bash>
!/bin/bash
for file in $(grep -l -R $searchterm $startdirectory)
do
ILES=/u01/app/11.2.0.4/grid/rdbms/audit/*.aud
LOG_FILE=/tmp/aud_delete_logs_list.log
DATE_NOW_EPOCH=`da... months" +"%s"`
echo "Info - check the age of the file - start at -- `date` -- " > $LOG_FILE
for f in $FILES
do
#File date as epoch
FILE_DATE=`stat -c %Y ${f}`
FILE_LOG_DATE=`stat -c %y ${
CRIPTPATH{}"`
##############################
#logfile
LOG=${SCRIPTS_DIR}/run_copy_job_${DAY}.log
#####...
# get lock to prevent multiple runs
# set ${LOCKFILE} !
LOCKFILE=${SCRIPTS_DIR}/lock
exec 100>${LOCKFILE}_runStat;
if flock -n -x 100; then
echo "-- Info -- start the
face verwenden!) ab und rolliert jeden Tag den Logfile
<code bash>
#!/bin/sh
#
#
# read the interface statistic and write the information to a log file
#
########## Environment ##############
DAY_OF_WE... TERFACE="eth1"
HOST=`hostname -a`
######### Log file Handling ###########
OVERWRITE="false"
# check if a new file must be created
if [ ! -e $SCRIPTS/${HOST}_${INTE