This blog contains Oracle Database and RHEL and OEL support and troubleshoot documents. Most of them are copied from Oracle support Documents and references are mentioned.
Tuesday, April 18, 2017
Sunday, April 16, 2017
Start and stop Concurrent Manager in 11i Apps
adcmctl.sh is one of the scripts in oracle applications 11i for starting and stopping Concurrent Manger service. It requires apps username and password to run this script. Using this predefined script we can start, stop, abort and check the status of Concurrent Manger Service.
mydb:applprod$sh adcmctl.sh start apps/apps
You are running adcmctl.sh version 115.31
Starting concurrent manager for PROD_806_BALANCE …
Starting PROD_0725@PROD_806_BALANCE Internal Concurrent Manager
Default printer is noprint
adcmctl.sh: exiting with status 0
mydb:applprod$sh adcmctl.sh stop apps/apps
You are running adcmctl.sh version 115.31
Shutting down concurrent managers for PROD_806_BALANCE …
Submitted request 15895555 for CONCURRENT FND SHUTDOWN
adcmctl.sh: exiting with status 0
mydb:applprod$sh adcmctl.sh status apps/apps
You are running adcmctl.sh version 115.31
Internal Concurrent Manager is Active.
adcmctl.sh: exiting with status 0
Please check is there any concurrent process is there before starting concurrent processing server. If the concurrent process still exists after shutdown kindly wait for some time for clearing the requests
The bellow command will tell you how many concurrent processes are running.Here applprod is the user for the application file system.
For finding FNDLIBR process:
ps -ef|grep applprod|grep FNDLIBR
For counting FNDLIBR process
ps -ef|grep applprod|grep FNDLIBR|wc –l
For killling FNDLIBR process
kill -9 <PID>
Find Concurrent manager logs on Oracle App
Saturday, April 15, 2017
How to Flush Mail Queue in Linux
# sendmail -bp
# cd /var/spool/mqueue/
# ls
# rm *
# /etc/init.d/sendmail restart
----------------------------------------------------------------------------------------------------------------------
vi /etc/mail/mailertable
expolanka.com esmtp:[10.2.20.160]
restart sendmail
qtool.pl Tool
# mailq
Sample outputs:
/var/spool/mqueue (1 request) -----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient----------- p61J75u5037681 893 Fri Jul 1 14:078BITMIME (Deferred: Connection timed out with example.com.) Total requests: 1
# ./qtool.pl -C /etc/mail/sendmail.cf -d /var/spool/mqueue/p61J75u5037681
Where,
- -C /etc/mail/sendmail.cf – Specify sendmail config file.
- -d /var/spool/mqueue/p61J75u5037681 – Delete the messages specified by source. In this case by Q-ID.
- qtool.pl from Sendmail source code contrib directory.
- Deleting mail from the mail queue using various Perl script wrapper.
QIDS="qid1 qid2 qidN" |
QIDS="$(mailq | grep -B1 'example.com' | grep '^[a-z]' | awk '{print $1}' | sed 's/\*$//')" |
for q in $QIDS do /usr/local/bin/qtool.pl -C /etc/mail/sendmail.cf -d /var/spool/mqueue/$q done |
More links and information:
There are several ways to change the hostname of a machine running Redhat 6. These also works on CentOS, Fedora and older/other Redhat variants.
First: The "hostname" command.
You can use the hostname command to see the current host name of the system.
# hostname
ebisapps.expolanka.com
You can also use the hostname command to change the host name of the machine.
# hostname ebis.expolanka.com
Then issue the hostname command again to see the changes.
# hostname
ebis.expolanka.com
This only makes a temporary or non-persistent change of hostname.
Second: The /etc/sysconfig/network configuration file. (preferred method)
In order for the change to survive a reboot, or to make it persistent, you must change it in the /etc/sysconfig/network file.
Open the file in your favorite editor and change the following line to reflect your desired hostname.
# vi /etc/sysconfig/network
HOSTNAME=ebis.expolanka.com
After making changing to the configuration file you need to restart the network service in order to read that file.
# /etc/init.d/network restart
NOTE: Do not do this remotely (via ssh) or you will lose your connection.
If you issue the hostname command now, you will see the hostname has changed.
Third: The /proc/sys/kernel/hostname entry.
Another simple way to change the hostname is to echo the hostname into the /proc/sys/kernel/hostname file.
# echo "ebis.expolanka.com" > /proc/sys/kernel/hostname
NOTE: Using the /etc/sysconfig/network file is the preferred method to set the permanent hostname of a system. Anything in the /proc/sys/kernel/hostname file will be overridden by the /etc/sysconfig/network file during a reboot.
If you are using Red Hat 7 (RHEL7), CentOS 7 or newed versions of Fedora click below of instructions on changing your hostname.
http://www.putorius.net/2015/04/how-to-change-system-hostname-in-red.html
Thursday, April 6, 2017
- GNOME Desktop
Environment
- Editors
- Graphical Internet
- Text-based Internet
- Development Libraries
- Development Tools
- Legacy Software
Development
- Server Configuration
Tools
- Administration Tools
- Base
- Legacy Software
Support
- System Tools
- X Window System
Operating System Name
|
Supported Version
|
Oracle Linux
(32-bit)
|
4, 5 -
installation and maintenance pack
|
Operating System
|
Required Patches
|
Oracle Linux 5*
Red Hat Enterprise
Linux 5* (base and
Advanced Platform)
|
Update 1 (Oracle Linux 5.1) or higher is required
Update 1 (RHEL 5.1) or higher is required.
The following packages are not part of the Oracle Linux 5 or
RHEL 5 distribution media and must be installed manually1:
Ensure that the following are installed from the Oracle Linux 5
or RHEL 5 distribution media:
Note :
|
General
Requirements for UNIX/Linux
Kernel Settings
LD_LIBRARY_PATH Environment Variable
Parameter
|
Value
|
adovars
|
LD_LIBRARY_PATH or
SHLIB_PATH (HP-UX PA-RISC only) or LIBPATH (IBM AIX only)
|
iAS Oracle Home
|
LD_LIBRARY_PATH or
SHLIB_PATH (HP-UX PA-RISC only) or LIBPATH (IBM AIX only)
|
Tools Oracle Home
|
LD_LIBRARY_PATH or
SHLIB_PATH (HP-UX PA-RISC only) or LIBPATH (IBM AIX only)
|
Additional Information:
See AutoConfig in Oracle
Applications Maintenance Utilities.
|
Linux x86 and Linux x86-64 (AMD64/EM64T) Requirements
Note:
You can only install Oracle
Applications on an x86-64 architecture server if the operating system is
32-bit Linux or Windows. If your operating system is 64-bit, contact your
operating system vendor to obtain a 32-bit operating system before installing
Oracle Applications.
|
All Linux x86 and Linux
x86-64 (AMD64/EM64T) Operating Systems
Kernel Requirements
Operating System
|
Kernel
|
Red Hat Enterprise Linux 5
|
2.6.18-8.EL
|
glibc Requirements
Operating System
|
glibc
|
Oracle Linux 5
|
2.5-18
|
Domain Name System (DNS) Resolver Parameters
options attempts:5
options timeout:15
Net Service Listeners in Multi-user
Installations
$ chmod 777 /var/tmp/.oracle
Oracle Linux 4 and 5, Red
Hat Enterprise Linux 3, 4 and 5 and SUSE Linux Enterprise Server 8, 9 and 10
Verifying Host Names
2. 127.0.0.1 localhost.localdomain localhost
<ip_address> <node_name>.<domain_name> <node_name>
4. HOSTNAME=<node_name>.<domain_name>
5.
Modifying
the Number of Open File Descriptors
Open the
/etc/security/limits.conf file and change the existing values for
"hard" and "soft" parameters as follows. Restart the system
after making changes.* hard nofile 65535
* soft nofile 4096
* hard nofile 32768
* soft nofile 32768
Modifying the Port Range Values
Open the
/etc/sysctl.conf file and change the value of net.ipv4.ip_local_port_range as
follows. Restart the system after making changes.net.ipv4.ip_local_port_range = 10000 65000
Please note
that this range is a recommended range, and may need to be adjusted according
to the specific needs of the user's environment in order to avoid port
conflicts.# ln -s /usr/lib/libdb.so.2 /usr/lib/libdb.so.3
- Verify
that the host name setting is correct. The command should return a fully
qualified host name. For example: <host_name>.<domain_name>.
Monday, April 3, 2017
OPatch Installation Steps
(I) Prerequisites
--------------------
Before you install or deinstall the patch, ensure that you meet the following requirements:
$ unzip p31602782_198000DBRU_AIX64-5L.zip
$ echo $PATH
Postinstallation
Perform the following postinstallation steps described in Loading Modified SQL Files Into the Database.
1.4.1 Loading Modified SQL Files Into the Database
To perform the postinstallation, follow these steps:
The following steps load modified SQL files into the database.
Datapatch is run to complete the post-install SQL deployment for the Update. For further details about Datapatch, including Known Issues and workarounds to common problems, see: Datapatch: Database 12c or later Post Patch SQL Automation (Doc ID 1585822.1).
For each separate database running on the same shared Oracle home being patched, run the
datapatch
utility as described in the following table.Table 1-1 Steps to Run the Datapatch Utility for Standalone Database Versus Single or Multitenant (CDB or PDB) Database
Steps Standalone Database Steps Single or Multitenant (CDB or PDB) Database 1
% sqlplus /nolog
1
% sqlplus /nolog
2
SQL> Connect / as sysdba
2
SQL> Connect / as sysdba
3
SQL> startup
Footnote 13
SQL> startup
Footnote 14
SQL> quit
4
SQL> alter pluggable database all
open
;
Footnote 25
% cd $ORACLE_HOME/OPatch
5
SQL> quit
6
% ./datapatch -verbose
6
% cd $ORACLE_HOME/OPatch
7
% sqlplus /nolog
7
% ./datapatch -verbose
8
SQL> Connect / as sysdba
8
% sqlplus /nolog
9
SQL> shutdown
9
SQL> Connect / as sysdba
10
SQL> startup
Foot 310
SQL> shutdown
11
SQL> startup
Footnote 312
SQL> alter pluggable database all open;
1.4.2 - For no RU update patches
1. For each database instance running on the Oracle home being patched, connect to the database using SQL*Plus. Connect as SYSDBA and run the below script as follows:
$ sqlplus /nolog
SQL> CONNECT / AS SYSDBA
SQL> @?/sqlpatch/31602782/postinstall.sql
2. Check the output for any errors.
How to fix “OPatch failed with error code 41”
After fixing PDB$SEED, you can apply datapatch to it alone.
$ /u01/app/oracle/product/12.1.0.2/dbhome_1/OPatch/datapatch -verbose -pdbs 'PDB$SEED'
how to check data patch status.
RMAN-20207: UNTIL TIME or RECOVERY WINDOW is before RESETLOGS time https://shivanandarao-oracle.com/2012/12/05/rman-20207-until-time-or-re...
-
DBCA Fails To Create Oracle 19c Database On AIX [DBT-05509] (Doc ID 2663388.1 ) In this Document ...
-
[oracle@db ~]$ dbca DISPLAY not set. Set DISPLAY environment variable, then re-run. [oracle@db dbhome_1]$ DISPLAY=:1.0 ; export DISPL...
-
Oracle auditing setup & configuration The Oracle audit command is used to to create specific audit trails for Oracle tables. to ena...