版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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、 环境准备源端IP192.168.3.11DB 版本Oracle 11.2.0.4OS 主机名waterOS 版本R
11、edHat 7.6数据库实例名juiceJava 版本1.8.0需要工具autoupgrade.jar、19软件包3、 安装19c的软件创建目录 mkdir -p /u02/app/oracle/product/19.3.0.0/db_1 授权 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. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- fpga 网络协议书分析
- 客厅地毯清洁解决方案创新创业项目商业计划书
- 复古铁艺烛台创新创业项目商业计划书
- 垃圾发电预防性试验创新创业项目商业计划书
- 广播电视节目互动平台创新创业项目商业计划书
- 搪瓷制品生产效率提升创新创业项目商业计划书
- 2025年4月自考中级财务会计试题(+答案)
- 部编人教版六年级上册语文第11课《故宫博物院》教案
- 人教版(2024)八年级上册英语Unit 3语篇词汇和语境词汇练习题(无答案)
- 2025年机器人在养老服务中的社会接受度
- 解除代建合同协议书
- 车辆升级改装合同协议
- 第13课 东汉的兴衰 课件 初中历史统编版(2024)七年级上册
- 《思想道德与法治》课件-第一章 领悟人生真谛 把握人生方向
- 高性能计算应用的软件定义网络优化-全面剖析
- 骨科围术期血糖管理
- 平台与内容广告-品牌营销手册
- 博士组合物80问
- 粮食仓库建设标准
- 《市场调查与分析说》课件
- 啤酒厂筹建项目可行性研究报告
评论
0/150
提交评论