Tuesday, July 21, 2015

weblogic uninstall 10.3.6

Stop the Admin Server and Managed Server

 Go to WL_HOME/uninstall

sh uninstall.sh

uninstall all the components .Remove some of the related directories Manually.

Thursday, July 16, 2015

ORA-07445: exception encountered: core dump [nstimexp()+36] [SIGSEGV] [ADDR:0x58] [PC:0x76E1482] [Address not mapped to object]

1. Use the workaround:
    Set sqlnet.expire_time=0 in $ORACLE_HOME/network/admin/sqlnet.ora, on the server.
    Restart the listener to ensure that these changes take effect.

Friday, July 10, 2015

Removing SSL on a Cloned EBS R12.1.3 instance


txkrun.pl -script=SetAdvCfg \-appsuser=apps -appspass=apps -disable=SSL \-s_webport=8007


This script will remove all https configuration from context file and other areas too if any.


Wednesday, July 8, 2015

SYSADMIN Password Retrival in R12

How verify the sysadmin password from command line?
*********************************************************************************


Ans:
This utility can be used to verify the GUEST/ORACLE password
SQL>select fnd_web_sec.validate_login('SYSADMIN','')from dual;
If it returns Y then sysadmin password is correct
If it returns N then sysadmin password that we are using
Eg:
SQL> select fnd_web_sec.validate_login('SYSADMIN','SYSADMIN123') from dual;
FND_WEB_SEC.VALIDATE_LOGIN('SYSADMIN','SYSADMIN123')
--------------------------------------------------------------------------------
N
SQL> select fnd_web_sec.validate_login('SYSADMIN','SYSADMIN') from dual;
FND_WEB_SEC.VALIDATE_LOGIN('SYSADMIN','SYSADMIN')
--------------------------------------------------------------------------------
Y


CREATE OR REPLACE PACKAGE xxx_GET_PWD AS
FUNCTION decrypt (KEY IN VARCHAR2, VALUE IN VARCHAR2)
RETURN VARCHAR2;
END XXX_GET_PWD;
/

CREATE OR REPLACE PACKAGE BODY xxx_GET_PWD AS
 FUNCTION decrypt (KEY IN VARCHAR2, VALUE IN VARCHAR2)
 RETURN VARCHAR2 AS
 LANGUAGE JAVA NAME 'oracle.apps.fnd.security.WebSessionManagerProc.decrypt
 (java.lang.String,java.lang.String) return java.lang.String';
 END XXX_GET_PWD;
/

SELECT Usr.User_Name,
 Usr.Description,
 XXX_GET_PWD.Decrypt (
 (SELECT (SELECT XXX_GET_PWD.Decrypt (
 Fnd_Web_Sec.Get_Guest_Username_Pwd,
 Usertable.Encrypted_Foundation_Password)
 FROM DUAL)
 AS Apps_Password
 FROM applsys.Fnd_User Usertable
 WHERE Usertable.User_Name =
 (SELECT SUBSTR (
 Fnd_Web_Sec.Get_Guest_Username_Pwd,
 1,
 INSTR (Fnd_Web_Sec.Get_Guest_Username_Pwd,
 '/')
 - 1)
 FROM DUAL)),
 Usr.Encrypted_User_Password)
 Password
 FROM applsys.Fnd_User Usr
 WHERE Usr.User_Name = '&User_Name';

USER_NAME
--------------------------------------------------------------------------------
DESCRIPTION
--------------------------------------------------------------------------------
PASSWORD
--------------------------------------------------------------------------------
SYSADMIN
System Administrator
xxxxxx

Wednesday, July 1, 2015

12.2.4 Upgrade Patch has been Hang due to error java.sql.SQLRecoverableException: IO Error: Got minus one from a read call

Patch Error: workerlog shows below error
While applying the upgrade patch of 12.2.4 am getting below error. 

Reading product information from file... 

Reading language and territory information from file... 

Reading language information from applUS.txt ... 
Temporarily resetting CLASSPATH to: 
"/apps/dba1mgr/VISAPPL/fs1/EBSapps/appl/ad/12.0.0/java/adjava.zip:/apps/dba1mgr/VISAPPL/fs1/EBSapps/comn/util/jdk32/lib/dt.jar:/apps/dba1mgr/VISAPPL/fs1/EBSapps/comn/util/jdk32/lib/tools.jar:/apps/dba1mgr/VISAPPL/fs1/EBSapps/comn/util/jdk32/jre/lib/rt.jar:/apps/dba1mgr/VISAPPL/fs1/EBSapps/comn/shared-libs/ebs-3rdparty/WEB-INF/lib/ebs3rdpartyManifest.jar:/apps/dba1mgr/VISAPPL/fs1/FMW_Home/Oracle_EBS-app1/shared-libs/ebs-fmw/WEB-INF/lib/ebsFMWManifest.jar:/apps/dba1mgr/VISAPPL/fs1/FMW_Home/Oracle_EBS-app1/shared-libs/ebs-appsborg/WEB-INF/lib/ebsAppsborgManifest.jar:/apps/dba1mgr/VISAPPL/fs1/FMW_Home/oracle_common/modules/oracle.uix_11.1.1/uix2.jar:/apps/dba1mgr/VISAPPL/fs1/EBSapps/comn/java/classes:/apps/dba1mgr/VISAPPL/fs1/EBSapps/10.1.2/forms/java:/apps/dba1mgr/VISAPPL/fs1/EBSapps/10.1.2/forms/java/frmall.jar:/apps/dba1mgr/VISAPPL/fs1/EBSapps/10.1.2/jlib/ewt3.jar:/apps/dba1mgr/VISAPPL/fs1/EBSapps/10.1.2/j2ee/OC4J_BI_Forms/applications/formsapp/formsweb/WEB-INF/lib/frmsrv.jar" 

Calling /apps/dba1mgr/VISAPPL/fs1/EBSapps/comn/util/jdk32/jre/bin/java ... 
Exception in thread "main" java.sql.SQLRecoverableException: IO Error: Got minus one from a read call 
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:482) 
at oracle.jdbc.driver.PhysicalConnection.(PhysicalConnection.java:678) 
at oracle.jdbc.driver.T4CConnection.(T4CConnection.java:238) 
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:34) 
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:567) 
at java.sql.DriverManager.getConnection(DriverManager.java:571) 
at java.sql.DriverManager.getConnection(DriverManager.java:215) 
at oracle.apps.ad.worker.AdJavaWorker.getAppsConnection(AdJavaWorker.java:1050) 
at oracle.apps.ad.worker.AdJavaWorker.main(AdJavaWorker.java:278) 
Caused by: oracle.net.ns.NetException: Got minus one from a read call 
at oracle.net.ns.Packet.receive(Packet.java:305) 
at oracle.net.ns.NSProtocol.connect(NSProtocol.java:308) 
at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1222) 
at oracle.jdbc.driver.T4CConnect


Solution
:
SQLNET.INBOUND_CONNECT_TIMEOUT Parameter has been changed 60 to 0 in sqlnwt.ora file.

location: $ORACLE_HOME/network/admin
By default value is 60 always.

After change the above parameter upgrade patch applied successfully.




Monday, June 29, 2015

Script to collect diagnostic information required to analyze AD and TXK issues in EBS Release 12.2.x



Patch 19045166: SCRIPT TO COLLECT DIAGNOSTIC INFORMATION FOR 12.2 AD/TXK BUGS


This script has to be run in all the middletier nodes of the instance.

To use the script:
1. Unzip the patch to a new folder
2. Confirm the following files are present after unzipping.
        adzddbdetails.sql
        adzddiagnostic.pl
        adzdedndetails.sql
        README.txt
3. Source the Apps Tier run environment file
4. Run the master perl script adzddiagnostic.pl with the command "perl adzddiagnostic.pl"
5. Supply the apps database user password the script prompts for.
6. The script creates a file "diagnostic_info_.*" in the working directory.

7. Attach the file to the SR for analysis.

[dba1mgr@xxxx /apps/dba1mgr/UpgradePatches/12.2.4Upgradepatches]$ perl adzddiagnostic.pl

Enter the APPS password:

Please wait. Validating credentials...
Removing information collected from previous runs, if any...

$Header: /source/addev/ad/12.0/diag/bin/RCS/adzddiagnostic.pl,v 120.0.12020000.4 2015/03/27 11:48:02 rraam noship

Step  1 of 22 : Creating directories required to copy the diagnostic information....Done
Step  2 of 22 : Getting adop -status information....Done
Step  3 of 22 : Copying the ADOP logs folder....Done
Step  4 of 22 : Spooling contents of AD_ZD_LOGS table....Done
Step  5 of 22 : Spooling contents of AD_ZD_DDL_HANDLER table....Done
Step  6 of 22 : Getting the required information from Database....Done
Step  7 of 22 : Getting edition specific information from run edition....Done
Step  8 of 22 : Copying run and patch context files....Done
Step  9 of 22 : Getting adutconf report....Done
Step 10 of 22 : Getting perl code level in the instance....Done
Step 11 of 22 : Getting C code level in the instance....Done
Step 12 of 22 : Getting listener.ora and tnsnames.ora....Done
Step 13 of 22 : Checking if adop process is active....Done
Step 14 of 22 : Copying Instance Logs from run file system....Done
Step 15 of 22 : Copying Instance Logs from patch file system....Done
Step 16 of 22 : Copying Domain configuration file....Done
Step 17 of 22 : Downloading context file from database....Done
Step 18 of 22 : Copying inventory.xml....Done
Step 19 of 22 : Executing txkInventory.pl....Done
Step 20 of 22 : Copying /etc/hosts....Done
Step 21 of 22 : Trying to connect to patch edition....Done

Completed collecting all the diagnostic information.

Step 22 of 22 : Archiving the diagnostic_info folder....Done

Please provide the file diagnostic_info_tblnxdbtst.tar.bz2 for further analysis.


Wednesday, June 24, 2015

ADOP Error: The table APPLSYS.TXK_TCC_RESULTS does not exist The EBS Technology Codelevel Checker needs to be run on the following node(s)


Download Patch 17537119 from My Oracle Support  and apply on DB Tier.If any Pre-req patches are missed from the out put please apply those patches.

2. Read the Instructions to run the Database checker utility (checkDBpatch.sh or checkDBpatch.cmd for Windows) from the patch's readme.

3. Follow the steps below :
- Login as the RDBMS ORACLE_HOME owner on the DB tier.
- Unzip the patch
- Confirm the following files are present after unzipping.
    checkDBpatch.sh
    checkDBpatch.cmd
    txk_R1220_DB_base_bugs.xml
    README.txt
- Run the script and Supply the values the script prompts for.
- The script provides a list of one-offs that are either missing, or need to be rolled back.
- Take the appropriate actions based on the results provided by the script.

 +===============================================================+
 |    Copyright (c) 2005, 2014 Oracle and/or its affiliates.     |
 |                     All rights reserved.                      |
 |               EBS Technology Codelevel Checker                |
 +===============================================================+

Executing Technology Codelevel Checker version: 120.24
Enter the full path to the DB Context file :/oracle/xxxx/oradata/VISDB/11.2.

Bugfix XML file version: 120.0.12020000.23

Proceeding with the checks...

Getting the database release ...
Setting database release to 11.2.0.3

 DB connectivity successful.

Created the table to store Technology Codelevel Checker results.

STARTED Pre-req Patch Testing : Wed Jun 24 09:52:12 EDT 2015

Log file for this session : ./checkDBpatch_2527.log

Got the list of bug fixes to be applied and the ones to be rolled back.
Checking against the DB ORACLE_HOME...

Opatch is at the required version.

Found patch records in the inventory.

All the required one-offs are not present in the given ORACLE_HOME
List of missing bug fixes:
14046443
17912217
18260550
18419770
18614015
18685209
18689530
18828868
19393542
19472320
19791273
19896336
19949371
20294666

** Please refer to MOS Doc ID "1594274.1:Oracle E-Business Suite Release 12.2: Consolidated List of Patches and Technology Bug Fixes" to find the corresponding patch that delivers the bug fix. If an overlay patch is needed for any particular patch listed, the footnote for that patch also applies to the overlay patch.**

Stored Technology Codelevel Checker results in the database successfully.

Apply the missing bug fixes and run the script again to confirm.

FINISHED Pre-req Patch Testing : Wed Jun 24 09:52:14 EDT 2015

=========================================================

Applied all the list of patches.17912217 is superseeded of 20294666 Patch.

How To Run The 12.2 EBS Technology Code Level Checker (ETCC) ? (Doc ID 2008451.1)