=====NFS für einen VOT File einem 12c Oracle Real Applikation Clusters unter Linux 7 verwenden=====
**A... er normal Redundancy Disk Group einbinden
* VOT Files auf dieser Disk Group betreiben
----
==== NFS... ASM NFS Disk als Quorum Disk hinzufügen}}
==VOT Files umziehen ==
VOT Files überprüfen:
<code bash>
export GRID_HOME=/opt/12.1.0.2/grid
$GRID_HOME/bin/c
.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
...
Linux 8 => https://sourceforge.net/projects/nmon/files/nmon16m_x86_64_rhel8/download
<code bash>
cp nm... eut per ssh anmelden
# Meldung " /usr/bin/xauth: file /root/.Xauthority does not exist"
# prüfen ob nu
.sh eine Fehlermeldung (sh: /bin/netstat: No such file or directory ) daher, idt doch die Installation d... rhel6 - über http://sourceforge.net/projects/nmon/files/nmon_x86_64_rhel6/download herunterladen, bzw nu... ion für 7.1 https://sourceforge.net/projects/nmon/files/nmon16e_x86_rhel72/download verwenden.
<code ba... eut per ssh anmelden
# Meldung " /usr/bin/xauth: file /root/.Xauthority does not exist"
# prüfen ob nu
fang der Datei, "$" = Ende der Datei)||
^Multiple Files^ ^|
|:n|nächste Datei||
|:e#|vorherige Datei||
|... code>
----
=====df=====
Zeige nur die lokalen Filesystem "-l" an und ein total "--total", und das a... uchen mit Schalter **-R**
<code bash>
grep -R 'my_file' /dir/
</code>
----
==== Find ====
Suche eine... permission-denied-messages-from-find
Suche alle Files mit gesetzten S Bit und liste die Datei auf:
<co
=====Oracle Audit Log Files unter Linux löschen=====
<fc #800000>**Das Problem:**</fc>
Mit der Zeit ... --date "now -6 months" +"%s".
* Loop über alle Files
* Test wie alt die Datei ist, wenn älter als x... bash delete_audit_log_older_then.sh >
#!/bin/sh
FILES=/u01/app/11.2.0.4/grid/rdbms/audit/*.aud
LOG_FILE=/tmp/aud_delete_logs_list.log
DATE_NOW_EPOCH=`date
SE (default), dadurch memory allocation in pseudo-files under ramfs/tmpfs deaktivieren
- Paramter us... 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
passen
* SE Linux ausschalten
* Shared Memory Filesystem anpassen
* ZeroConfig Network ausschalten... V6 ausschalten
* Huge pages aktivieren
* Core File Creation einschalten
* Security und Limits für ... en
* Oracle Verzeichnisse anlegen
* Global Profile für den Oracle User setzen
===Oracle RPM insta... sctl.conf:
<code bash>
fs.aio-max-nr = 3145728
fs.file-max = 6815744
# Controls the maximum size of a me
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: '^(
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
=====LVM Filesystem xfs für die Datenbank anlegen und erweitern=====
Aufgabe:
Für die Daten Dateien de... Oracle Datenbank soll eine eigene Platte mit dem Filesystem XFS konfiguriert und unter /opt/oracle/ora_... xfs_db" created.
ls -la /dev/vg_ora_db
</code>
Filesystem erzeugen
<code>
mkfs.xfs /dev/vg_ora_db/xf... h => https://www.linuxtechi.com/create-extend-xfs-filesystem-on-lvm/
----
==== Erweitern ====
Ist a