<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Oracle Standby Database Error: ORA-01157: cannot identify/lock data file 201 in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/oracle-standby-database-error-ora-01157-cannot-identify-lock-data-file-201/qaa-p/9858277#M3538783</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;You don't need to restart the database.&lt;/P&gt;&lt;P&gt;All you need to do is recreate the Temp file&lt;/P&gt;&lt;P&gt;ALTER TABLESPACE PSAPTEMP ADD TEMPFILE 'H:\ORACLE\ECP\SAPDATA6\TEMP_1\TEMP.DATA1' SIZE 7000M REUSE AUTOEXTEND OFF;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;RB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 10 Nov 2013 19:43:41 GMT</pubDate>
    <dc:creator>Reagan</dc:creator>
    <dc:date>2013-11-10T19:43:41Z</dc:date>
    <item>
      <title>Oracle Standby Database Error: ORA-01157: cannot identify/lock data file 201</title>
      <link>https://community.sap.com/t5/technology-q-a/oracle-standby-database-error-ora-01157-cannot-identify-lock-data-file-201/qaq-p/9858274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have installed and configured the Oracle Standby Database with Oracle dataguard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Due to some reasons we are switched our business operations to Standby server. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked the dataguard configuration before and after the switchover through DGMGRL&amp;gt;show configuration; the output is success. Based on this confidence we switched over the production operations to Standby server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;Environment:&lt;/STRONG&gt; windows server 2008 R2 with Oracle 11G enterprise edition (11.2.0.3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now we are facing some issues in standby server. (Now Production Operations running on Standby Server)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are getting the below error when users trying to print some checks from SAP.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;ST22: Runtime Error&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DBIF_RSQL_SQL_ERROR&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error Text of the Database: "ORA-01157: cannot identify/lock data file 201 -&lt;/P&gt;&lt;P&gt; see DBWR trace file#ORA-01110: data file 201:&lt;/P&gt;&lt;P&gt; 'H:\ORACLE\ECP\SAPDATA6\TEMP_1\TEMP.DATA1'"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I observed that the problem with Temp file. When I checked in the standby system the file “'H:\ORACLE\ECP\SAPDATA6\TEMP_1\TEMP.DATA1' “ was not there. I copied the file manually from primary to Standby server.&lt;/P&gt;&lt;P&gt;After copied the tempfile the result of SQL&amp;gt; select * from v$tempfile; is same in both primary and standby databases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have following queries in this view: please clarify.&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;Now the result of SQL&amp;gt; select * from v$tempfile; is same in both the databases, so if we restart the system the problem will get solve?&lt;/LI&gt;&lt;LI&gt;I guess we can solve this issue by executing the below commands.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;SQL&amp;gt; alter database tempfile ‘H:\ORACLE\ECP\SAPDATA6\TEMP_1\TEMP.DATA1’ drop;&lt;/P&gt;&lt;P&gt;SQL&amp;gt; alter tablespace PSAPTEMP add tempfile ‘H:\ORACLE\ECP\SAPDATA6\TEMP_1\TEMP.DATA1’ size 7G;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we execute this commands will it affect any Dataguard Configuration, I am using the Dataguard with &lt;SPAN style="font-size: 10.0pt; font-family: 'ArialMT','sans-serif';"&gt;standby_file_management = Auto &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly suggest the solution without affecting my Dataguard configuration. now Dataguard configuration is success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kishore Ch&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Nov 2013 09:13:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/oracle-standby-database-error-ora-01157-cannot-identify-lock-data-file-201/qaq-p/9858274</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-09T09:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle Standby Database Error: ORA-01157: cannot identify/lock data file 201</title>
      <link>https://community.sap.com/t5/technology-q-a/oracle-standby-database-error-ora-01157-cannot-identify-lock-data-file-201/qaa-p/9858275#M3538781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kishore,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you are dropping the tempfile and later re-creating it , it should not create any issue with data guard configuration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please go ahead with the steps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepak Kori&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Nov 2013 14:32:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/oracle-standby-database-error-ora-01157-cannot-identify-lock-data-file-201/qaa-p/9858275#M3538781</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-09T14:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle Standby Database Error: ORA-01157: cannot identify/lock data file 201</title>
      <link>https://community.sap.com/t5/technology-q-a/oracle-standby-database-error-ora-01157-cannot-identify-lock-data-file-201/qaa-p/9858276#M3538782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kishore,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;gt; I copied the file manually from primary to Standby server.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;There is no need to copy a temporary data file from primary database as it is temporary. You can just recreate / add it on standby site and proceed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;gt; I checked the dataguard configuration before and after the switchover through DGMGRL&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;So you are using Data Guard Broker. Unfortunately it seems like you did not follow the "Oracle 11.2 Data Guard Physical Standby Switchover Best Practices using the Broker" guide (MOS note #1305019.1), otherwise you would have noticed that you should check the following point before a switch over.&amp;nbsp; (&lt;EM&gt;"For each temporary tablespace on the standby, verify that temporary files associated with that tablespace on the primary database also exist on the standby database."&lt;/EM&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;gt; I observed that the problem with Temp file. When I checked in the standby system the file was not there.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Nothing unusual as temporary data files are not handled through redo apply mechanisms in the same way as regular data files, if the parameter standby_file_management is set to AUTO. You have to care about this on your own. Temporary data files are established during a RMAN duplicate operation, but afterwards you have to handle it on your own. If you created your standby database not through RMAN duplicate it is possible that even these initial temporary data files are missing as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The detailed handling procedure is described in MOS note #1514588.1 (Data Guard Physical Standby - Managing temporary tablespace tempfiles).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Nov 2013 11:55:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/oracle-standby-database-error-ora-01157-cannot-identify-lock-data-file-201/qaa-p/9858276#M3538782</guid>
      <dc:creator>stefan_koehler</dc:creator>
      <dc:date>2013-11-10T11:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle Standby Database Error: ORA-01157: cannot identify/lock data file 201</title>
      <link>https://community.sap.com/t5/technology-q-a/oracle-standby-database-error-ora-01157-cannot-identify-lock-data-file-201/qaa-p/9858277#M3538783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;You don't need to restart the database.&lt;/P&gt;&lt;P&gt;All you need to do is recreate the Temp file&lt;/P&gt;&lt;P&gt;ALTER TABLESPACE PSAPTEMP ADD TEMPFILE 'H:\ORACLE\ECP\SAPDATA6\TEMP_1\TEMP.DATA1' SIZE 7000M REUSE AUTOEXTEND OFF;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;RB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Nov 2013 19:43:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/oracle-standby-database-error-ora-01157-cannot-identify-lock-data-file-201/qaa-p/9858277#M3538783</guid>
      <dc:creator>Reagan</dc:creator>
      <dc:date>2013-11-10T19:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle Standby Database Error: ORA-01157: cannot identify/lock data file 201</title>
      <link>https://community.sap.com/t5/technology-q-a/oracle-standby-database-error-ora-01157-cannot-identify-lock-data-file-201/qaa-p/9858278#M3538784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i just restarted the database, the temp file is created automatically. problem solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks every one.&lt;/P&gt;&lt;P&gt;Kishore Ch&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 11:38:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/oracle-standby-database-error-ora-01157-cannot-identify-lock-data-file-201/qaa-p/9858278#M3538784</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-11T11:38:03Z</dc:date>
    </item>
  </channel>
</rss>

