- This step-by-step worked for me, but it may not work for you.
- It's a test environment. The real life will be different, for sure.
- This post is for study and testing as well and has no concern for performance and security best practices.
sexta-feira, 8 de março de 2024
[ORACLE] Batch change EDITIONABLE property.
terça-feira, 23 de janeiro de 2024
[ORACLE] How to move a datafile to a new location in ASM.
- For SYS and SYSAUX, the procedure will be slightly different, so don't use this step-by-step in these two cases.
- There are also other ways to do this process, today I chose to do this one.
RMAN> BACKUP AS COPY DATAFILE 69 format '+DGFRA';
RMAN> recover datafile 69;
terça-feira, 10 de outubro de 2023
[ORACLE] ORA-16597: Oracle Data Guard Broker detects two or more primary databases. #JoelKallmanDay
Last week, I was doing a test using Data Guard Broker and at the end of the switchover I got the error bellow:
<error barrier> at 0x7ffcb2af9bf0 placed krsl.c@6774
ORA-03135: connection lost contact
*** 2023-10-04 09:57:23.145275 [krsh.c:6348]
- This step-by-step worked for me, but it may not work for you.
- It's a basic and limited environment. The real life will be different, for sure.
- This post is for study and testing as well, and has no concern for performance and security best practices.
rm -f /u01/app/oracle/product/19.3.0.0/db_1/dbs/dr2IMANDG.dat
Protection Mode: MaxPerformance
Members:
imandg - Primary database
ironman - Physical standby database
Properties:
FastStartFailoverThreshold = '30'
OperationTimeout = '30'
TraceLevel = 'USER'
FastStartFailoverLagLimit = '30'
CommunicationTimeout = '180'
ObserverReconnect = '0'
FastStartFailoverAutoReinstate = 'TRUE'
FastStartFailoverPmyShutdown = 'TRUE'
BystandersFollowRoleChange = 'ALL'
ObserverOverride = 'FALSE'
ExternalDestination1 = ''
ExternalDestination2 = ''
PrimaryLostWriteAction = 'CONTINUE'
ConfigurationWideServiceName = 'ironman_CFG'
terça-feira, 3 de outubro de 2023
[ORACLE] How do I upgrade the AHF.
Hello everyone!!!
I hope you're doing well!
In my last post here, I've showed how to install the Oracle Autonomous Health Framework (AHF).
Today, I'll show how you can upgrade the AHF and how to use the auto upgrade as well.
But always remember:
- This step-by-step worked for me, but it may not work for you.
- It's a basic and limited environment. The real life will be different, for sure.
- This post is for study and testing as well, and has no concern for performance and security best practices.
sexta-feira, 29 de setembro de 2023
[ORACLE] How do I install the Oracle Autonomous Health Framework (AHF)?
Hello everyone!!!
I hope you're doing well!
Today, I'll show you how to install the Oracle Autonomous Health Framework (AHF).
I don't have an Oracle RAC installed here on my laptop, but I'll provide it. Today I'll show you a single-node environment.
First, what is Oracle Autonomous Health Framework?
In Oracle's words, it's a "Machine learning-based solution for maintaining database availability and performance".
In Mario's words, it's a "very cool tool that collects and groups your system health information and logs and uses Machine Learning to provide you insights and predictions so that you can act preventively, avoiding problems in your environment".
- This step-by-step worked for me, but it may not work for you.
- It's a basic and limited environment. The real life will be different, for sure.
- This post is for study and testing as well, and has no concern for performance and security best practices.
quarta-feira, 27 de setembro de 2023
[ORACLE] Enabling AWR Snapshots and running AWR reports from Oracle Multitentant Architecture - CDBs and PDBs
- This step-by-step worked for me, but it may not work for you.
- It's a basic and limited environment. The real life will be different, for sure.
- This post is for study and testing as well, and has no concern for performance and security best practices.
SQL> ALTER SYSTEM SET awr_pdb_autoflush_enabled=TRUE SCOPE=both SID='*';
SQL> ALTER SYSTEM SET awr_snapshot_time_offset=1000000 SCOPE=both SID='*';
DBID, SUBSTR(SNAP_INTERVAL,1,20) as SNAP_INTERVAL,
SUBSTR(RETENTION,1,20) as RETENTION, TOPNSQL, CON_ID
FROM awr_pdb_wr_control;
BEGIN
DBMS_WORKLOAD_REPOSITORY.MODIFY_SNAPSHOT_SETTINGS(
interval => 30,
topnsql => 50,
dbid => 132885978);
END;
/
DBID, SUBSTR(SNAP_INTERVAL,1,20) as SNAP_INTERVAL,
FROM awr_pdb_wr_control;
Postagem em destaque
[ORACLE] Useful scripts for the day-to-day life of a DBA (Part 3) - System metrics
Hello everyone. Hope you're doing well! As I said here , I've created a repository on GITHUB to share some scripts that I like t...
