Database+AutoUpgrade_第1頁
Database+AutoUpgrade_第2頁
Database+AutoUpgrade_第3頁
已閱讀5頁,還剩2頁未讀 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)

文檔簡介

1、Database AutoUpgrade1、 官方文檔示例1.。Example: To understand how this works, suppose you run AutoUpgrade as the user oracle, for which the following environment variables are set:global.autoupg_log_dir=/scratch/upglogsautoupgrade1.source_home=/scratch/1124autoupgrade1.target_home=/scratch/193autoupgrade1.

2、sid=salesautoupgrade2.source_home=/scratch/122autoupgrade2.target_home=/scratch/193autoupgrade2.sid=employees2.ExamplesExample of running the create_sample_file parameter with the config clause:oracleexample $ java -jar autoupgrade.jar -create_sample_file configCreated sample con

3、figuration file /home/oracle/sample_config.cfgDescriptionThe config.mode clause takes two standard arguments:The configuration file name, and optionally, path, as represented by config-fileThe mode type, using the argument -mode mode, where mode is the processing mode used with the configuration fil

4、e. The mode argument takes the following options:analyze: analyzes the databasefixups: corrects errors in the source databasedeploy: performs all the operations on the database, from analyze to post upgradeupgrade: performs the upgrade on a target Oracle home.Usage NotesConsole OptionDescriptionexit

5、Closes and exits from the console.helpDisplays the console command helplsj (-r|-f-p|-e)|-n numberLists jobs by status, up to the number of jobs you specify with the numeric value number. You can use the following flags:-f: (Optional) Filter by finished jobs.-r: (Optional) Filter by running

6、 jobs.-e: (Optional) Filter by jobs with errors.-p: (Optional) Filter by jobs in preparation.-n number: (Required) Number of jobs to display, specified by integer value.lsrDisplays the restoration queue.lsaDisplays the abort queue.tasksDisplays the tasks that are running.clearClears the termina

7、l display.resume -job numberRestarts from a previous job that was running, specified by a numeric value (number) for the job.status -job number|-longLists the status of a particular job, specified by a numeric value (-job number. When run with -long, AutoUpgrade runs the command

8、in verbose mode.restore -job number forceRestores the database in the AutoUpgrade job specified by the integer value number to its state before starting theupgrade.When run with the force flag, AutoUpgrade restores the database even if the job is not in an abort or erro

9、r state.restore all_failedRestores all failed jobs to their previous state before the upgrade started.logsDisplays all log file locations.abort -job numberAborts the job specified by the numeric value that you provide (number).hist/numberDisplays the console command-line history, and takes the

10、option to run a command again, depending on the flat with which you run it:Flags:/ Runs the last command again./ number Runs the command in the history log specified by the command line number that you specify.2、 環(huán)境準(zhǔn)備源端IP192.168.3.11DB 版本Oracle 11.2.0.4OS 主機(jī)名waterOS 版本R

11、edHat 7.6數(shù)據(jù)庫實(shí)例名juiceJava 版本1.8.0需要工具autoupgrade.jar、19軟件包3、 安裝19c的軟件創(chuàng)建目錄 mkdir -p /u02/app/oracle/product/19.3.0.0/db_1 授權(quán) chown -R oracle:oinstall /u02/安裝軟件 ./runInstaller4、 配置config.cfgvi config.cfgglobal.autoupg_log_dir=/home/oracle/logsupg1.dbname=juiceupg1.start_time=NOWupg1.source_home=/u01/or

12、acleupg1.target_home=/u02/app/oracle/product/19.3.0.0/db_1upg1.sid=juiceupg1.log_dir=/home/oracle/logsupg1.upgrade_node=localhostupg1.target_version=195、 analyzes the databasejava -jar autoupgrade.jar -config /home/oracle/config.cfg -mode analyze6、 開始分析到升級 java -jar autoupgrade.jar -config /home/oracle/config.cfg -mode deploy7、 修改一下.bash_profile 問題一SQL> startupORACLE instance started.Total System Global Area 768294912 bytesFixed Size 2257192 b

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論