{"id":2885,"date":"2018-02-03T19:00:09","date_gmt":"2018-02-03T10:00:09","guid":{"rendered":"http:\/\/haisins.epac.to\/wordpress\/?p=2885"},"modified":"2018-02-03T19:01:19","modified_gmt":"2018-02-03T10:01:19","slug":"%ec%9d%b4%ec%a0%84-control-file%ec%9d%84-%ec%9d%b4%ec%9a%a9%ed%95%9c-control-file-%ec%9e%ac%ec%83%9d%ec%84%b1","status":"publish","type":"post","link":"http:\/\/haisins.synology.me\/wordpress\/?p=2885","title":{"rendered":"\uc774\uc804 control file\uc744 \uc774\uc6a9\ud55c control file \uc7ac\uc0dd\uc131"},"content":{"rendered":"<p>\uc774\uc804 database\uc5d0\uc11c control file\uc758 trace \ubcf8\uc744 \ubc31\uc5c5\ubc1b\uc740 \ud6c4 \ud574\ub2f9 \ud30c\uc77c\uc744 \uc815\ub9ac\ud558\uba74 \uc0c8\ub85c\uc6b4 control file\uc744 \uc0dd\uc131\ud558\ub294 \uc2a4\ud06c\ub9bd\ud2b8\ub97c \uc0dd\uc131\ud560 \uc218 \uc788\ub2e4.<\/p>\n<p>&#8212; Cron modify<\/p>\n<p>&#8212; lsnrctl stop<\/p>\n<p>script ReCre_Controlfile.log<\/p>\n<p>shutdown immediate<\/p>\n<p>startup<\/p>\n<p>alter database backup controlfile to trace ;<\/p>\n<p>alter database backup controlfile to &#8216;\/ol0_orah01\/oracle\/adm\/P01OL1\/udump\/CTRL20020916_Before&#8217; ;<\/p>\n<p>shutdown<\/p>\n<p><span style=\"color: red;\">startup nomount<br \/>\n<\/span><\/p>\n<p>mv \/ol0_orah01\/ORACLE\/P01OL1\/ctl\/cntrlP01OL1805_1.dbf \/ol0_orah01\/ORACLE\/P01OL1\/ctl\/cntrlP01OL1805_1.dbf_20020<\/p>\n<p>916<\/p>\n<p>mv \/ol0_oras02\/ORACLE\/P01OL1\/ctl\/cntrlP01OL1805_2.dbf \/ol0_oras02\/ORACLE\/P01OL1\/ctl\/cntrlP01OL1805_2.dbf_20020<\/p>\n<p>916<\/p>\n<p><span style=\"color: red;\">@New_controlfile.sql \u2013 control file\uc744 \uc7ac\uc0dd\uc131\ud558\ub294 \ubd80\ubd84.<br \/>\n<\/span><\/p>\n<ul>\n<li>\n<div style=\"text-align: justify;\">trace \ub85c \ubc1b\uc740 \ubc31\uc5c5 control file\uc5d0\uc11c comment \ubd80\ubd84\uc744 \ubaa8\ub450 \uc81c\uac70\ud558\uace0, \uc218\uc815\ud574\uc57c \ud558\ub294 \ubd80\ubd84\ub4e4\uc744 \uace0\uce5c\ub2e4.<\/div>\n<\/li>\n<li>\n<div style=\"text-align: justify;\"><\/div>\n<\/li>\n<\/ul>\n<p>alter database open;<\/p>\n<p>alter system switch logfile;<\/p>\n<p>archive log list<\/p>\n<p>alter database backup controlfile to trace ;<\/p>\n<p>alter database backup controlfile to &#8216;\/ol0_orah01\/oracle\/adm\/P01OL1\/udump\/CTRL20020916_After&#8217; ;<\/p>\n<p>\uc704\uc640 \uac19\uc740 \uc21c\uc11c\ub85c \uc791\uc5c5\uc744 \ud558\uac8c \ub418\ub294\ub370.. \uc774\ub54c control file \uc744 create \ud558\ub294 \ubc29\ubc95<\/p>\n<h3><span style=\"color: #330099; font-family: Arial;\">Creating New Control Files<\/span><\/h3>\n<p><span style=\"font-family: \ubc14\ud0d5; font-size: 12pt;\">This section provides step-by-step instructions for creating new control files.<br \/>\n<\/span><\/p>\n<h5><span style=\"font-family: Arial;\">To Create New Control Files<\/span><\/h5>\n<ul>\n<li>\n<div style=\"text-align: justify;\">Make a list of all datafiles and online redo log files of the database.<\/div>\n<p><span style=\"font-family: \ubc14\ud0d5; font-size: 12pt;\">If you followed the recommendations for database backups, you should already have a list of datafiles and online redo log files that reflect the current structure of the database.<br \/>\n<\/span><\/p>\n<p><span style=\"font-family: \ubc14\ud0d5; font-size: 12pt;\">If you have no such lists and your control file has been damaged so that the database cannot be opened, try to locate all of the datafiles and online redo log files that constitute the database. Any files not specified in <a href=\"E:DOCserver.817a76956control.htm\">Step 5<\/a> are not recoverable once a new control file has been created. Moreover, if you omit any of the files that make up the SYSTEM tablespace, you might not be able to recover the database.<br \/>\n<\/span><\/li>\n<li>\n<div style=\"text-align: justify;\"><span style=\"color: red;\">Shut down the database.<br \/>\n<\/span><\/div>\n<p><span style=\"font-family: \ubc14\ud0d5; font-size: 12pt;\">If the database is open, shut down the database with normal priority, if possible. Use the IMMEDIATE or ABORT options only as a last resort.<br \/>\n<\/span><\/li>\n<li>\n<div style=\"text-align: justify;\">Back up all datafiles and online redo log files of the database.<\/div>\n<\/li>\n<li>\n<div style=\"text-align: justify;\"><span style=\"color: red;\">Start up an new instance, but do not mount or open the database. \u2013 nomount \uc0c1\ud0dc\ub85c startup \ud55c\ub2e4.(control file\uc744 \ubcc0\uacbd\ud574\uc57c \ud558\ubbc0\ub85c)<br \/>\n<\/span><\/div>\n<\/li>\n<li>\n<div style=\"text-align: justify;\"><span style=\"color: red;\">Create a new control file for the database using the CREATE CONTROLFILE statement<\/span>.<\/div>\n<p><span style=\"font-family: \ubc14\ud0d5; font-size: 12pt;\">When creating the new control file, select the RESETLOGS option if you have lost any online redo log groups in addition to the control files. In this case, you will need to recover from the loss of the redo logs (<a href=\"E:DOCserver.817a76956control.htm\">Step 8<\/a>). You must also specify the RESETLOGS option if you have renamed the database. Otherwise, select the NORESETLOGS option.<br \/>\n<\/span><\/li>\n<li>\n<div style=\"text-align: justify;\">Store a backup of the new control file on an offline storage device.<\/div>\n<\/li>\n<li>\n<div style=\"text-align: justify;\">Edit the initialization parameter file of the database.<\/div>\n<p><span style=\"font-family: \ubc14\ud0d5; font-size: 12pt;\">Edit the initialization parameter file of the database to indicate all of the control files created in <a href=\"E:DOCserver.817a76956control.htm\">Step 5<\/a> and <a href=\"E:DOCserver.817a76956control.htm\">Step 6<\/a> (not including the backup control file) in the CONTROL_FILES parameter. If you are renaming the database, edit the DB_NAME parameter to specify the new name.<br \/>\n<\/span><\/li>\n<li>\n<div style=\"text-align: justify;\">Recover the database if necessary. If you are not recovering the database, skip to <a href=\"E:DOCserver.817a76956control.htm\">Step 9<\/a>.<\/div>\n<p><span style=\"font-family: \ubc14\ud0d5; font-size: 12pt;\">If you are creating the control file as part of recovery, recover the database. If the new control file was created using the NORESETLOGS option (<a href=\"E:DOCserver.817a76956control.htm\">Step 5<\/a>), you can recover the database with complete, closed database recovery.<br \/>\n<\/span><\/p>\n<p><span style=\"font-family: \ubc14\ud0d5; font-size: 12pt;\">If the new control file was created using the RESETLOGS option, you must specify USING BACKUP CONTROL FILE. If you have lost online or archived redo logs or datafiles, use the procedures for recovering those files.<br \/>\n<\/span><\/li>\n<li>\n<div style=\"text-align: justify;\">Open the database.<\/div>\n<p><span style=\"font-family: \ubc14\ud0d5; font-size: 12pt;\">Open the database using one of the following methods:<br \/>\n<\/span><\/p>\n<ul>\n<li>\n<div style=\"text-align: justify;\">If you did not perform recovery, open the database normally.<\/div>\n<\/li>\n<li>\n<div style=\"text-align: justify;\">If you performed complete, closed database recovery in <a href=\"E:DOCserver.817a76956control.htm\">Step 8<\/a>, start up the database.<\/div>\n<\/li>\n<li>\n<div style=\"text-align: justify;\">If you specified RESETLOGS when creating the control file, use the ALTER DATABASE statement, indicating RESETLOGS.<\/div>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\uc774\uc804 database\uc5d0\uc11c control file\uc758 trace \ubcf8\uc744 \ubc31\uc5c5\ubc1b\uc740 \ud6c4 \ud574\ub2f9 \ud30c\uc77c\uc744 \uc815\ub9ac\ud558\uba74 \uc0c8\ub85c\uc6b4 control file\uc744 \uc0dd\uc131\ud558\ub294 \uc2a4\ud06c\ub9bd\ud2b8\ub97c \uc0dd\uc131\ud560 \uc218 \uc788\ub2e4. &#8212; Cron modify &#8212; lsnrctl stop script ReCre_Controlfile.log shutdown immediate startup alter database backup controlfile to trace ; alter database backup controlfile to &#8216;\/ol0_orah01\/oracle\/adm\/P01OL1\/udump\/CTRL20020916_Before&#8217; ; shutdown startup nomount mv \/ol0_orah01\/ORACLE\/P01OL1\/ctl\/cntrlP01OL1805_1.dbf \/ol0_orah01\/ORACLE\/P01OL1\/ctl\/cntrlP01OL1805_1.dbf_20020 916 mv \/ol0_oras02\/ORACLE\/P01OL1\/ctl\/cntrlP01OL1805_2.dbf \/ol0_oras02\/ORACLE\/P01OL1\/ctl\/cntrlP01OL1805_2.dbf_20020 916 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2880,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"spay_email":""},"categories":[3],"tags":[950],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/haisins.synology.me\/wordpress\/wp-content\/uploads\/2018\/02\/tips-newsletter.jpg?fit=680%2C530","amp_enabled":true,"_links":{"self":[{"href":"http:\/\/haisins.synology.me\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2885"}],"collection":[{"href":"http:\/\/haisins.synology.me\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/haisins.synology.me\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/haisins.synology.me\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/haisins.synology.me\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2885"}],"version-history":[{"count":2,"href":"http:\/\/haisins.synology.me\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2885\/revisions"}],"predecessor-version":[{"id":2887,"href":"http:\/\/haisins.synology.me\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2885\/revisions\/2887"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/haisins.synology.me\/wordpress\/index.php?rest_route=\/wp\/v2\/media\/2880"}],"wp:attachment":[{"href":"http:\/\/haisins.synology.me\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2885"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/haisins.synology.me\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2885"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/haisins.synology.me\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2885"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}