Skip to main content

Posts

Showing posts from October, 2021

Various Bash Shell Script to display Pyramid and Pattern

Various Bash Shell Script to display Pyramid and Pattern In this, post I am sharing how to create half and full pyramids, Floyd's triangle and Pascal's triangle in bash shell script. Bash Shell Script to print half pyramid using * * * * * * * * * * * * * * * * Script: v_rows=5 for((i=1; i<=$v_rows; i++)) do   for((j=1; j<=$i; j++))   do     echo -n "* "   done   echo done Bash Shell Script to print half pyramid using numbers 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 Script: v_num=1 v_rows=5 for((i=1; i<=$v_rows; i++)) do   for((j=1; j<=$i; j++))   do     echo -n "$v_num "     v_num=$((v_num + 1))   done   v_num=1   echo done Bash Shell Script to print inverted half pyramid using * * * * * * * * * * * * * * * * Script: v_rows=5 for((i=$v_rows; i>=1; i--)) do   for((j=1; j<=$i; j++))   do     echo -n "* "   done   echo done Bash Shell Script to print inverted half pyramid us...

Fix “Device eth0/eth1 does not seem to be present, delaying initialization” Error

Fix “Device eth0/eth1 does not seem to be present, delaying initialization” Error After cloning OEL Servers, when starting the eth0, it is no more available. Solution: 1) Check Network ifconfig lo        Link encap:Local Loopback           inet addr:127.0.0.1  Mask:255.0.0.0           inet6 addr: ::1/128 Scope:Host           UP LOOPBACK RUNNING  MTU:18436  Metric:1           RX packets:0 errors:0 dropped:0 overruns:0 frame:0           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:0           RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)    2) Try to start Eth0 device # ifup eth0 Device eth0 does not seem to be present, delaying initialization 3) Delete the networking interface rules file so that it can be regenerated and reboot t...

Weblogic not starting as Datasource is down

Weblogic not starting as Datasource is down WebLogic Server Fails to Come to RUNNING Mode If Not All Datasources are up. The Managed server will go not to ADMIN mode. Solution: Make sure the data source is connected to the correct database and the database is working. or  If we want to override the database being down and still want to start  Add -Dweblogic.deployment.IgnorePrepareStateFailures=true Example: vi $DOMAIN_HOME/bin/setDomain.sh JAVA_OPTIONS="-Dweblogic.deployment.IgnorePrepareStateFailures=true ${JAVA_OPTIONS}" export JAVA_OPTIONS Note:  Overrides the default deployment behavior by allowing a server to transition to Running even with static deployment Prepare failures. This server-level flag may cause inconsistent deployment behavior within clusters, such as issues with HttpSessionReplication or SFSB replication. Restart Services and Verify If you like please follow and comment

ORA-00379: no free buffers available in buffer pool DEFAULT for block size 8K 16K or 32K errors

ORA-00379: no free buffers available in buffer pool DEFAULT for block size 8K 16K or 32K errors Error: Upgrade Gather Stats or running any SQL  or RMAN restore fails with ORA-00379: no free buffers available in buffer pool DEFAULT for block size 16K or 32K errors SQL> exec dbms_stats.gather_table_stats('CORECAS','LOS_APP_APPLICATIONS',estimate_percent=>100, cascade=>true); BEGIN dbms_stats.gather_table_stats('CORECAS','LOS_APP_APPLICATIONS',estimate_percent=>100, cascade=>true); END; * ERROR at line 1: ORA-00379: no free buffers available in buffer pool DEFAULT for block size 16K ORA-06512: at "SYS.DBMS_STATS", line 23938 ORA-06512: at "SYS.DBMS_STATS", line 23989 ORA-06512: at line 1   SOLUTION There has been no memory allocated to 8K or 16K or 32K block buffers cache. Explicitly allocating memory to the non-default block buffers will resolve the ORA-00379: no free buffers available in buffer pool DEFAULT for block siz...

Query to find which Concurrent Manager Ran a Specific Concurrent Request

Query to find which Concurrent Manager Ran a Specific Concurrent Request 1. Get the request_id 2.  Log into SQL*Plus as the APPS user. 3.  Run one of the scripts below: For Single Request ID select b.USER_CONCURRENT_QUEUE_NAME from fnd_concurrent_processes a, fnd_concurrent_queues_vl b, fnd_concurrent_requests c where  a.CONCURRENT_QUEUE_ID = b.CONCURRENT_QUEUE_ID and    a.CONCURRENT_PROCESS_ID = c.controlling_manager and    c.request_id = &request_id;   For Multiple Request ID select c.request_id, b.user_concurrent_queue_name, a.logfile_name from fnd_concurrent_processes a, fnd_concurrent_queues_vl b, fnd_concurrent_requests c where a.concurrent_queue_id = b.concurrent_queue_id and a.concurrent_process_id = c.controlling_manager and c.request_id in (&request_id1,&request_id2,&request_id3); If you like please follow and comment

Weblogic-Starting Managed Server the Deployments giving error (java.awt.AWTError: Can't connect to X11 window server using '[hostname:port]' as the value of the DISPLAY variable)

Weblogic-Starting Managed Server the Deployments giving error (java.awt.AWTError: Can't connect to X11 window server using '[hostname:port]' as the value of the DISPLAY variable) Cause: Issue comes from environment variable setup on OS level, nothing with WebLogic Solution: unset DISPLAY or export JAVA_OPTS=-Djava.awt.headless=true or  Edit $DOMAIN_HOME/bin/setDomainEnv.sh and add below in JAVA_OPTIONS -Djava.awt.headless=true If you like please follow and comment

Demantra-Error - Installer User Interface Mode Not Supported

Demantra Error - Installer User Interface Mode Not Supported I was getting an error   - "Installer User Interface Mode Not Supported" immediately after the launch of the Spectrum installer.   Solution:  This is a Microsoft Windows compatibility issue.  To resolve the problem, right click the Spectrum executable(setup.exe) that you are using and select "Properties".  Navigate to the Compatibility Tab and select the "Run this program in compatibility mode for:" option and set it to another Windows version: If this still don't work, do Below Right-click the installer, and click Troubleshoot Compatibility. In Select Troubleshooting Options, select Try Recommended Settings Option. Test the program to check that it runs successfully. Save the settings. Now run the installer. The installer runs successfully For me, it worked with the below compatibility as I am using  Microsoft Windows Server 2016. If you like please follow and comment

Explaining Environment Files and Important Variables in Oracle EBS Apps R12

Explaining Environment Files and Important Variables in Oracle EBS Apps R12 If you like please follow and comment

Old Tenda Router as WiFi Extender

Old Tenda Router as WiFi Extender If you like please follow and comment

How to remove multiple space when using cut command

How to remove multiple space when using cut command If we want to use cut command but there are more space in the delimiter then you will not get proper output. So to avoid the we can use tr command to squeeze the multiple spaces and then use  cut command Example: df -h |tr -s ' ' |cut -d ' ' -f 1,5 If you like please follow and comment

Shell Script to Start and Stop Weblogic Services

Shell Script to Start and Stop Weblogic Services In this post, I am sharing the script to stop and restart weblogic services. Please make sure boot.properties file is present and updated with correct username and password. Note: The port number used here for managed server stop/start is the Admin Server port number(7082) 1) Create an Environment File $ cat  /home/appweb/bin/HS/ 12c_wls.env export USR=weblogic export PASS=webl0gic export MW_HOME=/u01/oracle/product/Middleware/12.2.1 export WL_HOME=/u01/oracle/product/Middleware/12.2.1/wlserver export DOMAIN_HOME=/u01/oracle/product/Middleware/12.2.1/user_projects/domains/test_domain export PATH=/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin 2) Create a Start Script $ cat new_weblogic_Start.sh . /home/appweb/bin/HS/12c_wls.env $WL_HOME/server/bin/setWLSEnv.sh $DOMAIN_HOME/bin/setDomainEnv.sh echo "Starting Node Manager" $DOMAIN_HOME/bin/startNodeManager.sh > $MW_HOME/start_stop_logs/nodeManager...

Error: Server is running in Production Mode and the System Console to read the password securely from the command line was not found

 <Error> <Security> <BEA-090782> <Server is running in Production Mode and the System Console to read the password securely from the command line was not found. While starting the weblogic server, we might see below error. <Oct 7, 2021 11:59:10 PM EDT> <Info> <Security> <BEA-090065> <Getting boot identity from user.> Enter username to boot WebLogic server:<Oct 7, 2021 11:59:10 PM EDT> <Error> <Security> <BEA-090782> <Server is running in Production Mode and the System Console to read the password securely from the command line was not found. The System Console is not present if stdin, stdout, or stderr is redirected when starting WebLogic Server.> <Oct 7, 2021 11:59:10 PM EDT> <Notice> <WebLogicServer> <BEA-000388> <JVM called the WebLogic Server shutdown hook. The server will force shutdown now.> <Oct 7, 2021 11:59:10 PM EDT> <Notice> <WebLogicServer> ...

Shell script to check if the Linux host is up or not

Shell script to check if the Linux host is up or not In this script we are checkiing if the host is responsive and alive or not. Also it will send  mail. I am going to pass a parameter for host which needs to be check. vi host_alive.sh #!/bin/bash host_check=$1 count=$( ping -c 1 $host_check | grep icmp* | wc -l ) if [ $count -eq 0 ] then     echo "Host is not Alive! Please check.." |mailx -s "Critical: $host_check is not responsive" else     echo "Yes! Host is Alive!" fi Usage: ./host_alive.sh funebs122.lab If you like please follow and comment