Time Zone
SQL> create table registry_backup as select * from registry$database;
SQL> INSERT into registry$database (platform_id, platform_name, edition, tz_version) VALUES ((select platform_id from v$database), (select platform_name from v$database),NULL,(select version from v$timezone_file));
1 row created.
SQL> select * from sys.registry$database;
PLATFORM_ID PLATFORM_NAME EDITION TZ_VERSION
----------- ------------------------------ ------------------------------ ----------
13 Linux x86 64-bit
13 Linux x86 64-bit 14
SQL> delete from sys.registry$database where TZ_VERSION is NULL;
1 row deleted.
SQL> select * from registry_backup;
PLATFORM_ID PLATFORM_NAME EDITION TZ_VERSION
----------- ------------------------------ ------------------------------ ----------
13 Linux x86 64-bit
SQL> commit;
Commit complete.
SQL> select * from sys.registry$database;
PLATFORM_ID PLATFORM_NAME EDITION TZ_VERSION
----------- ------------------------------ ------------------------------ ----------
13 Linux x86 64-bit 14
Timezone issue resolved with above solution.
--1
create table registry_backup as select * from registry$database;
--2
INSERT into registry$database (platform_id, platform_name, edition, tz_version) VALUES ((select platform_id from v$database), (select platform_name from v$database),NULL,(select version from v$timezone_file));
--3
delete from sys.registry$database where TZ_VERSION is NULL;
--4
commit;
--5
select * from sys.registry$database;
SQL> select * from sys.registry$database;
PLATFORM_ID PLATFORM_NAME EDITION TZ_VERSION
----------- ------------------------------ ------------------------------ ----------
13 Linux x86 64-bit
@$ORACLE_HOME/rdbms/admin/catalog.sql;
@$ORACLE_HOME/rdbms/admin/catproc.sql;
@$ORACLE_HOME/rdbms/admin/utlrp.sql
2017年9月23日 星期六
訂閱:
張貼留言 (Atom)
RHEL install EPEL
https://www.linuxtechi.com/install-epel-repo-on-rhel-system/ EPEL dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest...
-
下載 出處 下載網址: http://tinyurl.com/plodb56 Step 1 下載取得「Windows10TweakTool」並解壓縮,在壓縮出的「Windows10SettingTool.bat」上按一下滑鼠右鍵,點擊選單中的【以系統管理員身分...
-
' 呼叫 日期 eg 2月 14日 ==> 0214 ' 11:56 2005/3/9 ' CC.HSIEH 'dim dim strm,strd,strToday,stry call datt msgbox strToday ...
-
1 關掉DB isqlplusctl stop emctl stop dbconsole lsnrctl stop sqlplus / as sysdba SQL > shutdown immediate 2 備份DB HOME cdOH ...
沒有留言:
張貼留言