반응형

Oracle DB RU/RUR/Bundle Patch 중 12개월(1년)전 Patch를 Download 하려면 무조건 최신 RU/RUR/Bundle Patch로 Redirection을 한다고 함.

만약 12개월(1년)전 Patch가 필요하면 SR을 통해 Patch Download Password를 받고 Patch를 Download 해야 함.

그런데 바로 직전 Patch인 19.10(2021년 01월)Patch도 Download Password 요청 하고 있음

Master Note for Database Proactive Patch Program (문서 ID 888.1)
반응형
반응형

기존 환경 확인

[oracle@oel6 ~]$ env | grep SID
ORACLE_SID=DB11G
[oracle@oel6 ~]$

SQL> select NAME from v$database;
NAME
---------
DB11G
SQL> select INSTANCE from v$thread;
INSTANCE
------------
DB11G
SQL> show parameter db_name
NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
db_name                              string      DB11G
SQL> show parameter db_unique_name
NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
db_unique_name                       string      DB11G
SQL> show parameter instance_name
NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
instance_name                        string      DB11G

instance_name 파리미터 변경

pfile 생성 및 instance_name=DB11로 변경

SQL> create pfile='/u01/app/oracle/product/11.2.0/db_1/dbs/initDB11.ora' from spfile;
File created.
SQL> !ls -al /u01/app/oracle/product/11.2.0/db_1/dbs/initDB11.ora
-rw-r--r--. 1 oracle dba 809 May 20 09:06 /u01/app/oracle/product/11.2.0/db_1/dbs/initDB11.ora

변경된 InitParameter File로 DB 기동

[oracle@oel6 dbs]$ env | grep SID
ORACLE_SID=DB11G
[oracle@oel6 dbs]$ export ORACLE_SID=DB11
[oracle@oel6 dbs]$ env | grep SID
ORACLE_SID=DB11
[oracle@oel6 dbs]$ sqlplus "/as sysdba"
SQL> startup pfile='/u01/app/oracle/product/11.2.0/db_1/dbs/initDB11.ora';
ORACLE instance started.
Total System Global Area 1653518336 bytes
Fixed Size                  2253784 bytes
Variable Size            1006636072 bytes
Database Buffers          637534208 bytes
Redo Buffers                7094272 bytes
Database mounted.
Database opened.
SQL>

DB 기동 후 확인

[oracle@oel6 trace]$ ps -ef | grep pmon
oracle    2856     1  0 09:10 ?        00:00:00 ora_pmon_DB11
oracle    2934  2809  0 09:11 pts/1    00:00:00 grep pmon
[oracle@oel6 trace]$

SQL> select NAME from v$database;
NAME
---------
DB11G
SQL> select INSTANCE from v$thread;
INSTANCE
--------------------------------------------------------------------------------
DB11
SQL> show parameter db_name
NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
db_name                              string      DB11G
SQL> show parameter db_unique_name
NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
db_unique_name                       string      DB11G
SQL> show parameter instance_name
NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
instance_name                        string      DB11
SQL>

NID로 변경

변경전 환경 확인 및 DB Shutdown & startup mount

[oracle@oel6 dbs]$ env | grep SID
ORACLE_SID=DB11G
[oracle@oel6 dbs]$ ps -ef | grep pmon
oracle    3299     1  0 09:26 ?        00:00:00 ora_pmon_DB11G
oracle    3596  3264  0 09:59 pts/0    00:00:00 grep pmon
[oracle@oel6 dbs]$ sqlplus "/as sysdba"
SQL> shutdown immediate
[oracle@oel6 dbs]$ sqlplus "/as sysdba"
SQL> startup mount pfile='/u01/app/oracle/product/11.2.0/db_1/dbs/initDB11G.ora'
ORACLE instance started.
Total System Global Area 1653518336 bytes
Fixed Size                  2253784 bytes
Variable Size            1006636072 bytes
Database Buffers          637534208 bytes
Redo Buffers                7094272 bytes
Database mounted.
SQL>

NID 실행

[oracle@oel6 ~]$ env | grep SID
ORACLE_SID=DB11G
[oracle@oel6 ~]$ which nid
/u01/app/oracle/product/11.2.0/db_1/bin/nid
[oracle@oel6 ~]$ nid target=sys/welcome1 DBNAME=DB11 SETNAME=yes

DBNEWID: Release 11.2.0.4.0 - Production on Wed May 20 10:20:28 2020

Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

Connected to database DB11G (DBID=510499496)

Connected to server version 11.2.0

Control Files in database:
    /u01/app/oracle/oradata/DB11G/control01.ctl
    /u01/app/oracle/oradata/DB11G/control02.ctl

Change database name of database DB11G to DB11? (Y/[N]) => Y

Proceeding with operation
Changing database name from DB11G to DB11
    Control File /u01/app/oracle/oradata/DB11G/control01.ctl - modified
    Control File /u01/app/oracle/oradata/DB11G/control02.ctl - modified
    Datafile /u01/app/oracle/oradata/DB11G/system01.db - wrote new name
    Datafile /u01/app/oracle/oradata/DB11G/sysaux01.db - wrote new name
    Datafile /u01/app/oracle/oradata/DB11G/undotbs01.db - wrote new name
    Datafile /u01/app/oracle/oradata/DB11G/users01.db - wrote new name
    Datafile /u01/app/oracle/oradata/DB11G/temp01.db - wrote new name
    Control File /u01/app/oracle/oradata/DB11G/control01.ctl - wrote new name
    Control File /u01/app/oracle/oradata/DB11G/control02.ctl - wrote new name
    Instance shut down

Database name changed to DB11.
Modify parameter file and generate a new password file before restarting.
Succesfully changed database name.
DBNEWID - Completed succesfully.

[oracle@oel6 ~]$

[oracle@oel6 dbs]$ ps -ef | grep pmon
oracle    3822  3264  0 10:22 pts/0    00:00:00 grep pmon

NID를 실행하면 startup mount한 DB가 shutdown 된다.

OS 환경 변수 변경 및 DB 기동

[oracle@oel6 dbs]$ env | grep SID
ORACLE_SID=DB11G
[oracle@oel6 dbs]$ export ORACLE_SID=DB11
[oracle@oel6 dbs]$ env | grep SID
ORACLE_SID=DB11
[oracle@oel6 dbs]$ ps -ef | grep pmon
oracle    3822  3264  0 10:22 pts/0    00:00:00 grep pmon
[oracle@oel6 dbs]$ env | grep SID
ORACLE_SID=DB11G
[oracle@oel6 dbs]$ export ORACLE_SID=DB11
[oracle@oel6 dbs]$ env | grep SID
ORACLE_SID=DB11
[oracle@oel6 dbs]$ sqlplus "/as sysdba"
SQL*Plus: Release 11.2.0.4.0 Production on Wed May 20 10:23:49 2020
Copyright (c) 1982, 2013, Oracle.  All rights reserved.
Connected to an idle instance.
SQL> startup mount pfile='/u01/app/oracle/product/11.2.0/db_1/dbs/initDB11.ora';
ORACLE instance started.
Total System Global Area 1653518336 bytes
Fixed Size                  2253784 bytes
Variable Size            1006636072 bytes
Database Buffers          637534208 bytes
Redo Buffers                7094272 bytes
Database mounted.
SQL> alter database open;
Database altered.

DB 기동 후 변경사항 확인

SQL> select INSTANCE from v$thread;
INSTANCE
--------------------------------------------------------------------------------
DB11
SQL> show parameter db_name
NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
db_name                              string      DB11
SQL> show parameter db_unique_name
NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
db_unique_name                       string      DB11
SQL> show parameter instance_name
NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
instance_name                        string      DB11
반응형
반응형

Long Term Release

Oracle Database Long Term Release는 새로운 릴리스로의 빈번한 업그레이드로 혜택을받는 사용 사례에 이상적입니다. 장기 릴리스는 최고 수준의 안정성과 가장 긴 오류 수정 지원을 제공합니다. 이 릴리스에는 5 년의 프리미어 지원과 3 년의 연장 지원이 있습니다. Extended Support와 결합 된 고객은 일반적으로 하나의 장기 릴리스에서 다음 장기 릴리스로 업그레이드하는 데 거의 4 년이 걸립니다.

Innovation Release

Oracle Database Long Term Release간에 Oracle은 많은 개선 사항과 새로운 기능이 포함 된 Oracle Database Innovation Release를 제공합니다. Innovation Release는 고객이 첨단 기술을 지속적으로 사용하여 새로운 응용 프로그램을 신속하게 개발 또는 배포하거나 기존 응용 프로그램을 확장 할 수 있도록 설계되었습니다. Innovation Release 지원에는 2 년간의 프리미어 지원이 포함되지만 연장 지원은 없습니다. 2 년 이내에 최신 릴리스로 업그레이드하는 것이 배포 계획에 포함되는 경우 생산 워크로드는 Innovation Release에 배포 할 수 있습니다.

데이터베이스 릴리즈 일정 (문서 ID 2460719.1)
Release Schedule of Current Database Releases (문서 ID 742060.1)

 

반응형

+ Recent posts