2024. 12. 9. 20:39 오라클

dbca 생성 테스트


- dbca 이용 DB 생성 테스트

silent 모드에서 Template 값이 우선인지, 명시적으로 지정한 값이 우선이지 테스트함.

현재 Template 인 /u01/app/oracle/product/19.0.0.0/dbhome_1/assistants/dbca/templates/OLTP_X2_2_190000.dbt 

의 값은 기본 <characterSet>AL32UTF8</characterSet> 임

명시적으로 -characterset KO16MSWIN949 값으로 지정하고 생성해 봄.

어떤 것으로 생성될까?

[EXA1]oracle@db01:/home/oracle# ORACLE_SID=ORCL;export ORACLE_SID;ORACLE_HOME=/u01/app/oracle/product/19.0.0.0/dbhome_1;export ORACLE_HOME;export SKIP_CVU_CHECK=true;PATH=$PATH:/u01/app/oracle/product/19.0.0.0/dbhome_1/bin:/u01/app/oracle/product/19.0.0.0/dbhome_1;export PATH;/u01/app/oracle/product/19.0.0.0/dbhome_1/bin/dbca -createDatabase -silent  -gdbName ORCL -sid ORCL -sysPassword XXXXX -systemPassword XXXXX -databaseType MULTIPURPOSE  -responseFile NO_VALUE  -dvConfiguration false  -olsConfiguration false  -registerWithDirService false  -asmSysPassword XXXXX -asmsnmpPassword XXXXX -storageType ASM  -diskGroupName +DATAC1 -recoveryGroupName +RECOC1 -nodelist db01,db02 -ignorePreReqs  -characterset KO16MSWIN949 -templateName /u01/app/oracle/product/19.0.0.0/dbhome_1/assistants/dbca/templates/OLTP_X2_2_190000.dbt -runCVUChecks false -emConfiguration NONE

[WARNING] [DBT-06801] Specified Fast Recovery Area size (140,000 MB) is less than the recommended value.
   CAUSE: Fast Recovery Area size should at least be three times the database size (91,698 MB).
   ACTION: Specify Fast Recovery Area Size to be at least three times the database size.
[WARNING] [DBT-11153] Character set specified (KO16MSWIN949) is different from that of the character set (AL32UTF8) in the template. Character set mismatch may cause data truncation.
   ACTION: Make sure the character sets uses the same encoding scheme.
[WARNING] [DBT-06801] Specified Fast Recovery Area size (140,000 MB) is less than the recommended value.
   CAUSE: Fast Recovery Area size should at least be three times the database size (99,890 MB).
   ACTION: Specify Fast Recovery Area Size to be at least three times the database size.
Prepare for db operation
8% complete
Creating and starting Oracle instance
10% complete
11% complete
15% complete
Creating database files
16% complete
17% complete
23% complete
Creating data dictionary views
25% complete
30% complete
31% complete
32% complete
37% complete
39% complete
42% complete
46% complete
Creating cluster database views
48% complete
62% complete
Completing Database Creation
65% complete
68% complete
69% complete
Executing Post Configuration Actions
92% complete
Running Custom Scripts
100% complete
Database creation complete. For details check the logfiles at:
 /u01/app/oracle/cfgtoollogs/dbca/ORCL.
Database Information:
Global Database Name:ORCL
System Identifier(SID) Prefix:ORCL
Look at the log file "/u01/app/oracle/cfgtoollogs/dbca/ORCL/ORCL1.log" for further details.

[EXA1]oracle@db01:/home/oracle# export ORACLE_SID=ORCL1
[ORCL1]oracle@db01:/home/oracle# sqlplus "/as sysdba"

SQL*Plus: Release 19.0.0.0.0 - Production on Mon Dec 9 20:10:35 2024
Version 19.25.0.0.0

Copyright (c) 1982, 2024, Oracle.  All rights reserved.

Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.25.0.0.0

SQL> set linesize 120 
SQL> col parameter for A30
SQL> col value     for A20
SQL> select parameter,value from  NLS_DATABASE_PARAMETERS where parameter like '%CHARACTERSET';

PARAMETER                      VALUE
------------------------------ --------------------
NLS_NCHAR_CHARACTERSET         AL16UTF16
NLS_CHARACTERSET               KO16MSWIN949

결과 : 명시적으로 지정한 값으로 생성됨.

 

- 테스트 후 삭제

[ORCL]oracle@db01:/home/oracle# dbca -silent -deleteDatabase -sourceDB ORCL -sysDBAUserName sys -sysDBAPassword XXXXX
[WARNING] [DBT-19202] The Database Configuration Assistant will delete the Oracle instances and datafiles for your database. All information in the database will be destroyed.
Prepare for db operation
32% complete
Connecting to database
39% complete
42% complete
45% complete
48% complete
52% complete
55% complete
58% complete
65% complete
Updating network configuration files
68% complete
Deleting instances and datafiles
77% complete
87% complete
97% complete
100% complete
Database deletion completed.
Look at the log file "/u01/app/oracle/cfgtoollogs/dbca/ORCL/ORCL2.log" for further details.

Posted by pat98

 

조국 전 법무장관의 딸이자 한때 의사였던 조민 님의 책이다.

 

정치적 프레임 공격으로 한 가족이 무너졌음에도

이렇게 의연하다니 참으로 명민한 처자이다.

 

환경적인 면도 있지만 성격자체가 긍정적이고 밝고,

주위 사람들에게 에너지를 충전해주는 스타일이다.

 

지금은 결혼도 했고 유튜버로서의 삶을 

살고 있는데 응원하면서 조용히 구독 버튼을 눌러본다.

 

Posted by pat98

 

팻메시니 옹의 어쿠스틱 기타 앨범이 2024년 7월에 발매 되었다.

 

Custom 제작한 바리톤 나일론 기타로 연주하여 음의 폭이 넓다고 한다.

 

한 동안 플레이리스트에 넣고 반복 청취예정..

 

01. MoonDial (Metheny) 6:23
02. La Crosse (Metheny) 4:48
03. You’re Everything (Corea/Potter) 2:38
04. Here, There and Everywhere (Lennon/McCartney) 4:23
05. We Can’t See It, But It’s There (Metheny) 2:58
06. Falcon Love (Metheny) 7:13
07. Everything Happens To Me/Somewhere (Dennis/Adair; Bernstein/Sondheim) 7:11
08. Londonderry Air (Traditional) 5:03
09. This Belongs To You (Metheny) 5:28
10. Shōga (Metheny) 3:14
11. My Love And I (Raskin/Mercer) 3:50
12. Angel Eyes (Dennis/Brent) 6:56
13. MoonDial (epilogue) (Metheny) 1:13

 

 

Posted by pat98

23ai SYSTEM, SYSAUX, USERS Big tablespace 사용하지 않기

23ai 는 Default Type 이 Big File 이라 초기생성시부터 Small file 로 생성가능한지 테스트 진행..

현재 상태는 아래와 같다.
SQL> select TABLESPACE_NAME, BIGFILE from DBA_TABLESPACES;

TABLESPACE_NAME                BIG
------------------------------ ---
SYSTEM                         YES
SYSAUX                         YES
UNDOTBS1                       NO
TEMP                           NO
USERS                          YES


SQL> alter session set container=PDB1;

Session altered.

SQL> select TABLESPACE_NAME, BIGFILE from DBA_TABLESPACES;

TABLESPACE_NAME                BIG
------------------------------ ---
SYSTEM                         YES
SYSAUX                         YES
UNDOTBS1                       NO
TEMP                           NO
USERS                          YES

CDB/PDB 모두 Big File 이다.

1. 우선 기본 Template 에서 아래 부분을 Big file 로 지정된 부분을 모두 false 로 변경

vi /u01/app/oracle/product/23.0.0.0/dbhome_1/assistants/dbca/template/New_Database.dbt

<DatabaseTemplate name="New Database" description="" version="23.0.0.0.0">
   <CommonAttributes>
      <option name="OMS" value="false" includeInPDBs="false"/>
      <option name="JSERVER" value="true" includeInPDBs="true"/>
      <option name="SPATIAL" value="true" includeInPDBs="true"/>
      <option name="ORACLE_TEXT" value="true" includeInPDBs="true">
         <tablespace id="SYSAUX"/>
      </option>
      <option name="CWMLITE" value="true" includeInPDBs="true">
         <tablespace id="SYSAUX"/>
      </option>
      <option name="SAMPLE_SCHEMA" value="false" includeInPDBs="false"/>
      <option name="DV" value="false" includeInPDBs="false"/>
   </CommonAttributes>
   <Variables/>
   <CustomScripts Execute="false"/>
   <InitParamAttributes>
      <InitParams>
         <initParam name="db_block_size" value="8" unit="KB"/>
         <initParam name="open_cursors" value="300"/>
         <initParam name="undo_tablespace" value="UNDOTBS1"/>
         <initParam name="control_files" value="(&quot;{ORACLE_BASE}/oradata/{DB_UNIQUE_NAME}/control01.ctl&quot;, &quot;{ORACLE_BASE}/fast_recovery_area/{DB_UNIQUE_NAME}/control02.ctl&quot;)"/>
         
         <initParam name="compatible" value="23.6.0"/>
         <initParam name="diagnostic_dest" value="{ORACLE_BASE}"/>
         <initParam name="remote_login_passwordfile" value="EXCLUSIVE"/>
         <initParam name="dispatchers" value="(PROTOCOL=TCP) (SERVICE={SID}XDB)"/>
      </InitParams>
      <MiscParams>
         <databaseType>MULTIPURPOSE</databaseType>
         <maxUserConn>20</maxUserConn>
         <percentageMemTOSGA>40</percentageMemTOSGA>
         <archiveLogMode>false</archiveLogMode>
         <initParamFileName>{ORACLE_BASE}/admin/{DB_UNIQUE_NAME}/pfile/init.ora</initParamFileName>
      </MiscParams>
      <SPfile useSPFile="true">{ORACLE_HOME}/dbs/spfile{SID}.ora</SPfile>
   </InitParamAttributes>
   <StorageAttributes>
      <ControlfileAttributes id="Controlfile">
         <maxDatafiles>100</maxDatafiles>
         <maxLogfiles>16</maxLogfiles>
         <maxLogMembers>3</maxLogMembers>
         <maxLogHistory>1</maxLogHistory>
         <maxInstances>8</maxInstances>
         <image name="control01.ctl" filepath="{ORACLE_BASE}/oradata/{DB_UNIQUE_NAME}/"/>
         <image name="control02.ctl" filepath="{ORACLE_BASE}/fast_recovery_area/{DB_UNIQUE_NAME}/"/>
        
      </ControlfileAttributes>
      <DatafileAttributes id="{ORACLE_BASE}/oradata/{DB_UNIQUE_NAME}/sysaux01.dbf">
         <tablespace>SYSAUX</tablespace>
         <temporary>false</temporary>
         <online>true</online>
         <status>0</status>
         <size unit="MB">550</size>
         <reuse>true</reuse>
         <autoExtend>true</autoExtend>
         <increment unit="KB">10240</increment>
         <maxSize unit="MB">-1</maxSize>
      </DatafileAttributes>
      <DatafileAttributes id="{ORACLE_BASE}/oradata/{DB_UNIQUE_NAME}/users01.dbf">
         <tablespace>USERS</tablespace>
         <temporary>false</temporary>
         <online>true</online>
         <status>0</status>
         <size unit="MB">7</size>
         <reuse>true</reuse>
         <autoExtend>true</autoExtend>
         <increment unit="KB">1280</increment>
         <maxSize unit="MB">-1</maxSize>
      </DatafileAttributes>
      <DatafileAttributes id="{ORACLE_BASE}/oradata/{DB_UNIQUE_NAME}/system01.dbf">
         <tablespace>SYSTEM</tablespace>
         <temporary>false</temporary>
         <online>true</online>
         <status>0</status>
         <size unit="MB">700</size>
         <reuse>true</reuse>
         <autoExtend>true</autoExtend>
         <increment unit="KB">10240</increment>
         <maxSize unit="MB">-1</maxSize>
      </DatafileAttributes>
      <DatafileAttributes id="{ORACLE_BASE}/oradata/{DB_UNIQUE_NAME}/temp01.dbf">
         <tablespace>TEMP</tablespace>
         <temporary>false</temporary>
         <online>true</online>
         <status>0</status>
         <size unit="MB">20</size>
         <reuse>true</reuse>
         <autoExtend>true</autoExtend>
         <increment unit="KB">640</increment>
         <maxSize unit="MB">-1</maxSize>
      </DatafileAttributes>
      <DatafileAttributes id="{ORACLE_BASE}/oradata/{DB_UNIQUE_NAME}/undotbs01.dbf">
         <tablespace>UNDOTBS1</tablespace>
         <temporary>false</temporary>
         <online>true</online>
         <status>0</status>
         <size unit="MB">200</size>
         <reuse>true</reuse>
         <autoExtend>true</autoExtend>
         <increment unit="KB">5120</increment>
         <maxSize unit="MB">-1</maxSize>
      </DatafileAttributes>
      <TablespaceAttributes id="SYSAUX">
         <online>true</online>
         <offlineMode>1</offlineMode>
         <readOnly>false</readOnly>
         <temporary>false</temporary>
         <defaultTemp>false</defaultTemp>
         <undo>false</undo>
         <local>true</local>
         <blockSize>-1</blockSize>
         <allocation>1</allocation>
         <uniAllocSize unit="KB">-1</uniAllocSize>
         <initSize unit="KB">64</initSize>
         <increment unit="KB">64</increment>
         <incrementPercent>50</incrementPercent>
         <minExtends>1</minExtends>
         <maxExtends>4096</maxExtends>
         <minExtendsSize unit="KB">64</minExtendsSize>
         <logging>true</logging>
         <recoverable>false</recoverable>
         <maxFreeSpace>0</maxFreeSpace>
         <bigfile>false</bigfile>
         <datafilesList>
            <TablespaceDatafileAttributes id="{ORACLE_BASE}/oradata/{DB_UNIQUE_NAME}/sysaux01.dbf"/>
         </datafilesList>
      </TablespaceAttributes>
      <TablespaceAttributes id="USERS">
         <online>true</online>
         <offlineMode>1</offlineMode>
         <readOnly>false</readOnly>
         <temporary>false</temporary>
         <defaultTemp>false</defaultTemp>
         <undo>false</undo>
         <local>true</local>
         <blockSize>-1</blockSize>
         <allocation>1</allocation>
         <uniAllocSize unit="KB">-1</uniAllocSize>
         <initSize unit="KB">128</initSize>
         <increment unit="KB">128</increment>
         <incrementPercent>0</incrementPercent>
         <minExtends>1</minExtends>
         <maxExtends>4096</maxExtends>
         <minExtendsSize unit="KB">128</minExtendsSize>
         <logging>true</logging>
         <recoverable>false</recoverable>
         <maxFreeSpace>0</maxFreeSpace>
         <bigfile>false</bigfile>
         <datafilesList>
            <TablespaceDatafileAttributes id="{ORACLE_BASE}/oradata/{DB_UNIQUE_NAME}/users01.dbf"/>
         </datafilesList>
      </TablespaceAttributes>
      <TablespaceAttributes id="SYSTEM">
         <online>true</online>
         <offlineMode>1</offlineMode>
         <readOnly>false</readOnly>
         <temporary>false</temporary>
         <defaultTemp>false</defaultTemp>
         <undo>false</undo>
         <local>true</local>
         <blockSize>-1</blockSize>
         <allocation>3</allocation>
         <uniAllocSize unit="KB">-1</uniAllocSize>
         <initSize unit="KB">64</initSize>
         <increment unit="KB">64</increment>
         <incrementPercent>50</incrementPercent>
         <minExtends>1</minExtends>
         <maxExtends>-1</maxExtends>
         <minExtendsSize unit="KB">64</minExtendsSize>
         <logging>true</logging>
         <recoverable>false</recoverable>
         <maxFreeSpace>0</maxFreeSpace>
         <bigfile>false</bigfile>
         <datafilesList>
            <TablespaceDatafileAttributes id="{ORACLE_BASE}/oradata/{DB_UNIQUE_NAME}/system01.dbf"/>
         </datafilesList>
      </TablespaceAttributes>
      <TablespaceAttributes id="TEMP">
         <online>true</online>
         <offlineMode>1</offlineMode>
         <readOnly>false</readOnly>
         <temporary>true</temporary>
         <defaultTemp>true</defaultTemp>
         <undo>false</undo>
         <local>true</local>
         <blockSize>-1</blockSize>
         <allocation>1</allocation>
         <uniAllocSize unit="KB">-1</uniAllocSize>
         <initSize unit="KB">64</initSize>
         <increment unit="KB">64</increment>
         <incrementPercent>0</incrementPercent>
         <minExtends>1</minExtends>
         <maxExtends>0</maxExtends>
         <minExtendsSize unit="KB">64</minExtendsSize>
         <logging>true</logging>
         <recoverable>false</recoverable>
         <maxFreeSpace>0</maxFreeSpace>
         <bigfile>false</bigfile>
         <datafilesList>
            <TablespaceDatafileAttributes id="{ORACLE_BASE}/oradata/{DB_UNIQUE_NAME}/temp01.dbf"/>
         </datafilesList>
      </TablespaceAttributes>
      <TablespaceAttributes id="UNDOTBS1">
         <online>true</online>
         <offlineMode>1</offlineMode>
         <readOnly>false</readOnly>
         <temporary>false</temporary>
         <defaultTemp>false</defaultTemp>
         <undo>true</undo>
         <local>true</local>
         <blockSize>-1</blockSize>
         <allocation>1</allocation>
         <uniAllocSize unit="KB">-1</uniAllocSize>
         <initSize unit="KB">512</initSize>
         <increment unit="KB">512</increment>
         <incrementPercent>50</incrementPercent>
         <minExtends>8</minExtends>
         <maxExtends>4096</maxExtends>
         <minExtendsSize unit="KB">512</minExtendsSize>
         <logging>true</logging>
         <recoverable>false</recoverable>
         <maxFreeSpace>0</maxFreeSpace>
         <bigfile>false</bigfile>
         <datafilesList>
            <TablespaceDatafileAttributes id="{ORACLE_BASE}/oradata/{DB_UNIQUE_NAME}/undotbs01.dbf"/>
         </datafilesList>
      </TablespaceAttributes>
      <RedoLogGroupAttributes id="1">
         <reuse>false</reuse>
         <fileSize unit="KB">204800</fileSize>
         <Thread>1</Thread>
         <member ordinal="0" memberName="redo01.log" filepath="{ORACLE_BASE}/oradata/{DB_UNIQUE_NAME}/"/>
      </RedoLogGroupAttributes>
      <RedoLogGroupAttributes id="2">
         <reuse>false</reuse>
         <fileSize unit="KB">204800</fileSize>
         <Thread>1</Thread>
         <member ordinal="0" memberName="redo02.log" filepath="{ORACLE_BASE}/oradata/{DB_UNIQUE_NAME}/"/>
      </RedoLogGroupAttributes>
      <RedoLogGroupAttributes id="3">
         <reuse>false</reuse>
         <fileSize unit="KB">204800</fileSize>
         <Thread>1</Thread>
         <member ordinal="0" memberName="redo03.log" filepath="{ORACLE_BASE}/oradata/{DB_UNIQUE_NAME}/"/>
      </RedoLogGroupAttributes>
   </StorageAttributes>
</DatabaseTemplate>

2. 스크립트를 실행해서 /u01/app/oracle/admin/TESTC/scripts/TESTC.sh

Database 를 생성

3. Database 생성시 많이 오래 걸림....1시간 30분 정도

4. 완료가 되면 확인을 해 보자.

[TESTC]oracle@23ai:/home/oracle# ss

SQL*Plus: Release 23.0.0.0.0 - for Oracle Cloud and Engineered Systems on Fri Nov 8 12:07:09 2024
Version 23.6.0.24.10

Copyright (c) 1982, 2024, Oracle.  All rights reserved.


Connected to:
Oracle Database 23ai Enterprise Edition Release 23.0.0.0.0 - for Oracle Cloud and Engineered Systems
Version 23.6.0.24.10

SQL>  select TABLESPACE_NAME, BIGFILE from DBA_TABLESPACES;

TABLESPACE_NAME                BIG
------------------------------ ---
SYSTEM                         NO
SYSAUX                         NO
UNDOTBS1                       NO
TEMP                           NO
USERS                          NO

SQL> select instance_name from v$instance;

INSTANCE_NAME
----------------
TESTC

SQL> alter session set container=TESTP;
Session altered.

SQL> show pdbs

    CON_ID CON_NAME                       OPEN MODE  RESTRICTED
---------- ------------------------------ ---------- ----------
         3 TESTP                          READ WRITE NO

SQL> select TABLESPACE_NAME, BIGFILE from DBA_TABLESPACES;

TABLESPACE_NAME                BIG
------------------------------ ---
SYSTEM                         NO
SYSAUX                         NO
UNDOTBS1                       NO
TEMP                           NO
USERS                          NO


SQL> set lines 200 pages 1000
SQL> col property_name for a20
SQL> col property_value for a20
SQL> col description for a50
SQL> select * from database_properties where property_name = 'DEFAULT_TBS_TYPE';

PROPERTY_NAME        PROPERTY_VALUE       DESCRIPTION
-------------------- -------------------- --------------------------------------------------
DEFAULT_TBS_TYPE     SMALLFILE            Default tablespace type

SQL> alter session set container=TESTP;

Session altered.

SQL> set lines 200 pages 1000
SQL> col property_name for a20
SQL> col property_value for a20
SQL> col description for a50
SQL> select * from database_properties where property_name = 'DEFAULT_TBS_TYPE';

PROPERTY_NAME        PROPERTY_VALUE       DESCRIPTION
-------------------- -------------------- --------------------------------------------------
DEFAULT_TBS_TYPE     SMALLFILE            Default tablespace type


CDB/PDB 모두 Small File 로 생성되었다.

- 끝 -

Posted by pat98

23ai RU 10월패치 23.6.0.24.10(37037086) 적용 테스트

- OPatch Version 은 가장 최신인 12.2.0.1.44 필요
- 중간에 로그를 살펴보면 여유공간으로 /u01 엔진영역에 12G 정도가 더 필요하다.
- 소요시간은 5분 25초 소요

[Nov 4, 2024 1:17:16 PM] [INFO]     Heap in use : 6 MB
                                    Total memory: 184 MB
                                    Free memory : 177 MB
                                    Max memory  : 3072 MB
[Nov 4, 2024 1:17:16 PM] [INFO]     Oracle Home       : /u01/app/oracle/product/23.0.0.0/dbhome_1
                                    Central Inventory : /u01/app/oraInventory
                                       from           : /u01/app/oracle/product/23.0.0.0/dbhome_1/oraInst.loc 
                                   OPatch version    : 12.2.0.1.44
                                    OUI version       : 12.2.0.9.0
                                    OUI location      : /u01/app/oracle/product/23.0.0.0/dbhome_1/oui
                                    Log file location : /u01/app/oracle/product/23.0.0.0/dbhome_1/cfgtoollogs/opatch/opatch2024-11-04_13-17-15PM_1.log
[Nov 4, 2024 1:17:16 PM] [INFO]     Patch history file: /u01/app/oracle/product/23.0.0.0/dbhome_1/cfgtoollogs/opatch/opatch_history.txt
[Nov 4, 2024 1:17:18 PM] [INFO]     [OPSR-TIME] Loading raw inventory
[Nov 4, 2024 1:17:18 PM] [INFO]     [OPSR-MEMORY] Loaded all components from inventory. Heap memory in use: 16 (MB)
[Nov 4, 2024 1:17:18 PM] [INFO]     [OPSR-MEMORY] Loaded all one offs from inventory. Heap memory in use: 16 (MB)
[Nov 4, 2024 1:17:18 PM] [INFO]     [OPSR-TIME] Raw inventory loaded successfully
[Nov 4, 2024 1:17:18 PM] [INFO]     NApply::no CAS enabled, OPatch runs with legacy process.
[Nov 4, 2024 1:17:18 PM] [INFO]     Verifying environment and performing prerequisite checks...
[Nov 4, 2024 1:17:18 PM] [INFO]     [OPSR-TIME] Running prerequisite checks
[Nov 4, 2024 1:17:18 PM] [INFO]     opatch-external.jar is in /u01/app/oracle/product/23.0.0.0/dbhome_1/OPatch/jlib/opatch-external.jar
[Nov 4, 2024 1:17:21 PM] [INFO]     OPatch invoked in CLI. Run Init Prereqs
[Nov 4, 2024 1:17:22 PM] [INFO]     Running Initial prerequisite checks...
[Nov 4, 2024 1:17:24 PM] [INFO]     Checking if Oracle Home has components required by patches...
[Nov 4, 2024 1:17:25 PM] [INFO]     CheckMissingComps: Cached file does not exist or is invalid, re-build prereq result.
[Nov 4, 2024 1:17:25 PM] [INFO]     [OPSR-TIME] Loading cooked inventory
[Nov 4, 2024 1:17:25 PM] [INFO]     [OPSR-MEMORY] : Loading cooked one offs. Heap memory used 221 (MB)
[Nov 4, 2024 1:17:25 PM] [INFO]     [OPSR-MEMORY] : Loaded cooked oneoffs. Heap memory used : 221 (MB)
[Nov 4, 2024 1:17:25 PM] [INFO]     [OPSR-TIME] Cooked inventory loaded successfully
[Nov 4, 2024 1:17:25 PM] [INFO]     Checking conflict among patches...
[Nov 4, 2024 1:17:25 PM] [INFO]     Running prereq checkConflictAmongPatchesWithDetail
[Nov 4, 2024 1:17:25 PM] [INFO]     Following patches can be applied:  37037086
[Nov 4, 2024 1:17:25 PM] [INFO]     Following patches are not required:
[Nov 4, 2024 1:17:25 PM] [INFO]     Following patches are auto rollbackable:
[Nov 4, 2024 1:17:25 PM] [INFO]     Finished checking prereq checkConflictAmongPatchesWithDetail
[Nov 4, 2024 1:17:25 PM] [INFO]     Conflict checking amongst patches PASSED
[Nov 4, 2024 1:17:25 PM] [INFO]     Checking conflicts against Oracle Home...
[Nov 4, 2024 1:17:25 PM] [INFO]     Running prereq checkConflictAgainstOHWithDetail
[Nov 4, 2024 1:17:26 PM] [INFO]     Following patches can be applied:  37037086
[Nov 4, 2024 1:17:26 PM] [INFO]     Following patches are not required:
[Nov 4, 2024 1:17:26 PM] [INFO]     Following patches are auto rollbackable:
[Nov 4, 2024 1:17:26 PM] [INFO]     Finished checking prereq checkConflictAgainstOHWithDetail
[Nov 4, 2024 1:17:28 PM] [INFO]     Running prerequisite checks...
[Nov 4, 2024 1:17:28 PM] [INFO]     Space Needed : 11630.222MB
[Nov 4, 2024 1:17:28 PM] [INFO]     Prereq checkPatchApplicableOnCurrentPlatform Passed for patch : 37037086
[Nov 4, 2024 1:17:28 PM] [INFO]     OPatch/jre does not exist. Adding /u01/app/oracle/product/23.0.0.0/dbhome_1/jdk/bin/java to oop dependency list

 

- 패치 적용
[CDB1]oracle@23ai:/oradata/install# opatch apply ./37037086/
Oracle Interim Patch Installer version 12.2.0.1.44
Copyright (c) 2024, Oracle Corporation.  All rights reserved.

Oracle Home       : /u01/app/oracle/product/23.0.0.0/dbhome_1
Central Inventory : /u01/app/oraInventory
   from           : /u01/app/oracle/product/23.0.0.0/dbhome_1/oraInst.loc
OPatch version    : 12.2.0.1.44
OUI version       : 12.2.0.9.0
Log file location : /u01/app/oracle/product/23.0.0.0/dbhome_1/cfgtoollogs/opatch/opatch2024-11-04_13-17-15PM_1.log

Verifying environment and performing prerequisite checks...

--------------------------------------------------------------------------------
Start OOP by Prereq process.
Launch OOP...

Oracle Interim Patch Installer version 12.2.0.1.44
Copyright (c) 2024, Oracle Corporation.  All rights reserved.


Oracle Home       : /u01/app/oracle/product/23.0.0.0/dbhome_1
Central Inventory : /u01/app/oraInventory
   from           : /u01/app/oracle/product/23.0.0.0/dbhome_1/oraInst.loc
OPatch version    : 12.2.0.1.44
OUI version       : 12.2.0.9.0
Log file location : /u01/app/oracle/product/23.0.0.0/dbhome_1/cfgtoollogs/opatch/opatch2024-11-04_13-17-31PM_1.log

Verifying environment and performing prerequisite checks...
OPatch continues with these patches:   37037086  

Do you want to proceed? [y|n]
y
User Responded with: Y
All checks passed.

Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/u01/app/oracle/product/23.0.0.0/dbhome_1')


Is the local system ready for patching? [y|n]
y
User Responded with: Y
Backing up files...
Applying interim patch '37037086' to OH '/u01/app/oracle/product/23.0.0.0/dbhome_1'
ApplySession: Optional component(s) [ oracle.client, 23.0.0.0.0 ] , [ oracle.companionCD.db, 23.0.0.0.0 ] , [ oracle.dbjava.dev, 23.0.0.0.0 ] , [ oracle.dslm, 23.0.0.0.0 ] , [ oracle.has.client.cvu, 23.0.0.0.0 ] , [ oracle.ldap.companion, 23.0.0.0.0 ] , [ oracle.mgw.common.companion, 23.0.0.0.0 ] , [ oracle.network.cman, 23.0.0.0.0 ] , [ oracle.network.gsm, 23.0.0.0.0 ] , [ oracle.nlsrtl.companion, 23.0.0.0.0 ] , [ oracle.odbc.companion, 23.0.0.0.0 ] , [ oracle.oraolap.mgmt, 23.0.0.0.0 ] , [ oracle.pg4appc, 23.0.0.0.0 ] , [ oracle.pg4mq, 23.0.0.0.0 ] , [ oracle.precomp.companion, 23.0.0.0.0 ] , [ oracle.rdbms.companion, 23.0.0.0.0 ] , [ oracle.rdbms.ic, 23.0.0.0.0 ] , [ oracle.rdbms.tg4db2, 23.0.0.0.0 ] , [ oracle.rdbms.tg4ifmx, 23.0.0.0.0 ] , [ oracle.rdbms.tg4msql, 23.0.0.0.0 ] , [ oracle.rdbms.tg4sybs, 23.0.0.0.0 ] , [ oracle.rdbms.tg4tera, 23.0.0.0.0 ] , [ oracle.sdo.companion, 23.0.0.0.0 ] , [ oracle.sqlj, 23.0.0.0.0 ] , [ oracle.sqlj.companion, 23.0.0.0.0 ] , [ oracle.sqlplus.companion, 23.0.0.0.0 ] , [ oracle.tg, 23.0.0.0.0 ] , [ oracle.xdk.companion, 23.0.0.0.0 ]  not present in the Oracle Home or a higher version is found.

Patching component oracle.assistants.acf, 23.0.0.0.0...
Patching component oracle.assistants.deconfig, 23.0.0.0.0...
Patching component oracle.assistants.netca.client, 23.0.0.0.0...
Patching component oracle.assistants.server, 23.0.0.0.0...
Patching component oracle.bali.ewt, 12.2.1.0.0...
Patching component oracle.bali.ice, 6.1.3.2.0...
Patching component oracle.bali.jewt, 11.1.1.1.0...
Patching component oracle.bali.share, 12.2.1.0.0...
Patching component oracle.blaslapack, 23.0.0.0.0...
Patching component oracle.buildtools.common, 23.0.0.0.0...
Patching component oracle.buildtools.rsf, 23.0.0.0.0...
Patching component oracle.crypto.fips, 23.0.0.0.0...
Patching component oracle.crypto.ojmisc, 23.0.0.0.0...
Patching component oracle.crypto.pki, 23.0.0.0.0...
Patching component oracle.crypto.rsa, 23.0.0.0.0...
Patching component oracle.crypto.rsf, 23.0.0.0.0...
Patching component oracle.ctx, 23.0.0.0.0...
Patching component oracle.ctx.atg, 23.0.0.0.0...
Patching component oracle.ctx.companion, 23.0.0.0.0...
Patching component oracle.ctx.rsf, 23.0.0.0.0...
Patching component oracle.dbdev, 23.0.0.0.0...
Patching component oracle.dbjava.ic, 23.0.0.0.0...
Patching component oracle.dbjava.jdbc, 23.0.0.0.0...
Patching component oracle.dbjava.server, 23.0.0.0.0...
Patching component oracle.dbjava.ucp, 23.0.0.0.0...
Patching component oracle.dbtoolslistener, 23.0.0.0.0...
Patching component oracle.hadoopcore, 23.0.0.0.0...
Patching component oracle.has.common, 23.0.0.0.0...
Patching component oracle.has.common.cvu, 23.0.0.0.0...
Patching component oracle.has.db, 23.0.0.0.0...
Patching component oracle.has.db.cvu, 23.0.0.0.0...
Patching component oracle.has.rsf, 23.0.0.0.0...
Patching component oracle.help.ohj, 11.1.2.0.0...
Patching component oracle.help.share, 11.1.2.0.0...
Patching component oracle.install.deinstalltool, 23.0.0.0.0...
Patching component oracle.javavm.client, 23.0.0.0.0...
Patching component oracle.javavm.companion, 23.0.0.0.0...
Patching component oracle.javavm.server, 23.0.0.0.0...
Patching component oracle.javavhttp://m.server.core, 23.0.0.0.0...
Patching component oracle.jdk, 11.0.24.7.0...
Patching component oracle.ldap.admin, 23.0.0.0.0...
Patching component oracle.ldap.client, 23.0.0.0.0...
Patching component oracle.ldap.rsf, 23.0.0.0.0...
Patching component oracle.mgw.common, 23.0.0.0.0...
Patching component oracle.network, 23.0.0.0.0...
Patching component oracle.network.aso, 23.0.0.0.0...
Patching component oracle.network.client, 23.0.0.0.0...
Patching component oracle.network.listener, 23.0.0.0.0...
Patching component oracle.network.netmgr, 23.0.0.0.0...
Patching component oracle.network.rsf, 23.0.0.0.0...
Patching component oracle.nlsrtl.rsf, 23.0.0.0.0...
Patching component oracle.nlsrtl.rsf.core, 23.0.0.0.0...
Patching component oracle.nlsrtl.rsf.ic, 23.0.0.0.0...
Patching component oracle.nlsrtl.rsf.lbuilder, 23.0.0.0.0...
Patching component oracle.odbc, 23.0.0.0.0...
Patching component oracle.odbc.ic, 23.0.0.0.0...
Patching component oracle.onnx, 23.0.0.0.0...
Patching component oracle.ons, 23.0.0.0.0...
Patching component oracle.ons.core, 23.0.0.0.0...
Patching component oracle.ons.ic, 23.0.0.0.0...
Patching component oracle.options, 23.0.0.0.0...
Patching component oracle.oracler.server, 23.0.0.0.0...
Patching component oracle.oracore.rsf, 23.0.0.0.0...
Patching component oracle.oracore.rsf.core, 23.0.0.0.0...
Patching component oracle.oraml.server, 23.0.0.0.0...
Patching component oracle.oraolap, 23.0.0.0.0...
Patching component oracle.oraolap.api, 23.0.0.0.0...
Patching component oracle.oraolap.dbscripts, 23.0.0.0.0...
Patching component oracle.ordim.client, 23.0.0.0.0...
Patching component oracle.ordim.server, 23.0.0.0.0...
Patching component oracle.ovm, 23.0.0.0.0...
Patching component oracle.perlint, 5.38.2.0.0...
Patching component oracle.precomp.common, 23.0.0.0.0...
Patching component oracle.precomp.common.core, 23.0.0.0.0...
Patching component oracle.precomp.lang, 23.0.0.0.0...
Patching component oracle.precomp.rsf, 23.0.0.0.0...
Patching component oracle.python, 3.12.3.0.0...
Patching component oracle.rdbms, 23.0.0.0.0...
Patching component oracle.rdbms.crs, 23.0.0.0.0...
Patching component oracle.rdbms.db, 23.0.0.0.0...
Patching component oracle.rdbms.dbcur, 23.0.0.0.0...
Patching component oracle.rdbms.dbscripts, 23.0.0.0.0...
Patching component oracle.rdbms.deconfig, 23.0.0.0.0...
Patching component oracle.rdbms.dm, 23.0.0.0.0...
Patching component oracle.rdbms.dv, 23.0.0.0.0...
Patching component oracle.rdbms.hs_common, 23.0.0.0.0...
Patching component oracle.rdbms.hsodbc, 23.0.0.0.0...
Patching component oracle.rdbms.install.common, 23.0.0.0.0...
Patching component oracle.rdbms.install.plugins, 23.0.0.0.0...
Patching component oracle.rdbms.install.seeddb, 23.0.0.0.0...
Patching component oracle.rdbms.lbac, 23.0.0.0.0...
Patching component oracle.rdbms.locator, 23.0.0.0.0...
Patching component oracle.rdbms.oci, 23.0.0.0.0...
Patching component oracle.rdbms.olap, 23.0.0.0.0...
Patching component oracle.rdbms.plsql, 23.0.0.0.0...
Patching component oracle.rdbms.rat, 23.0.0.0.0...
Patching component oracle.rdbms.rman, 23.0.0.0.0...
Patching component oracle.rdbms.rsf, 23.0.0.0.0...
Patching component oracle.rdbms.rsf.ic, 23.0.0.0.0...
Patching component oracle.rdbms.scheduler, 23.0.0.0.0...
Patching component oracle.rdbms.util, 23.0.0.0.0...
Patching component oracle.rhp.common, 23.0.0.0.0...
Patching component oracle.rhp.db, 23.0.0.0.0...
Patching component oracle.rsf, 23.0.0.0.0...
Patching component oracle.sdo, 23.0.0.0.0...
Patching component oracle.sdo.locator, 23.0.0.0.0...
Patching component oracle.sdo.locator.jrf, 23.0.0.0.0...
Patching component oracle.server, 23.0.0.0.0...
Patching component oracle.slax.rsf, 23.0.0.0.0...
Patching component oracle.sqlj.sqljruntime, 23.0.0.0.0...
Patching component oracle.sqlplus, 23.0.0.0.0...
Patching component oracle.sqlplus.ic, 23.0.0.0.0...
Patching component oracle.sqlplus.rsf, 23.0.0.0.0...
Patching component oracle.tfa.db, 23.0.0.0.0...
Patching component oracle.usm.deconfig, 23.0.0.0.0...
Patching component oracle.wwg.plsql, 23.0.0.0.0...
Patching component oracle.xdk, 23.0.0.0.0...
Patching component oracle.xdk.parser.java, 23.0.0.0.0...
Patching component oracle.xdk.rsf, 23.0.0.0.0...
Patching component oracle.xdk.server, 23.0.0.0.0...
Patching component oracle.xdk.xquery, 23.0.0.0.0...

Patch 37037086 successfully applied.
Log file location: /u01/app/oracle/product/23.0.0.0/dbhome_1/cfgtoollogs/opatch/opatch2024-11-04_13-17-31PM_1.log

OPatch succeeded.

[CDB1]oracle@23ai:/home/oracle# opatch lspatches
37037086;Database Release Update : 23.6.0.24.10 (37037086)

OPatch succeeded.

 

- datapatch 적용
[CDB1]oracle@23ai:/u01/app/oracle/product/23.0.0.0/dbhome_1/OPatch# ./datapatch -verbose
SQL Patching tool version 23.6.0.24.10 Lim on Mon Nov  4 13:36:47 2024
Copyright (c) 2012, 2024, Oracle.  All rights reserved.

Log file for this invocation: /u01/app/oracle/product/23.0.0.0/dbhome_1/cfgtoollogs/sqlpatch/sqlpatch_sid_CDB1_ts_2024_11_04_13_36_47_pid_10845/sqlpatch_invocation.log

Connecting to database...OK
Gathering database info...done

Note:  Datapatch will only apply or rollback SQL fixes for PDBs
       that are in an open state, no patches will be applied to closed PDBs.
       Please refer to Note: Datapatch: Database 12c Post Patch SQL Automation
       (Doc ID 1585822.1)

Bootstrapping registry and package to current versions...done
Determining current state...done

Current state of interim SQL patches:
  No interim patches found

Current state of release update SQL patches:
  Binary registry:
    23.6.0.24.10 Release_Update 241010183751: Installed
  PDB CDB$ROOT:
    Applied 23.5.0.24.07 Release_Update 241010183751 successfully on 
  PDB PDB$SEED:
    Applied 23.5.0.24.07 Release_Update 241010183751 successfully on 
  PDB PDB1:
    Applied 23.5.0.24.07 Release_Update 241010183751 successfully on 

Adding patches to installation queue and performing prereq checks...done
Installation queue:
  For the following PDBs: CDB$ROOT PDB$SEED PDB1
    No interim patches need to be rolled back
    Patch 37037086 (Database Release Update : 23.6.0.24.10 (37037086)):
      Apply from 23.5.0.24.07 Release_Update 241010183751 to 23.6.0.24.10 Release_Update 241010183751
    No interim patches need to be applied

Installing patches...
Patch installation complete.  Total patches installed: 3

Validating logfiles...done
Patch 37037086 apply (pdb CDB$ROOT): SUCCESS
  logfile: /u01/app/oracle/product/23.0.0.0/dbhome_1/cfgtoollogs/sqlpatch/sqlpatch_sid_CDB1_ts_2024_11_04_13_36_47_pid_10845/37037086_apply_CDB1_CDBROOT_2024Nov04_13_37_02.log (no errors)
Patch 37037086 apply (pdb PDB$SEED): SUCCESS
  logfile: /u01/app/oracle/product/23.0.0.0/dbhome_1/cfgtoollogs/sqlpatch/sqlpatch_sid_CDB1_ts_2024_11_04_13_36_47_pid_10845/37037086_apply_CDB1_PDBSEED_2024Nov04_13_39_36.log (no errors)
Patch 37037086 apply (pdb PDB1): SUCCESS
  logfile: /u01/app/oracle/product/23.0.0.0/dbhome_1/cfgtoollogs/sqlpatch/sqlpatch_sid_CDB1_ts_2024_11_04_13_36_47_pid_10845/37037086_apply_CDB1_PDB1_2024Nov04_13_39_36.log (no errors)
SQL Patching tool complete on Mon Nov  4 13:42:36 2024

-  DBA_REGISTRY_SQLPATCH 적용 확인 

SQL> 
SET LINESIZE 400
COLUMN ACTION_TIME FORMAT A20
COLUMN ACTION FORMAT A10
COLUMN STATUS FORMAT A10
COLUMN DESCRIPTION FORMAT A40
COLUMN VERSION FORMAT A10
COLUMN BUNDLE_SERIES FORMAT A10
SELECT TO_CHAR(ACTION_TIME, 'YYYYMMDD HH24:MI:SS') AS ACTION_TIME
          ,ACTION
          ,STATUS
          ,DESCRIPTION
          ,PATCH_ID
    FROM   DBA_REGISTRY_SQLPATCH
    ORDER BY ACTION_TIME;

ACTION_TIME          ACTION     STATUS     DESCRIPTION                                PATCH_ID
-------------------- ---------- ---------- ---------------------------------------- ----------
20241104 13:38:42    APPLY      END        Database Release Update : 23.6.0.24.10 (   37037086
                                           37037086)

Posted by pat98

23ai 에서 datapump 관련 작업시 성능이슈에 대해서 debug 하는데 도움이 되는 View 가 추가되었다.

Data Pump New Diagnostic V$ Views For Performance Issues in 23ai (Doc ID 2920029.1)

(G)V$DATAPUMP_PROCESS_INFO
(G)V$DATAPUMP_PROCESSWAIT_INFO
(G)V$DATAPUMP_SESSIONWAIT_INFO

SQL> select * from v$datapump_process_info;

CUR_DATE PROGRAM SESSIONID STATUS USERNAME JOBNAME SPID SERIALNUMBER PROCESSID CON_ID
------------------- -------------------------------------- --------- -------- ---------- ------------------
2023-01-09 13:56:07 ude@orcl (TNS V1-V3) 42 ACTIVE SYSTEM SYS_EXPORT_FULL_01 3891480 11829 70 0
2023-01-09 13:56:07 oracle@orcl (DW00)   48 ACTIVE SYSTEM SYS_EXPORT_FULL_01 3891500 36244 82 0
2023-01-09 13:56:07 oracle@orcl (DM00)  149 ACTIVE SYSTEM SYS_EXPORT_FULL_01 3891494 42966 79 0

SQL> select * from gv$datapump_processwait_info;

INST_ID WAITING_SESSION HOLDING_SESSION SERIAL_NUMBER EVENT PROGRAM_WAITSESSION PROGRAM_HOLDINGDSESSION MODULE_WAITSESSION MODULE_HOLDINGSESSION DATAPUMP_LOCKID CON_ID
-------------------------------------------------------------------------------------------------------------------------------------------------------------
      1   174   57 40525 enq: TM - contention oracle@orcl (DM00) oracle@orcl (DW00) Data Pump Master Data Pump Worker 79473 1

SQL> select * from gv$datapump_sessionwait_info;

INST_ID WAITING_SESSION SERIAL_NUMBER SEQ_NUMBER EVENT DP_WAITTIME DP_SECONDS_IN_WAIT DP_STATE_IN_WAIT DP_P1TEXT DP_P1 DP_P2TEXT DP_P2 DP_P3TEXT DP_P3 CON_ID
--------------------------------------------------------------------------------------------------------------------------------------------
1 46 65244 1319 enq: TM - contention 0 8086 WAITING name|mode 1414332419 object # 80996 table/partition 0

Posted by pat98

 

페이스 허거, 제노모프, 산성용액 이거로 끝

 

커버넌트로 제대로 말아먹더니 정신 차렸어..

이게 에이리언 이지 !!

Posted by pat98

2024. 10. 16. 23:33 오라클

Exadata FIPS 설정


https://docs.oracle.com/en/engineered-systems/exadata-database-machine/dbmmn/using-fips-mode.html

Starting with Oracle Exadata System Software release 20.1.0, you can enable and disable the Federal Information Processing Standards (FIPS) compatibility mode on Oracle Exadata database servers running Oracle Linux 7 or later.

- 상태확인
/opt/oracle.cellos/host_access_control fips-mode --status

- enable
 /opt/oracle.cellos/host_access_control fips-mode --enable
-> enable 후 리부팅해야 적용됨.

- disable
/opt/oracle.cellos/host_access_control fips-mode --disable
-> disable 후 리부팅해야 적용됨.

- 정보확인 
/opt/oracle.cellos/host_access_control fips-mode --info

Posted by pat98

Critical Patch Update (CPU) Program Oct 2024 Patch Availability Document (DB-only) (Doc ID 3036945.1)

2024.10.15

패치작업 19.25.0.0.241015 (GI RU 36916690)

Database Patch Set Update : 19.25.0.0.241015 (36912597)
OCW Patch Set Update      : 19.25.0.0.241015 (36917416)
ACFS Patch Set Update     : 19.25.0.0.241015 (36917397)
Tomcat Release Update     : 19.0.0.0.0       (36940756)
DBWLM Release Update      : 19.0.0.0.0       (36758186)

Oracle Grid Infrastructure Patch Set Update 19.25.0.0.241015 
-------------------------------------
GI_HOME, ORACLE_HOME 을 개별로 각각 할때

- grid 유저
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /u01/patch/36916690/36912597
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /u01/patch/36916690/36917416
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /u01/patch/36916690/36917397
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /u01/patch/36916690/36758186
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /u01/patch/36916690/36940756

- oracle 유저
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /u01/patch/36916690/36912597
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /u01/patch/36916690/36917416

(oracle)
$ <ORACLE_HOME>/bin/srvctl stop home -o <ORACLE_HOME> -s <status file location> -n <node name>

(root 유저)
export GI_HOME=/u01/app/19.0.0.0/grid
$GI_HOME/crs/install/rootcrs.sh -prepatch 

(grid 유저)
export GI_HOME=/u01/app/19.0.0.0/grid
cd /u01/patch
$GI_HOME/OPatch/opatch apply -oh $GI_HOME -local /u01/patch/36916690/36917416 -silent
$GI_HOME/OPatch/opatch apply -oh $GI_HOME -local /u01/patch/36916690/36917397 -silent
$GI_HOME/OPatch/opatch apply -oh $GI_HOME -local /u01/patch/36916690/36912597 -silent
$GI_HOME/OPatch/opatch apply -oh $GI_HOME -local /u01/patch/36916690/36758186 -silent
$GI_HOME/OPatch/opatch apply -oh $GI_HOME -local /u01/patch/36916690/36940756 -silent

(oracle 유저)
export ORACLE_HOME=/u01/app/oracle/product/19.0.0.0/dbhome_1
cd /u01/patch
./36916690/36917416/custom/scripts/prepatch.sh -dbhome $ORACLE_HOME
$ORACLE_HOME/OPatch/opatch apply -oh $ORACLE_HOME -local /u01/patch/36916690/36917416 -silent
$ORACLE_HOME/OPatch/opatch apply -oh $ORACLE_HOME -local /u01/patch/36916690/36912597 -silent
./36916690/36917416/custom/scripts/postpatch.sh -dbhome $ORACLE_HOME 

(root 유저)
export GI_HOME=/u01/app/19.0.0.0/grid
$GI_HOME/rdbms/install/rootadd_rdbms.sh
$GI_HOME/crs/install/rootcrs.sh -postpatch 

(oracle)
$ <ORACLE_HOME>/bin/srvctl start home -o <ORACLE_HOME> -s <status file location> -n <node name> 

- Loading Modified SQL Files into the Database
sqlplus /nolog
SQL> conect / as sysdba
SQL> startup
SQL> quit
cd $ORACLE_HOME/OPatch
./datapatch -verbose

### [롤백하는 경우] ###########

(oracle)
$ <ORACLE_HOME>/bin/srvctl stop home -o <ORACLE_HOME> -s <status file location> -n <node name>

GI Home
(root로)
$GI_HOME/crs/install/rootcrs.sh -prepatch -rollback

(grid 유저로)
export GI_HOME=/u01/app/19.0.0.0/grid
cd /u01/install
$GI_HOME/OPatch/opatch nrollback -local -id 36917416,36917397,36912597,36758186,36940756 -oh $GI_HOME -silent

(oracle 유저로)
export ORACLE_HOME=/u01/app/oracle/product/19.0.0.0/dbhome_1
cd /u01/install
./36916690/36917416/custom/scripts/prepatch.sh -dbhome $ORACLE_HOME 
$ORACLE_HOME/OPatch/opatch nrollback -local -id 36917416,36912597 -oh /u01/app/oracle/product/19.0.0.0/dbhome_1 -silent
./36916690/36917416/custom/scripts/postpatch.sh -dbhome $ORACLE_HOME

Run post script
(root로)
export GI_HOME=/u01/app/19.0.0.0/grid
$GI_HOME/rdbms/install/rootadd_rdbms.sh
$GI_HOME/crs/install/rootcrs.sh -postpatch -rollback

(oracle)
$ <ORACLE_HOME>/bin/srvctl start home -o <ORACLE_HOME> -s <status file location> -n <node name>

sqlplus /nolog
SQL> conect / as sysdba
SQL> startup
SQL> quit
cd $ORACLE_HOME/OPatch
./datapatch -verbose

Posted by pat98

 

소설가 한강의 2024년 노벨문학상 수상으로 요즘 핫하다.

 

한강의 소설들은 몇년 전

채식주의자

소년이 온다

희랍어 시간

검은 사슴

등을 읽어보았는데 검은사슴을 제외하고는 모두 감정적으로 이입되지 않으면

읽기 힘든 내용이라 꾸역꾸역 읽어가며 힘들었던 기억이 난다.

 

잠깐의 노벨문학상 붐으로 섣불리 한강의 소설에 도전했다간

당분간 책읽기에 흥미를 잃기에 충분하다. ㅎㅎ

Posted by pat98

03-07 06:43
Flag Counter
Yesterday
Today
Total

글 보관함

최근에 올라온 글

달력

 « |  » 2025.3
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31

최근에 달린 댓글