Custom Top Create in Oracle APPS R12

create a Custom Top in Oracle R12

SCHEMA NAME : CUST
TOP NAME : CUST_TOP
Application : CUST Custom Application
Data Group : CUSTGroup
Request Group : CUST Request Group
Menu : CUST_CUSTOM_MENU
Responsibility : CUST Custom

STEP:1
 
Create the directory structure for your custom application files.
 

cd $APPL_TOP
mkdir CUST
mkdir CUST/12.0.0
mkdir CUST/12.0.0/admin
mkdir CUST/12.0.0/admin/sql
mkdir CUST/12.0.0/admin/odf
mkdir CUST/12.0.0/sql
mkdir CUST/12.0.0/bin
mkdir CUST/12.0.0/reports
mkdir CUST/12.0.0/reports/US
mkdir CUST/12.0.0/forms
mkdir CUST/12.0.0/forms/US
mkdir CUST/12.0.0/lib
mkdir CUST/12.0.0/out
mkdir CUST/12.0.0/log

STEP:2

2) Add the custom module into the environment

cd $APPL_TOP
[oracle@r0469 appl]$ cd /oracle/VIS/apps/apps_st/appl
[oracle@r0469 appl]$ vi CUSTOMVIS_r0469.env
CUST_TOP=/oracle/VIS/apps/apps_st/appl/cust/12.0.0
export CUST_TOP
:wq

STEP:3
Enter in APPSVIS.env file :-

customfile=/oracle/VIS/apps/apps_st/appl/CUSTOMVIS_r0469.env
if [  -f $customfile ]; then
. /oracle/VIS/apps/apps_st/appl/CUSTOMVIS_r0469.env
fi

STEP:4
Stop APPLICATION Tier
[oracle@r0469 scripts]$ ./adstpall.sh apps/apps

Run ADAUTOCFG.sh


[oracle@r0469 scripts]$ ./adautocfg.sh
AutoConfig completed successfully.

Start APPLICATION Tier
[oracle@r0469 scripts]$ ./adstrtal.sh apps/apps

STEP:5


Create new tablespace for database objects:
 
[oracle@r0469 ~]$ cd /oracle/VIS/db/tech_st/11.1.0/
[oracle@r0469 11.1.0]$ . VIS_r0469.env
[oracle@r0469 11.1.0]$ sqlplus / as sysdba

SQL*Plus: Release 11.1.0.7.0 - Production on Fri Aug 31 16:23:12 2012

Copyright (c) 1982, 2008, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> create tablespace cust datafile '/oracle/VIS/db/apps_st/data/cust.dbf' size 20M;

Tablespace created. 




 Create User:-
 

SQL> create user cust identified by cust default tablespace cust;
SQL> grant connect, resource to cust;

  STEP:6
Register your Oracle Schema
Login to Applications with System Administrator responsibility
Navigate to Application-->Register
Application = CUST Custom
Short Name = CUST
Basepath = CUST_TOP
Description = CUST Custom Application


STEP:7
Register Oracle User
Naviate to Security-->Oracle-->Register
Database User Name = CUST
Password = CUST
Privilege = Enabled
Install Group = 0
Description = CUST Custom Application User

STEP:8
Add Application to a Data Group
Navigate to Security-->Oracle-->DataGroup
Data Group = CUSTGroup
Description = CUST Custom Data Group
Click on "Copy Applications from" and pick Standard data Group, then add the following entry.
Application = CUST Custom
Oracle ID = APPS
Description = CUSTCustom Application


  STEP:9
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 = CUST Request Group
Application = CUST Custom
Code = CUST
Description = CUST Custom Requests
We will not define any requests to add to the group at this stage, but you can add some now if required.

STEP:10
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 = CUST_CUSTOM_MENU
User Menu Name = CUST Custom Application
Menu Type = <leave blank>
Description = CUST Custom Application Menu
Seq = 100
Prompt = View Requests
Submenu = <leave blank>
Function = View All Concurrent Requests
Description = View Requests

Seq = 110
Prompt = Run Requests
Submenu = <leave blank>
Function = Requests: Submit
Description = Submit Requests

Menu = CUST_CUSTOM_MENU_SSWA
User Menu Name = CUSTCustom Application SSWA
Menu Type = <leave blank>
Description = CUST Custom Application Menu for SSWA

STEP:11
Create new responsibility. One for Core Applications and One for Self Service (SSWA)
Navigate to Security-->Responsibility-->Define
Responsibility Name = CUST Custom
Application = CUSTCustom
Responsibility Key = CUSTCUSTOM
Description = CUST Custom Responsibility
Available From = Oracle Applications
Data Group Name = CUSTGroup
Data Group Application = CUST Custom
Menu = CUST Custom Application
Request Group Name = CUST Request Group

Responsibility Name =CUST Custom SSWA
Application = CUST Custom
Responsibility Key = CUST CUSTOMSSWA
Description = CUST Custom Responsibility SSWA
Available From = Oracle Self Service Web Applications
Data Group Name = CUST Group
Data Group Application = CUST  Custom
Menu = CUST Custom Application SSWA
Request Group Name = CUST Request Group

STEP:12
Add responsibility to user
Navigate to Security-->User-->Define
Add CUST Custom responsibility to users as required.

  STEP:13
Other considerations
You are now ready to create your database Objects, custom Reports, Forms, Packages, etc

Create the source code files in the CUST_TOP directory appropriate for the type of object. For example forms
would be located in $CUST_TOP/forms/US or package source code in $CUST_TOP/admin/sql for example.

Database Objects, such as tables, indexes and sequences should be created in the CUST schema, then you need to
a) Grant all privilege from each custom data object to the APPS schema.
For example : logged in as CUST 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 CUST.myTable;

*********************************END***************************************

No comments:

ORA-00059: Maximum Number Of DB_FILES Exceeded in 19C database

When I am adding datafile to my 19C database facing the below error. SQL> alter tablespace DATA  add datafile '/u01/data/data15.dbf...