Posts

How to use the _FIX_CONTROL hidden parameter

  _FIX_CONTROL is a special hidden dynamic parameter which can be used to enable or disable certain bug fixes. This is typically used in the optimizer area to allow specific fixes to be turned on or off as some fixes can have a significant  effect on execution plans.  we are using the parameter _FIX_CONTROL to  enable or disable specific patches.  The syntax for using _FIX_CONTROL is: To enable: "_fix_control"='Bugno:ON'    (OR)   "_fix_control"="Bugno:1" To disable: "_fix_control"='Bugno:OFF'  (OR)   "_fix_control"="Bugno:0"   For _FIX_CONTROL to work, several conditions must be met:  The patch that is referenced must have the option to use _FIX_CONTROL.  Using _FIX_CONTROL can't be used to back out any patch.  The patch (usually an Optimizer patch)  has to be enabled to use the _FIX_CONTROL parameter. The patch must be installed and visible in the V$SYSTEM_FIX_CONTROL view.  To check this:  ...

Manually creating and Installing the HR Schema in 19c

Below steps to manually install HR schema in the database: However it can be done during DB creation through DBCA. 1. Log on to sqlplus as SYS AS SYSDBA: [oracle@shsdnbty01 admin]$ sqlplus "/as sysdba" SQL*Plus: Release 19.0.0.0.0 - Production on Fri May 5 22:54:00 2023 Version 19.3.0.0.0 Copyright (c) 1982, 2019, Oracle.  All rights reserved. Connected to: Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production Version 19.3.0.0.0 SQL> show pdbs;     CON_ID CON_NAME                       OPEN MODE  RESTRICTED ---------- ------------------------------ ---------- ----------          2 PDB$SEED                       READ ONLY  NO          3 DB1                            READ WRITE NO SQL> alter session set c...

HOW TO ALTER PROFILE

Only common users who have been commonly granted the ALTER PROFILE system privilege can alter or drop the mandatory profile, and only from the CDB root. We cannot remove a limit from the DEFAULT profile. Making a Password Unavailable: The following statement makes the password of the new_profile profile unavailable for reuse for 90 days:     ALTER PROFILE new_profile     LIMIT PASSWORD_REUSE_TIME 90     PASSWORD_REUSE_MAX UNLIMITED;     Setting Default Password Values:  The following statement defaults the PASSWORD_REUSE_TIME value of the app_user profile to its defined value in the DEFAULT profile:    ALTER PROFILE app_user     LIMIT PASSWORD_REUSE_TIME DEFAULT    PASSWORD_REUSE_MAX UNLIMITED;     Limiting Login Attempts and Password Lock Time:  The following statement alters profile app_user with FAILED_LOGIN_ATTEMPTS set to 5 and PASSWORD_LOCK_TIME set to 1:   ALTER PROFILE a...

How to solve xdpyinfo Errors

  The following error messages indicate that xdpyinfo is not installed: Checking monitor: must be configured to display at least 256 colors Could not execute auto check for display colors using command /usr/bin/xdpyinfo. Check if the DISPLAY variable is set. Failed. The xdpyinfo program must be installed. Type the following command. yum install xorg-x11-utils-<version-number> If the program is already installed, check whether the oracle user has execute privileges. [oracle@ouzo ~]$ cd /usr/bin [oracle@ouzo bin]$ ls -al | grep xdpyinfo -rwxr-xr-x   1 root root      38112 Feb 23  2015 xdpyinfo If the oracle user does not have executable privileges, log in as root and execute this command: xhost +SI:localuser:oracle Log in as the oracle user and run the installer. ./runInstaller

Oracle 19c DB install on Oracle Linux 8 – avoid [WARNING] [INS-08101] Unexpected error while executing the action at state: ‘supportedOSCheck’

Image
  [INS-08101] Unexpected error while executing the action at state: ‘supportedOSCheck’.  Above error occurred while  19c (19.3) binary  installation on server Oracle enterprise Linux version version 8.1 or greater   Met INS-08101 when I installed Oracle database 19c on Oracle Linux 8 update   Unexpected error while executing the action at state: 'supportedOSCheck' Solution 1 To solve this error 'supportedOSCheck' can set environment variable  CV_ASSUME_DISTID , either temporarily or permanently. At runtime, we can export the variable $ export CV_ASSUME_DISTID=OEL8.1 Solution 2 Or we can uncomment the line containing the variable in the  CVU configuration file .  $ vi $ORACLE_HOME/cv/admin/cvu_config #CV_ASSUME_DISTID=OEL5 Just remove the leading # the line

How to increase OACORE memory in R12.2

Image
 Need to check  OS admin first to ensure system has sufficient 'free RAM' before changing Heap Size.  Login to Console http://myserver.cn.com :<admin Port>/console/ Go to the below section. Domain Configurations > Environment > click the link " Servers " On right side will see  Configuration > " Customize this table "      Click  >      oacore_server1    Click   Server Start  ("Sub Tab")     Click Lock & Edit     Go to Arguments     Entry like this.   -Xms512m -Xmx1024m -Djava.security.policy=/../fs1/FMW_Home/wlserver_10.3/server/lib/weblogic.policy     Change to     -Xms1024m -Xmx2048m -Djava.security.policy=/.../fs1/FMW_Home/wlserver_10.3/server/lib/weblogic.policy Click the ' Save ' button to save the configuration changes. Once the customizations are complete and saved, click the 'Activate Changes' button in the 'Chang...

How To Set Up Cron Jobs In Lnix

Image
  CRONTAB What is Crontab? Crontab is a file which contains the schedule of cron entries to be run and at specified times. Crontab Commands             export EDITOR=vi ;to specify a editor to open crontab file.    crontab -e      Edit crontab file, or create one if it doesn’t already exist.     crontab -l     crontab list of cronjobs , display crontab file contents. crontab -r     Remove your crontab file. crontab -v     Display the last time you edited your crontab file. Crontab Examples A line in crontab file like below removes the tmp files from /home/appsolworld/tmp each day at 6:30 PM. 30     18     *     *     *         rm /home/appsolworld/tmp/* Crontab every hour This is most commonly used for running cron every hour and execut...