Langsung ke konten utama

Postingan

Menampilkan postingan dengan label auto backup

ORA-03113: end-of-file on communication channel [Solved]

setelah server oracle restart, terjadi masalah sebagai berikut. [oracle@host ~]$ sqlplus / as sysdba ... ... Copyright (c) 1982, 2014, Oracle. All rights reserved. Connected to an idle instance. SQL> startup ORACLE instance started. Total System Global Area 2147483648 bytes Fixed Size 2926472 bytes Variable Size 1224738936 bytes Database Buffers 905969664 bytes Redo Buffers 13848576 bytes Database mounted. ORA-03113: end-of-file on communication channel Process ID: 4903 Session ID: 237 Serial number: 26032 untuk mengatasi error tersebut, dapat dilakukan dengan cara: SQL> exit Disconnected from Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production [oracle@zeus ~]$ sqlplus / as sysdba ... ... Connected to an idle instance. SQL> startup nomount ORACLE instance started. Total System Global Area 2147483648 bytes Fixed Size 2926472 bytes Variable Size 1224738936 bytes Database Buffers 905969664 bytes Redo Buffers 13848576 bytes SQL> alter database

Auto Backup Multiple Database Mysql

Hai. sudah lama tidak menyentuh blog ini. dan lebih parahnya, saya baru ingat jika saya punya blog. hal ini saya temukan ketika saya browsing dengan keywoard konfigurasi proxy server squid lusca  . iseng sih, mumpung ga ada tiket yang masuk ke pekerjaan ku. kemarin saya mendapatkan tugas untuk melakukan backup secara manual kebeberapa server yang ada di kantor saya. males sih, karena kita harus membackup satu persatu. nah, saya akhirnya browsing cara yang enak buat backup multiple database mysql. maka saya temukan script beikut: #!/bin/sh user=user_root_database pass=pass_database host=localhost dir=/patch/to/directory_nya backup(){ date=$(date +%Y%m%d-%H%M) tanggal=$(date +%d) bulan=$(date +%m) tahun=$(date +%Y) if [ ! -d "$dir/$tahun/$bulan/$tanggal/" ]; then mkdir --parents $dir/$tahun/$bulan/$tanggal; fi dump=/usr/bin/mysqldump $dump $dbs -u$user -p$pass -h$host -R -K --triggers> $dir/$tahun/$bulan/$tanggal/$dbs-$date.sql gzip -f $dir/$tahun/$bu