{"id":742,"date":"2012-11-26T07:47:43","date_gmt":"2012-11-26T11:47:43","guid":{"rendered":"https:\/\/gonzalo.aro.cl\/blog\/?p=742"},"modified":"2012-11-27T03:10:47","modified_gmt":"2012-11-27T07:10:47","slug":"pasos-para-backup-en-db2","status":"publish","type":"post","link":"https:\/\/gonzalo.aro.cl\/blog\/2012\/11\/26\/pasos-para-backup-en-db2\/","title":{"rendered":"Pasos para backup en DB2"},"content":{"rendered":"<p>Aqui estan loss pasos para hacer un backup offline en DB2, entiendase offline como, ninguna aplicaci\u00f3n esta conectada a la base de datos.<\/p>\n<pre class=\"brush: sql\">\r\nCONNECT TO $NOMBRE_BASE_DE_DATOS;\r\nQUIESCE DATABASE IMMEDIATE FORCE CONNECTIONS;\r\nCONNECT RESET;\r\nFORCE APPLICATIONS ALL;\r\nDEACTIVATE DB $NOMBRE_BASE_DE_DATOS;\r\nBACKUP DATABASE $NOMBRE_BASE_DE_DATOS to $RUTA  WITHOUT PROMPTING;\r\nCONNECT TO $NOMBRE_BASE_DE_DATOS;\r\nUNQUIESCE DATABASE;\r\nACTIVATE DB $NOMBRE_BASE_DE_DATOS;\r\nCONNECT RESET;\r\n<\/pre>\n<p>En donde:<br \/>\n<strong>$NOMBRE_BASE_DE_DATOS<\/strong>  es el nombre de la base de datos<br \/>\n<strong>$RUTA<\/strong>  es la especificacion del directorio en donde se escribir\u00e1 el backup, en donde el usuario de la base de datos debe tener permiso de escritura<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Aqui estan loss pasos para hacer un backup offline en DB2, entiendase offline como, ninguna aplicaci\u00f3n esta conectada a la base de datos. CONNECT TO $NOMBRE_BASE_DE_DATOS; QUIESCE DATABASE IMMEDIATE FORCE CONNECTIONS; CONNECT RESET; FORCE APPLICATIONS ALL; DEACTIVATE DB $NOMBRE_BASE_DE_DATOS; BACKUP DATABASE $NOMBRE_BASE_DE_DATOS to $RUTA WITHOUT PROMPTING; CONNECT TO $NOMBRE_BASE_DE_DATOS; UNQUIESCE DATABASE; ACTIVATE DB $NOMBRE_BASE_DE_DATOS; CONNECT [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,36,4],"tags":[],"class_list":["post-742","post","type-post","status-publish","format-standard","hentry","category-base-de-datos","category-db2","category-desarrollo"],"_links":{"self":[{"href":"https:\/\/gonzalo.aro.cl\/blog\/wp-json\/wp\/v2\/posts\/742"}],"collection":[{"href":"https:\/\/gonzalo.aro.cl\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gonzalo.aro.cl\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gonzalo.aro.cl\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gonzalo.aro.cl\/blog\/wp-json\/wp\/v2\/comments?post=742"}],"version-history":[{"count":4,"href":"https:\/\/gonzalo.aro.cl\/blog\/wp-json\/wp\/v2\/posts\/742\/revisions"}],"predecessor-version":[{"id":746,"href":"https:\/\/gonzalo.aro.cl\/blog\/wp-json\/wp\/v2\/posts\/742\/revisions\/746"}],"wp:attachment":[{"href":"https:\/\/gonzalo.aro.cl\/blog\/wp-json\/wp\/v2\/media?parent=742"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gonzalo.aro.cl\/blog\/wp-json\/wp\/v2\/categories?post=742"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gonzalo.aro.cl\/blog\/wp-json\/wp\/v2\/tags?post=742"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}