Posts

Showing posts from July, 2023

How to Increase the Size of the Datafile of oracle database

----------------------------------------------------------------------------------------------------------------------------- To increase the size limit of the Datafile, use the following SQL command: Increasing the Size Limit ALTER DATABASE DATAFILE '/U01/ORADATA/SANGA.DBF' AUTOEXTEND ON MAXSIZE 4096M; In this command, we are adjusting the maximum size of the Datafile to 4096MB (4GB). This change ensures that the Datafile can automatically extend its size up to the specified limit when it reaches capacity.   Removing the Size Limit In certain scenarios, you may want to remove the size limit altogether to allow the Datafile to grow without any restrictions. To achieve this, use the following SQL command in Oracle Database Enterprise Manager: ALTER DATABASE DATAFILE ‘/U01/ORADATA/SANGA.DBF’ AUTOEXTEND ON MAXSIZE UNLIMITED; With this command, the size limit on the Datafile is set to "UNLIMITED," allowing it to grow dynamically without any predefined rest...

MySQL Cluster vs MySQL Master-Slave replication

  MySQL Cluster and MySQL Master-Slave replication are two different approaches to achieve high availability and scalability in a MySQL database environment. Table 1: Summary of MySQL Cluster vs MySQL Master-Slave   MySQL Cluster MySQL Master-Slave Architecture:   It is a distributed, shared-nothing architecture where multiple nodes (data nodes and management nodes) work together to provide high availability and data distribution. Data is automatically partitioned and replicated across nodes.   It follows a traditional master-slave replication model where one server acts as the master, handling both read and write operations, while one or more slave servers replicate data from the master to handle read operations.   High Availability:   Provides automatic data distribution, data redundancy, and built-in failover mechanisms, making it highly avail...

How to resolve ORA-06540: PL/SQL: compilation error ORA-06553: PLS-252: reference to the wrong copy of package STANDARD

There was an issue regarding expired archives did not clear  at standby  as scheduled and following error was raise. RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03002: failure of delete command at 07/09/2023 16:00:03 ORA-06540: PL/SQL: compilation error ORA-06553: PLS-252: reference to the wrong copy of package STANDARD Recovery Manager complete. SOLUTION: 1. Restart the standby database 2. Flush shared pool t o clear the whole shared pool you would issue the following command from a privileged user. ALTER SYSTEM FLUSH SHARED_POOL;

How to resolve RMAN-06429: TARGET database is not compatible with this version of RMAN

In my case I was tried to get RMAN full backup from my prod database. While connecting with RMAN Command window getting the following errors: RMAN-06438: error executing package DBMS_RCVMAN in TARGET database RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ============= RMAN-00571: =========================================================== RMAN-00554: initialization of internal recovery manager package failed RMAN-06429: TARGET database is not compatible with this version of RMAN Cause “SYS.DBMS_RCVMAN” package has error which causing the problem. May be package is in-valid state. Solution 1. We tried to check in target database if it’s invalid. select OWNER, STATUS, substr(OBJECT_NAME,1,40), OBJECT_TYPE from DBA_OBJECTS where OBJECT_NAME IN ('DBMS_RCVMAN', 'DBMS_BACKUP_RESTORE' ) ; 2. Try to recompile it and check the status. @$ORACLE_HOME/rdbms/admin/utlrp.sql 3. If 2nd steps is not worki...