[applmgr@test scripts]$ adop phase=prepare,finalize,cutover,cleanup
Thank you for visiting my blog (adeebk4khan.blogspot.com) and reading about myself. Hope this website is useful to you and Main reason for blogging is an opportunity to study topics further and to share my knowledge. Your feedback is appreciated.
[applmgr@test scripts]$ adop phase=prepare,finalize,cutover,cleanup
1- Apply main patch using below command.
time adop phase=apply patches=31625670
2- To apply language patches.
time adop phase=apply patches=31625670_D:u31625670.drv,31625670_DK:u31625670.drv,31625670_ESA:u31625670.drv,31625670_F:u31625670.drv,31625670_I:u31625670.drv,31625670_NL:u31625670.drv,31625670_ZHS:u31625670.drv,31625670_ZHT:u31625670.drv workers=16 wait_on_failed_job=yes flags=autoskip
What happens is the following:
Disable connection pooling:
1- For each Connection Pool in the OBIEE rpd (repository) file, uncheck the "Enable connection pooling" option.
2- Save the rpd and distribute it to the server.
Error:-
1- adop phase=prepare.
Solution:-
1- Download the most recent version from MOS Note: 2485457.1 – AutoUpgrade Tool.
2- Create sample Auto-Upgrade config file.
java -jar $OH19/rdbms/admin/autoupgrade.jar -create_sample_file config
3- Edit Sample file.
[oracle@dbinstance ~]$ java -jar $ORACLE_HOME/rdbms/admin/autoupgrade.jar -config /home/oracle/UPGR.cfg -mode analyze
Autoupgrade tool launched with default options
+--------------------------------+
| Starting AutoUpgrade execution |
+--------------------------------+
1 databases will be analyzed
Enter some command, type 'help' or 'exit' to quit
upg> lsj
+----+-------+---------+---------+-------+--------------+--------+--------+--------------+
|JOB#|DB NAME| STAGE|OPERATION| STATUS| START TIME|END TIME| UPDATED| MESSAGE|
+----+-------+---------+---------+-------+--------------+--------+--------+--------------+
| 100| PROD|PRECHECKS|PREPARING|RUNNING|20/05/18 15:11| N/A|15:11:09|Remaining 0/75|
+----+-------+---------+---------+-------+--------------+--------+--------+--------------+
Total jobs 1
upg>
Job 100 for PROD FINISHED
[oracle@dbinstance ~]$
upg> status -job 102
Progress
-----------------------------------
Start time: 20/05/18 15:13
Elapsed (min): 122
End time: N/A
Last update: 2020-05-18T17:15:05.211
Stage: POSTFIXUPS
Operation: EXECUTING
Status: RUNNING
Pending stages: 2
Job Logs Locations
-----------------------------------
Logs Base: /home/oracle/logs
Job logs: /home/oracle/logs/102
Stage logs: /home/oracle/logs/102/postfixups
TimeZone: /home/oracle/logs/temp
Additional information
-----------------------------------
Details:
Starting FIXUPS execution
Error Details:
None
upg>
Job 102 for PROD FINISHED
[oracle@dbinstance ~]$
7- Deploy mode.
Step 1 :- To find Trace file location using Request id
Configuring and Managing Oracle E-Business Suite Release 12.2.x Forms and Concurrent Processing for Oracle RAC (Doc ID 2029173.1)
Step 1:- No active ADOP cycle
adop -status
Step 2:- Create Services (Database)
srvctl add service -db vis_a -service UATERP_OACORE_ONLINE -preferred "UATERP1,UATERP2" -notification TRUE -role "PRIMARY,SNAPSHOT_STANDBY" -failovermethod BASIC -failovertype SELECT -failoverretry 10 -failoverdelay 3
srvctl add service -db vis_a -service UATERP_PCP_BATCH1 -preferred "UATERP1" -notification TRUE -role "PRIMARY,SNAPSHOT_STANDBY" -failovermethod BASIC -failovertype SELECT -failoverretry 10 -failoverdelay 3
srvctl add service -db vis_a -service UATERP_PCP_BATCH2 -preferred "UATERP2" -notification TRUE -role "PRIMARY,SNAPSHOT_STANDBY" -failovermethod BASIC -failovertype SELECT -failoverretry 10 -failoverdelay 3
Step 3:- Check the configuration
select inst_id,service_name, count(*)
from gv$session
where service_name not like 'SYS%'
group by inst_id,service_name
order by 1
/
srvctl config service -d UATERP -s UATERP_OACORE_ONLINE
srvctl config service -d UATERP -s UATERP_PCP_BATCH1
srvctl config service -d UATERP -s UATERP_PCP_BATCH2
Step 4:- Configure Net Services
lsnrctl status UATERP1
lsnrctl status UATERP2
lsnrctl status listener_scan1
lsnrctl status listener_scan2
lsnrctl status listener_scan3
Step 5:- Create a TNS alias for database service
UATERP_OACORE_ONLINE =(DESCRIPTION=(ADDRESS_LIST= (FAILOVER=YES) (ADDRESS=(PROTOCOL=tcp)(HOST=<SCAN IP1>)(PORT=<SCAN PORT>)) (ADDRESS=(PROTOCOL=tcp)(HOST=<SCAN IP2>)(PORT=<SCAN PORT>)) (ADDRESS=(PROTOCOL=tcp)(HOST=<SCAN IP3>)(PORT=<SCAN PORT>)) (CONNECT_DATA= (SERVICE_NAME=UATERP_OACORE_ONLINE)))
"Create Service UATERP_OACORE_ONLINE a and add it to $TNS_ADMIN/<%s_dbSid%>_<%s_hostname%>_ifile.ora file Add tnsentry on both database node."
Step 6:- Copy the default database connection file
"Copy the default database connection file, which is normally $FND_SECURE/DB_NAME.dbc to the database service UATERP_OACORE_ONLINE.dbc"
Step 7:- Context File backup
Step 8:- Edit the context file on each application tier node
s_apps_jdbc_connect_descriptor = <jdbc_url oa_var="s_apps_jdbc_connect_descriptor">jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=YES)(FAILOVER=YES)(ADDRESS=(PROTOCOL=tcp)(HOST=exaa-scan3)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=UATERP_OACORE_ONLINE )))</jdbc_url>
s_jdbc_connect_descriptor_generation - false
s_tools_twotask - UATERP_OACORE_ONLINE
s_cp_twotask - UATERP_PCP_BATCH1
s_cp_twotask - UATERP_PCP_BATCH2
Step 9:- Run autoconfig primary and secondary node of application
Step 10:- Stop application services and database services
Step 11:- Start database services and application services
Step 12- HA testing
srvctl relocate service -d <db_name> -s <service_name> -i <instance1> -t <instance2>
srvctl modify service -d <db_name> -s <service_name> -n -i <preferred_list> -a <available_list>
srvctl modify service -d prod -s TestService1 -n -i prod2,prod4 -a prod1,prod3
To fix the issue, follow the steps below from your local desktop to clear your cache:
Clearing Java Cache
(Part 1)
1- Go to Control Panel, the Control Panel can be accessed by searching for the control panel using the search box at the bottom of your screen.
Clearing Internet
Explorer Cache (Part 2)
1- You may also want to clear your Internet Explorer Cache. To do so, click on the gear icon on the top right-hand corner of your browser.
2- Place your cursor over Safety to populate a drop down box, then select Delete Browsing History.
Change The Web Port {http port} in E-Business Suite R12.2
In this post i will list out the steps to change the webport to 8009.
Defualt port - 8000
change port - 8009
Solution:-
1- Login to Em console - using http://hostname:port/em
4- Select the Oracle HTTP server component and Advanced Configuration.
Space issue:-
Found space utilization at data file mount point on prod.
/dev/mapper/datavg-lvol0 404G 365G 19G 96% /saprod_data01
Avail Use% Mounted on
/dev/mapper/datavg-lvol1 404G 372G 12G 97% /saprod_data02
Solution:-
Step1:- verify
Step 2:- Output of the script
By the output i can reclaim space around 7.783g of space
Step3:-Run below query
Step5:- Resize all datafile using above output.
Step6:-Execute step1 query to check changes after resizing of datafiles.
In earlier output possible savings is 7.783g , Now possible savings is 356mb, So we reclaimed 7gb of space at OS level
Step6:- check space at os level
/dev/mapper/datavg-lvol0
404G 341G 43G 89% /saprod_data01
/dev/mapper/datavg-lvol1
404G 360G 24G 94% /saprod_data02
/dev/mapper/datavg-lvol2
Error:-
Active Session History (ASH) performed an emergency flush. This may mean that ASH is undersized. If emergency flushes are a recurring issue, you may consider increasing ASH size by setting the value of _ASH_SIZE to a sufficiently large value. Currently, ASH size is 8388608 bytes. Both ASH size and the total number of emergency flushes since instance startup can be monitored by running the following query:
select total_size,awr_flush_emergency_count from v$ash_info;
Solution:-
The current ASH size is displayed in the message in the alert log, or can be found using the following SQL statement.
Adpatch Fails : 'The Applications System names per the APPL_TOP and the database are different.' (Doc ID 213339.1)
Unable to Patch a Cloned Environment Because of Wrong Applications System Names (Doc ID 202483.1)
Error:-
We recently faced an issue after development instance cloned from production.
adadmin Failed with the below errors.
The Applications System names per the APPL_TOP and the database
are different.
Applications System name per the APPL_TOP: uaterp
Applications System name per the database: THRMS
If you continue, the Applications System name per the APPL_TOP will
be ignored.
Do you wish to continue [No] ?
Solution:-
Issue-
When user trying to login in application he is not able to see
the home page and there is an error.
|
oracle.apps.fnd.framework.OAException: No data found for
region (/oracle/apps/fnd/framework/navigate/webui/NewHomePG). at
oracle.apps.fnd.framework.webui.JRAD2AKMapper.loadPage(JRAD2AKMapper.java:784) at
oracle.apps.fnd.framework.webui.OAPageBean.initializeCustomizationsMDS(OAPageBean.java:7394) at
oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2525) at
oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:2066) at
oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:585) at
oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:473) at
_pages.__oa._jspService(__oa.java:233) at
weblogic.servlet.jsp.JspBase.service(JspBase.java:34) at
weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) at
weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301) at
weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60) at
oracle.apps.jtf.cabo.interceptor.JTFWrapperFilter.doFilter(JTFWrapperFilter.java:149) at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60) at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:527) at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:253) at
weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:159) at
_pages.__oa._jspService(__oa.java:246)
Solution:- 1- check Personalization. SELECT jdr_mds_internal.getDocumentName(path_docid)
as component , path_type , path_seq , creation_date , last_update_date FROM ( SELECT path_docid , path_type , path_seq , creation_date , last_update_date FROM jdr_paths START WITH path_owner_docid = jdr_mds_internal.getDocumentID(('/')) CONNECT BY PRIOR path_docid = path_owner_docid) paths WHERE ( path_type = 'DOCUMENT' AND path_seq = -1) OR ( path_type = 'PACKAGE' AND path_seq = 0) OR ( path_type = 'PACKAGE' AND path_seq = -1 AND NOT EXISTS ( SELECT * FROM jdr_paths WHERE path_owner_docid = paths.path_docid)) order by last_update_date desc; 2- Delete Personalization from user level, exec jdr_utils.deletedocument('/oracle/apps/fnd/framework/navigate/webui/customizations/user/7071/NewHomePG'); 3- User able to login
|
Below given are the steps to generate Hanganalyze and Systemstate
Hanganalyze:
=====================
sqlplus '/ as sysdba'
oradebug setmypid;
oradebug unlimit;
oradebug hanganalyze 3;
-- Wait upto 1 minute before getting the second hanganalyze
oradebug hanganalyze 3;
-- Wait upto 1 minute before getting the second hanganalyze
oradebug hanganalyze 3;
oradebug tracefile_name;
exit
Systemstate Dump:
================
sqlplus '/ as sysdba'
oradebug setmypid;
oradebug unlimit;
oradebug dump systemstate 258;
-- Wait upto 1 minute before getting the second system state
oradebug dump systemstate 258;
-- Wait upto 1 minute before getting the second system state
oradebug dump systemstate 258;
oradebug tracefile_name;
exit
How to Set to po incomplete - EBS.
SQL> @poxrespo.sql
Please enter the PO number to reset : 563407
Please enter the organization id to which the PO belongs (Default NULL) : 81
Do you want to delete the action history since the last approval ? (Y/N) Y
Processing STANDARD PO Number: 563407
......................................
Updating PO Status..
Done Approval Processing.
PL/SQL procedure successfully completed.
SQL> commit;
Commit complete.
SQL> exit
Disconnected from Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
[ebs@SOUL sql]$
Control file version 11.2.0.1.0 incompatible with ORACLE version 10.2.0.3.0
SQL> startup;
ORACLE instance started.
Total System Global Area 2004340736 bytes
Fixed Size 2256544 bytes
Variable Size 1006633312 bytes
Database Buffers 973078528 bytes
Redo Buffers 22372352 bytes
ORA-00201: control file version 11.2.0.0.0 incompatible with ORACLE version
10.2.0.0.0
ORA-00202: control file: 'D:\ORACLE\GPQ\ORIGLOGA\CNTRL\CNTRLGPQ.DBF'
SQL> show parameter compatible
NAME TYPE
------------------------------------ ---------------------------------
VALUE
------------------------------
compatible string
10.2.0
SQL> alter system set compatible='11.2.0.0.0' scope=spfile;
System altered.
SQL> shut immediate;
ORA-01507: database not mounted
ORACLE instance shut down.
SQL> startup;
ORACLE instance started.
Total System Global Area 2004340736 bytes
Fixed Size 2256544 bytes
Variable Size 1006633312 bytes
Database Buffers 973078528 bytes
Redo Buffers 22372352 bytes
Database mounted.
SQL> show parameter compatible
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
compatible string 11.2.0.0.0
SQL>
How to Move OCR & Vote from external to Normal or high. 1) Create New diskgroup(CRS) with suitable redundancy for OCR and Voting files....