l.
==== In welchen Verzeichnis wird das akuelle Script gestartet ====
In welchen Verzeichnis wird das akuelle Script gestartet:
<code bash>
# Home of the scrips
SCRIP... s Directory ${SCRIPTS} not exist"
echo "May be script not start in bash or over symlink?? "
exit 1
f... nicht richtig ist.
==== Timing und Debugging vom Script ====
<code bash>
#in Secunden
export PS4='+[${S
-
==== Playbook Beispiel - SQL*Plus aufrufen und Script ausführen ====
Unser Template kopieren:
<code ... nbaken auf dem Server liegen können.
Im Ansible Script wird dann mit "with_items" bzw. "with_subelements... /collections/ansible/builtin/file_module.html
- Script auf dem Server kopieren
- https://docs.ansibl... /collections/ansible/builtin/copy_module.html
- Script in SQL*Plus ausführen
- https://docs.ansible.
e yaml>
---
- name: Copy the Create Local Facts Script to the hosts
hosts: all
become: yes
become_... }}"
state: directory
- name: Copy Check Script
ansible.builtin.template:
src: templ... roup: root
mode: '0777'
</code>
Das Fact Script liegt dabei unter "templates/setLocalDBFacts.sh.j... nun über ein "oracle.fact" nur ein weiters Schell Script mit Sudo aufgerufen um das eigentliche Schell Skr
rget=40G
Oder Verwendung des Scripts unter Shell Script to Calculate Values Recommended Linux HugePages /...
=== Im OS die Huge Pages konfigurieren ===
=> Script für die Größe bei einer laufenden DB => https://o... fragen mit "init.sql num" in SQL*Plus, siehe dazu Script unter [[[http://orapowershell.codeplex.com/Source... (USE_LARGE_PAGES To Enable HugePages)
* Shell Script to Calculate Values Recommended Linux HugePages /
sync: http://linux.die.net/man/1/rsync
=== Das Script ===
<code bash copy_rsync.sh>
#!/bin/sh
#
# Script to start rsnc to copy archivelogs from old 9i envirom... flock -n -x 100; then
echo "-- Info -- start the script in ${SCRIPTS_DIR}" >> "${LOG}" 2>&1
else
echo "Error -- Script is still running!" >> "${LOG}" 2>&1
exit 1
fi
01 14 20 02 * /home/oragpi/scripts/call_rman_script.sh
</code>
see http://www.pantz.org/software/cro... ontab einmalig hinzufügen:
<code bash>
at now
>script.sh
# close and start the script with ^d
</code>
Ein Guter Generator => https://crontab-generator.org/... == Bash Scripting Examples =====
* [[linux:bash_script_snippets|Bash Snippets für Skripting]]
* http:
n Anlage einer DB prüfen?
Zum Beispiel in meiner Script Library für die automatisierte Installation einer... gibt. Das passt nicht so recht für eine einfache Script Library.
Daher Alternativ wenn es nicht so stre
mulex network interface
===Monitoring===
Ein Script für das Monitoring erstellen.
Das Script fragt das Netzwerk Interface des Interconnects (bei Bonding das
Datenbank heraus mit PL/SQL implementiert.
Eine Script gesteuerte External Table dient dazu als Datei Ge... ebssystem.
=> [[dba:oracle_external_table_execute_script|Eine Oracle External Table zum Aufruf von Linux B