


版權(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)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 人美版八年級美術(shù)課外活動計(jì)劃
- 新能源項(xiàng)目建設(shè)工期確保措施
- 建筑施工安全生產(chǎn)總結(jié)范文
- 一年級數(shù)學(xué)課堂管理優(yōu)化計(jì)劃
- 可持續(xù)航空技術(shù)創(chuàng)新與應(yīng)用融資策略-洞察闡釋
- 綠色金融與銀行監(jiān)管服務(wù)行業(yè)可持續(xù)發(fā)展-洞察闡釋
- 綠色建筑施工組織計(jì)劃
- 版本控制方法在開源項(xiàng)目中的推廣策略-洞察闡釋
- 分布式賬本一致性維護(hù)-洞察闡釋
- 中學(xué)宿舍安全管理職責(zé)
- 承運(yùn)商KPI考核管理辦法2024年2月定稿
- T-ZZB 3669-2024 嵌裝滾花銅螺母
- 醫(yī)務(wù)人員廉潔從業(yè)培訓(xùn)課件
- 第十八屆“地球小博士”全國地理知識科普競賽題庫(附答案)
- 《智慧醫(yī)院建設(shè)指南》
- 新《民法典》知識競賽題庫附答案
- 《食管胃結(jié)合部癌》課件
- 駕駛員三級安全教育卡考試試卷(含公司級、部門級、車隊(duì)級)
- 油藏開發(fā)效果評價-洞察分析
- 中國假發(fā)行業(yè)供需態(tài)勢、競爭格局及投資前景分析報告(智研咨詢)
- 中考語文一輪專項(xiàng)復(fù)習(xí)《正確使用標(biāo)點(diǎn)符號》課件
評論
0/150
提交評論