{"author_name":"HTN20190109","width":"100%","author_url":"https://blog.hatena.ne.jp/HTN20190109/","blog_url":"https://htn20190109.hatenablog.com/","title":"Oracle DB\u518d\u8d77\u52d5\u30b7\u30a7\u30eb","image_url":null,"published":"2025-07-04 21:03:21","url":"https://htn20190109.hatenablog.com/entry/2025/07/04/210321","provider_url":"https://hatena.blog","height":"190","blog_title":"HTN20190109\u306e\u65e5\u8a18","description":"cat <<-'EOF' > restart_db.sh#!/bin/bash HOSTMEI=$1DBMEI=$2 echo \"[$(date '+%Y/%m/%d %H:%M:%S')] job start\" | tee -a /tmp/restart_db_$(date '+%Y%m').log ssh ${HOSTMEI} \"sudo su - oracle -c '/u01/app/19.0.0/grid/bin/srvctl stop database -db ${DBMEI}'\" 2>&1 | tee -a /tmp/restart_db_$(date '+%Y%m').log \u2026","type":"rich","version":"1.0","provider_name":"Hatena Blog","categories":["\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhtn20190109.hatenablog.com%2Fentry%2F2025%2F07%2F04%2F210321\" title=\"Oracle DB\u518d\u8d77\u52d5\u30b7\u30a7\u30eb - HTN20190109\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}