Quantcast
Channel: Doyensys Allappsdba Blog..
Viewing all 1640 articles
Browse latest View live

Query to find User Session Statistics

$
0
0

set linesize 132
rem
ttitle 'User Session Statistics'
rem
col pid format 9999 heading 'PID'
col spid format a6 heading 'SERVER|PID'
col sid format 9999 heading 'SID'
col serial# format 99999 heading 'SERIAL'
col process format a6 heading 'CLIENT|PID'
col osuser format a8 heading 'OS|USERNAME'
col username format a10 heading 'ORACLE|USERNAME'
col log_per_sec format 999999 heading 'LOG|PER|SEC'
col logical format b9999999999 heading 'LOGICAL|READS'
col phy_per_sec format b9999 heading 'PHY|PER|SEC'
col physical_reads format b99999999 heading 'PHYSICAL|READS'
col audsid format b9999999 heading 'AUDIT|SESSION'
col program format a32 heading 'PROGRAM NAME'
col module format a32 heading 'MODULE'
col logon_time format a8 heading 'LOGON|TIME'
col duration format a8 heading 'DURATION'
col last_call_min format 9999 heading 'LAST|CALL|MIN'
col status format a1 heading 'S'
rem
select s.process,
       p.spid,
/*
       p.pid,
*/
       s.sid,
       s.serial#,
       s.osuser,
       s.username,
       ( i.block_gets + i.consistent_gets ) /
       ( ( sysdate - s.logon_time ) * 86400 ) log_per_sec,
       i.block_gets + i.consistent_gets logical,
       physical_reads /
       ( ( sysdate - s.logon_time ) * 86400 ) phy_per_sec,
       i.physical_reads,
/*
       s.audsid,
*/
       to_char( trunc(sysdate) + ( sysdate - s.logon_time ), 'hh24:mi:ss' ) duration,
       s.last_call_et/60 last_call_min,
       decode( s.status, 'ACTIVE', '*', 'INACTIVE', null, 'KILLED', 'K', '?' ) status,
       decode( s.action, 'Concurrent Request', 'CM/' || s.module, s.module ) module
  from v$process p, v$session s, v$sess_io i
 where i.sid = s.sid
   and s.paddr = p.addr
   and s.sid = &sid;
rem
set linesize 80


Steps to compile jsp

$
0
0
 Please follow the below action plan Steps to compile jsp:

1. We need to login to apps server and su to apps user .

2. Then we need to Shutdown the application services.

3. Now, compile the jsp's manually by using the command as shown below:

$cd $COMMON_TOP/
$rm _pages   [here, either you can remove or take backup]
$mkdir _pages
$chmod 755 _pages  [this may be automatically]
$perl $FND_TOP/patch/115/bin/ojspCompile.pl --compile --flush -p 2

4. Then check whether all the jsp's are getting compiled successfully.

5. Restart the application services.

6. Open IE or your web browser and clear the browser cache.

7. Then again retest the issue. 

Article 0

$
0
0


Few of you may already aware of Oracle Cloud Market place, But you might not know few of the useful Applications services available for DBAs, APPS DBA or Cloud Admins.

I’m sharing handpicked Apps and services, you may see other useful apps as well. Based on my analysis, Have written my own analysis for few app.

Though you may aware, but still I would like to highlight.  Using these apps requires trial license except vision instance, you can use all of them for POC or Demo purpose only with limited credits.

Oracle Cloud Marketplace is an online store dedicated to marketing cloud business apps and professional services offered by Oracle and its Cloud Partners.

https://cloudmarketplace.oracle.com/marketplace/en_US/homePage.jspx

ApplicationsLinkUsage
Oracle E-Business Suite 12.2.8 Demo Install Image



https://cloudmarketplace.oracle.com/marketplace/en_US/listing/50307373





We can use:
1.       To build any plugins (like interface, apex reports) or any customizations in 122 environment with vision data.
2.       To show POC to Customer, How Oracle 122 EBS works on OCI (IaaS). Setting up from market place is very easy, it takes less than an hour practically to setup 1228 environment.
3.       To Train or practice – Setting up Security , network , storage , Infra Backup, scale up features in OCI
4.       To Train or practice – Oracle EBS 122 Apps DBA Maintenance.

EBS 12.2.5 Fresh Install Imagehttps://cloudmarketplace.oracle.com/marketplace/en_US/listing/5248397Create a Compute Cloud Service instance (virtual machine) containing the Release 12.2.5 database and application tiers from the provided image. Use this single-node fresh install instance to implement setups and organization-specific business flows as part of your Oracle E-Business Suite rollout.
EBS 12.2.7 Fresh Install Imagehttps://cloudmarketplace.oracle.com/marketplace/en_US/listing/38487279Create a Compute Cloud Service instance (virtual machine) containing the Release 12.2.7 database and application tiers from the provided image. Use this single-node fresh install instance to implement setups and organization-specific business flows as part of your Oracle E-Business Suite rollout.
EBS OS-Only Imagehttps://cloudmarketplace.oracle.com/marketplace/en_US/listing/5248662The OS-Only Machine Image delivers a Compute Cloud Service instance (virtual machine) with the Oracle Linux 6.8 operating system plus the necessary packages, kernel parameter settings, and users required to run Oracle E-Business Suite. Once a virtual machine or machines are installed, if you are an existing Oracle E-Business Suite 12.1.3 or 12.2 customer you may be able to migrate your instances to the Oracle Compute Cloud Service

You can use
1.       If you want to test or practice any migration of Oracle EBS
2.       If you want to practice Installation of Oracle EBS
Oracle Identity Managementhttps://cloudmarketplace.oracle.com/marketplace/en_US/listing/63376046Oracle Identity Management provides a unified, integrated security platform designed to manage user lifecycle and provide secure access across the enterprise resources, both within and beyond the firewall and into the cloud
Oracle E-Business Suite Cloud Managerhttps://cloudmarketplace.oracle.com/marketplace/en_US/listing/49940494Oracle E-Business Suite Cloud Manager is a web-based graphical user interface that automates the creation and management of Oracle E-Business Suite environments on Oracle Cloud Infrastructure and associated database services. Oracle E-Business Suite Cloud Manager was designed to simplify the diverse tasks Oracle E-Business Suite DBAs perform on a daily basis, with the goal of reducing the effort needed to perform them.
Oracle Data Integratorhttps://cloudmarketplace.oracle.com/marketplace/en_US/listing/62627436
This image provides a full instance of Oracle Data Integrator (ODI) based on 12.2.1.3
The image includes.:
Preconfigured ODI repository
ODI KMs for ADW 
ODI KMs for BI cloud connector
One standalone agent is preconfigured in the image to execute data integration flow.
Oracle Golden Gate 19c for Oraclehttps://cloudmarketplace.oracle.com/marketplace/en_US/listing/58489224
EBS Information Discovery 12.2 V7https://cloudmarketplace.oracle.com/marketplace/en_US/listing/22406441Oracle E-Business Suite Information Discovery brings enterprise data discovery platform to your EBS implementation.
Oracle ERP/SCM Cloud to Oracle WMS Cloudhttps://cloudmarketplace.oracle.com/marketplace/en_US/listing/39057623This is a sample integration between Oracle Warehouse Management System (WMS) Cloud and Oracle Enterprise Resource Planning System (ERP)/Supply Chain Management (SCM) cloud via Integration Cloud Service (ICS).
ERP Cloud and FTP Server| Extract Bulk Data Asynchttps://cloudmarketplace.oracle.com/marketplace/en_US/listing/61921647The integration extracts BIP report data from ERP cloud in asynchronous manner. The scheduled orchestration pattern is used to give an integration user the ability to schedule data extract as required. Extracted data are stored in an FTP server. This way the actual report data could be available for the end user or application from the FTP location. If required, the extracted data could be enriched or altered within the integration.
Oracle E-Business Suite Provisioning Tools Imagehttps://cloudmarketplace.oracle.com/marketplace/en_US/listing/5514423Use the provided image to create a virtual machine containing a provisioning tool, the EBS Cloud Admin Tool. This tool allows you to provision environments in the Oracle Cloud, and perform additional tasks such as configuration of integrations, scaling, cloning using volume snapshots, etc. 
Oracle Enterprise Manager 13chttps://cloudmarketplace.oracle.com/marketplace/en_US/listing/51275099
Oracle Enterprise Manager has built-in management capabilities of the Oracle stack for traditional and cloud environments that enables you to monitor and manage the complete Oracle IT infrastructure from a single console.
Oracle Autonomous Linuxhttps://cloudmarketplace.oracle.com/marketplace/en_US/listing/63236232
You may test or practice provisioning Oracle Autonomous Linux in Oracle Cloud
Or showcase to customer on how it can be of use for their business.

How to deploy Oracle EBS Cloud Manager from Market Place?

$
0
0

The Main agenda for this post is to demonstrate basic steps to deploy Oracle EBS Cloud Manager from Market Place.

Pre-requirement:  Have Oracle Cloud account login, and Have basic understanding of oracle cloud networking and compartment.

  1. Login to oracle cloud account.
  2. Through Navigator Menu,  Select Market Place.
  3. Select the  version of Cloud Manager, select the compartment, review and agree to the terms and restrictions , and finally click on launch instance.
  4.  Page will get directed to page to create compute instance. provide required instance name and ssh key 
  5. it will get provisioned in Oracle cloud infrastructure , click on "View Usage Instructions". 

Oracle Open World 2019 presentations are now available for download

WF Mailer Not able to start with the following error : FRAMEWORK_USER=Unable to make a connection with the user and responsibility

$
0
0
Scenario:

I was trying to restart the WF Container using the following Navigation in 12.1.3

Oracle Application Manager -> Workflow ->Service Components ->Workflow Notification Mailer

When we go inside the container and restarts it failed and shows the following error when we click on the Workflow Notification Mailer.


Error :

Could not handle the control event -> oracle.apps.fnd.cp.gsc.SvcComponentContainerException: Could not start component; performing rollback -> oracle.apps.fnd.cp.gsc.SvcComponentException: Validation failed for the following parameters -> {FRAMEWORK_USER=Unable to make a connection with the user and responsibility}. Parameters were -> {RESET_NLS=N, FROM=Workflow Mailer Production, INBOUND_MAX_RET_EMAIL_SIZE=100, CANCELED=WFMAIL:CANCELED, SEND_UNSOLICITED_WARNING

Solution:

The Error indicates connectivity problem, and the notification mailer will attempt to make a connection as SYSADMIN with the system administrator responsibility. So verify the following:
1. SYSADMIN userid is active and the responsibility System Administrator is Active.
2. Also check whether sysadmin has the default value by :

select * from fnd_user_a  where USER_ID='0' order by 1 desc;

In my case SYSADMIN user was end dated by mistake. Because of that it fails to start the WF mailer. So we removed the enddate and tried restarting and it worked.


Reference:

Workflow Mailer Is Not Coming Up And Agent Listeners In Unavailable State FRAMEWORK_USER=Unable to make a connection with the user and responsibility (Doc ID 2448179.1)

Open Ebiz R12 in Google Chrome

$
0
0
Scenario:

In order to open oracle e-business in google chrome, there is an option of installing the IE Tab Extension in chrome.


Installation of IE Tab Extension for Google Chrome.

Step 1 : Open Google Chrome Browser.
Step 2 : Check IE Extension is present .
Step 3 : Download IE Tab Extension.
Step 4 : Install the IE Tab Extension in google chrome.
Step 5 : Allow the url in IE Tab extensions using settings.
Step 6 : Now verify Oracle is working in IE Tab in Chrome.

1.  Open Google Chrome Browser.





1 2.       Check IE Extension is present .
-          Navigate to Settings - > Extension . By default it wont be there.



3.       Download IE Tab Extension.

-          Type in IE Tab for Chrome from the Chrome Browser, or copy and paste the following URL in the browser.
-          You will be navigated to the following page where we can see Add to chrome Tab as highlighted.

-          Click on Add Extension

4.       Install the IE Tab Extension in google chrome.
 If required  for first time run the installer. Once done close the Chrome browser and open a new window, You will find the tab for IE like below 



5.       Allow the url in IE Tab extensions using settings.
-          Navigate to setting -> Extensions

-          By default the below mentioned 2 options will be disabled, Just enable as shown below.

6.       Now verify Oracle is working in IE Tab in Chrome.

-          Now Open new Chrome browser and enter the oracle url 





Oracle Critical Patch Update for October 2019


Shareplex Installation for Oracle Replication

$
0
0

Installation on Source Server :

oracle@src_01:~ $ . ./SOURCEDB_12c.env

oracle@src_01:/u03/db $ ls -lrt
-rwxr-xr-x 1 oracle oinstall 151278802 Sep 10 12:50 SharePlex-9.1.2-b18-oracle120-rh-40-amd64-m64.tpm

oracle@src_01:/u03/db $ ./SharePlex-9.1.2-b18-oracle120-rh-40-amd64-m64.tpm
Unpacking..................................................................
  ..........................................................................
  ..........................................................................
  .....

SharePlex installation program:
    SharePlex Version: 9.1.2
    Build platform: rh-40-amd64
    Target platform: rh-40-amd64

Please enter the product directory location? /u03/db/shareplex_src_01/proddir
Please enter the variable data directory location? /u02/db/shareplex_src_01/vardir2100
Please specify the SharePlex Admin group (select a number):
1. [oinstall]
2. ebsprod
3. dba
?  1
Please wait while the installer obtains Oracle information ..
Please enter the ORACLE_SID that corresponds to this installation? [SOURCEDB]
Please enter the ORACLE_HOME directory that corresponds to this ORACLE_SID? [/u01/app/db_1/XXXS01/12.1.0.2]
Please enter the TCP/IP port number for SharePlex communications? [2100]

Preparing to install SharePlex for Oracle v.9.1.2:
    User:                     oracle
    Admin Group:              oinstall
    Product Directory:        /u03/db/shareplex_src_01/proddir
    Variable Data Directory:  /u02/db/shareplex_src_01/vardir2100
    ORACLE_SID:               SOURCEDB
    ORACLE_HOME:              /u01/app/db_1/xxxS01/12.1.0.2

Proceed with installation? [yes]
Installing ................................................................
  .........................................................................
  .........................................................................
  ......................................................................
Setting file ownerships ...................................................
  .........................................................................
  .........................................................................
  .........................................................................
  ..........
Setting file permissions ..................................................
  .........................................................................
  .........................................................................
  .........................................................................
  ...........
Do you have a valid SharePlex v. 9.1.2 license? [yes]
Please enter the License key? XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Please enter the customer name associated with this license key? XYZ Inc.

SharePlex v. 9.1.2 license validation successful:
    Customer Name:      XYZ Inc.
    License Key:        XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    Product Name:       SharePlex for Oracle - RAC
    License Key Type:   "Term Key"
    Expires:            at Midnight of Jul 31, 2023

NOTE: You can upgrade this license key or add license keys for additional machines
      by executing utility /u03/db/shareplex_src_01/proddir/install/splex_add_key.

Installation log saved to: /home/oracle/.shareplex/INSTALL-SharePlex-9.1.2-1810011844.log
SharePlex for Oracle v.9.1.2 installation successful.






Installation on Target Server :


oracle@trgt_01:~ $ . ./TARGETDB_trgt_01.env

oracle@trgt_01:/u03/db $ ./SharePlex-9.1.2-b18-oracle120-rh-40-amd64-m64.tpm
Unpacking ..................................................................
  ..........................................................................
  ..........................................................................
  ......


SharePlex installation program:
    SharePlex Version: 9.1.2
    Build platform: rh-40-amd64
    Target platform: rh-40-amd64

Please enter the product directory location? /u03/db/shareplex_trgt_01/proddir
Please enter the variable data directory location? /u02/db/shareplex_trgt_01/vardir2100
Please specify the SharePlex Admin group (select a number):
1. [oinstall]
2. ebsprod
3. dba
?  1
Please wait while the installer obtains Oracle information ..
Please enter the ORACLE_SID that corresponds to this installation? [TARGETDB]
Please enter the ORACLE_HOME directory that corresponds to this ORACLE_SID? [/u01/app/db_1/12.1.0.2]
Please enter the TCP/IP port number for SharePlex communications? [2100]

Preparing to install SharePlex for Oracle v.9.1.2:
    User:                     oracle
    Admin Group:              oinstall
    Product Directory:        /u03/db/shareplex_trgt_01/proddir
    Variable Data Directory:  /u02/db/shareplex_trgt_01/vardir2100
    ORACLE_SID:               TARGETDB
    ORACLE_HOME:              /u01/app/db_1/12.1.0.2

Proceed with installation? [yes]
Installing ................................................................
  .........................................................................
  .........................................................................
Setting file ownerships ...................................................
  .........................................................................
  .......
Setting file permissions ..................................................
  .........................................................................
  .........................................................................
  ...........
Do you have a valid SharePlex v. 9.1.2 license? [yes]
Please enter the License key? XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Please enter the customer name associated with this license key? XYZ Inc.

SharePlex v. 9.1.2 license validation successful:
    Customer Name:      XYZ Inc.
    License Key:        XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    Product Name:       SharePlex for Oracle - RAC
    License Key Type:   "Term Key"
    Expires:            at Midnight of Jul 31, 2021

NOTE: You can upgrade this license key or add license keys for additional machines
      by executing utility /u03/db/shareplex_trgt_01/proddir/install/splex_add_key.

Installation log saved to: /home/oracle/.shareplex/INSTALL-SharePlex-9.1.2-1810011859.log
SharePlex for Oracle v.9.1.2 installation successful.

Shareplex Setup/Configuration for Oracle Replication

$
0
0


Pre-requisites for Shareplex Setup on Oracle database :

1.     Create tablespace splex with 2GB space with autoextend-on in both source & Target    databases.
2.       Ensure Archive log is enabled in Source and target databases.
3.    Enable supplemental Logging at Database Level in the Source database :
 <  ALTER DATABASE ADD SUPPLEMENTAL LOG DATA> - This enables Minimal Database Level Logging
NoteSupplemental logging places additional column data into the redo log file whenever an UPDATE operation is performed. At the least, minimal database-level supplemental logging must be enabled for any Change Data Capture in the source database.


Source Setup :


1.Change Directory to <shareplex proddir>/bin
    cd /u03/db/shareplex_src_01/proddir
2.Ensure to set source database env 
3.Run ./ora_setup

a. When prompted asking ,Will the SharePlex install be using a BEQUEATH connection?, Enter n
b. When prompted asking , Are you configuring SharePlex for an AWS RDS Database?, Enter n
c.   When Prompted to enter Enter the TNS alias for which SharePlex should be installed , Enter the Tns name entry of source database
d. When prompted to enter DBA user for source database , enter system user
e. When prompted to enter password for DBA Account , Enter system user password
f. When prompted asking , Would you like to create a new SharePlex user ? , Ensure it is Y and press enter
g.   When prompted to enter username for new shareplex user , enter splex/<shareplex password>
h.   When prompted asking Do you want to enable replication of tables with TDE?, ensure n and press enter
i. When prompted to enter the default tablespace, enter splex
j. When prompted to enter the temporary tablespace , enter temp
k. When prompted to enter the index tablespace , enter splex
l.   When prompted asking Will the current setup for sid: [<source SID>] be used as source (including cases as source for failover or master-master setups)? , Ensure it is Y and press enter
m.   When prompted asking, Do you wish to connect to ASM using BEQUEATH connection?  , Ensure it is Y and press enter
n  . When prompted to enter the asm SID , ensure asm sid is correct, else enter the correct sid
Source Setup stage completed. 


Target Setup :


1.Change Directory to <shareplex proddrr>/bin
        cd  /u03/db/shareplex_src_01/proddir
2.Ensure to source the target database .env 
3.Run ./ora_setup

a.When prompted asking ,Will the SharePlex install be using a BEQUEATH connection?, Enter n
b.When prompted asking , Are you configuring SharePlex for an AWS RDS Database?, Enter n
c.When Prompted to enter Enter the TNS alias for which SharePlex should be installed , Enter the Tns name entry of target database
d.When prompted to enter DBA user for source database , enter system user
e.When prompted to enter password for DBA Account , Enter system user password
f.When prompted asking , Would you like to create a new SharePlex user ? , Ensure it is Y and press enter
g.When prompted to enter username for new shareplex user , enter splex/<shareplex password>
h.When prompted asking Do you want to enable replication of tables with TDE?, ensure n and press enter
i.When prompted to enter the default tablespace, enter splex
j.When prompted to enter the temporary tablespace , enter SPLEX_TEMP
k.When prompted to enter the index tablespace , enter splex
l.When prompted asking Will the current setup for sid: [<target SID>] be used as source (including cases as source for failover or master-master setups)? , enter n and Hit enter
Target Setup stage completed
                               
4.Disable the Check & Referential Constraints in the Target Database.
5.Disable the Triggers in the Target Database 


Shareplex Startup and shutdown :

Steps to start the shareplex service 
1.Start screen session
2.Change Directory to <shareplex proddrr>/bin
cd /u03/db/shareplex/proddir
3.Ensure to set source database env or target database env 
4.Run ./sp_cop -u2100 &

Steps to stop the shareplex service
1.Start screen session
2.Change Directory to <shareplex proddrr>/bin
cd /u03/db/shareplex/proddir
3.Ensure to set source database env or target database env 
4.Run ./sp_ctrl
5.Enter shutdown command in sp_ctrl prompt : sp_ctrl > shutdown





Recreation / Rebuild of Reporting database (for the EBS customers using Shareplex replication)

$
0
0

If you have Reporting database configured for your UAT or Pre-Prod instance , you may have to recreate/re-configure the reporting database associated with them after a database refresh.


Here I have given a detailed list of Steps to re-build your reporting database (replication database) and configure shareplex replication after Primary database refresh (UAT/Pre-Prod) .

Non-EBS users , please follow only the Database related steps 

1
Shutdown shareplex on both SOURCEDB & TARGETDB.
2
Take a backup of $vardir of Shareplex in both SOURCEDB & TARGETDB
3
Take a backup of Existing TNS Entries of SOURCEDB & TARGETDB on both the DB nodes before SOURCEDB clone.
4
Take a backup of existing Pfile along with the complete DBS Folder.
5
Take a backup of existing XML file of TARGETDB . (Very important)
6
Comment (#) the Apps RSYNC cronjob on SOURCEDB Apps server.
7
Once the SOURCEDB refresh is complete, Create TARGETDB DB as a standby of SOURCEDB and make sure it is in sync until we decide on downtime of SOURCEDB to configure TARGETDB & shareplex.
8
Copy the Application Filesystem from SOURCEDB to TARGETDB
9
Once the downtime is decided, Shutdown SOURCEDB Apps + DB and do not start until TARGETDB & Shareplex are configured.
10
Break the sync and Activate the Standby Database as Read/Write mode.
11
Open the Standby database.
12
Change the Standby database name to TARGETDB using NID.
13
Start TARGETDB as RAC on src_01 & tgrt_01
14
Make sure only 2 redo log Threads are enabled, otherwise you will encounters errors during shareplex config
15
Perform rest of the DB post clone and Apps clone steps. (as part of post clone do not mask email addresses & do not do any WF steps)
16
Start SOURCEDB DB
17
Run ora_cleanup (oracle@src_01/tgrt_01: cd $proddir/bin # ./ora_cleansp) in both SOURCEDB & TARGETDB
18
Drop & Recreate SPLEX schema with SPLEX & SPLEX_TEMP as default Tablespace & Temp tablespace respectively.
19
Cleanup & recreate SPLEX_TEMP tablespace
20
Disable Triggers in TARGETDB  (Create a script to disable them from the schemas that are part of replication config)
21
Disable Constraints in TARGETDB  (Create a script to disable them from the schemas that are part of replication config)

Note : Collect Dictionary stats before disabling constraints , to get better performance during disabling
SQL> exec dbms_stats.gather_dictionary_stats(options => 'GATHER');
22
Run ora_setup (exactly as per the attached notes)
23
Create Config using the existing config file itself on SP Source  
24
on SP Source, Disable the Sequence replication : set param  SP_OCT_REPLICATE_SEQUENCES 0
25
on SP Source , Enable DDL replication : set param SP_OCT_REPLICATE_ALL_DDL 1
26
on SP Source , increase Thread count : set param SP_OCF_THREAD_COUNT 9
27
Start Shareplex services on both Source & Target
28
Verify Config :  verify config REP_CONFIG_12JUL19 (config name may vary)
29
Activate Config : activate config REP_CONFIG_12JUL19 (config name may vary)
30
Start SOURCEDB Apps
31
Run Autoconfig on TARGETDB Apps
32
Start TARGETDB Apps



                 



OPatch Conflict Checker

$
0
0
When applying OPatches to our Oracle database, we frequently encounter conflicts with the existing patches in our database  and we raise an SR with Oracle support to get a merge patch to resolve the conflict (also, we want to retain the old patch with which conflict arised.)

We all know this cannot be a Sev1 and it takes time to get a solution . To avoid the wait time for a merge patches through an SR , Oracle has come up with this new self help tool called " OPatch Conflict Checker " - using this we can get a merge patch for Opatch conflicts – without raising a request to Oracle Support .

Follow the below instructions on how to get a merge patch using this "OPatch Conflict Checker" :




Attach the Oracle Home inventory text file (generated by the command "opatch lsinventory" found in $ORACLE_HOME/cfgtoollogs/opatch/lsinv )

Click ‘Analyze for Conflict’button , you will get the below page :











This conflict was already identified by Oracle and the merged/revised patch was already published as shown below , but with a different release version … which we can find from the patch search page .

Since we wouldn’t know which version of the patch is suitable for us, we need to use this Analyze with Opatch option with base release patch (12.1.0.2)










DBA Tip : RMAN restore when backup file are spread across 2 different mount points

$
0
0

Customers whose databases are of huge size and if the RMAN backup size is about 2TB or more and when there is no enough space to keep all of the backup files in a single mountpoint , we spread them in 2 or 3 different mount points.

Question is "How do we restore when the RMAN backup files are in different location" ?

A simple solution to this would be to create softlinks to the backup pieces from location B in the  location A :


In my case,  the database Rman Backup files are spread across 2 different mount points in the Target ( /u02 & /u03)  and  as we cannot pass two locations to the Rman Duplicate command ... I’ve created softlinks in  /u02 to the backup pieces in /u03 and passed /u02 as a single backup location to RMAN script.

Example:

cd  /u02/backup/location1

ln -s /u03/backup/location2/PROD_df_full_143926_1.bak PROD_df_full_143926_1.bak
ln -s /u03/backup/location2/PROD_df_full_143927_1.bak PROD_df_full_143927_1.bak
ln -s /u03/backup/location2/PROD_df_full_143929_1.bak PROD_df_full_143929_1.bak
ln -s /u03/backup/location2/PROD_df_full_143936_1.bak PROD_df_full_143936_1.bak
ln -s /u03/backup/location2/PROD_df_full_143935_1.bak PROD_df_full_143935_1.bak


Now, It would look like :

cd  /u02/backup/location1
ls -lrt

FINP01_df_full_143925_6.bak
FINP01_df_full_143930_6.bak
FINP01_df_full_143931_4.bak
FINP01_df_full_143931_2.bak
FINP01_df_full_143931_3.bak
FINP01_df_full_143926_1.bak -> /u03/backup/rbackup/FINS01/FINP01_df_full_143926_1.bak
FINP01_df_full_143927_1.bak -> /u03/backup/rbackup/FINS01/FINP01_df_full_143927_1.bak
FINP01_df_full_143929_1.bak -> /u03/backup/rbackup/FINS01/FINP01_df_full_143929_1.bak
FINP01_df_full_143936_1.bak -> /u03/backup/rbackup/FINS01/FINP01_df_full_143936_1.bak
FINP01_df_full_143935_1.bak -> /u03/backup/rbackup/FINS01/FINP01_df_full_143935_1.bak

Now, pass '/u02/backup/location1' as the backup location to RMAN duplicate command :

DUPLICATE TARGET DATABASE to <TARGETDB>  BACKUP LOCATION '/u02/backup/location1' NOFILENAMECHECK ;






Article 0

$
0
0

UPGRADE FROM 12C TO 19C


Check current Oracle Cluster ware installation readiness for upgrades using Cluster Verification Utility (CVU)
 
From the 19c Grid Infrastructure home execute:
./runcluvfy.sh stage -pre crsinst -upgrade -rolling -src_crshome /u01/app/12.2.0/grid -dest_crshome /u02/app/19.3.0/grid -dest_version 19.0.0.0.0 -fixup -verbose

Start the 19c Grid Infrastructure upgrade

[grid@rac01 grid]$ cd /u02/app/19.3.0/grid
[grid@rac01 grid]$ ./gridSetup.sh

Error while upgrade.


Need to apply the below patched before going to do upgrade.

Update opatch version and apply patches 28553832 and 27006180

Again Start the 19c Grid Infrastructure upgrade:-

[grid@rac01 grid]$ cd /u02/app/19.3.0/grid
[grid@rac01 grid]$ ./gridSetup.sh




Run the rootupgrade.sh Script


[sudo] password for oracle:
Performing root user operation.

The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME= 




Upgrade is now completed!

Article 2

$
0
0

SQL*PLUS NEW FEATURES IN ORACLE 12C RELEASE 2 AND 18C 


New features were added in Oracle 12c Release 2 and Oracle 18c related to SQL*Plus.



Oracle 18c:-

SET FEEDBACK ON SQL_ID:  Display the sql_id for the currently executed SQL statement
SET ROWLIMIT n:           Set a limit for the number of rows displayed for a query
SET LINESIZE with WINDOW option: Dynamically change and format the displayed output to fit the screen or window size

Oracle 12c Release 2:-

HISTORY: Display and run previously executed SQL and PL/SQL commands
SET MARKUP CSV: Option to output data in CSV format with choice of delimiter
SET FEEDBACK ONLY: Option to only display the number of rows selected and no data is displayed
sqlplus –F or -fast: Changes the default values of settings like ARRAYSIZE,LOBPREFETCH,PAGESIZE,ROWPREFETCH to improve performance


SQL> set feedback only

SQL> select * from hr.employees;

107 rows selected.


SQL> set feedback on sql_id

SQL> select * from hr.employees where first_name='Susan';

EMPLOYEE_ID FIRST_NAME LAST_NAME
----------- -------------------- -------------------------
EMAIL  PHONE_NUMBER       HIRE_DATE JOB_ID SALARY
------------------------- -------------------- --------- ---------- ----------
COMMISSION_PCT MANAGER_ID DEPARTMENT_ID
-------------- ---------- -------------
203 Susan Mavris
SMAVRIS   515.123.7777       07-JUN-02 HR_REP   6500
      101     40


1 row selected.

SQL_ID: gw7ra2jba93p6

SQL> set rowlimit 5

SQL> select first_name from hr.employees;

FIRST_NAME
--------------------
Ellen
Sundar
Mozhe
David
Hermann

5 rows selected. (rowlimit reached)



SET LINESIZE WINDOW – As the window is being made bigger with every execution of the same query, we can the linesize automatically changing and more columns appearing on the same line






 SQL> SHOW ARRAYSIZE LOBPREFETCH PAGESIZE ROWPREFETCH STATEMENTCACHE
arraysize 15
lobprefetch 0
pagesize 14
rowprefetch 1
statementcache is 0

SQL> quit
Disconnected from Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production

[oracle@linux01 bin]$ sqlplus -fast apex_owner/oracle

SQL*Plus: Release 12.2.0.1.0 Production on Wed Jul 12 22:47:00 2017

Connected to:
Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production

SQL> SHOW ARRAYSIZE LOBPREFETCH PAGESIZE ROWPREFETCH STATEMENTCACHE
arraysize 100
lobprefetch 16384
pagesize 50000
rowprefetch 2
statementcache is 20


SQL> set markup csv on

SQL> select * from hr.regions;

"REGION_ID","REGION_NAME"
1,"Europe"
2,"Americas"
3,"Asia"
4,"Middle East and Africa"

SQL> set markup csv on quote off delimiter |
SQL> /

REGION_ID|REGION_NAME
1|Europe
2|Americas
3|Asia
4|Middle East and Africa


SQL> show history
history is OFF

SQL> set history on

SQL> select count(*) from exp_detail;

  COUNT(*)
----------
       450

SQL> select count(*) from months;

  COUNT(*)
----------
6

SQL> select sysdate from dual;

SYSDATE
---------
12-JUL-17

SQL> history
  1  select count(*) from exp_detail;
  2  select count(*) from months;
  3  select sysdate from dual;


SQL> history 2 run

  COUNT(*)
----------
6

SQL> history 3 run

SYSDATE
---------
12-JUL-17

SQL> history clear 

SQL> history
SP2-1651: History list is empty.


Article 1

$
0
0

Set Autotrace Traceonly giving error SP2-0618 and SP2-0611 in Oracle 18c


I was trying few things in Oracle 18c database using command window and needed autotrace enable for the same.


When i had given command "set autotrace traceonly" it has thrown error as below,


SP2-0618: Cannot find the Session Identifier.  Check PLUSTRACE role is enabled
SP2-0611: Error enabling STATISTICS report



Few steps need to follow to work autotrace in sqlplus.


1.       cd $oracle_home/rdbms/admin
2.       log into sqlplus as sys or system
3.       run SQL> @utlxplan
4.       run SQL> create public synonym plan_table for plan_table
5.       run SQL> grant all on plan_table to public
6.       exit sqlplus and cd $oracle_home/sqlplus/admin
7.       log into sqlplus as SYS
8.       run SQL> @plustrce
9.       run SQL> grant plustrace to public

 
another steps.

$ cd $ORACLE_HOME/sqlplus/admin/
$ sqlplus / as sysdba

SQL*Plus: Release 18.0.0.0.0 - Production on Wed Oct 17 12:40:27 2018
Version 18.3.0.0.0
Copyright (c) 1982, 2018, Oracle.  All rights reserved.
Connected to:
Oracle Database 18c Enterprise Edition Release 18.0.0.0.0 - Production
Version 18.3.0.0.0

SQL> alter session set container=testpdb1;
Session altered.

SQL> @plustrce
SQL>
SQL> drop role plustrace;
drop role plustrace
          *
ERROR at line 1:
ORA-01919: role 'PLUSTRACE' does not exist

SQL> create role plustrace;
Role created.

SQL>
SQL> grant select on v_$sesstat to plustrace;
Grant succeeded.

SQL> grant select on v_$statname to plustrace;
Grant succeeded.

SQL> grant select on v_$mystat to plustrace;
Grant succeeded.

SQL> grant plustrace to dba with admin option;
Grant succeeded.

SQL>
SQL> set echo off
SQL>
SQL> grant plustrace to public;
Grant succeeded.
After following all above steps, now we are good with autotrace traceonly.

SQL> conn hr/hr@testpdb1
Connected.
SQL>
SQL> set autotrace traceonly
SQL>

Database Configuration Assistant was not showing the database

$
0
0
Database Configuration Assistant was not showing the database and  Configure Database Options and it was disabled.
 
 We tried setting up ORACLE_SID and ORACLE_HOME and ran dbca but it was not showing the database and the above option was  greyed out.

We checked and verified the oratab file for correct entry for the database we were trying to access from dbca but still it was greyed out.

To resolve this issue I utilized all my experience and knowledge at last was able to resolve it. The issue was simple and silly but sometimes small things matter.

Below are steps used to resolve this issue:

Step 1:

Make sure the ORACLE_HOME is some thing like below : /u01/app/oracle/12.1/dbhome in /etc/oratab file

(Note we should not have '/' after dbhome)

Step 2:

Check the value of the configuration of  RAC Database:

srvctl config database -d testdb1

Where: testdb1=> DB Name.

Now change the ORACLE_HOME value as below:

srvctl modify database -o /u01/app/oracle/12.1/dbhome

Where:  /u01/app/oracle/12.1/dbhome=> ORACLE HOME location.

Make sure you don't use '/' after dbhome.

Step 3:

Now launch 'dbca' bye setting correct Environment.

Now you should see the option enabled for Configure Database Options after launching dbca.

Migrating Oracle ERP Applications from one server to another in Windows Environment

$
0
0
Below are the steps required to be done in order to migrate Oracle ERP Applications from one server to another. These steps are successfully tested in my Test Oracle ERP Servers.

Note 1: My source and Target Environment is EBS 12.1.3
Note 2: This is applicable for Windows 2008 R2 server but somewhat similar steps can be applicable to Windows 2012 R2 or Windows 2016 server)
Note 3:All the steps are done on the Target Application Server
Note 4:Make sure you change the source server name and assign the same name to target Windows server in order to have backup of source Application server and not much changes is required in CONTEXT FILE if you have same Drives on Source and Target Application server.
Note 5: Please change server names,Directory structure and Environment files based on your servers.
as one need to spend some time in order to do this activity successfully.

Preparatory Steps:

1. Install MKS Toolkit on Target Server( we can also install CYGWIN ) . It is recommended to install MKS from Oracle Support.
2.Install VISUAL Studio of same Windows OS version(2008 R2).

Planning and Execution Steps:

1.Shutdown Oracle ERP Applications(adstpall.sh) Source(ERP APPLICATIONS)
Command prompt Run As Administrator: Source Env file APPSERP.env
cd $ADMIN_SCRIPTS_HOME
./adstpall.sh


2.Check firewall and connectivity from DB to Apps Tier and verify the port is open using telnet on Target(ERP APPLICATIONS)

telnet hostname port
telnet testhost 1521
connected means it is working fine, if it says trying add the firewall rules and allow port and try again.

3.Copy Apps Files from Source to target Target Server (Initiate copy From Target Server)

4.Modify PATH Environment variable to execute perl K:\oracle\apps\tech_st\10.1.3\perl\5.8.3\bin\MSWin32-x86-multi-thread; => In First line and remove rest of the variables if exists.
5.Change compatibility to Windows Server 2003 SP1 in K:\oracle\apps\tech_st\10.1.2\oui\bin for setup.exe 

6.Change compatibility to Windows Server 2003 SP1 in K:\oracle\apps\tech_st\10.1.3\oui\bin for setup.exe
7.Make sure INST_TOP is renamed on new Target(ERP APPLICATIONS)

(Run as Administrator on new command prompt).
cd K:\oracle\apps\apps_st\comn\clone\bin
 Execute  perl adcfgclone.pl appsTier
8.Verify logs of adcfgclone and confirm no errors exists.
adcfgclone logs Applications tier:

$COMMON_TOP/clone/bin/CloneContext_<timestamp>.log
This log shows the entries selected during execution of adcfgclone command


9.Execute autoconfig on Apps Tier and copy env file APPSERP_testhost.cmd from backup to APPL_TOP

cd $ADMIN_SCRIPTS_HOME
./adautocfg.sh

10.Replace ADMIN Directory(K:\oracle\inst\apps\ERP APPLICATIONS_testhost\ora\10.1.2\network) with admin_bkp and Reboot the Target(ERP APPLICATIONS)
11.Compare Services properties in old and new server and set accordingly. Restart the new Target (ERP APPLICATIONS) Application server

12.Compare Firewall rules in old and New  PROD Apps servers and copy accordingly and Validate with telnet

13.Execute cmclean(K:\oracle)
14.Start the Applications (adstral.sh) Target (ERP APPLICATIONS)

cd $ADMIN_SCRIPTS_HOME
./adstral.sh

Post Execution and Sanity Checks:
1.Configure Oracle Workflow inbound and outbound server settings and validate workflow mailer is up and running and test mailer
2.Complete Sanity checks for Database ,Applications, Concurrent Programs ,SSO and Workflow Mailer

FS clone cannot be called while a patching cycle is active

$
0
0
1 shutdown all apps services on RUN and PATCH file systems.
. <EBS_ROOT>/EBSapps.env run
cd $INST_TOP/admin/scripts
adstpall.sh apps/apps
. <EBS_ROOT>/EBSapps.env patch
cd $INST_TOP/admin/scripts
adstpall.sh apps/apps
2. On the RUN file system, start up admin server via the following command
. <EBS_ROOT>/EBSapps.env run
cd $INST_TOP/admin/scripts
$ adadminsrvctl.sh start
Ensure the Weblogic Admin Server and Node Manager are running on the Run File
system. You can run the following commands to check the status:
$ adadminsrvctl.sh status
$ adnodemgrctl.sh status
3. Run these in order:
$ adop phase=abort
$ adop phase=cleanup cleanup_mode=full
$ adop phase=fs_clone force=yes
4. If any adop phase fails, please generate a new diagnostic info tar.
Diagnostic script to collect information required for AD/TXK 12.2.x bugs ( Doc ID 1901242.1 ).
Hopefully, this one will collect the many queries needed.

ERROR: Patching cycle in progress - run this utility from patch file system

$
0
0
AD Administration error:.

ERROR:  Patching cycle in progress - run this utility from patch file          system.


You can only run it from run file system when not patching.


Check the any active adop cycle by running the script ADZDSHOWED.sql:





SQL> @ADZDSHOWED.sql

=========================================================================
= Editions
=========================================================================

Edition Name Type Status Current?

--------------- -------- -------- --------
EDITION1 PATCH ACTIVE
ORA$BASE ACTIVE
V_20000001_2001 ACTIVE



Solution:-



To resolve the issue test the following steps in a development/test instance and then migrate accordingly:


1. Complete or abort any open patching cycles using adop phase=abort.


2. Any remaining database editions (for example 'EDITION1') will need      to be addressed by the DBA.


3. Run ADZDSHOWED.sql to confirm the editions are corrected.



4. Run adadmin and and confirm it proceeds without error.
Viewing all 1640 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>