oracle升級后數(shù)據(jù)文件路徑變?yōu)榇髮?/h1>

進行數(shù)據(jù)文件維護時,發(fā)現(xiàn)數(shù)據(jù)文件的名稱存在大小寫差異。

目前創(chuàng)新互聯(lián)公司已為近千家的企業(yè)提供了網(wǎng)站建設、域名、虛擬空間、網(wǎng)站運營、企業(yè)網(wǎng)站設計、甘南網(wǎng)站維護等服務,公司將堅持客戶導向、應用為本的策略,正道將秉承"和諧、參與、激情"的文化,與客戶和合作伙伴齊心協(xié)力一起成長,共同發(fā)展。

在某個時間點以后創(chuàng)建的數(shù)據(jù)文件,名稱中的db_name和“datafile”都是大寫,而以前都是小寫。

oracle升級后數(shù)據(jù)文件路徑變?yōu)榇髮?></p><p>查詢官方文檔
Directory for Datafiles and Controlfiles Become Uppercase in 18.3 DBCA. (Doc ID 2542927.1)</p><p>在18.3.0.0版本開始,內部設計上的變化導致了此問題。</p><p>同時還指向一個internal的文檔,無權限瀏覽:</p><p>BUG:29294715
 - 18.3 DBCA UPPERCASING DB_UNIQUE_NAME FOR DIRECTORY OF DATA FILES AND CONTROL FILES.</p><p>進一步分析發(fā)現(xiàn),我們將數(shù)據(jù)庫升級到19c,并將compatible由11.2.0.4改為19.3.0.0后,數(shù)據(jù)文件路徑就改為大寫了。</p><p>使用文件系統(tǒng)作為存儲介質的數(shù)據(jù)庫未出現(xiàn)此問題。</p><p>Directory for Datafiles and Controlfiles Become Uppercase in 18.3 DBCA. (Doc ID 2542927.1)</p><h3>APPLIES TO:</h3><p>Oracle Database Configuration Assistant - Version 18.3.0.0.0 and later<br/>Information in this document applies to any platform.
</p><h3>SYMPTOMS</h3><p>When you specified lowercase "DB_UNIQUE_NAME" variable(for example:orcl) in DB:18.3 DBCA to create DB instance<br/>after the instance be created, you will find the directory of data files and control files contains uppercase DB_UNIQUE_NAME which you specified.<br/>-----------------------------<br/>/u01/app/oracle/oradata/ORCL<br/>-----------------------------<br/>This result is different from the previous version(DB:12.2/DB:12.1).<br/></p><p>If we save the DBCA scripts which can be generated by DBCA, we could see that even if you specified lowercase DB_UNIQUE_NAME in DBCA, <br/>the script is to create uppercase DB_UNIQUE_NAME in the directory path of data files and control files.</p><div>$ pwd<br/>../..oracle/admin/orcl/scripts<br/> scripts]$ grep "ORCL" *.sql<br/>cloneDBCreation.sql:LOGFILE GROUP 1<br/>('...oradata/ORCL/redo01.log') SIZE 200M,<br/>cloneDBCreation.sql:GROUP 2 ('..oradata/ORCL/redo02.log') SIZE<br/>200M,<br/>cloneDBCreation.sql:GROUP 3 ('../oradata/ORCL/redo03.log') SIZE<br/>200M RESETLOGS;<br/>cloneDBCreation.sql:LOGFILE GROUP 1<br/>('..oradata/ORCL/redo01.log') SIZE 200M,<br/>cloneDBCreation.sql:GROUP 2 ('..oradata/ORCL/redo02.log') SIZE<br/>200M,<br/>...<br/>plug_PDBSeed.sql:host mkdir -p .../oradata/ORCL/pdbseed;<br/>plug_PDBSeed.sql:host mkdir -p .../oracle/oradata/ORCL/pdbseed;<br/>...<br/>rmanRestoreDatafiles.sql:set newname for datafile 4 to  <br/>'..oradata/ORCL/undotbs01.dbf' ;<br/>rmanRestoreDatafiles.sql:set newname for datafile 7 to  <br/>'...oradata/ORCL/users01.dbf' ;</div><h3>CHANGES</h3><p>Using DB:18.3 DBCA to create database instance and specified lowercase "DB_UNIQUE_NAME" variable.</p><h3>CAUSE</h3><p>It is a limitation according to current design.</p><h3>SOLUTION</h3><p>The following method can avoid this issue.<br/><br/>STEP 1: Generate the DBCA Scripts.<br/>STEP 2: Change the uppercase DB_UNIQUE_NAME to lowercase DB_UNIQUE_NAME manually.<br/>STEP 3: Execute these scripts to create DB instance.</p>            <p>
                網(wǎng)站題目:<a href=oracle升級后數(shù)據(jù)文件路徑變?yōu)榇髮?/a>
轉載注明:http://www.muchs.cn/article24/gehece.html

成都網(wǎng)站建設公司_創(chuàng)新互聯(lián),為您提供全網(wǎng)營銷推廣、動態(tài)網(wǎng)站、微信公眾號外貿建站、網(wǎng)站收錄、移動網(wǎng)站建設

廣告

聲明:本網(wǎng)站發(fā)布的內容(圖片、視頻和文字)以用戶投稿、用戶轉載內容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內容未經(jīng)允許不得轉載,或轉載時需注明來源: 創(chuàng)新互聯(lián)

成都定制網(wǎng)站網(wǎng)頁設計