--List the size of all databases on the server
SELECT
DB_NAME(database_id) AS DatabaseName,
SUM(size * 8 / 1024) AS SizeMB
FROM sys.master_files
GROUP BY database_id;
I am a software engineer and working as an Oracle Apps DBA. I have started this blog to share my knowledge with others . Here you can find stuff related to Oracle DBA,Oracle Applications DBA,
--List the size of all databases on the server
SELECT
DB_NAME(database_id) AS DatabaseName,
SUM(size * 8 / 1024) AS SizeMB
FROM sys.master_files
GROUP BY database_id;
col component_name format A50
col parameter_name format a45 head "Parameter Name"
col parameter_value format a30 head "Value"
SELECT b.component_name,
c.parameter_name,
a.parameter_value
FROM fnd_svc_comp_param_vals a,
fnd_svc_components b,
fnd_svc_comp_params_vl c
WHERE b.component_id = a.component_id
AND b.component_type = c.component_type
AND c.parameter_id = a.parameter_id
AND c.parameter_name like '%LOG_LEVEL%';
Look at the first few lines of the Errorlog.n file for that instance. By default, the error log is located at
Program Files\Microsoft SQL Server\MSSQL.n\MSSQL\LOG\ERRORLOG
The below-mentioned locations are more important to analyze the EBS cloning issues.
/u01/PROD/fs1/inst/apps/PROD_oracleap/admin/log/clone/
/u01/PROD/fs1/EBSapps/comn/clone/bin/
RMAN> list backup of archivelog sequence between 127 and 155 thread 1;
RMAN> list backup of archivelog sequence between 112 and 160 thread 2;
After Java File deployment into an EBS Application. Please follow the below steps to take changes effect on the EBS application.
cd $AD_TOP/bin
adcgnjar
cd $ADMIN_SCRIPTS_HOME
admanagedsrvctl.sh stop oacore_server1
adapcctl.sh stop
adapcctl.sh start
admanagedsrvctl.sh start oacore_server1
First time running ETCC on newly cloned environment. While running ETCC script in database tier, it shows below error message in 19c Database
Identified database DST version: 32
Inventory load failed... LsPatchesSession::loadAndPrintInstalledPatch()
LsPatchesSession failed: RawInventory gets null OracleHomeInfo
Inventory load failed... LsPatchesSession::loadAndPrintInstalledPatch()
LsPatchesSession failed: RawInventory gets null OracleHomeInfo
Inventory load failed... LsPatchesSession::loadAndPrintInstalledPatch()
LsPatchesSession failed: RawInventory gets null OracleHomeInfo
Database home entry is not registered in an central inventory. Checked the inventory.xml file from oraInventory location and it shows only application home entries.
Use below command to register database home,
cd $ORACLE_HOME/oui/bin
./runInstaller -attachhome ORACLE_HOME=/u01/app/oracle/product/19.3.0/dbhome_1 ORACLE_HOME_NAME=OraDB19Home
$ ./adstrtal.sh
Executing service control script:
/d02/EBSTEST/fs1/inst/apps/TEST_test/admin/scripts/adapcctl.sh start
Timeout specified in context file: 100 second(s)
script returned:
****************************************************
ERROR : Timed out( 100000 ): Interrupted Exception
You are running adapcctl.sh version 120.0.12020000.6
Starting OPMN managed Oracle HTTP Server (OHS) instance ...
****************************************************
$ ./adopmnctl.sh status
You are running adopmnctl.sh version 120.0.12020000.2
Checking status of OPMN managed processes...
Optic: request(/dump?type=dms&dmsarg=[nountype=opmn_ias_instance&format=pdml]): Error connecting to OPMN at localhost:6115 -- Connection refused (Connection refused) request(/dump?type=dms&dmsarg=[nountype=opmn_ias_instance&format=pdml]) at InetSocketAddress: localhost/10.x.x.x:6115
dialOpmn: no SSL localhost:6115 timeout=60000ms
dialOpmn: connect failed (Connection refused (Connection refused)): localhost:6115
$ adopmnctl.sh startall
You are running adopmnctl.sh version 120.0.12020000.2
Starting Apache...
EXIT CODE is 152. Please check the log file for more details.
adopmnctl.sh: exiting with status 152
- Restarted the entire EBS R12.2 application services.
- Restarted the database as well.
- Restarted the Entire server.
- export TIMEDPROCESS_TIMEOUT=-1 and restarted the application services.
root@test:~# telnet localhost 6115
Trying 10.x.x.x...
telnet: Unable to connect to remote host: Connection refused
Checked the below values from the file /etc/nsswitch.conf and it should be hosts: files dns
hosts: file dns
We found localhost entry was recently added in DNS server and its reflected into server level and its affected apache services which is using localhost internally to start up services.
so we have to update the nsswitch.conf file using below mentioned steps
connect as root user
# svccfg -s name-service/switch
svc:/system/name-service/switch> listprop config
config application
config/default astring files
config/host astring "file dns"
config/value_authorization astring solaris.smf.value.name-service.switch
svc:/system/name-service/switch> setprop config/host = "files dns"
svc:/system/name-service/switch> listprop config
config application
config/default astring files
config/host astring "files dns"
config/value_authorization astring solaris.smf.value.name-service.switch
svc:/system/name-service/switch>
# svcadm refresh name-service/switch
# svcadm restart name-service/switch
Then telnet connection worked properly and Apache services started successfully.