rac1[dev]_oracle> sqlplus ‘/as sysdba’
SQL> startup nomount pfile=’$ORACLE_HOME/dbs/initdev.ora’;
SQL> exit
rac1[dev]_oracle> rman auxiliary /
RMAN> duplicate database to dev backup location ‘/backup/backup/prod’;
RMAN> exit
SQL> select instance_name,status from v$instance;
SQL> select open_mode,name from v$database;
|
PROFILE CREATION AND UPDATION
hostname[instance]_oracle> sqlplus ‘/as sysdba’
SQL> set lines 160
check the available profiles in database SQL> select * from dba_profiles;
only one profile is available so see the details about the profile SQL> select * from dba_profiles where PROFILE=’DEFAULT’;
Create a new profile and modify according to existing profile
SQL> alter profile CUSTOM limit PASSWORD_REUSE_TIME UNLIMITED; Now compare the both existing and new profile are same same or not in new profile password expiry is set to 365 days
SQL> select * from dba_profiles where PROFILE=’CUSTOM’;
now assign the profile to users ‘ who expiry date you want to extend to 1 year’ SQL> alter user user1 PROFILE CUSTOM; SQL> select USERNAME,CREATED,EXPIRY_DATE,ACCOUNT_STATUS,PROFILE from dba_users where username like ‘%HYP%’ order by 2;
observer carefully user are assigned to new profile ‘CUSTOM’ but expity date is changed acouding to creation date to 1year SQL> select ‘alter user ‘||name||’ identified by values ”’||password||”’;’ from SYS.USER$;
SQL> alter user HYP_PLANAPP9 identified by values ’19F3C3A86A97E8E0′;
SQL> alter user user1 identified by values ‘317047F2ED3DE4B3’;
now check the expiry date is changed from modified date to 1year earlier its from creation date to 1year SQL> select USERNAME,CREATED,EXPIRY_DATE,ACCOUNT_STATUS,PROFILE from dba_users where username like ‘%HYP%’ order by 2;
|
DB LINKS
col OWNER for a12 col DB_LINK for a20 col USERNAME for a12 col HOST for a50 set pages 200 select OWNER,DB_LINK,USERNAME,HOST from dba_db_links where DB_LINK=upper(‘&dblink_name’); |
To view the existing db links and their properties like private or public
set lines 180 set pages 300 col OWNER format a10 col DB_LINK format a40 col USERNAME format a15 col HOST for a80 set long 100000 select * FROM dba_db_links; |
to get the DDL for particular db link use this command
SQL> set long 100000
SQL> select dbms_metadata.get_ddl( ‘DB_LINK’, ‘hostname.domainname.com’,’APPS’ ) from dual; |
Create db link by connecting to owner of the db link where it need to be connect in the target database user
hostname[dev]_oracle> sqlplus apps/password
SQL*Plus: Release 11.2.0.2.0 Production on Wed May 23 12:11:52 2012 Copyright (c) 1982, 2010, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 – 64bit Production With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP, Data Mining and Real Application Testing options |
SQL> show user
USER is “APPS”
SQL> create database link hostname.domainname.com 2 connect to APPS identified by password 3 using 4 ‘(DESCRIPTION= 5 (LOAD_BALANCE=YES) 6 (FAILOVER=YES) 7 (ADDRESS_LIST= 8 (ADDRESS=(PROTOCOL=tcp)(HOST=prod-scan.domainname.com)(PORT=1525)) 9 ) 10 (CONNECT_DATA= 11 (SERVICE_NAME=stage) 12 ) 13 )’; |
Database link created.
Add the target tns details in source and test the connection by issuing the below command
SQL> SELECT COUNT(*) FROM DUAL@hostname.domainname.com;
COUNT(*) ———- 1 |
to drop the db link connect to the owner of db link and drop
SQL> conn apps/password |
Connected.
SQL> drop database link “hostname.domainname.com”; |
database link dropped
SELECT ‘CREATE ‘||DECODE(U.NAME,’PUBLIC’,’public ‘)||’DATABASE LINK ‘||CHR(10) ||DECODE(U.NAME,’PUBLIC’,Null, ‘SYS’,”,U.NAME||’.’)|| L.NAME||chr(10) ||’CONNECT TO ‘ || L.USERID || ‘ IDENTIFIED BY “‘||L.PASSWORD||'” USING ”’||L.HOST||”” ||chr(10)||’;’ TEXT FROM SYS.LINK$ L, SYS.USER$ U WHERE L.OWNER# = U.USER#; |
SELECT ‘CREATE ‘||DECODE(U.NAME,’PUBLIC’,’public ‘)||’DATABASE LINK ‘||CHR(10) ||DECODE(U.NAME,’PUBLIC’,Null, ‘SYS’,”,U.NAME||’.’)|| L.NAME||chr(10) ||’CONNECT TO ‘ || L.USERID || ‘ IDENTIFIED BY “‘||L.PASSWORD||'” USING ”’||L.HOST||”” ||chr(10)||’;’ TEXT FROM SYS.LINK$ L, SYS.USER$ U WHERE L.OWNER# = U.USER# and l.USERID like ‘%????%’; |
select ‘conn ‘||owner||’/&&’||owner|| chr(10)||’create database link ‘||rtrim(ltrim(db_link))||’ ‘||’connect to ‘||rtrim(ltrim(username))||’ identified by ‘||rtrim(ltrim(password))||’ using ‘||””||rtrim(ltrim(b.host))||””||’;’ from dba_db_links A, sys.link$ B where A.db_link = B.name and B.ctime = A.created and owner like ‘&Owner’ order by owner; |
SELECT name, value FROM v$parameter WHERE (name LIKE ‘%link%’) OR (name IN (‘global_names’, ‘dblink_encrypt_login’)); |
MAIL FROM SERVER
uuencode raccheck_instance_052212_083058.html raccheck_instance_052212_083058.html| mailx -s ‘raccheck_instance’ krishna.kasarla@gmail.com
hostname[instance1]_oracle> cat space_report.sh
#!/bin/ksh
# set -x
################################################################################
## space_report.sh
##
## PURPOSE: Creates a report of Tablespace Size.
##
## USAGE: tablespace_size.sh
##
## OUTPUTS: Standard Output via command line execution.
##
## NOTIFICATION: Standard Output via command line execution.
##
##
################################################################################
set pagesize 100
tablespaceSize() {
sqlplus -s -m “HTML ON TABLE ‘BORDER=”1″‘” “/ as sysdba” @$DBA_HOME/admin/space_report.sql >> $space_log
}
# MAIN
space_log=$DBA_HOME/audit/space_report.log
title=”Database Size Report”
email=mukhtar.ganayee@ge.com
echo “Database Size Report” > $space_log
# Get the list of the current intances running
for sid_name in $(ps -ef | grep pmon | awk ‘{print $8}’ | cut -d_ -f3 | grep -v “grep” | grep -v “+ASM” | sort -u)
do
# Verify sid input
if [ -z “$sid_name” ]
then
echo “==========================================================” >> $space_log
echo “Error====>Instance is missing for instance \”$sid_name\”” >> $space_log
echo “==========================================================” >> $space_log
else
# Set the instance environment
if [ ! -f $HOME/bin/$sid_name ]
then
echo “===================================================================” >> $space_log
echo “Error====>No environment script found for instance \”$sid_name\”” >> $space_log
echo “===================================================================” >> $space_log
else
. $HOME/bin/$sid_name
# Get the Cron Job for the instance
system_pwd=`tellme system`
echo “
Instance: $sid_name
” >> $space_logtablespaceSize
echo ” ” >> $space_log
fi
fi
echo ” ” >> $space_log
done
printf “To:%s\nSubject:%s\nContent-Type: text/html\n” \
“$email” “$title” | cat – $space_log | /usr/lib/sendmail -t
#uuencode $space_log | mailx -s “Regarding :Tablespace Report for All Databases on Server $hostname” -c “$email”
hostname[instance1]_oracle>
ADRCI COMMANDS
For any ora 600 or ora 7445 error I encourage all to use adrci more than uploading trace and alert logs individually.
hostname[instance]_oracle> adrci
ADRCI: Release 11.2.0.2.0 – Production on Fri Jul 20 00:00:13 2012
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved. ADR base = “/instance/oracle/oracle_base” |
adrci> show home
ADR Homes: diag/rdbms/instance/instance diag/clients/user_oracle/host_777677599_80 |
adrci> set home diag/rdbms/instance/instance
adrci> show incident
ADR Home = /instance/oracle/oracle_base/diag/rdbms/instance/instance: ************************************************************************* INCIDENT_ID PROBLEM_KEY CREATE_TIME ——————– ———————————————————– —————————————- 61937 ORA 7445 [ksmdget()+337] 2012-07-19 23:00:24.905000 -04:00 60017 ORA 7445 [ksmdgup()+57] 2012-07-19 23:00:28.814000 -04:00 2 rows fetched |
adrci> ips pack incident 61937 in /tmp
Generated package 1 in file /tmp/ORA7445ks_20120720000220_COM_1.zip, mode complete
-rw-r–r– 1 oracle oinstall 171184398 Jul 20 00:06 ORA7445ks_20120720000220_COM_1.zip |
adrci> show problem
ADR Home = /instance/oracle/oracle_base/diag/rdbms/instance/instance: |
adrci> show alert
Choose the alert log from the following homes to view:
1: diag/rdbms/kittu/kittu2 Please select option: 1 |
RMAN COMMANDS
RMAN INCREMENTAL LEVEL 0 BACKUP SCRIPT
TO RESTORE THE MISSING ARCHIVES FROM TAPE
TO REGISTRING THE BACKUP PICES LOCATION
TO DUPLICATE THE DATABASE EXCLUDING FEW TABLESPACE
similar script using set until time
To test the Tape is configured for restore
CLONING TO ANOTHER NODE
helpful querys
Frequently Asked Questions about Restoring Or Duplicating Between Different Versions And Platforms [ID 369644.1] |
To check the backup on tape
/usr/openv/netbackup/bin/bp
To check the backup list on tape
/usr/openv/netbackup/bin/bplist -C kasarla01_b -l -s 02/05/2013 00:00:00 -e 02/05/2013 23:59:59 -R /backup/oracle/kittu/
to restore the backups to desk
/usr/openv/netbackup/bin/bprestore -B -L /usr/openv/netbackup/restorelog26th.txt -w -k “restore description” -f /user/openv/netbackup/filelist26th.txt
to sent the backups to tape
/usr/openv/netbackup/bin/bpbackup -w -s user_back_1year -L /backup/oracle/export/tape.log /backup/oracle/export
Archives restore from tape
bprestore -A -L /user_defined_and pre-created_log_file -w -k “user defined description as used at backup time” -f file_containg_list_of_files_or_directories_to_be_restored
MIGRATION OF 10G SINGLE INSTANCE TO 11GR2 RAC ON ASM [ DIFFERENT SERVER ]
************************************************************************************* [ i have already installed/configured cluster/database-software/scan/asmdisks ] startup nomount instance instance hostname.domainname.com[oracle]_instance> rman target /
RMAN> restore controlfile from ‘/stg/backup/software/database_bkp/IBSS_01_09_2011_739998183.ctl’;
RMAN> exit; hostname.domainname.com[oracle]_instance2> cat initinstance.ora
instance >startup mount
cd $GRID_HOME/bin
hostname.domainname.com[oracle]_instance> rman target /
Recovery Manager complete.
instance >select l.group# , l.bytes , l.status , l.archived , lf.member from v$logfile lf , v$log l where lf.group# = l.group#;
instance >alter tablespace temp add tempfile ‘+ORADATA’ size 1024M;
instance >select name from v$tempfile;
instance >exit hostname.domainname.com[oracle]_instance> cd /stg/backup/base/11.2/rdbms/admin
hostname.domainname.com[oracle]_instance> sqlplus / as sysdba
instance >@utlu112i.sql
instance >shut immediate;
hostname.domainname.com[oracle]_instance> export ORACLE_HOME=/stg/backup/base/11.2
SQL> startup upgrade
SQL> @?/rdbms/admin/catupgrd.sql
[oracle@hostname dbs]$ sqlplus / as sysdba
SQL> startup
SQL> @?/rdbms/admin/utlrp
SQL>shut immediate; ********************************************************************************* ********************************************************************************* hostname.domainname.com[oracle]_instance1> cd $ORACLE_HOME/dbs hostname.domainname.com[oracle]_instance1> cp initinstance.ora initinstance1.ora hostname.domainname.com[oracle]_instance1> vi initinstance1.ora
hostname.domainname.com[oracle]_instance1> sqlplus / as sysdba
SQL> CREATE UNDO TABLESPACE UNDOTBS2 DATAFILE ‘+DATA’ size 1024M;
SQL> alter database add logfile thread 2 group 3 (‘+DATA’,’+DATA’) SIZE 250M;
SQL> alter database add logfile thread 2 group 4 (‘+DATA’,’+DATA’) SIZE 250M;
SQL> alter database enable public thread 2;
SQL> select GROUP#,THREAD#,MEMBERS,STATUS from gv$log;
@?/rdbms/admin/catclust.sql
SQL> create spfile=’+DATA’ from pfile;
SQL>exit; hostname.domainname.com[oracle]_instance1> cd $ORACLE_HOME/dbs
hostname.domainname.com[oracle]_instance1> sqlplus / as sysdba
SQL> shut immediate;
SQL> startup
SQL> select instance_name from v$instance;
login to hostname555 : hostname.domainname.com[oracle]_instance2> cd $ORACLE_HOME/dbs
hostname.domainname.com[oracle]_instance2> sqlplus / as sysdba
SQL> startup
SQL> select instance_name from v$instance;
SQL> select * from v$active_instances;
srvctl config scan netca SQL> alter system set local_listener='(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=1.2.3.4)(PORT=1578))))’ scope=both sid=’cpss1′;
SQL> alter system set local_listener='(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=4.3.2.1)(PORT=1578))))’ scope=both sid=’cpss2′;
srvctl config scan alter system set remote_listener=’s497_98_scan.domainname.com:1621′ scope=both sid=’*’;
show parameter listen SQL> srvctl config scan_listener
SQL> srvctl status scan_listener
srvctl config scan
SQL> alter system set remote_listener=”s497_98_scan.domainname.com:1621″ scope=both sid=’*’; #### do this individually on both instances ####
********************************************************************************* hostname.domainname.com[oracle]_instance2> cd $ORACLE_HOME/network/admin
hostname.domainname.com[oracle]_instance1> echo $ORACLE_HOME
Database unique name: instance |
shutdown all instances manually and start usinig srvctl
hostname.domainname.com[oracle]_instance2> lsnrctl service
LSNRCTL for Linux: Version 11.2.0.1.0 – Production on 13-JAN-2011 10:35:35 Copyright (c) 1991, 2009, Oracle. All rights reserved. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER))) |
hostname.domainname.com[oracle]_instance2>
now to test remote-connectivity !
********************************
hostname021[oracle]_devld> sqlplus system/bbs1w_90ysr@instance
SQL*Plus: Release 10.2.0.4.0 – Production on Thu Jan 13 11:22:20 2011 Copyright (c) 1982, 2007, Oracle. All Rights Reserved. Connected to: |
SQL> select name from v$database;
NAME |
SQL> select * from v$active_instances;
INST_NUMBER 2 SQL> |
RAC INSTALLATION 11G
1) Creating oracle OS User Account:
useradd -u 900 -g oinstall -G dba oracle
2) create software directories
3) Add the following lines to the /etc/security/limits.conf file:
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
4) enable ssh on both nodes
/usr/bin/ssh-keygen -t rsa
/usr/bin/ssh-keygen -t dsa
5) create asm disks
[oracle@node2-pub ~]$ uname -a
Linux node2-pub.hingu.net 2.6.9-55.0.2.EL #1 Tue Jun 26 14:08:18 EDT 2007 i686 i686 i386 GNU/Linux
oracleasm-2.6.9-55.0.2.EL-2.0.3-1.i686.rpm
oracleasmlib-2.0.2-1.i386.rpm
oracleasm-support-2.0.3-1.i386.rpm
[root@node1-pub rpms]# rpm -ivh oracleasm-2.6.9-55.0.2.EL-2.0.3-1.i686.rpm \
> oracleasmlib-2.0.2-1.i386.rpm \
> oracleasm-support-2.0.3-1.i386.rpm
6) Configure ASM on both the nodes
[root@node1-pub ~]# /etc/init.d/oracleasm configure
7) Create ASM Disk Device(s) that will be used in ASM diskgroup (stamping devises as an ASM disks): from one node only
[root@node1-pub ~]# /etc/init.d/oracleasm createdisk DSK1 /dev/sdb1
Marking disk “/dev/sdb1” as an ASM disk: [ OK ]
[root@node1-pub ~]# /etc/init.d/oracleasm createdisk DSK2 /dev/sdc1
Marking disk “/dev/sdc1” as an ASM disk: [ OK ]
[root@node1-pub ~]# /etc/init.d/oracleasm createdisk DSK3 /dev/sdd1
Marking disk “/dev/sdd1” as an ASM disk: [ OK ]
[root@node1-pub ~]# /etc/init.d/oracleasm createdisk DSK4 /dev/sde1
Marking disk “/dev/sde1” as an ASM disk: [ OK ]
[root@node1-pub ~]# /etc/init.d/oracleasm scandisks
Scanning system for ASM disks: [ OK ]
[root@node1-pub ~]# /etc/init.d/oracleasm listdisks
DSK1
DSK2
DSK3
DSK4
[root@node1-pub ~]#
[root@node1-pub ~]# /etc/init.d/oracleasm status
Checking if ASM is loaded: [ OK ]
Checking if /dev/oracleasm is mounted: [ OK ]
[root@node1-pub ~]#
On the other node, you only need to execute the below command to show these disks up there.
[root@node2-pub ~]# /etc/init.d/oracleasm scandisks
[root@node2-pub ~]# /etc/init.d/oracleasm listdisks
DSK1
DSK2
DSK3
DSK4
8) Grid CRS
9) Install ASM
[oracle@node2-pub pfile]$ srvctl add asm -n node1-pub -i +ASM1 -o /u01/app/asm/product/11gr1 -p /u02/ocfs2/asm_spfile/spfile+ASM.ora
[oracle@node2-pub pfile]$ srvctl add asm -n node2-pub -i +ASM2 -o /u01/app/asm/product/11gr1 -p /u02/ocfs2/asm_spfile/spfile+ASM.ora
[oracle@node2-pub pfile]$ srvctl enable asm -n node1-pub -i +ASM1
[oracle@node2-pub pfile]$ srvctl enable asm -n node2-pub -i +ASM2
Run the dbca again to add/create disk groups to the ASM instance.
[oracle@node1-pub ~]$ /u01/app/asm/product/11gr1/bin/dbca
[oracle@node1-pub ~]$ export ORACLE_SID=+ASM1
[oracle@node1-pub ~]$ asmcmd
ASMCMD> ls
DATA/
FLASH/
ASMCMD> lsdg
10) Install DB_HOME
11) Create RAC db
PRINTER INSTALLATION
as root, perform steps 1-6 for all concurrent nodes
system-config-printer
1. Add printer to host file (/etc/hosts)
# Printers for CCL
3.223.201.223 CORP_PBRE013
3.223.201.224 CORP_PBRE014
for testing:
ping CORP_PBRE013
ping CORP_PBRE014
Other way to test:
telnet CORP_PBRE013 9100
telnet CORP_PBRE014 9100
2. Add a new printer to server
/usr/sbin/lpadmin -p CORP_PBRE013 -E -v socket://3.223.201.223
/usr/sbin/lpadmin -p CORP_PBRE014 -E -v socket://3.223.201.224
more /etc/cups/printers.conf
lpq CORP_PBRE013
lpq CORP_PBRE014
3. Bounce printer service
service cups restart
4. Check the printer queue
lpq -P CORP_PBRE013
lpq -P CORP_PBRE014
5. Enable and accept on
/usr/bin/cupsenable CORP_PBRE013
/usr/bin/cupsenable CORP_PBRE014
/usr/sbin/cupsaccept CORP_PBRE013
/usr/sbin/cupsaccept CORP_PBRE014
6. Send a test document to print
echo “test printing” | lp -d CORP_PBRE013
echo “test printing” | lp -d CORP_PBRE014
7. Start setup printer in EBS
System Administrator -> Install: Printer -> Register
8. Add a new printer for the applications
Click on Add icon
Printer: CORP_PBRE013
Type : –PASTA Universal Printer Type
Description : Xerox WorkCentre 4150 PS located at COE – Department 2.30 Printer Corner
Click on Save icon
Click on Add icon
Printer: CORP_PBRE014
Type : –PASTA Universal Printer Type
Description : Xerox WorkCentre 4150 PS located at COE – Department 2.21 Near Patch Room
Click on Save icon
9. Send the “Active Users” as test print
########################################
http://linksysdefaultpassword.com/category/xerox-routers/ para default password de printers
Note:297522.1 – How to investigate printing issues and work towards its resolution
########################################
lpadmin -p Finance_APrintRm_WCP35 -s 3.85.145.132
lpinfo -v shows
http://linux.web.psi.ch/dist/scientific/42/update/20060419/
printconf_conf
cd /etc/cups/interfaces/
more cups/printers.conf
R12.2 Concept
The connection between the application tier and the client tier can operate successfully over a Wide Area Network (WAN).You log in via the Oracle E-Business Suite Home Page on a desktop client web browser.The Home Page provides a single point of access toa)HTML-based applications, b)Forms-based applications, c)Business Intelligence applications. Forms Client Applet: is a general-purpose presentation applet that supports all Oracle E-Business Suite Forms-based products The Forms client applet is packaged as a collection of Java Archive (JAR) files. The JAR files contain all Java classes required to run the presentation layer Desktop Java Client: The Forms client applet must run within a Java Virtual Machine (JVM) on the desktop client. The Sun JRE Plug-in component allows use of the Oracle JVM on web clients,instead of the browser's own JVM If the JRE Plug-in has not been installed, the browser prompts the user to download the required installation executable. The Forms client applet and commonly used JAR files are downloaded from the Web server at the beginning of the client's first session. All downloaded JAR files are cached locally on the client, ready for future sessions. Release 12.2, the cache directory path C:\Documents and Settings\jalee\ApplicationData\Sun\Java\Deployment\cache The application tier has a dual role: *hosting the various servers and service groups that process the business logic *managing communication between the desktop tier and the database tier. Several service groups or servers comprise are a)Web Services (HTTP services) b)Forms services c)Concurrent Processing server Web and Forms services are provided by Oracle Application Server and Oracle Fusion Middleware. Includes the following majorcomponents:*Web Listener (Oracle HTTP Server powered by Apache) *Java Servlet Engine (Oracle WebLogic Server, WLS) The Web listener component of the Oracle HTTP server accepts incoming HTTP requests (for particular URLs) from client browsers, and routes the requests to WLS. The Oracle HTML-based applications (originally known as Self-Service applications) *Operate via a direct connection to the Web server *Use HTML documents, JavaScript, Java Server Pages, JavaBeans, and Servlets *Dynamically generate HTML pages by executing Java code *Use a metadata dictionary for flexible layout *it Do not use Oracle Forms for the interface An HTML-based Applications module uses the following access path: 1. The user clicks the hyperlink of a function from a browser. 2. The browser makes a URL request to the Web listener. 3. The Web listener contacts the Servlet engine (Oracle WebLogic Server), where it runs a JSP. 4. The JSP obtains the content from the E-Business Suite tables and uses information from the metadata dictionary to construct the HTML page. 5. The resulting HTML page is passed back to the browser, via the Web server. The Oracle HTML-based applications can be either inquiry or transactional *Inquiry modules only read the Oracle E-Business Suite database. *transactional modules both read and update the database. Oracle Application Framework Processing Details 1. Oracle WebLogic Server validates user access to the page. 2. The page definition (metadata UI definition) is loaded from the metadata repository on the database tier into the application tier. 3. The BC4J objects that contain the application logic and access the database are instantiated. 4. The Java Controller programmatically manipulates the page definition as necessary, based on dynamic UI rules. 5. UIX (HTML UI Generator) interprets the page definition, creates the corresponding HTML in accordance with UI standards, and sends the page to the browser. Oracle Application Framework components are *Business Components for Java (BC4J), included in Oracle JDeveloper, is used to create Java business components for representing business logic. *Oracle WebLogic Server supplies the Oracle Application Framework with underlying security and applications Java services By default, Forms services in 12.2 are provided by the Forms listener servletBenefits of using the Forms listener servlet include: • Ability to re-establish dropped network connections • Fewer machines and ports need to be exposed at the firewall • Easier firewall/proxy server configuration • More robust and secure deployment over the Internet Forms Listener Servlet Architecture • The Forms listener servlet is a Java servlet that delivers the ability to run Oracle Forms over HTTP or HTTPS connections • The Forms listener servlet communicates with the Oracle database server using the Oracle Net networking infrastructure. • The Forms services communicates with the desktop client using the TCP/IP network protocol • The Forms listener servlet caches data and provides it to the client as needed • The Forms listener servlet manages the creation of a Forms,runtime process,network communications between the client and Forms runtime process • The client sends HTTP requests and receives HTTP responses from the Web services, which acts as the network endpoint for the client. Forms Socket Mode Architecture • Once a connection has been made, many operations can be performed with or without interaction with the Forms server • When a user entering data into a field, data is passed to a Forms server on the application tier The user interface logic runs in the Forms server, and determines user interface effect based on the user's action • When a few field values change there is no need to update the entire screen.only the changed fields are updated with the new values. • Oracle E-Business Suite data can be conducted via HTML-based applications or the more traditional Forms-based applications• There are also reporting programs and data updating programs that need to run either periodically, or on an ad hoc basis • These programs run in the background while users continue to work on other tasks • These programs allows non–interactive and potentially long-running functions to be executed efficiently • It uses operating system facilities to enable background scheduling of jobs • Concurrent Processing Server implemented via the Batch Processing Services • Concurrent Requests is nothing but a Processes that run on the Concurrent Processing server • When you submit a request, either through HTML-based or Forms-based applications, a row is inserted into a database table specifying the program to be run . The concurrent manager then reads the applicable requests in the table, and starts the associated concurrent program Concurrent Manager • Is an executable that is registered as a program library within Oracle E-Business Suite • Runs in its own operating system process which can start one concurrent program at a time • These programs may be written using a variety of Oracle tools include SQL programs, SQL Loader programs, Oracle Reports programs, spawned C programs, and host language programs such as UNIX shell scripts or Windows command files. • It Can optionally run an immediate program that runs as part of the concurrent manager's own operating system process • It Can be allowed to run any concurrent program, or be specialized to run certain programs • It Operates during the days and times defined by a work shift • A concurrent program library contains concurrent programs that can be called by a concurrent manager example is the (FNDLIBR), which contains immediate concurrent programs, and is assigned to the standard concurrent manager. • each concurrent manager can only run immediate concurrent programs from its own concurrent program library • The Concurrent Processing server communicates with the database server via Oracle Net. • The log or output file associated with a concurrent request is passed back to the Report Review Agent, also known as the Web Review Agent. • The Report Review Agent passes a file containing the entire report to the Forms services. • The Forms services pass the report back to the user's browser one page at a time. Internal Concurrent Manager (ICM) • controls all other concurrent managers. • It administers the startup and shutdown of managers as defined by their work shift • monitors for process failure and cleans up if a failure occurs. • The ICM does not process concurrent requests itself (except for queue control requests, such as ACTIVATE, DEACTIVATE, or ABORT). • it must be running before any other manager can be activated. Once the ICM has been activated, it starts a Service Manager (FNDSM) on each node that is enabled for concurrent processing.it Acting as an agent of the ICM • Service Manager starts the concurrent managers on its node, excluding any managers that have been deactivated, • The Applications Listener must be configured to source the OracleE-Business Suite environment file before FNDSM is spawned • The Service Manager is a component of the Generic Service Management (GSM)architecture rather than Concurrent Processing,although GSM and Concurrent Processing are closely integrated. • Service Manager is the parent process for all concurrent manager • When the ICM is initiated on UNIX, the $FND_TOP/bin/startmgr program is invoked. This calls $FND_TOP/bin/batchmgr • Starts the ICM process using the command FNDLIBR, with startup parameters FND, CPMGR, and FNDCPMBR. • Creates log files (std.mgr and wnnn.mgr) in $APPLCSF/$APPLLOG. • two commands can be entered to control the Internal Concurrent Manager: startmgr, which starts the ICM; and concsub, which is used to stop or abort the ICM, • the basic ICM definition should not be changed .if required modify the sleep time (number of seconds waits for checking for new concurrent requests), PMON (process monitor) cycle time (number of sleep cycles the ICM waits between checking for failed workers) and queue size (duration between checks for number of active workers, measured in PMON cycles) as well as some Parallel Concurrent Processing options Conflict Resolution Manager (CRM) • it basic functions to check concurrent program definitions for incompatibility rules. • When programs are defined with incompatibilities with other programs, both programs will show up in the Conflict Resolution Manager if they are both trying to run at the same time. Programs that are submitted but have no place to run because of incorrect setup choices for the concurrent managers will also show up under the Conflict Resolution Manager. • When a concurrent program is incompatible with another program, the two programs cannot access or update the same data simultaneously. • When you define a concurrent program, you can list those programs you want it to be incompatible with your program • You can also make a program incompatible with all other concurrent programs by defining the program to be run-alone. • There are two types of program incompatibilities "Global" incompatibilities, and "Domain-specific" incompatibilities. • When you list a program as incompatible with your request set, the program will not run simultaneously within the same conflict domain as the request set or any of the reports within the set. • the basic CRM definition should not be changed, but you can modify the sleep time for each work shift, as well as some Parallel Concurrent Processing options Standard Manager • It will accept and run any concurrent requests, as it has no specialization rules that would restrict its activities. • Jobs should only be excluded from the Standard Manager after ensuring they can be run by an alternative manager, such as a product-specific manager or user-defined manager • The basic SM definition shuld not altered without careful planning,otherwise some programs might not be able to run at all Transaction Managers • While narmal concurrent manager runs the conc program in asynchronous mode (it may not run the requst on immediate basic) but the transaction manager runs conc request in syschronous mode that means when a client request comes it executes immediately • An example is approval of an order, where execution of the request must take place quickly. • transaction managers support synchronous processing of particular requests from client machines • A request from a client program to run a server-side program synchronously causes a transaction manager to run it immediately, and then to return a status to the client program • runtime, concurrent processing starts a number of these managers. Rather than polling the concurrent requests table to determine what to do, a transaction manager waits to be signalled by a client program. • The execution of the requested transaction program takes place on the server, transparent to the client and with minimal time delay. • Communication with a transaction manager is automatic • The transaction manager mechanism does not establish an ongoing connection between the client and the transaction manager processes. • Each transaction manager can process only the programs contained in its program library • Transaction managers can only process requests submitted from responsibilities associated with the same data group. • If you create custom data groups, you should define new transaction managers • concurrent processing activities to be distributed across multiple nodes in an Oracle Real Application Clusters• hardware resources can be fully utilized, maximizing throughput and providing resilience to node failure • Run concurrent processes on multiple nodes to improve concurrent processing throughput • Administrate concurrent managers running on multiple nodes from any node in the cluster • One or more concurrent managers can be specified to run on one or more nodes • Parallel Concurrent Processing is enabled by default • PCP is always available for use in environments where one or more concurrent processing nodes exist. • PCP does not require an Oracle RAC environment • you do not have to use PCP in an Oracle RAC environment, although it typically makes sense to do so.
|
step-by-step R12.2 PATCHING
|
R12 CLONING
Table of Contents
Overview 4
Prepare PROD Instance (Source) 4
Preparing DEV4 instance (Destination) 4
Clean up development application (DEV4) 8
Clean up development database (DEV4) 8
Clone production database over development 9
Database tier configuration 12
Application tier configuration 15
Appendix 22
A. Cloning database with Catalog and NBU 22
B. Cloning database with catalog and no connecting to target. ( Using DBID ) 23
C. Cloning database without Catalog and without NBU 23
D. Cloning database with Active Clone 25
E. RDBMS Clone 25
F. Issues and fixes 26
Overview
This document provides step-by-step instructions on how to cloneCentral Corporate Ledger Production (PROD) which is an Oracle E-business Suite (EBS) version 12 to a development instance (DEV4). It includes database and application.
Prepare PROD Instance (Source)
1. Prepare source system database tier for cloning.
As Oracle on hostdb65
. PROD
cd $ORACLE_HOME/appsutil/scripts/$CONTEXT_NAME
perl adpreclone.pl dbTier
2. Prepare source system application tier for cloning.
As appPROD on hostapp61
cd $ADMIN_SCRIPTS_HOME
perl adpreclone.pl appsTier
3. Take Source Applications backup.
As root on hostdb65
pbrunsu–
RDBMS and CHECKIN Backup (Conditional …)
nohupdbp65/dba01/oracle/admin/BackupApplfs.sh \
/dbp65/dba01/oracle/PROD1/admin/PROD_hostdbp65_fs.xml /fstshr/bac>> \
/dbp65/dba01/oracle/PROD1/audit/backup_apps_PROD_hostdbp65.audit`date +\%m\%d` 2>&1 &
APPS, COMMON, iAS and Web/Forms tiers
nohup/dbp65/dba01/oracle/admin/BackupApplfs.sh \
/dbp65/dba01/oracle/PROD1/admin/PROD_hostapp61_fs.xml/fstshr/backup>>\
/dbp65/dba01/oracle/PROD1/audit/backup_apps_PROD_hostapp61.audit`date +\%m\%d` 2>&1&
Preparing DEV4 instance (Destination)
4. Take backup of some target db customizations.
– DB links
As Oracle on hostdb65
sqlplus / as sysdba
spool $SID_HOME/info/db_links.sh
select ‘create database link ‘||db_link||’ connect to ‘||username||’ identified by using ”’||host||”’;’
fromdba_db_links
wheredb_link not in ( ‘APPS_TO_APPS.CORPORATE.GE.COM’,
‘EDW_APPS_TO_WH.US.ORACLE.COM’,
‘EDW_APPS_TO_WH.CORPORATE.GE.COM’,
‘APPS_TO_APPS.US.ORACLE.COM’)
5. Backup Custom schemas.
As Oracle on hostdb65
. DEV4
mkdir -p /fsdshr/backup/oracle/DEV4/datapump
sqlplus / as sysdba
CREATE OR REPLACE DIRECTORY DATA_PUMP_DIR AS ‘/fsdshr/backup/oracle/DEV4/datapump’;
Exit;
sqlplus apps/xxxx
set pages 0
set lines 200
spool $SID_HOME/scripts/exp_custom.sh
SELECT ‘expdp system/$(tellme system)@DEV4 schemas=’|| name ||’ directory=DATA_PUMP_DIR dumpfile=’|| name|| ‘_DEV4.dmp logfile=’||name ||’_DEV4.log’
FROM sys.user$
WHERE name in (
select username
fromdba_users
whereaccount_status ‘LOCKED’
AND username IN(
select username
fromdba_users
where username not in( ‘SYS’,
‘SYSTEM’,
‘APPLSYSPUB’,
‘APPLSYS’,
‘APPS’,
‘APPS_MRC’,
‘DBSNMP’,
‘SSOSDK’,
‘AD_MONITOR’,
‘CTXSYS’,
‘EDWREP’,
‘ODM’,
‘JUNK_PS’,
‘MDSYS’,
‘ODM_MTR’,
‘OLAPSYS’,
‘ORDPLUGINS’,
‘ORDSYS’,
‘OUTLN’,
‘OWAPUB’,
‘PORTAL30_DEMO’,
‘PORTAL30_PUBLIC’,
‘PORTAL30_PS’,
‘PORTAL30_SSO_PUBLIC’,
‘PORTAL30’,
‘PORTAL30_SSO’,
‘DMSYS’,
‘PERFSTAT’,
‘NGSSQUIRREL’,
‘BBMON’,
‘IBA’,
‘IMT’,
‘IPD’,
‘MDDATA’,
‘ME’,
‘MGDSYS’,
‘OKB’,
‘OKO’,
‘OKR’,
‘ORACLE_OCM’,
‘OZP’,
‘OZS’,
‘RHX’,
‘RLA’,
‘SCOTT’,
‘SI_INFORMTN_SCHEMA’,
‘VEH’,
‘XDB’,
‘XNS’,
‘ABM’,
‘AHM’,
‘AMF’,
‘ANONYMOUS’,
‘CSMIG’,
‘CSS’,
‘CUE’,
‘CUN’,
‘DIP’,
‘EAA’,
‘EM_MONITOR’,
‘EUL_US’,
‘EVM’,
‘FPT’,
‘XNC’,
‘XNI’,
‘XNM’,
‘SPATIAL_WFS_ADMIN_USR’,
‘APPQOSSYS’,
‘SPATIAL_CSW_ADMIN_USR’,
‘ORDDATA’,
‘COECBOSTATS’,
‘XS$NULL’)
MINUS
select ORACLE_USERNAME
fromfnd_oracle_userid
)
);
Spool off
Exit
As Oracle on hostdb65
chmod 700 $SID_HOME/scripts/exp_custom.sh
nohup $SID_HOME/scripts/exp_custom.sh > $SID_HOME/audit/exp_custom.log &
6. Backup custom schema passwords.
As Oracle on hostdb65
sqlplus apps/
set pages 0
spool $SID_HOME/info/custom_pwd.txt
select ‘alter user ‘ || name || ‘ identified by values ”’ || password ||”’;’
fromsys.user$
where name = ‘GECL’ or
name IN(
select username
fromdba_users
where username not in( ‘SYS’,
‘SYSTEM’,
‘APPLSYSPUB’,
‘APPLSYS’,
‘APPS’,
‘APPS_MRC’,
‘DBSNMP’,
‘SSOSDK’,
‘AD_MONITOR’,
‘CTXSYS’,
‘EDWREP’,
‘ODM’,
‘JUNK_PS’,
‘MDSYS’,
‘ODM_MTR’,
‘OLAPSYS’,
‘ORDPLUGINS’,
‘ORDSYS’,
‘OUTLN’,
‘OWAPUB’,
‘PORTAL30_DEMO’,
‘PORTAL30_PUBLIC’,
‘PORTAL30_PS’,
‘PORTAL30_SSO_PUBLIC’,
‘PORTAL30’,
‘PORTAL30_SSO’,
‘DMSYS’,
‘PERFSTAT’,
‘NGSSQUIRREL’,
‘BBMON’,
‘IBA’,
‘IMT’,
‘IPD’,
‘MDDATA’,
‘ME’,
‘MGDSYS’,
‘OKB’,
‘OKO’,
‘OKR’,
‘ORACLE_OCM’,
‘OZP’,
‘OZS’,
‘RHX’,
‘RLA’,
‘SCOTT’,
‘SI_INFORMTN_SCHEMA’,
‘VEH’,
‘XDB’,
‘XNS’,
‘ABM’,
‘AHM’,
‘AMF’,
‘ANONYMOUS’,
‘CSMIG’,
‘CSS’,
‘CUE’,
‘CUN’,
‘DIP’,
‘EAA’,
‘EM_MONITOR’,
‘EUL_US’,
‘EVM’,
‘FPT’,
‘XNC’,
‘XNI’,
‘XNM’,
‘SPATIAL_WFS_ADMIN_USR’,
‘APPQOSSYS’,
‘SPATIAL_CSW_ADMIN_USR’,
‘ORDDATA’,
‘COECBOSTATS’,
‘XS$NULL’)
MINUS
select ORACLE_USERNAME
fromfnd_oracle_userid
);
7. Backup GECL_TOP.
As root on hostdb65
pbrunsu –
cd/fsdshr/DEV4/appDEV4/appl
tarcvf – gecl 2>/fsdshr/backup/apps/DEV4_hostapp61/gecl_top.tar.idx|gzip -c | split -b2000m – /fsdshr/backup/apps/DEV4_hostapp61/gecl_top.tar.gz
Clean up development application (DEV4)
8. Shut down Applications server processes on development application servers.
hostapp61
5 apd62
pbrunsu – appDEV4
$ADMIN_SCRIPTS_HOME/adstpall.sh apps/apps_password
9. Remove application directories (Wait until all components are stopped)
pbrunsu –
[root@hostapp61 ~]# cd/fsdshr/DEV4/appDEV4
[root@hostapp61 ~]#rm -rfapplcomninst tech
[root@hostapp61 ~]# exit
Clean up development database (DEV4)
10. Blackout DEV4 targets from OEM.
11. Comment all crontab entries related to DEV4
As oracle on hostdb65
Crontab -e
## Clone 00 21 * * * /dbd65/dba01/oracle/admin/utility.sh DEV4> /dbd65/dba01/oracle/DEV41/audit/utility.audit 2>&1
## Clone 00 5,17 * * * /dbd65/dba01/oracle/admin/utility.sh DEV4utility_arch.ctl> /dbd65/dba01/oracle/DEV41/audit/backup_rman_arch.audit`date +\%m\%d` 2>&1
12. Backup Spfile outside ASM
As oracle on hostdb65
sqlplus / as sysdba
createpfile=’$ORACLE_HOME/dbs/initDEV4_before_drop.ora’ from spfile;
13. Drop Auxiliary Database
As Oracle on hostdbd6
. DEV4
sqlplus / as sysdba
alter system set cluster_database=FALSE scope=spfile;
quit
srvctl stop database -d DEV4
sqlplus / as sysdba
startup force mount
alter system enable RESTRICTED session;
exit
– Clean up archive log ASM
rman target=/ nocatalog<< EOF RUN { DELETE NOPROMPT ARCHIVELOG ALL; } EXIT; EOF -Drop the database. As Oracle on hostdbd6 sqlplus / as sysdba drop database;
14. Stop dynamic listener for Auxiliary Database (Target Database)
As Oracle on hostdbd6
. DEV4
srvctl stop listener -l lstnDEV4
Clone production database over development
15. Decide if RDBMS is with same patch level
Check with opatch command if DEV4 and PROD are with the same patch level.
Follow the steps onAppendix E “RDBMS Clone” in case you need to clone RDBMS
16. Create new empty init.ora file
As Oracle on hostdbd6
vi $ORACLE_HOME/dbs/initDEV4_clone.ora
db_name=”DEV4″
17. Verify communication between both databases
As oracle on hostdb65
Test you are able to connect both server as sysdba
vi$TNS_ADMIN/DEV41_hostdb65_ifile.ora
# — Target DB
PROD_stage =
(DESCRIPTION =
( ADDRESS = (PROTOCOL = TCP)
( HOST = hostapp61.domain.com )(PORT = 1544))
( CONNECT_DATA =
( SID = PROD1)
( SERVICE_NAME = PROD))
)
# — Auxiliary DB
DEV4_dev =
(DESCRIPTION =
( ADDRESS = (PROTOCOL = TCP)
( HOST = hostdb65.domain.com )(PORT = 1542))
( CONNECT_DATA =
( SID = DEV41 )
( SERVICE_NAME = DEV4.domain.com ))
)
vi $TNS_ADMIN/listener_ifile.ora
SID_LIST_LSTNDEV4 =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = DEV4.domain.com)
(ORACLE_HOME =/DEV4/oracle/DEV4db/11.2.0.2)
(SID_NAME = DEV41)
)
)
LSTNDEV4 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST=hostdb65.domain.com)(PORT = 1542))
)
18. Start static listener for Auxiliary Database
As oracle on hostdb65
lsnrctl start lstnDEV4
19. Startup auxiliary database in NOMOUNT
As oracle on hostdb65
sqlplus / as sysdba
startupnomountpfile=$ORACLE_HOME/dbs/initDEV4_clone.ora
exit
20. Recreate password file using prod sys password.
As oracle on hostdb65
cd $ORACLE_HOME/dbs
mvorapw${ORACLE_SID} orapw${ORACLE_SID}.old
orapwd file=orapw${ORACLE_SID} PASSWORD= entries=5 ignorecase=y
21. Test the connectivity between both sides.
As oracle on hostdb65
sqlplussys@PROD_stage as sysdba
alter database disable block change tracking;
sqlplus sys@DEV4_dev as sysdba
22. Clone database
Start a vnc server session and connect as oracle and DEV4.
Start a vnc server session as oracle on hostdb65
Choose the approach to clone database from the append section.
Append A. Cloning database with Catalog and NBU
Append B. Cloning database with catalog and no connecting to target. (Using DBID)
Append C. Cloning database without Catalog and without NBU
Append D. Cloning database with Active Clone (Not tested yet)
23. Remove thread 3 and redologs (Only for Dev).
As oracle on hostdb65
sqlplus / as sysdba
alter database disable thread 3;
select lf.MEMBER
from V$LOGFILE lf
where exists ( Select ‘x’ from V$LOG l
wherelf.GROUP# = l.GROUP#
and THREAD# = 3 );
+ERPD_REDOA_VG/DEV4/redo/redog7t3a.log
+ERPD_REDOB_VG/DEV4/redo/redog7t3b.log
+ERPD_REDOA_VG/DEV4/redo/redog8t3a.log
+ERPD_REDOB_VG/DEV4/redo/redog8t3b.log
+ERPD_REDOA_VG/DEV4/redo/redog9t3a.log
+ERPD_REDOB_VG/DEV4/redo/redog9t3b.log
select ‘alter database drop logfile group ‘ || GROUP# || ‘;’
from V$LOG l
where THREAD# = 3;
alter database drop logfile group 7;
alter database drop logfile group 8;
alter database drop logfile group 9;
As grid on hostdb65
pbrunsu – grid
sqlplus / as sysasm
ALTER DISKGROUP ERPD_REDOA_VG DROP FILE
‘+ERPD_REDOA_VG/DEV4/redo/redog7t3a.log’;
ALTER DISKGROUP ERPD_REDOB_VG DROP FILE
‘+ERPD_REDOB_VG/DEV4/redo/redog7t3b.log’;
ALTER DISKGROUP ERPD_REDOA_VG DROP FILE
‘+ERPD_REDOA_VG/DEV4/redo/redog8t3a.log’;
ALTER DISKGROUP ERPD_REDOB_VG DROP FILE
‘+ERPD_REDOB_VG/DEV4/redo/redog8t3b.log’;
ALTER DISKGROUP ERPD_REDOA_VG DROP FILE
‘+ERPD_REDOA_VG/DEV4/redo/redog9t3a.log’;
ALTER DISKGROUP ERPD_REDOB_VG DROP FILE
‘+ERPD_REDOB_VG/DEV4/redo/redog9t3b.log’;
24. Disable Checkin process Jobs.
As oracle on hostdb65
. DEV4
sqlplus / as sysdba
executedbms_scheduler.disable(‘GECL.CCLCHECKIN_JOB’);
executedbms_scheduler.disable(‘GECL.CCLCHECKIN_JOB_DEL’);
25. Restore spfile.
As oracle on hostdb65
shutdown immediate
startupnomountpfile=$ORACLE_HOME/dbs/initDEV4_after_clone.ora
createspfile=’+DEV4DB_VG/DEV4/SPFILE/spfileDEV4.ora’ from
pfile=’$ORACLE_HOME/dbs/initDEV4_after_clone.ora’;
shutdown immediate
exit
Database tierconfiguration
26. Stop static Listener and start dinamic listener
As oracle on hostdb65
lsnrctl stop lstnDEV4
srvctl start listener -l lstnDEV4
27. Start DB with autostart
As oracle on hostdb65
srvctl start instance -d DEV4 -iDEV41
srvctl start instance -d DEV4 -iDEV42
28. Update the RDBMS ORACLE_HOME file system with AutoConfig files.
As oracle on hostdb65
cd $ORACLE_HOME/
scphostdbp65:/fstshr/PROD/appPROD/inst/apps/PROD_hostapp61/admin/out/appsutil.zip .
mvappsutilappsutil.bk
unzip -o appsutil.zip
cdappsutil.bk
tarcvf – jre | (cd $ORACLE_HOME/appsutil; tar xf -)
On hostdbq66 and hostdbq67 as oracle
cd $ORACLE_HOME/
mvappsutilappsutil.bk
scp hostdbp65:$ORACLE_HOME/appsutil.zip .
unzip -o appsutil.zip
cdappsutil.bk
tarcvf – jre | (cd $ORACLE_HOME/appsutil; tar xf -)
29. Deregister the current database server
– Purge Source fnd_nodes and Service Topology Model
As oracle on hostdb65
sqlplus apps/[APPS password]
execfnd_net_services.remove_system(‘PROD’);
commit;
execfnd_conc_clone.setup_clean;
commit;
exit
– Clean up Concurrent Managers.
cd $SID_HOME/sql
sqlplus apps/[apps password]
@cmclean.sql
commit;
30. Cancel any Scheduled Custom concurrent program
As oracle on hostdbb65
updatefnd_concurrent_requests
setstatus_code=’X’, phase_code=’C’
whererequest_id IN(select DISTINCT a.request_id
fromapps.fnd_concurrent_requests a,
apps.FND_CONCURRENT_PROGRAMS_VL c
wherea.phase_code in (‘P’,’R’,’I’)
anda.concurrent_program_id = c.concurrent_program_id(+)
andc.USER_CONCURRENT_PROGRAM_NAME like ‘CCL%’);
commit;
exit;
31. Generate the context file on each database node
NODE 1 – hostdbd65
As oracle on hostdb65
. DEV4
cd$ORACLE_HOME/appsutil/bin
perl adbldxml.pl appsuser=apps appspass=pwd
Do you want to enable SCAN addresses[N]: Y
Specify value for s_scan_name: fserpd-scan.domain.com
Specify value for s_scan_port: 1525
Enter the value for Display Variable: hostdb65:1.0
NODE 2 – hostdbd66
As oracle on hostdbd66
. DEV4
cd $ORACLE_HOME/appsutil/bin
perl adbldxml.pl appsuser=apps appspass=pwd
Do you want to enable SCAN addresses[N]: Y
Specify value for s_scan_name: fserpd-scan.domain.com
Specify value for s_scan_port: 1525
Enter the value for Display Variable: hostdbd66:1.0
32. Update the context file just created
NODE 1 – hostdbd65
As oracle on hostdb65
vi /DEV4/oracle/DEV4db/11.2.0.2/appsutil/DEV41_hostdb65.xml
hostdb65-vip
NODE 2 – hostdbd66
As oracle on hostdbd66
vi /DEV4/oracle/DEV4db/11.2.0.2/appsutil/DEV42_hostdbd66.xml
hostdbd66-vip
33. Run Autoconfig on all DB tiers
Run Autoconfig on all database nodes
– NODE 1 on hostdb65 as oracle
cd $ORACLE_HOME/appsutil
$ORACLE_HOME/appsutil/bin/adconfig.sh contextfile=DEV41_hostdb65.xml
– NODE 2 on hostdbd66 as oracle
cd $ORACLE_HOME/appsutil
$ORACLE_HOME/appsutil/bin/adconfig.sh contextfile=DEV42_hostdbd66.xml
34. Create custom database env. variable file
– NODE 1 on hostdb65 as oracle
cd $ORACLE_HOME
vi customDEV41_hostdb65.env
CHECKIN_TOP=/fsdshr/DEV4/usrDEV4
export CHECKIN_TOP
– NODE 2 on hostdbd66 as oracle
cd $ORACLE_HOME
vi customDEV42_hostdbd66.env
CHECKIN_TOP=/fsdshr/DEV4/usrDEV4
export CHECKIN_TOP
35. Run the library update script against the database
NODE 1 on hostdb65 as oracle
cd $ORACLE_HOME/appsutil/install/$CONTEXT_NAME
sqlplus / as sysdba @adupdlib.sql so
Application tier configuration
36. Copying source apps binaries into the target
On Database tier hostdb65 as oracle
cd/fsdshr/backup/apps/PROD_hostapp61
scp kasarla@ hostapd61:/fspshr/backup/apps/PROD1_hostapp61/APPL_TOP* .
scp kasarla@ hostapd61:/fspshr/backup/apps/PROD1_hostapp61/COMMON_TOP* .
scp kasarla@ hostapd61:/fspshr/backup/apps/PROD1_hostapp61/iAS_ORACLE_HOME* .
scp kasarla@ hostapd61:/fspshr/backup/apps/PROD1_hostapp61/TOOLS_ORACLE_HOME* .
37. Uncompressing apps binaries into the target
As appPROD on hostapp61
cd /fsdshr/DEV4/appDEV4
cat/fsdshr/backup/apps/PROD_alphostapp61/APPL_TOP_PROD_hostapp61.tar.gz*|gunzip -c |tar xvf –
cat /fsdshr/backup/apps/PROD_hostapp61/COMMON_TOP_PROD_hostapp61.tar.gz*|gunzip -c |tar xvf–
mkdir tech
cd tech
cat /fsdshr/backup/apps/PROD_hostapp61/iAS_ORACLE_HOME_PROD_hostapp61.tar.gz*|gunzip -c |tar xvf –
cat /fsdshr/backup/apps/PROD_hostapp61/TOOLS_ORACLE_HOME_PROD_hostapp61.tar.gz*|gunzip -c |tar xvf –
38. Create temporal tns listener entry on hostapp61
As appPROD on hostapp61
cd /fsdshr/DEV4/appDEV4/tech/10.1.2/network/admin
rmtnsnames.ora
vitnsnames.ora
DEV4=
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=hostdb65.domain.com)(PORT=1542))
(CONNECT_DATA=
(SERVICE_NAME=DEV4)
(INSTANCE_NAME=DEV41)
)
)
39. Configure the Primary Target Application Node (hostapp61)
As appPROD on hostapp61
cd /fsdshr/DEV4/appDEV4/comn/clone/bin
perl adcfgclone.pl appsTier
Enter the APPS password :
Target System Hostname: hostapp61
Target System Domain Name: domain.com
Target System Database SID : DEV4
Target System Database Server Node : hostdb65
Target System Database Domain Name : domain.com
Target System Base Directory : /fsdshr/DEV4/appDEV4
Target System Tools ORACLE_HOME Directory : /fsdshr/DEV4/appDEV4/tech/10.1.2
Target System Web ORACLE_HOME Directory: /fsdshr/DEV4/appDEV4/tech/10.1.3
Target System APPL_TOP Directory : /fsdshr/DEV4/appDEV4/appl
Target System COMMON_TOP Directory: /fsdshr/DEV4/appDEV4/comn
Target System Instance Home Directory : /fsdshr/DEV4/appDEV4/inst
Target System Root Service: enabled
Target System Web Entry Point Services: enabled
Target System Web Application Services: enabled
Target System Batch Processing Services: enabled
Target System Other Services: enabled
Do you want to preserve the Display: n
Target System Display: hostapp61:1.0
Do you want the target system to have the same port: n
Target System Port Pool [0-99] : 21
Value which will be set as APPLPTMP: 1
Do you want to reset custom variable settings(y/n) n
40. – Prepare primary node (hostapp61), executing pre-clone as follow:
As appPROD on hostapp61
cd /fsdshr/DEV4/appDEV4/appl
. APPSDEV4_hostapp61.env
cd $INST_TOP/admin/scripts
perl adpreclone.pl appsTier
41. Add Node 2 (hostapd62)
As appPROD on hostapd62
cd /fsdshr/DEV4/appDEV4/comn/clone/bin
perl adclonectx.pl addnode contextfile=/fsdshr/DEV4/appDEV4/inst/apps/DEV4_hostapp61/appl/admin/DEV4_hostapp61.xml
apps_password
Target System Hostname: hostapd62
Target System Domain Name domain.com
Do you want the inputs to be validated (y/n) [n] ? : y
Target System Root Service: enabled
Target System Web Entry Point Services: enabled
Target System Web Application Services: enabled
Target System Batch Processing Services: enabled
Target System Other Services: enabled
Do you want to preserve the Display: n
Target System Display: hostapd62:1.0
Do you want the target system to have the same port: n
Target System Port Pool [0-99] : 21
Value which will be set as APPLPTMP: 1
Do you want to reset custom variable settings(y/n) n
42. Update apps configuration editing context file
All application servers:
hostapp61
vi/fsdshr/DEV4/appDEV4/inst/apps/DEV4_hostapp61/appl/admin/DEV4_hostapp61.xml
hostapd62
vi/fsdshr/DEV4/appDEV4/inst/apps/DEV4_hostapd62/appl/admin/DEV4_hostapd62.xml
Parameter New value
s_webentryhost dev3.ccl
s_webentrydomain finance.domain.com
s_login_page http://dev4.domain.com:8027/OA_HTML/AppsLogin
s_external_url http://dev4.domain.com:8027
s_cookie_domain .finance.domain.com
s_oc4j_cluster_nodes hostapp61.domain.com:6221,hostapd62.domain.com:6221
s_smtphost e2ksmtp01
s_smtpdomainname e2k.ad.domain.com
s_javamailer_imap_user r00239602
s_javamailer_reply_to r00239602 @mail.ad.domain.com
s_forms_path Add the following paths:
:/fsdshr/DEV4/appDEV4/appl/au/12.0.0/forms/US:/fsdshr/DEV4/appDEV4/appl/gecl/12.0.0/forms/US
s_adovar_ldlib Append the following path:
/fsdshr/DEV4/appDEV4/appl/Adobe/Reader8/bin:
s_tools_twotask DEV4_BALANCE
s_weboh_twotask DEV4_BALANCE
s_cp_twotask DEV4_BALANCE
43. Run Autoconfig Node 2 (hostapd62)
As appDEV4 on hostapd62
cd /fsdshr/DEV4/appDEV4/appl/ad/12.0.0/bin
perl adconfig.pl contextfile=/fsdshr/DEV4/appDEV4/inst/apps/DEV4_hostapd62/appl/admin/DEV4_hostapd62.xml
Enter the APPS user password: apps_password
44. Run Autoconfig Node 1 (hostapp61)
As appDEV4 on hostapd62
cd /fsdshr/DEV4/appDEV4/appl/ad/12.0.0/bin
perl adconfig.pl contextfile=/fsdshr/DEV4/appDEV4/inst/apps/DEV4_hostapp61/appl/admin/DEV4_hostapp61.xml
Enter the APPS user password: apps_password
45. Compile invalid APPS objects using adadmin
As appDEV4 on hostapp61
On hostapp61
adadmin system password/apps_password
3. Compile/Reload Applications Database Entities menu
1. Compile APPS schema
Enter the number of workers [48] :
Run Invoker Rights processing in incremental mode [No] ?
46. Configure status flag for BigIP
As appDEV4 on hostapp61
mkdir -p $INST_TOP/portal/status
cd $INST_TOP/portal/status
scp kasarla@hostapq61:/fstshr/PROD/appPROD/inst/apps/PROD_hostapp61/portal/status/status.html .
As appDEV4 on hostapd62
. /fsdshr/DEV4/appDEV4/appl/APPSDEV4_hostapd62.env
mkdir -p $INST_TOP/portal/status
cd $INST_TOP/portal/status
cp /fsdshr/DEV4/appDEV4/inst/apps/DEV4_hostapp61/portal/status/status.html.
47. Create custom environment files
As appDEV4 on hostapd61
cd $APPL_TOP
vicustomDEV4_hostapp61.env
GECL_TOP=/fsdshr/DEV4/appDEV4/appl/gecl/12.0.0
DISPLAY=hostapp61.domain.com:1.0
PATH=$PATH:/fsdshr/DEV4/appDEV4/appl/Adobe/Reader8/bin
export GECL_TOP DISPLAY PATH
As appDEV4 on hostapd62
cd $APPL_TOP
vi customDEV4_hostapd62.env
GECL_TOP=/fsdshr/DEV4/appDEV4/appl/gecl/12.0.0
DISPLAY=hostapd62.domain.com:1.0
PATH=$PATH:/fsdshr/DEV4/appDEV4/appl/Adobe/Reader8/bin
export GECL_TOP DISPLAY PATH
48. Change Product Schemas Passwords.
As oracle on hostdb65
$ . DEV4
sqlplus / as sysdba
ALTER PROFILE ebs_profile LIMIT PASSWORD_VERIFY_FUNCTION NULL;
ALTER PROFILE DEFAULT LIMIT PASSWORD_VERIFY_FUNCTION NULL;
alter user sys identified by ;
alter user system identified by account unlock;
As appDEV4 on hostapd61
FNDCPASS APPS/ 0 Y SYSTEM/ SYSTEM APPLSYS
FNDCPASS APPS/ 0 Y SYSTEM/ ALLORACLE
FNDCPASS APPS/ 0 Y SYSTEM/ USER SYSADMIN
As oracle on hostdb65
sqlplus / as sysdba
ALTER PROFILE ebs_profile LIMIT PASSWORD_VERIFY_FUNCTION F_GE_PASSWORD_VERIFY;
ALTER PROFILE DEFAULT LIMIT PASSWORD_VERIFY_FUNCTION F_GE_PASSWORD_VERIFY;
49. Register to SSO each application node.
As appDEV4 on hostapd61
cd $APPL_TOP/../temp/bin
./ssoreg_r12_linux DEV4 PROD
As appPROD on hostapd62
cd $APPL_TOP/../temp/bin
./ssoreg_r12_linux DEV4 PROD
50. Per Bug 1237624.1 execute fnd_oid_plug.setPlugin.
Connect DB as apps
sqlplus apps/
executefnd_oid_plug.setPlugin;
SELECT count(*) FROM fnd_user_preferences WHERE user_name=’#INTERNAL’ AND
module_name=’OID_CONF’;
COUNT(*)
———-
13
51. Start application in all servers.
As appDEV4 on hostapd61
$ADMIN_SCRIPTS_HOME/adstrtal.sh apps/apps_password
As appDEV4 on hostapd62
$ADMIN_SCRIPTS_HOME/adstrtal.sh apps/apps_password
52. Change Site Name.
As sysadmin
http://dev4.domain.com:8024/OA_HTML/AppsLocalLogin.jsp
System Administrator responsibility –> Profile –> System
Enter “Site Name”
Change its value to “DEV4 (DEV4 on RAC)” and save
53. Update nodes for Concurrent Programs.
As sysadmin
http://dev4.domain.com:8024/OA_HTML/AppsLocalLogin.jsp
System Administrator responsibility
–> Concurrent –> Manager –> Define
Hit Ctrl+F11 and go thru each concurrent manager.
Update those who have a primary/secondary node.
hostapp61 –>hostapd61
hostapp62 –> hostapd62
hostapp63 –> hostapd62
54. Activate Internal Monitor(s)
As sysadmin
http://dev4.domain.com:8027/OA_HTML/AppsLocalLogin.jsp
Go to Concurrent>Manager>Define
For each Internal Monitor concurrent manager
(Query for Internal Monitor%)
– Click on Work Shifts button
– Assign the following values and save
Work Shift = Standard
Processes = 1
Enable it, clicking on Enabled check box (first screen) and save
55. Set Workflow correct password for imap user
Update password for workflow ID (Corp210User)
56. Restore original GECL_TOP into target.
As root on hostapd61
pbrunsu –
cd /fsdshr/DEV4/appDEV4/appl
mvgeclgecl_bak
cat/fsdshr/backup/apps/DEV4_hostapp61/gecl_top.tar.gz*|gunzip -c |tar xvf –
57. Execute basic testing.
http://dev4.domain.com:8027/OA_HTML/AppsLogin
http://dev4.domain.com:8027/OA_HTML/AppsLocalLogin.jsp
– Login to application.
– Execute a report
– Send a test Workflow message
58. Restore previous passwords for custom DB ID.
See $SID_HOME/info/custom_pwd.txt
59. Restore missing DB Links.
60. Create default sfile used by ad patches.
As appDEV4 on hostapd61
adpatchdefaultsfile=${APPL_TOP}/admin/${TWO_TASK}/${TWO_TASK}_def.txt
Fill out the information required for APPS and SYSTEM
61. Reconfigure RMAN Backups.
62. Uncomment crontab entries for backups.
63. Clean up all files required to clone
64. Create zip file for autoconfig
Appendix
A. Cloning database with Catalog and NBU
Use this approach if you want to clone from a specific time and backup is on tape.
rmanrman TARGET sys/catalog rcatstg/@rmns AUXILIARY / | tee $SID_HOME/audit/rmanclone_$ORACLE_SID.`date +%d%m_%H%M`.log
run {
set until time “to_date(’24-06-2012 23:00:00′,’dd-mm-yyyy hh24:mi:ss’)”;
allocate auxiliary channel ch1 type ‘sbt_tape’ parms
‘ENV=(NB_ORA_SERVER=ghnbumstr1_b,NB_ORA_CLIENT=hostdbp65_b)’;
allocate auxiliary channel ch2 type ‘sbt_tape’ parms
‘ENV=(NB_ORA_SERVER=ghnbumstr1_b,NB_ORA_CLIENT=hostdbp65_b)’;
allocate auxiliary channel ch3 type ‘sbt_tape’ parms
‘ENV=(NB_ORA_SERVER=ghnbumstr1_b,NB_ORA_CLIENT=hostdbp65_b)’;
allocate auxiliary channel ch4 type ‘sbt_tape’ parms
‘ENV=(NB_ORA_SERVER=ghnbumstr1_b,NB_ORA_CLIENT=hostdbp65_b)’;
allocate auxiliary channel ch5 type ‘sbt_tape’ parms
‘ENV=(NB_ORA_SERVER=ghnbumstr1_b,NB_ORA_CLIENT=hostdbp65_b)’;
allocate auxiliary channel ch6 type ‘sbt_tape’ parms
‘ENV=(NB_ORA_SERVER=ghnbumstr1_b,NB_ORA_CLIENT=hostdbp65_b)’;
allocate auxiliary channel ch7 type ‘sbt_tape’ parms
‘ENV=(NB_ORA_SERVER=ghnbumstr1_b,NB_ORA_CLIENT=hostdbp65_b)’;
allocate auxiliary channel ch8 type ‘sbt_tape’ parms
‘ENV=(NB_ORA_SERVER=ghnbumstr1_b,NB_ORA_CLIENT=hostdbp65_b)’;
duplicate target database to ‘DEV4’
NOFILENAMECHECK
spfile
setdb_unique_name=’DEV4′
set DB_FILE_NAME_CONVERT=’+PRODDB_VG/PROD/DATAFILE’,’+DEV4DB_VG/DEV4/DATAFILE’
set LOG_FILE_NAME_CONVERT=’+ERPD_REDOA_VG/PROD’,’+ERPD_REDOA_VG/DEV4′,
‘+ERPD_REDOB_VG/PROD’,’+ERPD_REDOB_VG/DEV4′
set SGA_TARGET=”8G”
set sga_max_size=”8G”
set CONTROL_FILES=’+ERPD_REDOA_VG/DEV4/control/control01.ctl’,
‘+ERPD_REDOB_VG/DEV4/control/control02.ctl’
setlog_archive_max_processes=’5′
set log_archive_dest_1=’LOCATION=+ERPD_ARCH_VG/DEV4′
setdiagnostic_dest=’/DEV4/oracle/oracle_base’
setaudit_file_dest=’/DEV4/oracle/oracle_base/audit/DEV4/DEV41′
set compatible=’11.2.0.2′
setjob_queue_processes=’0′
setaq_tm_processes=’0′
set local_listener='(ADDRESS=(PROTOCOL=TCP)(HOST=hostdb65-vip.domain.com)(PORT=1542))’
setremote_listener=’1525′
setcluster_database=’FALSE’; }
B. Cloning database with catalog and no connecting to target.( Using DBID )
Use this approach if you want to clone from a specific time in the past, backup is on tape but target is down.
rman catalog rcatstg/@rmns AUXILIARY / | tee $SID_HOME/audit/rmanclone_$ORACLE_SID.`date +%d%m_%H%M`.log
run {
set DBID 884570082 # DBID from PROD
set until time “to_date(’24-06-2012 23:00:00′,’dd-mm-yyyy hh24:mi:ss’)”;
allocate auxiliary channel ch1 type ‘sbt_tape’ parms
‘ENV=(NB_ORA_SERVER=ghnbumstr1_b,NB_ORA_CLIENT=hostdbp65_b)’;
allocate auxiliary channel ch2 type ‘sbt_tape’ parms
‘ENV=(NB_ORA_SERVER=ghnbumstr1_b,NB_ORA_CLIENT=hostdbp65_b)’;
allocate auxiliary channel ch3 type ‘sbt_tape’ parms
‘ENV=(NB_ORA_SERVER=ghnbumstr1_b,NB_ORA_CLIENT=hostdbp65_b)’;
allocate auxiliary channel ch4 type ‘sbt_tape’ parms
‘ENV=(NB_ORA_SERVER=ghnbumstr1_b,NB_ORA_CLIENT=hostdbp65_b)’;
allocate auxiliary channel ch5 type ‘sbt_tape’ parms
‘ENV=(NB_ORA_SERVER=ghnbumstr1_b,NB_ORA_CLIENT=hostdbp65_b)’;
allocate auxiliary channel ch6 type ‘sbt_tape’ parms
‘ENV=(NB_ORA_SERVER=ghnbumstr1_b,NB_ORA_CLIENT=hostdbp65_b)’;
allocate auxiliary channel ch7 type ‘sbt_tape’ parms
‘ENV=(NB_ORA_SERVER=ghnbumstr1_b,NB_ORA_CLIENT=hostdbp65_b)’;
allocate auxiliary channel ch8 type ‘sbt_tape’ parms
‘ENV=(NB_ORA_SERVER=ghnbumstr1_b,NB_ORA_CLIENT=hostdbp65_b)’;
duplicate target database to ‘DEV4’
NOFILENAMECHECK
spfile
setdb_unique_name=’DEV4′
set DB_FILE_NAME_CONVERT=’+PRODDB_VG/PROD/DATAFILE’,’+DEV4DB_VG/DEV4/DATAFILE’
set LOG_FILE_NAME_CONVERT=’+ERPD_REDOA_VG/PROD’,’+ERPD_REDOA_VG/DEV4′,
‘+ERPD_REDOB_VG/PROD’,’+ERPD_REDOB_VG/DEV4′
set SGA_TARGET=”8G”
set sga_max_size=”8G”
set CONTROL_FILES=’+ERPD_REDOA_VG/DEV4/control/control01.ctl’,
‘+ERPD_REDOB_VG/DEV4/control/control02.ctl’
setlog_archive_max_processes=’5′
set log_archive_dest_1=’LOCATION=+ERPD_ARCH_VG/DEV4′
setdiagnostic_dest=’/DEV4/oracle/oracle_base’
setaudit_file_dest=’/DEV4/oracle/oracle_base/audit/DEV4/DEV41′
set compatible=’11.2.0.2′
setjob_queue_processes=’0′
setaq_tm_processes=’0′
set local_listener='(ADDRESS=(PROTOCOL=TCP)(HOST=hostdb65-vip.domain.com)(PORT=1542))’
setremote_listener=’1525′
setcluster_database=’FALSE’; }
C. Cloning database without Catalog and without NBU
Use this approach if you want to clone where a Backup sets are on dislfor all (data files, control files and archive logs).
Copy all Backup set for datafiles, Control file and archives to a single directory
BACKUP LOCATION ‘/fsdshr/backup/oracle/DEV4/oracle/PROD/incr’
Copy Backup set from Stage
Connect to server hostdb65 as oracle as DEV4
mkdir –p /fsdshr/backup/oracle/DEV4/oracle/PROD/incr
cd /fsdshr/backup/oracle/DEV4/oracle/PROD/incr
scphostdb65:/fstshr/backup/oracle/PROD/oracle/PROD1/incr/PROD*06242012*
scp hostdb65:/fstshr/backup/oracle/PROD/oracle/PROD1/control/PROD*06242012*
scp hostdb65:/fstshr/backup/oracle/PROD/oracle/PROD1/arch/PROD*06242012*
In case you need to restore archive logs on stage server directory.
Connect to stage database server as oracle
grep “input archived log thread=” $SID_HOME/audit/PROD_backup_rman.audit0624 | \
awk ‘{print $4 $5}’|sort
rman target / catalog rcatstg/@rmns | tee $SID_HOME/audit/rmanclone_$ORACLE_SID.`date +%d%m_%H%M`.log
run {
allocate channel ch1 type ‘sbt_tape’;
allocate channel ch2 type ‘sbt_tape’;
allocate channel ch3 type ‘sbt_tape’;
setarchivelog destination to ‘/fspshr/backup/oracle/PROD/arch_temp’;
restorearchivelog from logseq 2950 until logseq 2962 THREAD 1;
restorearchivelog from logseq 2766 until logseq 2776 THREAD 2;
restorearchivelog from logseq 2946 until logseq 2954 THREAD 3;
release channel ch1;
release channel ch2;
release channel ch3;
}
Transfer restored archive logs to Development server.
Connect to Dev 3 database server as oracle
mkdir -p /fsdshr/backup/oracle/DEV4/oracle/PROD/arch
cd/fsdshr/backup/oracle/DEV4/oracle/PROD/arch
scphostdbp65:/fsqshr/backup/oracle/PROD/arch_temp/*arc .
As oracle on hostdb65
sqlplus / as sysdba
startupnomountpfile=$ORACLE_HOME/dbs/initDEV4_clone.ora
exit
rman AUXILIARY / | tee $SID_HOME/audit/rmanclone_$ORACLE_SID.`date +%d%m_%H%M`.log
run {
ALLOCATE AUXILIARY CHANNEL CH1 TYPE DISK;
ALLOCATE AUXILIARY CHANNEL CH2 TYPE DISK;
ALLOCATE AUXILIARY CHANNEL CH3 TYPE DISK;
ALLOCATE AUXILIARY CHANNEL CH4 TYPE DISK;
ALLOCATE AUXILIARY CHANNEL CH5 TYPE DISK;
ALLOCATE AUXILIARY CHANNEL CH6 TYPE DISK;
ALLOCATE AUXILIARY CHANNEL CH7 TYPE DISK;
ALLOCATE AUXILIARY CHANNEL CH8 TYPE DISK;
duplicate database to ‘DEV4’
BACKUP LOCATION ‘/fsdshr/backup/oracle/DEV4/oracle/PROD/incr’
NOFILENAMECHECK
spfile
setdb_unique_name=’DEV4′
set DB_FILE_NAME_CONVERT=’+PRODDB_VG/PROD/DATAFILE’,’+DEV4DB_VG/DEV4/DATAFILE’
set LOG_FILE_NAME_CONVERT=’+ERPD_REDOA_VG/PROD’,’+ERPD_REDOA_VG/DEV4′,
‘+ERPD_REDOB_VG/PROD’,’+ERPD_REDOB_VG/DEV4′
set SGA_TARGET=”8G”
set sga_max_size=”8G”
set CONTROL_FILES=’+ERPD_REDOA_VG/DEV4/control/control01.ctl’,
‘+ERPD_REDOB_VG/DEV4/control/control02.ctl’
setlog_archive_max_processes=’5′
set log_archive_dest_1=’LOCATION=+ERPD_ARCH_VG/DEV4′
setdiagnostic_dest=’/DEV4/oracle/oracle_base’
setaudit_file_dest=’/DEV4/oracle/oracle_base/audit/DEV4/DEV41′
set compatible=’11.2.0.2′
setjob_queue_processes=’0′
setaq_tm_processes=’0′
set local_listener='(ADDRESS=(PROTOCOL=TCP)(HOST=hostdb65-vip.domain.com)(PORT=1542))’
setremote_listener=’1525′
setcluster_database=’FALSE’; }
D. Cloning database with Active Clone
Still Pending
E. RDBMS Clone
As your Linux ID on hostdb65 get the latest Oracle home backup from PROD
mkdir /fsdshr/backup/apps/PROD
scp kasarla@hostdbp65:/fspshr/backup/apps/PROD1_hostdbp65/RDBMS_ORACLE_HOME* .
As root hostdb65
pbrun su –
cd /DEV4/oracle/DEV4db
mv 11.2.0.2 11.2.0.2_old
cat /fsdshr/backup/apps/PROD/RDBMS_ORACLE_HOME_PROD_hostdbp65.tar.gz* \
|gunzip -c |tar xvf –
As oracle hostdb65
cd $ORACLE_HOME/oui/bin/
./runInstaller -detachHome ORACLE_HOME=$ORACLE_HOME
Starting Oracle Universal Installer…
Checking swap space: must be greater than 500 MB. Actual 55926 MB Passed
The inventory pointer is located at /etc/oraInst.loc
The inventory is located at /fserpq/oracle/oraInventory
‘DetachHome’ failed.
cd $ORACLE_HOME/clone/bin
perl clone.pl ORACLE_HOME=”$ORACLE_HOME” ORACLE_HOME_NAME=”OraDb11g_${ORACLE_SID}” \
ORACLE_BASE=”$ORACLE_BASE” OSDBA_GROUP=oinstall OSOPER_GROUP=oinstall
cd $ORACLE_HOME/bin
pbrun $ORACLE_HOME/root.sh
cd /DEV4/oracle/DEV4db/11.2.0.2/bin
pbrunchgrpasmadmin oracle
pbrunchmod 6751 oracle
ls -l oracle
-rwsr-s–x 1 oracle asmadmin 229087634 Jun 5 00:09 oracle
pbrunchown root $ORACLE_HOME/rdbms/admin/externaljob.ora
pbrunchown root $ORACLE_HOME/bin/jssu
pbrunchmod 4750 $ORACLE_HOME/bin/jssu
pbrunchown root $ORACLE_HOME/bin/extjob
pbrunchmod 4750 $ORACLE_HOME/bin/extjob
pbrun vi $ORACLE_HOME/rdbms/admin/externaljob.ora
run_user = nobody
run_group = nobody
run_user = usrDEV4
run_group = gecl
cd $ORACLE_HOME
rmPROD_hostdbp65.env
rm -rfappsutil appsutil_bk.zip appsutil.zip
cd /DEV4/oracle/DEV4db/11.2.0.2_old
tarcvf – appsutil |(cd /DEV4/oracle/DEV4db/11.2.0.2; tar xvf -)
Grant directory (and subdir permissions) as follow:
cd $ORACLE_HOME/..
setfacl -R -m user:usrDEV4:r-x 11.2.0.2
getfacl 11.2.0.2
# file: 11.2.0.2
# owner: oracle
# group: dba
user::rwx
user:usrDEV4:r-x
group::rwx
mask::rwx
cd $ORACLE_HOME
mvdbsdbs.old
cd /DEV4/oracle/DEV4db/11.2.0.2_old
tarcvf – dbs|(cd $ORACLE_HOME; tar xvf -)
cd $ORACLE_HOME/network
mv admin admin.old
cd /DEV4/oracle/DEV4db/11.2.0.2_old/network/
tarcvf – admin |(cd $ORACLE_HOME/network; tar xvf -)
Repeat the same steps for hostdbd66
F. Issues and fixes
ERROR
“System Hold, Fix Manager before resetting counters”.
Finally as per the note:985835.1, I have done the following
1. Stop all middle tier services including the concurrent managers.
Please make sure that no FNDLIBR, FNDSM, or any dead process is running.
2. Stop the database.
3. Start the database.
4. Go to cd $FND_TOP/bin
$ adrelink.sh force=y link_debug=y “fnd FNDLIBR”
$ adrelink.sh force=y link_debug=y “fnd FNDFS”
$ adrelink.sh force=y link_debug=y “fnd FNDCRM”
$ adrelink.sh force=y link_debug=y “fnd FNDSM”
5. Run the CMCLEAN.SQL script from the referenced note below (don’t forget to commit).
6. Execute the following SQL:
select CONCURRENT_QUEUE_NAME from FND_CONCURRENT_QUEUES where
CONCURRENT_QUEUE_NAME like ‘FNDSM%’;
7. Start the middle tier services including your concurrent manager.
Now all of my concurrent managers are back to normal.
UPGRADE EBS R12 WITH 11gr2
Contents
Oracle E-Business Suite R12 with Oracle Database 11gR2 3
Preparation Tasks Section 3
Pre-Installation Tasks Section: 3
Upgrade Autoconfig to the latest version. 3
Apply the 11g Release 2 interoperability patch for Release 12.0.4 (8623536) 4
Run Autoconfig 4
Apply patch 6400501 5
Deregister the current database server (skip) 5
Update application tier context file with new database listener port number (skip) 5
Installation Tasks Section 6
Database Installation 6
Database Upgrade 7
Post-Installation Tasks Section 21
After the Database Upgrade 21
Oracle E-Business Suite R12 with Oracle Database 11gR2
Preparation Tasks Section
a) Stop checkin process daemon
b) Comment any schedule crontab job
c) Perform full-backup (database/apps)
d) Verify /etc/oraInst.loc is pointing to the correct oraInventory instance
#
# If the Oracle inventory is not setup correctly this utility will
# fail. To check accessibility to the inventory you can use the
# command
#
# % opatch lsinventory
#
e) Perform an inicial count of invalid db objects
#
set pagesize 500
set linesize 100
select substr(comp_name,1,40) comp_name, status, substr(version,1,10) version from
dba_registry order by comp_name;
select substr(object_name,1,40) object_name,substr(owner,1,15) owner,object_type from
dba_objects where status=’INVALID’ order by owner,object_type;
select owner,object_type,count(*) from dba_objects where status=’INVALID’ group by
owner,object_type order by owner,object_type ;
Pre-Installation Tasks Section:
Upgrade Autoconfig to the latest version.
Apply the TXK AutoConfig Template patch 7237313
Patch # 7237313 R12.TXK.A.DELTA.6
Product Techstack Lang US, HU ESA Size 27M (28423760 bytes)
Pre-install Tasks
None
Apply The Patch
This patch contains the following unified driver file to be applied with
AutoPatch:
u7237313.drv (This is the unified driver)
Post-install Tasks
None
Comments
None
Copy AutoConfig to the RDBMS ORACLE_HOME
Update the RDBMS ORACLE_HOME file system with the AutoConfig files by performing the following steps:
On the application tier (as the APPLMGR user):
Log in to the APPL_TOP environment (source the environment file)
Create appsutil.zip file
perl /bin/admkappsutil.pl
This will create appsutil.zip in /admin/out
On the database tier (as the ORACLE user):
Copy or FTP the appsutil.zip file to the cd
unzip -o appsutil.zip
Do not run autoconfig until after below patch is applied
Apply the 11g Release 2 interoperability patch for Release 12.0.4 (8623536)
Patch # 8623536 INTEROPERABILITY PATCH FOR R12 ON 11.2 RDBMS
Product Applications Updates Lang US, HU, ESA Size 60M (62983654 bytes)
Preparation tasks
Required Code levels
R12.AD.A.delta.4
R12.ATG_PF.A.delta.4
R12.TXK.A.delta.6
Pre-install Tasks
1. Source the Applications environment file
2. Run the Patch Application Assistant by entering “admsi.pl”.
3. Run the adgrants.sql script as a user that can connect as SYSDBA to grant privileges to selected SYS objects and create PL/SQL profiler objects.
Usage:
1. Create $ORACLE_HOME/appsutil/admin on the database server.
2. Compare the version of adgrants.sql(UNIX) in $APPL_TOP/admin
to that in patch directory.
3. Copy the higher version of adgrants.sql (UNIX) to
$ORACLE_HOME/appsutil/admin.
4. Set the environment to point to ORACLE_HOME on the database server.
5. Use SQL*Plus to run the script:
UNIX:
$ sqlplus /nolog
SQL> @$ORACLE_HOME/appsutil/admin/adgrants.sql
Apply The Patch
u8623536.drv
Post-install Tasks
None
Comments
None
Run Autoconfig
Run AutoConfig on the database tier and then on the applications tier
Apply patch 6400501
Apply patch 6400501 to the iAS 10.1.2 (TOOLS) Applications tier Oracle home
Patch # 6400501 APPSST11G:1203:NOT ABLE TO COMPILE FORMS LIBRARRY WITH 11G DB
Product PLSQL Lang Linux-86 Size 8.7K (8907 bytes)
Pre-install Tasks
None
Apply The Patch
# To apply the patch, unzip the PSE container file:
#
# p6400501_10105_LINUX.zip
#
# Set your current directory to the directory where the patch
# is located:
#
# % cd 6400501
#
# Ensure that the directory containing the opatch script appears in
# your $PATH; then enter the following command:
#
# % opatch apply
Post-install Tasks
# Patch Special Instructions:
# —————————
#
# For Apps Users on R12 Apps Tier (10.1.0.5):
# Execute:
# $ cd $ORACLE_HOME/forms/lib32
# Note: if this directory does not exist: cd $ORACLE_HOME/forms/lib
# $ make -f ins_forms.mk install
# $ cd $ORACLE_HOME/reports/lib32
# Note: if this directory does not exist: cd $ORACLE_HOME/reports/lib
# $ make -f ins_reports.mk install
#
# % opatch lsinventory
Comments
For Linux x86-64 environments, download the Linux 32-bit version of the patch as the Applications tier Oracle home is 32-bit.
Deregister the current database server (skip)
If you plan to change the database port, host, SID, or database name parameter on the database server, you must also update AutoConfig on the database tier and deregister the current database server node.
Update application tier context file with new database listener port number (skip)
The new 11.2.0 Oracle home uses its own database listener for the database instance, replacing the current database listener.
Installation Tasks Section
Database Installation
Prepare to create the 11.2.0 Oracle home
The 11.2.0 Oracle home must be installed on the database server node in a different directory than the current Oracle home.
Install the base 11.1.0 software
Log in to the database server node as the owner of the Oracle RDBMS file system and database instance. Ensure that environment settings, such as ORACLE_HOME, are set for the new Oracle home you are about to create, and not for any existing Oracle homes on the database server node. Perform all the steps in Chapter 3 of the Oracle Database Installation Guide 11g Release 2 (11.2) for your platform.
1. Download the software
2. Extract the Installation Files
3. Run Oracle Universal Installer
$ ./runInstaller
In the Installation Types window, use the Product Languages button to select any languages other than American English that are used by your Applications database instance. Choose the Enterprise Edition installation type. In the subsequent windows, select the options not to upgrade an existing database and to install the database software only.
Install Oracle Database 11g Products from the 11g Examples CD (skip)
On the database server node, as the owner of the Oracle RDBMS file system and database instance, perform the tasks in section 3, “Download Oracle Database Examples” in the Oracle Database Examples CD Installation Guide.
In the Installation Types window, use the Product Languages button to select any languages other than American English that are used by your Applications database instance.
After the installation, make sure that:
The ORACLE_BASE environment variable must be set accordingly.
The ORACLE_HOME environment variable points to the new 11.2.0 Oracle home.
The PATH environment variable includes $ORACLE_HOME/bin and the directory where the new perl executable is located (usually $ORACLE_HOME/perl/bin).
The LD_LIBRARY_PATH environment variable includes $ORACLE_HOME/lib.
The PERL5LIB environment variable points to the directories where the new perl libraries are located (usually $ORACLE_HOME/perl/lib/ and $ORACLE_HOME/perl/lib/site_perl/)
Create nls/data/9idata directory
On the database server node, as the owner of the Oracle RDBMS file system and database instance, run the $ORACLE_HOME/nls/data/old/cr9idata.pl script to create the $ORACLE_HOME/nls/data/9idata directory.
After creating the directory, make sure that the ORA_NLS10 environment variable is set to the full path of the 9idata directory whenever you enable the 11g Oracle home.
Apply additional 11.1.0.6 RDBMS patches
Apply the following patches:
For all UNIX/Linux platforms apply patch 9218789.
Patch # 9218789 N-APPLY BUNDLE PATCH FOR RDBMS 11.2.0.1 WITH EBS RELEASE 12
Product RDBMS Server Lang GENERIC Size 21.8 MB
Preparation tasks
None
Pre-install Tasks
Shut down services running from the ORACLE_HOME
Apply The Patch
Patch Installation Steps:
————————-
1. Set your current directory to the directory where the patch is located.
% cd /9218789
2. Apply the patch.
Use the following command to apply the patch to the ORACLE_HOME:
% opatch napply -skip_subset -skip_duplicate
When OPatch starts, it will validate the patch and make sure there
are no conflicts with the software already installed in the ORACLE_HOME.
OPatch categorizes two types of conflicts:
(a) Conflicts with a patch already applied to the ORACLE_HOME
In this case, please stop the patch installation and contact
Oracle Support Services.
(b) Conflicts with subset patch already applied to the ORACLE_HOME
In this case, please continue the install, as the new patch
contains all the fixes from the existing patch in the ORACLE_HOME.
The subset patch will automatically be rolled back prior to the
installation of the new patch.
Post-install Tasks
Run only the catmgdidcode.sql and utlrp.sql
SQL> @?/md/admin/catmgdidcode.sql
SQL> @?/rdbms/admin/utlrp.sql
Comments
Do not run any of the post install instructions as those will be done after the upgrade.
Database Upgrade
Shut down Applications server processes and database listener
On each application tier server node, shut down all server processes or services. On the database tier server node, shut down the Oracle Net or Net8 database listener in the old Oracle home.
Note: The Applications will be unavailable to users until all remaining tasks in this section are completed.
Drop SYS.ENABLED$INDEXES (conditional – skip)
If the SYS.ENABLED$INDEXES table exists, use SQL*Plus to connect to the database as SYSDBA and running the following command to drop it:
SQL> drop table sys.enabled$indexes;
Prepare to upgrade
Database Upgrade Assistant
Database Upgrade Assistant (DBUA) interactively steps you through the upgrade
process and configures the database for the new Oracle Database 11g release. DBUA
automates the upgrade process by performing all of the tasks normally performed
manually. DBUA makes appropriate recommendations for configuration options such
as tablespaces and redo logs. You can then act on these recommendations.
DBUA provides support for Oracle Real Application Clusters (Oracle RAC). In an
Oracle RAC environment, DBUA upgrades all the database and configuration files on
all nodes in the cluster.
Upgrade the database instance
The instructions for the database upgrade are outlined in Oracle Database Upgrade Guide 11g Release 2 (11.2) Chapters 3 and 4.
Perform the steps from the “Run the Pre-Upgrade Information Tool” section to the “Upgrade the Database Using the Database Upgrade Assistant” section of chapter 3 and any step in chapter 4 that is relevant to your environment.
Run the Pre-Upgrade Information Tool
1. Log in to the system as the owner of the Oracle Database 11g Release 2 (11.2)
Oracle home directory.
2. Copy the Pre-Upgrade Information Tool (utlu112i.sql) from the Oracle
Database 11g Release 2 (11.2) ORACLE_HOME/rdbms/admin directory to a
directory outside of the Oracle home, such as the temporary directory on your
system. Make a note of the new location of this file.
3. Log in to the system as the owner of the Oracle home directory of the database to
be upgraded.
4. Change to the directory that you copied utlu112i.sql to in Step 2.
5. Start SQL*Plus.
6. Connect to the database instance as a user with SYSDBA privileges.
7. Set the system to spool results to a log file for later analysis:
SQL> SPOOL upgrade_info.log
8. Run the Pre-Upgrade Information Tool:
SQL> @utlu112i.sql
9. Turn off the spooling of script results to the log file:
SQL> SPOOL OFF
Check the output of the Pre-Upgrade Information Tool in upgrade_info.log.
Findings:
MODIFY them from init file (before upgrade – restart database)
WARNING: –> “java_pool_size” needs to be increased to at least 64 MB
Attention: Before performing any upgrade or maintenance operation, all customers must have the _disable_fast_validate parameter in their initialization file. Database shouldn’t be bounced.
Before database upgrade.
WARNING: –> Database contains schemas with stale optimizer statistics.
…. Refer to the Upgrade Guide for instructions to update
…. schema statistics prior to upgrading the database.
…. Component Schemas with stale statistics:
…. SYS
…. OLAPSYS
Oracle recommends that you use the DBMS_
STATS.GATHER_DICTIONARY_STATS procedure to gather these statistics. For example, you can enter the following:
SQL> EXEC DBMS_STATS.GATHER_DICTIONARY_STATS;
WARNING: –> Database contains INVALID objects prior to upgrade.
…. The list of invalid SYS/SYSTEM objects was written to
…. registry$sys_inv_objs.
…. The list of non-SYS/SYSTEM objects was written to
…. registry$nonsys_inv_objs.
…. Use utluiobj.sql after the upgrade to identify any new invalid
…. objects due to the upgrade.
…. USER IDMCCL has 1 INVALID objects.
…. USER PUBLIC has 1 INVALID objects.
…. USER CCLRDC has 1 INVALID objects.
…. USER 501729051 has 1 INVALID objects.
…. USER APPS has 2 INVALID objects.
…. USER SYS has 2 INVALID objects.
Re-run utlrp.sql and keep the count of the invalid objects.
REPLACE THEM from the init file (consider them for the 11gR2 init.ora file)
–> background_dump_dest 11.1 DEPRECATED replaced by
“diagnostic_dest”
–> user_dump_dest 11.1 DEPRECATED replaced by
“diagnostic_dest”
–> core_dump_dest 11.1 DEPRECATED replaced by
“diagnostic_dest”
REMOVE them from init file (consider them for the 11gR2 init.ora file)
–> plsql_native_library_dir 11.2 OBSOLETE
–> plsql_native_library_subdir_ 11.2 OBSOLETE
After completing the database upgrade.
WARNING: –> Database is using a timezone file older than version 11.
…. After the release migration, it is recommended that DBMS_DST package
…. be used to upgrade the 10.2.0.4.0 database timezone version
…. to the latest version which comes with the new release.
Use the DBMS_DST PL/SQL package and follow the instructions
in “Steps to Upgrade Time Zone File and Timestamp with Time
Zone Data” in Oracle Database Globalization Support Guide.
WARNING: –> Database contains schemas with objects dependent on network packages.
…. Refer to the Upgrade Guide for instructions to configure Network ACLs.
…. USER APPS has dependent objects.
Use below PL/SQL block for restoring/configuring the Network ACLs. Only APPS user is affected.
DECLARE
acl_path VARCHAR2(4000);
BEGIN
SELECT acl INTO acl_path FROM dba_network_acls
WHERE host = ‘host_name’ AND lower_port IS NULL AND upper_port IS NULL;
IF DBMS_NETWORK_ACL_ADMIN.CHECK_PRIVILEGE(acl_path,
‘user_name’,’connect’) IS NULL THEN
DBMS_NETWORK_ACL_ADMIN.ADD_PRIVILEGE(acl_path,
‘user_name’, TRUE, ‘connect’);
END IF;
EXCEPTION
WHEN no_data_found THEN
DBMS_NETWORK_ACL_ADMIN.CREATE_ACL(‘ACL_name.xml’,
‘ACL description’, ‘user_name’, TRUE, ‘connect’);
DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL(‘ACL_name.xml’,’host_name’);
END;
COMMIT;
1– Execute the anonymous PL/SQL code
2- Enter name of the user to whom the access has to be given
3- Enter which Privilege to be granted. Privilege can be Connect / Resolve.
4- Enter name of the Access Control List XML file.
* See additional info in Metalink Note 453756.1
When running dbua, set the _disable_fast_validate parameter using the following command:
Disable Database Vault (from new 11gR2 rdbms ORACLE_HOME) as follow:
cd $ORACLE_HOME/rdbms/lib
make -f ins_rdbms.mk dv_off lbac_off ioracle
$ dbua -initParam “_disable_fast_validate=TRUE”
When upgrading all statistics tables, note that Oracle E-Business Suite has only one statistics table, APPLSYS.FND_STATTAB, that needs to be upgraded.
If you plan to change the PL/SQL compilation mode, disable the compilation of objects.
Using the Database Upgrade Assistant
On Linux or UNIX platforms, enter the following command at a system
prompt in the Oracle Database 11g Release 2 (11.2) environment:
dbua
Select the database you want to upgrade to Oracle Database 11g Release 2 (11.2).
Select Recompile invalid objects at the end of upgrade
Select Not Move Database Files as Part of Upgrade
Setup Fast Recovery Area location ??? – Unselect
Configure the Database with Enterprise Manager (Local/Central Management) – DISABLE all options
Setup Database credentials for DBSNMP and SYSMAN (needed for EM)
You might face following error during the upgrade process:
ORA-01408: such column list already indexed
create index system.repcat$_audit_column_f2_idx on
system.repcat$_audit_column(base_sname,base_oname,base_conflict_type_id, base_reference_name)
/
system.repcat$_audit_column(base_sname,base_oname,base_conflict_type_id,
*
ERROR at line 2:
ORA-01408: such column list already indexed
Cause
An extra index exist on the database which shouldn’t exist.
It is created probably by an APPS oneoff.
Unpublished Bug 5589516 “APPSST: 11G UPGRADE ERRORS OUT WITH INDEX CREATION”
Solution
— To implement the solution, please execute the following steps::
1.- connect as sysdba to the database
2.- remove the offending index:
drop index system.REPCAT$_AUDIT_COLUMN_IDX1;
3.
3.1 -If the upgrade has finished without any other error:
create index system.repcat$_audit_column_f2_idx
on system.repcat$_audit_column
(base_sname,base_oname,base_conflict_type_id, base_reference_name);
3.2.- If the upgrade was cancelled or more errors were reported retry the upgrade manually (see Note 429825.1) :
$ cd $ORACLE_HOME/rdbms/admin
$ sqlplus “/ as sysdba”
SQL> startup UPGRADE
SQL> set echo on
SQL> SPOOL upgrade.log
SQL> @catupgrd.sql
SQL> spool off
Modify initialization parameters
Use the following sections in document 396009.1, Database Initialization Parameter Settings for Oracle Applications Release 12 on My Oracle Support as a guideline:
Common database initialization parameters
Release-specific database initialization parameters for 11gR2
Database initialization parameter sizing
Ensure the parameter “_disable_fast_validate=TRUE” is in the initialization file. This line will have to be commented out after the upgrade and any other maintenance procedures.
Attention: If you encounter the error:
ORA-04030: out of process memory when trying to allocate 822904 bytes (pga heap, kco buffer)
ORA-07445: exception encountered: core dump [dbgtfdFileWrite()+48]
then set the _pga_max_size initialization parameter to a larger value as follows:
_pga_max_size=104857600
Restart your database.
If native compilation of PL/SQL code is disabled in your database instance, ignore the initialization parameters that pertain to the native compilation of PL/SQL code. Ensure that the temporary tablespace is properly defined. Follow the instructions in the Temporary Tablespace Setup section.
Note: There are many ways to generate the parameter file (for example, copying and updating an old init.ora parameter file). You are not confined to using the parameter files generated by the database upgrade assistant.
Perform post-install instructions
a) Recreate index system.repcat$_audit_column_f2_idx in case it had to be dropped earlier.
create index system.repcat$_audit_column_f2_idx
on system.repcat$_audit_column
(base_sname,base_oname,base_conflict_type_id, base_reference_name);
b) Update the database timezone version (see the log work below)
SQL> column PROPERTY_NAME format a30
SQL> column VALUE format a30
SQL> SELECT PROPERTY_NAME, SUBSTR(property_value, 1, 30) value
FROM DATABASE_PROPERTIES
WHERE PROPERTY_NAME LIKE ‘DST_%’
ORDER BY PROPERTY_NAME;
PROPERTY_NAME VALUE
—————————— ——————————
DST_PRIMARY_TT_VERSION 4
DST_SECONDARY_TT_VERSION 0
DST_UPGRADE_STATE NONE
SQL> SELECT version FROM v$timezone_file;
VERSION
———-
4
SQL> exec DBMS_DST.BEGIN_PREPARE(11)
PL/SQL procedure successfully completed.
SQL> SELECT PROPERTY_NAME, SUBSTR(property_value, 1, 30) value
FROM DATABASE_PROPERTIES
WHERE PROPERTY_NAME LIKE ‘DST_%’
ORDER BY PROPERTY_NAME;
2 3 4
PROPERTY_NAME VALUE
—————————— ——————————
DST_PRIMARY_TT_VERSION 4
DST_SECONDARY_TT_VERSION 11
DST_UPGRADE_STATE PREPARE
SQL> TRUNCATE TABLE SYS.DST$TRIGGER_TABLE;
TRUNCATE TABLE sys.dst$affected_tables;
TRUNCATE TABLE sys.dst$error_table;
Table truncated.
SQL>
Table truncated.
SQL>
Table truncated.
SQL>
SQL> BEGIN
DBMS_DST.FIND_AFFECTED_TABLES
(affected_tables => ‘sys.dst$affected_tables’,
log_errors => TRUE,
log_errors_table => ‘sys.dst$error_table’);
END;
/ 2 3 4 5 6 7
PL/SQL procedure successfully completed.
SQL> SELECT * FROM sys.dst$affected_tables;
no rows selected
SQL> EXEC DBMS_DST.END_PREPARE;
PL/SQL procedure successfully completed.
SQL> SELECT PROPERTY_NAME, SUBSTR(property_value, 1, 30) value
FROM DATABASE_PROPERTIES
WHERE PROPERTY_NAME LIKE ‘DST_%’
ORDER BY PROPERTY_NAME; 2 3 4
PROPERTY_NAME VALUE
—————————— ——————————
DST_PRIMARY_TT_VERSION 4
DST_SECONDARY_TT_VERSION 0
DST_UPGRADE_STATE NONE
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup upgrade;
ORACLE instance started.
Total System Global Area 2142679040 bytes
Fixed Size 1337720 bytes
Variable Size 922748552 bytes
Database Buffers 1191182336 bytes
Redo Buffers 27410432 bytes
Database mounted.
Database opened.
SQL> set serveroutput on
SQL> purge dba_recyclebin;
DBA Recyclebin purged.
SQL> TRUNCATE TABLE SYS.DST$TRIGGER_TABLE;
TRUNCATE TABLE sys.dst$affected_tables;
TRUNCATE TABLE sys.dst$error_table;
Table truncated.
SQL>
Table truncated.
SQL>
Table truncated.
SQL> EXEC DBMS_DST.BEGIN_UPGRADE(11)
An upgrade window has been successfully started.
PL/SQL procedure successfully completed.
SQL> SELECT PROPERTY_NAME, SUBSTR(property_value, 1, 30) value
FROM DATABASE_PROPERTIES
WHERE PROPERTY_NAME LIKE ‘DST_%’
ORDER BY PROPERTY_NAME; 2 3 4
PROPERTY_NAME VALUE
—————————— ——————————
DST_PRIMARY_TT_VERSION 11
DST_SECONDARY_TT_VERSION 4
DST_UPGRADE_STATE UPGRADE
SQL> column OWNER format a20
SQL> column TABLE_NAME a30
SQL> column TABLE_NAME format a30
SQL> column UPGRADE_IN_PROGRESS format a20
SQL> SELECT OWNER, TABLE_NAME, UPGRADE_IN_PROGRESS FROM ALL_TSTZ_TABLES where UPGRADE_IN_PROGRESS=’YES’;
OWNER TABLE_NAME UPGRADE_IN_PROGRESS
——————– —————————— ——————–
APPLSYS AQ$_WF_WS_SAMPLE_L YES
APPLSYS AQ$_WF_NOTIFICATION_OUT_L YES
APPLSYS AQ$_WF_REPLAY_OUT_L YES
ASO AQ$_ASO_ORDER_FEEDBACK_T_L YES
APPLSYS AQ$_WF_WS_JMS_IN_L YES
APPLSYS AQ$_WF_WS_JMS_OUT_S YES
APPLSYS AQ$_WF_WS_JMS_IN_S YES
APPLSYS AQ$_WF_JMS_IN_S YES
APPLSYS AQ$_WF_IN_S YES
APPLSYS AQ$_WF_REPLAY_OUT_S YES
AR AQ$_HZ_JMS_OUT_L YES
OWNER TABLE_NAME UPGRADE_IN_PROGRESS
——————– —————————— ——————–
AR AQ$_HZ_JMS_OUT_S YES
APPLSYS AQ$_WF_WS_JMS_OUT_L YES
APPLSYS AQ$_WF_JMS_IN_L YES
APPLSYS AQ$_WF_IN_L YES
APPLSYS AQ$_WF_DEFERRED_L YES
APPLSYS AQ$_WF_WS_SAMPLE_S YES
APPLSYS AQ$_WF_NOTIFICATION_IN_S YES
APPLSYS AQ$_WF_REPLAY_IN_S YES
OKC AQ$_OKC_AQ_EV_TAB_S YES
XNP AQ$_XNP_OUT_MSG_QTAB_L YES
APPLSYS AQ$_WF_JAVA_DEFERRED_L YES
OWNER TABLE_NAME UPGRADE_IN_PROGRESS
——————– —————————— ——————–
APPLSYS AQ$_WF_NOTIFICATION_IN_L YES
APPLSYS AQ$_WF_DEFERRED_TABLE_M_L YES
APPLSYS AQ$_FND_CP_GSM_IPC_AQTBL_S YES
APPLSYS AQ$_FND_CP_GSM_OPP_AQTBL_S YES
APPLSYS AQ$_WF_JAVA_ERROR_S YES
APPLSYS AQ$_WF_ERROR_S YES
APPLSYS AQ$_WF_DEFERRED_S YES
PO AQ$_PO_OTM_OUT_L YES
XNP AQ$_XNP_OUT_MSG_QTAB_S YES
APPLSYS AQ$_FND_CP_GSM_OPP_AQTBL_L YES
APPLSYS AQ$_FND_CP_GSM_IPC_AQTBL_L YES
OWNER TABLE_NAME UPGRADE_IN_PROGRESS
——————– —————————— ——————–
APPLSYS AQ$_WF_JMS_JMS_OUT_L YES
APPLSYS AQ$_WF_CONTROL_L YES
APPLSYS AQ$_WF_REPLAY_IN_L YES
APPLSYS AQ$_WF_CONTROL_S YES
PO AQ$_PO_OTM_OUT_S YES
CS AQ$_CS_SERVICE_REQUEST_OQT_S YES
ASO AQ$_ASO_ORDER_FEEDBACK_T_S YES
APPLSYS AQ$_FND_CP_TM_AQTBL_S YES
APPLSYS AQ$_WF_JAVA_DEFERRED_S YES
APPLSYS AQ$_WF_JMS_OUT_S YES
APPLSYS AQ$_WF_DEFERRED_TABLE_M_S YES
OWNER TABLE_NAME UPGRADE_IN_PROGRESS
——————– —————————— ——————–
AR AQ$_AR_REV_REC_QT_L YES
AR AQ$_AR_REV_REC_QT_S YES
OKC AQ$_OKC_AQ_EV_TAB_L YES
APPLSYS AQ$_FND_CP_TM_RET_AQTBL_L YES
APPLSYS AQ$_WF_JAVA_ERROR_L YES
APPLSYS AQ$_WF_JMS_OUT_L YES
APPLSYS AQ$_WF_OUT_L YES
APPLSYS AQ$_WF_ERROR_L YES
APPLSYS AQ$_WF_NOTIFICATION_OUT_S YES
APPLSYS AQ$_WF_OUT_S YES
APPLSYS AQ$_FND_CP_TM_AQTBL_L YES
OWNER TABLE_NAME UPGRADE_IN_PROGRESS
——————– —————————— ——————–
APPLSYS AQ$_FND_CP_TM_RET_AQTBL_S YES
APPLSYS AQ$_WF_JMS_JMS_OUT_S YES
CS AQ$_CS_SERVICE_REQUEST_IQT_L YES
CS AQ$_CS_SERVICE_REQUEST_OQT_L YES
CS AQ$_CS_SERVICE_REQUEST_IQT_S YES
60 rows selected.
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.
Total System Global Area 2142679040 bytes
Fixed Size 1337720 bytes
Variable Size 922748552 bytes
Database Buffers 1191182336 bytes
Redo Buffers 27410432 bytes
Database mounted.
Database opened.
SQL> set serveroutput on
SQL> VAR numfail number
SQL> BEGIN
2 DBMS_DST.UPGRADE_DATABASE(:numfail,
parallel => TRUE,
3 4 log_errors => TRUE,
5 log_errors_table => ‘SYS.DST$ERROR_TABLE’,
6 log_triggers_table => ‘SYS.DST$TRIGGER_TABLE’,
7 error_on_overlap_time => FALSE,
8 error_on_nonexisting_time => FALSE);
9 DBMS_OUTPUT.PUT_LINE(‘Failures:’|| :numfail);
10 END;
11 /
Table list: ASO.AQ$_ASO_ORDER_FEEDBACK_T_S
Number of failures: 0
Table list: OKC.AQ$_OKC_AQ_EV_TAB_S
Number of failures: 0
Table list: AR.AQ$_AR_REV_REC_QT_S
Number of failures: 0
Table list: XNP.AQ$_XNP_OUT_MSG_QTAB_S
Number of failures: 0
Table list: CS.AQ$_CS_SERVICE_REQUEST_OQT_S
Number of failures: 0
Table list: CS.AQ$_CS_SERVICE_REQUEST_IQT_S
Number of failures: 0
Table list: APPLSYS.AQ$_WF_DEFERRED_TABLE_M_S
Number of failures: 0
Table list: APPLSYS.AQ$_WF_DEFERRED_S
Number of failures: 0
Table list: APPLSYS.AQ$_WF_ERROR_S
Number of failures: 0
Table list: APPLSYS.AQ$_WF_REPLAY_OUT_S
Number of failures: 0
Table list: APPLSYS.AQ$_WF_IN_S
Number of failures: 0
Table list: APPLSYS.AQ$_WF_OUT_S
Number of failures: 0
Table list: APPLSYS.AQ$_WF_REPLAY_IN_S
Number of failures: 0
Table list: APPLSYS.AQ$_WF_JMS_IN_S
Number of failures: 0
Table list: APPLSYS.AQ$_WF_JMS_OUT_S
Number of failures: 0
Table list: APPLSYS.AQ$_WF_CONTROL_S
Number of failures: 0
Table list: APPLSYS.AQ$_WF_NOTIFICATION_IN_S
Number of failures: 0
Table list: APPLSYS.AQ$_WF_NOTIFICATION_OUT_S
Number of failures: 0
Table list: APPLSYS.AQ$_WF_WS_JMS_IN_S
Number of failures: 0
Table list: APPLSYS.AQ$_WF_JAVA_DEFERRED_S
Number of failures: 0
Table list: APPLSYS.AQ$_WF_JAVA_ERROR_S
Number of failures: 0
Table list: APPLSYS.AQ$_WF_WS_JMS_OUT_S
Number of failures: 0
Table list: APPLSYS.AQ$_WF_JMS_JMS_OUT_S
Number of failures: 0
Table list: APPLSYS.AQ$_WF_WS_SAMPLE_S
Number of failures: 0
Table list: APPLSYS.AQ$_FND_CP_GSM_OPP_AQTBL_S
Number of failures: 0
Table list: APPLSYS.AQ$_FND_CP_TM_RET_AQTBL_S
Number of failures: 0
Table list: APPLSYS.AQ$_FND_CP_TM_AQTBL_S
Number of failures: 0
Table list: AR.AQ$_HZ_JMS_OUT_S
Number of failures: 0
Table list: APPLSYS.AQ$_FND_CP_GSM_IPC_AQTBL_S
Number of failures: 0
Table list: PO.AQ$_PO_OTM_OUT_S
Number of failures: 0
Table list: AR.AQ$_AR_REV_REC_QT_L
Number of failures: 0
Table list: ASO.AQ$_ASO_ORDER_FEEDBACK_T_L
Number of failures: 0
Table list: PO.AQ$_PO_OTM_OUT_L
Number of failures: 0
Table list: XNP.AQ$_XNP_OUT_MSG_QTAB_L
Number of failures: 0
Table list: OKC.AQ$_OKC_AQ_EV_TAB_L
Number of failures: 0
Table list: CS.AQ$_CS_SERVICE_REQUEST_OQT_L
Number of failures: 0
Table list: CS.AQ$_CS_SERVICE_REQUEST_IQT_L
Number of failures: 0
Table list: APPLSYS.AQ$_WF_DEFERRED_TABLE_M_L
Number of failures: 0
Table list: APPLSYS.AQ$_WF_DEFERRED_L
Number of failures: 0
Table list: APPLSYS.AQ$_WF_ERROR_L
Number of failures: 0
Table list: APPLSYS.AQ$_WF_REPLAY_OUT_L
Number of failures: 0
Table list: APPLSYS.AQ$_WF_IN_L
Number of failures: 0
Table list: APPLSYS.AQ$_WF_OUT_L
Number of failures: 0
Table list: APPLSYS.AQ$_WF_REPLAY_IN_L
Number of failures: 0
Table list: APPLSYS.AQ$_WF_JMS_IN_L
Number of failures: 0
Table list: APPLSYS.AQ$_WF_JMS_OUT_L
Number of failures: 0
Table list: APPLSYS.AQ$_WF_CONTROL_L
Number of failures: 0
Table list: APPLSYS.AQ$_WF_NOTIFICATION_IN_L
Number of failures: 0
Table list: APPLSYS.AQ$_WF_NOTIFICATION_OUT_L
Number of failures: 0
Table list: APPLSYS.AQ$_WF_WS_JMS_IN_L
Number of failures: 0
Table list: APPLSYS.AQ$_WF_JAVA_DEFERRED_L
Number of failures: 0
Table list: APPLSYS.AQ$_WF_JAVA_ERROR_L
Number of failures: 0
Table list: APPLSYS.AQ$_WF_WS_JMS_OUT_L
Number of failures: 0
Table list: APPLSYS.AQ$_WF_JMS_JMS_OUT_L
Number of failures: 0
Table list: APPLSYS.AQ$_WF_WS_SAMPLE_L
Number of failures: 0
Table list: APPLSYS.AQ$_FND_CP_GSM_IPC_AQTBL_L
Number of failures: 0
Table list: APPLSYS.AQ$_FND_CP_GSM_OPP_AQTBL_L
Number of failures: 0
Table list: APPLSYS.AQ$_FND_CP_TM_RET_AQTBL_L
Number of failures: 0
Table list: APPLSYS.AQ$_FND_CP_TM_AQTBL_L
Number of failures: 0
Table list: AR.AQ$_HZ_JMS_OUT_L
Number of failures: 0
Failures:0
PL/SQL procedure successfully completed.
SQL> VAR fail number
BEGIN
DBMS_DST.END_UPGRADE(:fail);
DBMS_OUTPUT.PUT_LINE(‘Failures:’|| :fail);
END;
/SQL> 2 3 4 5
An upgrade window has been successfully ended.
Failures:0
PL/SQL procedure successfully completed.
SQL> SELECT PROPERTY_NAME, SUBSTR(property_value, 1, 30) value
FROM DATABASE_PROPERTIES
WHERE PROPERTY_NAME LIKE ‘DST_%’
ORDER BY PROPERTY_NAME; 2 3 4
PROPERTY_NAME VALUE
—————————— ——————————
DST_PRIMARY_TT_VERSION 11
DST_SECONDARY_TT_VERSION 0
DST_UPGRADE_STATE NONE
SQL> SELECT * FROM v$timezone_file;
FILENAME VERSION
———————————————————— ———-
timezlrg_11.dat 11
SQL>
d) Configure the Network ACLs
DECLARE
acl_path VARCHAR2(4000);
BEGIN
SELECT acl INTO acl_path FROM dba_network_acls
WHERE host = ‘*’ AND lower_port IS NULL AND upper_port IS NULL;
IF DBMS_NETWORK_ACL_ADMIN.CHECK_PRIVILEGE(acl_path,
‘APPS’,’connect’) IS NULL THEN
DBMS_NETWORK_ACL_ADMIN.ADD_PRIVILEGE(acl_path,
‘APPS’, TRUE, ‘connect’);
END IF;
EXCEPTION
WHEN no_data_found THEN
DBMS_NETWORK_ACL_ADMIN.CREATE_ACL(‘ACL_connect.xml’,
‘ACL for users with connect’, ‘APPS’, TRUE, ‘connect’);
DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL(‘ACL_connect.xml’,’*’);
END;
/
COMMIT;
f) Run only the catmgdidcode.sql and utlrp.sql scripts for the post install instructions in patch 9218789. The other scripts are run as part of the dbua upgrade.
SQL> @?/md/admin/catmgdidcode.sql
SQL> @?/rdbms/admin/utlrp.sql
g)
Natively compile PL/SQL code (optional)
You can choose to run Oracle E-Business Suite 12.1 PL/SQL database objects in natively compiled mode with Oracle Database 11g. See the “Compiling PL/SQL Program Units for Native Execution” section of Chapter 12 of Oracle Database PL/SQL Language Reference 11g Release 2 (11.2).
1. Shut down application services, the listener, and the database.
■ Shut down all of the Application services including the Forms Processes, Web
Servers, Reports Servers, and Concurrent Manager Servers. After shutting
down all of the Application services, ensure that all of the connections to the
database were terminated.
■ Shut down the TNS listener of the database to ensure that no new connections
are made.
■ Shut down the database in normal or immediate mode as the user SYS. See the
Oracle Database Administrator’s Guide.
2. Set PLSQL_CODE_TYPE to NATIVE in the compilation parameter file. If the
database is using a server parameter file, then set this after the database has started.
3. Start up the database in upgrade mode, using the UPGRADE option. For
information about SQL*Plus STARTUP, see the SQL*Plus User’s Guide and Reference.
4. Run this code to list the invalid PL/SQL units. You can save the output of the
query for future reference with the SQL SPOOL statement:
— To save the output of the query to a file:
SPOOL pre_update_invalid.log
SELECT o.OWNER, o.OBJECT_NAME, o.OBJECT_TYPE
FROM DBA_OBJECTS o, DBA_PLSQL_OBJECT_SETTINGS s
WHERE o.OBJECT_NAME = s.NAME AND o.STATUS=’INVALID’;
— To stop spooling the output: SPOOL OFF
5. Run this query to determine how many objects are compiled NATIVE and
INTERPRETED (to save the output, use the SQL SPOOL statement):
SELECT TYPE, PLSQL_CODE_TYPE, COUNT(*)
FROM DBA_PLSQL_OBJECT_SETTINGS
WHERE PLSQL_CODE_TYPE IS NOT NULL
GROUP BY TYPE, PLSQL_CODE_TYPE
ORDER BY TYPE, PLSQL_CODE_TYPE;
Any objects with a NULL plsql_code_type are special internal objects and can
be ignored.
6. Run the $ORACLE_HOME/rdbms/admin/dbmsupgnv.sql script as the user SYS
to update the plsql_code_type setting to NATIVE in the dictionary tables for all
PL/SQL units. This process also invalidates the units. Use TRUE with the script to
exclude package specifications; FALSE to include the package specifications.
This update must be done when the database is in UPGRADE mode. The script is
guaranteed to complete successfully or rollback all the changes.
SQL> @?/rdbms/admin/dbmsupgnv.sql FALSE
7. Shut down the database and restart in NORMAL mode.
8. Before you run the utlrp.sql script, Oracle recommends that no other sessions
are connected to avoid possible problems. You can ensure this with this statement:
ALTER SYSTEM ENABLE RESTRICTED SESSION;
9. Run the $ORACLE_HOME/rdbms/admin/utlrp.sql script as the user SYS. This
script recompiles all the PL/SQL modules using a default degree of parallelism.
See the comments in the script for information about setting the degree explicitly.
If for any reason the script is abnormally terminated, rerun the utlrp.sql script
to recompile any remaining invalid PL/SQL modules.
10. Compile also APPS invalid objects using adadmin
11. Disable the restricted session mode for the database, then start the services that
you previously shut down. To disable restricted session mode, use this statement:
ALTER SYSTEM DISABLE RESTRICTED SESSION;
Post-Installation Tasks Section
After the Database Upgrade
Start the new database listener (conditional)
If the Oracle Net listener for the database instance in the new Oracle home has not been started, you must start it now. Since AutoConfig has not yet been implemented, start the listener with the lsnrctl executable (UNIX/Linux) or Services (Windows). See the Oracle Database Net Services Administrator’s Guide, 11g Release 2 (11.2) for more information.
Run adgrants.sql
Copy $APPL_TOP/admin/adgrants.sql (adgrants_nt.sql for Windows) from the administration server node to the database server node. Use SQL*Plus to connect to the database as SYSDBA and run the script using the following command:
$ sqlplus “/ as sysdba” @adgrants.sql (or adgrants_nt.sql)
Note: Verify the usage of adgrants.sql in the adgrants.sql script. Older versions of adgrants.sql require the APPLSYS schema name parameter to be passed instead of APPS.
Grant create procedure privilege on CTXSYS
Copy $AD_TOP/patch/115/sql/adctxprv.sql from the administration server node to the database server node. Use SQL*Plus to connect to the database as APPS and run the script using the following command:
$ sqlplus apps/ @adctxprv.sql \
CTXSYS
Set CTXSYS parameter
Use SQL*Plus to connect to the database as SYSDBA and run the following command:
$ sqlplus “/ as sysdba”
SQL> exec ctxsys.ctx_adm.set_parameter(‘file_access_role’, ‘public’);
Validate Workflow ruleset
On the administration server node, use SQL*Plus to connect to the database as APPS and run the $FND_TOP/patch/115/sql/wfaqupfix.sql script using the following command:
$ sqlplus / @wfaqupfix.sql\
Implement and run AutoConfig
Implement and run AutoConfig in the new Oracle home on the database server node. If the database listener of the new Oracle home is defined differently than the old Oracle home, you must also run AutoConfig on each application tier server node to update the system with the new listener.
If instance is on 12.0.X and is not upgraded to 10.1.3.3 AS patchset, Patch 4585869 needs to be applied:
Patch # 4585869 CLOSE() API OF XMLPRINTDRIVER DOESN’T CLOSE THE HANDLE PROPERLY
Product XML Developers Kit Lang GENERIC Size 15K (16219 bytes)
Pre-install Tasks
Patch Special Instructions:
# —————————
Set ORACLE_HOME and PATH (opatch) towards AS 10.1.3
# Whilst you do not need to shutdown the instances to apply this patch,
# you will need to shutdown and restart the instance in order
# to pick up the JAVA chnages.
#
# If the Oracle inventory is not setup correctly this utility will
# fail. To check accessibility to the inventory you can use the
# command
#
# % opatch lsinventory
Apply The Patch
# To apply the patch, unzip the PSE container file:
#
# % unzip p4585869_10130_GENERIC.zip
#
# Set your current directory to the directory where the patch
# is located:
#
# % cd 4585869
#
# Ensure that the directory containing the opatch script appears in
# your $PATH; then enter the following command:
#
# % opatch apply
Post-install Tasks
None
Comments
None
Copy AutoConfig to the RDBMS ORACLE_HOME
Update the RDBMS ORACLE_HOME file system with the new AutoConfig files delivered in the above patch
On the application tier (as the APPLMGR user):
Log in to the APPL_TOP environment (source the environment file)
Create appsutil.zip file
perl /bin/admkappsutil.pl
This will create appsutil.zip in /admin/out
On the database tier (as the ORACLE user):
Copy or FTP the appsutil.zip file to the cd
unzip -o appsutil.zip
Install JRE on the Database tier
Follow the steps below to ensure that jre version on the applications tier and the database tier is atleast 1.5 or higher:
If you are using a “fully certified” platform, please refer to Metalink Note 418664.1 to install jre under the /appsutil directory.
cd [ORACLE_HOME]/appsutil/
mv jre jre_old
Install the latest update of JRE 6.0 into the [ORACLE_HOME]/appsutil directory
mv jre1.6.0._latest_update# jre (for example ‘mv jre1.6.0_15 jre’)
The E-Business Suite system is now configured to use the latest update of JRE for AutoConfig running on the database tier.
Check the JRE version as follow:
cd [ORACLE_HOME]/appsutil/jre/bin
java -version
If you are using a “Database tier only” platform, please refer to Metalink Note 456197.1 to install jre under the /appsutil directory.
Generate the Database Context File
Execute the following command to create your Database Context File:
perl /appsutil/bin/adbldxml.pl
Run AutoConfig on the Database tier
/appsutil/bin/adconfig.sh contextfile=
Gather statistics for SYS schema
Copy $APPL_TOP/admin/adstats.sql from the administration server node to the database server node. Note that adstats.sql has to be run in restricted mode. Use SQL*Plus to connect to the database as SYSDBA and use the following commands to run adstats.sql in restricted mode:
$ sqlplus “/ as sysdba”
SQL> alter system enable restricted session;
SQL> @adstats.sql
$ sqlplus “/ as sysdba”
SQL> alter system disable restricted session;
SQL> exit;
Note: Make sure that you have at least 1.5 GB of free default temporary tablespace.
Create Demantra privileges (skip)
If you are using Demantra, perform the steps in document 730883.1 on My Oracle Support.
Re-create custom database links (conditional)
If the Oracle Net listener in the 11.2.0 Oracle home is defined differently than the one used by the old Oracle home, you must re-create any custom self-referential database links that exist in the Applications database instance. To check for the existence of database links, use SQL*Plus on the database server node to connect to the Applications database instance as APPS and run the following query:
$ sqlplus apps/
SQL> select db_link from all_db_links;
The EDW_APPS_TO_WH and APPS_TO_APPS database links, if they exist, should have been updated with the new port number by AutoConfig in the previous step.
If you have custom self-referential database links in the database instance, use the following commands to drop and re-create them:
$ sqlplus apps/
SQL> drop database link ;
SQL> create database link connect to
identified by using
‘(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=)
(PORT=))(CONNECT_DATA=(SID=)))’;
where , , , , , and reflect the new Oracle Net listener for the database instance.
Re-create grants and synonyms
Oracle Database 11g Release 2 (11.2) contains new functionality for grants and synonyms compared to previous database releases. As a result, you must re-create the grants and synonyms in the APPS schema. On the administration server node, as the owner of the Applications file system, run AD Administration and select the “Recreate grants and synonyms for APPS schema” task from the Maintain Applications Database Objects menu.
Re-run utlrp and count any invalid db object
$ sqlplus “/ as sysdba”
SQL> @?/rdbms/admin/utlrp.sql
set pagesize 500
set linesize 100
select substr(comp_name,1,40) comp_name, status, substr(version,1,10) version from
dba_registry order by comp_name;
select substr(object_name,1,40) object_name,substr(owner,1,15) owner,object_type from
dba_objects where status=’INVALID’ order by owner,object_type;
select owner,object_type,count(*) from dba_objects where status=’INVALID’ group by
owner,object_type order by owner,object_type ;
SQL> /
OBJECT_NAME OWNER OBJECT_TYPE
—————————— ————— —————
XLA_00200_AAD_S_000016_PKG APPS PACKAGE BODY
FEM_CHECK_BR_DIS_MBRS_PKG APPS PACKAGE BODY
IGW_REPORT_PROCESSING APPS PACKAGE BODY
IGW_BUDGET_CATEGORY_V APPS VIEW
GEDBA_SESSION_INFO_V APPS VIEW
SQL>
Some Oracle Grants Proposal (IGW) objects objects in E-Business Suite Release 12 may show up as invalid objects. For example:
Object Type Object Name
View IGW_BUDGET_CATEGORY_V
Package Body IGW_REPORT_PROCESSING
This is a known issue and all failures stemming from Oracle Grants Proposal such as IGW invalid objects should be ignored. Metalink Note 965907.1
According to SR 3-1367298521, invalid package (FEM_CHECK_BR_DIS_MBRS_PKG) may be ignored if not using EPF. This is a bug which is fixed in 12.1.2. However, no direct fix is required as long as you/we are not using EPF.
Migrate SYSTEM tablespace to LOCALLY MANAGED
Reference: Metalink Note 735978.1
You can migrate your SYSTEM tablespace from dictionary-managed to locally managed by performing the following steps:
i.e.
ALTER TABLESPACE CTXD READ ONLY;
ALTER TABLESPACE OWAPUB READ ONLY;
ALTER TABLESPACE ODM READ ONLY;
ALTER TABLESPACE PORTAL READ ONLY;
ALTER TABLESPACE APPS_TS_TX_DATA READ ONLY;
ALTER TABLESPACE APPS_TS_TX_IDX READ ONLY;
ALTER TABLESPACE APPS_TS_SEED READ ONLY;
ALTER TABLESPACE APPS_TS_INTERFACE READ ONLY;
ALTER TABLESPACE APPS_TS_SUMMARY READ ONLY;
ALTER TABLESPACE APPS_TS_NOLOGGING READ ONLY;
ALTER TABLESPACE APPS_TS_ARCHIVE READ ONLY;
ALTER TABLESPACE APPS_TS_QUEUES READ ONLY;
ALTER TABLESPACE APPS_TS_MEDIA READ ONLY;
ALTER TABLESPACE OLAP READ ONLY;
ALTER TABLESPACE APPS_TS_TOOLS READ ONLY;
ALTER TABLESPACE DISCOVERER READ ONLY;
ALTER TABLESPACE USERS READ ONLY;
ALTER TABLESPACE USERSX READ ONLY;
ALTER TABLESPACE SYSAUX OFFLINE;
ALTER SYSTEM ENABLE RESTRICTED SESSION;
EXECUTE DBMS_SPACE_ADMIN.TABLESPACE_MIGRATE_TO_LOCAL(‘SYSTEM’);
SELECT extent_management
FROM dba_tablespaces
WHERE tablespace_name = ‘SYSTEM’;
ALTER SYSTEM DISABLE RESTRICTED SESSION;
ALTER TABLESPACE SYSAUX ONLINE;
ALTER TABLESPACE CTXD READ WRITE;
ALTER TABLESPACE OWAPUB READ WRITE;
ALTER TABLESPACE ODM READ WRITE;
ALTER TABLESPACE PORTAL READ WRITE;
ALTER TABLESPACE APPS_TS_TX_DATA READ WRITE;
ALTER TABLESPACE APPS_TS_TX_IDX READ WRITE;
ALTER TABLESPACE APPS_TS_SEED READ WRITE;
ALTER TABLESPACE APPS_TS_INTERFACE READ WRITE;
ALTER TABLESPACE APPS_TS_SUMMARY READ WRITE;
ALTER TABLESPACE APPS_TS_NOLOGGING READ WRITE;
ALTER TABLESPACE APPS_TS_ARCHIVE READ WRITE;
ALTER TABLESPACE APPS_TS_QUEUES READ WRITE;
ALTER TABLESPACE APPS_TS_MEDIA READ WRITE;
ALTER TABLESPACE OLAP READ WRITE;
ALTER TABLESPACE APPS_TS_TOOLS READ WRITE;
ALTER TABLESPACE DISCOVERER READ WRITE;
ALTER TABLESPACE USERS READ WRITE;
ALTER TABLESPACE USERSX READ WRITE;
Restart Applications server processes
Restart all the Application tier server processes that you shut down previously. Remember that the Oracle Net listener for the database instance, as well as the database instance itself, need to be started in the 11.2 Oracle home. Users may return to the system.
Synchronize Workflow views
Log on to Oracle E-Business Suite with the “System Administrator” responsibility. Click Requests > Run > Single Request and the OK button. Enter the following parameters:
Request Name = Workflow Directory Services User/Role Validation
p_BatchSize = 10000
p_Check_Dangling = Yes
Add missing user/role assignments = Yes
Update WHO columns in WF tables = No
Click “OK” and “Submit”.
EBS 12.1.2 RELEASE UPDATE PACK TO AN EXISTING RELEASE R12.1
Contents
Applying the 12.1.2 Release Update Pack to an existing R12.1 3
Preparation Tasks Section 3
Pre-Installation Tasks Section: 3
Prerequisites code levels. 3
Other requisites 3
Installation Tasks Section: 4
Install R12.AD.B.DELTA.2 4
Install 12.1.2 Release Update Pack 4
Post-Installation Tasks Section: 6
Apply post-patch fixes 6
Post-Update Steps. 7
1. Update database tier nodes with the Release 12.1.2 code level 7
2. Perform NLS-related Step (conditional) 8
3. Perform Product-specific Steps (conditional) 8
4. Perform Other Post-steps 8
Applying the 12.1.2 Release Update Pack to an existing R12.1
Preparation Tasks Section
a) Stop checkin process daemon
b) Comment any schedule crontab job
c) Perform full-backup (database/apps)
d) Verify /etc/oraInst.loc is pointing to the correct oraInventory instance
#
# If the Oracle inventory is not setup correctly this utility will
# fail. To check accessibility to the inventory you can use the
# command
#
# % opatch lsinventory
#
e) Perform an inicial count of invalid db objects
#
set pagesize 500
set linesize 100
select substr(comp_name,1,40) comp_name, status, substr(version,1,10) version from
dba_registry order by comp_name;
select substr(object_name,1,40) object_name,substr(owner,1,15) owner,object_type from
dba_objects where status=’INVALID’ order by owner,object_type;
select owner,object_type,count(*) from dba_objects where status=’INVALID’ group by
owner,object_type order by owner,object_type ;
Pre-Installation Tasks Section:
Prerequisites code levels.
a) EBS should be already in release 12.1 before upgrading to 12.1.2
Other requisites
b) As OracleAS 10g Patchset 10.1.3.x for Oracle E-Business Suite Release 12 document is updated regularly, verify the latest copy of Note 454811.1 (for 10.1.3.5) or Note 728531.1 (for 10.1.3.4 ) and apply all required patches mentioned in the document, before upgrading to Release 12.1.2.
– Nothing else should be done for OracleAS 10g 10.1.3.x (Linux-x86) if upgrade process is/was followed using document “Upgrading to the OracleAS 10g 10.1.3.4 Patch Set in Oracle E-Business Suite Release 12 v4.0”. It includes any change up to last change log (June 3, 2010) registered in Note 728531.1
c) As the OracleAS 10g Patchset 10.1.2.3 for Forms and Reports for Oracle E-Business Suite Release 12 Note 437878.1 document is updated regularly, verify the latest copy of Note 437878.1 and apply all required patches that are mentioned in this document before upgrading to Release 12.1.2.
Follow steps in document “Updating OracleAS 10g Forms and Reports in Oracle E-Business Suite Release 12 v1.0”. It included any change up to Last Updated Note 437878.1 (Sep 3, 2010)
Installation Tasks Section:
To apply Release 12.1.2, follow these steps:
Install R12.AD.B.DELTA.2
1. Use AutoPatch to apply R12.AD.B.DELTA.2 Patch 8502056, before you complete any of the other steps in this section. Do not merge this patch with any other patch. R12.AD.B.Delta.2 must be applied separately. Refer to Oracle E-Business Suite DBA Software Updates, Release 12.1.2 Note 879322.1 for more information about R12.AD.B.Delta.2.
Patch # 8502056 Oracle Applications DBA Release Update Pack 2 for 12.1 (R12.AD.B.DELTA.2)
Product Applications DBA Lang GENERAL Size 964.1 KB
Pre-install Tasks
Run the adgrants.sql script as a user that can connect as SYSDBA to grant privileges to selected SYS objects and create PL/SQL profiler objects.
Usage:
1. Create $ORACLE_HOME/appsutil/admin on the database server.
2. Copy adgrants.sql (UNIX) from this patch directory to
$ORACLE_HOME/appsutil/admin.
3. Set the environment to point to ORACLE_HOME on the database server.
4. Use SQL*Plus to run the script:
$ sqlplus /nolog
SQL> @$ORACLE_HOME/appsutil/admin/adgrants.sql
Apply The Patch
This patch contains the following unified driver file to be applied with
AutoPatch:
u8502056.drv (This is the unified driver)
Post-install Tasks
• Invoker’s Right processing is re-enabled in the latest AD minipack (R12.AD.B.DELTA.2). Customers who have already upgraded to 12.1.1 can optionally run AD Admin as follows to re-enable Invoker’s Right on existing PL/SQL packages:
o Run adadmin > Compile/Reload Applications Database Entities menu >
Compile APPS schema.
o Choose “No” at the following prompt:
Run Invoker Rights processing in incremental mode [No]
Comments
None
Install 12.1.2 Release Update Pack
1. Drop any custom MV with REFRESH FAST ON COMMIT when referencing APPLSYS.FND_FLEX_VALUES table. Recreate it at the end of the upgrade.
SQL> drop MATERIALIZED VIEW GECL.CCL_MANAGEMENT_ENTITY_DPC_MV;
i.e.
CREATE MATERIALIZED VIEW “GECL”.”CCL_MANAGEMENT_ENTITY_DPC_MV” TABLESPACE “USERS” PCTFREE 10 INITRANS 1 MAXTRANS 255 STORAGE ( INITIAL 128K BUFFER_POOL
DEFAULT) LOGGING USING INDEX TABLESPACE “USERSX” PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE ( INITIAL 128K BUFFER_POOL DEFAULT) REFRESH FAST ON COMMIT AS
SELECT
h.parent_flex_value parent_value,
v.flex_value child_value,
t.description child_desc,
v.enabled_flag enabled_flag,
v.attribute4 country_code,
v.attribute35 line_of_business,
t.rowid “trowid”, v.rowid “vrowid”,s.rowid “srowid”,h.rowid “hrowid”
FROM APPLSYS.FND_FLEX_VALUES_TL t,
APPLSYS.FND_FLEX_VALUES v,
APPLSYS.FND_FLEX_VALUE_SETS s,
APPLSYS.FND_FLEX_VALUE_HIERARCHIES h
WHERE
v.flex_value_set_id = s.flex_value_set_id
AND s.flex_value_set_id = h.flex_value_set_id
AND s.flex_value_set_name = ‘CCL_MANAGEMENT_ENTITIES’
AND v.flex_value_id = t.flex_value_id
AND t.language = ‘US’
AND v.summary_flag = ‘N’
AND v.flex_value BETWEEN child_flex_value_low AND child_flex_value_high
Work with the suggested values below:
database params
job_queue_processes(# of CPUs) :from 2 to 10
parallel_max_servers (2x#CPUs): from 8 to 16
sga_max_size: from 2Gb to 3GB
pga_aggregate_target: stay with 4Gb
e.g.
# Needed for EBS 12.1.1 upgrade
job_queue_processes = 10
parallel_max_servers = 16
sga_max_size = 3G
pga_aggregate_target = 4G
2. Use AutoPatch to apply Release 12.1.2 Patch 7303033 and follow the instructions in the patch readme file.
Patch # 7303033 Oracle E-Business Suite 12.1.2 Release Update Pack (RUP2)
Product Applications Updates Lang US,
HU,
ESA Size 3.1 GB
252.9 MB
251.9 MB
Pre-install Tasks
You must apply R12.AD.B.DELTA.2 as a prerequisite before you apply this patch. Do not merge R12.AD.B.DELTA.2 with this patch. It must be applied separately.
Apply The Patch
This patch contains the following unified driver file to be applied with
AutoPatch:
u7303033.drv (This is the unified driver)
Post-install Tasks
None
Comments
Apply the patch using the following adpatch options:
batch size and adworkers
adworkers (1.5xCPUs): =>12 (for each apps node)
batch size=>10k
AD parallel processing
In primary node:
adpatch workers=24 localworkers=12
Start an AD controller session on each of the other nodes:
adctrl distributed=y
Enter the worker range: 13-24
Post-Installation Tasks Section:
Apply post-patch fixes
The post-release update patch addresses issues that were identified after the release of Release 12.1.2. Apply the following patch on top of a Release 12.1.2 instance.
Patch 8937577 – This PA-DSS consolidated patch allows Oracle Payments customers to benefit from the ongoing enhancements made to conform to PA-DSS requirements. For more information, refer to Note 981033.1 Oracle Payment Application Data Security Standard (PA-DSS) Consolidated Patch Release Notes, Release 12.1.
Patch # 8937577 PA-DSS CONSOLIDATED PATCH FOR ORACLE PAYMENTS
Product
Payments Lang US,
HU,
ESA Size 21.6 MB
9.5 MB
9.5 MB
Pre-install Tasks
None
Apply The Patch
This patch contains the following unified driver file to be applied with
AutoPatch:
u8937577.drv (This is the unified driver)
Post-install Tasks
Following post install steps should be followed after the patch application:
* Bounce the middle-tier.
Comments
NOTE: Please additionally apply the CPU patch 9720630:R12.IBY.B as a post install step after applying the current patch
Patch # 9720630 CPU Bug
Product
Payments Lang US,
HU,
ESA Size 9 MB
5.2 MB
5.2 MB
Pre-install Tasks
Pre-requisites: 8937577:R12.IBY.B
Apply The Patch
This patch contains the following unified driver file to be applied with
AutoPatch:
u9720630.drv (This is the unified driver)
Post-install Tasks
Need to run the CP “Purge Redundant PA-DSS Incidental Data” after patch application.
Comments
None
Post-Update Steps.
1. Update database tier nodes with the Release 12.1.2 code level
After you have upgraded to Release 12.1.2, perform the following post-update steps to update all database tier nodes with the code level, provided by Release 12.1.2:
Application tier:
As the APPLMGR user, run the environment (UNIX) or the command (WINDOWS) file for the current APPL_TOP.
. .//APPS.env
Run AutoConfig on the APPL_TOP.
Run the admkappsutil.pl utility to create the file appsutil.zip in the /admin/out directory.
perl /bin/admkappsutil.pl
Database tier:
As the ORACLE user, run the environment (UNIX) or the command (WINDOWS) file for the current ORACLE_HOME.
cd
. .//.env
Copy or FTP the appsutil.zip file to the .
Uncompress appsutil.zip under the .
cd
unzip -o appsutil.zip
Run AutoConfig on the and in all apps nodes
Database tier and application tier:
Re-run adpreclone.pl on the database tier and the application tier. Since updates included in RUP6 were applied to the system, adpreclone must be run again to apply the updates to the clone directory structures that were used during cloning.
perl adpreclone.pl dbTier
perl adpreclone.pl appsTier
2. Perform NLS-related Step (conditional)
If you have languages other than American English already installed in your Release 12.1.1 system, apply the translated version(s) of Release 12.1.2 Patch 7303033 for each active language immediately after applying the American English version of the Release 12.1.2 Patch 7303033.
These translated versions should have been already applied in section “Installation Tasks Section, step 2. Use AutoPatch to apply Release 12.1.2 Patch 7303033”
Note: If you plan to install new languages after you apply Release 12.1.2 Patch 7303033, refer to Oracle Applications NLS Release Notes Note 788053.1. See the Installing Translations section and follow the instructions for adding a new language to a Release 12.1.1 system. It is not necessary to apply the Release12.1.2 Patch 7303033 for the new language(s).
3. Perform Product-specific Steps (conditional)
After you have completed the steps to update all database tier nodes with the code level, perform the following post-update steps only if you have licensed one of these products:
Oracle E-Business Suite Integrated SOA Gateway
Oracle Manufacturing Operations Center
Oracle Product Information Management
Oracle Value Chain Planning
Nothing to do further based on licensed products in CCL
4. Perform Other Post-steps
a) Recreate MV(s) dropped in previous step:
CREATE MATERIALIZED VIEW “GECL”.”CCL_MANAGEMENT_ENTITY_DPC_MV” TABLESPACE “USERS” PCTFREE 10 INITRANS 1 MAXTRANS 255 STORAGE ( INITIAL 128K BUFFER_POOL DEFAULT) LOGGING USING INDEX TABLESPACE “USERSX” PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE ( INITIAL 128K BUFFER_POOL DEFAULT) REFRESH FAST ON COMMIT AS
SELECT
h.parent_flex_value parent_value,
v.flex_value child_value,
t.description child_desc,
v.enabled_flag enabled_flag,
v.attribute4 country_code,
v.attribute35 line_of_business,
t.rowid “trowid”, v.rowid “vrowid”,s.rowid “srowid”,h.rowid “hrowid”
FROM APPLSYS.FND_FLEX_VALUES_TL t,
APPLSYS.FND_FLEX_VALUES v,
APPLSYS.FND_FLEX_VALUE_SETS s,
APPLSYS.FND_FLEX_VALUE_HIERARCHIES h
WHERE
v.flex_value_set_id = s.flex_value_set_id
AND s.flex_value_set_id = h.flex_value_set_id
AND s.flex_value_set_name = ‘CCL_MANAGEMENT_ENTITIES’
AND v.flex_value_id = t.flex_value_id
AND t.language = ‘US’
AND v.summary_flag = ‘N’
AND v.flex_value BETWEEN child_flex_value_low AND child_flex_value_high;
b) According to metalink note 748501.1, If there is an invalid XLA_00200_AAD_S_0000, perform the following:
As sys:
SQL> alter session set plsql_optimize_level=1;
SQL> alter package APPS.XLA_00200_AAD_S_000011_PKG compile;
Package altered
SQL> @?/rdbms/admin/utlrp.sql
c) According to metalink note 1157843.1, PA_PWP_SUMM_PKG is Invalid After 12.1.2 Upgrade. In order to fix it, apply patch 9813360.
Patch # 9813360 1OFF:9671344:12.1.2:12.1.2:SUPPLIER TAB SHOWING ERROR
Product Project Costing Lang GENERIC Size 13.7 KB
Pre-install Tasks
None
Apply The Patch
This patch contains the following unified driver file to be applied with AutoPatch: u9813360.drv (This is the unified driver)
Post-install Tasks
None
Comments
None
Use AutoPatch to apply the latest consolidated online help Patch 7303032 and follow the instructions in the patch readme file.
Patch # 7303032 Online Help for Oracle E-Business Suite 12.1.2 Release Update Pack (RUP2)
Product Applications Updates Lang GENERIC??? Size 45.9 MB
Pre-install Tasks
None
Apply The Patch
This patch contains the following unified driver file to be applied with
AutoPatch:
u7303032.drv (This is the unified driver)
Post-install Tasks
None
Comments
Apply this patch at the end of Post-installation Tasks section
step-by-step BACKUP AND RECOVERY
SQL> alter database backup controlfile to trace;
SQL> create pfile=’/autofs/oracle/kittu5/oracle/kittu5.ora’ from spfile;
RMAN> backup spfile to destination ‘/autofs/oracle/kittu5/oracle’;
hostname1[kittu51]_oracle> srvctl status database -d kittu5
ASMCMD> pwd
hostname1[kittu51]_oracle> srvctl stop database -d kittu5
hostname1[kittu51]_oracle> rman target /
RMAN> startup nomount force;
RMAN> restore spfile to ‘+KITTU5_VG/kittu5/SPFILE/spfilekittu5.ora’ from ‘/autofs/oracle/kittu5/oracle/KITTU5/backupset/2012_09_14/o1_mf_nnsnf_TAG20120914T005006_855fvy5f_.bkp’;
hostname1[kittu51]_oracle> srvctl start database -d kittu5
ASMCMD> pwd
ASMCMD> rm current.257.792191097
hostname1[kittu51]_oracle> srvctl stop database -d kittu5
hostname1[kittu51]_oracle> srvctl start database -d kittu5
hostname1[kittu51]_oracle> rman target / catalog rcatdev/passwd@rmnd
RMAN> startup nomount;
RMAN> restore controlfile;
RMAN>
hostname1[kittu51]_oracle> sqlplus ‘/as sysdba’
SQL> alter database open resetlogs;
SQL> shut immediate;
hostname1[kittu51]_oracle> srvctl start database -d kittu5
hostname1[kittu51]_oracle> srvctl stop database -d kittu5
hostname1[kittu51]_oracle> sqlplus ‘/as sysdba’
SQL> startup force restrict mount pfile=’/autofs/oracle/kittu5/oracle/kittu5.ora’;
SQL> drop database;
hostname1[kittu51]_oracle> rman target / catalog rcatdev/passwd@rmnd
RMAN> startup force nomount;
RMAN> restore controlfile;
RMAN> run
hostname1[kittu51]_oracle> sqlplus ‘/as sysdba’
SQL> shut immediate;
SQL> startup mount;
hostname1[kittu51]_oracle> rman target / catalog rcatdev/passwd@rmnd
RMAN> recover database;
hostname1[kittu51]_oracle> sqlplus ‘/as sysdba’
SQL> select distinct(CHECKPOINT_CHANGE#) from v$datafile;
SQL> shut immediate;
SQL> startup mount pfile=’/autofs/oracle/kittu5/oracle/kittu5.ora’;
hostname1[kittu51]_oracle> rman target / catalog rcatdev/passwd@rmnd
RMAN> recover database;
RMAN> catalog archivelog ‘+KITTU5_VG/kittu5/archive/log_47_2_792265862.arc’;
RMAN> catalog archivelog ‘+KITTU5_VG/kittu5/archive/log_38_1_792265862.arc’;
RMAN> catalog archivelog ‘+KITTU5_VG/kittu5/archive/log_37_1_792265862.arc’;
RMAN> recover database;
hostname1[kittu51]_oracle> sqlplus ‘/as sysdba’
SQL> alter database open resetlogs;
SQL> shut immediate;
hostname1[kittu51]_oracle> srvctl start database -d kittu5
|
USERS
TO CHECK THE GIVEN USER PRIVILLAGES
TO CHECK OBJECTS COUNT FOR A USER
TO CHECK USER DETIALS
TO GET USER DETIALS USING DDLS
create a user
grants
ALL GRANTS AT A TIME FROM ONE USER TO ANOTHER USER
to check the expiry date
NAME PASSWORD
User altered.
USERNAME EXPIRY_DA
alter user APPS_TRINITY identified by values ‘123BBE968’
Grants for other OBJECT_TYPE
|
BLOCKING AND LOCKS
TO FINDOUT THE LOCKS (RAC ENV) |
col BLOCKING_STATUS format a100 col module format a20 col program format a30 col username format a8 select distinct s1.username || ‘@’ || s1.machine || ‘ ( INST=’ || s1.inst_id || ‘ SID=’ || s1.sid || ‘ ) is blocking ‘ || s2.username || ‘@’ || s2.machine || ‘ ( INST=’ || s1.inst_id || ‘ SID=’ || s2.sid || ‘ ) ‘ AS blocking_status,s1.username,s1.osuser,s1.module,s1.program, s1.status,floor(s1.last_call_et / 60) “Minutes” from gv$lock l1, gv$session s1, gv$lock l2, gv$session s2 where s1.sid=l1.sid and s2.sid=l2.sid and l1.BLOCK=1 and l2.request > 0 and l1.id1 = l2.id1 and l2.id2 = l2.id2 and l1.inst_id = s1.inst_id; |
TO FINDOUT THE No of BLOCKING SESSION count
To findout object status
To findout Waitevent
To findout OBJECT level lock
To findout Row level lock
This script will display the SQL text of locked transactions.
displays locks and gives the SID and Serial Number of the session to kill.
check database level locks for an application user.
|
APPS
DB INFO
set pages 999 set linesize 160 col HOST_NAME format a40 col PLATFORM_NAME for a30 select INSTANCE_NAME,HOST_NAME,VERSION,STATUS,LOGINS,DATABASE_STATUS from gv$instance; select NAME,LOG_MODE,OPEN_MODE,PLATFORM_NAME from gv$database; |
APPS INFO
set lines 160 set pages 300 col PLATFORM_CODE for a15 col VIRTUAL_IP for a30 select NODE_NAME “Node Name”, to_char(CREATION_DATE, ‘DD-MON-RR HH24:MI’) “Creation Date”, decode(STATUS,’Y’,’ACTIVE’,’INACTIVE’) Status, decode(SUPPORT_CP,’Y’, ‘ConcMgr’,’No’) ConcMgr, decode(SUPPORT_FORMS,’Y’,’Forms’, ‘No’) Forms, decode(SUPPORT_WEB,’Y’,’Web’, ‘No’) WebServer, decode(SUPPORT_ADMIN, ‘Y’,’Admin’, ‘No’) Admin, decode(SUPPORT_DB, ‘Y’,’Rdbms’, ‘No’) Database, PLATFORM_CODE, VIRTUAL_IP from apps.fnd_nodes where node_name != ‘AUTHENTICATION’; |
Application version
select RELEASE_NAME from fnd_product_groups; |
APPLICATION URL
select home_url from apps.icx_parameters; |
languages installed
select NLS_LANGUAGE, INSTALLED_FLAG,LANGUAGE_CODE from FND_LANGUAGES where INSTALLED_FLAG in (‘B’,’I’); |
Shared appl_top or not
select SHARED, APPL_TOP_GUID,PATH from apps.fnd_appl_tops; |
find MRC Enabled ??
select multi_currency_flag from fnd_product_groups; |
find Multi-org enabled?
select multi_org_flag from fnd_product_groups; |
Workflow Version
select TEXT from WF_RESOURCES where NAME=’WF_VERSION’; |
workflow mailer status
select COMPONENT_NAME,COMPONENT_STATUS from FND_SVC_COMPONENTS where component_id = ‘10006’; |
workflow COMPONENT status
set lines 160 select COMPONENT_NAME,COMPONENT_STATUS from FND_SVC_COMPONENTS; |
to findout the MODULE/PRODUCT is installed or not ?
col product for a10 col status for a15 col product_version for a10 col patchset for a30 col update_date for a15 select decode(nvl(a.APPLICATION_short_name,’Not Found’),’SQLAP’,’AP’,’SQLGL’,’GL’,’OFA’,’FA’, |
Patching querys
select bug_number creation_date from ad_bugs where bug_number in ( ‘6272107’, ‘6272107’, ‘6272107’, ‘6272107’, ‘6272107’, ‘6272107’); select BUG_NUMBER,CREATION_DATE,LANGUAGE from apps.ad_bugs where BUG_NUMBER like ‘&patchno’; select BUG_NUMBER,CREATION_DATE,LANGUAGE from apps.ad_bugs where creation_date between ’11-FEB-11′ AND ’12-FEB-11′; select BUG_NUMBER,CREATION_DATE,LANGUAGE from apps.ad_bugs where creation_date like ‘%11-FEB-11%’; select BUG_NUMBER,CREATION_DATE,LANGUAGE from apps.ad_bugs where bug_number like ‘598704%’; select BUG_NUMBER,CREATION_DATE,LANGUAGE from apps.ad_bugs where creation_date>’11-FEB-11′; select BUG_NUMBER,CREATION_DATE,LANGUAGE from apps.ad_bugs where creation_date<'11-FEB-11'; select PATCH_NAME,PATCH_TYPE,CREATION_DATE from AD_APPLIED_PATCHES where CREATION_DATE LIKE '%12-FEB-11%'; |
what are all the nodes patch has been applied
select aap.patch_name, aat.name, apr.end_date from ad_applied_patches aap, ad_patch_drivers apd, ad_patch_runs apr, ad_appl_tops aat where aap.applied_patch_id = apd.applied_patch_id and apd.patch_driver_id = apr.patch_driver_id and aat.appl_top_id = apr.appl_top_id and aap.patch_name = ‘&PatchName’; |
What drivers are applied while applying patch??
select apd.driver_file_name, apd.DRIVER_TYPE_C_FLAG “C”, apd.DRIVER_TYPE_D_FLAG “D”, apd.DRIVER_TYPE_G_FLAG “G” , apdl.language from ad_patch_drivers apd, ad_patch_driver_langs apdl where apd.patch_driver_id=apdl.patch_driver_id and apd.driver_file_name like ‘%&a%’; |
distributed ad
on node 1 give the below command adpatch options=hotpatch workers=48 localworkers=24 on node 2 give the below command adctrl distributed=y |
admerge
admrgpch -s /cfsdshr/ccld3/appccld3/temp/patches/oem/9444535_long -d /cfsdshr/ccld3/appccld3/temp/patches/oem/9444535_long/dest |
Apache version
$IAS_ORACLE_HOME/Apache/Apache/bin/httpd -v |
perl version
$IAS_ORACLE_HOME/perl/bin/perl -v|grep built |
Java version
$AFJVAPRG -version |
Client JRE version
cat $FORMS_WEB_CONFIG_FILE|grep sun_plugin_version |
Forms Version
$ORACLE_HOME/bin/frmcmp_batch|grep Forms| grep Version |
PL/SQL Version
$ORACLE_HOME/bin/frmcmp_batch|grep PL/SQL|grep Version |
Forms Communication Mode
cat $FORMS_WEB_CONFIG_FILE|grep serverURL= |
DDL
set pages 0 set long 10000000 select dbms_metadata.get_ddl(‘PACKAGE’,’BILLERIF’,’SOWGBSDBA01′) FROM DUAL; select dbms_metadata.get_ddl(‘PACKAGE_BODY’,’IPS_EXCEL_HC_DATA_PKG’,’IPS’) FROM DUAL; select dbms_metadata.get_ddl(‘TRIGGER’,’TRGECALEVENTSTATS’,’CALPDBA01′) FROM DUAL; select dbms_metadata.get_ddl(‘VIEW’,’SVC_WO_COM_DTLS_V’,’GETS_DW_SVC’) FROM DUAL; select dbms_metadata.get_ddl(‘SEQUENCE’,’SEQ_DUEDATECHANGE_N’,’ECMDBA01′) FROM DUAL; select dbms_metadata.get_ddl(‘USER’,’GET_DW_ETL’) from dual; select dbms_metadata.get_ddl(‘TABLE’,’DEPT’,’SCOTT’) from dual; select dbms_metadata.get_ddl(‘INDEX’,’DEPT_IDX’,’SCOTT’) from dual; select dbms_metadata.get_ddl(‘DB_LINK’,’TEST.COM’,’VAP_DEFAULT_PROD’) from dual; select dbms_metadata.get_ddl(‘PROCEDURE’,’IR_NOTE_STOP’,’DSI_DPIPE’) from dual; select dbms_metadata.get_ddl(‘MATERIALIZED_VIEW’,’FILINGS’,’ECMDBA01′) from dual; select dbms_metadata.get_ddl(‘CONSTRAINT’,’C1_TGDC_905C_AMT’,’FIRDBA01′) from dual; select dbms_metadata.get_ddl(‘SYSTEM_GRANT’,’HLCDDBA01′) FROM dual; select dbms_metadata.get_ddl(‘ROLE_GRANT’,’HLCDDBA01′) FROM dual; select dbms_metadata.get_ddl(‘ROLE’,’SCHEMA_ROLE’) from dual; select dbms_metadata.get_ddl(‘OBJECT_GRANT’,’HLCDDBA01′) FROM dual; select dbms_metadata.get_granted_ddl( ‘TABLESPACE_QUOTA’, ‘HLCDDBA01’ ) from dual; |
SELECT DBMS_METADATA.GET_DDL(‘USER’,u.USERNAME) FROM DBA_USERS u WHERE USERNAME IN (‘CORPORATE_FINANCE_CMS_DB’, ‘CORPORATE_FINANCE_COGNOS_ENTER’, ‘CORPORATE_FINANCE_COGNOS_REPOR’, ‘CORPORATE_FINANCE_DDS_DM_DB’); |
DB SIZE
DB UP TIME |
select SYSDATE-logon_time “Days”, (SYSDATE-logon_time)*24 “Hours” from sys.v_$session where sid=1 /* this is PMON */ / |
DB SIZE (Database Size,Used space,Free space) |
col “Database Size” format a20 col “Free space” format a20 col “Used space” format a20 select round(sum(used.bytes) / 1024 / 1024 / 1024 ) || ‘ GB’ “Database Size” , round(sum(used.bytes) / 1024 / 1024 / 1024 ) – round(free.p / 1024 / 1024 / 1024) || ‘ GB’ “Used space” , round(free.p / 1024 / 1024 / 1024) || ‘ GB’ “Free space” from (select bytes from v$datafile union all select bytes from v$tempfile union all select bytes from v$log) used , (select sum(bytes) as p from dba_free_space) free group by free.p; |
Database grouth year wise |
select to_char(b.CREATION_TIME,’YYYY’), count(1) “NO_OF_FILES”, sum( round(b.bytes/1024/1024,2)) “SIZE_IN_MB” from v$datafile b,dba_data_files a where a.file_id=b.file# group by to_char(b.CREATION_TIME,’YYYY’) order by to_char(b.CREATION_TIME,’YYYY’) desc; |
Database grouth monthly wise |
select to_char(creation_time, ‘RRRR Month’) “Month”, sum(bytes)/1024/1024 “Growth in Meg” from sys.v_$datafile where creation_time > SYSDATE-365 group by to_char(creation_time, ‘RRRR Month’); |
Calculate total space for all datafiles within database. |
select DF.TOTAL/1048576 “DataFile Size Mb”, LOG.TOTAL/1048576 “Redo Log Size Mb”, CONTROL.TOTAL/1048576 “Control File Size Mb”, (DF.TOTAL + LOG.TOTAL + CONTROL.TOTAL)/1048576 “Total Size Mb” from dual, (select sum(a.bytes) TOTAL from dba_data_files a) DF, (select sum(b.bytes) TOTAL from v$log b) LOG, (select sum((cffsz+1)*cfbsz) TOTAL from x$kcccf c) CONTROL; |
Calculate space for list of tablespaces within primary database. |
select DF.TOTAL/1048576 “DataFile Size Mb”, LOG.TOTAL/1048576 “Redo Log Size Mb”, CONTROL.TOTAL/1048576 “Control File Size Mb”, (DF.TOTAL + LOG.TOTAL + CONTROL.TOTAL)/1048576 “Total Size Mb” from dual, (select sum(a.bytes) TOTAL from dba_data_files a where tablespace_name in(‘SYSTEM’,’UNDOTBS1′, ‘SYSAUX’, ‘USERS’)) DF, (select sum(b.bytes) TOTAL from v$log b) LOG, (select sum((cffsz+1)*cfbsz) TOTAL from x$kcccf c) CONTROL; |
Schema SIZE |
select sum(bytes)/1024/1024/1024 from dba_segments where owner=upper(‘&owner’); |
TABLESPACE
ALL TABLESPACES SIZE IN MB |
SET LINES 150 SET pages 300 col “Tablespace” FOR a30 col “Total MB” FOR a15 col “Free MB” FOR a15 col “Used MB” FOR a15 col “% Used” FOR a15 SELECT tablespace_name “Tablespace”, d.STATUS “Status”, TO_CHAR((a.bytes / 1048576),’99,999,990.900′) “Total MB”, TO_CHAR(((DECODE(f.bytes, NULL, 0, f.bytes)) / 1048576),’99,999,990.900′) “Free MB”, TO_CHAR(((a.bytes – DECODE(f.bytes, NULL, 0, f.bytes)) / 1048576),’99,999,990.900′) “Used MB”, TO_CHAR((((a.bytes – DECODE(f.bytes, NULL, 0, f.bytes)) / 1048576)*100) / (a.bytes / 1048576),’999,999.9′) “% Used” FROM (sys.dba_tablespaces d JOIN sys.sm$ts_avail a USING (tablespace_name)) LEFT OUTER JOIN sys.sm$ts_free f USING (tablespace_name) ORDER BY 6 / |
TO CHECK SINGLE TABLESPACE AND ALL ITS DATAFILE LIST IN MB |
set lines 190 col FILE_NAME for a55 col TABLESPACE_NAME for a20 select TABLESPACE_NAME,FILE_NAME,bytes/1024/1024 “MB” from dba_data_files where TABLESPACE_NAME=upper(‘&tsname’); |
TO ADD NEW DATAFILE |
alter tablespace STAGE_DATA add datafile ‘+KITTU_VG/INST/datafile/stage15.dbf’ size 4000m; |
TO RESIZE A DATAFILE |
ALTER DATABASE DATAFILE ‘+KITTU_VG/INST/datafile/stage15.dbf’ RESIZE 4G; |
TO CHECK THE TEMP TABLESPACE |
set lines 160 set pages 300 col FILE_NAME for a70 col PROPERTY_VALUE for a40 Select tablespace_name,file_name,bytes/1024/1024 from dba_temp_files; select TABLESPACE_NAME,sum(BYTES_USED)/1024/1024 USED_MB, sum(BYTES_FREE)/1024/1024 FREE_MB from V$TEMP_SPACE_HEADER group by TABLESPACE_NAME; |
To findout default temp tablespace |
set lines 160 set pages 300 col PROPERTY_VALUE for a40 select property_name,property_value from database_properties where property_name=’DEFAULT_TEMP_TABLESPACE’; |
TO ADD TEMP FILE |
ALTER TABLESPACE PSTEMP ADD TEMPFILE ‘/u02/oradata/hrcopy/pstemp01.dbf’ SIZE 1000M; |
TO RESIZE TEMP FILE |
alter database tempfile ‘/u02/oradata/TESTDB/temp01.dbf’ resize 250M; |
TOTAL TEMP USAGE |
SELECT (SELECT (SUM (tu.blocks)) FROM v$tempseg_usage tu) * (SELECT VALUE FROM v$parameter WHERE NAME = ‘db_block_size’) / 1024 / 1024 AS “Used (MB)”, (SELECT SUM (tf.BYTES) FROM dba_temp_files tf) / 1024 / 1024 AS “Total (MB)”, ROUND ((SELECT (SUM (tu.blocks)) FROM v$tempseg_usage tu) / (SELECT SUM (tf.blocks) FROM dba_temp_files tf) * 100, 2 ) AS pct FROM DUAL; |
WHO IS USING TEMP TABLESPACE |
set lines 160 set pages 500 col SID_SERIAL for a15; col USERNAME for a15; col osuser for a15; col SPID for a15 col MODULE for a30 col PROGRAM for a20 col TABLESPACE for a10 SELECT S.sid || ‘,’ || S.serial# sid_serial, S.username, S.osuser, P.spid, S.module, S.program, SUM (T.blocks) * TBS.block_size / 1024 / 1024 mb_used, T.tablespace, COUNT(*) sort_ops FROM v$sort_usage T, v$session S, dba_tablespaces TBS, v$process P WHERE T.session_addr = S.saddr AND S.paddr = P.addr AND T.tablespace = TBS.tablespace_name GROUP BY S.sid, S.serial#, S.username, S.osuser, P.spid, S.module, S.program, TBS.block_size, T.tablespace ORDER BY sid_serial; |
WHO IS USING UNDO TABLESPACE |
SET PAGESIZE 500 SET LINESIZE 160 COLUMN pgm_notes FORMAT a80 HEADING ‘Notes’ COLUMN rbs FORMAT a12 HEADING ‘Undo Segment’ COLUMN oracle_user FORMAT a12 HEADING ‘Oracle|Username’ COLUMN sid_serial FORMAT a12 HEADING ‘SID,Serial’ COLUMN unix_pid FORMAT a6 HEADING ‘O/S|PID’ COLUMN Client_User FORMAT a20 HEADING ‘Client|Username’ COLUMN Unix_user FORMAT a12 HEADING ‘O/S|Username’ COLUMN login_time FOR/MAT a17 HEADING ‘Login Time’ COLUMN last_txn FORMAT a17 HEADING ‘Last Active’ COLUMN undo_kb FORMAT 99,999,999 HEADING ‘Undo KB’ SELECT r.name rbs, nvl(s.username, ‘None’) oracle_user, s.osuser client_user, p.username unix_user, to_char(s.sid)||’,’||to_char(s.serial#) as sid_serial, p.spid unix_pid, — TO_CHAR(s.logon_time, ‘mm/dd/yy hh24:mi:ss’) as login_time, — TO_CHAR(sysdate – (s.last_call_et) / 86400,’mm/dd/yy hh24:mi:ss’) as last_txn, t.used_ublk * TO_NUMBER(x.value)/1024 as undo_kb FROM v$process p, v$rollname r, v$session s, v$transaction t, v$parameter x WHERE s.taddr = t.addr AND s.paddr = p.addr(+) AND r.usn = t.xidusn(+) AND x.name = ‘db_block_size’ ORDER BY r.name ; |
CALCULATE UNDO RETENTION |
SELECT d.undo_size/(1024*1024) “ACTUAL UNDO SIZE [MByte]”, SUBSTR(e.value,1,25) “UNDO RETENTION [Sec]”, ROUND((d.undo_size / (to_number(f.value) * g.undo_block_per_sec))) “OPTIMAL UNDO RETENTION [Sec]” FROM ( SELECT SUM(a.bytes) undo_size FROM v$datafile a, v$tablespace b, dba_tablespaces c WHERE c.contents = ‘UNDO’ AND c.status = ‘ONLINE’ AND b.name = c.tablespace_name AND a.ts# = b.ts# ) d, v$parameter e, v$parameter f, ( SELECT MAX(undoblks/((end_time-begin_time)*3600*24)) undo_block_per_sec FROM v$undostat ) g WHERE e.name = ‘undo_retention’ AND f.name = ‘db_block_size’ / |
SYSAUX USAGE |
select OCCUPANT_NAME,SCHEMA_NAME,SPACE_USAGE_KBYTES from V$sysaux_occupants order by SPACE_USAGE_KBYTES; |
COMPONENTS ARE OCCUPYING SPACE IN SYSAUX |
select space_usage_kbytes, occupant_name, occupant_desc from v$sysaux_occupants order by 1 desc; |
ALL DATAFILES USAGE |
set pages 8000 set lines 700 col FILE_NAME for a60 SELECT SUBSTR (df.NAME, 1, 60) file_name, df.bytes / 1024 / 1024 allocated_mb, ((df.bytes / 1024 / 1024) – NVL (SUM (dfs.bytes) / 1024 / 1024, 0)) used_mb, NVL (SUM (dfs.bytes) / 1024 / 1024, 0) free_space_mb FROM v$datafile df, dba_free_space dfs WHERE df.file# = dfs.file_id(+) GROUP BY dfs.file_id, df.NAME, df.file#, df.bytes ORDER BY file_name; |
To find out the RETENTION period stats: |
Select dbms_stats.get_stats_history_retention from dual; |
LOCALLY VS DICTIONARY MANAGED TABLESPACES |
select tablespace_name, extent_management from dba_tablespaces; |
TO DETERMINE AUTOEXTEND ON/OFF TABLESPACES |
select file_id, tablespace_name, bytes, maxbytes, maxblocks, increment_by, file_name from dba_data_files where autoextensible = ‘YES’; |
TO VERIFY THE LOCATION OF ALL FILES |
set lines 160 set lines 100 set pages 999 col name format a70 set lines 100 set pages 999 col name format a70 select name, bytes from (select name, bytes from v$datafile union all select name, bytes from v$tempfile union all select lf.member “name”, l.bytes from v$logfile lf , v$log l where lf.group# = l.group# union all select name, 0 from v$controlfile) used , (select sum(bytes) as p from dba_free_space) free / |
THE FOLLOWING QUERY RETURNS A LIST OF OBJECTS THAT ARE CREATED IN THE SYSTEM TABLESPACE BUT NOT OWNED BY SYS OR SYSTEM.(DEPENDENCY) |
select owner, segment_name, segment_type from dba_segments where tablespace_name = ‘SYSTEM’ and owner not in (‘SYS’,’SYSTEM’); |
To Determine the Tablespace more then 90% |
SELECT vm.tablespace_name, (100 – (NVL (vf.BYTES, 0) / vm.BYTES) * 100) pctinuse, NVL (vf.BYTES, 0)/1024/1024 free_mb, vm.BYTES max_bytes, NVL (MAX (f.BYTES), 0) free_ext FROM SYS.sm$ts_avail vm, SYS.sm$ts_free vf, SYS.dba_free_space f WHERE vm.tablespace_name = vf.tablespace_name AND vm.tablespace_name = f.tablespace_name AND (100 – (NVL (vf.BYTES, 0) / vm.BYTES) * 100) > 90 GROUP BY vm.tablespace_name, vf.BYTES, vm.BYTES ORDER BY 1; |
To Determine the Tablespace more then 80% full |
set pages 999 lines 100 col tablespace_name format a40 col “size MB” format 999999999 col “% Used” format 999 col “80%” format 999999 col “75%” format 999999 select tsu.tablespace_name , ceil(tsu.used_mb) “size MB” , 100 – floor(tsf.free_mb/tsu.used_mb*100) “% Used” , (tsu.used_mb / 100) * (20 – floor(tsf.free_mb/tsu.used_mb*100)) “80%” , (tsu.used_mb / 100) * (25 – floor(tsf.free_mb/tsu.used_mb*100)) “75%” from (select tablespace_name, sum(bytes)/1024/1024 used_mb from dba_data_files group by tablespace_name) tsu , (select tablespace_name, sum(bytes)/1024/1024 free_mb from dba_free_space group by tablespace_name) tsf where tsu.tablespace_name = tsf.tablespace_name (+) and 100 – floor(tsf.free_mb/tsu.used_mb*100) >= 80 order by 3,4,5 |
PT
Check the active session
To check the sid and serial hash value of concurrent request
To findout particular sid
To check explain plan
with the sid check the sql
If you know the sql findout sql_id
To check any blocking sessions
To check when the requst started running
to check no of execttions
To check the any sub request of parent concurrent request
To findout the program id to detarmine program name
To findout the program name
check table stat
To kill a particular sesstion
TO VERIFY THE KILLED SESSION
enableing trace
then with that trace , tkprof and you can analyze the plan and exec,fetch calls. Table stats
Schema Stats
check the Last Analyzed date
Create a SQL tuning task
To view the task names associated with a specific owner, you can run the following
Execute the tuning task
Check the status of the task
View the Recommendations
Display detailed information about the current user’s session.
To find information about currently long-running queries
To find the execution plan for a key value.
|
SCHEMA REFRESH
Check the schema SIZE
Check the Object count of the specific schema
Get the DDL of schema if required
Take the passwords bkp:
Export the schema on source and target (Master Note for Data Pump [ID 1264715.1])
SCP to target
Droping schema objects only excluding db links:
Import the schema in target
Check if any invalids
TO CHECK THE SCHEMA DETAILS
USERNAME ACCOUNT_STATUS DEFAULT_TABLESPACE TEMPORARY_TABLESPACE SQL>
PL/SQL procedure successfully completed.
PL/SQL procedure successfully completed. SQL>
COUNT(*)
PL/SQL procedure successfully completed.
|
Concurrent Manager
CONCURRENT MANAGER STATUSset lines 180 To check the wait Eventsselect sid, event, wait_time, seconds_in_wait, p1 To Check the lockscol BLOCKING_STATUS format a100 To Check the Praticular program statusSELECT to_char(a.request_id) ||’~’|| To Get the SID for the requestselect fcr.request_id,S.inst_id,S.SID,S.SERIAL# from gv$session s, apps.fnd_concurrent_requests fcr where s.audsid =fcr.oracle_session_id CONCURRENT REQUESTS COMPLETED WITH ERRORSCOL name FORMAT a50 USAGE REPORT FOR TODAYSET PAGES 900 CONCURRENT REQUESTS WHICH HAS MORE THAN 30 MINUTES OF EXECUTION TIMESELECT a.request_id PROGRAMS RAN MORE 200 TIMES IN A DAYSET LINES 120 NUMBER OF CONCURRENT REQUESTS IN A DAYSET LINES 120 SET PAGES 900 SCHEDULED REQUESTSSET LINE 130 PAGESIZE 1000 TO CHECK THE MANAGERS RUNNING OR NOT SHOULD BE ACTIVEset lines 180 PRESENTLY RUNNING REQUSTselect TO CHECK PARTICULAR REQUEST STATUSset lines 180 TO CHECK PARTICULAR PROGRAM HistorySELECT to_char(a.request_id) ||’~’|| MV refreshSELECT (process_end_time-process_start_time)*86400, cycle_start_time TO FINDOUT PAST ONE MONTH HISTORYset pause off TO CHECK WHICH MANAGER IS RUNNING ON WHICH NODE AND MANAGER STATUSset verify off TO FINDOUT THE REQUEST LOGFILE NAME AND LOCATION SELECT REQUEST_ID,logfile_name, outfile_name, outfile_node_name, last_update_date FROM apps.FND_CONCURRENT_REQUESTS WHERE REQUEST_ID =&Req_ID; TO FINDOUT THE ICM CURRENT LOGFILE NAME AND LOCATIONSELECT ‘LOG=’ || fcp.logfile_name LogFile TO FINDOUT WHICH MANAGER RAN THE REQUESTselect b.USER_CONCURRENT_QUEUE_NAME from fnd_concurrent_processes a, CONCURRENT REQUESTS PERFORMANCE HISTORY (PER DAY)SELECT TO_CHAR(TRUNC(ACTUAL_START_DATE),’DD-MON-YY DY’) STARTDATE, TO KNOW THE REQUEST SINCE HOW LONG ITS RUNNINGselect user_concurrent_program_name,request_id,status_code,phase_code,to_char(actual_start_date,’DD-MON-YY HH24:MI:SS’),to_char(actual_completion_date,’DD-MON-YY HH24:MI:SS’) from apps.fnd_conc_req_summary_v where request_id=’&Requstno’; TO FINDOUT THE TRACEFILE OF A PARTICULAR REQUESTcolumn traceid format a8 LIST ALL THE REGISTERED CONCURRENT PROGRAMS BY MODULEset lines 180 |
Apache Installation for web portal
|
RAC Commands
Check status of OHAS and CRS stack
crsctl check crs
crsctl check cluster
crsctl check cluster -all
crsctl check ctss
crsctl check css
crsctl check evm
Check the status of votingdisks
crsctl query css votedisk
Check the status of OCR files status
ocrcheck
ocrconfig -showbackup
Check the list of disks
/usr/sbin/oracleasm listdisks
Check the nodes
olsnodes -n -i
Check status of resources
crsctl status resource -t -init
crsctl status resource ora.crf -init
Check the versions
crsctl query crs activeversion
crsctl query crs releaseversion
crsctl query crs softwareversion
STATUS
srvctl status database -d [-f] [-v]
srvctl status instance -d {-n | -i } [-f] [-v]
srvctl status service -d [-s “”] [-f] [-v]
srvctl status nodeapps
srvctl status vip { -n | -i } [-v]
srvctl status listener [-l ] [-n ] [-v]
srvctl status asm [-n ] [-a] [-v]
srvctl status scan [-i ] [-v]
srvctl status scan_listener [-i ] [-v]
srvctl status srvpool [-g ] [-a]
srvctl status server -n “” [-a]
srvctl status oc4j [-n ] [-v]
srvctl status home -o -s -n
srvctl status filesystem -d [-v]
srvctl status diskgroup -g [-n “”] [-a] [-v]
srvctl status cvu [-n ]
srvctl status gns [-n ] [-v]
START
srvctl start database -d [-o ] [-n ]
srvctl start instance -d {-n [-i ] | -i } [-o ]
srvctl start service -d [-s “” [-n | -i ] ] [-o ]
srvctl start nodeapps [-n ] [-g] [-v]
srvctl start vip { -n | -i } [-v]
srvctl start asm [-n ] [-o ]
srvctl start listener [-l ] [-n ]
srvctl start scan [-i ] [-n ]
srvctl start scan_listener [-n ] [-i ]
srvctl start oc4j [-v]
srvctl start home -o -s -n
srvctl start filesystem -d [-n ]
srvctl start diskgroup -g [-n “”]
srvctl start gns [-l ] [-n ] [-v]
srvctl start cvu [-n ]
STOP
srvctl stop database -d [-o ] [-f]
srvctl stop instance -d {-n | -i } [-o ] [-f]
srvctl stop service -d [-s “” [-n | -i ] ] [-f]
srvctl stop nodeapps [-n ] [-g] [-f] [-r] [-v]
srvctl stop vip { -n | -i } [-f] [-r] [-v]
srvctl stop asm [-n ] [-o ] [-f]
srvctl stop listener [-l ] [-n ] [-f]
srvctl stop scan [-i ] [-f]
srvctl stop scan_listener [-i ] [-f]
srvctl stop oc4j [-f] [-v]
srvctl stop home -o -s -n [-t ] [-f]
srvctl stop filesystem -d [-n ] [-f]
srvctl stop diskgroup -g [-n “”] [-f]
srvctl stop gns [-n ] [-f] [-v]
srvctl stop cvu [-f]
Check the mount point space in the Diskgroup
for i in `asmcmd ls KITTU_VG/kittu/`
do
echo $i
asmcmd du KITTU_VG/kittu/${i}
done
Setup PCP
|
Shared APPL_TOP and Shared Filesystem
|
Load Balancing
|
BIG IP Configuration
–Network Team should provide new BigIP naming and configuration
|
Printer Installation
|
linux commands
VNC COMMANDS
vncserver
vncpasswd
vncserver :7
export DISPLAY=kasarla.krishnareddy.com:7
nohup xterm &
nohup mwm &
xterm &
ISSUE : CUT AND PASTE CANNOT DONE FROM PC TO VNC AND VICEVERSA
example : VNC running on port 2 <- VNC running port
Fix1 : run in VNC window
vncconfig -nowin -display :2 &
Fix2 : run in VNC window
vncconfig -iconic :2 &
Fix3 : run in VNC window
vncconfig &
ps -ef|grep vnc
vncserver -kill :2
vncserver -kill :6
cd /tmp/.X11-unix/X1
rm /tmp/.X11-unix/X1
TO CREATE A ZIP FILE
cd /kittu/oracle/kittudb/ tar -cf – 11.2.0.3 |gzip > /u01/backup/sw/upgrade_11203/kittu_OH.gz
This will create a zip file in /u01/backup/sw/upgrade_11203 directory with name kittu_OH.gz
TO UNZIP THE FILE
cd /your directory location where you want to unzip
cat /u01/backup/sw/upgrade_11203/kittu_OH.gz|gunzip -c |tar xvf –
Ziping the files at single step
zip -r /tmp/`uname -n`_`date +%m%d%y.%H%M`_Scripts.zip $KITTU_HOME/admin/*sh* $KITTU_HOME/admin/*sql*
— to add a file to existing zip file
zip -r /tmp/Scripts.zip . -i \krishna.sh
zip -r /tmp/Scripts.zip . -i \*
To check the Rps’s
rpm -qa –queryformat “%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n”| grep oracleasm | sort
USER ADDING AND DELETING AND MODIFYING
groupadd -g 1801 applmgr
groupadd -g 1757 oinstall
useradd oracle -o -u 1793 -g 1757 -c ” -d /home/oracle -s /bin/bash
useradd applmgr -o -u 1804 -g 1801 -c ‘Ebusiness Admin User for APPS’ -d /home/applmgr -s /bin/bash
useradd kasarlak -o -u 55035 -g 9999 -c ‘DBA DBA_Kasarla Krishna’ -d /home/kasarlak -s /bin/bash
grep applmgr /etc/passwd
usermod -a -G 1851 applmgr
groupmod -g 1755 dba
groupadd -g 1757 oinstall
echo “We1c0mee” | passwd -f applmgr –stdin
passwd kasarlak
passwd -x -1 kasarlak
/usr/sbin/userdel applmgr
Report on HTML page
set ver off
set term off
set page 0
set markup html on spool on
spool scheduler.html
select ACTUAL_START_DATE, OWNER,JOB_NAME, STATUS,ERROR# from DBA_SCHEDULER_JOB_RUN_DETAILS
where JOB_NAME in (‘MARSCHECKIN_JOB’) and ACTUAL_START_DATE like ‘%26%OCT-12%’;
spool off
set markup html off spool off
seding mail from server
uuencode “scheduler.html” “scheduler.html” | mailx -s “scheduler.html” krishna@gmail.com
vi commands
step-by-step changing database name using NID
rac1[dev]_oracle> nid target=sys dbname=stage
rac1[dev]_oracle> vi initdev.ora
rac1[dev]_oracle> cp orapwdev orapwstage
SQL> startup pfile=’$ORACLE_HOME/dbs/initdev.ora’;
SQL> alter database open resetlogs;
SQL> select instance_name,status from v$instance;
SQL> select name,open_mode from v$database;
SQL> shut immediate
SQL> startup
BECAUSE IT TAKING OLD DATABASE SPFILE SO START USING PFILE AND CREATE SPFILE SQL> shut immediate;
SQL> startup pfile=’$ORACLE_HOME/dbs/initstage.ora’;
SQL> select name,open_mode from v$database;
SQL> select instance_name,status from v$instance;
|
R12.2 logfile
wls patching
cd /kittu/applmgr/fs1/FMW_Home/utils/bsu
mv cache_dir cache_dir_backup
mkdir cache_dir
cp /patch_top/cpu_April_2015/* to /kittu/applmgr/fs1/FMW_Home/utils/bsu/cache_dir
unzip the patch
adop -status
adop phase=prepare
Make sure you sourced the patch file system
. /kittu/applmgr/EBSapps.env patch
Set the WLS ORACLE_HOME
sh $FMW_HOME/wlserver_10.3/server/bin/setWLSEnv.sh
apply the weblogic patch
cd $FMW_HOME/utils/bsu
./bsu.sh -install -patch_download_dir=$FMW_HOME/utils/bsu/cache_dir -patchlist=YUIS -prod_dir=$FMW_HOME/wlserver_10.3 -log=PSU_YUIS.log
******* NOTE *******
if encountered the below issues please follow the specified workarounds and resolve them
[a] : If you get conflict error
==============
Conflict(s) detected - resolve conflict condition and execute patch installation again
Conflict condition details follow:
Patch YUIS is mutually exclusive and cannot coexist with patch(es): D33T,VFS8,LL4G
===============
Please remove the conflicts with the below command and try re applying the patch
./bsu.sh -remove -patchlist=D33T -prod_dir=$FMW_HOME/wlserver_10.3 -log=remove_D33T.log
./bsu.sh -remove -patchlist=VFS8 -prod_dir=$FMW_HOME/wlserver_10.3 -log=remove_VFS8.log
./bsu.sh -remove -patchlist=LL4G -prod_dir=$FMW_HOME/wlserver_10.3 -log=remove_LL4G.log
apply the requested patch
[b] While applying patch you may get the OutOfMemoryError error
==================
Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded
at java.lang.Class.getInterfaces(Native Method)
at java.lang.Class.getMethod0(Class.java:2779)
==================
please perform below:
1. cp $FMW_HOME/utils/bsu/bsu.sh $FMW_HOME/utils/bsu/bsu.sh_original
2. vi $FMW_HOME/utils/bsu/bsu.sh
modify the line from
MEM_ARGS="-Xms256m -Xmx512m"
to
MEM_ARGS="-Xms1024m -Xmx1024m"
3 apply the requested patch
4. Revert bsu.sh value from backup
cp $FMW_HOME/utils/bsu/bsu.sh_original $FMW_HOME/utils/bsu/bsu.sh
- adop phase=finalize
check the logfile for any errors using the following command
- adopscanlog -latest=yes
Grid upgrade issues (11.2.0.3 to 11.2.0.4)
Grid upgrade issues (11.2.0.3 to 11.2.0.4)
root.sh faild during upgrading the GRID home from 11.2.0.3 to 11.2.0.4 (Doc ID 428681.1)
[root@kasarla02 11204]# ./root.sh
Performing root user operation for Oracle 11g
The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME= /oracrs/oracle/product/11204
Enter the full pathname of the local bin directory: [/usr/local/bin]:
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite.
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Using configuration parameter file: /oracrs/oracle/product/11204/crs/install/crsconfig_params
Creating trace directory
User ignored Prerequisites during installation
Installing Trace File Analyzer
OLR initialization - successful
root wallet
root wallet cert
root cert export
peer wallet
profile reader wallet
pa wallet
peer wallet keys
pa wallet keys
peer cert request
pa cert request
peer cert
pa cert
peer root cert TP
profile reader root cert TP
pa root cert TP
peer pa cert TP
pa peer cert TP
profile reader pa cert TP
profile reader peer cert TP
peer user cert
pa user cert
Adding Clusterware entries to /etc/inittab
CRS-2672: Attempting to start 'ora.mdnsd' on 'kasarla02'
CRS-2676: Start of 'ora.mdnsd' on 'kasarla02' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'kasarla02'
CRS-2676: Start of 'ora.gpnpd' on 'kasarla02' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'kasarla02'
CRS-2672: Attempting to start 'ora.gipcd' on 'kasarla02'
CRS-2676: Start of 'ora.cssdmonitor' on 'kasarla02' succeeded
CRS-2676: Start of 'ora.gipcd' on 'kasarla02' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'kasarla02'
CRS-2672: Attempting to start 'ora.diskmon' on 'kasarla02'
CRS-2676: Start of 'ora.diskmon' on 'kasarla02' succeeded
CRS-2676: Start of 'ora.cssd' on 'kasarla02' succeeded
PROT-1: Failed to initialize ocrconfig
PROC-26: Error while accessing the physical storage Operating System error [No such file or directory] [2]
Failed to create Oracle Cluster Registry configuration, rc 255
Oracle Grid Infrastructure Repository configuration failed at /oracrs/oracle/product/11204/crs/install/crsconfig_lib.pm line 6910.
/oracrs/oracle/product/11204/perl/bin/perl -I/oracrs/oracle/product/11204/perl/lib -I/oracrs/oracle/product/11204/crs/install /oracrs/oracle/product/11204/crs/install/rootcrs.pl execution failed
[root@kasarla02 11204]#
fix : check the ocr and voting disks
--------------------------------------
ocr files not created during upgrade from 11.2.0.3 to 11.2.0.4
[root@kasarla01 bin]# ./ocrcheck
PROT-602: Failed to retrieve data from the cluster registry
PROC-26: Error while accessing the physical storage Operating System error [No such file or
directory] [2]
fix :
[root@kasarla01 bin]# cat /etc/oracle/ocr.loc
ocrconfig_loc=/oracrs/oradata/storage
local_only=FALSE
Changed /etc/oracle/ocr.loc from
ocrconfig_loc=/oracrs/oradata/storage
local_only=FALSE
To
ocrconfig_loc=/oracrs/oradata/storage/ocr
local_only=FALSE
voting disks are not creating during upgrade from 11.2.0.3 to 11.2.0.4
grid@kasarla01 >crsctl query css votedisk
Located 0 voting disk(s).
grid@kasarla01 >
grid@kasarla01 >cd /oracrs/oradata/storage
[root@kasarla01 storage]# ls -ltr
total 23696
-rw-r----- 1 root oracrs 272756736 Jun 30 08:42 ocr
[root@kasarla01 storage]#
[root@kasarla01 storage]# touch vdsk1
[root@kasarla01 storage]# chmod grid:oracrs
[root@kasarla01 storage]# chmod 640 vdsk1
[root@kasarla01 storage]# crsctl query css votedisk
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE 5a135ddc54b44f59bf4a34b20f20ad92 (/oracrs/oradata/storage/vdsk1) []
Located 1 voting disk(s).
[root@kasarla01 storage]# touch vdsk2
[root@kasarla01 storage]# touch vdsk3
[root@kasarla01 storage]# chmod grid:oracrs vdsk2 vdsk3
[root@kasarla01 storage]# chmod 640 vdsk2 vdsk3
[root@kasarla01 storage]#
[root@kasarla01 storage]# ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 2588
Available space (kbytes) : 259532
ID : 2020827252
Device/File Name : /oracrs/oradata/storage/ocr
Device/File integrity check succeeded
Device/File Name : /oracrs/oradata/storage/vdsk2
Device/File integrity check succeeded
Device/File Name : /oracrs/oradata/storage/vdsk3
Device/File integrity check succeeded
Device/File not configured
Device/File not configured
Cluster registry integrity check succeeded
Logical corruption check succeeded
[root@kasarla01 storage]#
[root@kasarla01 storage]# crsctl add css votedisk /oracrs/oradata/storage/vdsk2
Now formatting voting disk: /oracrs/oradata/storage/vdsk2.
clsscfgVFFormatted: corrupt volume info block(3)
CRS-4603: Successful addition of voting disk /oracrs/oradata/storage/vdsk2.
[root@kasarla01 storage]# crsctl add css votedisk /oracrs/oradata/storage/vdsk3
Now formatting voting disk: /oracrs/oradata/storage/vdsk3.
clsscfgVFFormatted: corrupt volume info block(3)
CRS-4603: Successful addition of voting disk /oracrs/oradata/storage/vdsk3.
[root@kasarla01 storage]# crsctl query css votedisk
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE 5a135ddc54b44f59bf4a34b20f20ad92 (/oracrs/oradata/storage/vdsk1) []
2. ONLINE 1b51a5e9c5634f69bfbe968af1b541ba (/oracrs/oradata/storage/vdsk2) []
3. ONLINE 3d116b1530384ff2bf4b79d722eb1f50 (/oracrs/oradata/storage/vdsk3) []
Located 3 voting disk(s).
[root@kasarla01 storage]# cd $GI_HOME/
[root@kasarla01 11204]# ls
assistants cfgtoollogs css deinstall gipc install jdk log nls opmn oui precomp relnotes sqlplus usm
auth clone ctss demo gnsd instantclient jlib md oc4j oracore owm psu root.sh srvm utl
bin crf cv diagnostics gpnp inventory JRE mdns ohasd oraInst.loc patch racg rootupgrade.sh suptools wwg
ccr crs dbs eons has javavm ldap mesg ologgerd ord perl rda scheduler sysman xdk
cdata csmig dc_ocm evm hs jdbc lib network OPatch osysmond plsql rdbms slax tfa
[root@kasarla01 11204]# ./root.sh
Performing root user operation for Oracle 11g
The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME= /oracrs/oracle/product/11204
Enter the full pathname of the local bin directory: [/usr/local/bin]:
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite.
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Using configuration parameter file: /oracrs/oracle/product/11204/crs/install/crsconfig_params
User ignored Prerequisites during installation
Installing Trace File Analyzer
Configure Oracle Grid Infrastructure for a Cluster ... succeeded
[root@kasarla01 11204]#
EBS 12.2 installation on linux
https://static.googleusercontent.com/external_content/picasaweb.googleusercontent.com/slideshow.swf
|
EBS 11i to R12.2 upgrade on linux
|
EBS 11i to R12.1.3 upgrade on linux
|
EBS R12.1.3 to R12.2 upgrade on linux
–Upgrade Database to 11.2.0.3
— check my upgrade document posted in the blog
Apply the following patches to Database Homes
6880880 (OPatch)
8547978
11071989
12955701
13819954 (Bundle Patch)
13388104
13602312
13808632
13040331
14005749
14013094
14153501
14237793
14296972
14574453
14598522
14649883
14751895
14832335
Run post-install steps for Database Patches
13602312
Execute the following Script
perl $OH/nls/data/old/cr9idata.pl
set the _pga_max_size initialization parameter to a larger value as follows:
_pga_max_size=104857600
Update the parameter file
alter system set service_names=’kittu,EBS_PATCH’ scope=spfile sid=’*’;
alter system set compatible=’11.2.0.3′ scope=spfile sid=’*’;
Restart your database. And applications
Run gather schema stats for default estimate percent of 10.
Download the latest JRE 6.0 Update and upgrade JRE in ORACLE_HOME
Make the changes to inventory
#inventory_loc=/u01/mard2/appmard2/oraInventory
inventory_loc=/u01/kittu/R12_2/oraInventory
mkdir /u01/kittu/R12_2/oraInventory
chmod 777 -R u01/kittu/R12_2/oraInventory
chmod 777 -R u01/kittu/R12_2/oraInventory
Check All the DVD are downloaded
$ ls -lrt
-rw-r–r– 1 applmgr oinstall 733536645 Dec 13 17:14 AS10.1.2_DVD1.zip
-rw-r–r– 1 applmgr oinstall 836818629 Dec 13 17:19 AppDB_PROD_DVD1_1of3.zip
-rw-r–r– 1 applmgr oinstall 1503950229 Dec 13 17:26 AppDB_PROD_DVD1_2of3.zip
-rw-r–r– 1 applmgr oinstall 1455165683 Dec 13 17:34 AppDB_PROD_DVD1_3of3.zip
-rw-r–r– 1 applmgr oinstall 1427367320 Dec 13 17:41 AppDB_PROD_DVD2_1of2.zip
-rw-r–r– 1 applmgr oinstall 1050901252 Dec 13 17:46 AppDB_PROD_DVD1_2of2.zip
-rw-r–r– 1 applmgr oinstall 1480071005 Dec 13 19:55 Apps_DVD1_1of3.zip
-rw-r–r– 1 applmgr oinstall 1439721506 Dec 13 20:03 Apps_DVD1_2of3.zip
-rw-r–r– 1 applmgr oinstall 1307303068 Dec 13 20:10 Apps_DVD1_3of3.zip
-rw-r–r– 1 applmgr oinstall 1308826232 Dec 13 20:17 Apps_DVD2_2of2.zip
-rw-r–r– 1 applmgr oinstall 1308826232 Dec 13 20:17 Apps_DVD2_1of2.zip
-rw-r–r– 1 applmgr oinstall 547555181 Dec 13 21:40 TechPatches.zip
-rw-r–r– 1 applmgr oinstall 1602028844 Dec 17 18:27 V29676-01.zip
-rw-r–r– 1 applmgr oinstall 868305864 Dec 17 18:35 V29851-01.zip
-rw-r–r– 1 applmgr oinstall 745115243 Feb 10 21:59 p9942140_R12_GENERIC.zip
Unzip the patches
[applmgr@kasarlaapps R1232bit]$ unzip p9942140_R12_GENERIC.zip
Archive: p9942140_R12_GENERIC.zip
creating: startCD/
extracting: startCD/component.label
……
inflating: startCD/welcome.html
Creating Stage Area
$ cd /soft/oraApps/OEL5_64/BETAPACK3/R1232bit/startCD/Disk1/bin
$ sh buildStage.sh
Please enter the directory containing the zipped installation media:
/soft/oraApps/OEL5_32/Beta3
Unzipping AppDB_PROD_DVD1_1of3.zip
Unzipping AppDB_PROD_DVD1_2of2.zip
Unzipping AppDB_PROD_DVD1_2of3.zip
Unzipping AppDB_PROD_DVD1_3of3.zip
Unzipping AppDB_PROD_DVD2_1of2.zip
Unzipping Apps_DVD1_1of3.zip
Unzipping Apps_DVD1_2of3.zip
Unzipping Apps_DVD1_3of3.zip
Unzipping Apps_DVD2_1of2.zip
Unzipping Apps_DVD2_2of2.zip
Unzipping AS10.1.2_DVD1.zip
Unzipping p9942140_R12_GENERIC.zip
Unzipping TechPatches.zip
Unzipping V29676-01.zip
Unzipping V29851-01.zip
Applying one-off patches
All files have been unzipped.
However, the stage area does not appear to be complete.
Please ensure all zipped EBS installation media is present.
——————Installing Binaries for R12.2 Beta 3——————–
Source the env
cd /u01/kittu/R12_2/fs1/EBSapps/appl
. APPSkittu_kasarlaapps.env
Enable Maintenance mode
Create a directoy
kasarladb01[kittu1]_oracle> mkdir -p $ORACLE_HOME/appsutil/admin
copy adgrants.sql and execute
from apps node $APPL_TOP/admin/ adgrants.sql to DB $ORACLE_HOME/appsutil/admin
kasarladb01[kittu1]_oracle> cd $ORACLE_HOME/appsutil/admin
SQL> @$ORACLE_HOME/appsutil/admin/adgrants.sql -APPS schema name-
SQL> @$ORACLE_HOME/appsutil/admin/adgrants.sql -APPS schema name-
SQL> alter profile default LIMIT PASSWORD_VERIFY_FUNCTION null;
Profile altered.
SQL>
Apply patch
Apply 10117518
Run post install steps –
adadmin -> Compile/Reload Applications Database Entities menu -> Compile APPS schema
Consolidated Upgrade Patch 15971549
Cd /soft/oraApps/OEL5_32/Beta3/15971549
adpatch preinstall=y
adadmin -> Compile/Reload Applications Database Entities menu -> Compile APPS schema
Consolidated Upgrade Patch 15971549
Cd /soft/oraApps/OEL5_32/Beta3/15971549
adpatch preinstall=y
Merge the patches
cd $AU_TOP/patch/115/driver
admrgpch -d . -preinstall -master u10124646.drv
The above will generate a new merged driver as u_merged.drv using this driver run
adpatch options=nocopyportion,nogenerateportion
Disable Maintenance Mode
On the application tier
Create appsutilzip file
[applmgr@ kasarlaapps scripts]$ cd $AD_TOP/bin
[applmgr@ kasarlaapps bin]$ perl admkappsutil.pl
Copy the appsutil.zip file to Database ORACLE_HOMES
Unzip the appsutil.zip file in RDBMS Oracle Homes (Both Nodes)
kasarladb01[kittu1]_oracle> cd $ORACLE_HOME
kasarladb01[kittu1]_oracle> mv appsutil appsutil.original
kasarladb01[kittu1]_oracle> cd /tmp
kasarladb01[kittu1]_oracle> cp appsutil.zip /kittu/oracle/kittudb/11.2.0.3
kasarladb01[kittu1]_oracle> cd /kittu/oracle/kittudb/11.2.0.3
kasarladb01[kittu1]_oracle> unzip -o appsutil.zip
Archive: appsutil.zip
creating: appsutil/
creating: appsutil/template/
inflating: appsutil/template/addbtmpl.drv
inflating: appsutil/template/addbactmpl.drv
inflating: appsutil/template/addbcltmpl.drv
inflating: appsutil/template/txkEBSWrapper.pl
inflating: appsutil/template/ad8idbnt.env
Create xml file in database node1 and run autoconfig (Both Nodes)
kasarladb01[kittu1]_oracle> cd $ORACLE_HOME/appsutil/bin
[oracle@kasarladb01 ~]> perl adbldxml.pl
[oracle@kasarladb01 ~]> perl adbldxml.pl
Starting context file generation for db tier..
Using JVM from /kittu/oracle/kittudb/11.2.0.3/appsutil/jre/bin/java to execute java programs..
APPS Password:
The log file for this adbldxml session is located at:
/kittu/oracle/kittudb/11.2.0.3/appsutil/log/adbldxml_02131131.log
Enter Database Service Name: kittu
Do you want to enable SCAN addresses[N]:
Enter the value for Display Variable: 2
Context File /kittu/oracle/kittudb/11.2.0.3/appsutil/kittu1_kasarladb01.xml
already exists.
Overwriting Context File may cause loss of existing settings, hence
backing it up as: /kittu/oracle/kittudb/11.2.0.3/appsutil/kittu1_kasarladb01.xml.bak
The context file has been created at:
/kittu/oracle/kittudb/11.2.0.3/appsutil/kittu1_kasarladb01.xml
Run autoconfig on both DB nodes
kasarladb01[kittu1]_oracle> perl adconfig.sh contextfile=/kittu/oracle/kittudb/11.2.0.3/appsutil/kittu1_kasarladb01.xml
Enter the APPS user password:
The log file for this session is located at: /kittu/oracle/kittudb/11.2.0.3/appsutil/log/kittu1_kasarladb01/02131132/adconfig.log
AutoConfig is configuring the Database environment…
AutoConfig will consider the custom templates if present.
Using ORACLE_HOME location : /kittu/oracle/kittudb/11.2.0.3
Classpath : :/kittu/oracle/kittudb/11.2.0.3/jdbc/lib/ojdbc6.jar:/kittu/oracle/kittudb/11.2.0.3/appsutil/java/xmlparserv2.jar:/kittu/oracle/kittudb/11.2.0.3/appsutil/java:/kittu/oracle/kittudb/11.2.0.3/jlib/netcfg.jar:/kittu/oracle/kittudb/11.2.0.3/jlib/ldapjclnt11.jar
Using Context file : /kittu/oracle/kittudb/11.2.0.3/appsutil/kittu1_kasarladb01.xml
Context Value Management will now update the Context file
Updating Context file…COMPLETED
Attempting upload of Context file and templates to database…COMPLETED
Updating rdbms version in Context file to db112
Updating rdbms type in Context file to 64 bits
Configuring templates from ORACLE_HOME …
AutoConfig completed successfully.
[oracle@kasarladb02 ~]>
In APPS Tier
SQL> select object_name, object_type, owner, status from dba_objects where
upper(object_name)=’ADX_PRE_AUTOCONFIG’ and object_type=’TABLE’
and upper(owner)=’APPS’; 2 3
OBJECT_NAME OBJECT_TYPE OWNER STATUS
—————————— ——————- ———- ——-
ADX_PRE_AUTOCONFIG TABLE APPS VALID
1 row selected.
cd $AD_TOP/patch/115/sql
SQL> @txkDropAdxPreAutoConfig.sql
Table ADX_PRE_AUTOCONFIG dropped
Synonym ADX_PRE_AUTOCONFIG does not exist
PL/SQL procedure successfully completed.
Commit complete.
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 – 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
SQL> select object_name, object_type, owner, status from dba_objects where
upper(object_name)=’ADX_PRE_AUTOCONFIG’ and object_type=’TABLE’
and upper(owner)=’APPS’;
no rows selected
[applmgr@kasarlaapps sql]$
Update the Application context file
/usr/tmp
to
/u01/kittu/tmp
Run autoconfig on
[applmgr@kasarlaapps admin]$ $ADMIN_SCRIPTS_HOME/adautocfg.sh
Enter the APPS user password:
The log file for this session is located at: /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarlaapps/admin/log/02131144/adconfig.log
AutoConfig is configuring the Applications environment…
AutoConfig will consider the custom templates if present.
Using CONFIG_HOME location : /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarlaapps
Classpath : /u01/kittu/R12_2/fs1/FMW_Home/Oracle_EBS-app1/shared-libs/ebs-appsborg/WEB-INF/lib/ebsAppsborgManifest.jar:/u01/kittu/R12_2/fs1/EBSapps/comn/java/classes
Using Context file : /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarlaapps/appl/admin/kittu_kasarlaapps.xml
Context Value Management will now update the Context file
Updating Context file…COMPLETED
Attempting upload of Context file and templates to database…COMPLETED
Configuring templates from all of the product tops…
Configuring AD_TOP……..COMPLETED
Configuring FND_TOP…….COMPLETED
Configuring ICX_TOP…….COMPLETED
Configuring MSC_TOP…….COMPLETED
Configuring IEO_TOP…….COMPLETED
Configuring BIS_TOP…….COMPLETED
Configuring CZ_TOP……..COMPLETED
Configuring AMS_TOP…….COMPLETED
Configuring CCT_TOP…….COMPLETED
Configuring WSH_TOP…….COMPLETED
Configuring CLN_TOP…….COMPLETED
Configuring OKE_TOP…….COMPLETED
Configuring OKL_TOP…….COMPLETED
Configuring OKS_TOP…….COMPLETED
Configuring CSF_TOP…….COMPLETED
Configuring IBY_TOP…….COMPLETED
Configuring JTF_TOP…….COMPLETED
Configuring MWA_TOP…….COMPLETED
Configuring CN_TOP……..COMPLETED
Configuring CSI_TOP…….COMPLETED
Configuring WIP_TOP…….COMPLETED
Configuring CSE_TOP…….COMPLETED
Configuring EAM_TOP…….COMPLETED
Configuring FTE_TOP…….COMPLETED
Configuring ONT_TOP…….COMPLETED
Configuring AR_TOP……..COMPLETED
Configuring AHL_TOP…….COMPLETED
Configuring IES_TOP…….COMPLETED
Configuring OZF_TOP…….COMPLETED
Configuring CSD_TOP…….COMPLETED
Configuring IGC_TOP…….COMPLETED
AutoConfig completed successfully.
[applmgr@kasarlaapps admin]$
https://picasaweb.google.com/s/c/bin/slideshow.swf
[applmgr@kasarlaapps scripts]$ mkdir $LOG_HOME/appl/op
[applmgr@kasarlaapps scripts]$ cd $LOG_HOME/appl/op
[applmgr@kasarlaapps op]$ sqlplus system @$AD_TOP/sql/ADZDPSUM.sql
SQL*Plus: Release 10.1.0.5.0 – Production on Wed Feb 13 22:20:09 2013
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Enter password:
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 – 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
PL/SQL procedure successfully completed.
Table created.
………
………
PL/SQL procedure successfully completed.
Commit complete.
Commit complete.
[applmgr@kasarlaapps op]$ mv adzdpsum.txt adzdpsum_pre_dbprep.txt
Reviewing the report adzdpsum_pre_dbprep.txt
DOC> Oracle recommends you perform the chosen fix by customizing template file
DOC> $AD_TOP/sql/ADZDPCUST.sql
DOC>
DOC>#
Schema Object Type Number of Objects
——————– ——————– —————–
501729051 SYNONYM 17526
CCLRDC SYNONYM 768
IDMCCL SYNONYM 17539
3 rows selected.
Action taken Execute the following scripts with the APPS account in order to register
the custom schemas identified in the previous section:
exec fnd_oracle_user_pkg.load_row(‘IDMCCL’, ‘CUSTOM’, ‘INVALID’, NULL, ‘N’, ‘B’);
exec fnd_oracle_user_pkg.load_row(‘CCLRDC’, ‘CUSTOM’, ‘INVALID’, NULL, ‘N’, ‘B’);
exec fnd_oracle_user_pkg.load_row(‘501729051’, ‘CUSTOM’, ‘INVALID’, NULL,’N’,’B’);
[applmgr@kasarlaapps op]$ sqlplus apps/passwprd
SQL> exec fnd_oracle_user_pkg.load_row(‘IDMCCL’, ‘CUSTOM’, ‘INVALID’, NULL, ‘N’, ‘B’);
PL/SQL procedure successfully completed.
SQL> exec fnd_oracle_user_pkg.load_row(‘CCLRDC’, ‘CUSTOM’, ‘INVALID’, NULL, ‘N’, ‘B’);
PL/SQL procedure successfully completed.
SQL> exec fnd_oracle_user_pkg.load_row(‘501729051’, ‘CUSTOM’, ‘INVALID’, NULL, ‘N’, ‘B’);
PL/SQL procedure successfully completed.
SQL> commit;
Commit complete.
[applmgr@kasarlaapps op]$ sqlplus system @$AD_TOP/sql/ADZDPMAN.sql
SQL*Plus: Release 10.1.0.5.0 – Production on Wed Feb 13 22:36:13 2013
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Enter password:
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 – 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
PL/SQL procedure successfully completed.
Table created.
……………
…………..
PL/SQL procedure successfully completed.
Commit complete.
Commit complete.
[applmgr@kasarlaapps op]$ mv adzdpman.txt adzdpman_pre_dbprep.txt
Reviewing the report.
[applmgr@kasarlaapps op]$ vi adzdpman_pre_dbprep.txt
No action taken.
[applmgr@kasarlaapps op]$ vi adzdpman_pre_dbprep.txt
[applmgr@kasarlaapps op]$ sqlplus system @$AD_TOP/sql/ADZDPAUT.sql
SQL*Plus: Release 10.1.0.5.0 – Production on Wed Feb 13 22:43:35 2013
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Enter password:
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 – 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
PL/SQL procedure successfully completed.
Table created.
………….
…………
PL/SQL procedure successfully completed.
Commit complete.
Commit complete.
The above report is provided for information purposes and no action should be taken
from this report.
Ensure 25gb free space in system and 5gb free space in apps_ts_seed
[applmgr@kasarlaapps op]$ perl $AD_TOP/bin/adzdreport.pl apps
Enter the APPS Password:
Online Patching Diagnostic Reports Main Menu
——————————————–
1. Run edition reports
2. Patch edition reports
3. Other generic reports
4. Exit
Enter your choice [4]: 3
Other Generic Reports Sub Menu
——————————
1. Editions summary
2. Editioned objects summary
3. Free space in important tablespaces
4. Status of critical AD_ZD objects
5. Actual objects in current edition
6. Objects dependencies
7. Objects dependency tree
8. Editioning views column mappings
9. Index details for a table
10. Inherited objects in the current edition
11. All log messages
12. Materialized view details
13. Database sessions by edition
14. Table details (Synonyms, EV, etc.)
15. Count and status of DDL execution by phase
16. Back to main menu
Enter your choice [16]: 3
===============================================================================
=========================================================================
= Important Tablespace Status
=========================================================================
TABLESPACE_NAME TOTAL_SPACE(GB) USED_SPACE(GB) FREE_SPACE(GB) PCT_USED
—————————— ————— ————– ————– ——–
APPS_TS_SEED 11.95 4.61 7.34 38.60
APPS_TS_TX_DATA ###### ###### 30.52 77.22
APPS_TS_TX_IDX 52.00 39.34 12.66 75.66
SYSTEM 40.70 11.92 28.78 29.28
Above report is captured in file : /u01/kittu/R12_2/fs1/EBSapps/appl/admin/kittu/out/adzdshowts.out.
===============================================================================
Please review the above messages and press <return to go back to menu:
Run the Online Patching Enablement – Status Report
[applmgr@kasarlaapps op]$ cd $LOG_HOME/appl/op
[applmgr@kasarlaapps op]$ sqlplus apps @$AD_TOP/sql/ADZDEXRPT.sql
[applmgr@kasarlaapps op]$ sqlplus apps @$AD_TOP/sql/ADZDEXRPT.sql
SQL*Plus: Release 10.1.0.5.0 – Production on Wed Feb 13 22:56:01 2013
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Enter password:
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 – 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
DOC>
DOC> Online Patch Enablement – Execution Status Report of SQL jobs
DOC>
DOC> Report Script: $AD_TOP/sql/ADZDEXRPT.sql
DOC> Result Spooled Into: adzdexrpt.txt
DOC>
DOC> Currently running Workers (database sessions) for SQL jobs execution.
DOC>
DOC>#
no rows selected
DOC>
DOC> *************************************************************
DOC> SECTION 1
…………..
………….
DOC>
DOC>#
Phase ROW_COUNT START_TIME END_TIME ELAPSED_TIME_MIN
——————– ————- —————————– —————————– —————-
UPGRADE_SEED 2552
COLLECT_STATS 2552
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 – 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
[applmgr@kasarlaapps op]$ mv adzdexrpt.txt adzdexrpt_pre_dbprep.txt
Take special note to ensure that all online patching
objects (objects that match the pattern ‘AD_ZD%’) are valid:
objects (objects that match the pattern ‘AD_ZD%’) are valid:
SQL> select owner,object_name,status from dba_objects where object_name like ‘%AD_ZD%’ and status =’INVALID’;
no rows selected
SQL> select owner,object_name,status from dba_objects where object_name like ‘AD_ZD%’ and status =’INVALID’;
no rows selected
all are valid objects
SQL> select owner,object_name,status from dba_objects where object_name like ‘%AD_ZD%’ and status =’VALID’;
OWNER OBJECT_NAME STATUS
———- —————————— ——-
SYS AD_ZD_SYS VALID
SYS AD_ZD_SYS VALID
APPLSYS AD_ZD_CLOB VALID
APPLSYS AD_ZD_LOGS_S VALID
APPLSYS AD_ZD_DDL_HANDLER_U1 VALID
APPLSYS AD_ZD_DDL_HANDLER_N1 VALID
APPLSYS AD_ZD_DDL_HANDLER VALID
APPLSYS AD_ZD_LOGS_U1 VALID
APPLSYS AD_ZD_LOGS VALID
APPLSYS AD_ZD_DDL_HANDLER_DDL_S VALID
APPS PER_AD_ZD_SEED_WRAPPER VALID
APPS PER_AD_ZD_SEED_WRAPPER VALID
APPS AD_ZD_PREP VALID
APPS AD_ZD_PREP VALID
APPS AD_ZD_CLOB VALID
APPS AD_ZD_MVIEW VALID
APPS AD_ZD VALID
APPS AD_ZD_TABLE VALID
APPS AD_ZD_PARALLEL_EXEC VALID
APPS AD_ZD_LOG VALID
APPS AD_ZD_SEED VALID
APPS AD_ZD_ADOP VALID
APPS AD_ZD_LOG VALID
APPS AD_ZD_SEED VALID
APPS AD_ZD_PARALLEL_EXEC VALID
APPS AD_ZD VALID
APPS AD_ZD_TABLE VALID
APPS AD_ZD_MVIEW VALID
APPS AD_ZD_ADOP VALID
APPS AD_ZD_LOGS_S VALID
APPS AD_ZD_DDL_HANDLER VALID
APPS AD_ZD_LOGS VALID
APPS AD_ZD_DDL_HANDLER_DDL_S VALID
33 rows selected.
Stop the services
Enable Maintaenance mode
Apply patch 13543062
Cd /soft/oraApps/OEL5_32/Beta3/13543062
Adpatch
Disabling Maintaenance Mode
[applmgr@kasarlaapps appl]$ sqlplus apps/xxxx @/u01/kittu/R12_2/fs1/EBSapps/appl/ad/12.0.0/patch/115/sql/adsetmmd.sql DISABLE
SQL> exec sys.utl_recomp.recomp_parallel;
PL/SQL procedure successfully completed.
[applmgr@kasarlaapps appl]$ cd $LOG_HOME/appl/op
[applmgr@kasarlaapps op]$ sqlplus apps @$AD_TOP/sql/ADZDEXRPT.sql
SQL*Plus: Release 10.1.0.5.0 – Production on Thu Feb 14 03:12:07 2013
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Enter password:
Connected to:
………
………
UPGRADE_SEED 2552 2013-FEB-14 00:35:16 2013-FEB-14 00:49:06 13
COLLECT_STATS 2552 2013-FEB-14 00:49:15 2013-FEB-14 00:50:31 1
UPGRADE_MVIEW 120 2013-FEB-14 00:50:50 2013-FEB-14 01:13:56 23
14 rows selected.
[applmgr@kasarlaapps op]$ mv adzdexrpt.txt adzdexrpt_post_dbprep.txt
[applmgr@kasarlaapps op]$ sqlplus system @$AD_TOP/sql/ADZDPSUM.sql
SQL*Plus: Release 10.1.0.5.0 – Production on Thu Feb 14 03:13:17 2013
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Enter password:
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 – 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
PL/SQL procedure successfully completed.
Table created.
[applmgr@kasarlaapps op]$ mv adzdpsum.txt adzdpsum_post_dbprep.txt
[applmgr@kasarlaapps op]$ sqlplus system @$AD_TOP/sql/ADZDPMAN.sql
SQL*Plus: Release 10.1.0.5.0 – Production on Thu Feb 14 03:17:51 2013
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Enter password:
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 – 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
PL/SQL procedure successfully completed.
Table created.
……….
……….
no rows selected
DOC> ********************************* End ******************************
DOC>#
PL/SQL procedure successfully completed.
Commit complete.
Commit complete.
[applmgr@kasarlaapps op]$ mv adzdpman.txt adzdpman_post_dbprep.txt
PL/SQL procedure successfully completed.
Commit complete.
Commit complete.
[applmgr@kasarlaapps op]$ mv adzdpaut.txt adzdpaut_post_dbprep.txt
[applmgr@kasarlaapps op]$ sqlplus apps @$AD_TOP/sql/ADZDDBCC.sql
SQL*Plus: Release 10.1.0.5.0 – Production on Thu Feb 14 03:27:47 2013
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Enter password:
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 – 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
DOC> **********************************************************************
DOC> EBS Online Patching Database Compliance Checker (12.2.0 rev 22)
DOC> **********************************************************************
DOC>#
INSTANCE_NAME VERSION SYSDATE
—————- —————– ——————
kittu1 11.2.0.3.0 14-FEB-13
2 rows selected.
Elapsed: 00:00:01.21
DOC> ********************************* End ******************************
DOC>#
Start the services and do the health check by login to frontend url
———————————————————-
Issues 1
sqlplus -s APPS/***** @/u01/kittu/R12_2/fs1/EBSapps/appl/ad/12.0.0/patch/115/sql/adsqlwrapper.sql ‘/u01/kittu/R12_2/fs1/EBSapps/appl/ad/12.0.0/sql/adzd_drop_synonyms.sql ‘
Connected.
PL/SQL procedure successfully completed.
declare
*
ERROR at line 1:
ORA-00995: missing or invalid synonym identifier
ORA-06512: at line 33
*
ERROR at line 1:
ORA-00995: missing or invalid synonym identifier
ORA-06512: at line 33
Solution
opened that drop_synonyms and changed
select ‘drop ‘||decode(syn.owner, ‘PUBLIC’, ‘PUBLIC’, ”)||’ SYNONYM ‘||
decode(syn.owner, ‘PUBLIC’, ”, syn.owner||’.’)||'”‘||syn.synonym_name||'” ‘||
‘/* ‘||syn.table_owner||’.’||syn.table_name||’ */ ‘ as drop_stmt
To
select ‘drop ‘||decode(syn.owner, ‘PUBLIC’, ‘PUBLIC’, ”)||’ SYNONYM ‘||
decode(syn.owner, ‘PUBLIC’, ”,'”‘||syn.owner||'”‘||’.’)||'”‘||syn.synonym_name||'” ‘||
‘/* ‘||syn.table_owner||’.’||syn.table_name||’ */ ‘ as drop_stmt
and restarted the worked..
this i changed
“‘||syn.owner||'”‘||’.’)||'”‘||syn.synonym_name||'” ‘||
———————————————————-
Issue 2
FAILED: file ADZDPREP.sql on worker 1.
ERROR at line 1:
ORA-44305: service ebs_patch is running
ORA-06512: at “SYS.DBMS_SYS_ERROR”, line 86
ORA-06512: at “SYS.DBMS_SERVICE”, line 454
ORA-06512: at “SYS.DBMS_SERVICE”, line 375
ORA-06512: at “APPS.AD_ZD_PREP”, line 307
ORA-06512: at line 3
ORA-44305: service ebs_patch is running
ORA-06512: at “SYS.DBMS_SYS_ERROR”, line 86
ORA-06512: at “SYS.DBMS_SERVICE”, line 454
ORA-06512: at “SYS.DBMS_SERVICE”, line 375
ORA-06512: at “APPS.AD_ZD_PREP”, line 307
ORA-06512: at line 3
Solution
On both DB nodes execute it
SQL> exec DBMS_SERVICE.STOP_SERVICE(‘EBS_PATCH’);
PL/SQL procedure successfully completed.
SQL> exec DBMS_SERVICE.DELETE_SERVICE(‘EBS_PATCH’);
PL/SQL procedure successfully completed.
SQL> commit;
———————————————————-
Issue 3
@/u01/kittu/R12_2/fs1/EBSapps/appl/ad/12.0.0/patch/115/sql/adsqlwrapper.sql ‘/u01/kittu/R12_2/fs1/EBSapps/appl/ad/12.0.0/patch/115/sql/ADZDWRKR.sql &un_apps &systempwd UPGRADE_TABLE 1 1 1’
Connected.
PL/SQL procedure successfully completed.
Connected.
Session altered.
declare
*
ERROR at line 1:
ORA-20001: [UPGRADE_TABLE 1:1 ddl_id=19095] Fatal Error, exiting. ORA-00600:
internal error code, arguments: [ktsircinfo_num1], [0], [0], [0], [], [], [],
[], [], [], [], [] SQL: begin ad_zd_table.upgrade(‘HR’, ‘PER_ADDRESSES’); end;
ORA-06512: at “APPS.AD_ZD_PARALLEL_EXEC”, line 515
ORA-06512: at line 34
*
ERROR at line 1:
ORA-20001: [UPGRADE_TABLE 1:1 ddl_id=19095] Fatal Error, exiting. ORA-00600:
internal error code, arguments: [ktsircinfo_num1], [0], [0], [0], [], [], [],
[], [], [], [], [] SQL: begin ad_zd_table.upgrade(‘HR’, ‘PER_ADDRESSES’); end;
ORA-06512: at “APPS.AD_ZD_PARALLEL_EXEC”, line 515
ORA-06512: at line 34
Solution
Skipped the worker
———————————————————-
Issue 4
Executing command: /soft/oraApps/OEL5_32/Beta3/startCD/Disk1/rapidwiz/jre/Linux/1.6.0/bin/java -cp /u01/kittu/R12_2/fs2/inst/apps/kittu_kasarlaapps/temp/ASInstallHome/fnd/../j11067592_fnd.zip:/u01/kittu/R12_2/fs2/inst/apps/kittu_kasarlaapps/temp/ASInstallHome/fnd/java/3rdparty/stdalone/xmlparserv2.zip -Doracle.apps.fnd.txk.env_home=/u01/kittu/R12_2/fs2/EBSapps/appl/admin/kittu_kasarlaapps/ -Doracle.apps.fnd.txk.runtime.config=/u01/kittu/R12_2/fs2/inst/apps/kittu_kasarlaapps/temp/xmldocs/instWeb.xml oracle.apps.fnd.txk.config.InstallService
Fatal Error: TXK Install Service
oracle.apps.fnd.txk.config.ProcessStateException: OUI process failed : Exit=255 See log for details. CMD= /soft/oraApps/OEL5_32/Beta3/TechInstallMedia/ohs11116/Disk1/runInstaller -waitForCompletion -ignoreSysPrereqs -force -silent -responseFile /u01/kittu/R12_2/fs2/inst/apps/kittu_kasarlaapps/temp/cfgHome/response/APPS_OHS_HOME/txkOHS_11116.rsp
at oracle.apps.fnd.txk.config.OUIPatchActionNode.processState(OUIPatchActionNode.java:159)
at oracle.apps.fnd.txk.config.PatchActionNode.processState(PatchActionNode.java:187)
at oracle.apps.fnd.txk.config.PatchNode.processState(PatchNode.java:338)
at oracle.apps.fnd.txk.config.PatchesNode.processState(PatchesNode.java:79)
at oracle.apps.fnd.txk.config.InstallNode.processState(InstallNode.java:68)
at oracle.apps.fnd.txk.config.TXKTopology.traverse(TXKTopology.java:594)
at oracle.apps.fnd.txk.config.InstallService.doInvoke(InstallService.java:224)
at oracle.apps.fnd.txk.config.InstallService.invoke(InstallService.java:237)
at oracle.apps.fnd.txk.config.InstallService.main(InstallService.java:291)Solution
at oracle.apps.fnd.txk.config.PatchNode.processState(PatchNode.java:338)
at oracle.apps.fnd.txk.config.PatchesNode.processState(PatchesNode.java:79)
at oracle.apps.fnd.txk.config.InstallNode.processState(InstallNode.java:68)
at oracle.apps.fnd.txk.config.TXKTopology.traverse(TXKTopology.java:594)
at oracle.apps.fnd.txk.config.InstallService.doInvoke(InstallService.java:224)
at oracle.apps.fnd.txk.config.InstallService.invoke(InstallService.java:237)
at oracle.apps.fnd.txk.config.InstallService.main(InstallService.java:291)Solution
Solution
following changes done to oraInst.loc
#inventory_loc=/u01/mard2/appmard2/oraInventory
inventory_loc=/u01/kittu/R12_2/oraInventory
mkdir /u01/kittu/R12_2/oraInventory
chmod 777 -R u01/kittu/R12_2/oraInventory
Suggested cleaning out install directory
and
/tmp
———————————————————-
Issue 5
Check Description:This is a prerequisite condition to test whether the minimum required kernel parameters are configured.
Checking for VERSION=2.6.18; found VERSION=2.6.18-194.32.1.0.1.el5PAE. Passed
Checking for hardnofiles=4096; hardnofiles=1024. Failed
Checking for softnofiles=4096; softnofiles=1024. Failed
Check complete. The overall result of this check is: Failed
Solution
In /etc/security/limits.conf
below were added
* soft nproc 2047
* hard nproc 16384
* soft nofile 4096
* hard nofile 65535
11:36 AM
to resolve that issue
———————————————————-
issue 6
ORA-00600: internal error code, arguments: [ktsircinfo_num1], [381], [402], [150027], [], [], [], [], [], [], [], []
Solution
“hcheck.sql” script to check for known problems in Oracle8i, Oracle9i, Oracle10g and Oracle 11g [ID 136697.1]
SQL> @hout.sql
Package created.
No errors.
Package body created.
SQL> @hcheck3.sql
Package created.
Package body created.
PL/SQL procedure successfully completed.
ORPHAN IND$: OBJ=1357661 DOBJ=1357661 TS=381 RFILE/BLOCK=402 150027 BO#=43714
SQL> select ts#, file#, block# from sys.ind$ where obj#=1357661;
TS# FILE# BLOCK#
———- ———- ———-
381 402 150027
SQL> select object_type,object_name,owner from dba_objects where object_id=1357661;
OBJECT_TYPE OBJECT_NAME OWNER
——————- —————————— ———-
INDEX SYS_IL0000043714C00070$$ HR
1 row selected.
SQL> set pages 0
SQL> set long 20000000
SQL> update ind$ set ts#=0, file#=0, block#=0, flags=flags+4096 where obj#=1357661;
1 row updated.
SQL> commit;
Commit complete.
Restarted the database.
Restarted the patch and restarted the failed worker which ran fine and patch completed well.
RAC database cloning using (duplicate)
|
RAC Database cloning (manual)
|
single to RAC DB conversion (3 nodes)
|
Adding new node on EBS R12.2
[applmgr@kasarla01 ~]$ cd /u01/kittu/R12_2/fs1/EBSapps/appl
set the environment to run filesystem
[applmgr@kasarla01 appl]$ ls
ad amv asn bic chv csf cz ec flm ghg gml ia iec imc ja mfg oe ota pn psa rg wps xnp
adctrl.log ap aso bim cln csi ddr ecx fnd ghr gmo ibc iem inl je mrp okc ozf po psp rlm wsh xtr
admin APPSkittu_kasarla01.env asp bis cn csl dna edr fpa gl gmp ibe ieo inv jg msc oke pa pom pv rrs wsm zx
ahl ar ast bne crp csm dom ego frm gma gms ibu ies ipa jl msd okl pay pon qa sht xdo
ak as au bom cs csp dpp eng fte gmd gr ibw ieu ipm jmf mso oks per pos qot ssp xdp
alr asf ax kittu_kasarla01.env csc csr dt eni fun gme hri iby iex irc jtf msr okx pji pqh qp vea xla
ame asg az cct csd cua eam fa fv gmf hxc icx igc itg jtm mth ont pjm pqp qpr wip xle
ams asl ben ce cse cug ebi ff gecl gmi hxt ieb igi izu lns mwa opi pmi prp qrm wms xnb
[applmgr@kasarla01 appl]$ . APPSkittu_kasarla01.env
[applmgr@kasarla01 appl]$ echo $FILE_EDITION
run
[applmgr@kasarla01 appl]$[applmgr@kasarla01 appl]$ cat $CONTEXT_FILE|grep s_shared_file_system
update the context file value s_shared_file_system from false to true
shared_file_system oa_var="s_shared_file_system"false/shared_file_system
[applmgr@kasarla01 appl]$
[applmgr@kasarla01 admin]$ cat $CONTEXT_FILE|grep s_shared_file_system
shared_file_system oa_var="s_shared_file_system"true/shared_file_system
[applmgr@kasarla01 admin]$[applmgr@kasarla01 admin]$ cd $ADMIN_SCRIPTS_HOME
Run autoconfig on run filesystem
[applmgr@kasarla01 scripts]$ adautocfg.sh
Enter the APPS user password:
The log file for this session is located at: /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/log/03140134/adconfig.log
AutoConfig is configuring the Applications environment...
AutoConfig will consider the custom templates if present.
Using CONFIG_HOME location : /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01
Classpath : /u01/kittu/R12_2/fs1/FMW_Home/Oracle_EBS-app1/shared-libs/ebs-appsborg/WEB-INF/lib/ebsAppsborgManifest.jar:/u01/kittu/R12_2/fs1/EBSapps/comn/java/classes
Using Context file : /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml
Context Value Management will now update the Context file
Updating Context file...COMPLETED
Attempting upload of Context file and templates to database...COMPLETED
Configuring templates from all of the product tops...
Configuring AD_TOP........COMPLETED
Configuring FND_TOP.......COMPLETED
Configuring ICX_TOP.......COMPLETED
Configuring MSC_TOP.......COMPLETED
Configuring IEO_TOP.......COMPLETED
Configuring BIS_TOP.......COMPLETED
Configuring CZ_TOP........COMPLETED
Configuring AMS_TOP.......COMPLETED
Configuring CCT_TOP.......COMPLETED
Configuring WSH_TOP.......COMPLETED
Configuring CLN_TOP.......COMPLETED
Configuring OKE_TOP.......COMPLETED
Configuring OKL_TOP.......COMPLETED
Configuring OKS_TOP.......COMPLETED
Configuring CSF_TOP.......COMPLETED
Configuring IBY_TOP.......COMPLETED
Configuring JTF_TOP.......COMPLETED
Configuring MWA_TOP.......COMPLETED
Configuring CN_TOP........COMPLETED
Configuring CSI_TOP.......COMPLETED
Configuring WIP_TOP.......COMPLETED
Configuring CSE_TOP.......COMPLETED
Configuring EAM_TOP.......COMPLETED
Configuring FTE_TOP.......COMPLETED
Configuring ONT_TOP.......COMPLETED
Configuring AR_TOP........COMPLETED
Configuring AHL_TOP.......COMPLETED
Configuring IES_TOP.......COMPLETED
Configuring OZF_TOP.......COMPLETED
Configuring CSD_TOP.......COMPLETED
Configuring IGC_TOP.......COMPLETED
AutoConfig completed successfully.
[applmgr@kasarla01 scripts]$[applmgr@kasarla01 appl]$ . APPSkittu_kasarla01.env
Set the patch environment
[applmgr@kasarla01 appl]$ echo $FILE_EDITION
patch
[applmgr@kasarla01 appl]$[applmgr@kasarla01 admin]$ cp kittu_kasarla01.xml kittu_kasarla01.xml_original
update the context file value s_shared_file_system from false to true
[applmgr@kasarla01 admin]$ cat $CONTEXT_FILE|grep s_shared_file_system
shared_file_system oa_var="s_shared_file_system"false/shared_file_system
[applmgr@kasarla01 admin]$ vi kittu_kasarla01.xml
[applmgr@kasarla01 admin]$ cat $CONTEXT_FILE|grep s_shared_file_system
shared_file_system oa_var="s_shared_file_system"true/shared_file_system[applmgr@kasarla01 admin]$ cd $ADMIN_SCRIPTS_HOME
Run autoconfig on patch filesystem
[applmgr@kasarla01 scripts]$ adautocfg.sh
Enter the APPS user password:
The log file for this session is located at: /u01/kittu/R12_2/fs2/inst/apps/kittu_kasarla01/admin/log/03140149/adconfig.log
AutoConfig is configuring the Applications environment...
AutoConfig will consider the custom templates if present.
Using CONFIG_HOME location : /u01/kittu/R12_2/fs2/inst/apps/kittu_kasarla01
Classpath : /u01/kittu/R12_2/fs2/FMW_Home/Oracle_EBS-app1/shared-libs/ebs-appsborg/WEB-INF/lib/ebsAppsborgManifest.jar:/u01/kittu/R12_2/fs2/EBSapps/comn/java/classes
Using Context file : /u01/kittu/R12_2/fs2/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml
Context Value Management will now update the Context file
Updating Context file...COMPLETED
Attempting upload of Context file and templates to database...COMPLETED
Configuring templates from all of the product tops...
Configuring AD_TOP........COMPLETED
Configuring FND_TOP.......COMPLETED
Configuring ICX_TOP.......COMPLETED
Configuring MSC_TOP.......COMPLETED
Configuring IEO_TOP.......COMPLETED
Configuring BIS_TOP.......COMPLETED
Configuring CZ_TOP........COMPLETED
Configuring AMS_TOP.......COMPLETED
Configuring CCT_TOP.......COMPLETED
Configuring WSH_TOP.......COMPLETED
Configuring CLN_TOP.......COMPLETED
Configuring OKE_TOP.......COMPLETED
Configuring OKL_TOP.......COMPLETED
Configuring OKS_TOP.......COMPLETED
Configuring CSF_TOP.......COMPLETED
Configuring IBY_TOP.......COMPLETED
Configuring JTF_TOP.......COMPLETED
Configuring MWA_TOP.......COMPLETED
Configuring CN_TOP........COMPLETED
Configuring CSI_TOP.......COMPLETED
Configuring WIP_TOP.......COMPLETED
Configuring CSE_TOP.......COMPLETED
Configuring EAM_TOP.......COMPLETED
Configuring FTE_TOP.......COMPLETED
Configuring ONT_TOP.......COMPLETED
Configuring AR_TOP........COMPLETED
Configuring AHL_TOP.......COMPLETED
Configuring IES_TOP.......COMPLETED
Configuring OZF_TOP.......COMPLETED
Configuring CSD_TOP.......COMPLETED
Configuring IGC_TOP.......COMPLETED[applmgr@kasarla01 scripts]$
AutoConfig completed with errors.
--- This is because of inventory pointing to other env . currently other environment upgrade is going on so i can not chagne right now
so i am ignoring this error[applmgr@kasarla01 appl]$ . APPSkittu_kasarla01.env
Go back to run filesystem and run preclone
[applmgr@kasarla01 appl]$ echo $FILE_EDITION
run
[applmgr@kasarla01 appl]$
[applmgr@kasarla01 bin]$ cd $ADMIN_SCRIPTS_HOME
[applmgr@kasarla01 scripts]$ ls
adadminsrvctl.sh adapcctl.sh adcmctl.sh adformsrvctl.sh adnodemgrctl.sh adpreclone.pl adstrtal.sh gsmstart.sh java.sh msc mwactlwrpr.sh
adalnctl.sh adautocfg.sh adexecsql.pl admanagedsrvctl.sh adopmnctl.sh adstpall.sh cz64bitengine.pl ieo jtffmctl.sh mwactl.sh
[applmgr@kasarla01 scripts]$ pwd
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts
[applmgr@kasarla01 scripts]$ ./adpreclone.pl appsTier
Copyright (c) 2011 Oracle Corporation
Redwood Shores, California, USA
Oracle E-Business Suite Rapid Clone
Version 12.2
adpreclone Version 120.31.12020000.3
Enter the Weblogic AdminServer password :
Checking the status of the Oracle WebLogic Administration Server....
Running perl /u01/kittu/R12_2/fs1/EBSapps/appl/ad/12.0.0/patch/115/bin/adProvisionEBS.pl ebs-get-serverstatus -contextfile=/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml -servername=AdminServer -promptmsg=hide
The Oracle WebLogic Administration Server is up.
Running:
perl /u01/kittu/R12_2/fs1/EBSapps/appl/ad/12.0.0/bin/adclone.pl java=/u01/kittu/R12_2/fs1/FMW_Home/jrockit_160_29_D1.2.0-10 mode=stage stage=/u01/kittu/R12_2/fs1/EBSapps/comn/clone component=appsTier method= appctx=/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml showProgress
Beginning application tier Stage - Thu Mar 14 02:35:18 2013
/u01/kittu/R12_2/fs1/FMW_Home/jrockit_160_29_D1.2.0-10/bin/java -Xmx600M -DCONTEXT_VALIDATED=false -Doracle.installer.oui_loc=/oui -classpath /u01/kittu/R12_2/fs1/FMW_Home/webtier/lib/xmlparserv2.jar:/u01/kittu/R12_2/fs1/FMW_Home/webtier/jdbc/lib/ojdbc6.jar:/u01/kittu/R12_2/fs1/EBSapps/comn/java/classes:/u01/kittu/R12_2/fs1/FMW_Home/webtier/oui/jlib/OraInstaller.jar:/u01/kittu/R12_2/fs1/FMW_Home/webtier/oui/jlib/ewt3.jar:/u01/kittu/R12_2/fs1/FMW_Home/webtier/oui/jlib/share.jar:/u01/kittu/R12_2/fs1/FMW_Home/webtier/oui/jlib/srvm.jar:/u01/kittu/R12_2/fs1/FMW_Home/webtier/jlib/ojmisc.jar:/u01/kittu/R12_2/fs1/FMW_Home/wlserver_10.3/server/lib/weblogic.jar:/u01/kittu/R12_2/fs1/FMW_Home/oracle_common/jlib/obfuscatepassword.jar oracle.apps.ad.clone.StageAppsTier -e /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml -stage /u01/kittu/R12_2/fs1/EBSapps/comn/clone -tmp /tmp -method CUSTOM -showProgress -nopromptmsg
Log file located at /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/log/StageAppsTier_03140235.log
\ 20% completed*******************************************************************************************************
ERROR while running Stage...
Thu Mar 14 02:43:19 2013
ERROR while running perl /u01/kittu/R12_2/fs1/EBSapps/appl/ad/12.0.0/bin/adclone.pl java=/u01/kittu/R12_2/fs1/FMW_Home/jrockit_160_29_D1.2.0-10 mode=stage stage=/u01/kittu/R12_2/fs1/EBSapps/comn/clone component=appsTier method= appctx=/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml showProgress ...
Thu Mar 14 02:43:19 2013
[applmgr@kasarla01 scripts]$
--- changed the inventory point to current environment
[applmgr@kasarla01 logs]$ pwd
/u01/kittu/R12_2/fs1/EBSapps/comn/clone/FMW/logs
[applmgr@kasarla01 logs]$ cat CLONE2013-03-14_02-43-18AM.error
WARNING : Mar 14, 2013 2:43:19 AM - ERROR - CLONE-20263 Invalid Oracle Inventory.
WARNING : Mar 14, 2013 2:43:19 AM - CAUSE - CLONE-20263 There are two possible causes for an invalid OraInventory "/cfsdshr/mard2/R12_2/oraInventory".
1. Inventory was empty.
2. It did not have valid inventory.xml file.
WARNING : Mar 14, 2013 2:43:19 AM - ACTION - CLONE-20263 Provide a valid Oracle Inventory.
12:37 PM
in /etc/oraInst.loc the inventory location for kittu was commented as mard2 was enabled during installation 12:37 PM
so i commented mard2 and uncommented kittu
[applmgr@kasarla01 scripts]$ ./adpreclone.pl appsTier
Copyright (c) 2011 Oracle Corporation
Redwood Shores, California, USA
Oracle E-Business Suite Rapid Clone
Version 12.2
adpreclone Version 120.31.12020000.3
Enter the Weblogic AdminServer password :
Checking the status of the Oracle WebLogic Administration Server....
Running perl /u01/kittu/R12_2/fs1/EBSapps/appl/ad/12.0.0/patch/115/bin/adProvisionEBS.pl ebs-get-serverstatus -contextfile=/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml -servername=AdminServer -promptmsg=hide
The Oracle WebLogic Administration Server is up.
Running:
perl /u01/kittu/R12_2/fs1/EBSapps/appl/ad/12.0.0/bin/adclone.pl java=/u01/kittu/R12_2/fs1/FMW_Home/jrockit_160_29_D1.2.0-10 mode=stage stage=/u01/kittu/R12_2/fs1/EBSapps/comn/clone component=appsTier method= appctx=/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml showProgress
Beginning application tier Stage - Thu Mar 14 03:06:34 2013
/u01/kittu/R12_2/fs1/FMW_Home/jrockit_160_29_D1.2.0-10/bin/java -Xmx600M -DCONTEXT_VALIDATED=false -Doracle.installer.oui_loc=/oui -classpath /u01/kittu/R12_2/fs1/FMW_Home/webtier/lib/xmlparserv2.jar:/u01/kittu/R12_2/fs1/FMW_Home/webtier/jdbc/lib/ojdbc6.jar:/u01/kittu/R12_2/fs1/EBSapps/comn/java/classes:/u01/kittu/R12_2/fs1/FMW_Home/webtier/oui/jlib/OraInstaller.jar:/u01/kittu/R12_2/fs1/FMW_Home/webtier/oui/jlib/ewt3.jar:/u01/kittu/R12_2/fs1/FMW_Home/webtier/oui/jlib/share.jar:/u01/kittu/R12_2/fs1/FMW_Home/webtier/oui/jlib/srvm.jar:/u01/kittu/R12_2/fs1/FMW_Home/webtier/jlib/ojmisc.jar:/u01/kittu/R12_2/fs1/FMW_Home/wlserver_10.3/server/lib/weblogic.jar:/u01/kittu/R12_2/fs1/FMW_Home/oracle_common/jlib/obfuscatepassword.jar oracle.apps.ad.clone.StageAppsTier -e /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml -stage /u01/kittu/R12_2/fs1/EBSapps/comn/clone -tmp /tmp -method CUSTOM -showProgress -nopromptmsg
Log file located at /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/log/StageAppsTier_03140306.log
/ 20% completed
- 20% completed
Completed Stage...
Thu Mar 14 03:54:22 2013
[applmgr@kasarla01 scripts]$[applmgr@kasarla01 scripts]$ adstpall.sh
Stop the application on run filesystem
You are running adstpall.sh version 120.22.12020000.5
Enter the APPS username: apps
Enter the APPS password:
Enter the WebLogic Server password:
The logfile for this session is located at /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adstpall.log
Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/adcmctl.sh stop
Timeout specified in context file: 1000 second(s)
script returned:
****************************************************
You are running adcmctl.sh version 120.19.12020000.3
Shutting down concurrent managers for kittu ...
ORACLE Password:
Submitted request 1786499 for CONCURRENT FND SHUTDOWN
adcmctl.sh: exiting with status 0
adcmctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adcmctl.txt for more information ...
.end std out.
.end err out.
****************************************************
Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/jtffmctl.sh stop
Timeout specified in context file: 100 second(s)
script returned:
****************************************************
You are running jtffmctl.sh version 120.3.12020000.4
Shutting down Fulfillment Server for kittu on port 9327 ...
jtffmctl.sh: exiting with status 0
.end std out.
.end err out.
****************************************************
Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/adapcctl.sh stop
Timeout specified in context file: 100 second(s)
script returned:
****************************************************
You are running adapcctl.sh version 120.0.12020000.2
Stopping OPMN managed Oracle HTTP Server (OHS) instance ...
adapcctl.sh: exiting with status 0
adapcctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adapcctl.txt for more information ...
.end std out.
.end err out.
****************************************************
Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/adopmnctl.sh stop
Timeout specified in context file: 100 second(s)
script returned:
****************************************************
You are running adopmnctl.sh version 120.0.12020000.2
Stopping Oracle Process Manager (OPMN) and the managed processes ...
adopmnctl.sh: exiting with status 0
adopmnctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adopmnctl.txt for more information ...
.end std out.
.end err out.
****************************************************
Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/admanagedsrvctl.sh abort forms-c4ws_server1 -nopromptmsg
Timeout specified in context file: -1 second(s)
script returned:
****************************************************
You are running admanagedsrvctl.sh version 120.14.12020000.4
Stopping forms-c4ws_server1...
.Refer /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adforms-c4wsctl.txt for details
admanagedsrvctl.sh: exiting with status 0
admanagedsrvctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adforms-c4wsctl.txt for more information ...
.end std out.
.end err out.
****************************************************
Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/admanagedsrvctl.sh abort forms_server1 -nopromptmsg
Timeout specified in context file: -1 second(s)
script returned:
****************************************************
You are running admanagedsrvctl.sh version 120.14.12020000.4
Stopping forms_server1...
.Refer /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adformsctl.txt for details
admanagedsrvctl.sh: exiting with status 0
admanagedsrvctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adformsctl.txt for more information ...
.end std out.
.end err out.
****************************************************
Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/admanagedsrvctl.sh abort oafm_server1 -nopromptmsg
Timeout specified in context file: -1 second(s)
script returned:
****************************************************
You are running admanagedsrvctl.sh version 120.14.12020000.4
Stopping oafm_server1...
.Refer /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adoafmctl.txt for details
admanagedsrvctl.sh: exiting with status 0
admanagedsrvctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adoafmctl.txt for more information ...
.end std out.
.end err out.
****************************************************
Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/admanagedsrvctl.sh abort oacore_server1 -nopromptmsg
Timeout specified in context file: -1 second(s)
script returned:
****************************************************
You are running admanagedsrvctl.sh version 120.14.12020000.4
Stopping oacore_server1...
...Refer /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adoacorectl.txt for details
admanagedsrvctl.sh: exiting with status 0
admanagedsrvctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adoacorectl.txt for more information ...
.end std out.
.end err out.
****************************************************
Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/adalnctl.sh stop
Timeout specified in context file: 100 second(s)
script returned:
****************************************************
adalnctl.sh version 120.3.12020000.2
Shutting down listener process APPS_kittu.
adalnctl.sh: exiting with status 0
adalnctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adalnctl.txt for more information ...
.end std out.
.end err out.
****************************************************
Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/adadminsrvctl.sh stop -nopromptmsg
Timeout specified in context file: 1000 second(s)
script returned:
****************************************************
You are running adadminsrvctl.sh version 120.10.12020000.2
Stopping WLS Admin Server...
Refer /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adadminsrvctl.txt for details
adadminsrvctl.sh: exiting with status 0
adadminsrvctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adadminsrvctl.txt for more information ...
.end std out.
.end err out.
****************************************************
Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/adnodemgrctl.sh stop -nopromptmsg
Timeout specified in context file: 100 second(s)
script returned:
****************************************************
You are running adnodemgrctl.sh version 120.11.12020000.4
adnodemgrctl.sh: exiting with status 0
adnodemgrctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adnodemgrctl.txt for more information ...
.end std out.
.end err out.
****************************************************
All enabled services on this node are stopped.
adstpall.sh:Exiting with status 0
adstpall.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adstpall.log for more information ...
[applmgr@kasarla01 scripts]$[applmgr@kasarla01 scripts]$ ./adadminsrvctl.sh start forcepatchfs
start the adminsrvctl on patch filesystem
[applmgr@kasarla01 scripts]$ ./adadminsrvctl.sh start
You are running adadminsrvctl.sh version 120.10.12020000.2
ERROR: Services should normally be started from the Run environment, not the Patch environment
To start services from the Patch environment, you must specify the 'forcepatchfs' option.
adadminsrvctl.sh: Exiting with status 1
You are running adadminsrvctl.sh version 120.10.12020000.2
Enter the WebLogic Admin password:
Enter the APPS Schema password:
Starting WLS Admin Server...
NMProcess: Mar 14, 2013 4:12:31 AM INFO Loading domains file: /u01/kittu/R12_2/fs2/FMW_Home/wlserver_10.3/common/nodemanager/nmHome1/nodemanager.domains
NMProcess: Mar 14, 2013 4:12:31 AM weblogic.nodemanager.server.NMServerConfig initDomainsMap
NMProcess: INFO: Loading domains file: /u01/kittu/R12_2/fs2/FMW_Home/wlserver_10.3/common/nodemanager/nmHome1/nodemanager.domains
NMProcess: Mar 14, 2013 4:12:31 AM INFO Loaded node manager configuration properties from '/u01/kittu/R12_2/fs2/FMW_Home/wlserver_10.3/common/nodemanager/nmHome1/nodemanager.properties'
NMProcess: Mar 14, 2013 4:12:31 AM weblogic.nodemanager.server.NMServer init
NMProcess: INFO: Loaded node manager configuration properties from '/u01/kittu/R12_2/fs2/FMW_Home/wlserver_10.3/common/nodemanager/nmHome1/nodemanager.properties'
NMProcess: Node manager v10.3
NMProcess:
NMProcess: Configuration settings:
NMProcess:
NMProcess: NodeManagerHome=/u01/kittu/R12_2/fs2/FMW_Home/wlserver_10.3/common/nodemanager/nmHome1
NMProcess: ListenAddress=kasarla01.corporate.ge.com
NMProcess: ListenPort=5584
NMProcess: ListenBacklog=50
NMProcess: SecureListener=false
NMProcess: AuthenticationEnabled=true
NMProcess: NativeVersionEnabled=true
NMProcess: CrashRecoveryEnabled=false
NMProcess: JavaHome=/u01/kittu/R12_2/fs2/FMW_Home/jrockit_160_29_D1.2.0-10
NMProcess: StartScriptEnabled=false
NMProcess: StopScriptEnabled=false
NMProcess: StartScriptName=startWebLogic.sh
NMProcess: StopScriptName=
NMProcess: LogFile=/u01/kittu/R12_2/fs2/FMW_Home/wlserver_10.3/common/nodemanager/nmHome1/nodemanager.log
NMProcess: LogLevel=INFO
NMProcess: LogLimit=0
NMProcess: LogCount=1
NMProcess: LogAppend=true
NMProcess: LogToStderr=true
NMProcess: LogFormatter=weblogic.nodemanager.server.LogFormatter
NMProcess: DomainsFile=/u01/kittu/R12_2/fs2/FMW_Home/wlserver_10.3/common/nodemanager/nmHome1/nodemanager.domains
NMProcess: DomainsFileEnabled=true
NMProcess: StateCheckInterval=500
NMProcess: QuitEnabled=true
NMProcess: UseMACBroadcast=false
NMProcess: DomainRegistrationEnabled=false
NMProcess: DomainsDirRemoteSharingEnabled=false
NMProcess:
NMProcess: Domain name mappings:
NMProcess:
NMProcess: EBS_domain_kittu - /u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu
NMProcess:
NMProcess: Mar 14, 2013 4:12:33 AM INFO EBS_domain_kittu AdminServer Startup configuration properties loaded from "/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/AdminServer/data/nodemanager/startup.properties"
NMProcess: Mar 14, 2013 4:12:33 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Startup configuration properties loaded from "/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/AdminServer/data/nodemanager/startup.properties"
NMProcess: Mar 14, 2013 4:12:33 AM INFO EBS_domain_kittu oacore_server1 Startup configuration properties loaded from "/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/oacore_server1/data/nodemanager/startup.properties"
NMProcess: Mar 14, 2013 4:12:33 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Startup configuration properties loaded from "/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/oacore_server1/data/nodemanager/startup.properties"
NMProcess: Mar 14, 2013 4:12:33 AM INFO EBS_domain_kittu forms_server1 Startup configuration properties loaded from "/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/forms_server1/data/nodemanager/startup.properties"
NMProcess: Mar 14, 2013 4:12:33 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Startup configuration properties loaded from "/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/forms_server1/data/nodemanager/startup.properties"
NMProcess: Mar 14, 2013 4:12:33 AM INFO EBS_domain_kittu oafm_server1 Startup configuration properties loaded from "/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/oafm_server1/data/nodemanager/startup.properties"
NMProcess: Mar 14, 2013 4:12:33 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Startup configuration properties loaded from "/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/oafm_server1/data/nodemanager/startup.properties"
NMProcess: Mar 14, 2013 4:12:33 AM INFO EBS_domain_kittu forms-c4ws_server1 Startup configuration properties loaded from "/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/forms-c4ws_server1/data/nodemanager/startup.properties"
NMProcess: Mar 14, 2013 4:12:33 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Startup configuration properties loaded from "/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/forms-c4ws_server1/data/nodemanager/startup.properties"
NMProcess: Mar 14, 2013 4:12:33 AM INFO Plain socket listener started on port 5584, host kasarla01.corporate.ge.com
NMProcess: Mar 14, 2013 4:12:33 AM weblogic.nodemanager.server.Listener run
NMProcess: INFO: Plain socket listener started on port 5584, host kasarla01.corporate.ge.com
NMProcess: Mar 14, 2013 4:12:50 AM INFO EBS_domain_kittu AdminServer Startup configuration properties saved to "/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/AdminServer/data/nodemanager/startup.properties"
NMProcess: Mar 14, 2013 4:12:50 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Startup configuration properties saved to "/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/AdminServer/data/nodemanager/startup.properties"
NMProcess: Mar 14, 2013 4:12:50 AM INFO EBS_domain_kittu AdminServer Rotated server output log to "/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/AdminServer/logs/AdminServer.out00010"
NMProcess: Mar 14, 2013 4:12:50 AM weblogic.nodemanager.server.LogFileRotationUtil log
NMProcess: INFO: Rotated server output log to "/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/AdminServer/logs/AdminServer.out00010"
NMProcess: Mar 14, 2013 4:12:50 AM INFO EBS_domain_kittu AdminServer Server error log also redirected to server log
NMProcess: Mar 14, 2013 4:12:50 AM weblogic.nodemanager.server.LogFileRotationUtil log
NMProcess: INFO: Server error log also redirected to server log
NMProcess: Mar 14, 2013 4:12:50 AM INFO EBS_domain_kittu AdminServer Starting WebLogic server with command line: /u01/kittu/R12_2/fs2/FMW_Home/jrockit_160_29_D1.2.0-10/jre/bin/java -Dweblogic.Name=AdminServer -Djava.security.policy=null -Djava.library.path=/usr/java/packages/lib/i386:/u01/kittu/R12_2/fs2/FMW_Home/jrockit_160_29_D1.2.0-10/jre/lib/i386/jrockit:/u01/kittu/R12_2/fs2/FMW_Home/jrockit_160_29_D1.2.0-10/jre/lib/i386:/u01/kittu/R12_2/fs2/FMW_Home/jrockit_160_29_D1.2.0-10/jre/../lib/i386:/u01/kittu/R12_2/fs2/FMW_Home/patch_wls1036/profiles/default/native:/u01/kittu/R12_2/fs2/EBSapps/10.1.2/jdk/jre/lib/i386:/u01/kittu/R12_2/fs2/EBSapps/10.1.2/jdk/jre/lib/i386/server:/u01/kittu/R12_2/fs2/EBSapps/10.1.2/jdk/jre/lib/i386/native_threads:/u01/kittu/R12_2/fs2/EBSapps/appl/cz/12.0.0/bin:/u01/kittu/R12_2/fs2/EBSapps/10.1.2/lib32:/u01/kittu/R12_2/fs2/EBSapps/10.1.2/lib:/usr/X11R6/lib:/usr/openwin/lib:/u01/kittu/R12_2/fs2/EBSapps/10.1.2/jdk/jre/lib/i386:/u01/kittu/R12_2/fs2/EBSapps/10.1.2/jdk/jre/lib/i386/server:/u01/kittu/R12_2/fs2/EBSapps/10.1.2/jdk/jre/lib/i386/native_threads:/u01/kittu/R12_2/fs2/EBSapps/appl/sht/12.0.0/lib:/u01/kittu/R12_2/fs2/FMW_Home/wlserver_10.3/server/native/linux/i686:/u01/kittu/R12_2/fs2/FMW_Home/wlserver_10.3/server/native/linux/i686/oci920_8 -Djava.class.path=/u01/kittu/R12_2/fs2/FMW_Home/jrockit_160_29_D1.2.0-10/jre/lib/rt.jar:/u01/kittu/R12_2/fs2/FMW_Home/jrockit_160_29_D1.2.0-10/jre/lib/i18n.jar:/u01/kittu/R12_2/fs2/FMW_Home/patch_wls1036/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/u01/kittu/R12_2/fs2/FMW_Home/jrockit_160_29_D1.2.0-10/lib/tools.jar:/u01/kittu/R12_2/fs2/FMW_Home/wlserver_10.3/server/lib/weblogic_sp.jar:/u01/kittu/R12_2/fs2/FMW_Home/wlserver_10.3/server/lib/weblogic.jar:/u01/kittu/R12_2/fs2/FMW_Home/modules/features/weblogic.server.modules_10.3.6.0.jar:/u01/kittu/R12_2/fs2/FMW_Home/wlserver_10.3/server/lib/webservices.jar:/u01/kittu/R12_2/fs2/FMW_Home/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/u01/kittu/R12_2/fs2/FMW_Home/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:/u01/kittu/R12_2/fs2/FMW_Home/oracle_common/modules/oracle.jdbc_11.1.1/ojdbc6dms.jar:/u01/kittu/R12_2/fs2/FMW_Home/oracle_common/webcenter/modules/oracle.portlet.server_11.1.1/oracle-portlet-api.jar:/u01/kittu/R12_2/fs2/FMW_Home/oracle_common/modules/oracle.jrf_11.1.1/jrf.jar:/u01/kittu/R12_2/fs2/FMW_Home/wlserver_10.3/common/derby/lib/derbyclient.jar:/u01/kittu/R12_2/fs2/FMW_Home/Oracle_EBS-app1/shared-libs/ebs-appsborg/WEB-INF/lib/ebsAppsborgManifest.jar:/u01/kittu/R12_2/fs2/EBSapps/comn/java/classes/oracle/apps/fnd/jar/adall.jar -Dweblogic.system.BootIdentityFile=/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/AdminServer/security/boot.properties -Dweblogic.nodemanager.ServiceEnabled=true -Xms512m -Xmx512m -Djava.security.policy=/u01/kittu/R12_2/fs2/FMW_Home/wlserver_10.3/server/lib/weblogic.policy -Djava.security.egd=file:/dev/./urandom -Dweblogic.ProductionModeEnabled=true -da -Dplatform.home=/u01/kittu/R12_2/fs2/FMW_Home/wlserver_10.3 -Dwls.home=/u01/kittu/R12_2/fs2/FMW_Home/wlserver_10.3/server -Dweblogic.home=/u01/kittu/R12_2/fs2/FMW_Home/wlserver_10.3/server -Dcommon.components.home=/u01/kittu/R12_2/fs2/FMW_Home/oracle_common -Djrf.version=11.1.1 -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger -Ddomain.home=/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu -Djrockit.optfile=/u01/kittu/R12_2/fs2/FMW_Home/oracle_common/modules/oracle.jrf_11.1.1/jrocket_optfile.txt -Doracle.server.config.dir=/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/config/fmwconfig/servers/AdminServer -Doracle.domain.config.dir=/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/config/fmwconfig -Digf.arisidbeans.carmlloc=/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/config/fmwconfig/carml -Digf.arisidstack.home=/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/config/fmwconfig/arisidprovider -Doracle.security.jps.config=/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/config/fmwconfig/jps-config.xml -Doracle.deployed.app.dir=/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/AdminServer/tmp/_WL_user -Doracle.deployed.app.ext=/- -Dweblogic.alternateTypesDirectory=/u01/kittu/R12_2/fs2/FMW_Home/oracle_common/modules/oracle.ossoiap_11.1.1,/u01/kittu/R12_2/fs2/FMW_Home/oracle_common/modules/oracle.oamprovider_11.1.1 -Djava.protocol.handler.pkgs=oracle.mds.net.protocol -Dweblogic.jdbc.remoteEnabled=false -Dportlet.oracle.home=/u01/kittu/R12_2/fs2/FMW_Home/oracle_common -Dem.oracle.home=/u01/kittu/R12_2/fs2/FMW_Home/oracle_common -Dweblogic.management.discover=true -Dwlw.iterativeDev=false -Dwlw.testConsole=false -Dwlw.logErrorsToConsole=false -Dweblogic.ext.dirs=/u01/kittu/R12_2/fs2/FMW_Home/patch_wls1036/profiles/default/sysext_manifest_classpath weblogic.Server
NMProcess: Mar 14, 2013 4:12:50 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Starting WebLogic server with command line: /u01/kittu/R12_2/fs2/FMW_Home/jrockit_160_29_D1.2.0-10/jre/bin/java -Dweblogic.Name=AdminServer -Djava.security.policy=null -Djava.library.path=/usr/java/packages/lib/i386:/u01/kittu/R12_2/fs2/FMW_Home/jrockit_160_29_D1.2.0-10/jre/lib/i386/jrockit:/u01/kittu/R12_2/fs2/FMW_Home/jrockit_160_29_D1.2.0-10/jre/lib/i386:/u01/kittu/R12_2/fs2/FMW_Home/jrockit_160_29_D1.2.0-10/jre/../lib/i386:/u01/kittu/R12_2/fs2/FMW_Home/patch_wls1036/profiles/default/native:/u01/kittu/R12_2/fs2/EBSapps/10.1.2/jdk/jre/lib/i386:/u01/kittu/R12_2/fs2/EBSapps/10.1.2/jdk/jre/lib/i386/server:/u01/kittu/R12_2/fs2/EBSapps/10.1.2/jdk/jre/lib/i386/native_threads:/u01/kittu/R12_2/fs2/EBSapps/appl/cz/12.0.0/bin:/u01/kittu/R12_2/fs2/EBSapps/10.1.2/lib32:/u01/kittu/R12_2/fs2/EBSapps/10.1.2/lib:/usr/X11R6/lib:/usr/openwin/lib:/u01/kittu/R12_2/fs2/EBSapps/10.1.2/jdk/jre/lib/i386:/u01/kittu/R12_2/fs2/EBSapps/10.1.2/jdk/jre/lib/i386/server:/u01/kittu/R12_2/fs2/EBSapps/10.1.2/jdk/jre/lib/i386/native_threads:/u01/kittu/R12_2/fs2/EBSapps/appl/sht/12.0.0/lib:/u01/kittu/R12_2/fs2/FMW_Home/wlserver_10.3/server/native/linux/i686:/u01/kittu/R12_2/fs2/FMW_Home/wlserver_10.3/server/native/linux/i686/oci920_8 -Djava.class.path=/u01/kittu/R12_2/fs2/FMW_Home/jrockit_160_29_D1.2.0-10/jre/lib/rt.jar:/u01/kittu/R12_2/fs2/FMW_Home/jrockit_160_29_D1.2.0-10/jre/lib/i18n.jar:/u01/kittu/R12_2/fs2/FMW_Home/patch_wls1036/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/u01/kittu/R12_2/fs2/FMW_Home/jrockit_160_29_D1.2.0-10/lib/tools.jar:/u01/kittu/R12_2/fs2/FMW_Home/wlserver_10.3/server/lib/weblogic_sp.jar:/u01/kittu/R12_2/fs2/FMW_Home/wlserver_10.3/server/lib/weblogic.jar:/u01/kittu/R12_2/fs2/FMW_Home/modules/features/weblogic.server.modules_10.3.6.0.jar:/u01/kittu/R12_2/fs2/FMW_Home/wlserver_10.3/server/lib/webservices.jar:/u01/kittu/R12_2/fs2/FMW_Home/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/u01/kittu/R12_2/fs2/FMW_Home/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:/u01/kittu/R12_2/fs2/FMW_Home/oracle_common/modules/oracle.jdbc_11.1.1/ojdbc6dms.jar:/u01/kittu/R12_2/fs2/FMW_Home/oracle_common/webcenter/modules/oracle.portlet.server_11.1.1/oracle-portlet-api.jar:/u01/kittu/R12_2/fs2/FMW_Home/oracle_common/modules/oracle.jrf_11.1.1/jrf.jar:/u01/kittu/R12_2/fs2/FMW_Home/wlserver_10.3/common/derby/lib/derbyclient.jar:/u01/kittu/R12_2/fs2/FMW_Home/Oracle_EBS-app1/shared-libs/ebs-appsborg/WEB-INF/lib/ebsAppsborgManifest.jar:/u01/kittu/R12_2/fs2/EBSapps/comn/java/classes/oracle/apps/fnd/jar/adall.jar -Dweblogic.system.BootIdentityFile=/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/AdminServer/security/boot.properties -Dweblogic.nodemanager.ServiceEnabled=true -Xms512m -Xmx512m -Djava.security.policy=/u01/kittu/R12_2/fs2/FMW_Home/wlserver_10.3/server/lib/weblogic.policy -Djava.security.egd=file:/dev/./urandom -Dweblogic.ProductionModeEnabled=true -da -Dplatform.home=/u01/kittu/R12_2/fs2/FMW_Home/wlserver_10.3 -Dwls.home=/u01/kittu/R12_2/fs2/FMW_Home/wlserver_10.3/server -Dweblogic.home=/u01/kittu/R12_2/fs2/FMW_Home/wlserver_10.3/server -Dcommon.components.home=/u01/kittu/R12_2/fs2/FMW_Home/oracle_common -Djrf.version=11.1.1 -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger -Ddomain.home=/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu -Djrockit.optfile=/u01/kittu/R12_2/fs2/FMW_Home/oracle_common/modules/oracle.jrf_11.1.1/jrocket_optfile.txt -Doracle.server.config.dir=/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/config/fmwconfig/servers/AdminServer -Doracle.domain.config.dir=/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/config/fmwconfig -Digf.arisidbeans.carmlloc=/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/config/fmwconfig/carml -Digf.arisidstack.home=/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/config/fmwconfig/arisidprovider -Doracle.security.jps.config=/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/config/fmwconfig/jps-config.xml -Doracle.deployed.app.dir=/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/AdminServer/tmp/_WL_user -Doracle.deployed.app.ext=/- -Dweblogic.alternateTypesDirectory=/u01/kittu/R12_2/fs2/FMW_Home/oracle_common/modules/oracle.ossoiap_11.1.1,/u01/kittu/R12_2/fs2/FMW_Home/oracle_common/modules/oracle.oamprovider_11.1.1 -Djava.protocol.handler.pkgs=oracle.mds.net.protocol -Dweblogic.jdbc.remoteEnabled=false -Dportlet.oracle.home=/u01/kittu/R12_2/fs2/FMW_Home/oracle_common -Dem.oracle.home=/u01/kittu/R12_2/fs2/FMW_Home/oracle_common -Dweblogic.management.discover=true -Dwlw.iterativeDev=false -Dwlw.testConsole=false -Dwlw.logErrorsToConsole=false -Dweblogic.ext.dirs=/u01/kittu/R12_2/fs2/FMW_Home/patch_wls1036/profiles/default/sysext_manifest_classpath weblogic.Server
NMProcess: Mar 14, 2013 4:12:50 AM INFO EBS_domain_kittu AdminServer Working directory is '/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu'
NMProcess: Mar 14, 2013 4:12:50 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Working directory is '/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu'
NMProcess: Mar 14, 2013 4:12:50 AM INFO EBS_domain_kittu AdminServer Rotated server output log to "/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/AdminServer/logs/AdminServer.out00011"
NMProcess: Mar 14, 2013 4:12:50 AM weblogic.nodemanager.server.LogFileRotationUtil log
NMProcess: INFO: Rotated server output log to "/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/AdminServer/logs/AdminServer.out00011"
NMProcess: Mar 14, 2013 4:12:50 AM INFO EBS_domain_kittu AdminServer Server error log also redirected to server log
NMProcess: Mar 14, 2013 4:12:50 AM weblogic.nodemanager.server.LogFileRotationUtil log
NMProcess: INFO: Server error log also redirected to server log
NMProcess: Mar 14, 2013 4:12:50 AM INFO EBS_domain_kittu AdminServer Server output log file is '/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/AdminServer/logs/AdminServer.out'
NMProcess: Mar 14, 2013 4:12:50 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Server output log file is '/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/AdminServer/logs/AdminServer.out'
Refer /u01/kittu/R12_2/fs2/inst/apps/kittu_kasarla01/logs/appl/admin/log/adadminsrvctl.txt for details
adadminsrvctl.sh: exiting with status 0
adadminsrvctl.sh: check the logfile /u01/kittu/R12_2/fs2/inst/apps/kittu_kasarla01/logs/appl/admin/log/adadminsrvctl.txt for more information ...
[applmgr@kasarla01 scripts]$[applmgr@kasarla01 scripts]$ ./adpreclone.pl appsTier
Now run the preclone on patch filesystem
Copyright (c) 2011 Oracle Corporation
Redwood Shores, California, USA
Oracle E-Business Suite Rapid Clone
Version 12.2
adpreclone Version 120.31.12020000.3
Enter the Weblogic AdminServer password :
Checking the status of the Oracle WebLogic Administration Server....
Running perl /u01/kittu/R12_2/fs2/EBSapps/appl/ad/12.0.0/patch/115/bin/adProvisionEBS.pl ebs-get-serverstatus -contextfile=/u01/kittu/R12_2/fs2/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml -servername=AdminServer -promptmsg=hide
The Oracle WebLogic Administration Server is up.
Running:
perl /u01/kittu/R12_2/fs2/EBSapps/appl/ad/12.0.0/bin/adclone.pl java=/u01/kittu/R12_2/fs2/FMW_Home/jrockit_160_29_D1.2.0-10 mode=stage stage=/u01/kittu/R12_2/fs2/EBSapps/comn/clone component=appsTier method= appctx=/u01/kittu/R12_2/fs2/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml showProgress
Beginning application tier Stage - Thu Mar 14 04:23:00 2013
/u01/kittu/R12_2/fs2/FMW_Home/jrockit_160_29_D1.2.0-10/bin/java -Xmx600M -DCONTEXT_VALIDATED=false -Doracle.installer.oui_loc=/oui -classpath /u01/kittu/R12_2/fs2/FMW_Home/webtier/lib/xmlparserv2.jar:/u01/kittu/R12_2/fs2/FMW_Home/webtier/jdbc/lib/ojdbc6.jar:/u01/kittu/R12_2/fs2/EBSapps/comn/java/classes:/u01/kittu/R12_2/fs2/FMW_Home/webtier/oui/jlib/OraInstaller.jar:/u01/kittu/R12_2/fs2/FMW_Home/webtier/oui/jlib/ewt3.jar:/u01/kittu/R12_2/fs2/FMW_Home/webtier/oui/jlib/share.jar:/u01/kittu/R12_2/fs2/FMW_Home/webtier/oui/jlib/srvm.jar:/u01/kittu/R12_2/fs2/FMW_Home/webtier/jlib/ojmisc.jar:/u01/kittu/R12_2/fs2/FMW_Home/wlserver_10.3/server/lib/weblogic.jar:/u01/kittu/R12_2/fs2/FMW_Home/oracle_common/jlib/obfuscatepassword.jar oracle.apps.ad.clone.StageAppsTier -e /u01/kittu/R12_2/fs2/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml -stage /u01/kittu/R12_2/fs2/EBSapps/comn/clone -tmp /tmp -method CUSTOM -showProgress -nopromptmsg
Log file located at /u01/kittu/R12_2/fs2/inst/apps/kittu_kasarla01/admin/log/StageAppsTier_03140423.log
\ 80% completed
\ 20% completed
\ 20% completed
Completed Stage...
Thu Mar 14 05:00:20 2013
[applmgr@kasarla01 scripts]$[applmgr@kasarla01 scripts]$ adadminsrvctl.sh stop
Stop the adminsrvctl on patch filesystem
You are running adadminsrvctl.sh version 120.10.12020000.2
Enter the WebLogic Admin password:
Enter the APPS Schema password:
Stopping WLS Admin Server...
Refer /u01/kittu/R12_2/fs2/inst/apps/kittu_kasarla01/logs/appl/admin/log/adadminsrvctl.txt for details
adadminsrvctl.sh: exiting with status 0
adadminsrvctl.sh: check the logfile /u01/kittu/R12_2/fs2/inst/apps/kittu_kasarla01/logs/appl/admin/log/adadminsrvctl.txt for more information ...
[applmgr@kasarla01 scripts]$[applmgr@kasarla01 appl]$ . APPSkittu_kasarla01.env
go to run filesystem and start the services
[applmgr@kasarla01 appl]$ echo $FILE_EDITION
run
[applmgr@kasarla01 appl]$ cd $ADMIN_SCRIPTS_HOME
[applmgr@kasarla01 scripts]$ adstrtal.sh
You are running adstrtal.sh version 120.24.12020000.6
Enter the APPS username: apps
Enter the APPS password:
Enter the WebLogic Server password:
The logfile for this session is located at /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adstrtal.log
Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/jtffmctl.sh start
Timeout specified in context file: 100 second(s)
script returned:
****************************************************
You are running jtffmctl.sh version 120.3.12020000.4
Validating Fulfillment patch level via /u01/kittu/R12_2/fs1/EBSapps/comn/java/classes
Fulfillment patch level validated.
Starting Fulfillment Server for kittu on port 9327 ...
jtffmctl.sh: exiting with status 0
.end std out.
.end err out.
****************************************************
Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/adopmnctl.sh start
Timeout specified in context file: 100 second(s)
script returned:
****************************************************
You are running adopmnctl.sh version 120.0.12020000.2
Starting Oracle Process Manager (OPMN) ...
adopmnctl.sh: exiting with status 0
adopmnctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adopmnctl.txt for more information ...
.end std out.
.end err out.
****************************************************
Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/adapcctl.sh start
Timeout specified in context file: 100 second(s)
script returned:
****************************************************
You are running adapcctl.sh version 120.0.12020000.2
Starting OPMN managed Oracle HTTP Server (OHS) instance ...
adapcctl.sh: exiting with status 0
adapcctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adapcctl.txt for more information ...
.end std out.
.end err out.
****************************************************
Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/adnodemgrctl.sh start -nopromptmsg
Timeout specified in context file: 100 second(s)
script returned:
****************************************************
You are running adnodemgrctl.sh version 120.11.12020000.4
Calling txkChkEBSDependecies.pl to perform dependency checks for oacore
Perl script txkChkEBSDependecies.pl got executed successfully
Starting the Node Manager...
NMProcess: Mar 14, 2013 5:17:30 AM INFO Loading domains file: /u01/kittu/R12_2/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome1/nodemanager.domains
NMProcess: Mar 14, 2013 5:17:30 AM weblogic.nodemanager.server.NMServerConfig initDomainsMap
NMProcess: INFO: Loading domains file: /u01/kittu/R12_2/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome1/nodemanager.domains
NMProcess: Mar 14, 2013 5:17:30 AM INFO Loaded node manager configuration properties from '/u01/kittu/R12_2/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome1/nodemanager.properties'
NMProcess: Mar 14, 2013 5:17:30 AM weblogic.nodemanager.server.NMServer init
NMProcess: INFO: Loaded node manager configuration properties from '/u01/kittu/R12_2/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome1/nodemanager.properties'
NMProcess: Node manager v10.3
NMProcess:
NMProcess: Configuration settings:
NMProcess:
NMProcess: NodeManagerHome=/u01/kittu/R12_2/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome1
NMProcess: ListenAddress=kasarla01.corporate.ge.com
NMProcess: ListenPort=5583
NMProcess: ListenBacklog=50
NMProcess: SecureListener=false
NMProcess: AuthenticationEnabled=true
NMProcess: NativeVersionEnabled=true
NMProcess: CrashRecoveryEnabled=false
NMProcess: JavaHome=/u01/kittu/R12_2/fs1/FMW_Home/jrockit_160_29_D1.2.0-10
NMProcess: StartScriptEnabled=false
NMProcess: StopScriptEnabled=false
NMProcess: StartScriptName=startWebLogic.sh
NMProcess: StopScriptName=
NMProcess: LogFile=/u01/kittu/R12_2/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome1/nodemanager.log
NMProcess: LogLevel=INFO
NMProcess: LogLimit=0
NMProcess: LogCount=1
NMProcess: LogAppend=true
NMProcess: LogToStderr=true
NMProcess: LogFormatter=weblogic.nodemanager.server.LogFormatter
NMProcess: DomainsFile=/u01/kittu/R12_2/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome1/nodemanager.domains
NMProcess: DomainsFileEnabled=true
NMProcess: StateCheckInterval=500
NMProcess: QuitEnabled=true
NMProcess: UseMACBroadcast=false
NMProcess: DomainRegistrationEnabled=true
NMProcess: DomainsDirRemoteSharingEnabled=false
NMProcess:
NMProcess: Domain name mappings:
NMProcess:
NMProcess: EBS_domain_kittu - /u01/kittu/R12_2/fs1/FMW_Home/user_projects/domains/EBS_domain_kittu
NMProcess:
NMProcess: Mar 14, 2013 5:17:32 AM INFO EBS_domain_kittu AdminServer Startup configuration properties loaded from "/u01/kittu/R12_2/fs1/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/AdminServer/data/nodemanager/startup.properties"
NMProcess: Mar 14, 2013 5:17:32 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Startup configuration properties loaded from "/u01/kittu/R12_2/fs1/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/AdminServer/data/nodemanager/startup.properties"
NMProcess: Mar 14, 2013 5:17:32 AM INFO EBS_domain_kittu forms_server1 Startup configuration properties loaded from "/u01/kittu/R12_2/fs1/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/forms_server1/data/nodemanager/startup.properties"
NMProcess: Mar 14, 2013 5:17:32 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Startup configuration properties loaded from "/u01/kittu/R12_2/fs1/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/forms_server1/data/nodemanager/startup.properties"
NMProcess: Mar 14, 2013 5:17:32 AM INFO EBS_domain_kittu oacore_server1 Startup configuration properties loaded from "/u01/kittu/R12_2/fs1/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/oacore_server1/data/nodemanager/startup.properties"
NMProcess: Mar 14, 2013 5:17:32 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Startup configuration properties loaded from "/u01/kittu/R12_2/fs1/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/oacore_server1/data/nodemanager/startup.properties"
NMProcess: Mar 14, 2013 5:17:32 AM INFO EBS_domain_kittu forms-c4ws_server1 Startup configuration properties loaded from "/u01/kittu/R12_2/fs1/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/forms-c4ws_server1/data/nodemanager/startup.properties"
NMProcess: Mar 14, 2013 5:17:32 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Startup configuration properties loaded from "/u01/kittu/R12_2/fs1/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/forms-c4ws_server1/data/nodemanager/startup.properties"
NMProcess: Mar 14, 2013 5:17:32 AM INFO EBS_domain_kittu oafm_server1 Startup configuration properties loaded from "/u01/kittu/R12_2/fs1/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/oafm_server1/data/nodemanager/startup.properties"
NMProcess: Mar 14, 2013 5:17:32 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Startup configuration properties loaded from "/u01/kittu/R12_2/fs1/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/oafm_server1/data/nodemanager/startup.properties"
NMProcess: Mar 14, 2013 5:17:33 AM INFO Plain socket listener started on port 5583, host kasarla01.corporate.ge.com
NMProcess: Mar 14, 2013 5:17:33 AM weblogic.nodemanager.server.Listener run
NMProcess: INFO: Plain socket listener started on port 5583, host kasarla01.corporate.ge.com
Refer /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adnodemgrctl.txt for details
adnodemgrctl.sh: exiting with status 0
adnodemgrctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adnodemgrctl.txt for more information ...
.end std out.
*** ALL THE FOLLOWING FILES ARE REQUIRED FOR RESOLVING RUNTIME ERRORS
*** Log File = /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/rgf/TXK/txkChkEBSDependecies_Thu_Mar_14_05_16_53_2013/txkChkEBSDependecies_Thu_Mar_14_05_16_53_2013.log
.end err out.
****************************************************
Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/adalnctl.sh start
Timeout specified in context file: 100 second(s)
script returned:
****************************************************
adalnctl.sh version 120.3.12020000.2
Checking for FNDFS executable.
Starting listener process APPS_kittu.
adalnctl.sh: exiting with status 0
adalnctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adalnctl.txt for more information ...
.end std out.
.end err out.
****************************************************
Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/adcmctl.sh start
Timeout specified in context file: 1000 second(s)
script returned:
****************************************************
You are running adcmctl.sh version 120.19.12020000.3
Starting concurrent manager for kittu ...
Starting kittu_0314@kittu Internal Concurrent Manager
Default printer is noprint
adcmctl.sh: exiting with status 0
adcmctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adcmctl.txt for more information ...
.end std out.
.end err out.
****************************************************
Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/adadminsrvctl.sh start -nopromptmsg
Timeout specified in context file: 1000 second(s)
script returned:
****************************************************
You are running adadminsrvctl.sh version 120.10.12020000.2
Starting WLS Admin Server...
Refer /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adadminsrvctl.txt for details
adadminsrvctl.sh: exiting with status 0
adadminsrvctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adadminsrvctl.txt for more information ...
.end std out.
.end err out.
****************************************************
Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/admanagedsrvctl.sh start forms_server1 -nopromptmsg
Timeout specified in context file: -1 second(s)
script returned:
****************************************************
You are running admanagedsrvctl.sh version 120.14.12020000.4
Starting forms_server1...
admanagedsrvctl.sh: exiting with status 0
admanagedsrvctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adformsctl.txt for more information ...
.end std out.
.end err out.
****************************************************
Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/admanagedsrvctl.sh start forms-c4ws_server1 -nopromptmsg
Timeout specified in context file: -1 second(s)
script returned:
****************************************************
You are running admanagedsrvctl.sh version 120.14.12020000.4
Starting forms-c4ws_server1...
admanagedsrvctl.sh: exiting with status 0
admanagedsrvctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adforms-c4wsctl.txt for more information ...
.end std out.
.end err out.
****************************************************
Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/admanagedsrvctl.sh start oafm_server1 -nopromptmsg
Timeout specified in context file: -1 second(s)
script returned:
****************************************************
You are running admanagedsrvctl.sh version 120.14.12020000.4
Starting oafm_server1...
admanagedsrvctl.sh: exiting with status 0
admanagedsrvctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adoafmctl.txt for more information ...
.end std out.
.end err out.
****************************************************
Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/admanagedsrvctl.sh start oacore_server1 -nopromptmsg
Timeout specified in context file: -1 second(s)
script returned:
****************************************************
You are running admanagedsrvctl.sh version 120.14.12020000.4
Starting oacore_server1...
admanagedsrvctl.sh: exiting with status 0
admanagedsrvctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adoacorectl.txt for more information ...
.end std out.
.end err out.
****************************************************
All enabled services for this node are started.
adstrtal.sh: Exiting with status 0
adstrtal.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adstrtal.log for more information ...
You have new mail in /var/spool/mail/applmgr
[applmgr@kasarla01 scripts]$
*******************************************************************************************************
ON NODE 2
*******************************************************************************************************
Set the environment to run edition[applmgr@kasarla02 ~]$ cd /u01/kittu/R12_2/fs1/EBSapps/comn/clone/bin
[kasarlak@kasarla02 ~]$ pbrun su - applmgr
[applmgr@kasarla02 ~]$ export PATH=/u01/kittu/R12_2/fs1/FMW_Home/webtier/perl/bin:$PATH
[applmgr@kasarla02 bin]$ ls
adaddnode.pl adcfgclone.pl adchkutl.sh adclonectx.pl adclone.plPerl lib version (v5.8.8) doesn't match executable version (v5.10.0) at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/Config.pm line 46.
[applmgr@kasarla02 bin]$
/u01/kittu/R12_2/fs1/FMW_Home/webtier/perl/bin/perl ./adclonectx.pl \
addnode contextfile=/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml \
pairsfile=/u01/kittu/R12_2/pairsfiles/run/myrunpairsfile.txt \
outfile=/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla02/appl/admin/kittu_kasarla02.xml
************************ ISSUE *************************************************
Compilation failed in require at ./adclonectx.pl line 30.
BEGIN failed--compilation aborted at ./adclonectx.pl line 30.PERL5LIB=/u01/kittu/R12_2/fs1/FMW_Home/webtier/perl/lib/5.10.0:/u01/kittu/R12_2/fs1/FMW_Home/webtier/perl/lib/site_perl/5.10.0:/u01/kittu/R12_2/fs1/EBSapps/appl/au/12.0.0/perl:/u01/kittu/R12_2/fs1/FMW_Home/webtier/ohs/mod_perl/lib/site_perl/5.10.0/i686-linux-thread-multi
************************ FIX ***************************************************
export PERL5LIBERROR: Could not clone the context file on the new node due to the following exception:
******************************ISSUE ************************************************
AC-00005: No write permissions for creating the Context file - /appl/admin/temp.xml
Raised by oracle.apps.ad.context.AppsContext
ERROR: An error occurred while cloning the context file. Cannot proceed further.[applmgr@kasarla02 R12_2]$ mkdir -p /u01/kittu/R12_2/pairsfiles/run
****************************** FIX ********************************************
[applmgr@kasarla02 R12_2]$ cd /u01/kittu/R12_2/pairsfiles/run
[applmgr@kasarla02 run]$ pwd
/u01/kittu/R12_2/pairsfiles/run
[applmgr@kasarla02 run]$ ls
[applmgr@kasarla02 run]$ cp /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01_run.txt myrunpairsfile.txt
Add instance specific entries in myrunpairsfile.txt
s_temp=/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla02/temp
s_contextname=kittu_kasarla02
s_hostname=kasarla02
s_domainname=krishnareddy.com
s_cphost=kasarla02
s_webhost=kasarla02
s_config_home=/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla02
s_display=kasarla02:0.0
s_forms-c4ws_display=kasarla02:0.0
s_ohs_instance=EBS_web_kittu_OHS1Copyright (c) 2011 Oracle Corporation
Re run the add node command
[applmgr@kasarla02 fs1]$ cd /u01/kittu/R12_2/fs1/EBSapps/comn/clone/bin
[applmgr@kasarla02 bin]$ /u01/kittu/R12_2/fs1/FMW_Home/webtier/perl/bin/perl ./adclonectx.pl \
' addnode contextfile=/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml \
' pairsfile=/u01/kittu/R12_2/pairsfiles/run/myrunpairsfile.txt \
' outfile=/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla02/appl/admin/kittu_kasarla02.xml
Redwood Shores, California, USA
Oracle E-Business Suite Rapid Clone
Version 12.2
adclonectx Version 120.30.12020000.4
Enter the APPS passwd :
Enter the Weblogic AdminServer password :
Running:
perl /u01/kittu/R12_2/fs1/EBSapps/appl/ad/12.0.0/patch/115/bin/adProvisionEBS.pl ebs-create-node -contextfile=/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml -configfile=/u01/kittu/R12_2/pairsfiles/run/myrunpairsfile.txt -machinelistenaddress=kasarla02.krishnareddy.com -logfile=/u01/kittu/R12_2/fs1/EBSapps/comn/clone/bin/EBSProvision.log
stty: standard input: Invalid argument
Enter the APPS Schema password:
stty: standard input: Invalid argument
stty: standard input: Invalid argument
Enter the WebLogic AdminServer password:
stty: standard input: Invalid argument
Log file located at /u01/kittu/R12_2/fs1/EBSapps/comn/clone/bin/EBSProvision.log
Target System Instance Top set to /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla02
Database port is 1548
Report file located at /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla02/admin/out/portpool.lst
Complete port information available at /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla02/admin/out/portpool.lst
Creating the new APPL_TOP Context file from :
/u01/kittu/R12_2/fs1/EBSapps/appl/ad/12.0.0/admin/template/adxmlctx.tmp
The new APPL_TOP context file has been created :
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla02/appl/admin/kittu_kasarla02.xml
Log file located at /u01/kittu/R12_2/fs1/EBSapps/comn/clone/bin/EBSProvision.log
contextfile=/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla02/appl/admin/kittu_kasarla02.xml
NMProcess: 'Mar 15, 2013 1:57:29 AM' 'INFO' 'Loading domains file: /u01/kittu/R12_2/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome2/nodemanager.domains'
NMProcess: Mar 15, 2013 1:57:29 AM weblogic.nodemanager.server.NMServerConfig initDomainsMap
NMProcess: INFO: Loading domains file: /u01/kittu/R12_2/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome2/nodemanager.domains
NMProcess: 'Mar 15, 2013 1:57:30 AM' 'WARNING' 'Node manager configuration properties file '/u01/kittu/R12_2/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome2/nodemanager.properties' not found. Using default settings.'
NMProcess: Mar 15, 2013 1:57:30 AM weblogic.nodemanager.server.NMServer 'init'
NMProcess: WARNING: Node manager configuration properties file '/u01/kittu/R12_2/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome2/nodemanager.properties' not found. Using default settings.
NMProcess: 'Mar 15, 2013 1:57:30 AM' 'INFO' 'Saving node manager configuration properties to '/u01/kittu/R12_2/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome2/nodemanager.properties''
NMProcess: Mar 15, 2013 1:57:30 AM weblogic.nodemanager.server.NMServer 'init'
NMProcess: INFO: Saving node manager configuration properties to '/u01/kittu/R12_2/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome2/nodemanager.properties'
NMProcess: Node manager v10.3
NMProcess:
NMProcess: Configuration settings:
NMProcess:
NMProcess: NodeManagerHome=/u01/kittu/R12_2/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome2
NMProcess: ListenAddress=kasarla02.krishnareddy.com
NMProcess: ListenPort=5583
NMProcess: ListenBacklog=50
NMProcess: SecureListener=false
NMProcess: AuthenticationEnabled=true
NMProcess: NativeVersionEnabled=true
NMProcess: CrashRecoveryEnabled=false
NMProcess: JavaHome=/u01/kittu/R12_2/fs1/FMW_Home/jrockit_160_29_D1.2.0-10/jre
NMProcess: StartScriptEnabled=false
NMProcess: StopScriptEnabled=false
NMProcess: StartScriptName=startWebLogic.sh
NMProcess: StopScriptName=
NMProcess: LogFile=/u01/kittu/R12_2/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome2/nodemanager.log
NMProcess: LogLevel=INFO
NMProcess: LogLimit=0
NMProcess: LogCount=1
NMProcess: LogAppend=true
NMProcess: LogToStderr=true
NMProcess: LogFormatter=weblogic.nodemanager.server.LogFormatter
NMProcess: DomainsFile=/u01/kittu/R12_2/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome2/nodemanager.domains
NMProcess: DomainsFileEnabled=true
NMProcess: StateCheckInterval=500
NMProcess: QuitEnabled=true
NMProcess: UseMACBroadcast=false
NMProcess: DomainRegistrationEnabled=false
NMProcess: DomainsDirRemoteSharingEnabled=false
NMProcess:
NMProcess: Domain name mappings:
NMProcess:
NMProcess: EBS_domain_kittu -' /u01/kittu/R12_2/fs1/FMW_Home/user_projects/domains/EBS_domain_kittu
NMProcess:
NMProcess: 'Mar 15, 2013 1:58:46 AM' 'INFO' 'EBS_domain_kittu' 'AdminServer' 'Startup configuration properties loaded from "/u01/kittu/R12_2/fs1/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/AdminServer/data/nodemanager/startup.properties"'
NMProcess: Mar 15, 2013 1:58:46 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Startup configuration properties loaded from "/u01/kittu/R12_2/fs1/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/AdminServer/data/nodemanager/startup.properties"
NMProcess: 'Mar 15, 2013 1:58:47 AM' 'INFO' 'EBS_domain_kittu' 'forms_server1' 'Startup configuration properties loaded from "/u01/kittu/R12_2/fs1/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/forms_server1/data/nodemanager/startup.properties"'
NMProcess: Mar 15, 2013 1:58:47 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Startup configuration properties loaded from "/u01/kittu/R12_2/fs1/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/forms_server1/data/nodemanager/startup.properties"
NMProcess: 'Mar 15, 2013 1:58:47 AM' 'INFO' 'EBS_domain_kittu' 'oacore_server1' 'Startup configuration properties loaded from "/u01/kittu/R12_2/fs1/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/oacore_server1/data/nodemanager/startup.properties"'
NMProcess: Mar 15, 2013 1:58:47 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Startup configuration properties loaded from "/u01/kittu/R12_2/fs1/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/oacore_server1/data/nodemanager/startup.properties"
NMProcess: 'Mar 15, 2013 1:58:47 AM' 'INFO' 'EBS_domain_kittu' 'forms-c4ws_server1' 'Startup configuration properties loaded from "/u01/kittu/R12_2/fs1/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/forms-c4ws_server1/data/nodemanager/startup.properties"'
NMProcess: Mar 15, 2013 1:58:47 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Startup configuration properties loaded from "/u01/kittu/R12_2/fs1/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/forms-c4ws_server1/data/nodemanager/startup.properties"
NMProcess: 'Mar 15, 2013 1:58:47 AM' 'INFO' 'EBS_domain_kittu' 'oafm_server1' 'Startup configuration properties loaded from "/u01/kittu/R12_2/fs1/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/oafm_server1/data/nodemanager/startup.properties"'
NMProcess: Mar 15, 2013 1:58:47 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Startup configuration properties loaded from "/u01/kittu/R12_2/fs1/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/oafm_server1/data/nodemanager/startup.properties"
NMProcess: 'Mar 15, 2013 1:58:47 AM' 'INFO' 'Plain socket listener started on port 5583, host kasarla02.krishnareddy.com'
NMProcess: Mar 15, 2013 1:58:47 AM weblogic.nodemanager.server.Listener run
NMProcess: INFO: Plain socket listener started on port 5583, host kasarla02.krishnareddy.com
Node kasarla02.krishnareddy.com is added successfully
[applmgr@kasarla02 bin]$Copyright (c) 2011 Oracle Corporation
logout
login
now source the patch filesystem environment
[applmgr@kasarla02 kittu]$ export PATH=/u01/kittu/R12_2/fs2/FMW_Home/webtier/perl/bin:$PATH
[applmgr@kasarla02 kittu]$ PERL5LIB=/u01/kittu/R12_2/fs2/FMW_Home/webtier/perl/lib/5.10.0:/u01/kittu/R12_2/fs2/FMW_Home/webtier/perl/lib/site_perl/5.10.0:/u01/kittu/R12_2/fs2/EBSapps/appl/au/12.0.0/perl:/u01/kittu/R12_2/fs2/FMW_Home/webtier/ohs/mod_perl/lib/site_perl/5.10.0/i686-linux-thread-multi
[applmgr@kasarla02 kittu]$ export PERL5LIB
[applmgr@kasarla02 kittu]$ echo $PERL5LIB
/u01/kittu/R12_2/fs2/FMW_Home/webtier/perl/lib/5.10.0:/u01/kittu/R12_2/fs2/FMW_Home/webtier/perl/lib/site_perl/5.10.0:/u01/kittu/R12_2/fs2/EBSapps/appl/au/12.0.0/perl:/u01/kittu/R12_2/fs2/FMW_Home/webtier/ohs/mod_perl/lib/site_perl/5.10.0/i686-linux-thread-multi
[applmgr@kasarla02 kittu]$ cd /u01/kittu/R12_2/fs2/EBSapps/comn/clone/bin
[applmgr@kasarla02 bin]$ /u01/kittu/R12_2/fs2/FMW_Home/webtier/perl/bin/perl ./adclonectx.pl \
' addnode contextfile=/u01/kittu/R12_2/fs2/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml \
' pairsfile=/u01/kittu/R12_2/pairsfiles/patch/myrunpairsfile.txt \
' outfile=/u01/kittu/R12_2/fs2/inst/apps/kittu_kasarla02/appl/admin/kittu_kasarla02.xml
Redwood Shores, California, USA
Oracle E-Business Suite Rapid Clone
Version 12.2
adclonectx Version 120.30.12020000.4
Enter the APPS passwd :
Enter the Weblogic AdminServer password :
Running:
perl /u01/kittu/R12_2/fs2/EBSapps/appl/ad/12.0.0/patch/115/bin/adProvisionEBS.pl ebs-create-node -contextfile=/u01/kittu/R12_2/fs2/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml -configfile=/u01/kittu/R12_2/pairsfiles/patch/myrunpairsfile.txt -machinelistenaddress=kasarla02.krishnareddy.com -logfile=/u01/kittu/R12_2/fs2/EBSapps/comn/clone/bin/EBSProvision.log
stty: standard input: Invalid argument
Enter the APPS Schema password:
stty: standard input: Invalid argument
stty: standard input: Invalid argument
Enter the WebLogic AdminServer password:
stty: standard input: Invalid argument
ERROR: add node failed ! !!!
Logfile location /u01/kittu/R12_2/fs2/EBSapps/comn/clone/bin/EBSProvision.log
[applmgr@kasarla02 bin]$ERROR: add node failed ! !!!
**************************ISSUE *************************************************
Logfile location /u01/kittu/R12_2/fs2/EBSapps/comn/clone/bin/EBSProvision.log
Validated the passed arguments for the option ebs-create-node
AdminServer is currently not running.
ERROR: The AdminServer does not seem to be up. The AdminServer should be started up before addition of node.[applmgr@kasarla01 scripts]$ adstpall.sh apps/cc04ld
************************* FIX ****************************************************
You are running adstpall.sh version 120.22.12020000.5
Enter the WebLogic Server password:
The logfile for this session is located at /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adstpall.log
Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/adapcctl.sh stop
Timeout specified in context file: 100 second(s)
script returned:
****************************************************
You are running adapcctl.sh version 120.0.12020000.2
Stopping OPMN managed Oracle HTTP Server (OHS) instance ...
adapcctl.sh: exiting with status 0
adapcctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adapcctl.txt for more information ...
.end std out.
.end err out.
****************************************************
Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/adcmctl.sh stop
Timeout specified in context file: 1000 second(s)
script returned:
****************************************************
You are running adcmctl.sh version 120.19.12020000.3
Shutting down concurrent managers for kittu ...
ORACLE Password:
Submitted request 1786692 for CONCURRENT FND SHUTDOWN
adcmctl.sh: exiting with status 0
adcmctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adcmctl.txt for more information ...
.end std out.
.end err out.
****************************************************
Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/jtffmctl.sh stop
Timeout specified in context file: 100 second(s)
script returned:
****************************************************
You are running jtffmctl.sh version 120.3.12020000.4
Shutting down Fulfillment Server for kittu on port 9327 ...
jtffmctl.sh: exiting with status 0
.end std out.
.end err out.
****************************************************
Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/adopmnctl.sh stop
Timeout specified in context file: 100 second(s)
script returned:
****************************************************
You are running adopmnctl.sh version 120.0.12020000.2
Stopping Oracle Process Manager (OPMN) and the managed processes ...
adopmnctl.sh: exiting with status 0
adopmnctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adopmnctl.txt for more information ...
.end std out.
.end err out.
****************************************************
Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/admanagedsrvctl.sh abort forms-c4ws_server1 -nopromptmsg
Timeout specified in context file: -1 second(s)
script returned:
****************************************************
You are running admanagedsrvctl.sh version 120.14.12020000.4
Stopping forms-c4ws_server1...
.Refer /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adforms-c4wsctl.txt for details
admanagedsrvctl.sh: exiting with status 0
admanagedsrvctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adforms-c4wsctl.txt for more information ...
.end std out.
WARNING - Unable to create log file '/u01/kittu/R12_2/fs1/FMW_Home/modules/../logs/wlst_20130315022026.log'.
.end err out.
****************************************************
Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/admanagedsrvctl.sh abort forms_server1 -nopromptmsg
Timeout specified in context file: -1 second(s)
script returned:
****************************************************
You are running admanagedsrvctl.sh version 120.14.12020000.4
Stopping forms_server1...
.Refer /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adformsctl.txt for details
admanagedsrvctl.sh: exiting with status 0
admanagedsrvctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adformsctl.txt for more information ...
.end std out.
.end err out.
****************************************************
Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/admanagedsrvctl.sh abort oafm_server1 -nopromptmsg
Timeout specified in context file: -1 second(s)
script returned:
****************************************************
You are running admanagedsrvctl.sh version 120.14.12020000.4
Stopping oafm_server1...
.Refer /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adoafmctl.txt for details
admanagedsrvctl.sh: exiting with status 0
admanagedsrvctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adoafmctl.txt for more information ...
.end std out.
.end err out.
****************************************************
Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/admanagedsrvctl.sh abort oacore_server1 -nopromptmsg
Timeout specified in context file: -1 second(s)
script returned:
****************************************************
You are running admanagedsrvctl.sh version 120.14.12020000.4
Stopping oacore_server1...
...Refer /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adoacorectl.txt for details
admanagedsrvctl.sh: exiting with status 0
admanagedsrvctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adoacorectl.txt for more information ...
.end std out.
.end err out.
****************************************************
Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/adalnctl.sh stop
Timeout specified in context file: 100 second(s)
script returned:
****************************************************
adalnctl.sh version 120.3.12020000.2
Shutting down listener process APPS_kittu.
adalnctl.sh: exiting with status 0
adalnctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adalnctl.txt for more information ...
.end std out.
.end err out.
****************************************************
Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/adadminsrvctl.sh stop -nopromptmsg
Timeout specified in context file: 1000 second(s)
script returned:
****************************************************
You are running adadminsrvctl.sh version 120.10.12020000.2
Stopping WLS Admin Server...
Refer /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adadminsrvctl.txt for details
adadminsrvctl.sh: exiting with status 0
adadminsrvctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adadminsrvctl.txt for more information ...
.end std out.
.end err out.
****************************************************
Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/adnodemgrctl.sh stop -nopromptmsg
Timeout specified in context file: 100 second(s)
script returned:
****************************************************
You are running adnodemgrctl.sh version 120.11.12020000.4
adnodemgrctl.sh: exiting with status 0
adnodemgrctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adnodemgrctl.txt for more information ...
.end std out.
.end err out.
****************************************************
All enabled services on this node are stopped.
adstpall.sh:Exiting with status 0
adstpall.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adstpall.log for more information ...
[applmgr@kasarla01 scripts]$Copyright (c) 2011 Oracle Corporation
start the adadminsrvctl.sh on fs2 on node 1
[kasarlak@kasarla02 ~]$ pbrun su - applmgr
[applmgr@kasarla02 ~]$ export PATH=/u01/kittu/R12_2/fs2/FMW_Home/webtier/perl/bin:$PATH
[applmgr@kasarla02 ~]$ PERL5LIB=/u01/kittu/R12_2/fs2/FMW_Home/webtier/perl/lib/5.10.0:/u01/kittu/R12_2/fs2/FMW_Home/webtier/perl/lib/site_perl/5.10.0:/u01/kittu/R12_2/fs2/EBSapps/appl/au/12.0.0/perl:/u01/kittu/R12_2/fs2/FMW_Home/webtier/ohs/mod_perl/lib/site_perl/5.10.0/i686-linux-thread-multi
[applmgr@kasarla02 ~]$ export PERL5LIB
[applmgr@kasarla02 ~]$ echo $PERL5LIB
/u01/kittu/R12_2/fs2/FMW_Home/webtier/perl/lib/5.10.0:/u01/kittu/R12_2/fs2/FMW_Home/webtier/perl/lib/site_perl/5.10.0:/u01/kittu/R12_2/fs2/EBSapps/appl/au/12.0.0/perl:/u01/kittu/R12_2/fs2/FMW_Home/webtier/ohs/mod_perl/lib/site_perl/5.10.0/i686-linux-thread-multi
[applmgr@kasarla02 ~]$ cd /u01/kittu/R12_2/fs2/EBSapps/comn/clone/bin
[applmgr@kasarla02 bin]$ /u01/kittu/R12_2/fs2/FMW_Home/webtier/perl/bin/perl ./adclonectx.pl \
' addnode contextfile=/u01/kittu/R12_2/fs2/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml \
' pairsfile=/u01/kittu/R12_2/pairsfiles/patch/myrunpairsfile.txt \
' outfile=/u01/kittu/R12_2/fs2/inst/apps/kittu_kasarla02/appl/admin/kittu_kasarla02.xml
Redwood Shores, California, USA
Oracle E-Business Suite Rapid Clone
Version 12.2
adclonectx Version 120.30.12020000.4
Enter the APPS passwd :
Enter the Weblogic AdminServer password :
Running:
perl /u01/kittu/R12_2/fs2/EBSapps/appl/ad/12.0.0/patch/115/bin/adProvisionEBS.pl ebs-create-node -contextfile=/u01/kittu/R12_2/fs2/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml -configfile=/u01/kittu/R12_2/pairsfiles/patch/myrunpairsfile.txt -machinelistenaddress=kasarla02.krishnareddy.com -logfile=/u01/kittu/R12_2/fs2/EBSapps/comn/clone/bin/EBSProvision.log
stty: standard input: Invalid argument
Enter the APPS Schema password:
stty: standard input: Invalid argument
stty: standard input: Invalid argument
Enter the WebLogic AdminServer password:
stty: standard input: Invalid argument
AC-10006: Exception - java.io.FileNotFoundException: /u01/kittu/R12_2/fs2/inst/apps/kittu_kasarla02/appl/admin/kittu_kasarla02.xml (No such file or directory) thrown while creating OAVars object for file: /u01/kittu/R12_2/fs2/inst/apps/kittu_kasarla02/appl/admin/kittu_kasarla02.xml
ERROR: add node failed ! !!!
Logfile location /u01/kittu/R12_2/fs2/EBSapps/comn/clone/bin/EBSProvision.log
[applmgr@kasarla02 bin]$[applmgr@kasarla02 bin]$ tail -45 /u01/kittu/R12_2/fs2/EBSapps/comn/clone/bin/EBSProvision.log
************************ISSUE *****************************************************
Checking OC4J RMI Port Range for Forms-c4ws on kasarla02: Port Value = 27639
OC4J RMI Port Range for Forms-c4ws available: Port Value = 27639
ERROR: Portpool 27 is not free. Please specify another port pool number.
ERROR: An error occurred while cloning the context file. Cannot proceed further.
---------------------------------------------------------------
ADX Database Utility
---------------------------------------------------------------
getConnectionUsingAppsJDBCConnector() --'
APPS_JDBC_URL='null'
Trying to get connection using SID based connect descriptor
getConnection() --'
sDbHost : null
sDbDomain : null
sDbPort : null
sDbSid : null
sDbUser : null
Trying to connect using SID...
getConnectionUsingSID() --'
JDBC URL: jdbc:oracle:thin:@null:null:null
Exception occurred: java.sql.SQLRecoverableException: IO Error: Invalid number format for port number
Trying to connect using SID as ServiceName
getConnectionUsingServiceName() --'
JDBC URL: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=null)(PORT=null))(CONNECT_DATA=(SERVICE_NAME=null)))
Exception occurred: java.sql.SQLRecoverableException: IO Error: The Network Adapter could not establish the connection
Connection could not be obtained; returning null
-------------------ADX Database Utility Finished---------------
Could not obtain the Database connection due to the following exception:
StackTrace:
java.lang.NullPointerException
at oracle.apps.ad.util.ACUtil.setLogonTrigger(ACUtil.java:492)
at oracle.apps.ad.tools.configuration.EBSProvisioner.ebs_create_node(EBSProvisioner.java:646)
at oracle.apps.ad.tools.configuration.EBSProvisioner.ebs_create_node(EBSProvisioner.java:804)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at oracle.apps.ad.tools.configuration.EBSProvisioner.main(EBSProvisioner.java:5031)
Could not enable the EBS_LOGON trigger.
[applmgr@kasarla02 bin]$[applmgr@kasarla02 ~]$ cat .bash_profile
*********************************FIX*****************************************************
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
#. /u01/kittu/applmgr/appl/APPSkittu_kasarla02.env
#. /u01/kittu/applmgr/appl/APPSkittu_kasarla02v.env
. /u01/kittu/applmgr/appl/APPSkittu_kasarla02.env
[applmgr@kasarla02 ~]$[applmgr@kasarla02 ~]$ cat .bash_profile
Commented last line
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
#. /u01/kittu/applmgr/appl/APPSkittu_kasarla02.env
#. /u01/kittu/applmgr/appl/APPSkittu_kasarla02v.env
#. /u01/kittu/applmgr/appl/APPSkittu_kasarla02.env
[applmgr@kasarla02 ~]$Copyright (c) 2011 Oracle Corporation
Re run the addnode on node2 patch filesystem
[applmgr@kasarla02 ~]$ export PATH=/u01/kittu/R12_2/fs2/FMW_Home/webtier/perl/bin:$PATH
[applmgr@kasarla02 ~]$ PERL5LIB=/u01/kittu/R12_2/fs2/FMW_Home/webtier/perl/lib/5.10.0:/u01/kittu/R12_2/fs2/FMW_Home/webtier/perl/lib/site_perl/5.10.0:/u01/kittu/R12_2/fs2/EBSapps/appl/au/12.0.0/perl:/u01/kittu/R12_2/fs2/FMW_Home/webtier/ohs/mod_perl/lib/site_perl/5.10.0/i686-linux-thread-multi
[applmgr@kasarla02 ~]$ export PERL5LIB
[applmgr@kasarla02 ~]$ cd /u01/kittu/R12_2/fs2/EBSapps/comn/clone/bin
[applmgr@kasarla02 bin]$ /u01/kittu/R12_2/fs2/FMW_Home/webtier/perl/bin/perl ./adclonectx.pl \
' addnode contextfile=/u01/kittu/R12_2/fs2/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml \
' pairsfile=/u01/kittu/R12_2/pairsfiles/patch/myrunpairsfile.txt \
' outfile=/u01/kittu/R12_2/fs2/inst/apps/kittu_kasarla02/appl/admin/kittu_kasarla02.xml
Redwood Shores, California, USA
Oracle E-Business Suite Rapid Clone
Version 12.2
adclonectx Version 120.30.12020000.4
Enter the APPS passwd :
Enter the Weblogic AdminServer password :
Running:
perl /u01/kittu/R12_2/fs2/EBSapps/appl/ad/12.0.0/patch/115/bin/adProvisionEBS.pl ebs-create-node -contextfile=/u01/kittu/R12_2/fs2/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml -configfile=/u01/kittu/R12_2/pairsfiles/patch/myrunpairsfile.txt -machinelistenaddress=kasarla02.krishnareddy.com -logfile=/u01/kittu/R12_2/fs2/EBSapps/comn/clone/bin/EBSProvision.log
stty: standard input: Invalid argument
Enter the APPS Schema password:
stty: standard input: Invalid argument
stty: standard input: Invalid argument
Enter the WebLogic AdminServer password:
stty: standard input: Invalid argument
Log file located at /u01/kittu/R12_2/fs2/EBSapps/comn/clone/bin/EBSProvision.log
Target System Instance Top set to /u01/kittu/R12_2/fs2/inst/apps/kittu_kasarla02
Database port is 1548
Report file located at /u01/kittu/R12_2/fs2/inst/apps/kittu_kasarla02/admin/out/portpool.lst
Complete port information available at /u01/kittu/R12_2/fs2/inst/apps/kittu_kasarla02/admin/out/portpool.lst
Creating the new APPL_TOP Context file from :
/u01/kittu/R12_2/fs2/EBSapps/appl/ad/12.0.0/admin/template/adxmlctx.tmp
The new APPL_TOP context file has been created :
/u01/kittu/R12_2/fs2/inst/apps/kittu_kasarla02/appl/admin/kittu_kasarla02.xml
Log file located at /u01/kittu/R12_2/fs2/EBSapps/comn/clone/bin/EBSProvision.log
contextfile=/u01/kittu/R12_2/fs2/inst/apps/kittu_kasarla02/appl/admin/kittu_kasarla02.xml
NMProcess: 'Mar 15, 2013 3:19:12 AM' 'INFO' 'Loading domains file: /u01/kittu/R12_2/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome3/nodemanager.domains'
NMProcess: Mar 15, 2013 3:19:12 AM weblogic.nodemanager.server.NMServerConfig initDomainsMap
NMProcess: INFO: Loading domains file: /u01/kittu/R12_2/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome3/nodemanager.domains
NMProcess: 'Mar 15, 2013 3:19:12 AM' 'WARNING' 'Node manager configuration properties file '/u01/kittu/R12_2/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome3/nodemanager.properties' not found. Using default settings.'
NMProcess: Mar 15, 2013 3:19:12 AM weblogic.nodemanager.server.NMServer 'init'
NMProcess: WARNING: Node manager configuration properties file '/u01/kittu/R12_2/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome3/nodemanager.properties' not found. Using default settings.
NMProcess: 'Mar 15, 2013 3:19:12 AM' 'INFO' 'Saving node manager configuration properties to '/u01/kittu/R12_2/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome3/nodemanager.properties''
NMProcess: Mar 15, 2013 3:19:12 AM weblogic.nodemanager.server.NMServer 'init'
NMProcess: INFO: Saving node manager configuration properties to '/u01/kittu/R12_2/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome3/nodemanager.properties'
NMProcess: Node manager v10.3
NMProcess:
NMProcess: Configuration settings:
NMProcess:
NMProcess: NodeManagerHome=/u01/kittu/R12_2/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome3
NMProcess: ListenAddress=kasarla02.krishnareddy.com
NMProcess: ListenPort=5583
NMProcess: ListenBacklog=50
NMProcess: SecureListener=false
NMProcess: AuthenticationEnabled=true
NMProcess: NativeVersionEnabled=true
NMProcess: CrashRecoveryEnabled=false
NMProcess: JavaHome=/u01/kittu/R12_2/fs2/FMW_Home/jrockit_160_29_D1.2.0-10/jre
NMProcess: StartScriptEnabled=false
NMProcess: StopScriptEnabled=false
NMProcess: StartScriptName=startWebLogic.sh
NMProcess: StopScriptName=
NMProcess: LogFile=/u01/kittu/R12_2/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome3/nodemanager.log
NMProcess: LogLevel=INFO
NMProcess: LogLimit=0
NMProcess: LogCount=1
NMProcess: LogAppend=true
NMProcess: LogToStderr=true
NMProcess: LogFormatter=weblogic.nodemanager.server.LogFormatter
NMProcess: DomainsFile=/u01/kittu/R12_2/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome3/nodemanager.domains
NMProcess: DomainsFileEnabled=true
NMProcess: StateCheckInterval=500
NMProcess: QuitEnabled=true
NMProcess: UseMACBroadcast=false
NMProcess: DomainRegistrationEnabled=false
NMProcess: DomainsDirRemoteSharingEnabled=false
NMProcess:
NMProcess: Domain name mappings:
NMProcess:
NMProcess: EBS_domain_kittu -' /u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu
NMProcess:
NMProcess: 'Mar 15, 2013 3:20:24 AM' 'INFO' 'EBS_domain_kittu' 'AdminServer' 'Startup configuration properties loaded from "/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/AdminServer/data/nodemanager/startup.properties"'
NMProcess: Mar 15, 2013 3:20:24 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Startup configuration properties loaded from "/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/AdminServer/data/nodemanager/startup.properties"
NMProcess: 'Mar 15, 2013 3:20:24 AM' 'INFO' 'EBS_domain_kittu' 'oacore_server1' 'Startup configuration properties loaded from "/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/oacore_server1/data/nodemanager/startup.properties"'
NMProcess: Mar 15, 2013 3:20:24 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Startup configuration properties loaded from "/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/oacore_server1/data/nodemanager/startup.properties"
NMProcess: 'Mar 15, 2013 3:20:24 AM' 'INFO' 'EBS_domain_kittu' 'forms_server1' 'Startup configuration properties loaded from "/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/forms_server1/data/nodemanager/startup.properties"'
NMProcess: Mar 15, 2013 3:20:24 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Startup configuration properties loaded from "/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/forms_server1/data/nodemanager/startup.properties"
NMProcess: 'Mar 15, 2013 3:20:24 AM' 'INFO' 'EBS_domain_kittu' 'oafm_server1' 'Startup configuration properties loaded from "/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/oafm_server1/data/nodemanager/startup.properties"'
NMProcess: Mar 15, 2013 3:20:24 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Startup configuration properties loaded from "/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/oafm_server1/data/nodemanager/startup.properties"
NMProcess: 'Mar 15, 2013 3:20:24 AM' 'INFO' 'EBS_domain_kittu' 'forms-c4ws_server1' 'Startup configuration properties loaded from "/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/forms-c4ws_server1/data/nodemanager/startup.properties"'
NMProcess: Mar 15, 2013 3:20:24 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Startup configuration properties loaded from "/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/forms-c4ws_server1/data/nodemanager/startup.properties"
NMProcess: 'Mar 15, 2013 3:20:24 AM' 'INFO' 'Plain socket listener started on port 5583, host kasarla02.krishnareddy.com'
NMProcess: Mar 15, 2013 3:20:24 AM weblogic.nodemanager.server.Listener run
NMProcess: INFO: Plain socket listener started on port 5583, host kasarla02.krishnareddy.com
Node kasarla02.krishnareddy.com is added successfully
[applmgr@kasarla02 bin]$
Start the services on both the nodes and do the health check
Single to RAC DB conversion (2 nodes)
Single instance database with ASM file system
kasarla01[kittu1]_oracle> srvctl status database -d kittu
Instance kittu is running on node kasarla01
kasarla01[kittu1]_oracle>
SQL> select INSTANCE_NAME,VERSION,STATUS from gv$instance;
INSTANCE_NAME VERSION STATUS
—————- —————– ————
kittu1 11.2.0.3.0 OPEN
Check the files of single instance
SQL> select name from v$controlfile;
NAME
————————————————————————————————————-
+ERPD_REDOA_VG/kittu/control/control01.ctl
+ERPD_REDOB_VG/kittu/control/control02.ctl
SQL> select name from v$datafile;
NAME
————————————————————————————————————–
+KITTU_VG/kittu/datafile/system01.dbf
+KITTU_VG/kittu/datafile/sysaux01.dbf
+KITTU_VG/kittu/datafile/undotbs01.dbf
+KITTU_VG/kittu/datafile/user01.dbf
SQL> select member from v$logfile;
MEMBER
—————————————————————————————————————–
+ERPD_REDOA_VG/kittu/redo/redot1gr1a.log
+ERPD_REDOA_VG/kittu/redo/redot1gr2a.log
+ERPD_REDOA_VG/kittu/redo/redot1gr3a.log
SQL> select FILE_NAME from dba_temp_files;
FILE_NAME
——————————————————————————————————————-
+KITTU_VG/kittu/datafile/temp01.dbf
SQL> archive log list;
Database log mode Archive Mode
Automatic archival Enabled
Archive destination +ERPD_ARCH_VG/kittu
Oldest online log sequence 68
Next log sequence to archive 70
Current log sequence 70
SQL> col COMP_NAME for a40
SQL> select COMP_NAME,VERSION,STATUS from dba_registry;
COMP_NAME VERSION STATUS
—————————————- —————————— ——————————————–
OWB 11.2.0.3.0 VALID
Oracle Application Express 3.2.1.00.12 VALID
Oracle Enterprise Manager 11.2.0.3.0 VALID
OLAP Catalog 11.2.0.3.0 VALID
Spatial 11.2.0.3.0 VALID
Oracle Multimedia 11.2.0.3.0 VALID
Oracle XML Database 11.2.0.3.0 VALID
Oracle Text 11.2.0.3.0 VALID
Oracle Expression Filter 11.2.0.3.0 VALID
Oracle Rules Manager 11.2.0.3.0 VALID
Oracle Workspace Manager 11.2.0.3.0 VALID
Oracle Database Catalog Views 11.2.0.3.0 VALID
Oracle Database Packages and Types 11.2.0.3.0 VALID
JServer JAVA Virtual Machine 11.2.0.3.0 VALID
Oracle XDK 11.2.0.3.0 VALID
Oracle Database Java Packages 11.2.0.3.0 VALID
OLAP Analytic Workspace 11.2.0.3.0 VALID
Oracle OLAP API 11.2.0.3.0 VALID
18 rows selected.
SQL>
Remove the single database instance from srvctl
kasarla01[kittu1]_oracle> srvctl status database -d kittu
Instance kittu1 is running on node kasarla01
kasarla01[kittu1]_oracle> srvctl stop database -d kittu
kasarla01[kittu1]_oracle> srvctl status database -d kittu
Instance kittu1 is not running on node kasarla01
kasarla01[kittu1]_oracle> srvctl remove database -d kittu
Remove the database kittu? (y/[n]) y
kasarla01[kittu1]_oracle> srvctl config database -d kittu
PRCD-1120 : The resource for database kittu could not be found.
PRCR-1001 : Resource ora.kittu.db does not exist
Start the single instance database manually
kasarla01[kittu1]_oracle> sqlplus ‘/as sysdba’
SQL*Plus: Release 11.2.0.3.0 Production on Wed Mar 6 03:53:27 2013
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 5177708544 bytes
Fixed Size 2237368 bytes
Variable Size 2751466568 bytes
Database Buffers 2415919104 bytes
Redo Buffers 8085504 bytes
Database mounted.
Database opened.
Create undo tablespace
SQL> create UNDO tablespace UNDOTBS2 datafile ‘+KITTU_VG/kittu/datafile/undotbs02.dbf’ size 1024m;
Tablespace created.
SQL>
Create redo logfile
SQL> select GROUP#,THREAD#,MEMBERS,STATUS from gv$log;
GROUP# THREAD# MEMBERS STATUS
———- ———- ———- —————-
1 1 1 CURRENT
2 1 1 INACTIVE
3 1 1 INACTIVE
SQL> alter database add logfile thread 2 group 4 (‘+ERPD_REDOB_VG/kittu/redo/redot2gr1b.log’) SIZE 250M;
Database altered.
SQL> alter database add logfile thread 2 group 5 (‘+ERPD_REDOB_VG/kittu/redo/redot2gr2b.log’) SIZE 250M;
Database altered.
SQL> alter database add logfile thread 2 group 6 (‘+ERPD_REDOB_VG/kittu/redo/redot2gr3b.log’) SIZE 250M;
Database altered.
SQL> alter database enable public thread 2;
Database altered.
SQL> select GROUP#,THREAD#,MEMBERS,STATUS from gv$log;
GROUP# THREAD# MEMBERS STATUS
———- ———- ———- —————-
1 1 1 CURRENT
2 1 1 INACTIVE
3 1 1 INACTIVE
4 2 1 UNUSED
5 2 1 UNUSED
6 2 1 UNUSED
6 rows selected.
SQL>
Run the clustar script
SQL> @$ORACLE_HOME/rdbms/admin/catclust.sql
Package created.
Package body created.
PL/SQL procedure successfully completed.
View created.
Synonym created.
Grant succeeded.
View created.
Grant succeeded.
Synonym created.
View created.
Grant succeeded.
Synonym created.
View created.
Grant succeeded.
Synonym created.
View created.
Grant succeeded.
Synonym created.
View created.
Grant succeeded.
Synonym created.
View created.
Grant succeeded.
Synonym created.
View created.
Grant succeeded.
Synonym created.
View created.
Grant succeeded.
View created.
Grant succeeded.
Synonym created.
Synonym created.
Synonym created.
Synonym created.
Synonym created.
Synonym created.
Synonym created.
Synonym created.
Synonym created.
Synonym created.
Synonym created.
Synonym created.
View created.
Grant succeeded.
Synonym created.
View created.
Grant succeeded.
Synonym created.
PL/SQL procedure successfully completed.
SQL>
Create a pfile
SQL> create pfile=’/tmp/kittu.ora’ from spfile;
File created.
SQL>
kittu.__db_cache_size=2432696320
kittu1.__db_cache_size=2432696320
kittu.__java_pool_size=16777216
kittu1.__java_pool_size=16777216
kittu.__large_pool_size=16777216
kittu1.__large_pool_size=16777216
kittu1.__oracle_base=’/kittu/oracle/oracle_base’#ORACLE_BASE set from environment
kittu.__pga_aggregate_target=2080374784
kittu1.__pga_aggregate_target=2080374784
kittu.__sga_target=3120562176
kittu1.__sga_target=3120562176
kittu.__shared_io_pool_size=0
kittu1.__shared_io_pool_size=0
kittu.__shared_pool_size=620756992
kittu1.__shared_pool_size=620756992
kittu.__streams_pool_size=0
kittu1.__streams_pool_size=0
*.audit_file_dest=’/kittu/oracle/oracle_base/admin/kittu/adump’
*.audit_trail=’db’
*.compatible=’11.2.0.0.0′
*.control_files=’+ERPD_REDOA_VG/kittu/control/control01.ctl’,’+ERPD_REDOB_VG/kittu/control/control02.ctl’
*.db_block_size=8192
*.db_domain=’krishnareddy.com’
*.db_name=’kittu’
*.diagnostic_dest=’/kittu/oracle/oracle_base’
*.dispatchers='(PROTOCOL=TCP) (SERVICE=kittuXDB)’
*.log_archive_dest_1=’LOCATION=+ERPD_ARCH_VG/kittu’
*.log_archive_format=’%t_%s_%r.dbf’
*.memory_target=5189402624
*.open_cursors=300
*.processes=500
*.remote_login_passwordfile=’EXCLUSIVE’
*.sessions=555
*.undo_tablespace=’UNDOTBS1′
—————-> remove this entry
##############ADD THE FOLLOWING LINES IN /tmp/kittu.ora file ######################
*.cluster_database = TRUE
*.cluster_database_instances = 2
*.undo_management=AUTO
kittu1.instance_name=kittu1
kittu1.instance_number=1
kittu1.thread=1
kittu1.undo_tablespace=UNDOTBS1
kittu2.instance_name=kittu2
kittu2.instance_number=2
kittu2.thread=2
kittu2.undo_tablespace=UNDOTBS2
#####################################################################################
Create spfile from updated pfile
SQL> create SPFILE=’+KITTU_VG/kittu/spfilekittu.ora’ from pfile=’/tmp/kittu.ora’;
File created.
SQL>
Create a init file in second node
kasarla02[kittu2]_oracle> cat initkittu2.ora
SPFILE=’+KITTU_VG/kittu/spfilekittu.ora’
kasarla02[kittu2]_oracle>
Create the TNS admin direcoty on both nodes
kasarla01[kittu1]_oracle> echo $TNS_ADMIN
/kittu/oracle/kittudb/11.2.0.3/network/admin/kittu1_kasarla01
kasarla01[kittu1]_oracle> mkdir -p /kittu/oracle/kittudb/11.2.0.3/network/admin/kittu1_kasarla01
kasarla02[kittu2]_oracle> echo $TNS_ADMIN
/kittu/oracle/kittudb/11.2.0.3/network/admin/kittu2_kasarla02
kasarla02[kittu2]_oracle> mkdir -p /kittu/oracle/kittudb/11.2.0.3/network/admin/kittu2_kasarla02
Create the audit file directory on 2nd node
kasarla02[kittu2]_oracle> mkdir -p /kittu/oracle/oracle_base/admin/kittu/adump
Check the scan ip and port number
kasarla01[kittu1]_oracle> srvctl config scan
SCAN name: erpd-scan.krishnareddy.com, Network: 1/1.2.3.4/255.255.252.0/bond0
SCAN VIP name: scan1, IP: /erpd-scan.krishnareddy.com/1.2.3.36
SCAN VIP name: scan2, IP: /erpd-scan.krishnareddy.com/1.2.3.35
SCAN VIP name: scan3, IP: /erpd-scan.krishnareddy.com/1.2.3.34
kasarla01[kittu1]_oracle> srvctl config scan_listener
SCAN Listener LISTENER_SCAN1 exists. Port: TCP:1525
SCAN Listener LISTENER_SCAN2 exists. Port: TCP:1525
SCAN Listener LISTENER_SCAN3 exists. Port: TCP:1525
kasarla01[kittu1]_oracle>
Add the following line in tnsnames.ora file in both nodes
kittu=(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = erpd-scan.krishnareddy.com)(PORT = 1525))) (CONNECT_DATA = (SERVICE_NAME = kittu)))
test the connection in both nodes
kasarla01[kittu1]_oracle> tnsping kittu
TNS Ping Utility for Linux: Version 11.2.0.3.0 – Production on 06-MAR-2013 02:16:17
Copyright (c) 1997, 2011, Oracle. All rights reserved.
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = erpd-scan.krishnareddy.com)(PORT = 1525))) (CONNECT_DATA = (SERVICE_NAME = kittu)))
OK (0 msec)
kasarla01[kittu1]_oracle>
kasarla02[kittu2]_oracle> tnsping kittu
TNS Ping Utility for Linux: Version 11.2.0.3.0 – Production on 06-MAR-2013 02:17:03
Copyright (c) 1997, 2011, Oracle. All rights reserved.
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = erpd-scan.krishnareddy.com)(PORT = 1525))) (CONNECT_DATA = (SERVICE_NAME = kittu)))
OK (0 msec)
kasarla02[kittu2]_oracle> cat tnsnames.ora
kittu=(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = erpd-scan.krishnareddy.com)(PORT = 1525))) (CONNECT_DATA = (SERVICE_NAME = kittu)))
kasarla02[kittu2]_oracle>
Configure listeners
–using Netca from Grid Home
Now configure Remote and local Listeners
SQL> alter system set remote_listener=”erpd-scan.krishnareddy.com:1525″ scope=both sid=’*’;
System altered.
SQL> alter system set local_listener='(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=kasarla01-vip.krishnareddy.com)(PORT=1530))))’ scope=both sid=’kittu1′;
System altered.
SQL> alter system set local_listener='(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=kasarla02-vip.krishnareddy.com)(PORT=1530))))’ scope=both sid=’kittu2′;
System altered.
SQL>
Create a Password fine on 2nd node
kasarla02[kittu2]_oracle>cd $ORACLE_HOME/dbs
kasarla02[kittu2]_oracle>orapwd file=orapwkittu2 password=passwd entries=10
Start the both the database manually
kasarla01[kittu1]_oracle> sqlplus ‘/as sysdba’
SQL*Plus: Release 11.2.0.3.0 Production on Wed Mar 6 03:53:27 2013
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 5177708544 bytes
Fixed Size 2237368 bytes
Variable Size 2751466568 bytes
Database Buffers 2415919104 bytes
Redo Buffers 8085504 bytes
Database mounted.
Database opened.
SQL>
kasarla02[kittu2]_oracle> sqlplus ‘/as sysdba’
SQL*Plus: Release 11.2.0.3.0 Production on Wed Mar 6 03:41:21 2013
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup
ORA-03113: end-of-file on communication channel
SQL>
Alert Log shows
================
ORA-15183: ASMLIB initialization error [driver/agent not installed]
WARNING: FAILED to load library: /opt/oracle/extapi/64/asm/orcl/1/libasm.so
Errors in file /kittu/oracle/oracle_base/diag/rdbms/kittu/kittu2/trace/kittu2_rbal_30137.trc:
ORA-15183: ASMLIB initialization error [driver/agent not installed]
SUCCESS: diskgroup KITTU_VG was mounted
ERROR: failed to establish dependency between database kittu and diskgroup resource ora.KITTU_VG.dg
Errors in file /kittu/oracle/oracle_base/diag/rdbms/kittu/kittu2/trace/kittu2_ora_29990.trc (incident=40073):
ORA-00600: internal error code, arguments: [kfioTranslateIO03], [], [], [], [], [], [], [], [], [], [], []
Incident details in: /kittu/oracle/oracle_base/diag/rdbms/kittu/kittu2/incident/incdir_40073/kittu2_ora_29990_i40073.trc
================
ORA-15183: ASMLIB initialization error [driver/agent not installed]
WARNING: FAILED to load library: /opt/oracle/extapi/64/asm/orcl/1/libasm.so
Errors in file /kittu/oracle/oracle_base/diag/rdbms/kittu/kittu2/trace/kittu2_rbal_30137.trc:
ORA-15183: ASMLIB initialization error [driver/agent not installed]
SUCCESS: diskgroup KITTU_VG was mounted
ERROR: failed to establish dependency between database kittu and diskgroup resource ora.KITTU_VG.dg
Errors in file /kittu/oracle/oracle_base/diag/rdbms/kittu/kittu2/trace/kittu2_ora_29990.trc (incident=40073):
ORA-00600: internal error code, arguments: [kfioTranslateIO03], [], [], [], [], [], [], [], [], [], [], []
Incident details in: /kittu/oracle/oracle_base/diag/rdbms/kittu/kittu2/incident/incdir_40073/kittu2_ora_29990_i40073.trc
Solution
========
kasarla02[kittu2]_oracle> cd $ORACLE_HOME/bin
kasarla02[kittu2]_oracle> ls -l oracle
-rwsr-x–x 1 oracle asmadmin 232497723 Feb 24 22:22 oracle
kasarla02[kittu2]_oracle> pbrun chmod 6751 oracle
kasarla02[kittu2]_oracle> ls -l oracle
-rwsr-s–x 1 oracle asmadmin 232497723 Feb 24 22:22 oracle
kasarla02[kittu2]_oracle> sqlplus ‘/as sysdba’
SQL*Plus: Release 11.2.0.3.0 Production on Wed Mar 6 03:49:04 2013
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 5177708544 bytes
Fixed Size 2237368 bytes
Variable Size 2785021000 bytes
Database Buffers 2382364672 bytes
Redo Buffers 8085504 bytes
Database mounted.
Database opened.
SQL>
Now configure with srvctl and test it
kasarla01[kittu1]_oracle> srvctl config database -d kittu
PRCD-1120 : The resource for database kittu could not be found.
PRCR-1001 : Resource ora.kittu.db does not exist
kasarla01[kittu1]_oracle> srvctl add database -d kittu -o /kittu/oracle/kittudb/11.2.0.3 -a “KITTU_VG,ERPD_REDOA_VG,ERPD_REDOB_VG,ERPD_ARCH_VG”
kasarla01[kittu1]_oracle> srvctl add instance -d kittu -i kittu1 -n kasarla01
kasarla01[kittu1]_oracle> srvctl add instance -d kittu -i kittu2 -n kasarla02
kasarla01[kittu1]_oracle> srvctl modify database -d kittu -p “+KITTU_VG/kittu/spfilekittu.ora”
kasarla01[kittu1]_oracle> srvctl config database -d kittu
Database unique name: kittu
Database name:
Oracle home: /kittu/oracle/kittudb/11.2.0.3
Oracle user: oracle
Spfile: +KITTU_VG/kittu/spfilekittu.ora
Domain:
Start options: open
Stop options: immediate
Database role: PRIMARY
Management policy: AUTOMATIC
Server pools: kittu
Database instances: kittu1,kittu2
Disk Groups: KITTU_VG,ERPD_REDOA_VG,ERPD_REDOB_VG,ERPD_ARCH_VG
Mount point paths:
Services:
Type: RAC
Database is administrator managed
kasarla01[kittu1]_oracle>
kasarla01[kittu1]_oracle> srvctl status database -d kittu
Instance kittu1 is not running on node kasarla01
Instance kittu2 is not running on node kasarla02
kasarla01[kittu1]_oracle> srvctl status listener -l LSTNkittu
Listener LSTNkittu is enabled
Listener LSTNkittu is running on node(s): kasarla02,kasarla01
kasarla01[kittu1]_oracle> srvctl start database -d kittu
kasarla01[kittu1]_oracle> srvctl status database -d kittu
Instance kittu1 is running on node kasarla01
Instance kittu2 is running on node kasarla02
kasarla01[kittu1]_oracle> srvctl stop database -d kittu
kasarla01[kittu1]_oracle> srvctl status database -d kittu
Instance kittu1 is not running on node kasarla01
Instance kittu2 is not running on node kasarla02
kasarla01[kittu1]_oracle>
Now check the components
SQL> SELECT comp_name, version, status FROM dba_registry;
COMP_NAME VERSION STATUS
————————————————– —————————— ——————————————–
OWB 11.2.0.3.0 VALID
Oracle Application Express 3.2.1.00.12 VALID
Oracle Enterprise Manager 11.2.0.3.0 VALID
OLAP Catalog 11.2.0.3.0 VALID
Spatial 11.2.0.3.0 VALID
Oracle Multimedia 11.2.0.3.0 VALID
Oracle XML Database 11.2.0.3.0 VALID
Oracle Text 11.2.0.3.0 VALID
Oracle Expression Filter 11.2.0.3.0 VALID
Oracle Rules Manager 11.2.0.3.0 VALID
Oracle Workspace Manager 11.2.0.3.0 VALID
Oracle Database Catalog Views 11.2.0.3.0 VALID
Oracle Database Packages and Types 11.2.0.3.0 VALID
JServer JAVA Virtual Machine 11.2.0.3.0 VALID
Oracle XDK 11.2.0.3.0 VALID
Oracle Database Java Packages 11.2.0.3.0 VALID
OLAP Analytic Workspace 11.2.0.3.0 VALID
Oracle OLAP API 11.2.0.3.0 VALID
Oracle Real Application Clusters 11.2.0.3.0 VALID
19 rows selected.
SQL>
Check if any invalid objects
SQL> select owner, object_name, object_type, status from dba_objects where status=’INVALID’;
no rows selected
SQL>
Single node rac DB creation
Restore DB from cold backup
|
DDL’s
set pages 0
set long 10000000
select dbms_metadata.get_ddl(‘PACKAGE’,’BILLERIF’,’SOWGBSDBA01′) FROM DUAL;
select dbms_metadata.get_ddl(‘PACKAGE_BODY’,’IPS_EXCEL_HC_DATA_PKG’,’IPS’) FROM DUAL;
select dbms_metadata.get_ddl(‘TRIGGER’,’TRGECALEVENTSTATS’,’CALPDBA01′) FROM DUAL;
select dbms_metadata.get_ddl(‘VIEW’,’SVC_WO_COM_DTLS_V’,’GETS_DW_SVC’) FROM DUAL;
select dbms_metadata.get_ddl(‘SEQUENCE’,’SEQ_DUEDATECHANGE_N’,’ECMDBA01′) FROM DUAL;
select dbms_metadata.get_ddl(‘USER’,’GET_DW_ETL’) from dual;
select dbms_metadata.get_ddl(‘TABLE’,’DEPT’,’SCOTT’) from dual;
select dbms_metadata.get_ddl(‘INDEX’,’DEPT_IDX’,’SCOTT’) from dual;
select dbms_metadata.get_ddl(‘DB_LINK’,’TEST.COM’,’VAP_DEFAULT_PROD’) from dual;
select dbms_metadata.get_ddl(‘PROCEDURE’,’IR_NOTE_STOP’,’DSI_DPIPE’) from dual;
select dbms_metadata.get_ddl(‘MATERIALIZED_VIEW’,’FILINGS’,’ECMDBA01′) from dual;
select dbms_metadata.get_ddl(‘CONSTRAINT’,’C1_TGDC_905C_AMT’,’FIRDBA01′) from dual;
select dbms_metadata.get_ddl(‘SYSTEM_GRANT’,’HLCDDBA01′) FROM dual;
select dbms_metadata.get_ddl(‘ROLE_GRANT’,’HLCDDBA01′) FROM dual;
select dbms_metadata.get_ddl(‘ROLE’,’SCHEMA_ROLE’) from dual;
select dbms_metadata.get_ddl(‘OBJECT_GRANT’,’HLCDDBA01′) FROM dual;
select dbms_metadata.get_granted_ddl( ‘TABLESPACE_QUOTA’, ‘HLCDDBA01’ ) from dual;
SELECT DBMS_METADATA.GET_DDL(‘USER’,u.USERNAME) FROM DBA_USERS u WHERE USERNAME IN
(‘CORPORATE_FINANCE_CMS_DB’,
‘CORPORATE_FINANCE_COGNOS_ENTER’,
‘CORPORATE_FINANCE_COGNOS_REPOR’,
‘CORPORATE_FINANCE_DDS_DM_DB’);
APPS
DB INFO
set pages 999
set linesize 160
col HOST_NAME format a40
col PLATFORM_NAME for a30
select INSTANCE_NAME,HOST_NAME,VERSION,STATUS,LOGINS,DATABASE_STATUS from gv$instance;
select NAME,LOG_MODE,OPEN_MODE,PLATFORM_NAME from gv$database;
APPS INFO
set lines 160
set pages 300
col PLATFORM_CODE for a15
col VIRTUAL_IP for a30
select NODE_NAME “Node Name”, to_char(CREATION_DATE, ‘DD-MON-RR HH24:MI’) “Creation Date”,
decode(STATUS,’Y’,’ACTIVE’,’INACTIVE’) Status,
decode(SUPPORT_CP,’Y’, ‘ConcMgr’,’No’) ConcMgr,
decode(SUPPORT_FORMS,’Y’,’Forms’, ‘No’) Forms,
decode(SUPPORT_WEB,’Y’,’Web’, ‘No’) WebServer,
decode(SUPPORT_ADMIN, ‘Y’,’Admin’, ‘No’) Admin,
decode(SUPPORT_DB, ‘Y’,’Rdbms’, ‘No’) Database,
PLATFORM_CODE, VIRTUAL_IP
from apps.fnd_nodes
where node_name != ‘AUTHENTICATION’;
Application version
select RELEASE_NAME from fnd_product_groups;
APPLICATION URL
select home_url from apps.icx_parameters;
languages installed
select NLS_LANGUAGE, INSTALLED_FLAG,LANGUAGE_CODE from FND_LANGUAGES where INSTALLED_FLAG in (‘B’,’I’);
Shared appl_top or not
select SHARED, APPL_TOP_GUID,PATH from apps.fnd_appl_tops;
find MRC Enabled ??
select multi_currency_flag from fnd_product_groups;
find Multi-org enabled?
select multi_org_flag from fnd_product_groups;
Workflow Version
select TEXT from WF_RESOURCES where NAME=’WF_VERSION’;
workflow mailer status
select COMPONENT_NAME,COMPONENT_STATUS from FND_SVC_COMPONENTS where component_id = ‘10006’;
workflow COMPONENT status
set lines 160
select COMPONENT_NAME,COMPONENT_STATUS from FND_SVC_COMPONENTS;
to findout the MODULE/PRODUCT is installed or not ?
col product for a10
col status for a15
col product_version for a10
col patchset for a30
col update_date for a15
select decode(nvl(a.APPLICATION_short_name,’Not Found’),’SQLAP’,’AP’,’SQLGL’,’GL’,’OFA’,’FA’,
‘Not Found’,’id ‘||to_char(fpi.application_id),
a.APPLICATION_short_name) Product,
decode(fpi.status,’I’,’Installed’,’S’,’Shared’,’N’,’Inactive’,fpi.status) status,
fpi.product_version,
nvl(fpi.patch_level,’– Not Available –‘) Patchset,
to_char(fpi.last_update_date,’dd-Mon-RRRR’) “Update_Date”
from apps.fnd_oracle_userid o, apps.fnd_application a, apps.fnd_product_installations fpi
where fpi.application_id = a.application_id(+)
and fpi.oracle_id = o.oracle_id(+)
order by 2,1
/
Patching querys
select bug_number creation_date from ad_bugs where bug_number in (
‘6272107’,
‘6272107’,
‘6272107’,
‘6272107’,
‘6272107’,
‘6272107’);
select BUG_NUMBER,CREATION_DATE,LANGUAGE from apps.ad_bugs where BUG_NUMBER like ‘&patchno’;
select BUG_NUMBER,CREATION_DATE,LANGUAGE from apps.ad_bugs where creation_date between ’11-FEB-11′ AND ’12-FEB-11′;
select BUG_NUMBER,CREATION_DATE,LANGUAGE from apps.ad_bugs where creation_date like ‘%11-FEB-11%’;
select BUG_NUMBER,CREATION_DATE,LANGUAGE from apps.ad_bugs where bug_number like ‘598704%’;
select BUG_NUMBER,CREATION_DATE,LANGUAGE from apps.ad_bugs where creation_date>’11-FEB-11′;
select BUG_NUMBER,CREATION_DATE,LANGUAGE from apps.ad_bugs where creation_date<’11-FEB-11′;
select PATCH_NAME,PATCH_TYPE,CREATION_DATE from AD_APPLIED_PATCHES where CREATION_DATE LIKE ‘%12-FEB-11%’;
what are all the nodes patch has been applied
select aap.patch_name, aat.name, apr.end_date
from ad_applied_patches aap,
ad_patch_drivers apd,
ad_patch_runs apr,
ad_appl_tops aat
where aap.applied_patch_id = apd.applied_patch_id
and apd.patch_driver_id = apr.patch_driver_id
and aat.appl_top_id = apr.appl_top_id
and aap.patch_name = ‘&PatchName’;
What drivers are applied while applying patch??
select apd.driver_file_name, apd.DRIVER_TYPE_C_FLAG “C”,
apd.DRIVER_TYPE_D_FLAG “D”, apd.DRIVER_TYPE_G_FLAG “G” ,
apdl.language from ad_patch_drivers apd, ad_patch_driver_langs apdl
where apd.patch_driver_id=apdl.patch_driver_id and
apd.driver_file_name like ‘%&a%’;
distributed ad
on node 1 give the below command
adpatch options=hotpatch workers=48 localworkers=24
on node 2 give the below command
adctrl distributed=y
admerge
admrgpch -s /cfsdshr/ccld3/appccld3/temp/patches/oem/9444535_long -d /cfsdshr/ccld3/appccld3/temp/patches/oem/9444535_long/dest
Apache version
$IAS_ORACLE_HOME/Apache/Apache/bin/httpd -v
perl version
$IAS_ORACLE_HOME/perl/bin/perl -v|grep built
Java version
$AFJVAPRG -version
Client JRE version
cat $FORMS_WEB_CONFIG_FILE|grep sun_plugin_version
Forms Version
$ORACLE_HOME/bin/frmcmp_batch|grep Forms| grep Version
PL/SQL Version
$ORACLE_HOME/bin/frmcmp_batch|grep PL/SQL|grep Version
Forms Communication Mode
cat $FORMS_WEB_CONFIG_FILE|grep serverURL=
USERS
TO CHECK THE GIVEN USER PRIVILLAGES
select
lpad(‘ ‘, 2*level) || granted_role “User, his roles and privileges”
from
(
/* THE USERS */
select
null grantee,
username granted_role
from
dba_users
where
username like upper(‘%&enter_username%’)
/* THE ROLES TO ROLES RELATIONS */
union
select
grantee,
granted_role
from
dba_role_privs
/* THE ROLES TO PRIVILEGE RELATIONS */
union
select
grantee,
privilege
from
dba_sys_privs
)
start with grantee is null
connect by grantee = prior granted_role;
TO CHECK OBJECTS COUNT FOR A USER
select object_type,count(*) from dba_objects where owner=’CASAA_DW’ group by object_type;
TO CHECK USER DETIALS
select USERNAME,ACCOUNT_STATUS,DEFAULT_TABLESPACE,TEMPORARY_TABLESPACE from dba_users where USERNAME=’&USERNAME’;
TO GET USER DETIALS USING DDLS
set pagesize 0
set long 90000
set heading off;
set echo off;
Set pages 999;
set long 90000;
SELECT DBMS_METADATA.GET_DDL(‘USER’,’E_USER’) FROM dual;
select DBMS_METADATA.GET_GRANTED_DDL(‘SYSTEM_GRANT’,’E_USER’) FROM dual;
select DBMS_METADATA.GET_GRANTED_DDL(‘ROLE_GRANT’,’E_USER’) FROM dual;
select DBMS_METADATA.GET_GRANTED_DDL(‘OBJECT_GRANT’,’E_USER’) FROM dual;
create a user
CREATE USER H_PP14 IDENTIFIED BY passwd DEFAULT TABLESPACE “USERS_DATA” TEMPORARY TABLESPACE “TEMP”;
grants
grant connect to HYPP14;
grant resource to HYPP14;
GRANT CREATE VIEW TO HYPP14;
GRANT CREATE TABLE TO HYPP14;
GRANT UNLIMITED TABLESPACE TO HYPP14;
GRANT EXECUTE ON HYP_USER.USERMAINTENANCE to IDM_USER;
OR
SELECT ‘GRANT SELECT ON ‘||OWNER||’.’ ||TABLE_NAME || ‘ TO UMESH;’ FROM DBA_TABLES where OWNER=’CA_DW’;
ALL GRANTS AT A TIME FROM ONE USER TO ANOTHER USER
select ‘grant ‘||decode(object_type,’TABLE’,’select,insert,delete,update ‘,’VIEW’,’select,insert,delete,update ‘,’SEQUENCE’,’SELECT ‘,’PROCEDURE’,’EXECUTE ‘,’PACKAGE’,’EXECUTE ‘,’TRIGGER’,’EXECUTE ‘,’FUNCTION’,’EXECUTE ‘)||
‘ on ‘||owner||’.’||object_name||’ to TO_USER;’
from dba_objects where OWNER=’FROM_USER’
and object_type not in (‘INDEX’,’PACKAGE BODY’,’DATABASE LINK’);
set pages 40000
select ‘ create synonym new_user.’|| object_name ||’ for ‘ ||owner||’.’ ||object_name ||’;’ from dba_objects where owner=’old user’ and object_type in (‘TABLE’,’VIEW’,’SEQUENCE’,’TRIGGER’);
select ‘GRANT SELECT ON ‘||owner||’.’||table_name||’ TO new_user ;’ from dba_tables where owner=’olduser’;
to check the expiry date
select USERNAME,ACCOUNT_STATUS,EXPIRY_DATE from dba_users where EXPIRY_DATE between sysdate and sysdate+7;
alter user RAC_ACCNT account unlock;
SQL> select NAME,PASSWORD from sys.user$ where NAME=’&DBUSER’;
NAME PASSWORD
—————————— ——————————
DBUSER A6D4555654AB883338B888A
SQL> alter user DBUSER identified by values ‘A6D4555654AB883338B888A’;
User altered.
SQL> select USERNAME,EXPIRY_DATE from dba_users where USERNAME=’DBUSER’;
USERNAME EXPIRY_DA
—————————— ———
DBUSER 27-APR-13
SQL> alter user APPS_TRINITY identified by values ‘123BBE968’;
alter user APPS_TRINITY identified by values ‘123BBE968’
*
ERROR at line 1:
ORA-28007: the password cannot be reused
set lines 170
set pages 300
select * from dba_profiles;
SQL> alter profile default LIMIT PASSWORD_REUSE_TIME UNLIMITED;
Profile altered.
SQL> alter user APPS_TRINITY identified by values ‘123BBE968’;
User altered.
SQL> alter profile default LIMIT PASSWORD_REUSE_TIME 1800;
Profile altered.
Grants for other OBJECT_TYPE
SQL> select DBMS_METADATA.GET_GRANTED_DDL(‘OBJECT_GRANT’,’USER01′) FROM dual;
DBMS_METADATA.GET_GRANTED_DDL(‘OBJECT_GRANT’,’USER01′)
——————————————————————————–
GRANT EXECUTE ON “SYS”.”NON-EBS” TO “USER01”
SQL> GRANT EXECUTE ON “SYS”.”NON-EBS” TO USER02;
GRANT EXECUTE ON “SYS”.”NON-EBS” TO USER02
*
ERROR at line 1:
ORA-04042: procedure, function, package, or package body does not exist
SQL> select OBJECT_NAME,OBJECT_TYPE,OWNER from dba_objects where OBJECT_NAME like ‘%NON-EBS%’;
OBJECT_NAME OBJECT_TYPE OWNER
——————– ——————- ——————————
NON-EBS CONSUMER GROUP SYS
SQL> exec dbms_resource_manager_privs.GRANT_SWITCH_CONSUMER_GROUP(grantee_name=>’USER02′,consumer_group=>’NON-EBS’,grant_option=> false);
PL/SQL procedure successfully completed.
SQL> select DBMS_METADATA.GET_GRANTED_DDL(‘OBJECT_GRANT’,’USER01′) FROM dual;
DBMS_METADATA.GET_GRANTED_DDL(‘OBJECT_GRANT’,’USER01′)
——————————————————————————–
GRANT EXECUTE ON “SYS”.”NON-EBS” TO “USER01”
SQL> select DBMS_METADATA.GET_GRANTED_DDL(‘OBJECT_GRANT’,’USER02′) FROM dual;
DBMS_METADATA.GET_GRANTED_DDL(‘OBJECT_GRANT’,’USER02′)
——————————————————————————–
GRANT EXECUTE ON “SYS”.”NON-EBS” TO “USER02” WITH GRANT OPTION
SQL> exec dbms_resource_manager_privs.REVOKE_SWITCH_CONSUMER_GROUP (‘USER02′,’NON-EBS’);
PL/SQL procedure successfully completed.
SQL> exec dbms_resource_manager_privs.GRANT_SWITCH_CONSUMER_GROUP(grantee_name=>’USER02′,consumer_group=>’NON-EBS’,grant_option=> false);
PL/SQL procedure successfully completed.
SQL> select DBMS_METADATA.GET_GRANTED_DDL(‘OBJECT_GRANT’,’USER02′) FROM dual;
DBMS_METADATA.GET_GRANTED_DDL(‘OBJECT_GRANT’,’USER02′)
——————————————————————————–
GRANT EXECUTE ON “SYS”.”NON-EBS” TO “USER02”
RMAN COMMANDS
RMAN INCREMENTAL LEVEL 0 BACKUP SCRIPT
RUN
{
ALLOCATE CHANNEL CH1 DEVICE TYPE DISK FORMAT ‘/backup1/incr/%d_HOT_%M%D%Y_%p_%s’;
ALLOCATE CHANNEL CH2 DEVICE TYPE DISK FORMAT ‘/backup1/incr/%d_HOT_%M%D%Y_%p_%s’;
ALLOCATE CHANNEL CH3 DEVICE TYPE DISK FORMAT ‘/backup1/incr/%d_HOT_%M%D%Y_%p_%s’;
ALLOCATE CHANNEL CH4 DEVICE TYPE DISK FORMAT ‘/backup1/incr/%d_HOT_%M%D%Y_%p_%s’;
BACKUP AS COMPRESSED BACKUPSET INCREMENTAL LEVEL = 0 DATABASE TAG kittu4_HOTINCR_11102012;
BACKUP FORMAT ‘/backup1/control/%d_%M_%D_%Y_%t.ctl’
CURRENT CONTROLFILE TAG kittu4_control_11102012;
sql “alter system archive log current”;
backup AS COMPRESSED BACKUPSET archivelog all format ‘/backup1/incr/%d_ARCH_%M%D%Y_%p_%s’;
}
TO RESTORE THE MISSING ARCHIVES FROM TAPE
run
{
set archivelog destination to ‘/backup1/backup/oracle/cfs/backup’;
ALLOCATE CHANNEL CH1 DEVICE TYPE SBT;
ALLOCATE CHANNEL CH2 DEVICE TYPE SBT;
ALLOCATE CHANNEL CH3 DEVICE TYPE SBT;
ALLOCATE CHANNEL CH4 DEVICE TYPE DISK;
ALLOCATE CHANNEL CH5 DEVICE TYPE DISK;
ALLOCATE CHANNEL CH6 DEVICE TYPE DISK;
restore archivelog sequence between 1049 and 1053;
}
TO REGISTRING THE BACKUP PICES LOCATION
RMAN> catalog start with ‘/ora11/u02/oracle/kittu1_bkp’;
TO DUPLICATE THE DATABASE EXCLUDING FEW TABLESPACE
run
{
allocate auxiliary channel ch1 type ‘sbt_tape’ parms ‘ENV=(NB_ORA_SERVER=server_b,NB_ORA_CLIENT=client_b)’;
allocate auxiliary channel ch2 type ‘sbt_tape’ parms ‘ENV=(NB_ORA_SERVER=server_b,NB_ORA_CLIENT=client_b)’;
allocate auxiliary channel ch3 type ‘sbt_tape’ parms ‘ENV=(NB_ORA_SERVER=server_b,NB_ORA_CLIENT=client_b)’;
allocate auxiliary channel ch4 type ‘sbt_tape’ parms ‘ENV=(NB_ORA_SERVER=server_b,NB_ORA_CLIENT=client_b)’;
allocate auxiliary channel ch5 type ‘sbt_tape’ parms ‘ENV=(NB_ORA_SERVER=server_b,NB_ORA_CLIENT=client_b)’;
set until SCN 12448690600646;
set newname for datafile 1001 to ‘backup/data1/users04.dbf’;
set newname for datafile 1013 to ‘backup/data1/undotbsp37.dbf’;
set newname for datafile 1012 to ‘backup/data1/undotbsp36.dbf’;
set newname for datafile 1011 to ‘backup/data1/undotbsp35.dbf’;
set newname for tempfile 21 to ‘backup/data1/tempu_11.dbf’;
set newname for tempfile 22 to ‘backup/data1/tempu_12.dbf’;
duplicate target database to temp
skip tablespace GETS_DW_UXD,GETS_DW_UXX,IDWD,IDWDL,IDWDX,IDWXL,IDWXM,IDWXX,JAROSDIMDAT,JAROSDIMIDX,JAROSFACTDAT,JAROSFACTIDX,JAROSMETADAT,JAROSMETAIDX
LOGFILE
group 1 (‘backup/redo_1/kittu/kittu_redo_1a.log’,’backup/redo_2/kittu/kittu_redo_1b.log’) size 2000m,
group 2 (‘backup/redo_1/kittu/kittu_redo_2a.log’,’backup/redo_2/kittu/kittu_redo_2b.log’) size 2000m;
}
similar script using set until time
run {
set until time “to_date(’23-07-2012 16:00:00′,’dd-mm-yyyy hh24:mi:ss’)”;
allocate auxiliary channel aux_disk1 device type disk;
allocate auxiliary channel aux_disk2 device type disk;
allocate auxiliary channel aux_disk3 device type disk;
allocate auxiliary channel aux_disk4 device type disk;
allocate auxiliary channel aux_disk5 device type disk;
allocate auxiliary channel aux_disk6 device type disk;
allocate auxiliary channel aux_disk7 device type disk;
allocate auxiliary channel aux_disk8 device type disk;
duplicate database to ‘testdb’
BACKUP LOCATION ‘/backup/oracle/kittu/oracle/kittu1/incr’
NOFILENAMECHECK
spfile
set db_unique_name=’testdb’
set DB_FILE_NAME_CONVERT=’+KITTU_VG/kittu/datafile’, ‘/backup/oracle/testdb/data’
set LOG_FILE_NAME_CONVERT=’+KITTU_VG/kittu/onlinelog’, ‘/backup/oracle/testdb/redo’
set SGA_TARGET=”8G”
set sga_max_size=”8G”
set CONTROL_FILES=’/backup/oracle/testdb/control/control01.ctl’,’/backup/oracle/testdb/control/control02.ctl’
set log_archive_max_processes=’5′
set log_archive_dest_1=’LOCATION=/backup/oracle/testdb/arch’
set diagnostic_dest=’/kittu/oracle/oracle_base’
set audit_file_dest=’/kittu/oracle/oracle_base/admin/testdb/adump’
set compatible=’11.2.0.2′
set job_queue_processes=’0′
set aq_tm_processes=’0′
set local_listener='(ADDRESS=(PROTOCOL=TCP)(HOST=hostname.domain.com)(PORT=1530))’
set remote_listener=’1525′
set cluster_database=’FALSE’; }
}
To test the Tape is configured for restore
run
{
allocate channel ch1 type ‘sbt_tape’ parms ‘ENV=(NB_ORA_SERVER=server_b,NB_ORA_CLIENT=client_b)’;
}
CLONING TO ANOTHER NODE
run
{
allocate channel C1 device type disk;
allocate channel C2 device type disk;
allocate channel C3 device type disk;
allocate channel C4 device type disk;
allocate channel C5 device type disk;
allocate channel C6 device type disk;
set newname for datafile 1 to ‘/ora11/u01/oracle/kittu1/data/system01.dbf’;
set newname for datafile 2 to ‘/ora11/u01/oracle/kittu1/data/tools01.dbf’;
set newname for datafile 3 to ‘/ora11/u01/oracle/kittu1/data/def01.dbf’;
set newname for datafile 4 to ‘/ora11/u01/oracle/kittu1/data/tsecwpindx01.dbf’;
set newname for datafile 5 to ‘/ora11/u01/oracle/kittu1/data/tsfaadmdta01.dbf’;
set newname for datafile 6 to ‘/ora11/u01/oracle/kittu1/data/tsfaadmidx01.dbf’;
restore database;
switch datafile all;
recover database;
}
helpful querys
set pages0
set heading off
set echo off
set flush off
set pagesize 50000
set linesize 32767
set long 50000
select owner||’:’|| dbms_metadata.get_ddl(‘DB_LINK’,db_link,owner) from dba_db_links;
select distinct substr(file_name,0,instr(file_name,’/’,-1)) “Data MOunts” from dba_data_files;
select ‘alter database rename file ‘||””|| member||””|| ‘ to ‘|| ””||’/ora11/u01/oracle/kittu1/redo1/’||SUBSTR(member, INSTR(member, ‘/’, -1) + 1)||””||’;’ from v$logfile ;
select ‘set newname for datafile ‘||file#||’ to ‘||””||’/ora11/u01/oracle/kittu1/data/’||SUBSTR(name, INSTR(name, ‘/’, -1) + 1)||””||’;’ from v$datafile;
select ‘ALTER DATABASE TEMPFILE ‘||””||name||””||’ DROP;’ from v$tempfile;
select ‘alter user ‘||username||’ identified by values ‘||””||password||””|| ‘;’ from dba_users;
select ‘alter user ‘||name||’ identified by values ‘||password||’;’ from SYS.USER$;
select member from v$logfile;
nohup rman cmdfile=restor.ctl log=resotre_kittu1.log &
select a.sid,a.serial#,b.username,b.opname,LAST_UPDATE_TIME,round(b.SOFAR*100 / b.TOTALWORK,2) || ‘%’ as progress,
b.TIME_REMAINING,b.target from gV$SESSION_LONGOPS b,gV$SESSION a where a.sid=b.sid and TIME_REMAINING <> 0 order by 6;
Select OPERATION,STATUS,TO_CHAR(start_time,’DD-MON-YY HH24:MI’),TO_CHAR(end_time,’DD-MON-YY HH24:MI’),OUTPUT_DEVICE_TYPE from V$RMAN_STATUS;
Select OPERATION,STATUS,TO_CHAR(start_time,’DD-MON-YY HH24:MI’),TO_CHAR(end_time,’DD-MON-YY HH24:MI’),OUTPUT_DEVICE_TYPE from V$RMAN_STATUS where start_time>sysdate-1 ;
SELECT TO_CHAR(start_time,’DD-MON-YY HH24:MI’) “Start of backup”,Sofar, totalwork,elapsed_seconds/60 “ELAPSED TIME IN MINUTES”,ROUND(sofar/totalwork*100,2) “Percentage Completed so far” FROM v$session_longops;
select distinct(CHECKPOINT_CHANGE#) from v$datafile;
Frequently Asked Questions about Restoring Or Duplicating Between Different Versions And Platforms [ID 369644.1]
Compatibility Matrix for Export And Import Between Different Oracle Versions [Video] [ID 132904.1]
ADRCI Command
For any ora 600 or ora 7445 error I encourage all to use adrci more than uploading trace and alert logs individually.
hostname[instance]_oracle> adrci
ADRCI: Release 11.2.0.2.0 – Production on Fri Jul 20 00:00:13 2012
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
ADR base = “/instance/oracle/oracle_base”
adrci> show home
ADR Homes:
diag/rdbms/instance/instance
diag/clients/user_oracle/host_777677599_80
adrci> set home diag/rdbms/instance/instance
adrci> show incident
ADR Home = /instance/oracle/oracle_base/diag/rdbms/instance/instance:
*************************************************************************
INCIDENT_ID PROBLEM_KEY CREATE_TIME
——————– ———————————————————– —————————————-
61937 ORA 7445 [ksmdget()+337] 2012-07-19 23:00:24.905000 -04:00
60017 ORA 7445 [ksmdgup()+57] 2012-07-19 23:00:28.814000 -04:00
2 rows fetched
adrci> ips pack incident 61937 in /tmp
Generated package 1 in file /tmp/ORA7445ks_20120720000220_COM_1.zip, mode complete
-rw-r–r– 1 oracle oinstall 171184398 Jul 20 00:06 ORA7445ks_20120720000220_COM_1.zip
adrci> show problem
ADR Home = /instance/oracle/oracle_base/diag/rdbms/instance/instance:
*************************************************************************
PROBLEM_ID PROBLEM_KEY LAST_INCIDENT LASTINC_TIME
——————– ———————————————————– ——————– —————————————-
1 ORA 7445 [ksmdget()+337] 61937 2012-07-19 23:00:24.905000 -04:00
2 ORA 7445 [ksmdgup()+57] 60017 2012-07-19 23:00:28.814000 -04:00
2 rows fetched
adrci> show alert
Choose the alert log from the following homes to view:
1: diag/rdbms/kittu/kittu2
2: diag/tnslsnr/kasarla/listener_kittu
3: diag/tnslsnr/kasarla/lsnrkittu
4: diag/tnslsnr/kasarla/listener_scan1
5: diag/tnslsnr/kasarla/lstnkittu
6: diag/clients/user_oracle/host_3639815057_80
Q: to quit
Please select option: 1
DB LINKS
<code>
col OWNER for a12
col DB_LINK for a20
col USERNAME for a12
col HOST for a50
set pages 200
select OWNER,DB_LINK,USERNAME,HOST from dba_db_links where DB_LINK=upper(‘&dblink_name’);
To view the existing db links and their properties like private or public
set lines 180
set pages 300
col OWNER format a10
col DB_LINK format a40
col USERNAME format a15
col HOST for a80
set long 100000
select * FROM dba_db_links;
to get the DDL for particular db link use this command
SQL> set long 100000
SQL> select dbms_metadata.get_ddl( ‘DB_LINK’, ‘hostname.domainname.com’,’APPS’ ) from dual;
Create db link by connecting to owner of the db link where it need to be connect in the target database user
hostname[dev]_oracle> sqlplus apps/password
SQL*Plus: Release 11.2.0.2.0 Production on Wed May 23 12:11:52 2012
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 – 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
SQL> show user
USER is “APPS”
SQL>
create database link hostname.domainname.com
2 connect to APPS identified by password
3 using
4 ‘(DESCRIPTION=
5 (LOAD_BALANCE=YES)
6 (FAILOVER=YES)
7 (ADDRESS_LIST=
8 (ADDRESS=(PROTOCOL=tcp)(HOST=prod-scan.domainname.com)(PORT=1525))
9 )
10 (CONNECT_DATA=
11 (SERVICE_NAME=stage)
12 )
13 )’;
Database link created.
Add the target tns details in source and test the connection by issuing the below command
SQL> SELECT COUNT(*) FROM DUAL@hostname.domainname.com;
COUNT(*)
———-
1
to drop the db link connect to the owner of db link and drop
SQL> conn apps/password
Connected.
SQL> drop database link “hostname.domainname.com”;
database link dropped
SELECT ‘CREATE ‘||DECODE(U.NAME,’PUBLIC’,’public ‘)||’DATABASE LINK ‘||CHR(10)
||DECODE(U.NAME,’PUBLIC’,Null, ‘SYS’,”,U.NAME||’.’)|| L.NAME||chr(10)
||’CONNECT TO ‘ || L.USERID || ‘ IDENTIFIED BY “‘||L.PASSWORD||'” USING
”’||L.HOST||””
||chr(10)||’;’ TEXT
FROM SYS.LINK$ L, SYS.USER$ U
WHERE L.OWNER# = U.USER#;
SELECT ‘CREATE ‘||DECODE(U.NAME,’PUBLIC’,’public ‘)||’DATABASE LINK ‘||CHR(10)
||DECODE(U.NAME,’PUBLIC’,Null, ‘SYS’,”,U.NAME||’.’)|| L.NAME||chr(10)
||’CONNECT TO ‘ || L.USERID || ‘ IDENTIFIED BY “‘||L.PASSWORD||'” USING ”’||L.HOST||””
||chr(10)||’;’ TEXT
FROM SYS.LINK$ L, SYS.USER$ U
WHERE L.OWNER# = U.USER#
and l.USERID like ‘%????%’;
select ‘conn ‘||owner||’/&&’||owner|| chr(10)||’create database link ‘||rtrim(ltrim(db_link))||’ ‘||’connect to ‘||rtrim(ltrim(username))||’ identified by ‘||rtrim(ltrim(password))||’ using ‘||””||rtrim(ltrim(b.host))||””||’;’
from dba_db_links A, sys.link$ B
where A.db_link = B.name
and B.ctime = A.created
and owner like ‘&Owner’
order by owner;
SELECT name, value FROM v$parameter WHERE (name LIKE ‘%link%’) OR (name IN (‘global_names’, ‘dblink_encrypt_login’));
</code>
PROFILE CREATION
hostname[instance]_oracle> sqlplus ‘/as sysdba’
SQL*Plus: Release 11.2.0.2.0 Production on Thu Aug 30 01:43:50 2012
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 – 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
SQL> set lines 160
SQL> set pages 500
SQL> select USERNAME,CREATED,EXPIRY_DATE,ACCOUNT_STATUS,PROFILE from dba_users where username like ‘%HYP%’ order by 2;
USERNAME CREATED EXPIRY_DA ACCOUNT_STATUS PROFILE
—————————— ——— ——— ——————————– ——————————
user1 13-FEB-12 OPEN DEFAULT
user2 13-FEB-12 OPEN DEFAULT
user3 13-FEB-12 OPEN DEFAULT
check the available profiles in database
SQL> select * from dba_profiles;
PROFILE RESOURCE_NAMERESOURCE LIMIT
—————————— ——————————– ——– —————————————-
DEFAULT COMPOSITE_LIMITKERNEL UNLIMITED
DEFAULT SESSIONS_PER_USERKERNEL UNLIMITED
DEFAULT CPU_PER_SESSIONKERNEL UNLIMITED
DEFAULT CPU_PER_CALLKERNEL UNLIMITED
DEFAULT LOGICAL_READS_PER_SESSIONKERNEL UNLIMITED
DEFAULT LOGICAL_READS_PER_CALLKERNEL UNLIMITED
DEFAULT IDLE_TIMEKERNEL UNLIMITED
DEFAULT CONNECT_TIMEKERNEL UNLIMITED
DEFAULT PRIVATE_SGAKERNEL UNLIMITED
DEFAULT FAILED_LOGIN_ATTEMPTSPASSWORD 10
DEFAULT PASSWORD_LIFE_TIMEPASSWORD UNLIMITED
DEFAULT PASSWORD_REUSE_TIMEPASSWORD UNLIMITED
DEFAULT PASSWORD_REUSE_MAXPASSWORD UNLIMITED
DEFAULT PASSWORD_VERIFY_FUNCTION PASSWORD PASSWORD_VERIFY
DEFAULT PASSWORD_LOCK_TIMEPASSWORD UNLIMITED
DEFAULT PASSWORD_GRACE_TIMEPASSWORD UNLIMITED
16 rows selected.
only one profile is available so see the details about the profile
SQL> select * from dba_profiles where PROFILE=’DEFAULT’;
PROFILE RESOURCE_NAMERESOURCE LIMIT
—————————— ——————————– ——– —————————————-
DEFAULT COMPOSITE_LIMITKERNEL UNLIMITED
DEFAULT SESSIONS_PER_USERKERNEL UNLIMITED
DEFAULT CPU_PER_SESSIONKERNEL UNLIMITED
DEFAULT CPU_PER_CALLKERNEL UNLIMITED
DEFAULT LOGICAL_READS_PER_SESSIONKERNEL UNLIMITED
DEFAULT LOGICAL_READS_PER_CALLKERNEL UNLIMITED
DEFAULT IDLE_TIMEKERNEL UNLIMITED
DEFAULT CONNECT_TIMEKERNEL UNLIMITED
DEFAULT PRIVATE_SGAKERNEL UNLIMITED
DEFAULT FAILED_LOGIN_ATTEMPTSPASSWORD 10
DEFAULT PASSWORD_LIFE_TIMEPASSWORD UNLIMITED
DEFAULT PASSWORD_REUSE_TIMEPASSWORD UNLIMITED
DEFAULT PASSWORD_REUSE_MAXPASSWORD UNLIMITED
DEFAULT PASSWORD_VERIFY_FUNCTION PASSWORD PASSWORD_VERIFY
DEFAULT PASSWORD_LOCK_TIMEPASSWORD UNLIMITED
DEFAULT PASSWORD_GRACE_TIMEPASSWORD UNLIMITED
16 rows selected.
Create a new profile and modify according to existing profile SQL> create Profile custom LIMIT PASSWORD_LIFE_TIME 365;
Profile created.
SQL> alter profile CUSTOM limit PASSWORD_REUSE_TIME UNLIMITED;
SQL> alter profile CUSTOM limit COMPOSITE_LIMIT UNLIMITED;
SQL> alter profile CUSTOM limit SESSIONS_PER_USER UNLIMITED;
SQL> alter profile CUSTOM limit CPU_PER_SESSION UNLIMITED;
SQL> alter profile CUSTOM limit CPU_PER_CALL UNLIMITED;
SQL> alter profile CUSTOM limit LOGICAL_READS_PER_SESSION UNLIMITED;
SQL> alter profile CUSTOM limit LOGICAL_READS_PER_CALL UNLIMITED;
SQL> alter profile CUSTOM limit IDLE_TIME UNLIMITED;
SQL> alter profile CUSTOM limit CONNECT_TIME UNLIMITED;
SQL> alter profile CUSTOM limit PRIVATE_SGA UNLIMITED;
SQL> alter profile CUSTOM limit PASSWORD_LOCK_TIME UNLIMITED;
SQL> alter profile CUSTOM limit PASSWORD_GRACE_TIME UNLIMITED;
SQL> alter profile CUSTOM limit PASSWORD_VERIFY_FUNCTION PASSWORD_VERIFY;
SQL> alter profile CUSTOM limit FAILED_LOGIN_ATTEMPTS 10;
SQL> alter profile CUSTOM limit PASSWORD_REUSE_MAX UNLIMITED;
Now compare the both existing and new profile are same same or not in new profile password expiry is set to 365 days SQL> select * from dba_profiles where PROFILE=’DEFAULT’;
PROFILE RESOURCE_NAMERESOURCE LIMIT
—————————— ——————————– ——– —————————————-
DEFAULT COMPOSITE_LIMITKERNEL UNLIMITED
DEFAULT SESSIONS_PER_USERKERNEL UNLIMITED
DEFAULT CPU_PER_SESSIONKERNEL UNLIMITED
DEFAULT CPU_PER_CALLKERNEL UNLIMITED
DEFAULT LOGICAL_READS_PER_SESSIONKERNEL UNLIMITED
DEFAULT LOGICAL_READS_PER_CALLKERNEL UNLIMITED
DEFAULT IDLE_TIMEKERNEL UNLIMITED
DEFAULT CONNECT_TIMEKERNEL UNLIMITED
DEFAULT PRIVATE_SGAKERNEL UNLIMITED
DEFAULT FAILED_LOGIN_ATTEMPTSPASSWORD 10
DEFAULT PASSWORD_LIFE_TIMEPASSWORD UNLIMITED
DEFAULT PASSWORD_REUSE_TIMEPASSWORD UNLIMITED
DEFAULT PASSWORD_REUSE_MAXPASSWORD UNLIMITED
DEFAULT PASSWORD_VERIFY_FUNCTION PASSWORD PASSWORD_VERIFY
DEFAULT PASSWORD_LOCK_TIMEPASSWORD UNLIMITED
DEFAULT PASSWORD_GRACE_TIMEPASSWORD UNLIMITED
16 rows selected.
SQL> select * from dba_profiles where PROFILE=’CUSTOM’;
PROFILE RESOURCE_NAMERESOURCE LIMIT
—————————— ——————————– ——– —————————————-
CUSTOM COMPOSITE_LIMITKERNEL UNLIMITED
CUSTOM SESSIONS_PER_USERKERNEL UNLIMITED
CUSTOM CPU_PER_SESSIONKERNEL UNLIMITED
CUSTOM CPU_PER_CALLKERNEL UNLIMITED
CUSTOM LOGICAL_READS_PER_SESSIONKERNEL UNLIMITED
CUSTOM LOGICAL_READS_PER_CALLKERNEL UNLIMITED
CUSTOM IDLE_TIMEKERNEL UNLIMITED
CUSTOM CONNECT_TIMEKERNEL UNLIMITED
CUSTOM PRIVATE_SGAKERNEL UNLIMITED
CUSTOM FAILED_LOGIN_ATTEMPTSPASSWORD 10
CUSTOM PASSWORD_LIFE_TIMEPASSWORD 365
CUSTOM PASSWORD_REUSE_TIMEPASSWORD UNLIMITED
CUSTOM PASSWORD_REUSE_MAXPASSWORD UNLIMITED
CUSTOM PASSWORD_VERIFY_FUNCTION PASSWORD PASSWORD_VERIFY
CUSTOM PASSWORD_LOCK_TIMEPASSWORD UNLIMITED
CUSTOM PASSWORD_GRACE_TIMEPASSWORD UNLIMITED
16 rows selected.
now assign the profile to users ‘ who expiry date you want to extend to 1 year’
SQL> alter user user1 PROFILE CUSTOM;
SQL> alter user user3 PROFILE CUSTOM;
SQL> alter user user2 PROFILE CUSTOM;
SQL> select USERNAME,CREATED,EXPIRY_DATE,ACCOUNT_STATUS,PROFILE from dba_users where username like ‘%HYP%’ order by 2;
USERNAME CREATED EXPIRY_DA ACCOUNT_STATUS PROFILE
—————————— ——— ——— ——————————– ——————————
user1 13-FEB-12 12-FEB-13 OPEN CUSTOM
user2 13-FEB-12 12-FEB-13 OPEN CUSTOM
user3 13-FEB-12 12-FEB-13 OPEN CUSTOM
observer carefully user are assigned to new profile ‘CUSTOM’ but expity date is changed acouding to creation date to 1year
to effect this changes we need to update the password below query to get the passwords of all users
SQL> select ‘alter user ‘||name||’ identified by values ”’||password||”’;’ from SYS.USER$;
‘ALTERUSER’||NAME||’IDENTIFIEDBYVALUES”’||PASSWORD||”’;’
————————————————————————————————
alter user user1 identified by values ‘CCCCE1B4577D5B3F’;
SQL> alter user HYP_PLANAPP9 identified by values ’19F3C3A86A97E8E0′;
User altered.
SQL> alter user user1 identified by values ‘317047F2ED3DE4B3’;
alter user user2 identified by values ‘0326255DC8420F8F’;
User altered.
SQL>
now check the expiry date is changed from modified date to 1year earlier its from creation date to 1year
SQL> select USERNAME,CREATED,EXPIRY_DATE,ACCOUNT_STATUS,PROFILE from dba_users where username like ‘%HYP%’ order by 2;
USERNAME CREATED EXPIRY_DA ACCOUNT_STATUS PROFILE
—————————— ——— ——— ——————————– ——————————
user1 13-FEB-12 30-AUG-13 OPEN CUSTOM
user2 13-FEB-12 30-AUG-13 OPEN CUSTOM
user3 13-FEB-12 30-AUG-13 OPEN CUSTOM
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 – 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
R12.1.3 Cloning
|
R12.2 Patching
[appkittu@kasarla01 13358472]$ adop phase=prepare
Enter the APPS password:
Enter the SYSTEM password:
Enter the WLSADMIN password:
Please wait. Validating credentials…
Enter the RUN file system context file name [/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml]:
Enter the PATCH file system context file name [/kittu/R12_2/fs2/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml]:
[STATEMENT] [END 2012/08/28 12:54:52] Performing verification of parameters
[STATEMENT] [START 2012/08/28 12:54:53] Checking for the required ENV setup
[STATEMENT] [END 2012/08/28 12:54:53] Checking for the required ENV setup
************* Start of session *************
version: 12.2.0
started at: Tue Aug 28 2012 12:54:53
APPL_TOP is set to /kittu/R12_2/fs1/EBSapps/appl
[STATEMENT] [START 2012/08/28 12:54:53] Determining admin node
[STATEMENT] [END 2012/08/28 12:54:55] Determining admin node
[STATEMENT] [START 2012/08/28 12:54:58] Acquiring lock on sessions table
[STATEMENT] [END 2012/08/28 12:54:59] Acquiring lock on sessions table
[STATEMENT] [START 2012/08/28 12:54:59] Checking for any pending sessions
[STATEMENT] [START 2012/08/28 12:55:04] Staging the current session
[STATEMENT] [START 2012/08/28 12:55:09] Checking if node “kasarla01” is abandoned
[STATEMENT] [END 2012/08/28 12:55:11] Checking if node “kasarla01” is abandoned
[STATEMENT] [END 2012/08/28 12:55:13] Staging the current session
[STATEMENT] [START 2012/08/28 12:55:15] Unlocking sessions table
[STATEMENT] [END 2012/08/28 12:55:16] Unlocking sessions table
[STATEMENT] [START 2012/08/28 12:55:16] adzdoptl.pl run
[STATEMENT] Session ID: 8
[STATEMENT] Phase: prepare
[STATEMENT] Log file: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/adop_20120828_125348.log
[STATEMENT] [START 2012/08/28 12:55:26] prepare phase
[STATEMENT] PREPARE Phase START TIME: 28-08-2012 12:55:27
[STATEMENT] [START 2012/08/28 12:55:32] Validating Configuration
[STATEMENT] Calling: /kittu/R12_2/fs1/EBSapps/appl/ad/12.0.0/patch/115/bin/txkADOPPreparePhaseSanityCheck.pl
[STATEMENT] Output directory: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/prepare_20120828_125348/kittu_kasarla01
Program : started @ Tue Aug 28 12:55:35 2012
*** Log File = /kittu/R12_2/fs_ne/EBSapps/log/adop/8/prepare_20120828_125348/kittu_kasarla01/TXK_SANITY_filesystemcheck_Tue_Aug_28_12_55_35_2012/txkADOPPreparePhaseSanityCheck_Tue_Aug_28_12_55_35_2012.log
Program : completed @ Tue Aug 28 12:55:37 2012
[STATEMENT] [END 2012/08/28 12:55:37] Validating Configuration
[STATEMENT] [START 2012/08/28 12:55:38] Detecting config changes in FS
[STATEMENT] [START 2012/08/28 12:55:39] Executing adConfigChangeDetector on kasarla01
[STATEMENT] Calling: /kittu/R12_2/fs1/EBSapps/appl/ad/12.0.0/patch/115/bin/adConfigChangeDetector.pl
[STATEMENT] Output directory: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/prepare_20120828_125348/kittu_kasarla01/adConfigChanges.log
The log file is /kittu/R12_2/fs_ne/EBSapps/log/adop/8/prepare_20120828_125348/kittu_kasarla01/adConfigChanges.log
[STATEMENT] [END 2012/08/28 12:58:55] Executing adConfigChangeDetector on kasarla01
[STATEMENT] No change detected in kasarla01
[STATEMENT] [END 2012/08/28 12:58:56] Detecting config changes in FS
[STATEMENT] [START 2012/08/28 12:58:57] Performing check to see if pending cleanup actions exist
[STATEMENT] Checking if pending cleanup actions
[STATEMENT] No pending cleanup actions, proceeding with other steps
[STATEMENT] [END 2012/08/28 12:59:03] Performing check to see if pending cleanup actions exist
[STATEMENT] [START 2012/08/28 12:59:04] Deleting rows from ad_patches_tables table
[STATEMENT] [END 2012/08/28 12:59:06] Deleting rows from ad_patches_tables table
[STATEMENT] [START 2012/08/28 12:59:07] Performing DB Sanity checks
[STATEMENT] [START 2012/08/28 12:59:08] Checking if edition enabled users exist
[STATEMENT] [END 2012/08/28 12:59:10] Checking if edition enabled users exist
[STATEMENT] [START 2012/08/28 12:59:11] Performing Check for patch service existance
[STATEMENT] [END 2012/08/28 12:59:13] Performing Check for patch service existance
[STATEMENT] [START 2012/08/28 12:59:14] Performing Check for Logon Trigger existence and enablement
[STATEMENT] [END 2012/08/28 12:59:16] Performing Check for Logon Trigger existence and enablement
[STATEMENT] [END 2012/08/28 12:59:17] Performing DB Sanity checks
[STATEMENT] [START 2012/08/28 12:59:18] Generating Tablespace Report
[STATEMENT] [START 2012/08/28 12:59:20] Generating report to display the status of important tablespaces. (ie. free space)
[STATEMENT] Report: /kittu/R12_2/fs1/EBSapps/appl/ad/12.0.0/sql/ADZDSHOWTS.sql
[STATEMENT] Output: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/prepare_20120828_125348/kittu_kasarla01/adzdshowts.out
[STATEMENT] [END 2012/08/28 12:59:24] Generating report to display the status of important tablespaces. (ie. free space)
[STATEMENT] [END 2012/08/28 12:59:25] Generating Tablespace Report
[STATEMENT] [START 2012/08/28 12:59:26] Run the ADZDPATCH concurrent program
[STATEMENT] [START 2012/08/28 12:59:30] Checking status of the ADZDPATCH concurrent program
[STATEMENT] Status of ADZDPATCH:
[STATEMENT] The next available concurrent manager will process this request. This
request will process as soon as the concurrent manager finishes its
current processing and the processing of other requests ahead of this
request. User SYSADMIN submitted this request on 28-Aug-2012 12:59:29. No
action required. This is a normal condition. You may expedite the start of
the processing of this request by reducing its priority value. Only the
System Administrator responsibility may update request priority values.
[STATEMENT] [END 2012/08/28 12:59:35] Checking status of the ADZDPATCH concurrent program
[STATEMENT] Concurrent Request Number: 1784409
[STATEMENT] [END 2012/08/28 13:00:08] Run the ADZDPATCH concurrent program
[STATEMENT] [START 2012/08/28 13:00:09] Generating Report to display all the DDLs from ad_zd_ddl_handler
[STATEMENT] Report: /kittu/R12_2/fs1/EBSapps/appl/ad/12.0.0/sql/ADZDALLDDLS.sql
[STATEMENT] Output: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/prepare_20120828_125348/kittu_kasarla01/adzdallddls.out
[STATEMENT] [END 2012/08/28 13:00:13] Generating Report to display all the DDLs from ad_zd_ddl_handler
[STATEMENT] [START 2012/08/28 13:00:14] Check and create Patch Edition (if required)
[STATEMENT] [START 2012/08/28 13:00:15] Checking if Patch Edition already exists
[STATEMENT] Patch Edition does not exist
[STATEMENT] [START 2012/08/28 13:00:19] Creating Patch Edition
[STATEMENT] [END 2012/08/28 13:04:04] Creating Patch Edition
[STATEMENT] [END 2012/08/28 13:04:05] Checking if Patch Edition already exists
[STATEMENT] [END 2012/08/28 13:04:06] Check and create Patch Edition (if required)
[STATEMENT] [START 2012/08/28 13:04:08] Performing steps to synchronise the FS
[STATEMENT] [START 2012/08/28 13:04:09] Performing steps to CLONE FS of RUN and PATCH appltops
[STATEMENT] [END 2012/08/28 13:04:14] Performing steps to CLONE FS of RUN and PATCH appltops
[STATEMENT] [START 2012/08/28 13:04:15] Performing steps to syncup FS of RUN and PATCH appltops
[STATEMENT] [START 2012/08/28 13:04:17] Sync FS of RUN and PATCH
[STATEMENT] Calling: /kittu/R12_2/fs1/EBSapps/appl/ad/12.0.0/patch/115/bin/txkADOPPreparePhaseSynchronize.pl
[STATEMENT] Output directory: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/prepare_20120828_125348/kittu_kasarla01
Program : started @ Tue Aug 28 13:04:21 2012
*** Log File = /kittu/R12_2/fs_ne/EBSapps/log/adop/8/prepare_20120828_125348/kittu_kasarla01/TXK_SYNC_update_Tue_Aug_28_13_04_21_2012/txkADOPPreparePhaseSynchronize_Tue_Aug_28_13_04_21_2012.log
===================================
SUMMARY OF PATCHES BEING APPLIED…
===================================
u13384052.drv: SINGLE PATCH : 13384052
Successfully created out directory
LOGPATH is set to /kittu/R12_2/fs_ne/EBSapps/log/adop/8/prepare_20120828_125348/kittu_kasarla01/TXK_SYNC_update_Tue_Aug_28_13_04_21_2012/log
cmd = /kittu/R12_2/fs1/FMW_Home/jrockit_160_29_D1.2.0-10/jre/bin/java -classpath /kittu/R12_2/fs1/FMW_Home/Oracle_EBS-app1/shared-libs/ebs-appsborg/WEB-INF/lib/ebsAppsborgManifest.jar:/kittu/R12_2/fs1/EBSapps/comn/java/classes -mx256m oracle.apps.ad.tools.configuration.ADOPCustomSyncUp -contextFile /kittu/R12_2/fs1/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml -custSyncDrv /kittu/R12_2/fs_ne/EBSapps/appl/ad/custom/adop_sync.drv -logFile /kittu/R12_2/fs_ne/EBSapps/log/adop/8/prepare_20120828_125348/kittu_kasarla01/TXK_SYNC_update_Tue_Aug_28_13_04_21_2012/txkADOPCustomSyncUp.log -promptmsg ‘hide’
ADOP Custom Synchorization successfully run
Program : completed @ Tue Aug 28 13:05:56 2012
[STATEMENT] [END 2012/08/28 13:05:56] Sync FS of RUN and PATCH
[STATEMENT] [END 2012/08/28 13:05:57] Performing steps to syncup FS of RUN and PATCH appltops
[STATEMENT] [START 2012/08/28 13:05:58] Performing steps to CONFIG_CLONE FS of RUN and PATCH appltops
[STATEMENT] [END 2012/08/28 13:06:03] Performing steps to CONFIG_CLONE FS of RUN and PATCH appltops
[STATEMENT] [END 2012/08/28 13:06:05] Performing steps to synchronise the FS
[STATEMENT] [START 2012/08/28 13:06:06] Performing steps to validate configuration
[STATEMENT] [START 2012/08/28 13:06:07] Validating Configuration
[STATEMENT] Calling: /kittu/R12_2/fs1/EBSapps/appl/ad/12.0.0/patch/115/bin/txkADOPPreparePhaseSanityCheck.pl
[STATEMENT] Output directory: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/prepare_20120828_125348/kittu_kasarla01
Program : started @ Tue Aug 28 13:06:11 2012
*** Log File = /kittu/R12_2/fs_ne/EBSapps/log/adop/8/prepare_20120828_125348/kittu_kasarla01/TXK_SANITY_dbcheck_Tue_Aug_28_13_06_11_2012/txkADOPPreparePhaseSanityCheck_Tue_Aug_28_13_06_11_2012.log
Program : completed @ Tue Aug 28 13:06:12 2012
[STATEMENT] [END 2012/08/28 13:06:12] Validating Configuration
[STATEMENT] [END 2012/08/28 13:06:13] Performing steps to validate configuration
[STATEMENT] [END 2012/08/28 13:06:17] prepare phase
[STATEMENT] PREPARE Phase END TIME: 28-08-2012 13:06:19
[STATEMENT] [START 2012/08/28 13:06:24] Generating Report to spool all logs from ad_zd_logs
[STATEMENT] Report: /kittu/R12_2/fs1/EBSapps/appl/ad/12.0.0/sql/ADZDSHOWLOG.sql
[STATEMENT] Output: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/prepare_20120828_125348/kittu_kasarla01/adzdshowlog.out
[STATEMENT] [END 2012/08/28 13:06:27] Generating Report to spool all logs from ad_zd_logs
[STATEMENT] [START 2012/08/28 13:06:28] Check and Stop Patch Admin Server
[STATEMENT] [START 2012/08/28 13:06:32] Check and Stop Patch FS Admin Server
You are running adadminsrvctl.sh version 120.10.12020000.2
The AdminServer is already shutdown
adadminsrvctl.sh: exiting with status 2
adadminsrvctl.sh: check the logfile /kittu/R12_2/fs2/inst/apps/kittu_kasarla01/logs/appl/admin/log/adadminsrvctl.txt for more information …
[STATEMENT] [END 2012/08/28 13:06:46] Check and Stop Patch FS Admin Server
[STATEMENT] [END 2012/08/28 13:06:48] Check and Stop Patch Admin Server
[STATEMENT] [END 2012/08/28 13:06:51] adzdoptl.pl run
[STATEMENT] adop phase=prepare – Completed Successfully
[STATEMENT] Log file: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/adop_20120828_125348.log
adop exiting with status = 0
[appkittu@kasarla01 13358472]$ adop phase=apply
Enter the APPS password:
Enter the SYSTEM password:
Enter the WLSADMIN password:
Please wait. Validating credentials…
Enter the RUN file system context file name [/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml]:
Enter the PATCH file system context file name [/kittu/R12_2/fs2/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml]:
[STATEMENT] [END 2012/08/28 13:07:51] Performing verification of parameters
[STATEMENT] [START 2012/08/28 13:07:52] Checking for the required ENV setup
[STATEMENT] [END 2012/08/28 13:07:52] Checking for the required ENV setup
************* Start of session *************
version: 12.2.0
started at: Tue Aug 28 2012 13:07:52
APPL_TOP is set to /kittu/R12_2/fs1/EBSapps/appl
[STATEMENT] [START 2012/08/28 13:07:52] Determining admin node
[STATEMENT] [END 2012/08/28 13:07:54] Determining admin node
[STATEMENT] Recommended Worker Count: 17 Max Allowed Workers: 35
[STATEMENT] [START 2012/08/28 13:07:58] Acquiring lock on sessions table
[STATEMENT] [END 2012/08/28 13:07:59] Acquiring lock on sessions table
[STATEMENT] [START 2012/08/28 13:07:59] Checking for any pending sessions
[STATEMENT] Using the session id which is not complete for all phases
[STATEMENT] [END 2012/08/28 13:08:08] Checking for any pending sessions
[STATEMENT] [START 2012/08/28 13:08:10] Unlocking sessions table
[STATEMENT] [END 2012/08/28 13:08:11] Unlocking sessions table
[STATEMENT] [START 2012/08/28 13:08:11] adzdoptl.pl run
[STATEMENT] Session ID: 8
[STATEMENT] Phase: apply
[STATEMENT] Log file: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/adop_20120828_130727.log
[STATEMENT] [START 2012/08/28 13:08:22] Invoking admerge
[STATEMENT] [END 2012/08/28 13:08:23] Invoking admerge
[STATEMENT] [START 2012/08/28 13:08:24] apply phase
[STATEMENT] APPLY Phase START TIME: 28-08-2012 13:08:26
[STATEMENT] [START 2012/08/28 13:08:28] Performing Check for Logon Trigger existence and enablement
[STATEMENT] [END 2012/08/28 13:08:30] Performing Check for Logon Trigger existence and enablement
[STATEMENT]
autopatch will be invoked interactively. Command-line parameters can be provided below. Eg. options=nodatabaseportion, etc. If nothing, press the RETURN key
Enter command-line arguments for autopatch (if any here) :
[STATEMENT] Calling : adpatch workers=17
[STATEMENT] ADPATCH Log directory: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/apply_20120828_130727/kittu_kasarla01/log
Execute SYSTEM command : adpatch workers=17
Copyright (c) 2002, 2012 Oracle Corporation
Redwood Shores, California, USA
Oracle E-Business Suite AutoPatch
Version 12.2.0
NOTE: You may not use this utility for custom development
unless you have written permission from Oracle Corporation.
Successfully created out directory
Attention: AutoPatch no longer checks for unapplied pre-requisite patches.
You must use OAM Patch Wizard for this feature. Alternatively, you can
review the README for pre-requisite information.
Your default directory is ‘/kittu/R12_2/fs2/EBSapps/appl’.
Is this the correct APPL_TOP [Yes] ?
AutoPatch records your AutoPatch session in a text file
you specify. Enter your AutoPatch log file name or press [Return]
to accept the default file name shown in brackets.
Filename [adpatch.log] : ad13358472.log
Num Workers = 17.
You can be notified by email if a failure occurs.
Do you wish to activate this feature [No] ?
Please enter the batchsize [1000] :
Please enter the name of the Oracle E-Business Suite System that this
APPL_TOP belongs to.
The Applications System name must be unique across all Oracle
Applications Systems at your site, must be from 1 to 30 characters
long, may only contain alphanumeric and underscore characters,
and must start with a letter.
Sample Applications System names are: “prod”, “test”, “demo” and
“Development_2”.
Applications System Name [kittu] : kittu *
NOTE: If you do not currently have certain types of files installed
in this APPL_TOP, you may not be able to perform certain tasks.
Example 1: If you don’t have files used for installing or upgrading
the database installed in this area, you cannot install or upgrade
the database from this APPL_TOP.
Example 2: If you don’t have forms files installed in this area, you cannot
generate them or run them from this APPL_TOP.
Example 3: If you don’t have concurrent program files installed in this area,
you cannot relink concurrent programs or generate reports from this APPL_TOP.
Do you currently have files used for installing or upgrading the database
installed in this APPL_TOP [YES] ? YES *
Do you currently have Java and HTML files for HTML-based functionality
installed in this APPL_TOP [YES] ? YES *
Do you currently have Oracle E-Business Suite forms files installed
in this APPL_TOP [YES] ? YES *
Do you currently have concurrent program files installed
in this APPL_TOP [YES] ? YES *
Please enter the name Oracle E-Business Suite will use to identify this APPL_TOP.
The APPL_TOP name you select must be unique within an Oracle E-Business Suite
System, must be from 1 to 30 characters long, may only contain
alphanumeric and underscore characters, and must start with a letter.
Sample APPL_TOP Names are: “prod_all”, “demo3_forms2”, and “forms1”.
APPL_TOP Name [kasarla01] : kasarla01 *
You are about to apply a patch to the installation of Oracle E-Business Suite
in your ORACLE database ‘kittu_patch’
using ORACLE executables in ‘/kittu/R12_2/fs2/EBSapps/10.1.2’.
Is this the correct database [Yes] ?
AutoPatch needs the password for your ‘SYSTEM’ ORACLE schema
in order to determine your installation configuration.
Enter the password for your ‘SYSTEM’ ORACLE schema:
The ORACLE username specified below for Application Object Library
uniquely identifies your existing product group: APPLSYS
Enter the ORACLE password of Application Object Library [APPS] :
AutoPatch is verifying your username/password.
The status of various features in this run of AutoPatch is:
Feature Active? APPLTOP Data model Flags
—————————— ——- ——– ———– ———–
CHECKFILE Yes 1 1 Y N N Y N Y
PREREQ Yes 6 6 Y N N Y N Y
CONCURRENT_SESSIONS No 2 2 Y Y N Y Y N
PATCH_TIMING Yes 2 2 Y N N Y N Y
PATCH_HIST_IN_DB Yes 6 6 Y N N Y N Y
SCHEMA_SWAP Yes 1 1 Y N N Y Y Y
JAVA_WORKER Yes 1 1 Y N N Y N Y
CODELEVEL Yes 1 1 Y N N Y N Y
Identifier for the current session is 66893
Reading product information from file…
Reading language and territory information from file…
Reading language information from applUS.txt …
*** Patching the Patch File System ***
**** Running Seed Table Prepare for FND_APPLICATION ****
AutoPatch warning:
Product Data File
/kittu/R12_2/fs2/EBSapps/appl/admin/cleprod.txt
does not exist for product “cle”.
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.
Reading database to see what industry is currently installed.
Reading FND_LANGUAGES to see what is currently installed.
*** Patching the Patch File System ***
**** Running Seed Table Prepare for FND_LANGUAGES ****
Currently, the following languages are installed:
Code Language Status
—- ————————————— ———
US American English Base
F European French Install
ZHS Simplified Chinese Install
HU Hungarian Install
ESA Latin American Spanish Install
I Italian Install
PL Polish Install
Reading language information from applF.txt …
Reading language information from applZHS.txt …
Reading language information from applHU.txt …
Reading language information from applESA.txt …
Reading language information from applI.txt …
Reading language information from applPL.txt …
Your base language will be AMERICAN.
Your other languages to install are: FRENCH, SIMPLIFIED CHINESE, HUNGARIAN, LATIN AMERICAN SPANISH, ITALIAN, POLISH
Setting up module information.
Reading database for information about the modules.
Saving module information.
*** Patching the Patch File System ***
Seed table FND_LANGUAGES already prepared
Reading database for information about the products.
Reading database for information about how products depend on each other.
Reading topfile.txt …
Saving product information.
AD code level : [C]
*** Patching the Patch File System ***
Not checking the system maintenance mode.
Trying to obtain a lock…
Attempting to instantiate the current-view snapshot…
Was already instantiated. So no instantiation done this time.
**************** S T A R T O F U P L O A D ****************
Start date: Tue Aug 28 2012 13:09:11
0 “left over” javaupdates.txt files uploaded to DB: Tue Aug 28 2012 13:09:11
0 patches uploaded from the ADPSV format patch history files: Tue Aug 28 2012 13:09:11
Uploading information about files copied during the previous runs …
0 “left over” filescopied_.txt files uploaded to DB: Tue Aug 28 2012 13:09:11
****************** E N D O F U P L O A D ******************
End date: Tue Aug 28 2012 13:09:11
Enter the directory where your Oracle E-Business Suite patch has been unloaded
The default directory is [/orasoft/oraApps/OEL5_32/Beta3/patches/Online_patches/Edition_based/13358472] :
Please enter the name of your AutoPatch driver file : u13358472.drv
Getting Oracle E-Business Suite Release…
Current installed release is 12.2.0
Reading patch driver file…
Parsing and loading patch driver file…
57 lines processed.
Not checking patch integrity as integrity checking flag is turned off.
Successfully read patch driver file.
Determining target release…
Current target release is 12.2.0
Determining which bug fixes to apply…
Done determining which bug fixes to apply.
Log and Info File sync point:
Tue Aug 28 2012 13:09:23
Turning off actions that reference unrecognized products.
Log and Info File sync point:
Tue Aug 28 2012 13:09:23
End of unrecognized products checking.
AD utilities can support a maximum of 999 workers. Your
current database configuration supports a maximum of 35 workers.
Oracle recommends that you use between 17 and 35 workers.
AutoPatch will run in parallel mode.
ADOP record out.
ADOP record in.
adopCheckExistingCreateRecord: Record Patch value:13358472
ADOP record after.
Successfully updated ADOP record in ADOP repository,
Did not need to apply new applterr.txt.
Applying new applprod.txt (if any)…
Did not need to apply new applprod.txt.
Performing version checking for driver files…
Copying driver files into installation area…
No driver files were selected for copying.
Skipping…
ForceCopy driver files into installation area for Specified driver
since no such action is present for this driver file
Screening out files not valid for this installation…
Determining valid on-site files…
Skipping…
Extract object modules from libraries for Specified driver
since no such action is present for this driver file
Performing version checking…
Skipping…
Determine directories to create for Specified driver
since no such action is present for this driver file
Skipping…
Determine executables to link for Specified driver
since no such action is present for this driver file
Skipping…
Determine forms to generate for Specified driver
since no such action is present for this driver file
Skipping…
Determine Oracle Reports libraries to generate for Specified driver
since no such action is present for this driver file
Skipping…
Determine reports to generate for Specified driver
since no such action is present for this driver file
Skipping…
Determine if need to generate message files for Specified driver
since no such action is present for this driver file
Looking for active bug fixes with no active actions…
Reading customized files list (if any)…
Did not find customized files registration file
“/kittu/R12_2/fs2/EBSapps/appl/admin/applcust.txt”
The file may have been uploaded to the database.
This patch replaces the following customized files:
No customized files are replaced by this patch.
Copying files into installation area…
**********************************************************
You are running admvcode
Header information is:
$Header: aiopatch.lc 120.11.12020000.3 2012/08/13 10:14:35 shivaaga ship $
Start of admvcode session
Date/Time is Tue Aug 28 2012 13:09:28
Filelist file is: /kittu/R12_2/fs2/EBSapps/appl/admin/kittu_patch/out/copymast.txt
Patch Character Set is: us7ascii
On-site Character Set is: AL32UTF8
Log and Info File sync point:
Tue Aug 28 2012 13:09:28
Information about files copied to the APPL_TOP would be written to the
informational message file.
Character set ‘US7ASCII’ is a subset of character set ‘AL32UTF8’.
No character set conversion is required.
Copying files to APPL_TOP…
0 directories created.
2 files copied without character set conversion.
0 files copied with successful character set conversion.
2 files copied successfully.
0 files had fatal errors.
admvcode is exiting with status 0
End of admvcode session
Date/time is Tue Aug 28 2012 13:09:28
**********************************************************
Done copying files into installation area.
Skipping…
ForceCopy files into installation area for Specified driver
since no such action is present for this driver file
Skipping…
Archive object modules into product libraries for Specified driver
since no such action is present for this driver file
Skipping…
Create Directories for Specified driver
since no such action is present for this driver file
Skipping…
Relink for Specified driver
since no such action is present for this driver file
Performing second half of mirrored copies…
No mirrored copies were executed in this patch.
Updating Oracle E-Business Suite Java files if necessary…
No Oracle E-Business Suite Java files required updates.
Checking to see if any files possibly included in the product JAR files
were copied by this patch…
No files possibly included in the product JAR files
were copied by this patch.
Skipping …
Running AutoConfig to instantiate templates which affect
the generation of JAR files since none of these templates
were patched during this run of adpatch.
No product JAR files need to be re-generated.
Checking to see if adjborg.txt or any files included in
adjborg.txt were copied by this patch…
adjborg.txt and/or at least one file included in
adjborg.txt was copied by this patch.
** Updating appsborg.zip …
Reading adjborg.txt…
adearea();
No files listed in /kittu/R12_2/fs2/EBSapps/appl/admin/adjborg.txt
Ignoring …
adjborg.txt file seems to be empty.
Done reading adjborg.txt.
As adjborg.txt file is empty, skipping the generation of appsborg.zip
** Successfully updated appsborg.zip file .
Checking to see if adjborg2.txt or any files included in
adjborg2.txt were copied by this patch…
adjborg2.txt and/or at least one file included in
adjborg2.txt was copied by this patch.
** Updating appsborg2.zip …
Reading adjborg2.txt…
adearea();
No files listed in /kittu/R12_2/fs2/EBSapps/appl/admin/adjborg2.txt
Ignoring …
adjborg2.txt file seems to be empty.
Done reading adjborg2.txt.
As adjborg2.txt file is empty, skipping the generation of appsborg2.zip
** Successfully updated appsborg2.zip file .
Compiling JSP files…
Not compiling JSPs: no JSPs in patch.
No JSP files were compiled.
Number of invalid objects: 10
Getting list of invalid objects in APPS schema.
Invalid object reports are recorded in
/kittu/R12_2/fs_ne/EBSapps/log/adop/8/apply_20120828_130727/kittu_kasarla01/log/66893_preenv.*
Running SQL scripts and EXEC commands…
Determining which SQL and EXEC commands to run…
Validating PL/SQL direct execute exceptions file …
Done validating PL/SQL direct execute exceptions file.
Done determining which SQL and EXEC commands to run.
Running SQL and EXEC commands in parallel…
Creating the AD_UTIL_PARAMS table…
Table AD_UTIL_PARAMS already exists, so dropping the table and recreating it.
Creating FND_INSTALL_PROCESSES table…
Writing dependencies of jobs to run to appldep.txt file…
There are now 2 jobs remaining (current phase=A0):
0 running, 1 ready to run and 1 waiting.
Reading completed jobs from restart file (if any).
There are now 2 jobs remaining (current phase=A0):
0 running, 1 ready to run and 1 waiting.
Determining which java executables are supported by adJavaWorker…
Starting worker processes.
Worker process 1 started.
Worker process 2 started.
Worker process 3 started.
Worker process 4 started.
Worker process 5 started.
Worker process 6 started.
Worker process 7 started.
Worker process 8 started.
Worker process 9 started.
Worker process 10 started.
Worker process 11 started.
Worker process 12 started.
Worker process 13 started.
Worker process 14 started.
Worker process 15 started.
Worker process 16 started.
Worker process 17 started.
Checking if all jobs have their actual and symbolic arguments in sync….
Done.
Reading jobs from FND_INSTALL_PROCESSES table …
Done reading jobs from FND_INSTALL_PROCESSES table …
Telling workers to read ‘todo’ restart file.
Done.
************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:34
APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl
************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:34
APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl
************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:34
APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl
************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:34
APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl
************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:34
APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl
Starting phase 0 (A0): pls
************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:34
APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl
************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:34
APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl
************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:34
APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl
There are now 2 jobs remaining (current phase=A0):
0 running, 1 ready to run and 1 waiting.
************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:34
APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl
Assigned: file testeopl14s.pls on worker 1 for product fnd username APPLSYS.
************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:34
APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl
************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:34
APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl
************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:34
APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl
************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:34
APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl
************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:34
APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl
************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:34
APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl
************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:34
APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl
************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:34
APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl
Completed: file testeopl14s.pls on worker 1 for product fnd username APPLSYS.
Starting phase 1 (A1): plb
There are now 1 jobs remaining (current phase=A1):
0 running, 1 ready to run and 0 waiting.
Assigned: file testeopl14b.pls on worker 1 for product fnd username APPLSYS.
Completed: file testeopl14b.pls on worker 1 for product fnd username APPLSYS.
Telling workers to quit…
1 worker has quit. Waiting for 16 more.
All workers have quit.
Dropping FND_INSTALL_PROCESSES table…
FND_INSTALL_PROCESSES table dropped.
Dropping AD_DEFERRED_JOBS table…
AD_DEFERRED_JOBS table dropped.
Done running SQL and EXEC commands in parallel.
Running Invoker’s Rights Maintenance…
Creating the AD_UTIL_PARAMS table…
Table AD_UTIL_PARAMS already exists, so dropping the table and recreating it.
Creating FND_INSTALL_PROCESSES table…
Setting parallel context: Invoker’s Rights processing at R120
Need to perform Invoker’s Rights processing
Making job list for APPLSYS/*****
Writing dependencies of jobs to run to appldep.txt file…
There are now 36 jobs remaining (current phase=A0):
0 running, 1 ready to run and 35 waiting.
Reading completed jobs from restart file (if any).
There are now 36 jobs remaining (current phase=A0):
0 running, 1 ready to run and 35 waiting.
Determining which java executables are supported by adJavaWorker…
Starting worker processes.
Worker process 1 started.
Worker process 2 started.
Worker process 3 started.
Worker process 4 started.
Worker process 5 started.
Worker process 6 started.
************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:42
APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl
Worker process 7 started.
************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:42
APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl
************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:42
APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl
Worker process 8 started.
************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:42
APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl
************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:42
APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl
Worker process 9 started.
Worker process 10 started.
Worker process 11 started.
************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:42
APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl
Worker process 12 started.
Worker process 13 started.
Worker process 14 started.
************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:42
APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl
Worker process 15 started.
Worker process 16 started.
Worker process 17 started.
Checking if all jobs have their actual and symbolic arguments in sync….
Done.
Reading jobs from FND_INSTALL_PROCESSES table …
Done reading jobs from FND_INSTALL_PROCESSES table …
Telling workers to read ‘todo’ restart file.
Done.
************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:42
APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl
Starting phase 0 (A0): invoker
************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:43
APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl
************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:43
APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl
************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:43
APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl
************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:43
APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl
************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:43
APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl
************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:43
APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl
************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:43
APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl
************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:43
APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl
************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:43
APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl
There are now 36 jobs remaining (current phase=A0):
0 running, 1 ready to run and 35 waiting.
Assigned: file adinvset.pls on worker 1 for product ad username APPLSYS.
Completed: file adinvset.pls on worker 1 for product ad username APPLSYS.
Starting phase 1 (A1): invoker+1
There are now 35 jobs remaining (current phase=A1):
0 running, 17 ready to run and 18 waiting.
Assigned: file adinvrun.pls on worker 1 for product ad username APPLSYS.
Assigned: file adinvrun.pls on worker 2 for product ad username APPLSYS.
Assigned: file adinvrun.pls on worker 3 for product ad username APPLSYS.
Assigned: file adinvrun.pls on worker 4 for product ad username APPLSYS.
Assigned: file adinvrun.pls on worker 5 for product ad username APPLSYS.
Assigned: file adinvrun.pls on worker 6 for product ad username APPLSYS.
Assigned: file adinvrun.pls on worker 7 for product ad username APPLSYS.
Assigned: file adinvrun.pls on worker 8 for product ad username APPLSYS.
Assigned: file adinvrun.pls on worker 9 for product ad username APPLSYS.
Assigned: file adinvrun.pls on worker 10 for product ad username APPLSYS.
Assigned: file adinvrun.pls on worker 11 for product ad username APPLSYS.
Assigned: file adinvrun.pls on worker 12 for product ad username APPLSYS.
Assigned: file adinvrun.pls on worker 13 for product ad username APPLSYS.
Assigned: file adinvrun.pls on worker 14 for product ad username APPLSYS.
Assigned: file adinvrun.pls on worker 15 for product ad username APPLSYS.
Assigned: file adinvrun.pls on worker 16 for product ad username APPLSYS.
Assigned: file adinvrun.pls on worker 17 for product ad username APPLSYS.
Completed: file adinvrun.pls on worker 1 for product ad username APPLSYS.
Completed: file adinvrun.pls on worker 5 for product ad username APPLSYS.
Completed: file adinvrun.pls on worker 3 for product ad username APPLSYS.
There are now 30 jobs remaining (current phase=A1):
12 running, 0 ready to run and 18 waiting.
Completed: file adinvrun.pls on worker 9 for product ad username APPLSYS.
Completed: file adinvrun.pls on worker 10 for product ad username APPLSYS.
Completed: file adinvrun.pls on worker 2 for product ad username APPLSYS.
Completed: file adinvrun.pls on worker 4 for product ad username APPLSYS.
Completed: file adinvrun.pls on worker 6 for product ad username APPLSYS.
Completed: file adinvrun.pls on worker 7 for product ad username APPLSYS.
Completed: file adinvrun.pls on worker 8 for product ad username APPLSYS.
Completed: file adinvrun.pls on worker 12 for product ad username APPLSYS.
Completed: file adinvrun.pls on worker 15 for product ad username APPLSYS.
Completed: file adinvrun.pls on worker 16 for product ad username APPLSYS.
Completed: file adinvrun.pls on worker 11 for product ad username APPLSYS.
Completed: file adinvrun.pls on worker 13 for product ad username APPLSYS.
Completed: file adinvrun.pls on worker 14 for product ad username APPLSYS.
Completed: file adinvrun.pls on worker 17 for product ad username APPLSYS.
Starting phase 2 (A2): invoker+2
There are now 18 jobs remaining (current phase=A2):
0 running, 17 ready to run and 1 waiting.
Assigned: file adinvrn2.pls on worker 1 for product ad username APPLSYS.
Assigned: file adinvrn2.pls on worker 2 for product ad username APPLSYS.
Assigned: file adinvrn2.pls on worker 3 for product ad username APPLSYS.
Assigned: file adinvrn2.pls on worker 4 for product ad username APPLSYS.
Assigned: file adinvrn2.pls on worker 5 for product ad username APPLSYS.
Assigned: file adinvrn2.pls on worker 6 for product ad username APPLSYS.
Assigned: file adinvrn2.pls on worker 7 for product ad username APPLSYS.
Assigned: file adinvrn2.pls on worker 8 for product ad username APPLSYS.
Assigned: file adinvrn2.pls on worker 9 for product ad username APPLSYS.
Assigned: file adinvrn2.pls on worker 10 for product ad username APPLSYS.
Assigned: file adinvrn2.pls on worker 11 for product ad username APPLSYS.
Assigned: file adinvrn2.pls on worker 12 for product ad username APPLSYS.
Assigned: file adinvrn2.pls on worker 13 for product ad username APPLSYS.
Assigned: file adinvrn2.pls on worker 14 for product ad username APPLSYS.
Assigned: file adinvrn2.pls on worker 15 for product ad username APPLSYS.
Assigned: file adinvrn2.pls on worker 16 for product ad username APPLSYS.
Assigned: file adinvrn2.pls on worker 17 for product ad username APPLSYS.
Completed: file adinvrn2.pls on worker 3 for product ad username APPLSYS.
Completed: file adinvrn2.pls on worker 6 for product ad username APPLSYS.
Completed: file adinvrn2.pls on worker 1 for product ad username APPLSYS.
There are now 5 jobs remaining (current phase=A2):
4 running, 0 ready to run and 1 waiting.
Completed: file adinvrn2.pls on worker 2 for product ad username APPLSYS.
Completed: file adinvrn2.pls on worker 4 for product ad username APPLSYS.
Completed: file adinvrn2.pls on worker 5 for product ad username APPLSYS.
Completed: file adinvrn2.pls on worker 7 for product ad username APPLSYS.
Completed: file adinvrn2.pls on worker 8 for product ad username APPLSYS.
Completed: file adinvrn2.pls on worker 11 for product ad username APPLSYS.
Completed: file adinvrn2.pls on worker 12 for product ad username APPLSYS.
Completed: file adinvrn2.pls on worker 13 for product ad username APPLSYS.
Completed: file adinvrn2.pls on worker 14 for product ad username APPLSYS.
Completed: file adinvrn2.pls on worker 17 for product ad username APPLSYS.
Completed: file adinvrn2.pls on worker 9 for product ad username APPLSYS.
Completed: file adinvrn2.pls on worker 10 for product ad username APPLSYS.
Completed: file adinvrn2.pls on worker 15 for product ad username APPLSYS.
Completed: file adinvrn2.pls on worker 16 for product ad username APPLSYS.
Starting phase 3 (A3): invoker+3
There are now 1 jobs remaining (current phase=A3):
0 running, 1 ready to run and 0 waiting.
Assigned: file adinvcln.pls on worker 1 for product ad username APPLSYS.
Completed: file adinvcln.pls on worker 1 for product ad username APPLSYS.
Done with Invoker’s Rights processing.
Telling workers to quit…
All workers have quit.
Dropping FND_INSTALL_PROCESSES table…
FND_INSTALL_PROCESSES table dropped.
Dropping AD_DEFERRED_JOBS table…
AD_DEFERRED_JOBS table dropped.
Updating the checkfile repository if necessary…
Processing the last batch…
Done updating the checkfile repository…
Dropping AD_TABLE_INDEX_INFO table…
AD_TABLE_INDEX_INFO table dropped.
Done running SQL scripts and EXEC commands.
Compiling invalid objects…
sqlplus -s APPS/***** @/kittu/R12_2/fs2/EBSapps/appl/ad/12.0.0/patch/115/sql/adsqlwrapper.sql ‘/kittu/R12_2/fs2/EBSapps/appl/ad/12.0.0/sql/adutlrcmp.sql APPLSYS ***** APPS ***** ***** 17 0 NONE FALSE’
sqlplus -s APPS/***** @/kittu/R12_2/fs2/EBSapps/appl/ad/12.0.0/patch/115/sql/adsqlwrapper.sql ‘/kittu/R12_2/fs2/EBSapps/appl/ad/12.0.0/sql/adutlrcmp.sql APPLSYS ***** APPS ***** ***** 17 0 NONE FALSE’
Number of invalid objects: 9
Getting list of invalid objects in APPS schema.
Invalid object reports are recorded in
/kittu/R12_2/fs_ne/EBSapps/log/adop/8/apply_20120828_130727/kittu_kasarla01/log/66893_postenv.*
Skipping…
Generate forms library files for Specified driver
since no such action is present for this driver file
Skipping…
Generate forms menu files for Specified driver
since no such action is present for this driver file
Skipping…
Generate forms for Specified driver
since no such action is present for this driver file
Skipping…
Generate reports libraries for Specified driver
since no such action is present for this driver file
Skipping…
Generate reports for Specified driver
since no such action is present for this driver file
Skipping…
Generate Messages for Specified driver
since no such action is present for this driver file
Skipping…
Generate Workflow resource files for Specified driver
since no such action is present for this driver file
Skipping …
Running AutoConfig since none of its templates were
patched during this run of adpatch.
Saving Patch History information to Database…
Trying to obtain a lock…
> Inserted 1 patch history records (total).
ADOP record out.
ADOP record in.
adopCheckExistingCreateRecord: Record Patch value:13358472
ADOP record after.
Successfully updated ADOP record in ADOP repository,
Updating ad_check_file_history
Gathering Statistics for AD_PATCH_HIST_TEMP
Done Gathering Statistics for AD_PATCH_HIST_TEMP
>>> Inserted 1 bug history records for this patch (total).
>>>>> Inserted 0 action history records for this bug (total).
Gathering Statistics for AD_PATCH_HIST_TEMP
Done Gathering Statistics for AD_PATCH_HIST_TEMP
>>> Inserted 1 bug history records for this patch (total).
>>>>> Inserted 0 action history records for this bug (total).
Updating the current-view snapshot…
Done saving Patch History information.
About to do IREP processing…
Attempting to process IREP files …
Successfully processed IREP files.
Done IREP processing.
Copying applprod.tmp to applprod.txt (if needed)…
Did not need to copy applprod.tmp to applprod.txt.
Copying admin//applterr.txt to admin/applterr.txt (if needed)…
Did not need to copy admin/kittu_patch/applterr.txt to admin/applterr.txt.
sqlplus -s APPS/***** @/kittu/R12_2/fs2/EBSapps/appl/ad/12.0.0/patch/115/sql/adsqlwrapper.sql ‘/kittu/R12_2/fs2/EBSapps/appl/ad/12.0.0/sql/adtimrpt.sql 66893 adt66893’
A job timing report has been generated for the current session.
You should check the file
/kittu/R12_2/fs2/EBSapps/appl/admin/kittu_patch/out/adt66893.lst
for details.
Purging timing information for prior sessions.
sqlplus -s APPS/***** @/kittu/R12_2/fs2/EBSapps/appl/ad/12.0.0/patch/115/sql/adsqlwrapper.sql ‘/kittu/R12_2/fs2/EBSapps/appl/ad/12.0.0/sql/adtpurge.sql 10 1000’
Done purging timing information for prior sessions.
AutoPatch is complete.
AutoPatch may have written informational messages to the file
/kittu/R12_2/fs_ne/EBSapps/log/adop/8/apply_20120828_130727/kittu_kasarla01/log/ad13358472.lgi
Errors and warnings are listed in the log file
/kittu/R12_2/fs_ne/EBSapps/log/adop/8/apply_20120828_130727/kittu_kasarla01/log/ad13358472.log
and in other log files in the same directory.
[STATEMENT] [END 2012/08/28 13:10:24] apply phase
[STATEMENT] [START 2012/08/28 13:10:25] Generating Post Apply Reports
[STATEMENT] [START 2012/08/28 13:10:27] Generating Status Report
[STATEMENT] [START 2012/08/28 13:10:28] Generating Report to display New/Changed Objects
[STATEMENT] Report: /kittu/R12_2/fs1/EBSapps/appl/ad/12.0.0/sql/ADZDCMPED.sql
[STATEMENT] Output: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/apply_20120828_130727/kittu_kasarla01/adzdcmped.out
[STATEMENT] [END 2012/08/28 13:12:32] Generating Report to display New/Changed Objects
[STATEMENT] [START 2012/08/28 13:12:33] Generating Report to display editions
[STATEMENT] Report: /kittu/R12_2/fs1/EBSapps/appl/ad/12.0.0/sql/ADZDSHOWED.sql
[STATEMENT] Output: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/apply_20120828_130727/kittu_kasarla01/adzdshowed.out
[STATEMENT] [END 2012/08/28 13:12:37] Generating Report to display editions
[STATEMENT] [START 2012/08/28 13:12:38] Generating Report to display summary of editioned objects
[STATEMENT] Report: /kittu/R12_2/fs1/EBSapps/appl/ad/12.0.0/sql/ADZDSHOWOBJS.sql
[STATEMENT] Output: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/apply_20120828_130727/kittu_kasarla01/adzdshowobjs.out
[STATEMENT] [END 2012/08/28 13:12:45] Generating Report to display summary of editioned objects
[STATEMENT] [START 2012/08/28 13:12:46] Generating Report to display the status for seed data manager
[STATEMENT] Report: /kittu/R12_2/fs1/EBSapps/appl/ad/12.0.0/sql/ADZDSHOWSM.sql
[STATEMENT] Output: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/apply_20120828_130727/kittu_kasarla01/adzdshowsm.out
[STATEMENT] [END 2012/08/28 13:12:57] Generating Report to display the status for seed data manager
[STATEMENT] [END 2012/08/28 13:12:58] Generating Status Report
[STATEMENT] APPLY Phase END TIME: 28-08-2012 13:12:59
[STATEMENT] [START 2012/08/28 13:13:02] Generating Report to spool all logs from ad_zd_logs
[STATEMENT] Report: /kittu/R12_2/fs1/EBSapps/appl/ad/12.0.0/sql/ADZDSHOWLOG.sql
[STATEMENT] Output: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/apply_20120828_130727/kittu_kasarla01/adzdshowlog.out
[STATEMENT] [END 2012/08/28 13:13:06] Generating Report to spool all logs from ad_zd_logs
[STATEMENT] [END 2012/08/28 13:13:07] Generating Post Apply Reports
[STATEMENT] [END 2012/08/28 13:13:11] adzdoptl.pl run
[STATEMENT] adop phase=apply – Completed Successfully
[STATEMENT] Log file: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/adop_20120828_130727.log
adop exiting with status = 0
[appkittu@kasarla01 13358472]$
[appkittu@kasarla01 13358472]$ adop phase=finalize
Enter the APPS password:
Enter the SYSTEM password:
Enter the WLSADMIN password:
Please wait. Validating credentials…
Enter the RUN file system context file name [/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml]:
Enter the PATCH file system context file name [/kittu/R12_2/fs2/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml]:
[STATEMENT] [END 2012/08/28 13:15:25] Performing verification of parameters
[STATEMENT] [START 2012/08/28 13:15:26] Checking for the required ENV setup
[STATEMENT] [END 2012/08/28 13:15:26] Checking for the required ENV setup
************* Start of session *************
version: 12.2.0
started at: Tue Aug 28 2012 13:15:26
APPL_TOP is set to /kittu/R12_2/fs1/EBSapps/appl
[STATEMENT] [START 2012/08/28 13:15:26] Determining admin node
[STATEMENT] [END 2012/08/28 13:15:29] Determining admin node
[STATEMENT] [START 2012/08/28 13:15:31] Acquiring lock on sessions table
[STATEMENT] [END 2012/08/28 13:15:32] Acquiring lock on sessions table
[STATEMENT] [START 2012/08/28 13:15:32] Checking for any pending sessions
[STATEMENT] Using the session id which is not complete for all phases
[STATEMENT] [END 2012/08/28 13:15:41] Checking for any pending sessions
[STATEMENT] [START 2012/08/28 13:15:44] Unlocking sessions table
[STATEMENT] [END 2012/08/28 13:15:45] Unlocking sessions table
[STATEMENT] [START 2012/08/28 13:15:45] adzdoptl.pl run
[STATEMENT] Session ID: 8
[STATEMENT] Phase: finalize
[STATEMENT] Log file: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/adop_20120828_131449.log
[STATEMENT] [START 2012/08/28 13:15:54] finalize phase
[STATEMENT] [START 2012/08/28 13:15:55] Performing Finalize Phase steps
[STATEMENT] FINALIZE Phase START TIME: 28-08-2012 13:15:58
[STATEMENT] [START 2012/08/28 13:16:00] Making finalize call
[STATEMENT] [START 2012/08/28 13:16:08] Compiling Invalid Objects as part of Finalize
[STATEMENT] [END 2012/08/28 13:16:20] Compiling Invalid Objects as part of Finalize
[STATEMENT] [END 2012/08/28 13:16:21] Making finalize call
[STATEMENT] [START 2012/08/28 13:16:23] Soft CP shutdown
[STATEMENT] Calling: /kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/adcmctl.sh
[STATEMENT] Log file: /kittu/R12_2/fs2/inst/apps/kittu_kasarla01/logs/appl/admin/log/adcmctl.txt
You are running adcmctl.sh version 120.19.12020000.3
Shutting down concurrent managers for kittu …
ORACLE Password:
Submitted request 1784413 for CONCURRENT FND SHUTDOWN
adcmctl.sh: exiting with status 0
adcmctl.sh: check the logfile /kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adcmctl.txt for more information …
[STATEMENT] [END 2012/08/28 13:16:27] Soft CP shutdown
[STATEMENT] FINALIZE Phase END TIME: 28-08-2012 13:16:28
[STATEMENT] [END 2012/08/28 13:16:31] Performing Finalize Phase steps
[STATEMENT] [END 2012/08/28 13:16:32] finalize phase
[STATEMENT] [START 2012/08/28 13:16:33] Generating Post Finalize Reports
[STATEMENT] [START 2012/08/28 13:16:34] Generating applied patches summary report
[STATEMENT] Report: /kittu/R12_2/fs2/EBSapps/appl/ad/12.0.0/sql/ADZDPATCHSTAT.sql
[STATEMENT] Output: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/finalize_20120828_131449/kittu_kasarla01/adzdpatchstat.out
[STATEMENT] [END 2012/08/28 13:16:37] Generating applied patches summary report
[STATEMENT] [END 2012/08/28 13:16:38] Generating Post Finalize Reports
[STATEMENT] [START 2012/08/28 13:16:40] Generating Report to spool all logs from ad_zd_logs
[STATEMENT] Report: /kittu/R12_2/fs2/EBSapps/appl/ad/12.0.0/sql/ADZDSHOWLOG.sql
[STATEMENT] Output: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/finalize_20120828_131449/kittu_kasarla01/adzdshowlog.out
[STATEMENT] [END 2012/08/28 13:16:44] Generating Report to spool all logs from ad_zd_logs
[STATEMENT] [END 2012/08/28 13:16:49] adzdoptl.pl run
[STATEMENT] adop phase=finalize – Completed Successfully
[STATEMENT] Log file: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/adop_20120828_131449.log
adop exiting with status = 0
[appkittu@kasarla01 13358472]$
[appkittu@kasarla01 13358472]$ adop phase=cutover
Enter the APPS password:
Enter the SYSTEM password:
Enter the WLSADMIN password:
Please wait. Validating credentials…
Enter the RUN file system context file name [/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml]:
Enter the PATCH file system context file name [/kittu/R12_2/fs2/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml]:
[STATEMENT] [END 2012/08/28 13:17:57] Performing verification of parameters
[STATEMENT] [START 2012/08/28 13:17:57] Checking for the required ENV setup
[STATEMENT] [END 2012/08/28 13:17:58] Checking for the required ENV setup
************* Start of session *************
version: 12.2.0
started at: Tue Aug 28 2012 13:17:58
APPL_TOP is set to /kittu/R12_2/fs1/EBSapps/appl
[STATEMENT] [START 2012/08/28 13:17:58] Determining admin node
[STATEMENT] [END 2012/08/28 13:18:00] Determining admin node
[STATEMENT] [START 2012/08/28 13:18:03] Acquiring lock on sessions table
[STATEMENT] [END 2012/08/28 13:18:04] Acquiring lock on sessions table
[STATEMENT] [START 2012/08/28 13:18:04] Checking for any pending sessions
[STATEMENT] Using the session id which is not complete for all phases
[STATEMENT] [END 2012/08/28 13:18:13] Checking for any pending sessions
[STATEMENT] [START 2012/08/28 13:18:15] Unlocking sessions table
[STATEMENT] [END 2012/08/28 13:18:16] Unlocking sessions table
[STATEMENT] [START 2012/08/28 13:18:16] adzdoptl.pl run
[STATEMENT] Session ID: 8
[STATEMENT] Phase: cutover
[STATEMENT] Log file: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/adop_20120828_131724.log
[STATEMENT] [START 2012/08/28 13:18:27] cutover phase
[STATEMENT] CUTOVER Phase START TIME: 28-08-2012 13:18:28
[STATEMENT] [START 2012/08/28 13:18:30] Performing Check for Logon Trigger existence and enablement
[STATEMENT] [END 2012/08/28 13:18:32] Performing Check for Logon Trigger existence and enablement
[STATEMENT] [START 2012/08/28 13:18:35] Performing Cutover Phase steps
[STATEMENT] Finalize phase has been run already.
[STATEMENT] [START 2012/08/28 13:18:42] ICM Abort
[STATEMENT] Log file: UNDEF
You are running adcmctl.sh version 120.19.12020000.3
Aborting concurrent managers for kittu …
ORACLE Password:
Submitted request 1784414 for CONCURRENT FND ABORT
adcmctl.sh: exiting with status 0
adcmctl.sh: check the logfile /kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adcmctl.txt for more information …
[STATEMENT] [END 2012/08/28 13:18:45] ICM Abort
[STATEMENT] [START 2012/08/28 13:18:46] Waiting for ICM to go down
[STATEMENT] [START 2012/08/28 13:18:48] ICM Status
[STATEMENT] [END 2012/08/28 13:18:50] ICM Status
[STATEMENT] [END 2012/08/28 13:19:53] Waiting for ICM to go down
[STATEMENT] [START 2012/08/28 13:19:56] Force Shutdown
[STATEMENT] Calling: /kittu/R12_2/fs1/EBSapps/appl/ad/12.0.0/patch/115/bin/txkADOPCutOverPhaseCtrlScript.pl
[STATEMENT] Output directory: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/cutover_20120828_131724/kittu_kasarla01
Program : started @ Tue Aug 28 13:19:59 2012
*** Log File = /kittu/R12_2/fs_ne/EBSapps/log/adop/8/cutover_20120828_131724/kittu_kasarla01/TXK_CTRL_forceshutdown_Tue_Aug_28_13_19_59_2012/txkADOPCutOverPhaseCtrlScript_Tue_Aug_28_13_19_59_2012.log
Program : completed @ Tue Aug 28 13:20:51 2012
[STATEMENT] [END 2012/08/28 13:20:51] Force Shutdown
[STATEMENT] [START 2012/08/28 13:22:04] Cancelling ADZDPATCH concurrent program
[STATEMENT] Concurrent Request Number: 1784409
[STATEMENT] [END 2012/08/28 13:22:08] Cancelling ADZDPATCH concurrent program
[STATEMENT] WARNING: Concurrent Programs have been aborted during this cutover.
[STATEMENT] To see the list of aborted jobs please review the log file or the Concurrent Manager OAM pages.
[STATEMENT] Please restart the CP jobs manually.
[STATEMENT] [START 2012/08/28 13:22:15] Performing Automatic DB cutover
[STATEMENT] [Start 2012/08/28 13:22:16] ADOP::DefaultsFileUtil::substituteDefaultsFileTokensForPatchApplTop
[STATEMENT] Reading defaults file /kittu/R12_2/fs2/EBSapps/appl/admin/kittu_patch/adalldefaults.txt
[STATEMENT] Substituting tokens …
[STATEMENT] Regenerating defaults file …
[STATEMENT] [End 2012/08/28 13:22:16] ADOP::DefaultsFileUtil::substituteDefaultsFileTokensForPatchApplTop
[STATEMENT] Calling: adpatch options=hotpatch,nocompiledb interactive=no console=no workers=19 restart=no abandon=yes defaultsfile=/kittu/R12_2/fs2/EBSapps/appl/admin/kittu_patch/adalldefaults.txt patchtop=/kittu/R12_2/fs2/EBSapps/appl/ad/12.0.0/patch/115/driver logfile=cutover.log driver=ucutover.drv
[STATEMENT] ADPATCH Log directory: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/cutover_20120828_131724/kittu_kasarla01/log
[STATEMENT] Running: adpatch options=hotpatch,nocompiledb interactive=no console=no workers=19 restart=no abandon=yes defaultsfile=/kittu/R12_2/fs2/EBSapps/appl/admin/kittu_patch/adalldefaults.txt patchtop=/kittu/R12_2/fs2/EBSapps/appl/ad/12.0.0/patch/115/driver logfile=cutover.log driver=ucutover.drv stdin=yes
Successfully created out directory
[STATEMENT] [END 2012/08/28 13:22:41] Performing Automatic DB cutover
[STATEMENT] [START 2012/08/28 13:22:42] Loading Jar files to DB
[STATEMENT] No jars found to load
[STATEMENT] [END 2012/08/28 13:22:44] Loading Jar files to DB
[STATEMENT] [START 2012/08/28 13:22:45] Setting Patch Edition as Default Edition
[STATEMENT] [END 2012/08/28 13:22:51] Setting Patch Edition as Default Edition
[STATEMENT] [START 2012/08/28 13:22:57] Atomic File System Cutover
Program : started @ Tue Aug 28 13:22:58 2012
*** Log File = /kittu/R12_2/fs_ne/EBSapps/log/adop/8/cutover_20120828_131724/kittu_kasarla01/TXK_CTRL_ctxupdate_Tue_Aug_28_13_22_58_2012/txkADOPCutOverPhaseCtrlScript_Tue_Aug_28_13_22_58_2012.log
Program : completed @ Tue Aug 28 13:24:39 2012
[STATEMENT] [END 2012/08/28 13:24:39] Atomic File System Cutover
Broadcast message from appkittu (Tue Aug 28 13:24:42 2012):
The context of the Oracle E-Business Suite system kittu
has been changed after the completion of Online Patching.
All users connected to the Run or Patch file system must now
re-source the Oracle E-Business Suite Applications Environment.
[STATEMENT] [START 2012/08/28 13:24:43] Force Startup
Program : started @ Tue Aug 28 13:24:44 2012
*** Log File = /kittu/R12_2/fs_ne/EBSapps/log/adop/8/cutover_20120828_131724/kittu_kasarla01/TXK_CTRL_forcestartup_Tue_Aug_28_13_24_44_2012/txkADOPCutOverPhaseCtrlScript_Tue_Aug_28_13_24_44_2012.log
Program : completed @ Tue Aug 28 13:29:47 2012
[STATEMENT] [END 2012/08/28 13:29:47] Force Startup
[STATEMENT] Done with cutover phase
[STATEMENT] [END 2012/08/28 13:29:52] Performing Cutover Phase steps
[STATEMENT] [END 2012/08/28 13:29:57] cutover phase
[STATEMENT] [START 2012/08/28 13:29:58] Generating Post Cutover Reports
[STATEMENT] [START 2012/08/28 13:29:59] Generating Report to display summary of Covered Objects per Edition
[STATEMENT] Report: /kittu/R12_2/fs2/EBSapps/appl/ad/12.0.0/sql/ADZDCOBJS.sql
[STATEMENT] Output: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/cutover_20120828_131724/kittu_kasarla01/adzdcobjs.out
[STATEMENT] [END 2012/08/28 13:30:35] Generating Report to display summary of Covered Objects per Edition
[STATEMENT] [END 2012/08/28 13:30:37] Generating Post Cutover Reports
[STATEMENT] CUTOVER Phase END TIME: 28-08-2012 13:30:39
[STATEMENT] [START 2012/08/28 13:30:41] Generating Report to spool all logs from ad_zd_logs
[STATEMENT] Report: /kittu/R12_2/fs2/EBSapps/appl/ad/12.0.0/sql/ADZDSHOWLOG.sql
[STATEMENT] Output: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/cutover_20120828_131724/kittu_kasarla01/adzdshowlog.out
[STATEMENT] [END 2012/08/28 13:30:45] Generating Report to spool all logs from ad_zd_logs
[STATEMENT] [END 2012/08/28 13:30:46] adzdoptl.pl run
Broadcast message from appkittu (Tue Aug 28 13:30:46 2012):
The context of the Oracle E-Business Suite system kittu
has been changed after the completion of Online Patching.
All users connected to the Run or Patch file system must now
re-source the Oracle E-Business Suite Applications Environment.
[STATEMENT] adop phase=cutover – Completed Successfully
[STATEMENT] Log file: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/adop_20120828_131724.log
adop exiting with status = 0
[appkittu@kasarla01 13358472]$ adop phase=cleanup
Enter the APPS password:
Enter the SYSTEM password:
Enter the WLSADMIN password:
Please wait. Validating credentials…
Enter the RUN file system context file name [/kittu/R12_2/fs2/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml]:
Enter the PATCH file system context file name [/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml]:
[STATEMENT] [END 2012/08/28 13:32:20] Performing verification of parameters
[STATEMENT] [START 2012/08/28 13:32:21] Checking for the required ENV setup
[STATEMENT] [END 2012/08/28 13:32:21] Checking for the required ENV setup
************* Start of session *************
version: 12.2.0
started at: Tue Aug 28 2012 13:32:21
APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl
[STATEMENT] [START 2012/08/28 13:32:21] Determining admin node
[STATEMENT] [END 2012/08/28 13:32:24] Determining admin node
[STATEMENT] [START 2012/08/28 13:32:26] Acquiring lock on sessions table
[STATEMENT] [END 2012/08/28 13:32:27] Acquiring lock on sessions table
[STATEMENT] [START 2012/08/28 13:32:27] Checking for any pending sessions
[STATEMENT] Cleanup is not done in earlier session
[STATEMENT] [START 2012/08/28 13:32:34] Unlocking sessions table
[STATEMENT] [END 2012/08/28 13:32:35] Unlocking sessions table
[STATEMENT] [START 2012/08/28 13:32:35] adzdoptl.pl run
[STATEMENT] Session ID: 8
[STATEMENT] Phase: cleanup
[STATEMENT] Log file: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/adop_20120828_133151.log
[STATEMENT] [START 2012/08/28 13:32:47] cleanup phase
[STATEMENT] CLEANUP Phase START TIME: 28-08-2012 13:32:48
[STATEMENT] [START 2012/08/28 13:32:50] Performing Cleanup steps
[STATEMENT] [START 2012/08/28 13:32:53] Running CLEANUP ddls in ddl handler table
[STATEMENT] [Start 2012/08/28 13:32:54] ADOP::DefaultsFileUtil::substituteDefaultsFileTokensForPatchApplTop
[STATEMENT] Reading defaults file /kittu/R12_2/fs2/EBSapps/appl/admin/kittu/adalldefaults.txt
[STATEMENT] Substituting tokens …
[STATEMENT] Regenerating defaults file …
[STATEMENT] [End 2012/08/28 13:32:55] ADOP::DefaultsFileUtil::substituteDefaultsFileTokensForPatchApplTop
[STATEMENT] Calling: adpatch options=hotpatch,nocompiledb interactive=no console=no workers=17 restart=no abandon=yes defaultsfile=/kittu/R12_2/fs2/EBSapps/appl/admin/kittu/adalldefaults.txt patchtop=/kittu/R12_2/fs2/EBSapps/appl/ad/12.0.0/patch/115/driver logfile=cleanup.log driver=ucleanup.drv
[STATEMENT] ADPATCH Log directory: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/cleanup_20120828_133151/kittu_kasarla01/log
[STATEMENT] Running: adpatch options=hotpatch,nocompiledb interactive=no console=no workers=17 restart=no abandon=yes defaultsfile=/kittu/R12_2/fs2/EBSapps/appl/admin/kittu/adalldefaults.txt patchtop=/kittu/R12_2/fs2/EBSapps/appl/ad/12.0.0/patch/115/driver logfile=cleanup.log driver=ucleanup.drv stdin=yes
Successfully created out directory
[STATEMENT] [END 2012/08/28 13:33:20] Running CLEANUP ddls in ddl handler table
[STATEMENT] [START 2012/08/28 13:33:22] Generating Report to display all the DDLs from ad_zd_ddl_handler
[STATEMENT] Report: /kittu/R12_2/fs2/EBSapps/appl/ad/12.0.0/sql/ADZDALLDDLS.sql
[STATEMENT] Output: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/cleanup_20120828_133151/kittu_kasarla01/adzdallddls.out
[STATEMENT] [END 2012/08/28 13:33:25] Generating Report to display all the DDLs from ad_zd_ddl_handler
[STATEMENT] Calling cleanup in STANDARD mode
[STATEMENT] [WARN] Cleanup may take a while. Please wait.
[STATEMENT] [END 2012/08/28 13:34:41] Performing Cleanup steps
[STATEMENT] [START 2012/08/28 13:34:43] Generating Report to display the cleanup status
[STATEMENT] Report: /kittu/R12_2/fs2/EBSapps/appl/ad/12.0.0/sql/ADZDCLEANUPRP.sql
[STATEMENT] Output: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/cleanup_20120828_133151/kittu_kasarla01/adzdcleanuprp.out
[STATEMENT] [END 2012/08/28 13:35:16] Generating Report to display the cleanup status
[STATEMENT] CLEANUP Phase END TIME: 28-08-2012 13:35:21
[STATEMENT] [END 2012/08/28 13:35:23] cleanup phase
[STATEMENT] [START 2012/08/28 13:35:28] Generating Report to spool all logs from ad_zd_logs
[STATEMENT] Report: /kittu/R12_2/fs2/EBSapps/appl/ad/12.0.0/sql/ADZDSHOWLOG.sql
[STATEMENT] Output: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/cleanup_20120828_133151/kittu_kasarla01/adzdshowlog.out
[STATEMENT] [END 2012/08/28 13:35:31] Generating Report to spool all logs from ad_zd_logs
[STATEMENT] [END 2012/08/28 13:35:32] adzdoptl.pl run
[STATEMENT] adop phase=cleanup – Completed Successfully
[STATEMENT] Log file: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/adop_20120828_133151.log
adop exiting with status = 0
OCM configuration
====================== on 1st apps node ============================
|
11.2.0.2 to 11.2.0.3 DB upgrade
-- i have already installed 11.2.0.3 Binaries |
Active DB cloning
CHECK THE SOURCE DB SIZE
CHECK THE SOURCE AND TARGET DB OS VERIONS
CHECK THE LOCATION AND COUNT OF THE FILES
CHECK THE ARCHIVE IS ENABLED OR NOT
Database log mode No Archive Mode
COLLECT THE INVALID OBJECTS DETAILS
TAKE BACKUP OF PASSWORDS IN TARGET DB
CHECK DB LINK DETAILS IN TARGET DB
GET THE DDL FOR DB LINKS IN TARGET DB
CHECK THE DIRECTORIES IN TARGET DB
OWNER DIRECTORY_NAME DIRECTORY_PATH
GRANTEE OWNER TABLE_NAME PRIVILEGE
Database altered.
BACKUP THE PARAMETER FILE IN TARGET DB
PREPARE THE TARGET DB PARAMETER FILE
UPDATE TNS DETAILS IN PROD AND STAGE AND CHECK THE CONNECTIVITY
COMMENT THE CRONJOBS AND CHECK ANY BACKUP JOBS ARE RUNNING
START THE CLONING
using target database control file instead of recovery catalog allocated channel: C2 allocated channel: C3 allocated channel: C4 allocated channel: C5 allocated channel: DUP1 allocated channel: DUP2 allocated channel: DUP3 allocated channel: DUP4 allocated channel: DUP5 allocated channel: DUP6 Starting Duplicate Db at 11-JAN-13 contents of Memory Script: sql statement: create spfile from memory contents of Memory Script: Oracle instance shut down connected to auxiliary database (not started) Total System Global Area 3206836224 bytes Fixed Size 2230768 bytes contents of Memory Script: sql statement: alter system set db_name = ”prod01” comment= ”Modified by RMAN duplicate” scope=spfile sql statement: alter system set db_unique_name = ”dev01” comment= ”Modified by RMAN duplicate” scope=spfile Oracle instance shut down Oracle instance started Total System Global Area 3206836224 bytes Fixed Size 2230768 bytes Starting backup at 11-JAN-13 Starting restore at 11-JAN-13 channel DUP2: skipped, AUTOBACKUP already found Starting restore at 11-JAN-13 channel DUP2: skipped, AUTOBACKUP already found database mounted contents of Memory Script: executing command: SET NEWNAME executing command: SET NEWNAME executing command: SET NEWNAME executing command: SET NEWNAME executing command: SET NEWNAME executing command: SET NEWNAME executing command: SET NEWNAME executing command: SET NEWNAME executing command: SET NEWNAME executing command: SET NEWNAME executing command: SET NEWNAME executing command: SET NEWNAME executing command: SET NEWNAME executing command: SET NEWNAME executing command: SET NEWNAME Starting backup at 11-JAN-13 sql statement: alter system archive log current contents of Memory Script: Starting backup at 11-JAN-13 cataloged archived log datafile 1 switched to datafile copy contents of Memory Script: executing command: SET until clause Starting recover at 11-JAN-13 starting media recovery archived log for thread 1 with sequence 29211 is already on disk as file /u01/arch01/oracle/dev01/log_29211_1_746031907.arc Total System Global Area 3206836224 bytes Fixed Size 2230768 bytes contents of Memory Script: sql statement: alter system set db_name = ”dev01” comment= ”Reset to original value by RMAN” scope=spfile sql statement: alter system reset db_unique_name scope=spfile Oracle instance shut down connected to auxiliary database (not started) Total System Global Area 3206836224 bytes Fixed Size 2230768 bytes contents of Memory Script: executing command: SET NEWNAME renamed tempfile 1 to /u01/dev/oracle/dev01/data/temp01.dbf in control file cataloged datafile copy datafile 2 switched to datafile copy Ignoring error, reattempt command after duplicate finishes contents of Memory Script: database opened RMAN> |
CHECK THE STATUS OF DATABASE
SQL> select NAME,LOG_MODE,CREATED,OPEN_MODE from v$database; |
NAME LOG_MODE CREATED OPEN_MODE
——— ———— —————— ——————–
dev01 ARCHIVELOG 11-JAN-13 READ WRITE
CHECK THE INSTANCE STATUS
SQL> select INSTANCE_NAME,STATUS,STARTUP_TIME fr ,LOGINS from v$instance; |
INSTANCE_NAME STATUS STARTUP_TIME LOGINS
—————- ———— —————— ———-
dev01 OPEN 11-JAN-13 ALLOWED
CHECK THE DATABASE FILE LOCATION
CHANGE THE PASSWORDS
DROP THE DB LINKS AND RECREATE IT BY EXECUTING THE DDL
DROP THE DIRECOTORIES AND RECREATE IT BY USING ABOVE LIST
CHECK ANY NEW INVALIDS IF FOUND COMPILE THOSE
10g to 11gr2 upgrade
INSTALL 11.2.0.2 BINARIES IN NEW DIRECTORY APPLY THE BELOW LIST ARE THE PATCHES THAT HAVE BEEN APPLIED:
ON OLD ENVIRONMENT COLLECT THE FOLLOWING INFO
PREPARE THE BACKUP OF OLD ENVIRONMENT
COMMENT THE CRON ENTRIES
CHECK ANY BACKUP JOBS ARE RUNNING ?
Stop the Database
TAKE COLD BACKUP AND CHECK THE COUNT OF ALL BACKEDUP FILES
Put the database in NOARCHIVELOG mode
COPY THE UTLU112I.SQL FILE FROM NEW ENVIRONMENT TO OLD ENVIRONMENT AND RUN
REVIEW THE ABOVE OUTPUT AND TAKE ACTION
SHUTDOWN THE OLD DATABASE AND LISTENER
Timezone info
START THE NEW DATABASE FOR UPGRADE
Verify the upgrade.
Upgrade the Timezone.
Post installation tasks that need to be recorded in the database (PSU)
Verify the listener and tnsnames files
RE-LOGIN WITH THE ENV AND PUT THE DATABASE IN ARCHIVELOG MODE
validate the database
Start the listener
Re configure the rman |
11g DB Creation
we are now creating a eamty database with same names (datafiles and tablespace) as source database Create ASM directories for datafiles
check the destination path
create database
Listener configuration in grid
Check the Health of the Cluster – (Clusterized Command)
All Oracle Instances – (Database Status)
Single Oracle Instance – (Status of Specific Instance)
Node Applications – (Status)
Node Applications – (Configuration)
List all Configured Databases
Database – (Configuration)
ASM – (Status)
ASM – (Configuration)
TNS listener – (Status)
TNS listener – (Configuration)
SCAN – (Status)
SCAN – (Configuration)
VIP – (Status of Specific Node)
VIP – (Configuration of Specific Node)
Configuration for Node Applications – (VIP, GSD, ONS, Listener)
Verifying Clock Synchronization across the Cluster Nodes
All running instances in the cluster – (SQL)
INST_ID INST_NO INST_NAME PAR STATUS DB_STATUS STATE HOST All database files and the ASM disk group they reside in – (SQL)
ASM Disk Volumes – (SQL)
|
11gR2 software install
ORACLE_BASE Verificatrion
Set the inventory
unzip the softwares
Verify Oracle Database Installation with CVU
RDBMS Software Installation
Install recomented and PSU patches to the binaries
|
RAC Implementation
ORACLE_BASE Verificatrion
Make sure ORACLE_BASE for Grid Infrastructure is different than ORACLE_BASE for Oracle RDBMS.
OS User’s $HOME ==> /u01/oracle
ORACLE_BASE ==> /u01/oracle/grid_base
ORACLE_HOME ==> /u01/oracle/grid/11.2.0.2
Central Inventory ==> /u01/oracle/oraInventory
su – root
mkdir -p /u01/oracle/grid_base
mkdir -p /u01/oracle/grid/11.2.0.2
mkdir -p /u01/oracle/oraInventory
cd /u01
chown -R grid:oinstall oracle
chmod -R 775 oracle
Set the Inventory
cat /etc/oraInst.loc
inventory_loc=/u01/oracle/oraInventory
inst_group=oinstall
User and Groups
User User ID Purpose
grid 1794 User that owns the 11gR2 Grid binaries.
oracle 1793 User that owns the 11gR2 Oracle binaries.
Following should be how above users should be setup in /etc/passwd
grid:x:1794:1757:grid@:/u01/oracle:/bin/ksh
oracle:x:1793:1755:oracle@://oracle:/bin/ksh
Group Group ID Purpose
asmdba 1760 ASM Database Administrator Group(OSDBA for ASM).
asmoper 1759 ASM Operators Group, SYSOPER for ASM privileges(OSOPER for ASM).
oinstall 1757 Group able to write to the Oracle central inventory(oraInventory).
asmadmin 1758 Oracle ASM Group, granted SYSASM privileges(OSASM).
dba 1755 Group that will have SYSDBA database privileges(OSDBA).
oper 1756 Group that will have SYSOPER database privileges(OSOPER).
Following should be how above groups should be set in /etc/group
asmdba:x:1760:grid,oracle
asmoper:x:1759:grid
oinstall:x:1757:oracle
asmadmin:x:1758:grid
dba:x:1755:oracle,grid
oper:x:1756:oracle
Change primary group of oracle id to dba
usermod –g dba oracle
Change $HOME of oracle and grid users to /home/oracle and /home/grid respectively
As root:
usermod –d /home/oracle oracle
usermod –d /home/grid grid
Change default shell of oracle, grid user to /bin/ksh from /bin/bash
As root:
chsh -s /bin/ksh oracle
chsh -s /bin/ksh grid
The /etc/profile should have the following entry
if [ $SHELL = “/bin/ksh” ]; then
ulimit -u 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
set the enviconment in [ALL NODES]
export ORACLE_SID=+ASM1
export ORACLE_HOME=/u01/oracle/grid/11.2.0.2
export GRID_HOME=/u01/oracle/grid/11.2.0.2
export ORACLE_BASE=/u01/oracle/grid_base
export ORACLE_TERM=vt100
export PATH=$PATH:$ORACLE_HOME/bin:$GRID_HOME/bin:$ORACLE_HOME/OPatch:$ORACLE_HOME/jdk/bin:$HOME/bin:.
export TNS_ADMIN=$ORACLE_HOME/network/admin;export TNS_ADMIN
Create SSH Directory and SSH Keys in [ALL NODES]
su – grid
[grid@kasarla1 ~]$ mkdir ~/.ssh
[grid@kasarla1 ~]$ chmod 700 ~/.ssh
[grid@kasarla1 ~]$ /usr/bin/ssh-keygen –t rsa
Enter file in which to save the key (/home/grid/.ssh/id_rsa): [ENTER]
Enter passphrase (empty for no passphrase): [ENTER]
Enter same passphrase again: [ENTER]
This command writes the RSA public key to the ~/.ssh/id_rsa.pub file and the private key to the ~/.ssh/id_rsa file.
Never distribute the private key to anyone not authorized to perform Oracle software installations.
Add all Keys to a common authorized_keys file and copy that to [ALL NODES]
[grid@kasarla1 ~]$ ssh kasarla1 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
Are you sure you want to continue connecting (yes/no)? YES
grid@kasarla1’s password: XXXXX
[grid@kasarla1 ~]$ ssh kasarla2 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
Are you sure you want to continue connecting (yes/no)? YES
grid@kasarla2’s password: XXXXX
now need to copy the authorized key file to the remaining nodes in the cluster.
[grid@kasarla1 ~]$ scp ~/.ssh/authorized_keys kasarla2:.ssh/authorized_keys
[grid@kasarla1 ~]$ chmod 600 ~/.ssh/authorized_keys
[grid@kasarla2 ~]$ chmod 600 ~/.ssh/authorized_keys
veryfy the connections
[grid@kasarla1 ~]$ ssh kasarla1 “date;hostname”
[grid@kasarla1 ~]$ ssh kasarla2 “date;hostname”
Make sure that ASM Lib RPMs are installed [ALL NODES]
kasarla1[]_grid> rpm -qa –queryformat “%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n”| grep oracleasm | sort
oracleasm-2.6.18-164.el5-2.0.5-1.el5 (x86_64)
oracleasmlib-2.0.4-1.el5 (x86_64)
oracleasm-support-2.1.3-1.el5 (x86_64)
Configure ASM Lib [ALL NODES]
[root@kasarla1 ~]# /usr/sbin/oracleasm configure -i -e -u grid -g asmadmin -o “OID” -x “sd”
Configuring the Oracle ASM library driver.
This will configure the on-boot properties of the Oracle ASM library
driver. The following questions will determine whether the driver is
loaded on boot and what permissions it will have. The current values
will be shown in brackets (‘[]’). Hitting without typing an
answer will keep that current value. Ctrl-C will abort.
Default user to own the driver interface [grid]:
Default group to own the driver interface [asmadmin]:
Start Oracle ASM library driver on boot (y/n) [y]:
Scan for Oracle ASM disks on boot (y/n) [y]:
Writing Oracle ASM library driver configuration: done
[root@kasarla1 ~]# service oracleasm restart
Dropping Oracle ASMLib disks: [ OK ]
Shutting down the Oracle ASMLib driver: [ OK ]
Initializing the Oracle ASMLib driver: [ OK ]
Scanning the system for Oracle ASMLib disks: [ OK ]
Create ASM disks
[root@kasarla1 ~]# ./create.ksh
cat create.ksh
/usr/sbin/oracleasm createdisk u01_DATA01 /dev/mpath/ASM_EMC
/usr/sbin/oracleasm createdisk u01_DATA02 /dev/mpath/ASM_EMC
/usr/sbin/oracleasm createdisk u01_DATA03 /dev/mpath/ASM_EMC
/usr/sbin/oracleasm createdisk u01_DATA04 /dev/mpath/ASM_EMC
On 1st Node List ASM Disk Group Information
[root@kasarla1 ~]# /usr/sbin/oracleasm listdisks
u01_DATA01
u01_DATA02
u01_DATA03
u01_DATA04
On 2nd Node – Scandisk to Pick up ASM Disks
[root@kasarla1 ~]# /usr/sbin/oracleasm listdisks
u01_DATA01
u01_DATA02
u01_DATA03
u01_DATA04
NOW List ASM Disk Group Information in 2nd Node
[root@kasarla2 ~]# /usr/sbin/oracleasm listdisks
u01_DATA01
u01_DATA02
u01_DATA03
u01_DATA04
Make sure all Public IPs , Private IPs , VIPs and SCAN are all fine [ALL NODES]
[root@kasarla1 ~]# /usr/bin/nslookup kittu-scan.krishnareddy.com
[root@kasarla1 ~]# /usr/bin/nslookup kasarla1.krishnareddy.com
[root@kasarla1 ~]# /usr/bin/nslookup kasarla1-vip.krishnareddy.com
Ping Public and Private IPs
ping –c 3 kasarla1
ping –c 3 kasarla1.krishnareddy.com
ping –c 3 kasarla1-priv
ping –c 3 kasarla1-priv.krishnareddy.com
Server Build Check
As a root linux_build_verification_script.sh
Verify Oracle Clusterware Requirements with CVU all the checks should be pass
download the newest version of cluvfy from: http://www.oracle.com/technology/products/database/clustering/cvu/cvu_download_homepage.html
[root@kasarla1 ~]./runcluvfy.sh stage -pre crsinst -n kasarla1,kasarla2 -fixup –verbose > /home/grid/kasarla1-kasarla2-cluvfy.grid.output
Below WARNINGs can be safely ignored:
WARNING:
PRVF-7584 : Multiple versions of package “elfutils-libelf-devel” found on node kasarla1: elfutils-libelf-devel-0.137-3.el5 (i386),elfutils-libelf-devel-0.137-3.el5 (x86_64)
WARNING:
PRVF-7584 : Multiple versions of package “elfutils-libelf-devel” found on node kasarla2: elfutils-libelf-devel-0.137-3.el5 (i386),elfutils-libelf-devel-0.137-3.el5 (x86_64)
Result: Package existence check passed for “elfutils-libelf-devel-0.125( x86_64)”
Install the cvuqdisk Packages for Linux
Install the operating system package cvuqdisk to both Oracle RAC nodes. Without cvuqdisk, Cluster Verification Utility cannot discover shared disks, and you will receive the error message “Package cvuqdisk not installed” when the Cluster Verification Utility is run (either manually or at the end of the Oracle grid infrastructure installation).
To install the cvuqdisk RPM, complete the following procedures
as a root
[root@kasarla1 ~]# cd /tmp/CVU_11.2.0.2.0_grid
[root@kasarla1 CVU_11.2.0.2.0_grid]# rpm -e cvuqdisk
[root@kasarla1 CVU_11.2.0.2.0_grid]# rpm -iv cvuqdisk-1.0.9-1.rpm
Preparing packages for installation…
Using default group oinstall to install package
cvuqdisk-1.0.9-1
[root@kasarla1 CVU_11.2.0.2.0_grid]# ls -l /usr/sbin/cvuqdisk
-rwsr-xr-x 1 root oinstall 10928 Aug 20 2010 /usr/sbin/cvuqdisk
Verify Hardware and Operative System Setup with CVU [passed]
[grid@kasarla1 grid]/stage/grid/runcluvfy.sh stage -post hwos -n kasarla1,kasarla2 -verbose > /home/grid/kasarla1-kasarla2-cluvfy.hwos.grid.output
Validate multicasting for private interconnect (identify from /etc/hosts – use priv)
Multicasting Requirement [ID 1212703.1] download from the location
gunzip mcasttest.tgz
tar xvf mcasttest.tar
[root@kasarla1 mcasttest] perl mcasttest.pl -n kasarla1,kasarla2 -i bond1
########### Setup for node kasarla1 ##########
Checking node access ‘kasarla1’
Checking node login ‘kasarla1’
Checking/Creating Directory /tmp/mcasttest for binary on node ‘kasarla1’
Distributing mcast2 binary to node ‘kasarla1’
########### Setup for node kasarla2 ##########
Checking node access ‘kasarla2’
Checking node login ‘kasarla2’
Checking/Creating Directory /tmp/mcasttest for binary on node ‘kasarla2’
Distributing mcast2 binary to node ‘kasarla2’
########### testing Multicast on all nodes ##########
Test for Multicast address 1.2.3..0
Jul 8 02:03:12 | Multicast Succeeded for bond1 using address 1.2.3..0:42000
Test for Multicast address 1.2.3..251
[root@kasarla1 ~]# /sbin/ifconfig bond1
Grid Infrastructure Installation
[grid@kasarla1 ~]$ cd /stage/grid
kasarla1[grid]_grid> ./runInstaller
./root.sh in [ALL NODES]
ASM Disk Groups Installation
SET LINESIZE 145
SET PAGESIZE 9999
SET VERIFY off
COLUMN disk_group_name FORMAT a20 HEAD ‘Disk Group Name’
COLUMN disk_file_name FORMAT a20 HEAD ‘File Name’
COLUMN total_mb FORMAT 999,999,999 HEAD ‘File Size (MB)’
COLUMN used_mb FORMAT 999,999,999 HEAD ‘Used Size (MB)’
COLUMN pct_used FORMAT 999.99 HEAD ‘Pct. Used’
break on report on disk_group_name skip 1
compute sum label “” of total_mb used_mb on disk_group_name
compute sum label “Grand Total: ” of total_mb used_mb on report
SELECT
NVL(a.name, ‘[CANDIDATE]’) disk_group_name
, b.name disk_file_name
, b.total_mb total_mb
, (b.total_mb – b.free_mb) used_mb
, ROUND((1- (b.free_mb / b.total_mb))*100, 2) pct_used
FROM
v$asm_diskgroup a RIGHT OUTER JOIN v$asm_disk b USING (group_number)
ORDER BY
a.name
/
kasarla1[grid]_grid> asmca &
Upgrade OPatch – GRID
unzip p6880880_110000_Linux-x86-64.zip in all grid homes
OPatch Version should be : 11.2.0.1.4
OCM Configuration [ALL NODES]
kasarla1[grid]_grid> $ORACLE_HOME/OPatch/ocm/bin/emocmrsp
OCM Installation Response Generator 10.3.1.2.0 – Production
Copyright (c) 0005, 0009, Oracle and/or its affiliates. All rights reserved.
Provide your email address to be informed of security issues, install and
initiate Oracle Configuration Manager. Easier for you if you use your My
Oracle Support Email address/User Name.
Visit http://www.oracle.com/support/policies.html for details.
Email address/User Name: k.kittureddy@gmail.com
Password (optional):
Unable to establish a network connection to Oracle. If your systems require a
proxy server for outbound Internet connections, enter the proxy server details
in this format:
[@][:]
If you want to remain uninformed of critical security issues in your
configuration, enter NONE
Proxy specification: NONE
The OCM configuration response file (ocm.rsp) was successfully created.
/home/grid/ocm.rsp
Inventory validation [ALL NODES]
kasarla1[+ASM1]_grid>$ORACLE_HOME/OPatch/opatch lsinventory -detail -oh $ORACLE_HOME
Downloading OPatch and apply on [ALL NODES]
p10157506_112020_Linux-x86-64.zip
[root@kasarla1 10157506]# /u01/oracle/grid/11.2.0.2/OPatch/opatch auto /stage/10157506 -oh /u01/oracle/grid/11.2.0.2
Check CRS Status [ALL NODES]
kasarla1[grid]_grid> crsctl check crs
CRS-4638: Oracle High Availability Services is online
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online
Check Clusterware Resources
kasarla1[grid]_grid> crs_stat -t -v
Check Cluster Nodes
kasarla1[grid]_grid> olsnodes -n
kasarla1 1
kasarla2 2
Check Oracle TNS Listener Process on [ALL NODES]
kasarla1[grid]_grid> ps -ef | grep lsnr | grep -v ‘grep’ | grep -v ‘ocfs’ | awk ‘{print $9}’
LISTENER_SCAN2
LISTENER_SCAN3
LISTENER
Confirming Oracle ASM Function for Oracle Clusterware Files
If you installed the OCR and voting disk files on Oracle ASM, then use the following command syntax as the Grid Infrastructure installation owner to confirm that your Oracle ASM installation is running:
kasarla1[grid]_grid> srvctl status asm -a
ASM is running on kasarla2,kasarla1
ASM is enabled.
Check Oracle Cluster Registry (OCR)
kasarla1[grid]_grid> ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 2940
Available space (kbytes) : 259180
ID : 1005696169
Device/File Name : +ocr_vote_vg
Device/File integrity check succeeded
Device/File not configured
Device/File not configured
Device/File not configured
Device/File not configured
Cluster registry integrity check succeeded
Logical corruption check bypassed due to non-privileged user
Check Voting Disk
kasarla1[grid]_grid> crsctl query css votedisk
Check SCAN Resolution
kasarla1[grid]_grid> dig u01-scan.krishnareddy.com
; <> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5 <> kittu-scan.krishnareddy.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 40031
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 8, ADDITIONAL: 8
;; QUESTION SECTION:
;kittu-scan.krishnareddy.com. IN A
;; ANSWER SECTION:
kittu-scan.krishnareddy.com. 7259 IN A 1.2.3.48
kittu-scan.krishnareddy.com. 7259 IN A 1.2.3.46
kittu-scan.krishnareddy.com. 7259 IN A 1.2.3.47
;; AUTHORITY SECTION:
krishnareddy.com. 2642 IN NS chanti11.kittu.com.
krishnareddy.com. 2642 IN NS chanti06.kittu.com.
krishnareddy.com. 2642 IN NS chanti03.kittu.com.
krishnareddy.com. 2642 IN NS chanti04.kittu.com.
krishnareddy.com. 2642 IN NS chanti05.kittu.com.
krishnareddy.com. 2642 IN NS chanti01.kittu.com.
krishnareddy.com. 2642 IN NS chanti02.kittu.com.
krishnareddy.com. 2642 IN NS chanti07.kittu.com.
;; ADDITIONAL SECTION:
chanti01.kittu.com. 20778 IN A 5.5.104.000
chanti02.kittu.com. 13136 IN A 5.5.108.000
chanti03.kittu.com. 13138 IN A 5.5.112.000
chanti04.kittu.com. 13138 IN A 5.5.116.000
chanti05.kittu.com. 13136 IN A 5.5.120.000
chanti06.kittu.com. 13136 IN A 5.5.124.000
chanti07.kittu.com. 1990 IN A 5.5.128.000
chanti11.kittu.com. 13138 IN A 5.5.000.000
;; Query time: 0 msec
;; SERVER: 1.2.3.4#53(1.2.3.4)
;; WHEN: Thu Jul 14 10:45:28 2011
;; MSG SIZE rcvd: 404
=====================================================
ISSUES
|
TTS
CONVERT DATAFILES TO THE NEW PLATFORM
VERIFY THE DATABASE IS READY FOR MIGRATION
RUN THE RMAN CONVERT DATABASE COMMAND
MIGRATE TO THE TARGET SYSTEM
MOVE NECESSARY FILES TO TARGET SYSTEM
Ignore the initialization parameters that pertain to the native compilation of PL/SQL code. You will be instructed to add them later, if necessary.
•DATATAFILES
COMPLETE THE MIGRATION
Review and Run the Transport SQL Script For this case, we will run it in few steps:
B) ADD DATAFILES TO THE TEMPORARY TABLESPACE
C) INVALIDATE OBJECTS
D) COMPILE INVALID OBJECTS
TTS FOR TABLESPACETTS FOR TABLESPACE
PLATFORM_NAME ENDIAN_FORMAT
PLATFORM_NAME ENDIAN_FORMAT
PL/SQL procedure successfully completed.
no rows selected
Export: Release 11.2.0.2.0 – Production on Thu Sep 13 03:56:46 2012 Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved. Username: / as sysdba Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 – 64bit Production
Export: Release 11.2.0.2.0 – Production on Thu Sep 13 03:58:17 2012 Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved. Username: / as sysdba Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 – 64bit Production ORA-29335: tablespace ‘SCDATA’ is not read only failed due to TS were not read only,
Tablespace altered.
Tablespace altered.
Tablespace altered.
Export: Release 11.2.0.2.0 – Production on Thu Sep 13 22:16:13 2012 Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved. Username: / as sysdba Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 – 64bit Production
Starting conversion at source at 13-SEP-12
Create the Owner of the segemnts for the TS in target DB
User created.
Grant succeeded.
Import: Release 11.2.0.2.0 – Production on Fri Sep 14 01:09:06 2012 Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved. Username: / as sysdba Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 – 64bit Production hostname[oracle]_kittu> cat imp_tts.par
|
catalog database creation
CREATE DATABASE SCRIPT @CreateDB.sql
Post DATABASE SCRIPT @postDBCreation.sql
SQL*Plus: Release 11.2.0.2.0 Production on Wed Sep 12 03:28:30 2012 Copyright (c) 1982, 2010, Oracle. All rights reserved. Connected to:
Tablespace created.
User created.
Grant succeeded.
Recovery Manager: Release 11.2.0.2.0 – Production on Wed Sep 12 04:29:51 2012 Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved. connected to recovery catalog database
recovery catalog created RMAN>
Recovery Manager: Release 11.2.0.2.0 – Production on Wed Sep 12 04:34:56 2012 Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved. connected to target database: KITTU (DBID=3879169925)
database registered in recovery catalog
RMAN configuration parameters for database with db_unique_name KITTU are: RMAN> |
DUPLICATE SKIP TABLESPACE
SQL> startup nomount
hostname005[oracle]_destdb> rman target=sys/PASSWD@PROD AUXILIARY /
RMAN> connect catalog RCATLOG/passwd@rcat
hostname005[oracle]_destdb> sqlplus ‘/as sysdba’
SQL> select open_mode from v$database;
SQL> select tablespace_name from dba_tablespaces;
SQL> select status from dba_tablespaces;
|