Thursday 10 March 2016

Autoconfig Fails with error adgendbc.sh INSTE8_SETUP 1

login to database and check

show parameter jit, set it to false from true 

alter system set JAVA_JIT_ENABLED= FALSE scope = both;

Bounce both DB and Application Tier and then re-run the autoconfig. The autoconfig will complete successfully

ref:Adgendbc Fails With Database Connection Failure (Doc ID 1302708.1)

Creating custom top in EBS 12.2

Download Patch 3636980 "Support Diagnostics (IZU) patch for AD Splice" from My Oracle Support.

Manually copy the three .txt files from the 3636980\izu\admin directory to your own temporary directory.

Rename izuprod.txt to <CUSTOM MODULE>prod.txt. In this example, we will be using "xxmzprod.txt".

Rename izterr.txt to <CUSTOM MODULE>terr.txt. In this example, we will be using "xxmzterr.txt".

Open newprods.txt in a text editor.

Change all references of "izu" to <custom module> and all references of "IZU" to <CUSTOM MODULE> (i.e. keep the case sensitivity).

Note: In this example, we will be changing references of "izu" to be "xxmz" and "IZU" to be "XXMZ".

Modify any other values as appropriate.

In this example case, the modified version of this file will look like the following:
product=xxmz
base_product_top= *APPL_TOP*
oracle_schema=xxmz
sizing_factor=100
main_tspace= USER_DATA
index_tspace=USER_IDX
temp_tspace=TEMP
default_tspace= USER_DATA
Open xxmzprod.txt in a text editor.

Change all references of "izu" to <custom module> and all references of "IZU" to <CUSTOM MODULE> (keeping the case sensitivity).

Note: In this example, we will be changing references of "izu" to be "xxmz" and "IZU" to be "XXMZ".


Change all references to prodid 278 to your own application ID.

If you are upgrading, and the custom application already exists in the database, you should specify the same application ID. If you are performing a new installation, choose a number above 50,000 that is not already in use.

You can run the following SQL to find out if your selected custom application ID number is available:
SQL>select decode(count ,0, 'Selected number is available', 'Selected number is already in use') Status, &&enter_custom_applID selected_number
from
(
select count(*) as count from
(
select 'x' from fnd_oracle_userid
where oracle_id= &&enter_custom_applID
union
select 'x' from fnd_application
where application_id= &&enter_custom_applID
)
);
Note: In this example, we will use a prodid of 50201.
Open xxmzterr.txt in a text editor.

Change all references of "izu" to <custom module> and all references of "IZU" to <CUSTOM MODULE> (keeping the case sensitivity).

Note: In this example, we will be changing references of "izu" to be "xxmz" and "IZU" to be "XXMZ".


Change the text "Oracle_Support_Diagnostic_Tools" to be "xxmz_custom_app".
Copy the following text files to the $APPL_TOP/admin directory:
xxmzprod.txt
xxmzterr.txt
newprods.txt

Change directory to the admin directory under $APPL_TOP

Run AD Splice

Note: In Oracle E-Business Suite Release 12.2, AD Splice first makes the new user edition-enabled, and then enables Edition-Based Redefinition (EBR) for the custom objects.

AD Splice must be run from the admin directory under APPL_TOP, and is invoked by running the command:
$ adsplice
When prompted for the following, you can press Enter to accept the default location:
Enter the directory where your AD Splicer control file is located.
The default directory is [/oracle/VIS/apps/apps_st/appl/admin] :
When prompted for the following, you can press Enter to accept the default filename:
Please enter the name of your AD Splicer control file [newprods.txt] :
When prompted for the following, you can press Enter to accept the default value and regenerate the environment file:
Do you wish to regenerate your environment file [Yes] ?
AutoConfig will be run automatically as part of this procedure.
Review the AD Splice log file to ensure the procedure completed successfully.

Review the AutoConfig log file to ensure the procedure completed successfully.
Section 2: Verify Creation of Custom Product in the Database

Log in to SQL*Plus as APPS, and run the following SQL to confirm that the fnd_application table has one row:
SQL>select * from fnd_application where application_short_name = 'XXMZ';
This statement should return one row only.

Run the following SQL to check the product installations table has one row for your custom product:
SQL>select * from fnd_product_installations where APPLICATION_ID = 50201;
This statement should return one row only.

Run the following SQL to check the database user:
SQL>select * from dba_users where username = 'XXMZ';
This statement should return one row only.

To ensure the new environment file is picked up, log out and back in again as applmgr, then run the following command to confirm the $XXMZ_TOP variable is correctly set:
$ env | grep XXMZ
Run the following command to check the file system has been created correctly. You should see a directory listing returned as shown:
$ ls $XXMZ_TOP
admin log mesg out sql
Note: If you have registered any schemas using the fnd_oracle_user_pkg.lod_row API, their passwords will not be encrypted. As a result, adpatch and adsplice will fail. To correct this, you need to run the FNDCPASS utility to set the password for the schemas.
Section 3: Perform Required Steps on Application Tier Nodes

Follow the relevant steps for the Oracle E-Business Suite application tier nodes in your environment.

For shared APPL_TOP installations, simply run AutoConfig for the remaining nodes (there is no need to rerun AD Splice). Or, if the APPL_TOP is not shared, repeat Steps 8 to 12 in Section 1 on all the other nodes.

Restart the application tier services.

Test operation thoroughly to confirm the effect of your changes.


Reference:Creating a Custom Application in Oracle E-Business Suite Release 12.2 (Doc ID 1577707.1)

Friday 21 June 2013

HTTP Down in EBS(Linux), error " error while loading shared libraries: libdb.so.2: cannot open shared object file: No such file or directory"

If you have the following error in $LOG_HOME/ora/10.1.3/opmn/HTTP_Server~1.log

" error while loading shared libraries: libdb.so.2: cannot open shared object file: No such file or directory"

follow the below solution

As "root" user check if the softlink exists if not create a soft link as follows:

ln -s /usr/lib/libgdbm.so.2.0.0 /usr/lib/libdb.so.2

Friday 27 July 2012

Manual compilation of INVALID objects in Oracle

#TO Compile Package 
ALTER PACKAGE schema.package COMPILE;
 
#To Compile Package Body 
ALTER PACKAGE schema.package COMPILE BODY;
 
#To Compile Synonym
ALTER SYNONYM schema.synonym compile;
 
#To Compile Procedure 
ALTER PROCEDURE schema.procedure COMPILE;
 
#To compile Function 
ALTER FUNCTION schema.function COMPILE;
 
#To Compile Trigger 
ALTER TRIGGER my_trigger COMPILE;
 
#To Compile View 
ALTER VIEW schema.view COMPILE;
  
#To Compile Materialized view
ALTER MATERIALIZED VIEW schema.view compile; 

#To Compile Public Synonym
ALTER PUBLIC SYNONYM my_synonym compile;

Friday 13 July 2012

Script to check number of user hits on a Oracle EBS server on Monthly Basis


Script to check number of user hits on a Oracle EBS server on Monthly Basis:-

monthly_hits.sh

TIME=`date +%y%m%d%H`
export TIME
file_name=VIS_$TIME.txt
export file_name
touch $file_name
touch $ip_files.txt
SCR_DIR=/u01/oracle/VIS/inst/apps/VIS_hostname/logs/ora/10.1.3/Apache
curmth=`date +%m`
curyr=`date +%Y`
prevyr=$((curyr - 1))
echo $curmth
echo $curyr
echo $prevyr

mth=('Dec' 'Jan' 'Feb' 'Mar' 'Apr' 'May' 'Jun' 'Jul' 'Aug' 'Sep' 'Oct' 'Nov')
export MONTH='Jan'

ls -lrt $SCR_DIR|grep "access_log*"|grep "$MONTH"|awk '{print $9}'|sed -e "s/^/\/u01\/oracle\/VIS\/inst\/apps\/VIS_hostname\/logs\/ora\/10.1.3\/Apache\//g" >ip_files_$MONTH.txt
#ls -lrt $SCR_DIR|grep "access_log*"|grep "Apr"|awk '{print $9}'|sed -e "s/^/\/h
if [ $curmth == 01 ]
then
 for i in `cat ip_files_$MONTH.txt`
        do
        cat "$i"|grep "AppsLocalLogin"|grep "$MONTH"|grep $prevyr|awk '{print $1 $4}'|sed -e 's/:/ /g'|sed -e 's/\[/ /g'|sed -e 's/\//-/g'|awk '{print $2"," $1 ",VIS,EBS,US,EBS Sandbox"}'>>$file_name
        done

else
        for i in `cat ip_files_$MONTH.txt`
        do
 cat "$i"|grep "AppsLocalLogin"|grep "$MONTH"|grep $curyr|awk '{print $1 $4}'|sed -e 's/:/ /g'|sed -e 's/\[/ /g'|sed -e 's/\//-/g'|awk '{print $2 "," $1 ",VIS,EBS,US,EBS  Sandbox"}'>>$file_name
        done
fi

Sunday 24 June 2012

solution for fnd_ldap_wrapper.create_user issue

from application OS user (applmgr) login to sqlplus as apps/xxxx and run the following:-

alter package APPS.fnd_user_pkg compile;
alter package APPS.fnd_user_pkg compile body;

expdp/impdp in Oracle Database


Login to database as 'sys' user and execute

CREATE OR REPLACE DIRECTORY dmpdir AS 'D:\Backup';
GRANT READ, WRITE ON DIRECTORY dmpdir TO system;


expdp system/xxxx@SID full=Y directory=dmpdir dumpfile=full_sid.dmp logfile=full_exp_sid.log


impdp system/xxxx@SID full=Y directory=dmpdir dumpfile=full_sid.dmp logfile=full_imp_sid.log