Introduction:
After stopping the APPS tier services and database tier services, got the following errors while starting up the APPS Tier services post database services.
[oracle@test_oracle_cloud_app1 scripts]$ adstrtal.sh
You are running adstrtal.sh version 20.24.12020
Enter the APPS username: apps
Enter the APPS password:
Enter the WebLogic Server password:
adstrtal.sh: Database connection could not be established. Either the database is down or the APPS credentials supplied are wrong.
USAGE: adstrtal.sh <appsusername/appspassword> [-nothreading]
adstrtal.sh <applications_username/applications_password> -secureapps
adstrtal.sh -nodbchk
adstrtal.sh -mode=allnodes
adstrtal.sh -msimode
adstrtal.sh: exiting with status 1
Resolution:
Issue is not related to do any thing with apps user password or any of the listener on APPS Tier or database tier.
The issue is related to one of the ERP Service which did not startup with the database start.
Check the services
select name,network_name from v$services;
select
SERVICE_ID,NAME from dba_services;
login to the PDB of APPS
show pdbs;
show con_name;
Alter session set container=APPS_DB_PDB_NAME;
start the required services, in our case it was ebs_ERPTEST
SQL> exec
dbms_service.start_service(service_name=>'ebs_ERPTEST');
PL/SQL procedure successfully completed.
now start the APPS Tier services.
If you are not sure about the APPS Service, check the alert log and grep with ":Started" and start the service with the above procedure.