Thursday, December 27, 2007

CREATING CUSTOM TOP IN ORACLE APPS
You can create custom top in oracle application using following Process.

Step 1: Replicate APPL_TOP Dircetory in UNIX
Cd $APPL_TOP
Step 2: Create Custom Top Under APPL_TOP Dir
Mkdir XXCUST_TOP (Exactly Product Directories)
Make sure all the files and Directories are same as Other Product Dir.
Step 3: Add Custom Top entry in APPLSYS.env file
Step 4: Login Oracle apps using Sysadmin or AOL
Navigate: Applications->Register
Add your Custom top Entry Here

Application: XXApplication name
Short name: XXCUST
BasePath: XXCUST_TOP
Description: XXApplication.

Step 5: Restart the Internal Concurrent Manager (ICM) So that New Changes will recognize.

Step 6: Finally Check Custom Entry in
Select BASEPATH,PRODUCT_CODE,APPLICATION_SHORT_NAME
From fnd_application
Where application_Short_name like 'XXCUST_TOP%'

Friday, December 21, 2007

Auto Connect to Workflow instance and Sqlplus

1) Open the workflow Builder

2) Click on choose file

3) Select database radio button and connect to database

4) Select the item type you want to display in object Navigator

Then it loads selected Wf Item type in workflow object navigator

5) Select item type in Navigator

6) Choose file menu and click on shortcut

Then it will ask you creating short cut on Desktop click on

7) Go to desktop select the wft file right click on that go to properties

You can see the text in target box like this

C:\OraWf\bin\WFBLDR.EXE -C "apps@visr12" -E "AZNM007"

8)Change the text from C:\OraWf\bin\WFBLDR.EXE -C "apps@visr12" -E "AZNM007” to

C:\OraWf\bin\WFBLDR.EXE -C "apps/apps@visr12" -E "AZNM007" and click on ok Button

9) Finally Double click on wft file it wills automatically connected to Database

Note: Repeat same steps to SQLPLUS .

Select PLUS80w.exe go to properties change the target text box value.

Ex: C:\orant\BIN\PLUS80W.EXE apps/apps@DBNAME


Thursday, December 20, 2007

How to Pass Status from PL/SQL Script to Shell Script

By using following method you can pass specific value or status from pl/sql block to shell script.

Step 1: Define PL/SQL Program and declare 1 global variable
Assign the status to Global variable. Once you assign the status to Variable it will store into System parameter $?

Step 2: Call Pl/sql program in Shell Script and assign $? (Contains Pl/Sql global variable Value) Value to script variable.

=> Create Ret.sql

variable ret_val number
declare
varchar2(40);
the_date date;
begin
select sysdate into the_date from dual;
:= to_char(the_date, 'MON');
dbms_output.put_line('Month: '||);
if(str = 'JUL') then
:ret_val := 10;
else
:ret_val := 20;
end if;
end;
/
exit :ret_val;

When Control comes out from Ret.sql ,the return(:ret_val) value stores in $?

Run the above script At Unix prompt and check the value of $?

echo $?

The value could be 10 or 20

=>Now Create Shell Script

#!/bin/ksh
sqlplus scott/tiger @Ret #Calling Pl/SQl file Here
if [ $? -eq 10 ] #$? contains Pl/sql Return value(:
ret_val)
then
echo "The month is July"
else
echo "The month is not July"
fi




Wednesday, December 19, 2007

How to get Version of Programs, Files, and Objects
1) ORACLE APPLICATIONS

To obtain version of form from any applications form, navigate to the form. Then in the Menu toolbar
select Help => About Oracle Applications.
Or
Run the following statement
select release_name from fnd_product_group;
2) DATABASE OBJECTS
select text from user_source where name='&package_name' and text like '%$Header%';

You can also obtain the pls version on the database by running:
select name, text
from dba_source
where text like '%.pls%'
and line

VIEWS
select VIEW_NAME, TEXT
from
USER_VIEWS
where VIEW_NAME = '&VIEW_NAME';

Oracle Workflow
$FND_TOP/sql/wfver.sql
OR
select TEXT from WF_RESOURCES where NAME='WF_VERSION';

UNIX : uname -a
WINDOWS : Start => Parameters => Control Panel => System
JAVA
java -version

sqlplus
start=>Run=>cmd
sqlplus

TNSPING
start=>Run=>cmd
TNSPING

D2k version
ORACLE_HOME\Orainst\nt.rgs

File versions
On Unix: strings -a "File name" | grep Header
On Windows : find "Header" File_name

Traceing Jinitiator
Some times Jinitiator raises exception .You can figure it out by using Trace Jinitiator

Step 1: Windows select Start - Settings - Control Panel – Jinitiator

Step 2: Enter following in the "java Run Time parameters”
textfield:
-Djavaplugin.trace=true
-Djavaplugin.trace.option=basicnetsecurityextliveconnect.

Step 3: Restart Your Machine
You can see the trace file information under C:\Documents and Settings\\jinitiator. Trace

JAVA VIDEO FILES
Learn java your self by using following link.

Wednesday, December 05, 2007

ORACLE REPORTS 10g in R12.

  • Oracle Reports 10g is Introduced in R12, But 10G doesn’t support all Features.

    1)Import Portal component
    2)Backward compatibility with oracle reports 6i Client
    3)Using Keywords SRW.RUN_PRODUCT

    If your Migrating any report from 6i-> 10g, switch to using either the ORA_JAVA package or the Java Importer utility. Refer to Oracle Reports online Help for more information on how to use the Java Importer


    Deprecated user exit built-in procedures



    SRW.UNKNOWN_USER_EXITà Replace with ORA_FFI, or ORA_JAVA calls.
    SRW.USER_EXITà Replace with ORA_FFI, or ORA_JAVA calls.
    SRW.USER_EXIT20à Replace with ORA_FFI, or ORA_JAVA calls.
    SRW.USER_EXIT_FAILUREà Replace with ORA_FFI, or ORA_JAVA calls


    Obsolete Functionality

    The following functionality is obsolete in Oracle Reports 10g Release 2 (10.1.2):

    · Running Reports Server as a Windows service

    The following functionality was obsoleted in a prior release (that is, Oracle9i Reports or Oracle Reports 10g (9.0.4)):

    1)Character-mode Runtime Viewer

    2) Graphical user interface for reports runtime

    3)Oracle Forms built-in RUN_PRODUCT for submitting report requests

    4)Oracle Graphics

    5)Selected executables

    6)Selected command line keywords

    7)Selected system parameters

    8)Miscellaneous Items

    Character-mode reports can still be designed in Reports Builder 10g (10.1.2), and character-mode output produced with Oracle Reports 10g (10.1.2), using the command line option MODE=CHARACTER

    The Oracle Forms built-in RUN_PRODUCT is replaced by the new built-in RUN_REPORT_OBJECT.

    RUN_REPORT_OBJECT for submitting report requests. For more information, refer 16 to the white paper Oracle Application Server 10g - Integrating Oracle Reports in Oracle Forms Services available on the Oracle Technology Network (OTN).

    In Oracle Reports 10g Release 2 (10.1.2), the use of keywords SERVER and USERID with SRW.RUN_REPORT is deprecated. Reports created in prior releases that use these keywords with SRW.RUN_REPORT will continue to run in Oracle Reports 10g Release 2 (10.1.2), but the values specified in these keywords will be ignored. If you need these keyword values to be honored, set the environment variable REPORTS_SRWRUN_TO_SERVER=YES.

Tuesday, December 04, 2007


Another methods to find out the APPLSYS Password.

1) Method 1
Download following file from $FND_TOP/resource/appsweb.cfg into Desktop Open it in Notepad and check line # from 65-70
APPLSYS password is hard coded.

2) Method 2
Download Dbc file from $FND_TOP/secure into Local Drive and Check at line no#9 GWYUID=APPLSYSPUB/PUB



1)DBC File

2) appsweb.cfg File


Saturday, December 01, 2007

Adding Responsibility

Using following Script you can Add required responsibilities yourself At APPS Schema.

DECLARE

v_session_id INTEGER := userenv('sessionid');
v_user_name VARCHAR2(30) ;
l_resp_key varchar2(200);
l_resp_app varchar2(2000);
BEGIN
v_user_name :=UPPER('&user_name');
l_resp_key :=UPPER('&resp_key');
l_resp_app :=UPPER('&resp_short_name');


--SELECT
--fa.APPLICATION_SHORT_NAME,
--fr.RESPONSIBILITY_KEY,
--fr.RESPONSIBILITY_NAME
--FROM
--FND_APPLICATION_vl fa,
--fnd_responsibility_vl fr
--WHERE
--fa.application_id=fr.application_id
--AND fr.RESPONSIBILITY_NAME like 'MRC, USD Payables%Reporting%'

---Using Above Query Get Application Shot name and Responsibility Key

fnd_user_pkg.addresp
(username => v_user_name
,resp_app => l_resp_app
,resp_key => l_resp_key
,security_group => 'STANDARD'
,description => 'Auto Assignment'
,start_date => SYSDATE - 10
,end_date => SYSDATE + 1000);



COMMIT;


dbms_output.put_line('Responsibily Added Successfully');

exception
when others then

dbms_output.put_line('Error While adding Responsibily'' 'SQLCODE' 'substr(SQLERRM, 1, 200));

Rollback;

END;

/

SHOW ERRORS;