Procedure to start the ERP.
Login as oracle user.
Source the environment.
Start the database sqlplus '/as sysdba'
sql> startup
Come out of sql prompt
start the database listener.
by using command : lsnrctl start Database_SID
Login as apps user
source the enviroment.
got to cd $INST_TOP/admin/scripts.
$./adstrtall.sh apps_uername/apps_password
Procedure to stop ERP
Login as apps user
source the enviroment.
got to cd $INST_TOP/admin/scripts.
$./adstplall.sh apps_uername/apps_password
Login as oracle user
stop database listener
$ lsnrctl stop DB_SID
sqlplus '/as sysdba'
shutdown the database
using shutdown immediate
or Shutdown
Monday, November 29, 2010
Wednesday, November 24, 2010
Apps and Database LOG FILE LOCATION
APPS LOG FILE and File LOCATION
$LOG_HOME= $INST_TOP/logs
Apache Logs in R12
Access Log : $INST_TOP/logs/ora/10.1.3/Apache/ or $LOG_HOME/ora/10.1.3/Apache
Error Log : $INST_TOP/logs/ora/10.1.3/Apache/ or $LOG_HOME/ora/10.1.3/Apache
Concurrent Manager logs and out files in R12
$INST_TOP/logs/appl/conc
OR $LOG_HOME/appl/conc
Forms and Reports related logs (10.1.2 O_H in R12 is equivalent to 806 O_H in 11..5.10.2)
Forms log file : $LOG_HOME/ora/10.1.2/forms
Reports Log file : $LOG_HOME/ora/10.1.2/reports
Startup scripts log file Location
$LOG_HOME/appl/admin
Adpatch Log file / Worker log file / adpatch informative log file i.e adpatch.lgi
$APPL_TOP/admin/SID/log/ e.g SID=PROD
Forms.fmb Location : $AU_TOP/forms/US/
(All fmb's reside in AU_TOP/forms/US)
Apps Environment file Location : $APPL_TOP
name will be APPSSID_HOSTNAME.env e.g APPSPROD_DEMO.env
Application startup & shutdown scripts Location : $INST_TOP/admin/scripts
Applicaton context file i.e .xml file : $INST_TOP/appl/admin/
e.g SID_HOSTNAME.xml
adpreclone.pl script location : $INST_TOP/admin/scripts
adcfgclone.pl script location : $COMMON_TOP/clone/bin
Database log file and File Location
adpreclone.pl script location : $RDBMS_O_H/appsutil/scripts/SID_HOSTNAME
adcfgclone.pl script location : $RDBMS_O_H/appsutil/clone/bin
Database listener and database startup and shutdown scripts :
$RDBMS_O_H/appsutil/scripts/SID_HOSTNAME
Database alert.log file location in 11g:
$O_H/admin/SID_HOSTNAME/diag/rdbms/sid/sid/trace
alertlog file format alter_sid.log
All .sql scripts location :
RDBMSO_H/rdbms/admin
Parameter file location i.e Init.ora or pfile or spfile file :
$RDBMS_O_H/dbs
$LOG_HOME= $INST_TOP/logs
Apache Logs in R12
Access Log : $INST_TOP/logs/ora/10.1.3/Apache/ or $LOG_HOME/ora/10.1.3/Apache
Error Log : $INST_TOP/logs/ora/10.1.3/Apache/ or $LOG_HOME/ora/10.1.3/Apache
Concurrent Manager logs and out files in R12
$INST_TOP/logs/appl/conc
OR $LOG_HOME/appl/conc
Forms and Reports related logs (10.1.2 O_H in R12 is equivalent to 806 O_H in 11..5.10.2)
Forms log file : $LOG_HOME/ora/10.1.2/forms
Reports Log file : $LOG_HOME/ora/10.1.2/reports
Startup scripts log file Location
$LOG_HOME/appl/admin
Adpatch Log file / Worker log file / adpatch informative log file i.e adpatch.lgi
$APPL_TOP/admin/SID/log/ e.g SID=PROD
Forms.fmb Location : $AU_TOP/forms/US/
(All fmb's reside in AU_TOP/forms/US)
Apps Environment file Location : $APPL_TOP
name will be APPSSID_HOSTNAME.env e.g APPSPROD_DEMO.env
Application startup & shutdown scripts Location : $INST_TOP/admin/scripts
Applicaton context file i.e .xml file : $INST_TOP/appl/admin/
e.g SID_HOSTNAME.xml
adpreclone.pl script location : $INST_TOP/admin/scripts
adcfgclone.pl script location : $COMMON_TOP/clone/bin
Database log file and File Location
adpreclone.pl script location : $RDBMS_O_H/appsutil/scripts/SID_HOSTNAME
adcfgclone.pl script location : $RDBMS_O_H/appsutil/clone/bin
Database listener and database startup and shutdown scripts :
$RDBMS_O_H/appsutil/scripts/SID_HOSTNAME
Database alert.log file location in 11g:
$O_H/admin/SID_HOSTNAME/diag/rdbms/sid/sid/trace
alertlog file format alter_sid.log
All .sql scripts location :
RDBMSO_H/rdbms/admin
Parameter file location i.e Init.ora or pfile or spfile file :
$RDBMS_O_H/dbs
DBA QUERYING TABLES & VIEWS TIPS
DBA - TIPS (Querying Tables & Views): Every DBA Must Know.
FROM dba_objects
WHERE object_type in ('PROCEDURE','FUNCTION','PACKAGE','TRIGGER','VIEW') and status = 'INVALID' ORDER BY OBJECT_NAME;
Determine the Usuage of tablespaces
Determine if the tablespace containing the object is AUTOEXTENSIBLE and has reached MAXSIZE
Find the TABLESPACE of a table.
SELECT tablespace_name
FROM all_tables
WHERE table_name = 'OURTABLENAME';
Find the Min Extent, Max Extent, BLOCKS, OWNER, BYTES, INITIAL_EXTENT of a Table
SELECT *
FROM dba_segments
WHERE SEGMENT_NAME = 'FND_CONCURRENT_REQUESTS';
Find Size of FND_CONCURRENT_REQUESTS TABLE
SELECT (bytes/1024)/1024 "Size in KB"
FROM dba_segments
WHERE segment_name = 'FND_CONCURRENT_REQUESTS';
Query to find which user has locked the table
Select *
from dba_waiters --This will give you the sid of the blocker
OR
You can run script utllockt.sql which is present in $ORACLE_HOME/rdbms/admin.
Running this gives you a nice tree-like report of who's waiting and who's blocking.
OR
SELECT s.sid,s.serial#, s.username,l.os_user_name,s.terminal,
d.object_id,d.object_name
FROM v$session s, dba_objects d, v$locked_object l
WHERE s.sid = l.session_id and d.object_id = l.object_id;
Find total number of records in a table
SELECT COUNT(*)
FROM tablename;
What is my current session id ?
SELECT username, sid, serial#, program
FROM V$session
WHERE audsid = userenv('sessoinid');
How to terminate a session ?
ALTER SYSTEM KILL SESSION 'sid, serial#';
Which database am I connected to? As which user?
SELECT global_name
FROM global_name;
To find the user, from SQLPLUS
SHOW USER
What is the SGA size ?
SHOW SGA
Or
SELECT *
FROM V$sga;
Where are my alert log and dump files written ?
How to increase the size of a TABLESPACE ?
ALTER DATABASE DATAFILE 'filename' RESIZE nn M;
OR
You can add more physical data files to the tablespace by
ALTER TABLESPACE <tablespace-name>
ADD DATAFILE 'filename' SIZE nn M;
Make sure you specify the full path name for the filename
Is my database running in Archive log mode?
Where are the archived files written?
ARCHIVE LOG LIST
Checking Invalid Objects
SELECT 'alter '||object_type||' '||owner||'.'||object_name||' compile;' FROM dba_objects
WHERE object_type in ('PROCEDURE','FUNCTION','PACKAGE','TRIGGER','VIEW') and status = 'INVALID' ORDER BY OBJECT_NAME;
Determine the Usuage of tablespaces
SELECT *
FROM dba_tablespace_usage_metrics
ORDER BY used_percent desc;
Determine if the tablespace containing the object is AUTOEXTENSIBLE and has reached MAXSIZE
For Data Files
SELECT file_name, bytes, autoextensible, maxbytes
FROM dba_data_files
WHERE tablespace_name='<tablespace name> ';
For Temp Files
SELECT file_name, bytes, autoextensible, maxbytes
FROM dba_temp_files
WHERE tablespace_name='<tablespace name>’;
Check How Many Datafiles a Tablespace Has or what all datafiles a tablespace contains
SELECT file_name, tablespace_name
FROM dba_data_files
WHERE tablespace_name =’<tablespace name>’;
Find the TABLESPACE of a table.
SELECT tablespace_name
FROM all_tables
WHERE table_name = 'OURTABLENAME';
Find the Min Extent, Max Extent, BLOCKS, OWNER, BYTES, INITIAL_EXTENT of a Table
SELECT *
FROM dba_segments
WHERE SEGMENT_NAME = 'FND_CONCURRENT_REQUESTS';
Find Size of FND_CONCURRENT_REQUESTS TABLE
SELECT (bytes/1024)/1024 "Size in KB"
FROM dba_segments
WHERE segment_name = 'FND_CONCURRENT_REQUESTS';
Query to find which user has locked the table
Select *
from dba_waiters --This will give you the sid of the blocker
OR
You can run script utllockt.sql which is present in $ORACLE_HOME/rdbms/admin.
Running this gives you a nice tree-like report of who's waiting and who's blocking.
OR
SELECT s.sid,s.serial#, s.username,l.os_user_name,s.terminal,
d.object_id,d.object_name
FROM v$session s, dba_objects d, v$locked_object l
WHERE s.sid = l.session_id and d.object_id = l.object_id;
Find total number of records in a table
SELECT COUNT(*)
FROM tablename;
What is my current session id ?
The username, program, machine, terminal, session id, serial # and more can be found the v$session view. This view has a column audsid. When you join this coulum to your userenv('sessionid') value, you get the session information for your current session.
The query could be:SELECT username, sid, serial#, program
FROM V$session
WHERE audsid = userenv('sessoinid');
How to terminate a session ?
ALTER SYSTEM KILL SESSION 'sid, serial#';
Which database am I connected to? As which user?
SELECT global_name
FROM global_name;
To find the user, from SQLPLUS
SHOW USER
What is the SGA size ?
SHOW SGA
Or
SELECT *
FROM V$sga;
Where are my alert log and dump files written ?
The alert file is written to your BACKGROUND_DUMP_DEST. This variable is set in the config.ora (init.ora) file. You can find the current values of the dump directories from the database. Invoke svrmgrl and connect. Issue command "SHOW PARAMETER DUMP". The SHOW PARAMETER command can be used to find the value of any database parameter value. For example if you want to find the block size and block buffers, issue command "SHOW PARAMETER BLOCK"
How to increase the size of a TABLESPACE ?
ALTER DATABASE DATAFILE 'filename' RESIZE nn M;
OR
You can add more physical data files to the tablespace by
ALTER TABLESPACE <tablespace-name>
ADD DATAFILE 'filename' SIZE nn M;
Make sure you specify the full path name for the filename
Is my database running in Archive log mode?
Where are the archived files written?
ARCHIVE LOG LIST
Purge Concurrent Request and/or Manager Data
Purge Concurrent Request and/or Manager Data
One of the important area of Concurrent Manager tuning is monitoring the space usage for the subsets within each concurrent manager. When the space in FND_CONCURRENT_PROCESSES and FND_CONCURRENT_REQUESTS exceed 50K, you can start to experience serious performance problems within your Oracle Applications. When you experience these space problems, a specific request called "Purge Concurrent Requests And/Or Manager Data" should be scheduled to run on a regular basis. This request to purge can be configured the request data from the FND tables as well as the log files and output files on accumulate on disk.
When the tables FND_CONCURRENT_REQUESTS and FND_CONCURRENT_PROCESSES reaches above 3000-4000 rows, the performance diminishes.You have to run Purge Concurrent Request and/or Manager Data program on a regular basis depending on the amount of request being run.
Find Size in KB for FND_CONCURRENT_REQUESTS
sql> SELECT (BYTES/1024)/1024 "Size in KB" from dba_segments where SEGMENT_NAME='FND_CONCURRENT_REQUESTS';
O/P Size in KB
----------
3.65
----------
3.65
SQL> SELECT (BYTES/1024)/1024 "Size in KB" from dba_segments WHERE SEGMENT_NAME='FND_CONCURRENT_PROCESSES';
O/P : Size in KB
----------
10.75
----------
10.75
The Purge Concurrent Request and/or Manager Data program job can be used to purge Requests,Mgr Logs
and all requests depending on what is choosen.
Use the following options: Enter=ALL, Mode =Age, Mode Value=15
How to Purge Concurrent Request and/or Manager Data
Loigin to frontend with sysadmin responsibility:
Navigate :
System Administrator -- Concurrent - Requests
Click on Submit a New Request -- Select Single Request click ok
Enter Name as Purge Concurrent Request and/or Manager Data
Entity - ALL / Request / Manager
ALL - Purges records from database tables that record history information for concurrent requests,concurrent managers, and purges request log files, manager log files, and report output files from the operating system.
Request - Purges records from database tables that record history information for concurrent requests, and purges request log files and report output files from the operating system.
Manager - Purges records from database tables that record history information for concurrent managers, and purges manager log files from the operating system.
Mode - Age / Count
Age - Enter the number of days for which you want to save concurrent request history, log files, and report output files. The purge program deletes all records older (in days) than the number you enter. For example, if you enter "5", then all concurrent request history, log files, and report output files older than five days is purged.
Count - Enter the number of (most recent) records for which you want to save concurrent request history, log file, and report output files. The purge program starts from the most recent records, retains the number you enter, and purges all remaining records. For example, if you enter "5", then the five most recent concurrent request history records, request log files, manager log files, report output files are saved, and all remaining records are purged.
Mode Value - Value
Mode Value - Enter a value to define the number of days for Mode=Age or the number of records for Mode=Count. The valid values are 1 - 9999999
Then Submit.
The database tables that are affected by running the Purge Concurrent Request and/or Manager Data program are:
FND_CONCURRENT_REQUESTSThis table contains a complete history of all concurrent requests.
FND_RUN_REQUESTS
When a user submits a report set, this table stores information about the reports in the report set and the parameter values for each report.
When a user submits a report set, this table stores information about the reports in the report set and the parameter values for each report.
FND_CONC_REQUEST_ARGUMENTSThis table records arguments passed by the concurrent manager to each program it starts running.
FND_DUAL
This table records when requests do not update database tables.
This table records when requests do not update database tables.
FND_CONCURRENT_PROCESSESThis table records information about Oracle Applications and operating system processes.
FND_CONC_STAT_LIST
This table collects runtime performance statistics for concurrent requests.
This table collects runtime performance statistics for concurrent requests.
FND_CONC_STAT_SUMMARYThis table contains the concurrent program performance statistics generated by the Purge Concurrent Request and/or Manager Data program. The Purge Concurrent Request and/or Manager Data program uses the data in FND_CONC_STAT_LIST to compute these statistics.
Monday, November 22, 2010
Check Version of File in Oracle Application
Check version of the File
Two ways to check version of file.
1. Adident 2. Strings
ADIDENT Utility in ORACLE application is used to find version of any file.
1st Method
Syntax : adident Header filename.
e.g If you want to find out the version of appvndrb.pls
$ cd AP_TOP/patch/115/sql
$ adident Header appvndrb.pls
o/p :
appvndrb.pls:
$Header appvndrb.pls 120.78.12010000.83 2010/04/27 21:00:55 vinaik ship
2nd Method :
Using Strings:
Syntax : strings -a Top_name/location of file/filename | grep '$Header'
e.g $ strings -a $AP_TOP/patch/115/sql/appvndrb.pls | grep '$Header'
o/p : /* $Header: appvndrb.pls 120.78.12010000.83 2010/04/27 21:00:55 vinaik ship $ */
OR
$ cd $AP_TOP/patch/115/sql
$ strings -a appvndrb.pls | grep '$Header'
Thursday, November 4, 2010
Concurrent Manager cannot find error description for CONC-System Node
Concurrent Manager cannot find error description for CONC-System Node
Name not Registered
Name not Registered
Issue : After Installing R12 (12.1.1) On HP-UX 11.31 Itanium .
Error in Concurrent Manager Log file
========================================================================
Starting XXX@XXXInternal Concurrent Manager -- shell process ID 9809
logfile=/u02/ebiz/inst/apps/MAXDEMO_demoserver/logs/appl/conc/log/MAXDEMO_1013.mgr
PRINTER=noprint
mailto=appsvis
restart=N
diag=N
sleep=30
pmon=4
quesiz=1
Reviver is ENABLED
The Internal Concurrent Manager has encountered an error.
Review concurrent manager log file for more detailed information. : 13-OCT-2010 19:42:43 -
Shutting down Internal Concurrent Manager : 13-OCT-2010 19:42:43
List of errors encountered:
.............................................................................
_ 1 _
Concurrent Manager cannot find error description for CONC-System Node
Name not Registered
Contact your support representative.
.............................................................................
List of errors encountered:
.............................................................................
_ 1 _
Routine AFPCAL received failure code while parsing or running your
concurrent program CPMGR
Review your concurrent request log file for more detailed information.
Make sure you are passing arguments in the correct format.
.............................................................................
The XXX@XXX internal concurrent manager has terminated with status 1 - giving up.
Solution :
1st :
1. Verify correct node name is registered.
- Login with sysadmin responsibility
- Navigate to Install > Nodes
2. Enter correct name and save the change.
3. Restart concurrent managers
2nd :
If the above solution doesnt work.
(By default HP-UX can have hostname only 8 characters if you have given more than 8 characters then
increase the lenght of hostname)
Check the node name of sever
# uname -n ( should give you nodename)
# hostname
both the above commands should give same result.
if not same then change the nodename by #set_parms commad
and check once again by the above commands.
Restart concurrent managers and check conc are up and running If not.
3rd :
login to apps tier :
sqlplus apps/apps
check entries in FND_NODES
also check entries in FND_CONCURRENT_REQUESTS.
sql> select LOGFILE_NODE_NAME,OUTFILE_NODE_NAME from fnd_concurrent_requests;
check whether logfile and outfile nodename are same if not
first take backup of the fnd_concurrent_requests then update the logfile and outfile node name with correct nodename.
Issue commit;
and come out.
bounce conc managers and check once again.
(if still issue is there)
4th :
Download cmclean script from metalink.
stop conc managers $INST_TOP/admin/scripts
$./adcmctl.sh stop
copy to the server and sqlplus apps/apps
sql>@cmclean.sql
sql > commit;
come out
start conc managers and check managers are up and running.
if still facing the issue :
5th :
Check OS Kernel Parameters and keep them to maximum.
Restart the server if asked to kernel parameters are static.
bounce the conc manager and check again.
6th :
.....IF THE ISSUE IS STILL THERE THEN PLEASE RAISE SR WITH ORACLE.....
Wednesday, November 3, 2010
Compiling forms in R12
Compiling forms in R12
All fmb are present in AU_TOP/forms/US.
Syntax:
frmcmp_batch fmb_name userid=apps/apps output_file='location of fmx file to be created'
module_type=form compile_all=special
E.g frmcmp_batch GMEBDTED.fmb userid=APPS/APPS output_file=/u02/ebiz/apps/apps_st/appl/gme/12.0.0/forms/US/GMEBDTED.fmx module_type=form compile_all=special
OR
if you are using refleaction s/w such as xmanager .
$export DISPLAY=ipaddress of pc:0.0
$frmcmp
Tuesday, November 2, 2010
Cannot create journal by Mass Allocation Function
Cannot create journal by Mass Allocation Function
Login to apps Tier:
$ cd /u01/oracle/VIS/apps/apps_st/appl/gl/12.0.0/patch/115/xdf/
The odf-files are available in Release 10.7, 11.0.3, 11i and R12. But the odf-files are more and more replaced by the xdf-files, starting with the Release 11i and further implemented in R12.
Create or verify a DatabaseObject using a odf or xdf file
To verify and create Database Objects, defined in a odf-File you are using the Utility adodfcmp, which is located under the $AD_TOP/bin.
To verify and create Database Objects, defined in a xdf-File you are using the Java Utility FndXdfCmp, which is located under the $JAVA_TOP/oracle/apps/fnd/odf2
To verify and create Database Objects, defined in a xdf-File you are using the Java Utility FndXdfCmp, which is located under the $JAVA_TOP/oracle/apps/fnd/odf2
Usage of the Utility adodfcmp :
Syntax :
adodfcmp odffile=<Filename> mode=<Objects to be checked/updated> changedb=NO \
userid=<User>/<Password> touser=<User>/<Password> priv_schema=SYSTEM/<Password>
Usage of the Java Utility FndXdfCmp :
Syntax :
adjava -mx512m -nojit oracle.apps.fnd.odf2.FndXdfCmp <Oracle_Schema> <Oracle_Password>
<apps_schema> <apps_password> <jdbc protocol> <JDBC_Connect_String> <Object Type> \
<full path to xdf file> <full path of $FND_TOP/patch/115/xdf/xsl>
Oracle Schema
à
Username of oracle schema e.g GL,AL,AP,AR and their password
Apps_schemae
à
Apps username and passworf
$ adjava -mx512m -nojit oracle.apps.fnd.odf2.FndXdfCmp gl gl apps apps thin \
maxdemo:1521:VISMAX all gl_alloc_int_1.xdf $FND_TOP/patch/115/xdf/xsl
$ adjava -mx512m -nojit oracle.apps.fnd.odf2.FndXdfCmp gl gl apps apps thin \
maxdemo:1521:VISMAX all gl_alloc_int_2.xdf $FND_TOP/patch/115/xdf/xsl
$ adjava -mx512m -nojit oracle.apps.fnd.odf2.FndXdfCmp gl gl apps apps thin \
maxdemo:1521:VISMAX all gl_alloc_int_3.xdf $FND_TOP/patch/115/xdf/xsl
Note \ will take you to new line when you hit enter key
Monday, November 1, 2010
Unable to get the current group while installing 11gR2 on HP-UX 11.31 Itanium
Error: Unable to get the current group while installing 11gR2 (11.2.0.1) on HP-UX 11.31 Itanium or if you getting An internal error occurred within cluster verification framework
Apply OS Patch No : PHCO_40381.
For ref : Metalink-id : 983713.1
Subscribe to:
Posts (Atom)