OEM Database Cleanup Procedure
OEM Database Cleanup Procedure
Removing users such as 'BIP' and 'MGMT_VIEW' might impact certain functionalities associated with Oracle Business Intelligence Publisher and Management views. These users are typically associated with specific schemas and jobs that manage reporting, monitoring, and analytics functionalities. Eliminating them ensures a clean slate by removing all roles, privileges, and objects associated with them, but requires further setup if those services will be needed again in the future. The potential impact therefore includes temporary interruptions in specific analytics and management features until they are properly redeployed or reconfigured .
Altering the setting '_allow_insert_with_update_check' enables the database system to allow inserts that include updates checks, which can streamline batch processing and data integrity checks during database operations. This setting is particularly useful in scenarios requiring conditional data operations where insertions go hand in hand with updates, thereby enhancing the efficiency of the system during ongoing post-cleanup configuration and operational setups .
Creating a pfile from an spfile is important in database management as it acts as a backup of the current database configurations. A pfile (parameter file) can be edited manually for making specific configuration changes, whereas an spfile (server parameter file) is a binary file that cannot be directly edited. By creating a pfile, database administrators have the flexibility to adjust configurations manually and then revert or adjust as necessary, facilitating better control over database management post-cleanup operations .
Granting specific permissions, such as 'connect', 'resource', and 'dba', to an admin user post clean-up is necessary to ensure administrative capabilities are maintained. This enables the admin to manage the database effectively, including access to necessary resources, performing recovery operations, and maintaining overall database security. These permissions are critical for setting up new configurations or continuing with database management and monitoring tasks .
Altering system parameters such as 'session_cached_cursors', 'shared_pool_size', 'pga_aggregate_target', and 'sga_target' helps in optimizing the performance of the database post cleanup. These parameters control various aspects of memory allocation and session management, which can significantly influence how efficiently the database runs. Additionally, setting parameters like 'PARALLEL_MAX_SERVERS' and 'PARALLEL_MIN_SERVERS' fine-tunes the database's parallel processing capabilities, thus improving its readiness for workload demands following the cleanup operation .
Disabling 'auto optimizer stats collection' is crucial during the OEM cleanup process to prevent automatic statistical updates that could interfere with the deletion and cleanup operations. Automatic updates might lock objects or temporarily change database performances, affecting the removal processes of users, schemas, and tablespaces. By disabling this feature, the system ensures that the cleanup operations proceed without interruptions or unexpected behavior .
Unsetting HTTP and HTTPS proxy settings during the cleanup process is necessary because proxies can redirect or mask connection endpoints. They may interfere with direct database connections or service calls during cleanup. Ensuring no proxies are set helps in establishing direct and unimpeded connections to the services and endpoints, which is crucial for accurately and efficiently executing cleanup operations .
The OEM clean up process uses a cursor to loop through and drop synonyms associated with certain users, such as SYSMAN and SYSMAN_MDS, which could be public or owned by specific users. This is important because synonyms provide alternative names for database objects. Removing them ensures there are no lingering references to the dropped objects, thus maintaining database integrity and preventing potential errors in future database operations .
Modifying the oratab file, specifically forcing changes from 'N' (no automatic startup) to 'Y' (automatic startup), ensures that the Oracle database automatically starts upon server boot. This configuration is essential for streamlining operations, particularly after a cleanup process, as it ensures that the database is always running and ready for connections after any server reboot, thus enhancing uptime and operational efficiency .
Dropping specific tablespaces and users in the OEM clean up process aims to remove all dependencies and configurations associated with the Oracle Enterprise Manager. This includes cleaning up schemas and tablespaces specific to components like Metadata Services, Authorization Policy Manager, and Oracle Platform Security Services. By doing so, it ensures that no lingering traces remain that could impact future operations, and maintains the database's integrity by freeing up space and avoiding potential conflicts with new installations or upgrades .