签到成功

知道了

CNDBA社区CNDBA社区

Oracle 18c更新TIMEZONE版本

2018-07-12 17:10 2848 0 原创 Oracle 18c
作者: Expect-乐

首先从MOS上下载所需的升级脚本(文档 ID 1585343.1),从Oracle 11.2开始提供了自动升级的脚本,非常方便。

1 查看当前版本http://www.cndba.cn/Expect-le/article/2893http://www.cndba.cn/Expect-le/article/2893

SQL> SELECT version FROM v$timezone_file;

   VERSION

----------

       14

2 解压文件,执行检查脚本http://www.cndba.cn/Expect-le/article/2893

[oracle@cndba DBMS_DST_scriptsV1.9]$ llhttp://www.cndba.cn/Expect-le/article/2893

total 68

-rw-r--r-- 1 oracle oinstall  6294 Jan  8  2015 countstarTSTZ.sql

-rw-r--r-- 1 oracle oinstall  7213 Mar 17 18:30 countstatsTSTZ.sql

-rw-r--r-- 1 oracle oinstall 19502 Aug 22  2014 upg_tzv_apply.sql

-rw-r--r-- 1 oracle oinstall 31010 Aug 22  2014 upg_tzv_check.sql

a)         检查当前环境

SQL> @/software/DBMS_DST_scriptsV1.9/upg_tzv_check.sql

INFO: Starting with RDBMS DST update preparation.

INFO: NO actual RDBMS DST update will be done by this script.

INFO: If an ERROR occurs the script will EXIT sqlplus.

INFO: Doing checks for known issues ...

INFO: Database version is 18.0.0.0 .

INFO: Database RDBMS DST version is DSTv14 .

INFO: No known issues detected.

INFO: Now detecting new RDBMS DST version.

A prepare window has been successfully started.

INFO: Newest RDBMS DST version detected is DSTv31 .

INFO: Next step is checking all TSTZ data.http://www.cndba.cn/Expect-le/article/2893

INFO: It might take a while before any further output is seen ...

A prepare window has been successfully ended.

INFO: A newer RDBMS DST version than the one currently used is found.

INFO: Note that NO DST update was yet done.

INFO: Now run upg_tzv_apply.sql to do the actual RDBMS DST update.

INFO: Note that the upg_tzv_apply.sql script will

INFO: restart the database 2 times WITHOUT any confirmation or prompt.

b)        更新TIMEZONE版本

这里需要注意,执行该脚本会自动重启数据库两次。如下:

SQL> @/software/DBMS_DST_scriptsV1.9/upg_tzv_apply.sql

INFO: If an ERROR occurs the script will EXIT sqlplus.

INFO: The database RDBMS DST version will be updated to DSTv31 .http://www.cndba.cn/Expect-le/article/2893

WARNING: This script will restart the database 2 times

WARNING: WITHOUT asking ANY confirmation.

WARNING: Hit control-c NOW if this is not intended.

INFO: Restarting the database in UPGRADE mode to start the DST upgrade.http://www.cndba.cn/Expect-le/article/2893

INFO: Upgrading all non-SYS TSTZ data.

INFO: It might take time before any further output is seen ...

INFO: Do NOT start any application yet that uses TSTZ data!

INFO: Next is a list of all upgraded tables:

Table list: "APEX_050100"."WWV_FLOW_DEBUG_MESSAGES"

Number of failures: 0

Table list: "APEX_050100"."WWV_FLOW_DEBUG_MESSAGES2"

Number of failures: 0

Table list: "APEX_050100"."WWV_FLOW_FEEDBACK"

Number of failures: 0

Table list: "APEX_050100"."WWV_FLOW_FEEDBACK_FOLLOWUP"

Number of failures: 0

Table list: "APEX_050100"."WWV_FLOW_WORKSHEET_NOTIFY"

Number of failures: 0

Table list: "GSMADMIN_INTERNAL"."AQ$_CHANGE_LOG_QUEUE_TABLE_S"http://www.cndba.cn/Expect-le/article/2893

Number of failures: 0

Table list: "GSMADMIN_INTERNAL"."AQ$_CHANGE_LOG_QUEUE_TABLE_L"

Number of failures: 0

INFO: Total failures during update of TSTZ data: 0 .

An upgrade window has been successfully ended.

INFO: Your new Server RDBMS DST version is DSTv31 .

INFO: The RDBMS DST update is successfully finished.

http://www.cndba.cn/Expect-le/article/2893
http://www.cndba.cn/Expect-le/article/2893

INFO: Make sure to exit this sqlplus session.

INFO: Do not use it for timezone related selects.

3  检查版本

版本号已成功更新为31

SQL> SELECT version FROM v$timezone_file;

 VERSION

----------

       31

1 row selected.

版权声明:本文为博主原创文章,未经博主允许不得转载。

Time Zone 版本

用户评论
* 以下用户言论只代表其个人观点,不代表CNDBA社区的观点或立场
Expect-乐

Expect-乐

关注

Without the continuous bitter cold, there can be no fragrant plum blossom

  • 336
    原创
  • 6
    翻译
  • 100
    转载
  • 41
    评论
  • 访问:1572262次
  • 积分:1957
  • 等级:核心会员
  • 排名:第4名
精华文章
    最新问题
    查看更多+
    热门文章
      热门用户
      推荐用户
        Copyright © 2016 All Rights Reserved. Powered by CNDBA · 皖ICP备2022006297号-1·

        QQ交流群

        注册联系QQ