Wednesday, 4 June 2014


CHECKING THE GUEST USER PASSWORD IN ORACLE 


1. Check Value in DBC File

grep -i GUEST_USER_PWD $FND_SECURE/hostname_SID.dbc
GUEST_USER_PWD=GUEST/ORACLE

2. Check profile option value

sqlplus apps/passwd
SQL> select fnd_profile.value(’GUEST_USER_PWD’) from dual;
FND_PROFILE.VALUE(’GUEST_USER_PWD’)
——————————————————————————–
GUEST/ORACLE

The output of step 1 and step 2 must be same
In our case it is ORACLE

3. Guest user connectivity check

sqlplus apps/passwd
SQL> select FND_WEB_SEC.VALIDATE_LOGIN('GUEST','ORACLE') from dual;
FND_WEB_SEC.VALIDATE_LOGIN('GUEST','ORACLE')
——————————————————————————–-----
Y

The output should return Y 


RESET THE GUEST USER PASSWORD :


By mistake if somebody changed the GUEST password, the application will become not accessible.

To make sure the password is changed.

SQL> select fnd_web_sec.validate_login(‘GUEST’,'ORACLE’) from dual ;
FND_WEB_SEC.VALIDATE_LOGIN(‘GUEST’,'ORACLE’)
——————————————————————————–
N

Reset the password using FNDCPASS

1. Bring down the applications services.
2. Change the GUEST password using

FNDCPASS APPS/<Password> 0 Y SYSTEM/<Password> USER GUEST ORACLE

If FNDCPASS does not work. login using forms launcher….
http://<hostname>:<port>/dev60cgi/f60cgi
look for the profile… Sign-on Password Length to 12
Save the changes… Then run FNDCPASS again

Make sure now, the password is valid.

SQL>  select fnd_web_sec.validate_login(‘GUEST’,'ORACLE’) from dual ;
FND_WEB_SEC.VALIDATE_LOGIN(‘GUEST’,'ORACLE’)
——————————————————————————–
Y

Bounce the DB and Application Services….


Set back the profile option sign-on password length back to 8 from 12.




LOG FILE LOCATIONS


11i :

Database Tier Logs 

Alert Log File location:
$ORACLE_HOME/admin/$CONTEXT_NAME/bdump/alert_$SID.log

Trace file location:
$ORACLE_HOME/admin/SID_Hostname/udump

Application Tier Logs

Start/Stop script log files location:
$COMMON_TOP/admin/log/CONTEXT_NAME/ 

OPMN log file location
$ORACLE_HOME/opmn/logs/ipm.log

Apache, Jserv, JVM log files locations:
$IAS_ORACLE_HOME/Apache/Apache/logs/ssl_engine_log
$IAS_ORACLE_HOME/Apache/Apache/logs/ssl_request_log
$IAS_ORACLE_HOME/Apache/Apache/logs/access_log
$IAS_ORACLE_HOME/Apache/Apache/logs/error_log
$IAS_ORACLE_HOME/Apache/JServ/logs

Concurrent log file location:
$APPL_TOP/admin/PROD/log or $APPLLOG/$APPLCSF

Patch log file location:
$APPL_TOP/admin/PROD/log

Worker Log file location:
$APPL_TOP/admin/PROD/log

AutoConfig log files location:
Application Tier:
$APPL_TOP/admin/SID_Hostname/log//DDMMTime/adconfig.log

Database Tier:
$ORACLE_HOME/appsutil/log/SID_Hostname/DDMMTime/adconfig.log

Error log file location:
Application Tier:
$APPL_TOP/admin/PROD/log

Database Tier :
$ORACLE_HOME/appsutil/log/SID_Hostname

R12 :


Database Tier Logs 

Alert Log File location:
$ORACLE_HOME/admin/$CONTEXT_NAME/bdump/alert_$SID.log

Trace file location:
$ORACLE_HOME/admin/SID_Hostname/udump

Application Tier Logs

Start/Stop script log files location:
$COMMON_TOP/admin/log/CONTEXT_NAME/ 

OPMN log file location
$ORACLE_HOME/opmn/logs/ipm.log

Apache, Jserv, JVM log files locations:
$IAS_ORACLE_HOME/Apache/Apache/logs/ssl_engine_log
$IAS_ORACLE_HOME/Apache/Apache/logs/ssl_request_log
$IAS_ORACLE_HOME/Apache/Apache/logs/access_log
$IAS_ORACLE_HOME/Apache/Apache/logs/error_log
$IAS_ORACLE_HOME/Apache/JServ/logs

Concurrent log file location:
$APPL_TOP/admin/PROD/log or $APPLLOG/$APPLCSF

Patch log file location:
$APPL_TOP/admin/PROD/log

Worker Log file location:
$APPL_TOP/admin/PROD/log

AutoConfig log files location:
Application Tier:
$APPL_TOP/admin/SID_Hostname/log//DDMMTime/adconfig.log

Database Tier:
$ORACLE_HOME/appsutil/log/SID_Hostname/DDMMTime/adconfig.log

Error log file location:
Application Tier:
$APPL_TOP/admin/PROD/log

Database Tier :
$ORACLE_HOME/appsutil/log/SID_Hostname

On the database tier: 
RDBMS $ORACLE_HOME/appsutil/log/< context >/ApplyDBTier_< timestamp >.log 

On the application tier: 
$INST_TOP/admin/log/ApplyAppsTier_< timestamp >.log 
Logs for the adconfig are located: 

On the database tier: 
RDBMS $ORACLE_HOME/appsutil/log/< context >/< timestamp >/adconfig.log 
RDBMS $ORACLE_HOME/appsutil/log/< context >/< timestamp >/NetServiceHandler.log 

On the application tier: 
$INST_TOP/admin/log/< timestamp >/adconfig.log 
$INST_TOP/admin/log/< timestamp >/NetServiceHandler.log

Tuesday, 3 June 2014


 BLOCKING SESSION QUERIES


1. Kill a blocking session if the sid was known already

e.g:
To find a serial# :
select sid,serial#,status,sql_address,action,module from v$session where sid=147;

To kill a session :
ALTER SYSTEM KILL SESSION 'SID,SERIAL#';

2. Kill a blocking session if the spid was known already

e.g:
To find a serial# :
select sid,serial#,status,action,event from v$session where paddr=(select addr from v$process where spid=26722);

To kill a session :
ALTER SYSTEM KILL SESSION 'SID,SERIAL#';



HOW TO ADD A NEW PRINTER IN ORACLE APPLICATION

Solution :

Login to oracle application as systemAdmin 

select install --> Printer -------> Click "Register"



Click Add---> New



Save it.