Oracle Linux DBA basic commands/ Troubleshooting
-----------Who logged in to Linux / Bruit force attack login history----------
who | cut -d' ' -f1 | sort | uniqlast
---------------------Oracle EBS Application Version/ Details -------------------------------
Finding Location of appl_top from dabatase
• Finding hosts file on oracle Server for host entry
( needs to login through root user for editing the host file)
----------------------Concurrent manager IS DOWN --------------------------
Shutdown all the services and check the fndlbr
appclone@ebststcm02:/oraapp/ebsclone/inst/apps/EBSCLONE_ebststcm02/admin/scripts$ ps -ef | grep FNDLIBR|grep appclone
appclone 8328 7742 0 13:11:21 pts/1 0:00 grep FNDLIBR
appclone@ebststcm02:/oraapp/ebsclone/inst/apps/EBSCLONE_ebststcm02/admin/scripts$ cd
appclone@ebststcm02:~$ sqlplus apps/apps
SQL*Plus: Release 10.1.0.5.0 - Production on Fri Jun 21 13:11:27 2019
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Automatic Storage Management, OLAP, Data Mining
and Real Application Testing options
SQL> @cmclean.sql
DOC>
DOC>WARNING : Do not run this script without explicit instructions
DOC>from Oracle Support
DOC>
DOC>
DOC>*** Make sure that the managers are shut down ***
DOC>*** before running this script ***
DOC>
DOC>*** If the concurrent managers are NOT shut down, ***
DOC>*** exit this script now !! ***
DOC>
DOC>#
If you wish to continue type the word 'dual': dual
-----------------------------------------------------------------------
-- Updating invalid process status codes in FND_CONCURRENT_PROCESSES
0 rows updated.
-----------------------------------------------------------------------
-- Updating running processes in FND_CONCURRENT_QUEUES
-- Setting running_processes = 0 and max_processes = 0 for all managers
50 rows updated.
-----------------------------------------------------------------------
-- Updating invalid control_codes in FND_CONCURRENT_QUEUES
0 rows updated.
50 rows updated.
-----------------------------------------------------------------------
-- Updating any Running or Terminating requests to Completed/Error canceled by CMCLEAN
0 rows updated.
----------------------------------------------------------------------
-- Updating any Runalone flags to 'N'
Updated 0 rows of runalone_flag in fnd_conflicts_domain to 'N'
-----------------------------------------------------------------------
Updates complete.
Type commit now to commit these updates, or rollback to cancel.
-----------------------------------------------------------------------
> commit
SQL> commit
2
SQL>Exit
---------------------Database is down /TNS listener is down ------------------------------------
Check if TNS is down using below command
$ lsnrctl status
Enter the WebLogic Server password:
adstpall.sh: Database connection could not be established. Either the database is down or the APPS credentials supplied are wrong.
Set the database env variable then sqlplus / as sysdba and then stratup as below to start db
No comments:
Post a Comment