Thursday, November 25, 2010

Create Custom Top in Oracle APPS 11i

Oracle recommneds to have your customized objects/files under custom top, PFB method to create and register CUSTOM TOP in oracle apps 11i:-

1) Make the directory structure for your custom application files.cd $APPL_TOP
mkdir xxcustom
mkdir xxcustom/11.5.0
mkdir xxcustom/11.5.0/admin
mkdir xxcustom/11.5.0/admin/sql
mkdir xxcustom/11.5.0/admin/odf
mkdir xxcustom/11.5.0/sql
mkdir xxcustom/11.5.0/bin
mkdir xxcustom/11.5.0/reports
mkdir xxcustom/11.5.0/reports/US
mkdir xxcustom/11.5.0/forms
mkdir xxcustom/11.5.0/forms/US
mkdir xxcustom/11.5.0/$APPLLIB
mkdir xxcustom/11.5.0/$APPLOUT
mkdir xxcustom/11.5.0/$APPLLOG


2) Add the custom module into the environment
Customised environment variables can be added to AutoConfig by using the filename specificed by s_custom_file,
which is then called from the APPSORA.env file or else you can create custom $CONTEXT_NAME.env file and put custom file entry into it
If using Forms Listener Servlet, you may also need to add $CUSTOM_TOP to formsservlet.ini in $APACHE_TOP/Jserv/etc

3) Create new tablespace for database objects
create tablespace XXCUSTOM datafile '$DATA_TOP/xxcustom.dbf' size 10M default storage(initial 10k next 10k)
4) Create schema
create user xxcustom identified by xxcustom
default tablespace xxcustom
temporary tablespace temp
quota unlimited on xxcustom
quota unlimited on temp;
grant connect, resource to xxcustom;


5) Register your Oracle Schema.
Login to Applications with System Administrator responsibility
Navigate to Application-->Register
Application = XXCUSTOM Custom
Short Name = XXCUSTOM
Basepath = XXCUSTOM_TOP
Description = XXCUSTOM Custom Application


6) Register Oracle User
Naviate to Security-->Oracle-->Register
Database User Name = XXCUSTOM
Password = XXCUSTOM
Privilege = Enabled
Install Group = 0
Description = XXCUSTOM Custom Application User


7) Add Application to a Data Group
Navigate to Security-->Oracle-->DataGroup
Data Group = XXCUSTOMGroup
Description = XXCUSTOM Custom Data Group
Click on "Copy Applications from" and pick Standard data Group, then add the following entry.
Application = XXCUSTOM Custom
Oracle ID = APPS
Description = XXCUSTOM Custom Application


8) Create custom request group
This will act as a placeholder for any custom reports we wish to make available for the Custom Responsibility (which is defined at a later stage)
Navigate to Security-->responsbility-->Request
Group = XXCUSTOM Request Group
Application = XXCUSTOM Custom
Code = XXCUSTOM
Description = XXCUSTOM Custom RequestsWe will not define any requests to add to the group at this stage, but you can add some now if required.

9) Create custom menu
This will act as a placeholder for any menu items we wish to make available for the Custom Responsibility (which is defined at a later stage) We will create two menus, one for Core Applications and one for Self Service.

Navigate to Application-->Menu
Menu = XXCUSTOM_CUSTOM_MENU
User Menu Name = XXCUSTOM Custom Application
Menu Type =
Description = XXCUSTOM Custom Application Menu
Seq = 100
Prompt = View Requests
Submenu =
Function = View All Concurrent Requests
Description = View Requests
Seq = 110
Prompt = Run Requests
Submenu =
Function = Requests: Submit
Description = Submit Requests
Menu = XXCUSTOM_CUSTOM_MENU_SSWA
User Menu Name = XXCUSTOM Custom Application SSWA
Menu Type =
Description = XXCUSTOM Custom Application Menu for SSWA



10) Create new responsibility. One for Core Applications and One for Self Service (SSWA)
Navigate to Security-->Responsibility-->Define
Responsibility Name = XXCUSTOM Custom
Application = XXCUSTOM Custom
Responsibility Key = XXCUSTOMCUSTOM
Description = XXCUSTOM Custom Responsibility
Available From = Oracle Applications
Data Group Name = xxcustomGroup
Data Group Application = XXCUSTOM Custom
Menu = XXCUSTOM Custom Application
Request Group Name = XXCUSTOM Request Group
Responsibility Name = XXCUSTOM Custom SSWA
Application = XXCUSTOM Custom
Responsibility Key = XXCUSTOMCUSTOMSSWA
Description = XXCUSTOM Custom Responsibility SSWA
Available From = Oracle Self Service Web Applications
Data Group Name = xxcustomGroup
Data Group Application = XXCUSTOM Custom
Menu = XXCUSTOM Custom Application SSWA
Request Group Name = XXCUSTOM Request Group


11) Add responsibility to user
Navigate to Security-->User-->DefineAdd XXCUSTOM Custom responsibility to users as required.

12) Other considerations
You are now ready to create your database Objects, custom Reports, Forms, Packages, etc
Create the source code files in the XXCUSTOM_TOP directory appropriate for the type of object. For example forms
would be located in $XXCUSTOM_TOP/forms/US or package source code in $XXCUSTOM_TOP/admin/sql for example.

Database Objects, such as tables, indexes and sequences should be created in the XXCUSTOM schema, then you need to

a) Grant all privilege from each custom data object to the APPS schema.
For example : logged in as XXCUSTOM user
grant all privileges on myTable to apps;

b) Create a synonym in APPS for each custom data object
For example : logged in as APPS user
create synonym myTable for xxcustom.myTable;
Other database objects, such as views and packages should be created directly in the APPS schema. 


Regards,
Sukhwinder Singh
.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.

There was an error in this gadget