Quantcast
Channel: SCN : Document List - SAP on Oracle
Viewing all 299 articles
Browse latest View live

Oracle client upgrade on SAP

$
0
0

Hi,

 

This document expains the step by step procedure to upgrade oracle client on SAP.

Platform:

Source

OS- AIX 7.1

Oracle client- 10.

 

Target

ORACLE Client- 11.2.0.4 V3

Media Used- 51049326 for ORACLE Client 11.2.0.4 V3

 

 

1. create a   dir 11x_64 in /oracle/client

os> mkdir -p /oracle/client/11x_64

 

2. dump the oracle client software to this new direcotry(only keep the directory name with 'instantclient_11204' in this new dir.)

change the permission of 'instantclient_11204' to sidadm:sapsys

 

3. creating soft link for this new client

os> cd /oracle/client/11x_64

os> ln -s /oracle/client/11x_64/instantclient_11204 instantclient

 

4. Change the entries of all env files under home dir(/home/sidadm). in these env files we have to replace the value of old client (10x_64) to new client(11x_64).

the files where change is required are:(1).dbenv_hostname.sh (2).dbenv_hostname.csh (3).dbenv.sh (4).dbenv.csh

 

5. check whether 11x has been reflected in the whole env files:

sidadm> env | grep 11x(it must give some output)

sidadm> env | grep 10x(output must be blank)

 

6. check whether soft link created or not?

 

go to this directory->

/oracle/client/11x_64

ls -lrt

total 8

drwxrwxrwx    2 sidadm   sapsys         4096 Dec 25 16:15 instantclient_11204

lrwxrwxrwx    1 root     system           41 Dec 25 16:18 instantclient -> /oracle/client/11x_64/instantclient_11204

**the output must be like this

 

7. check the version of current soft link client

sidadm> cd /oracle/client/11x_64/instantclient_11204

sidadm> ./genezi -v

Client Shared Library 64-bit - 11.2.0.4.0


SAP on Oracle - DBA Overview

$
0
0

Use the resources on this topic page to get started in your role as database administrator for an Oracle database hosting an SAP application.

 

Getting Started

SAP Database Administration for Oracle

For a short introduction to SAP database administration for Oracle, check out this white paper.

SAP Database Guide: Oracle (in the SAP help portal)

This is the full Oracle Database Administration Guide for SAP NetWeaver 7.3 as HTML.

 

 

 

SAP Database Guide: Oracle (in the SAP help portal)

This is the full Oracle Database Administration Guide for SAP NetWeaver 7.1 as HTML.

 

SAP Database Guide: Oracle

This is the full Oracle Database Administration Guide for SAP NetWeaver 7.1 as PDF (756 pages).

 

SAP Tools for Oracle Database Administration

BR*Tools

We provide you with BR*Tools, including BRSPACE and BRCONNECT, to help you administer your Oracle database:

  • As of SAP Web AS 6.40, SAPDBA is no longer being released.
  • You can continue to use SAPDBA 6.20 linked to Oracle 9i with SAP Web AS 6.40. However, we strongly recommend you to only use BR*Tools instead.
  • You cannot use SAPDBA with Oracle 10g or higher.
  • BR*Tools 6.40, including BRSPACE, can be used for all SAP Releases based on Oracle 9i.
  • BR*Tools 7.00, including BRSPACE, can be used for all SAP Releases based on Oracle 10g

 

You can use these SAP tools for Oracle database administration both in daily routine tasks and in less frequent, complex tasks, such as recovering or reorganizing the database. You can configure and execute functions individually.

BR*Tools also offer certified interface solutions for external backup tools using BACKINT and integrate the latest in database technology, including standby databases and split-mirroring.

You can download BRTOOLS in the latest SAP Support Package - see the link on the right of this page.

 

 

More Information

You can use the DBA Cockpit to administer your Oracle database. Particularly suited to Oracle 10g and RAC-compatible, you can use DBA Cockpit to monitor database performance and space usage, as well as to run the DBA Planning Calendar and check DBA and backup logs. DBA Cockpit is packed with functionality that was previously scattered in different transactions. You can find an extract from the SAP Library covering DBA Cockpit for Oracle here.

 

BR* Tools Patches and Extensions

This is a full list of the patches and extensions for BR*Tools, version 7.00. You can find a detailed list of recent changes to BR*Tools BR*Tools Extensions.

 

Oracle Database Monitors and Tools

To help you quickly recognize and analyze Oracle database problems, SAP provides comprehensive and fully integrated database system checking. By running regular checks and looking at the results, you can rapidly identify potential problems and take the required action before the database crashes. This SAP whitepaper explains how.

 

Oracle logMiner

With this article from the Oracle German Users Conference (DOAG), you can see how to use logMiner for Oracle 10g to analyze redo logs. Two in-depth real-life case studies are presented to illustrate the ideas.


Configuration of the SAP-Oracle Database Interface

This presentation summarizes the ways in which you can tune certain default values in the SAP-Oracle database interface (database shared library, DBSL). We also look at how this affects the ongoing operation of the SAP system. The presentation is tailored to the SAP kernel as of Version 7.10, although most details are valid for all currently supported SAP releases.

 

BRSPACE Online Reorganizations: Advanced Reorganisations

This presentation focuses on the BRSPACE online reorganization of tables, which also includes tablespace reorganizations.

 

BRSPACE Online Reorganizations: Top Ten Pitfalls and Problems

This presentation focuses on the major issues found with BRSPACE online reorganizations and how to avoid them.

 

SAP Systems with External Oracle Databases

This presentation from the 2011 German Oracle Users Conference (DOAG) discusses SAP workload management for the Oracle database.

 

BR Tools Support for Oracle 11g ASM and RAC

This presentation from the 2011 German Oracle Users Conference (DOAG) discusses BR*Tools support for Oracle 11g Automatic Storage Management (ASM) and Real Application Clusters (RAC),.

Oracle RAC useful commands in SAP Environment

$
0
0

Hello Everyone,

 

We are in a project now that involves Oracle RAC (2 nodes) and SAP ERP, the oracle white papers are big and some of the commands you need to learn to administrate the RAC environment are confuse so here are the most common and useful commands for your RAC system.

 

Previous Info:

 

RDBMS: Oracle 11.2.0.4

RAC Node 1: erpdb01

RAC Node 2: erpdb02

SAP SID: PRD

DB SID:PRD

RAC Instances: PRD1 and PRD2

 

First log with user oracle in any node of the RAC database (first node in my case):

 

RAC1.png

 

Now we check the actual status of the database. Both RAC instances (PRD1 and PRD2) are running.

 

     srvctl status database -d PRD

 

RAC2.png

 

To stop only the instance PRD1 in the first RAC node we use this command:

 

     srvctl stop instance -d PRD -i PRD1

RAC3.png

 

The same works for stopping the second RAC instance.

 

     srvctl stop instance -d PRD -i PRD2

 

RAC4.png

 

For starting the instances separately we change the "stop" command for start like this:

 

     srvctl start instance -d PRD -i PRD1

 

RAC5.png

     srvctl start instance -d PRD -i PRD2

 

RAC6.png

 

Normally we use this commands to stop only one RAC instance for a schedule outage (patching for example), but when you need to stop directly both instances PRD1 and PRD2 you can use this command.

 

      srvctl stop database -d PRD

 

RAC7.png

 

For starting both instances change the "stop" command for "start"

 

     srvctl start database -d PRD

 

RAC8.png

 

Sometimes when the database don't start you can check if the ASM services is running with this command:

 

     srvctl status asm

 

RAC9.png

 

With this command you can check the cluster services:

 

     go to the GRID path /oracle/GRID/112_64/bin

     crsctl check cluster -all

 

RAC10.png

 

To check the status of the voting disks

 

     go to the GRID path /oracle/GRID/112_64/bin

     ./crsctl query css votedisk

 

RAC11.png

 

To check the status of the scan_listener (This installation have only 3, you can have more)

 

     srvctl status scan_listener

 

RAC12.png

To check the status of the nodeapps you use:

 

     srvctl status nodeapps -n erpdb01

     srvctl status nodeapps -n erpdb02

 

RAC13.png

 

This command can be very useful too, you can check the status, running node, etc of all components in the RAC.

 

     crs_stat -t

 

RAC14.png

 

 

Hope it helps you in your journey. Enjoy!

SAPCTL Functionality and Usage for Oracle RAC environments

$
0
0

Hello,

 

Now we are going to show the functionality and the usage of sapctl service in RAC environments. Normally between srvctl, crsctl, sapctl you can get confuse with the commands you need to administrate the SAP HA subsystems (ASCS, ERS, DV, etc)

 

 

What does SAPCTL does?

 

1. You can create and remove any Oracle Clusterware configuration of the SAP HA subsystem.

2. You can start and stop the SAP HA subsystem that are created in the Oracle Clusterware, you can choose to start/stop as a whole or individual components.

3. You can check the status of any SAP HA subsystem created in the Oracle Clusterware.

4. You can relocate any SAP HA subsystem created in the Oracle Clusterware.

 

SAPCTL usage and commands


This working example assumes that you have completed all of this steps:

 

1. Oracle Clusterware is installed.

2. Oracle RAC is installed.

3. You have installed SAP and the SAPCTL package.

4. You have 2 RAC nodes.

5. Only ASCS and ERS services are installed in Oracle Clusterware, the SAP Instance is installed in a different host (No cluster service).

 

 

Previous Info:

 

First RAC Node:           erpdb01

Second RAC Node:      erpdb02

SAP SID:                      PRD

Oracle Version:            11.2.0.4

ASCS Instance:           ASCS01

ERS Instance:             ERS20

SAPCTL Version:          v8

 

First log in with sidadm to operating system level.

 

To check the status of all SAP HA subsystems installed in Oracle Clusterware you use this command:

 

     sapctl status all -sapsid PRD

 

sapctl1.png

 

To check the status of individual SAP HA subsystems installed in Oracle Clusterware you use this command:

 

     sapctl status abapvip/abapenq/abaprep -sapsid PRD

 

sapctl2.png

 

To check the which SAP Instace have been configured by Oracle Clusterware:

 

     sapctl config

 

sapctl3.png

 

To stop all SAP HA subsystems use this command:

 

     sapctl stop all -sapsid PRD

 

sapctl4.png

 

To stop all SAP HA subsystems use this command:

 

     sapctl start all -sapsid PRD

 

     As you can see the ERS Service will automatically started in the oposite node (erpdb02) where the ASCS service started.

sapctl5.png

 

If you need to start/stop individually any subsystem service you can use this commands:

 

     sapctl start/stop abapenq -sapsid PRD  

     sapctl start/stop abaprep -sapsid PRD

     sapctl start/stop abapvip -sapsid PRD (VIP IP for ASCS service)

 

sapctl6.png

sapctl7.png

 

 

Now the commands to manually relocate subsytem services between the RAC Nodes

 

     ASCS01 service is running on erpdb01 -> relocate to erpdb02

     ERS20 service is running on erpdb02

 

     sapctl relocate -sapsid PRD -abapenq/-abaprep ASCS01/ERS20 -to erpdb02/erpdb01

 

sapctl8.png

 

After the relocation of ASCS service is done, the ERS service automatically relocates to oposite node.

 

Hope it helps you!, don't forget to like and rate if it was helpful.

Monitor & Extend Tablespaces In SAP

$
0
0

Monitor & Extend Tablespaces In SAP

 

Purpose:

This document describes how to monitor and extend tablespaces in SAP systems with Oracle as database. Oracle DB manages database data in logical units called table spaces. Hardware platform can be any (Unix, Linux, Windows)

 

Procedure:

  1. 1.     Monitor tablespaces
  2. a. Open SAPGUI & use t-code DB02. To get the latest data press the refresh button on the top left corner, this will schedule a job REFRESH_SPACE_STATISTICS_SID and we can monitor this job in t-code SM37. Once this job is finished the data will be updated in DB02. Go to Oracle Database administration à Space à Tablespaces à Overview. Generally we need to add space if any tablespace reaches 95% (Total used %).
  3. b. Monitor tablespaces via BRTOOLS. Check below what to execute :

hostname:orasid > brtools

BR0651I BRTOOLS 7.20 (35)

 

BR0280I BRTOOLS time stamp: 2015-08-31 21.43.51

BR0656I Choice menu 1 - please make a selection

-------------------------------------------------------------------------------

BR*Tools main menu

 

1 = Instance management

2 - Space management

3 - Segment management

4 - Backup and database copy

5 - Restore and recovery

6 - Check and verification

7 - Database statistics

8 - Additional functions

9 - Exit program

 

Standard keys: c - cont, b - back, s - stop, r - refr, h - help

-------------------------------------------------------------------------------

BR0662I Enter your choice:

2

BR0280I BRTOOLS time stamp: 2015-08-31 21.43.53

BR0663I Your choice: '2'

 

BR0280I BRTOOLS time stamp: 2015-08-31 21.43.53

BR0656I Choice menu 5 - please make a selection

-------------------------------------------------------------------------------

Database space management

 

1 = Extend tablespace

2 - Create tablespace

3 - Drop tablespace

4 - Alter tablespace

5 - Alter data file

6 - Move data file

7 - Additional space functions

8 - Reset program status

 

Standard keys: c - cont, b - back, s - stop, r - refr, h - help

-------------------------------------------------------------------------------

BR0662I Enter your choice:

c

BR0280I BRTOOLS time stamp: 2015-08-31 21.43.57

BR0663I Your choice: 'c'

BR0259I Program execution will be continued...

 

BR0280I BRTOOLS time stamp: 2015-08-31 21.43.57

BR0657I Input menu 81 - please enter/check input values

-------------------------------------------------------------------------------

BRSPACE options for tablespace extension

 

1 - BRSPACE profile (profile) ...... [initSID.sap]

2 - Database user/password (user) .. [/]

3 ~ Tablespace name (tablespace) ... []

4 - Confirmation mode (confirm) .... [yes]

5 - Scrolling line count (scroll) .. [20]

6 - Message language (language) .... [E]

7 - BRSPACE command line (command) . [-p initSID.sap -s 20 -l E -f tsextend]

 

Standard keys: c - cont, b - back, s - stop, r - refr, h - help

-------------------------------------------------------------------------------

BR0662I Enter your choice:

c

BR0280I BRTOOLS time stamp: 2015-08-31 21.44.10

BR0663I Your choice: 'c'

BR0259I Program execution will be continued...

 

BR0291I BRSPACE will be started with options '-p initSID.sap -s 20 -l E -f tsextend'

 

BR0280I BRTOOLS time stamp: 2015-08-31 21.44.10

BR0670I Enter 'c[ont]' to continue, 'b[ack]' to go back, 's[top]' to abort:

c

BR0280I BRTOOLS time stamp: 2015-08-31 21.44.11

BR0257I Your reply: 'c'

BR0259I Program execution will be continued...

 

###############################################################################

 

BR1001I BRSPACE 7.20 (35)

BR1002I Start of BRSPACE processing: abcdefg.tse 2015-08-31 21.44.12

BR0484I BRSPACE log file: /oracle/SID/sapreorg/abcdefg.tse

 

BR0280I BRSPACE time stamp: 2015-08-31 21.44.12

BR1009I Name of database instance: S9C

BR1010I BRSPACE action ID: abcdefg

BR1011I BRSPACE function ID: tse

BR1012I BRSPACE function: tsextend

 

BR0280I BRSPACE time stamp: 2015-08-31 21.44.12

BR0656I Choice menu 301 - please make a selection

-------------------------------------------------------------------------------

Tablespace extension main menu

 

1 = Extend tablespace

2 - Show tablespaces

3 - Show data files

4 - Show disk volumes

5 * Exit program

6 - Reset program status

 

Standard keys: c - cont, b - back, s - stop, r - refr, h - help

-------------------------------------------------------------------------------

BR0662I Enter your choice:

c

BR0280I BRSPACE time stamp: 2015-08-31 21.44.13

BR0663I Your choice: 'c'

BR0259I Program execution will be continued...

 

BR0280I BRSPACE time stamp: 2015-08-31 21.44.14

BR0658I List menu 302 - please select one entry

-------------------------------------------------------------------------------

List of tablespaces for extension

 

  1. Pos.  Tablespace    Files/AuExt.   Total[KB] Used[%]    Free[KB]  MaxSize[KB]

 

  1 - PSAPSR3          41/0       614431744     89.25 66036288    614431744

  2 - PSAPSR3731        8/0        61644800     53.05 28943168     61644800

  3 - PSAPSR3USR        1/0         1048576      6.30 982528      1048576

  4 - PSAPTEMP          8/0        33062912      0.00 33062912     33062912

  5 - PSAPUNDO          2/0 40960000      0.01    40957952 40960000

  6 - SYSAUX            1/0         4055040     44.04 2269184      4055040

  7 - SYSTEM            2/0         1310720     62.40 492864      1310720

 

Standard keys: c - cont, b - back, s - stop, r - refr, h - help

-------------------------------------------------------------------------------

BR0662I Enter your selection

 

 

  1. 2.     Extend (OR) Increase Table space

We can extend table space by creating new data file (or) resize existing datafile using SAP provided tool BRTOOLS.

Note: Before adding space, need to check enough space in file systems

 

hostname:orasid> brtools

BR0651I BRTOOLS 7.20 (35)

 

BR0280I BRTOOLS time stamp: 2015-08-31 21.51.26

BR0656I Choice menu 1 - please make a selection

-------------------------------------------------------------------------------

BR*Tools main menu

 

1 = Instance management

2 - Space management

3 - Segment management

4 - Backup and database copy

5 - Restore and recovery

6 - Check and verification

7 - Database statistics

8 - Additional functions

9 - Exit program

 

Standard keys: c - cont, b - back, s - stop, r - refr, h - help

-------------------------------------------------------------------------------

BR0662I Enter your choice:

2

BR0280I BRTOOLS time stamp: 2015-08-31 21.51.27

BR0663I Your choice: '2'

 

BR0280I BRTOOLS time stamp: 2015-08-31 21.51.27

BR0656I Choice menu 5 - please make a selection

-------------------------------------------------------------------------------

Database space management

 

1 = Extend tablespace

2 - Create tablespace

3 - Drop tablespace

4 - Alter tablespace

5 - Alter data file

6 - Move data file

7 - Additional space functions

8 - Reset program status

 

Standard keys: c - cont, b - back, s - stop, r - refr, h - help

-------------------------------------------------------------------------------

BR0662I Enter your choice:

c

BR0280I BRTOOLS time stamp: 2015-08-31 21.51.30

BR0663I Your choice: 'c'

BR0259I Program execution will be continued...

 

BR0280I BRTOOLS time stamp: 2015-08-31 21.51.30

BR0657I Input menu 81 - please enter/check input values

-------------------------------------------------------------------------------

BRSPACE options for tablespace extension

 

1 - BRSPACE profile (profile) ...... [initSID.sap]

2 - Database user/password (user) .. [/]

3 ~ Tablespace name (tablespace) ... []

4 - Confirmation mode (confirm) .... [yes]

5 - Scrolling line count (scroll) .. [20]

6 - Message language (language) .... [E]

7 - BRSPACE command line (command) . [-p initSID.sap -s 20 -l E -f tsextend]

 

Standard keys: c - cont, b - back, s - stop, r - refr, h - help

-------------------------------------------------------------------------------

BR0662I Enter your choice:

c

BR0280I BRTOOLS time stamp: 2015-08-31 21.51.31

BR0663I Your choice: 'c'

BR0259I Program execution will be continued...

 

BR0291I BRSPACE will be started with options '-p initSID.sap -s 20 -l E -f tsextend'

 

BR0280I BRTOOLS time stamp: 2015-08-31 21.51.31

BR0670I Enter 'c[ont]' to continue, 'b[ack]' to go back, 's[top]' to abort:

c

BR0280I BRTOOLS time stamp: 2015-08-31 21.51.31

BR0257I Your reply: 'c'

BR0259I Program execution will be continued...

 

###############################################################################

 

BR1001I BRSPACE 7.20 (35)

BR1002I Start of BRSPACE processing: abcdefg.tse 2015-08-31 21.51.32

BR0484I BRSPACE log file: /oracle/SID/sapreorg/abcdefg.tse

 

BR0280I BRSPACE time stamp: 2015-08-31 21.51.32

BR1009I Name of database instance: SID

BR1010I BRSPACE action ID: abcdefg

BR1011I BRSPACE function ID: tse

BR1012I BRSPACE function: tsextend

 

BR0280I BRSPACE time stamp: 2015-08-31 21.51.32

BR0656I Choice menu 301 - please make a selection

-------------------------------------------------------------------------------

Tablespace extension main menu

 

1 = Extend tablespace

2 - Show tablespaces

3 - Show data files

4 - Show disk volumes

5 * Exit program

6 - Reset program status

 

Standard keys: c - cont, b - back, s - stop, r - refr, h - help

-------------------------------------------------------------------------------

BR0662I Enter your choice:

c

BR0280I BRSPACE time stamp: 2015-08-31 21.51.33

BR0663I Your choice: 'c'

BR0259I Program execution will be continued...

 

BR0280I BRSPACE time stamp: 2015-08-31 21.51.34

BR0658I List menu 302 - please select one entry

-------------------------------------------------------------------------------

List of tablespaces for extension

 

  1. Pos.  Tablespace    Files/AuExt.   Total[KB] Used[%]    Free[KB]  MaxSize[KB]

 

  1 - PSAPSR3          41/0       614431744     89.25 66036288    614431744

  2 - PSAPSR3731        8/0        61644800     53.05 28943168     61644800

  3 - PSAPSR3USR        1/0         1048576      6.30 982528      1048576

  4 - PSAPTEMP          8/0        33062912      0.00 33062912     33062912

  5 - PSAPUNDO          2/0 40960000      0.01    40957952 40960000

  6 - SYSAUX            1/0         4055040     44.04 2269184      4055040

  7 - SYSTEM            2/0         1310720     62.40 492864      1310720

 

Standard keys: c - cont, b - back, s - stop, r - refr, h - help

-------------------------------------------------------------------------------

BR0662I Enter your selection:

1

BR0280I BRSPACE time stamp: 2015-08-31 21.51.39

BR0663I Your selection: '1'

 

BR0280I BRSPACE time stamp: 2015-08-31 21.51.39

BR0657I Input menu 303 - please enter/check input values

-------------------------------------------------------------------------------

Options for extension of tablespace PSAPSR3 (1. file)

 

1 * Last added file name (lastfile) ....... [/oracle/SID/sapdata1/sr3_41/sr3.data2]

2 * Last added file size in MB (lastsize) . [20000]

3 - New file to be added (file) ........... [/oracle/SID/sapdata1/sr3_42/sr3.data3]

4 ~ Raw disk / link target (rawlink) ...... []

5 - Size of the new file in MB (size) ..... [10000]

6 - File autoextend mode (autoextend) ..... [no]

7 # Maximum file size in MB (maxsize) ..... []

8 # File increment size in MB (incrsize) .. []

9 - SQL command (command) ................. [alter tablespace PSAPSR3 add datafile '/oracle/SID/sapdata1/sr3_3/sr3.data3' size 10000M autoextend off]

 

Standard keys: c - cont, b - back, s - stop, r - refr, h - help

-------------------------------------------------------------------------------

BR0662I Enter your choice:

c

SAP on Oracle Real Application Clusters (RAC)

$
0
0

The white papers on this page help you to set up SAP systems to use Oracle Real Application Clusters (RACs). They describe all required changes to the Oracle database, Oracle network configuration, Oracle instance parameters, and so on.

 

Make sure that you also follow all additional steps listed in the SAP installation and upgrade guides for Oracle 10g Release 2 and check all RAC-related SAP notes, starting with SAP note 527843 (SMP login required), which shows release details for each operating system.

 

Upgrade of SAP NetWeaver Installation to Oracle Grid Infrastructure 12.1.0.2 with Oracle Real Application Clusters 12c Release 1 (PDF 0.4 MB)

New April 2015: This Oracle white paper explains the steps to upgrade an SAP NetWeaver Installation from Oracle RAC 11.2.0.4 to Oracle RAC 12.1.0.2.

 

Providing High Availability for SAP Resources with Oracle Clusterware 11g Release 2 and Clusterware 12c Release 1 (PDF 0.4 MB)

Update April 2015: This Oracle white paper describes how to use Oracle Clusterware 11 Release 2 and Clusterware 12 Release 1 to manage SAP critical resources for SAP kernel version 700 and later

 

Getting Started

Configuration of SAP NetWeaver for Oracle Grid Infrastructure 11.2 with Oracle Real Application Clusters 11g Release 2 (PDF 451 KB)

Update March 2011: This document explains all the necessary steps to configure an SAP system for Oracle 11g Release 2 Real Application Clusters.

 

SAP with Oracle Real Application Clusters 11g Release 2 (RAC) on Microsoft Windows 2008 Release 2 (PDF 1.2 MB)

This Oracle white paper describes the installation and configuration of SAP on Oracle RAC 11.2 using Oracle ASM and Oracle ACFS on the platform Microsoft Windows 2008 Release 2.

 

SAP NetWeaver with Oracle 10g R2 RAC (UNIX & Linux) (PDF 3 MB)
This best practices guide from Oracle covers the configuration of an SAP NetWeaver System for an Oracle 10g R2 Real Application Cluster (RAC) on UNIX or Linux.


Featured Content for SAP on Oracle

$
0
0

Oracle Database In-Memory Certified by SAP New!

Oracle Database In-Memory has been certified by SAP for use with the SAP® Business Suite based on the SAP NetWeaver® 7.x technology platform. For more information, see SAP Note 2178980.
Stay up-to-date by following us on Twitter.

 

Oracle Database 12c Certified by SAP New!

Oracle Database 12c has been certified by SAP for use with the SAP® Business Suite based on the SAP NetWeaver® 7.x technology platform.. SAP installations and upgrades are now (as of ) also supported with Oracle 12c. For more information, see SAP Note 2133079.
Stay up-to-date by following us on Twitter.

 

SAP on Oracle Development Update New!

Check our development update for what's up and coming for SAP on the Oracle database - platform news, Oracle 12.1 & 11.2, RAC, ASM, Oracle Linux, BR*Tools, Oracle Database In-Memory....
Stay up-to-date by following us on Twitter.

 

New BR*Tools Patch Now Available (with support for Oracle 12c) New!

The new BR*Tools patch (7.40 Patch 17) is now available on SAP Service Marketplace. It includes full support for Oracle 12c (introduced with patch 14). For more information, see SAP Notes  2213142 and 2087004.
Stay up-to-date by following us on Twitter.

 

Oracle Linux 7 Certified by SAP

Oracle Database 11g Release 2 and all SAP products based on SAP NetWeaver 7.x are now certified and supported on Oracle Linux 7. You can run on bare-metal Oracle Linux or in a virtualized Oracle VM environment, with a certified and supported SAP environment. For the latest Oracle Linux certification, see SAP Note 2069760.
Stay up-to-date by following us on Twitter.

 

Red Hat Enterprise Linux 7 Supported for SAP on Oracle

Red Hat Enterprise Linux 7 is now certified for SAP systems running on Oracle Database 11g Release 2. For more information, see SAP Notes 1431800 and 2002167.
Stay up-to-date by following us on Twitter.

 

New Secure Connect Method 

There is now a new method for the connection between SAP processes and the Oracle database. Instead of storing the encrypted password in the database, it is stored in the file system. This means that the Oracle remote OPS$ connect, which has been used up till now, is no longer needed. For more information, see SAP Notes 1622837 and 1639578.
Secure storage is now supported in BR*Tools. For more information, see SAP Note 1764043.

 

SAP on Oracle Presentations

Here is a new presentation from the recent conference of the German Oracle Users Group (DOAG):

Optimized Loading into the F-Fact Table

Here are some presentations from previous DOAG conferences:

 

Recently Featured Content

Here you can find entries that were previously shown on this page but have since been removed to make way for new content.

Useful Oracle queries for SAP Basis Adminsitrators

$
0
0

 

Introduction

The main goal of this document is serving as a base for SAP Basis Administrator who work with Oracle Databases and want to perform simple checks.


I will try to improve this document as much as I can.

 

Of course, do not hesitate to collaborate by adding more SQL queries.


 

Considerations

DBSID: SAP

SAPSID: SAP

 

 

System variables

SPOOL <filename>

SET LINESIZE 32767

SET WRAP OFF

SPOOL OFF

 

Check SQL*Plus User's Guide and Reference.

 

 

Database

 

Show Oracle Database version

SQL> SELECT * FROM v$version;


BANNER

--------------------------------------------------------------------------------

Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production

PL/SQL Release 11.2.0.3.0 - Production

CORE    11.2.0.3.0      Production

TNS for IBM/AIX RISC System/6000: Version 11.2.0.3.0 - Production

NLSRTL Version 11.2.0.3.0 - Production

 

 

Show database details

SQL> SELECT NAME, LOG_MODE, OPEN_MODE, DATABASE_ROLE, PLATFORM_NAME FROM  v$database;


 

NAME      LOG_MODE     OPEN_MODE            DATABASE_ROLE    PLATFORM_NAME

--------- ------------ -------------------- ---------------- --------------------------

SAP       NOARCHIVELOG READ WRITE           PRIMARY          AIX-Based Systems (64-bit)



Show database size

SQL> SELECT SUM(BYTES)/1024/1024/1024 AS "DBSIZE(GB)" FROM dba_data_files;

 

DBSIZE(GB)

----------

5312.59766



Show Oracle Instant Client Version

SQL> select distinct client_version from v$session_connect_info where sid = sys_context('userenv', 'sid');

 

 

CLIENT_VERSION

--------------

11.2.0.3.0

For a list of all possibilities to check and identify Oracle Instant Client Version check this document.





Instance

 

Show database instance details

SQL> SELECT INSTANCE_NAME, HOST_NAME, VERSION, STARTUP_TIME, STATUS, INSTANCE_ROLE FROM v$instance;


INSTANCE_NAME  HOST_NAME      VERSION     STARTUP_TIME    STATUS       INSTANCE_ROLE   

-------------  ---------      -------     ------------    ------       -------------   

SAP            SAPSERVER     11.2.0.3.0  26-MAR-15      OPEN         PRIMARY_INSTANCE

 

 

 

 

Tablespaces

 

Show tablespaces details

SQL> SELECT TABLESPACE_NAME, STATUS, CONTENTS, SEGMENT_SPACE_MANAGEMENT FROM dba_tablespaces;


TABLESPACE_NAME                STATUS    CONTENTS  SEGMEN

------------------------------ --------- --------- ------

SYSTEM                         ONLINE    PERMANENT MANUAL

PSAPUNDO                       ONLINE    UNDO      MANUAL

SYSAUX                         ONLINE    PERMANENT AUTO

PSAPTEMP                       ONLINE    TEMPORARY MANUAL

PSAPSR3                        ONLINE    PERMANENT AUTO

PSAPSR3USR                     ONLINE    PERMANENT AUTO

TOOLS                          ONLINE    PERMANENT AUTO

PSAPSR3731                     ONLINE    PERMANENT AUTO

 

 

List of datafiles for tablespace

SQL> select file_name from dba_data_files where tablespace_name='<TABLESPACE_NAME>';

 

 

Check autoextend

SQL> select TABLESPACE_NAME,SEGMENT_SPACE_MANAGEMENT from dba_tablespaces;

 

 

 

 

Users

 

Show database users

SQL> SELECT USERNAME, ACCOUNT_STATUS, AUTHENTICATION_TYPE FROM dba_users;


USERNAME                       ACCOUNT_STATUS                   AUTHENTI

------------------------------ -------------------------------- --------

SAPSR3                         OPEN                             PASSWORD

SYSTEM                         OPEN                             PASSWORD

SYS                            OPEN                             PASSWORD

MGMT_VIEW                      OPEN                             PASSWORD

OPS$SAPSERVICESAP              OPEN                             EXTERNAL

OPS$ORASAP                     OPEN                             EXTERNAL

NAGIOS                         OPEN                             PASSWORD

DUMMY                          OPEN                             PASSWORD

ADMIN                          OPEN                             PASSWORD

PERFSTAT                       OPEN                             PASSWORD

APPQOSSYS                      OPEN                             PASSWORD

USERNAME                       ACCOUNT_STATUS                   AUTHENTI

ORACLE_OCM                     OPEN                             PASSWORD

OPS$SAPADM                     OPEN                             EXTERNAL

DIP                            OPEN                             PASSWORD

OUTLN                          OPEN                             PASSWORD

SYSMAN                         EXPIRED(GRACE)                   PASSWORD

DBSNMP                         EXPIRED(GRACE)                   PASSWORD

 

 

Unlock user account

SQL> ALTER <USERNAME> ACCOUNT UNLOCK;

 

 

Create user

SQL> CREATE USER <USERNAME> IDENTIFIED BY <PASSWORD> [PROFILE <PROFILE_NAME>]

 

 

Password complexity

Execute script sap_utlpwdmg.sql from SAP Note 1522952 in SQL Plus:

SQL> @sap_utlpwdmg.sql

 

Activate complexity in profiles:

SQL> ALTER PROFILE DEFAULT LIMIT PASSWORD_VERIFY_FUNCTION verify_function_sap;

SQL> ALTER PROFILE SAPUPROF LIMIT PASSWORD_VERIFY_FUNCTION verify_function_sap;


Deativate complexity in profiles:

SQL> ALTER PROFILE DEFAULT LIMIT PASSWORD_VERIFY_FUNCTION NULL;

SQL> ALTER PROFILE SAPUPROF LIMIT PASSWORD_VERIFY_FUNCTION NULL;

Datafiles

 

Check datafiles

SQL> SELECT FILE#, STATUS, ENABLED FROM  v$datafile;


     FILE# STATUS  ENABLED

---------- ------- ----------

       375 ONLINE  READ WRITE

       376 ONLINE  READ WRITE

       377 ONLINE  READ WRITE

       378 ONLINE  READ WRITE

       379 ONLINE  READ WRITE

       380 ONLINE  READ WRITE

 

 

List of datafiles

SELECT FILE_NAME AS Datafile, BYTES/1024/1024 AS "Size(MB)" FROM DBA_DATA_FILES WHERE TABLESPACE_NAME LIKE '%<TABLESPACE_NAME>%';

 

Datafile                                          Size(MB)

------------------------------------------ ---------------

[...]

/oracle/SAP/sapdata9/sr3731_3/sr3731.data3           20000

/oracle/SAP/sapdata9/sr3731_4/sr3731.data4           20000

/oracle/SAP/sapdata9/sr3731_5/sr3731.data5           20000

/oracle/SAP/sapdata9/sr3731_6/sr3731.data6           20000

/oracle/SAP/sapdata9/sr3731_7/sr3731.data7            3500

/oracle/SAP/sapdata5/sr3_348/sr3.data348             31744

 

 

Resize datafile until size

SQL> ALTER DATABASE DATAFILE '<PATH_TO_DATAFILE>' RESIZE <SIZE>M;

 

Database altered.

 

 

 

 

Redologs

 

List of redologs groups and files belonging to each group

SELECT a.group#, a.member, b.bytes FROM v$logfile a, v$log b WHERE a.group# = b.group#;

 

    GROUP# MEMBER

---------- -----------------------------------

        26 /oracle/SAP/origlogB/log_g26_m1.dbf

        26 /oracle/SAP/mirrlogB/log_g26_m2.dbf

        25 /oracle/SAP/origlogA/log_g25_m1.dbf

        25 /oracle/SAP/mirrlogA/log_g25_m2.dbf

        24 /oracle/SAP/origlogB/log_g24_m1.dbf

        24 /oracle/SAP/mirrlogB/log_g24_m2.dbf

        23 /oracle/SAP/origlogA/log_g23_m1.dbf

        23 /oracle/SAP/mirrlogA/log_g23_m2.dbf

        22 /oracle/SAP/origlogB/log_g22_m1.dbf

        22 /oracle/SAP/mirrlogB/log_g22_m2.dbf

        21 /oracle/SAP/origlogA/log_g21_m1.dbf

        21 /oracle/SAP/mirrlogA/log_g21_m2.dbf

 

 

Active Redolog groups

SQL> select group#, status from v$log;

 

    GROUP# STATUS

---------- ----------------

        21 INACTIVE

        22 INACTIVE

        23 CURRENT

        24 INACTIVE

        25 INACTIVE

        26 INACTIVE

 

 

 

 

SAP Queries

 

system in upgrade, no import possible

SQL> update SAPSR3.uvers set PUTSTATUS='+';

SQL> commit;

 

 

BRBACKUP error

When you are getting follwing error:

BR0051I BRBACKUP 6.40 (43)

BR0055I Start of database backup: bebchpaa.anf 2014-01-16 01.00.34

BR0484I BRBACKUP log file: /oracle/SAP/sapbackup/bebchpaa.anf

BR0071E BRBACKUP currently running or was killed

BR0072I Please delete file /oracle/SAP/sapbackup/.lock.brb if BRBACKUP was killed

BR0073E Setting of BRBACKUP lock failed

BR0056I End of database backup: bebchpaa.anf 2014-01-16 07.00.04

BR0280I BRBACKUP time stamp: 2009-07-26 07.00.05

BR0054I BRBACKUP terminated with errors

BR0280I BRBACKUP time stamp: 2009-07-26 07.00.05

BR0291I BRARCHIVE will be started with options '-U -jid ALLOG20090607070000 -d util_file -c force -p initSAP.sap -cds'

Connect to database:

sqlplus /nolog

SQL> connect /as sysdba

End backup:

SQL> ALTER DATABASE END BACKUP;

Then check if lock exists the lock file and delete it. If not found then run the backup again.


SAP ORACLE UPGRADE STEPS FROM 11g TO 12c FOR SAP SYSTEMS ON LINUX

$
0
0

ORACLE UPGRADE STEPS FROM 11g TO 12c FOR SAP SYSTEMS ON LINUX

Document creation date:   10th OCT 2015 | 09:30 AM INDIA

Document Part                :  1st

Document Author            :  Gaurav Rana

Referred SAP Guide        Database Upgrade Guide to Oracle database 12c Release 1 (12.1.0.2 ) UNIX

Referred SAP NOTES      :  1. NOTE : 1914631 - Starting point for info about oracle 12c .

                                           2. NOTE :  1915317-Migrating Software owner to 'oracle' 

                                           3. NOTE : 1915323 - OS User Concept for database release 12c.


STEPS TO FOLLOW    :

 

PREREQUISITES


a) Source release must be Oracle DB 10.2.0.5,11.2.0.2,11.2.0.3 or 11.2.0.4 (Check your database version with command, SQL>select version from v$instance;)

b) Only 12.1.0.2 release 1 is supported for SAP platforms instead of 12.1.0.1 .

c) For SAP environments, Oracle Instant Client versions 11.2.0.4 and 12.1.0.2 are supported.

 

RESTRICTIONS

 

a) In order to run the SAP system with Oracle Instant Client version 12.1.0.2 ,you'll have to apply the SAP support packages from SAP Note 1777021.

b) SAP Kernel release must be >= 7.21 EXT.

c) SAP BR*Tools minimum version for 12.1: BR*Tools 7.40 Patch Level 14.

d) Mandatory to apply the appropriate SAP Support package according to SAP Note 2157904.

e) Must be applied before or immediately after a database upgrade to Oracle release 12c or after a new installation with Oracle release 12c.

f) Secure Storage on File System (SSFS) must be configured and enabled to run SAP with Oracle Database 12c.

 

CHECKLIST BEFORE STARTING SAP SYSTEM OF UPGRADED SYSTEM


a). Migration of oracle software owner from ora<sid> to 'oracle'.

b). Installation of database 12.1.0.2 with Patches.

c). Install the latest Oracle client (12.1.0.2) for the database 12.1.0.2 .

d). Update BR*Tools with version 7.40 .

e). SSFS database connection configurations (SAP Notes 1639578 & 1622837) .



PREPARATION

 

a). Download the Oracle 12c software with patches from http://service.sap.com

b). Download latest version of DBATOOLS (BR*Tools) which we need to be used after the upgrade .

c). Set the display parameters <host_name>:0.0 or use command xhost + .

 

CHECKLIST STEPS IN DETAIL

 

a)Migration of database user ora<sid> to 'oracle' user .

    For the step i recommends to refer SAP NOTE 1915317-Migrating Software owner to 'oracle'  or can follow steps as below :



1.Shutdown the running SAP System & the database with use of command stopsap all or can stop the SAP System & Database individually along with listener with command lsnrctl stop .


1.jpg

2.jpg

 

2.Creation of oracle software owner account 'oracle' from the root account

 

# groupadd oinstall

# useradd -g oinstall -G dba,oper -c "Oracle Software Owner" -m -s "/bin/sh" oracle

# passwd oracle

# su - oracle -c "id;pwd"

 

3.Modification of SAP Admin account <sapsid>adm

 

Add the <sapsid>adm account as OS group 'oinstall' (Required to run BR*TOOLS)

 

# groupmod -A <sapsid>adm oinstall or execute

# usermod -G sapsys,sapinst,dba,oper,oinstall <sid>adm

 

4.Modification of Database Admin account 'ora<dbsid>

 

Log on as 'root' and run the commands ...

 

# mkdir -p /home/ora<dbsid>

# chown orasbx:dba /home/ora<dbsid>

# usermod -d /home/orasbx ora<dbsid>

# usermod -g dba -G oper,oinstall ora<dbsid>

 

From the root account :

 

# cd /oracle/<SID>

# mv .profile .login .bashrc .cshrc .sap* .dbenv* .j2eenv* /home/ora<dbsid>

# mv startdb stopdb /home/ora<dbsid>

# chown -R ora<dbsid>:dba /home/ora<dbsid>

 

Oracle Environment consistency

 

Note : If Oracle env for <SID> set for user 'oracle' differs from the oracle env for user <SID>ADM then system will not connect to the database.

To check, logon with user account <sid>adm & oracle to verify variables ORACLE_BASE,ORACLE_HOME & ORACLE_SID which should be set identical .



Ownership changes for data files & directories

 

Permissions & ownerships can be changed with help of script 'orasid2oracle.sh' (Script is attached with SAP Note 1915317 named orasid2oracle.zip)

On unzip the file, a directory will be created with name sapnote_1915317, contains executable script orasid2oracle.sh.

 

Parameters to be set before execution of the script :

 

1.Log on with root account

 

#export SAPDATA_HOME=/oracle/<SID>

#export ORACLE_BASE=/oracle/<SID>

#export DB_SID=<SID>

 

2.To test run

 

#./orasid2oracle.sh -v

 

3.To perform changes

 

#./orasid2oracle.sh -v -exec

 

Ownership change of Oracle Home


Under this step we’ll change the software owner of Oracle Home from ‘ora<sid>’ to ‘oracle’ and samecan be achieved with the help of oracle cloning tool from SAP Note 1983457 (Recommended).

You can find the clone tool script named clone_oh-1.7-005.zip as an attachment with the SAP Note 1983457,& on extraction of the zip file a new directory will be created as sapnote_1983457.

From the directory we need to execute clone_assistant.sh .


Steps to execute clone_assistant.sh

 

Log on as ora<dbsid> & execute clone_assistant.sh script to generate the scripts.This script will ask some questions for further execution steps, For help sample answers can be find from the same SAP Note 1983457.

 

To save generated scripts from clone_assistant.sh we can provide our own location on the system. For ex. /oracle/<SID>/ora_clone/pkg_clone_oh/change_sw_owner/

 

Scripts generated by the execution of clone_assistant.sh will be as follows :

 

config00_settings.sh

config01_show_env.sh

config02_detach_oh.sh

config03_set_swowner.sh

config04_clone_oh.sh

config05_run_rootsh.sh

config06_cleanup.sh

 

From the script directory execute the generated Oracle Home configuration scripts as per steps

 

From the old software owner ora<dbsid>


su -  ora<dbsid>

>./config01_show_env.sh

>./config02_detach_oh.sh

 

As a root user


# ./config03_set_swowner.sh

 

From the new software owner ‘oracle’


>./config04_clone_oh.sh

 

As a root user


#./config05_run_rootsh.sh

 

For cleanup action, login as a old software owner


su – ora<dbsid>

>./config06_cleanup.sh

 

STARTING OF DATABASE LISTENER AS A NEW SOFTWARE OWNER ‘oracle’

 

During startup of listener from new software owner ‘oracle’ i experienced troubles in terms of environment variable settings for same.

As shell of new owner ‘oracle’ by default was /bin/sh & unable to execute commands lsnrctl status / lsnrctl start & was getting message command not found.(More obviously it’s an issue related with wrong environment settings).

 

WORKAROUND TO OVERCOME THE ISSUE. (WILL UPDATE SOON WITH DEFAULT SHELL ENVIRONMENT SETTINGS TO AVOID TO FOLLOW ANY WORKAROUND).

 

Changed the shell from /bin/sh to /bin/bash under system file /etc/paaswd for new database software owner ‘oracle’

Insertion of environment variables ORACLE_SID,ORACLE_HOME,ORACLE_BASE & PATH under .bash_profile file of new software owner ‘oracle’

3.jpg

su – oracle

ls –a

4.jpg

5.jpg

After saving the values under file .bash_profile ,re login with user as ‘oracle’ & check to execute command lsnrctl start for starting the database listener.

su – oracle

6.jpg

Next step is to start the database with new software owner ‘oracle’

 

su – oracle

 

7.jpg

If any issues (ORA-01033) occurs during the startup of database instance kindly refer troubleshooting part of SAP Note 1915317 .Mainly the issue happens only when oracle environment (ORACLE_HOME,ORACLE_SID,ORACLE_BASE) is not identical to the Oracle environment of <sapsid>adm..

 

DATABASE CONNECTIVITY CHECK from account <sapsid>adm

 

su - <sid>adm

>R3trans –d

8.jpg

Hope after following all steps you’ll be able to get R3trans finish code result 0000.If any issue happens you can refer trans.log file for analysis.

 

Configuration of Secure Storage in File System  :

 

To configure SSFS database connection configurations in detail for the system you can follow SAP Notes 1639578 & 1622837 & some good documents on SCN http://scn.sap.com/docs/DOC-49333 .

 

INSTALLATION OF ORACLE DATABASE SOFTWARE

 

Pre-Steps

 

Before installation of Oracle Database software we need to take the backup of central oracle inventory.

Location of inventory for Linux could be found in file oraInst.loc under /etc .

9.jpg

10.jpg

Create directory to place the extracted Oracle database 12c software.

11.jpg

Updating the SAP RUNINSTALLER Scripts

 

Check the patch level of RUNINSTALLER & check with SAP Note 1915301 for a higher version is available.

12.jpg

Latest available RUNINSTALLER version at SAP NOTE 1915301 is

  1. 12.1.0.2.0 (059)

2015-06-0

So we can upgrade existing i.e from Patch level 058 up to 059 by following the SAP Note 1915301.

 

Installation of a new SAP RUNINSTALLER version :

 

1. Download the latest RUNINSTALLER package from the SAP NOTE as 12cinstall-12102-059-complete-201506021232.zip.

2. Extract the zip file under /oracle/stage/12102/database/SAP .

 

13.jpg

 

3.After extraction a new directory with similar name of SAP will get created under /oracle/stage/12102/database/SAP/ .You can replace the newly created SAP directory with old directory SAP.

On re-checking the RUNINSTALLER version we’ll get the latest version i.e patch level 059.

14.jpg

 

DATABASE SOFTWARE INSTALLATION PREREQUISITES

 

Procedure:

 

1.Log on as Oracle database software owner ‘oracle’

2.Set environment variable DB_SID,ORACLE_STAGE

 

15.jpg

 

Execute the below commands in dialog mode

16.jpg

17.jpg

Fix the above warning by executing the script runfixup.sh which is generated by selecting tab Fix & check again.

18.jpg

 

Oracle 12c database Installation:

 

Logon with new software owner ‘oracle’ to execute RUNINSTALLER .Before execution of RUNINSTALLER don’t forget to set two environment variables (DB_SID,ORACLE_STAGE).

19.jpg

20.jpg

Provide relevant information as required by the software to proceed further.

21.jpg

22.jpg

23.jpg

24.jpg

25.jpg

 

26.jpg

27.jpg

28.jpg

 

Execute the root.sh script from the location /oracle/<SID>/12102 & click on OK to finish the installation of 12c database.

 

29.jpg

30.jpg

 

INSTALLATION OF CURRENT SAP BUNDLE PATCH


Download the latest available SAP latest Bundle patch (SAP12102P_1509-20012300.ZIP) from https://support.sap.com/software/databases.html .

Refer README.html file from the software extraction to follow steps or follow steps as below :

 

Download the latest patch available (SAP12102P_1509-20012300.ZIP) from the service marketplace & save it under directory /oracle/stage by changing permissions & ownerships from root user to new database software owner.

31.jpg

Setting of environment variables IHRDBMS & OHRDBMS

 

Before proceeding we need to set the parameters IHRDBMS & OHRDBMS for the env of user ‘oracle’

 

>su – oracle

>env

>export IHRDBMS=/oracle/<SID>/121

>export OHRDBMS=/oracle/<SID>/12102

 

INSTALLING THE SAP BUNDLE PATCH


Before installation of SAP Bundle Patch need to follow the steps.

 

Stop all database applications, in particular all SAP applications.

Shut down the database instances, the listeners, and other processes running from the Oracle Home.

Install the SAP Bundle Patch as follows:


env ORACLE_HOME=$IHRDBMS $IHRDBMS/MOPatch/mopatch.sh -v -s SAP12102P_1509-20012300.ZIP


After successful installation we’ll be able to get screen as similar

32.jpg

     Start up the database instances, the listeners, and other processes running from the Oracle Home

      

PRE-UPGRADE SCRIPT RUNNING

 

Pre-steps before the upgrade :

 

1.Pre-Upgrade scripts always execute as the current Oracle DB admin ora<sid>/oracle.

2.Copy the listener.ora,tnsnames.ora & other from /oracle/<SID>/112_64/network/admin to /oracle/<SID>/12102/network/admin

3.Edit listener.ora & change the ORACLE_HOME with value /oracle/<SID>/12102

4.Execute the pre upgrade script from location /oracle/<SID>/12102/sap/ora_upgrade/pre_upgrade


33.jpg

34.jpg

Execute the script pre_upgrade_checks.sql to check the status of your database.

35.jpg

 

ORACLE DATABASE UPGRADE

 

NOTE : Recommends to take a complete offline database backup to restore if upgrade fails.

 

Steps to consider :

 

1.Stop the SAP system with stopsap r3 or sapcontrol –nr <SAP_Instance_Number> -function stop

2.Oracle software owner must have write permissions on oratab file .

3.ORATAB file would contain entry similar <DBSID>:<ORACLE_HOME>:N

4.Database & listener should be in running state.

 

Procedure :


1 .Log on with ‘oracle’

2.Save the administration directory of existing DB(Old ORACLE_HOME/network/admin)

3.Before starting DBUA environment variable must be set ORACLE_HOME_SRC,ORACLE_HOME_TGT,DB_SID & ORACLE_BASE


37.jpg

4.Change to the directory cd $ORACLE_HOME_TGT/sap/ora_upgrade/post_upgrade

5.Test the DBUA script to verify correct env variable for upgrade.

 

38.jpg

39.jpg

6.Run script ./dbua.sap.sh to perform the upgrade in interactive mode.

 

40.jpg

 

Due to restrictions of uploading of images,i'll publish the Part-2 as well as troubleshooting for the same document very soon and requests all experts/SCN Members to guide me or hand me to make this document more informative & helpful for others by denoting any misstep in it.Hope you guys will find it helpful for your future references of database upgrades from Oracle 11g to 12c.

 

Part 2nd :  Will be released soon....

 

Regards,

Gaurav Rana

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 





















SAP ORACLE UPGRADE STEPS FROM 11g TO 12c FOR SAP SYSTEMS ON LINUX - PART II

$
0
0

ORACLE UPGRADE STEPS FROM 11g TO 12c FOR SAP SYSTEMS ON LINUX- PART II


Document creation date:   10th OCT 2015 | 09:30 AM INDIA

Document Part                :   2nd

Document Author            :   Gaurav Rana

Referred SAP Guide        Database Upgrade Guide to Oracle database 12c Release 1 (12.1.0.2 ) UNIX

Referred SAP NOTES      :  1. NOTE : 1914631 - Starting point for info about oracle 12c .

                                           2. NOTE :  1915317-Migrating Software owner to 'oracle' 

                                           3. NOTE : 1915323 - OS User Concept for database release 12c.

                                           4.NOTE  : 819829 - Oracle Instant Client Installation and Configuration on Unix


Document in continuation : SAP ORACLE UPGRADE STEPS FROM 11g TO 12c FOR SAP SYSTEMS ON LINUX


Select Upgrade Oracle Database & proceed further.


41.jpg

42.jpg

43.jpg

During the Pre - upgrade activities i got warning related with invalid objects exists.

44.jpg

45.jpg

Troubleshooting for the issue (INVALID OBJECTS EXISTS :


You can find the invalid objects, package body by execution of script pre_upgrade_checks.sql or with SQL query SELECT OBJECT_NAME FROM DBA_OBJECTS WHERE STATUS = 'INVALID';


Resolution : To recompile invalid objects use SAP Transaction SE14 to reactive the views into database.In addition consider SAP Note 648203 - Database objects with status INVALID& suggests to consider SAP Note 1598594 - Br*Tools configurations for Oracle Installation using user "oracle" for successful generation of stats before the procedure at OS level.


46.jpg

You can Gather stats by opting Gather stats before upgrade,but recommends to check the proper database connectives,executions of database tools without any issue through new database software owner 'oracle' (Consider SAP Note 1598594 - Br*Tools configurations for Oracle Installation using user "oracle" ) & re verify the BR*tools configurations before the upgrade.


Deselect the EM database express from the Management Options


47.jpg

Do not select any options under Move database files.


48.jpg

49.jpg

Opt to migrate the LISTENER from source Oracle Home.


50.jpg

Recommends to have complete backup of the system for which we're going to perform the upgrade to avoid any type of issues during the upgrade in case of failures.I've my own backup strategy to choose.


51.jpg

52.jpg

54.jpg

55.jpg

56.jpg


POST UPGRADE STEPS


1.SQL*Net Configuration Files Update


Check for the following entries under tnsnames.ora file at <ORACLE_HOME>/network/admin or copy the tnsnames.ora,listener.ora files from the old ORACLE_HOME to verify or amend as per below if required.(If changes are already reflected with old tnsnames.ora & listener.ora files,then no need to amend.)


TNSNAMES.ORA File entries :


61.jpg


LISTENER.ORA file entries : Check for parameters SID_LIST_LISTENER & ADR_BASE_LISTENER are maintained under the file .


62.jpg


NOTE :ORACLE_HOME should be set for <NEW_ORACLE_HOME> (/oracle/<SID>/12102)



SYMBOLIC LINK FOR RUNTIME ORACLE HOME


STEPS :


1.Change to the directory cd /oracle/<DBSID>

2.Check for symbolic link with command  ls -l /oracle/<DBSID>/121

3.If links not exists issue command ln -s /oracle/<DBSID>/12102  /oracle/<DBSID>/121


ENVIRONMENT OF <sapsid>adm  & ora<dbsid> USER


We need to make environment variables permanent changes under profiles .dbenv_hostname.csh,.dbenv_hostname.sh & .dbenv.csh or .dbenv.shwith updated values of parameters ORACLE_HOME,ORACLE_BASE,PATH & oracle client.


You could check the variable values by following commands


env | grep ORACLE_HOME Result for the command should be ORACLE_HOME=/oracle/<SID>/12102


env | grep ORACLE_BASE  Result for the command ORACLE_BASE=/oracle/<SID>


env | grep PATH                  Result for the command 


PATH=/oracle/<SID>/12102/bin:/usr/lib64/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/sap/<SID>/SYS/exe/uc/linuxx86_64:/usr/sap/<SID>/SYS/exe/run:/home/<sapsid>adm:.

MODULEPATH=/usr/share/Modules/modulefiles:/etc/modulefiles

RSEC_SSFS_DATAPATH=/usr/sap/<SID>/SYS/global/security/rsecssfs/data

RSEC_SSFS_KEYPATH=/usr/sap/<SID>/SYS/global/security/rsecssfs/key

LD_LIBRARY_PATH=/usr/sap/<SID>/SYS/exe/run:/usr/sap/<SID>/SYS/exe/uc/linuxx86_64:/oracle/client/12x/instantclient


NOTE : PATH should not contain any reference to 112_64


STARTING THE DATABASE LISTENER & DATABASE


1.Logon with new database software owner 'oracle' & start the listener with command lsnrctl start .

2.After successful startup of listener start the database with SQL command 'startup'


POST UPGRADE CHECKS

 

Refer SAP Note  : 1915315  to execute the scripts utlu121s.sql, post_upgrade_tasks.sql & post_upgrade_checks.sql from the location <new_oracle_home>/sap/ora_upgrade/post_upgrade


POST UPGRADE TASKS

 

1.Gathering of Oracle optimizer stats as admin user <sapsid>adm :

 

brconnect -u / -c -f stats -t system_stats

 

57.jpg

brconnect -u / -c -f stats -t oradict_stats


58.jpg


2.Update database stats


brconnect -u / -c -f stats -t all -f collect -p 4


UPDATE OF ORACLE INSTANT CLIENT


After upgrade to 12c,recommends to install oracle client supported for Oracle 12c. Refer SAP Note 819829 - Oracle Instant Client Installation and Configuration on Unix or best to follow steps from Upgrade Guide to 12c .


Steps :


1.# mkdir -p /oracle/client/12x


2.# cd /oracle/client/12x


3.# Mount Oracle client DVD 12.1.0.2 and unzip the client software :


SAPCAR -xvf <client DVD>/OCL<AS per OS>/OCL12164.SAR

 

4.Create symbolic links


cd /oracle/client/12x

ln -s instantclient_12102  instantclient


5.Symbolic link for BR*Tools 7.40

# cd /oracle/client

# mv 11x_64 11x_64_save

 

6.Create symbolic link

# ln -s /oracle/client/12x  /oracle/client/11x_64


UPDATE OF SAP KERNEL

 

Refer SAP Note 1716826 for supported SAP Kernel 7.21EXT  & for SAP 7.41 downward compatible kernel refer Note 1994690 .


STARTING OF SAP


After completion of the upgrade steps it's time to start the SAP System


Steps to start the SAP

1.Logon with admin user <sapsid>adm


su - <sid>adm

> R3tarns -d


59.jpg

NOTE : If any issue persists refer trans.log file from the system to rectify (Sometimes issue could be as of non supported kernel usage with 12c.


On successful startup of sap (with command startsap r3) you could check the upgrade status from SAP System Status.


60.jpg


Thanks folks for referring the document & i hopethe document will be helpful for other SCN members.Request experts to help me to make this document more responsive for up gradation of database from 11g to 12c.



Best Regards,

Gaurav Rana

 



 

 

 










 

















Recently Featured Content

$
0
0

Here you can find entries that were recently shown in http://scn.sap.com/community/oracle but have been removed.

 

Red Hat Enterprise Linux 7 Supported for SAP on Oracle

Red Hat Enterprise Linux 7 is now certified for SAP systems running on Oracle Database 11g Release 2. For more information, see SAP Notes 1431800 and 2002167.
Stay up-to-date by following us on Twitter.

 

Oracle Exadata X5 Certified by SAP

All SAP products based on SAP NetWeaver 7.x  available on Oracle Linux 6 and certified with Oracle Database 11g Release 2 can now be used with the new Oracle Exadata Database Machine X5 in a non-virtualized setup. For more information, see SAP Note 1590515.
Stay up-to-date by following us on Twitter.

 

Oracle Database 11g Release 2 Patchset 3 (11.2.0.4) Now Available

Oracle Database 11g Release 2 Patchset 3 (11.2.0.4) is now available on all Oracle engineered systems platforms, all Linux platforms, all UNIX platforms, and Microsoft Windows platforms (Oracle 11204 is the first version that supports Microsoft Windows Server 2012 R1 and R2). For more information, see SAP Note 1431799.

Stay up-to-date by following us on Twitter.

 

Support for SAP Applications with Oracle Databases in Microsoft Azure Environments

With Oracle Database 11g Release 2 Patchset 3 (11.2..0.4), SAP applications are now certified and supported for Oracle databases in a Microsoft Azure environment. For more information, see SAP Note 2039619.
Stay up-to-date by following us on Twitter.

 

Structural Changes in SAP Bundle Patches

As of June 2014, there is a change in the internal structure of the SAP Bundle Patches (SBPs) for Oracle. While this has many benefits, applying the new SBP for the first time requires special handling. For more information, see the hot news SAP Note 2011199.
Stay up-to-date by following us on Twitter.

 

Oracle Virtual Compute Appliance (VCA) Certified by SAP

All SAP products based on SAP NetWeaver 7.x available on Oracle Linux 5 and Oracle Linux 6 can now be used on the Oracle Engineered System designed for virtualization - the Oracle Virtual Compute Appliance (VCA). For more information, see SAP Note 2052912.
Stay up-to-date by following us on Twitter.

 

Virtual Exalogic Certified by SAP

All SAP products based on SAP NetWeaver 7.x available on the Oracle Linux 5 platform can now be used in a Virtual Exalogic configuration. For more information, see SAP Note 1617188.
Stay up-to-date by following us on Twitter.

 

Virtual Exalogic Certified by SAP

All SAP products based on SAP NetWeaver 7.x available on the Oracle Linux 5 platform can now be used in a Virtual Exalogic configuration. For more information, see SAP Note 1617188.

 

SAP NW Master Data Management Now Certified with Oracle ASM

SAP’s solution for managing, consolidating, and synchronizing your enterprise master data, SAP NetWeaver Master Data Management (MDM), has been officially certified with Oracle Automatic Storage Management (ASM), as of SAP NW MDM 7.1 SP10. For more information, see SAP Note 1825328.
Stay up-to-date by following us on Twitter.

 

Microsoft Hyper-V Now Supported for SAP on Oracle

Microsoft virtualization solution Windows Server 2012 Hyper-V is now certified for use with SAP systems running on Oracle database, supporting Windows Server 2008 R2 SP1 and Windows Server 2012 (with upcoming Oracle 11.2.0.4) as guest operating systems, and all SAP and Oracle products certified with these guest OSs. For more information, see SAP Note 1329848.
Stay up-to-date by following us on Twitter.

 

Oracle Clusterware 11g Release 2 Integration with SAP NetWeaver Certified!

The integration of Oracle Clusterware 11g Release 2 running on the Solaris and Linux operating system with SAP NetWeaver 7.30 via the SAP integration scenario NW-HA-CLU 730 has been officially certified by SAP AG (certification reports 20284533 and 20284617). The integration is implemented with SAPCTL V7.
For more information, see SAP Note 1496927.

 

Oracle VM Certified by SAP

The latest release of Oracle's server virtualization solution Oracle VM 3.2.1 has now been certified by SAP for x86_64 platforms. SAP products can now be deployed in Oracle VM virtualized environments using Linux and Solaris guests. Oracle VM provides SAP customers with a fully supported and certified virtualization environment for the Oracle database.
For more information on Oracle VM, see SAP Note 1808268.

 

SAP Library Docu for SAP on Oracle with BR*Tools

We now have a new updated version of the SAP Library documentation for SAP on Oracle, including BR*Tools.
For more information, see SAP Database Guide: Oracle. Sep 18 2012

 

Oracle Linux 6 (including Unbreakable Enterprise Kernel Release 2) certified by SAP

Oracle Linux 6 is the newest Linux version of Oracle for your SAP infrastructure computing needs. Unbreakable Enterprise Kernel Release 2 is based on the mainline Linux kernel and boasts a wide range of new features and improvements relevant for enterprise workloads. It includes performance and scalability enhancements that enable Oracle to achieve excellent performance.
For more information, see SAP Note 1635808. May 16, 2012

 

BR*Tools Now Supports Oracle ASM and Exadata

As of patch 18 for BR*Tools 7.20, you can use BR*Tools to manage Oracle 11g databases based on Oracle Automatic Storage Management (ASM), including Oralce Exadata Database Machine. For more information, see SAP Notes 1627541 and 1598594.

We released Oracle ASM for SAP in February 2011 - see SAP Note 1550133.

We released Oracle Exadata Database Machine for SAP in June 2011 - see SAP Note 15905158 Nov 2011

 

 

SAP on Oracle White Papers

Updated February 2012

 

Oracle Patch Set 11.2.0.3 Released

We have now released the Oracle patchset 11.2.0.3 for use with SAP systems on UNIX platforms. For more information, see SAP Notes 1431799 and 1631931 and the guide Upgrade to Oracle Database 11g Release 2 (11.2): UNIX - For Oracle Patch Set Release 11.2.0.2 and 11.2.0.3.  20 Dec 2011

 

Oracle Exalogic and Exadata Now Certified by SAP

All SAP products based on SAP NetWeaver 7.x that are also certified for Oracle Database 11g Release 2 can now be used with the Oracle Exadata Database Machine and the Oracle Exalogic system. Only the Oracle database can run on the Oracle Exadata Database Machine. No SAP instance can be deployed on the Oracle Exadata Database Machine. SAP instances have to run on different middle-tier machines of any hardware architecture and operating system or on the Oracle Exalogic system.

For more information on the Oracle Exadata Database Machine, see SAP Note 1590515 and the Oracle white paper. For more information on the Oracle Exalogic system, see SAP Note 1617188.

Key Notes for SAP on Oracle

$
0
0

Make sure you read these key SAP notes for SAP on Oracle (you need SAP Service Marketplace access):



Recent Hot News

 

SAP Note

Description

2240098

Wrong data / missing data after unclustering tables

2175161

SWPM Oracle/Unix 12.1 MCOD Installation Drops Already Installed Database Without Warnings

2159551

Oracle 12c: Wrong results when _optimizer_aggr_groupby_elim=true

2048023

Oracle 11g RAC: Instance terminated with ORA-00600 [kcbo_switch_cq_1]

2018245

DBSL: Error with parameter "dbs/ora/substitute_literals"

2011199

SAP Bundle Patches (SBP) - structure changes starting with June 2014

2008760

Oracle Alert: Instance Keeps Crashing With ORA-00600: [kcbchg1_28] Errors After Windows 11.2.0.3 Patchset 28 Is Installed

2005311

Oracle Alert: Description and fix for Bug 8895202:
ORA-1555 / ORA-600 [ktbdchk1: bad dscn] ORA-600 [2663] in Physical Standby after switchover (Doc ID 1608167.1)

1970224

Missing or wrong data in OLTP compressed tables after expanding columns to be >255

1965863

Exadata cell optimized incremental backup can skip some blocks to backup

1918966

ORA-7445 [*_MEMCPY*] block corruption on compressed table

1915485

Wrong results on Oracle Index Organized Table (IOTs)

1847870

Oracle 11g: Advanced Compression - Known issues and solution

1654734

Extended Support contract required for 10.2.0.5 PSU and SBP

1028068

Required Oracle Options for the DBA Cockpit

 


Top Notes for Oracle 12c

 

SAP Note

Description

2133079

Oracle Database 12c: Integration in SAP Environment

1914631

Central Technical Note for Oracle Database 12c Release 1 (12.1)

2157904

Oracle 12c: Conversion of Compressed Tables

2166836

Oracle 12c: Problem during SAP upgrade with compressed tables

1888485

Database Parameters for 12.1.0.2

1915299

Troubleshooting Software Installation for 12.1.0.2

1915313

Current Patch Set for Oracle Database 12c Release 1 (12.1)

1915316

Database: Patches for 12.1.0.2

1915315

Database Upgrade Scripts for 12.1.0.2

2087004

BR*Tools Support for Oracle 12c

2240098

Wrong data / missing data after unclustering tables

2175161

SWPM Oracle/Unix 12.1 MCOD Installation Drops Already Installed Database Without Warnings

2159551

Oracle 12c: Wrong results when _optimizer_aggr_groupby_elim=true

 


Top Notes for Oracle 11g

 

SAP Note

Description

1949250

Oracle 11.2.0: Patches/Patch Collections for 11.2.0.4

1631931

Oracle 11.2.0: Patches/Patch Collections for 11.2.0.3

1503709Oracle 11.2.0: Patches/Patch Collections for 11.2.0.2

1431800

Oracle 11.2.0: Central Technical Note

1398634

Oracle database 11g: Integration in SAP environment

1431798

Oracle 11.2.0: Database Parameter Settings

1431796

Oracle 11.2.0: Troubleshooting the Software Installation

1431797

Oracle 11.2.0: Troubleshooting the Database Upgrade

1431799

Oracle 11.2.0: Current Patch Set

1431793

Oracle 11.2.0: Upgrade Scripts

1430669

BR*Tools support for Oracle 11g


Top Notes for Oracle 10g

 

SAP Note

Description

1431752

Oracle 10.2.0: Patches/Patch Collections for 10.2.0.5

1110995

Extended Support for Oracle Version 10.2

839187

Oracle 10.2.0: Applying patch set/patches/patch collection

720886

Oracle Database 10g: Integration into the SAP environment

940794

Releasing Oracle 10.2 versions for older SAP versions

841728

Oracle Database 10g: Software installation problems 10.2.0

871096

Oracle Database 10g: Patch sets/patches for 10.2.0

834917

Oracle Database 10g: New database role SAPCONN

819829

Oracle Database 10g: Instant Client 10.x on Unix

830576

Parameter recommendations for Oracle 10g


Top Notes for BR*Tools

 

SAP Note

Description

1882182

Functional enhancements in BRARCHIVE 7.40 06.03.2014

1844380

Minor functional enhancements in BR*Tools (5) 12.05.2014

1838850

Corrections in BR*Tools 7.40

1671867

Online consistent backup for disk copy and split-mirror

1647272

Minor functional enhancements in BR*Tools (4)

1647271

Support for bigfile tablespaces in BR*Tools

1638356

Additional information about BR*Tools Version 7.20 EXT

1627541

BR*Tools support for Oracle ASM and Exadata/ODA

1598594

BR*Tools configuration for Oracle inst. under "oracle" user

1493614

Parallel incremental backup on disk

1464156

Support for index compression in BRSPACE 7.20

1464091

Minor functional enhancements in BR*Tools (3)

1431296

LOB conversion and table compression with BRSPACE 7.20

1430669

BR*Tools support for Oracle 11g

1428529

Corrections in BR*Tools Version 7.20

29321Creating traces for BR Tools
646681Reorganization of tables with BRSPACE


Top Notes for SAP Database Interface on Oracle

 

SAP Note

Description

2029981DBSL: Replacement of invalid aliases in Oracle hints
1622837

Secure Connection of AS ABAP to Oracle via SSFS

1589924

SAP Workload Management via Oracle Resource Manager

1505012

Trace Options of DBSL for Oracle

1056624

SAP work process tracing in the work process logs dev_w

1047369

Faster DB accesses for R3szchk using Oracle DBSL

915079

J2EE on Oracle: Updating the JDBC Drivers

902042

DBSL: Hint und Profil-Parameter für "substitute literals"

832893

Oracle release check in DbSl

808505

Secondary connection to Oracle DB w/ different character set

797792

R/3 Reconnect after various Oracle error codes


Top Notes for SAP Installation / Upgrade / System Copy

 

SAP Note

Description

2009572

Phase MAIN_SHDRUN/PARDIST_SHD terminated with dump DBIF_DSQL2_SQL_ERROR

1991576

SMIGR_DDL_SELECT_ORA: Not all indexes taken into account (homogenous migration)

1978860

SQL error in report SDB2FORA

1950570

SMIGR_CREATE_DDL: Not all tables are correctly handled

1609745

SMIGR_CREATE_DDL: Termination with very large tables


Miscellaneous Notes

 

SAP Note

Description

2008547

Error during conversion of sub-partitioned tables

1575609

Future HPUX support for SAP on Oracle databases

1174136

Oracle: End of Support Dates

1179765

AIX: End of Support Dates

1174175

HP-UX: End of Support Dates

1174174

Solaris: End of Support Dates

1174176

Tru64: End of Support Dates

1177282

Windows: End of Support for SAP Releases

998004

Update the Oracle Instant Client on Windows

740897

Info about the Oracle license scope; Required Oracle options

527843

Oracle RAC support in the SAP environment

1171650Automated Oracle DB Parameter Check
23345Consistency check of ORACLE database
365481Block corruptions
562403FAQ: Oracle Net
1020260Delivery of Oracle Statistics (Oracle 10g and 11g)

SAP Oracle upgrade 11G to 12C on AIX

$
0
0

                                 SAP Oracle Upgrade 11G to 12C on AIX

 

Summary:-

 

This document contains the steps that how to do the oracle upgrade 11 G to 12 C.  I have gathered the information from some SAP Notes and upgrade document from SAP site.  The following method will reduce the downtime of SAP application.First install the oracle database software only and then do the upgrade using DBUA method.

 

 

Author: Brindavan Mookaiah

 

Designation: SAP BASIS Consultant


 

Table of content:-

 

1) Take full backup of database ......................................................


2) Download the software required for the upgrade............................


3) Check and, if necessary, set the DISPLAY environment variable ..


4) Configure Secure Storage in File System.....................................


5) Migrate to the Oracle Database Software Owner oracle................


6) Extract the Oracle software........................................................


7) Install the Oracle database software ...........................................


8) Run the pre-upgrade scripts........................................................


9) Upgrade from 11g to 12G with using DBUA method.....................


10) Performa the post upgrades scripts...........................................


11) Perform the post upgrade steps.................................................

 

 

Oracle 12c Architecture:-

 

oracle12C.PNG

 

Information on eye :-

 

There are two main SAP note need to go through before upgrading oracle database.

 

  • SAP Note :2133079 - Oracle Database 12c: Integration in SAP environment
  • SAP note :1914631 provides important technical information about using Oracle 12.1 in a SAP environment, like database installation/upgrade guidelines, software download, patches, etc.

 

 

Oracle Upgrade requirements to meet the software:-

 

 

1) Database Direct upgrade 10.2.0.5.0/11.2.0.2.0 / 11.2.0.3.0/11.2.0.4.0 upgrade to 12.1.0.2.0

2) Oracle Database 12c Release 1 (12.1) is only released and certified for SAP products running with SAP BASIS 7.00 and above,

     and SAP kernel release 7.21   EXT and above

3) OS level fix required to fix during upgrade or before.

4) create filesystem like " /oracle/SID/121"


1) Take full backup of database

 

  •    Run full backup before upgrade
  •    Take back of oracle_home directory and oracle profile

 

2) Download the software required for the upgrade


  •    Download the Oracle Database 12c Release 1 (12.1) software, required patches, and Oracle 12.1 Instant Client software from:         "support.sap.com/software/databases.html Oracle"
  • Download the latest version of the DBATOOLS (BR*Tools) to be used immediately after the database upgrade from: "support.sap.com/swdc"  BR*Tools supports the Oracle Database 12c Release 2 (12.1), as of release 7.20 (patch level 40).or Release patch level 1) . For more information, see SAP Note 2087004


3) Check and, if necessary, set the DISPLAY environment variable


  •    Set the DISPLAY environment variable to Shell export DISPLAY=hostname:0:0 if you use x-mangare or x-trem



4) Configure Secure Storage in File System


  •   Follow the procedure described in SAP Notes 1639578 and 1622837, which describe the configuration of SSFS in detail.
  • Check that the environment variables from SSFS have been changed in the .sapenv* files.

 

5) Migrate to the Oracle Database Software Owner oracle



 

Create the directory to place the extracted software:

● Oracle software stage directory

● Oracle inventory directory

 

 

Procedure 1.

For the extraction of the software for Oracle Database 12c Release 1 (12.1.0.2)

create the staging directory:

$  mkdir -p /oracle/stage/12102

$ chmod 755 /oracle/stage/12102

Example

$ cd /oracle/stage/12102

$ SAPCAR -xvf /OR112164.SAR

$ SAPCAR -xvf /OR212164.SAR

 

 

 

Process Flow

 

 

  1.   Back up the central Oracle inventory
  2.   Update the SAP RUNINSTALLER installation scripts.
  3.   Check the software installation prerequisites.
  4.   Install the current Oracle database patch set.
  5.   Install the current SAP bundle patch.

 

 

 

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

  1.   Back up the central Oracle inventory

 

 

For  AIX, HP-UX, Solaris SPARC:

/var/opt/oracle/oraInst.loc ○

For  Linux: /etc/oraInst.loc

 

 

inventory_loc= <path_to_oracle_inventory>

Make a copy of the inventorty

$ cp -r oraInventory oraInventory..SAVE

 

 

Note: check the patch level of the RUNINSTALLER and check in SAP Note 1915301 whether a higher version is available. Update the higher version if required.


 

 

7)  Update the SAP RUNINSTALLER installation scripts.

 

Note: check the patch level of the RUNINSTALLER and check in SAP Note 1915301 whether a higher version is available. Update the higher version if required.

 

Login to the OS level with ora_sid or X-manager and go the directory where the media file available.Install Oracle Database Release 12.1 software, see SAP Note 1915301.

 

For Example:

 

 

 

$ cd /oracle/stage/121/database/SAP

 

$  ./RUNINSTALLER –version

 

During installation step it will ask to apply missing OS patches and OS packages and set OS kernel parameters as recommended by the OUI

On AIX, call the script rootpre.sh as user root:

 

$  /oracle/stage/12102/database/rootpre.sh.

 

 

You can find the oracle installation software screen shot in following link this might be same.

 

Oracle12c Database Installation steps

 

 

 

3)  You need to install the current (or latest) SAP bundle patch (SBP) into the new Oracle home once the patch done. You must install the SBP using the Oracle tool MOPatch. For more details see SAP Note 1027012. To install the generic patch, see also SAP Note 1915315.

 

    Procedure

 

  •   Log on as the Oracle database software owner <ora_SID>.
  •   Download the required patches.
  •   Install the SBP into the new Oracle home according to the instructions in the SBP README file.

The installation of the SBP consists of these steps: 1. The installation of the SBP software into the Oracle home. 2. The change of the database structure and database properties (dictionary, parameter, properties)

 

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 

Note : Once the installation binary done then run the Oracle pre-upgrade scripts check in SAP Note: 1915315.

Check the environmental ORACLE_HOME, ORACLE_SID and ORACLE_BASE. Make sure that ORACLE_HOME is set to the value of the current Oracle home.

 

8) Run the pre-upgrade scripts


 

 

 

Login into the OS level with ora_sid user.

 

 

For example:

 

 

$ cd /oracle//12102/sap/ora_upgrade/pre_upgrade

 

 

$ sqlplus / as sysdba

 

 

SQL> @pre_upgrade_tasks.sql

 

 

@pre_upgrade_checks.sql

 

 

Recommendation set parameter before upgrade:

remote_os_authent=TRUE.

COMPATIBLE is set to a value < 11, do not change this parameter before the upgrade from 10.2 to 12c although this is recommended by the pre-upgrade script.

 

 

Stop SAP Application

 

 

Loginto  OS level with ORA_ADM and stop SAP

 

 

$ stopsap r3

 

 

You can also stop the SAP application server with the sapcontrol tool:

 

$ sapcontrol -nr -function Stop

 

 

Make sure that the software owner <ora_swo> has write permissions (664) on the oratab file, which is

either /etc/oratab or /var/opt/oracle/oratab, depending on your operating system.

● Make sure that oratab contains the entry <DBSID>:<Oracle_home>:N

 

Example:-

 

 

Oracle 11g: OQ1:/oracle/OQ1/112_64: N

Oracle 10g: OQ1:/oracle/OQ1/102_64: N

 

 

Set the environment variables ORACLE_HOME_SRC and ORACLE_HOME_TGT, DB_SID, and ORACLE_BASE before you run the scrpit.

 

 

Set ORACLE_HOME_SRC and ORACLE_HOME_TGT.

 

 

  • export ORACLE_HOME_SRC=/oracle/<DBSID>/112_64
  • export ORACLE_HOME_TGT=/oracle/<DBSID>/12102
  • export DB_SID=<DBSID>


9) Upgrade from 11g to 12G with using DBUA method


Start the DBUA. dbua.sap.sh is a wrapper script for 11g To 12C, once the upgrade done then run the  post-upgrade tasks.

 

Loginto the OS level with ora_sid user

 

$ ./dbua.sap.sh

 

 

Note : This is only reference screen shot.

Capture.PNG



  1. The screen will appear to select Upgrade Oracle Database and then click -->  Next.

 

 

Capture1.PNG

 

This will tell the source database and target database for upgrade. If the location path are ok then click --> Next

 

 

Capture2.PNG

Click --> Next

 

Capture3.PNG

On the Upgrade Options screen, select the following fields:

  •    Recompile invalid objects
  •    Upgrade Timezone Data If required, you can check the following:
  •    Gather statistics before the upgrade (takes some time)
  •   Set User Tablespaces to Read Only and then click --> Next

 

Capture4.PNG

 

The next screen will ask to select the database type like EM cloud control or EM express and then click --> Next

 

Capture5.PNG

Do not select any of the checkboxes for Moving database and then click -->  Next

 

Capture7.PNG

 

The Network Configuration screen ignore and go for default selection and then click --> Next

 

Capture8.PNG

 

The Recovery Options screen select the option “I have my own backup” and chose --> Next


Capture9.PNG


On the Summary screen, review the Database Upgrade Summary and if you satisfied the click -->  Finish


Capture10.PNG


8. The upgrade will start and once it finished then Click on Upgrade Results to see the results of the upgrade. 11. On the Results screen, after reviewing the upgrade results.


Capture11.PNG

 

Click Close to close the DBUA.

 

11) Perform the post upgrade steps

 

 

1. You update the SQL*Net configuration files

     Logininto the OS level with ora_sid

 

"The easiest method to do this is to just copy the complete LISTENER_ entry from the file /network/admin/tnsnames.ora and add this entry unchanged to the file in /network/admin and $TNS_ADMIN/tnsnames.ora on the SAP side"

 

 

 

2. You check the symbolic link for the runtime Oracle home.

 

Create symbolic link go the directory

              $ cd /oracle/DBSID

            $  ln -s /oracle/DBSID/12102  /oracle//121

 

3. You adapt the environment of the adm user.

 

 

 

Log on as user adm and adapt the variables listed below in the .dbenv* files. 2. Set the ORACLE_HOME environment variable to new Oracle home,

$ export ORACLE_HOME=/oracle/SID/121

$ export ORACLE_BASE

Check the environment with:

$ env | grep ORACLE_HOME

$ env | grep ORACLE_BASE

$ env | grep PATH (this should no longer contain a reference to 112_64)

 

 

 

4. You adapt the environment of the ora user.

 

 

 

5. You start the database and listener process as user.

 

 

 

5.1. Log on as the Oracle database software owner ora, for example, oracle.

5.2. For user oracle, set the environment via oraenv or coraenv.

5.3. Start the listener and then start the database: lsnrctl start

sqlplus / as sysdba

SQL> startup

5.4. After the database upgrade, change the entry :/oracle//12102:N in /etc/oratab or /var/opt/oracle/oratab so that it now looks as follows: :/oracle//121:N

 

 

6. You perform post-upgrade checks.  Refer Note : SAP Note 1915315

1. Logon into the OS level with ora_sid .

$sqlplus / as sysdba

SQL> @?\rdbms\admin\utlu121s.sql

SQL> @post_upgrade_tasks.sql (if you have not already executed this with DBUA)

SQL> @post_upgrade_checks.sql

7. You perform post-upgrade tasks.

Login into os level with sapsid_adm user and run the below command You can perform this later if required.

 

 

$brconnect -u / -c -f stats -t system_stats

$ brconnect -u / -c -f stats -t oradict_stats

$ brconnect -u / -c -f stats -t all -f collect -p 4

8. You update the Oracle Instant Client.

Create the new client directory:

$ mkdir -p /oracle/client/12x

$ cd /oracle/client/12x

unpack the client software:

$ SAPCAR -xvf  <oracle_client_DVD>/OCL/OCL12164.SAR

$ cd /oracle/client/12x ln -s instantclient_12102 instantclient

Create the symbolic link for BR*Tools 7.40: 1.

$ cd /oracle/client

mv 11x_64 11x_64_save

$ ln -s /oracle/client/12x /oracle/client/11x_64

 

 

 

 

9. Update BR*Tools.

 

 

You need to update the Brtool for more information see SAP Note : 2087004, 12741, and 1598594.

 

 

10. You back up the database.

 

 

Perform the full backup of database.

 

 

brbackup –u / –type offline –mode all –device disk –compress yes –language E

11. If required and not yet done, update the SAP executables.

          SAP kernel supported for Oracle 12c kernel should 7.21EXT

12. If not yet done, configure the Secure Storage in the File System (SSFS).

        

 

13. For systems with Java components – AS Java or AS ABAP+Java – update the JDBC driver references.

If your SAP software is version 7.0 or below, follows SAP Note 867976 to change the JDBC driver.     

If your SAP software is version 7.1 or higher, change the reference to the JDBC driver in the instance profile as described below.  Open the file with your text editor and search for property j2ee/dbdriver.

Replace the old driver location with the new one:

/oracle/client/<Oracle_client_major_version>x/instantclient/

<java_class_archive>.jar

Where <Oracle_client_major_version> is the major version of the Oracle client that you are using after

this upgrade. So for example, if you are now using Oracle 12.1, set the new driver location to /oracle/

client/12x/instantclient/<java_class_archive>.jar.

 

 

14. You restart the SAP system.

 

 

Stopsap r3

 

15. You configure the new features for Oracle Database 12c Release 1 (12.1). see SAP note : 1914631.

 

16. If not already done, migrate from software owner ora to software owner oracle, as described in Migrating to the Oracle Database Software Owner oracle.

 

17. You deinstall the old Oracle Home: SAP Note 1915314

 

18. You make sure that you have installed the required support packages for the SAP kernel supported for Oracle 12c. For AS Java or AS ABAP+Java, see also SAP Note 1777021.

 

Note : You may get some issue with Operating system like DBA groug or something please get tocuh with AIX team to fix the issue.

RoadMap to SAP on Exadata

$
0
0

The instalation of SAP Netweaver products, in some situations, could be a little bit hard. Tier 3 instalations must be planned hard before installed.My mentor always says to me: spend 90% of the time planning and 10% of the time executing what you´ve been planned. Then, to help you on this phase, I built a RoadMap that may show to you the entire process of the instalation of SAP ECC EHP7 over Exadata and Oracle 11G.

Follow this map and your SAP ECC over Exadata will be installed in less than 32 hs.

 

 

ROADMAP_EXADATA_LINUX_2.jpg

 

 

 

Some Tips:

 

  1. Save the picture on your PC and apply zoom. This map is large and zoom may turn your life easy.
  2. Pay attention with the hostnames, before the instalation, check hostname, hostname -s and hostname -f results.
  3. Always use the last SWPM;
  4. Be aware about kernel supported by Exadata;
  5. Check the availability of the exa-scan listener, ask your DBA for help;
  6. Always use the Preparation phase on the instalation of the database;
  7. Plan the users and PIDs (they are very important if you are installing on Linux servers).Use the same PID for the same users over your landscape
  8. In the middle of the instalation, the instalation master may show you he name of one script that must be run on the Exadata. Pay attention for that. This script will install very important services for High availability on RAC.

 

 

 

 

 

Here some SAP notes and links that may help you.

 

1590515 - SAP Software and Oracle Exadata

1996481 - Using correct hostnames for Oracle Exadata Database Nodes

1619343 - SAPinst for Oracle Exadata on Oracle Linux and Solaris X86

1598868 - BR*Tools support for the Oracle Exadata Database Machine


http://www.oracle.com/us/products/database/sap-exadata-wp-409603.pdf

https://websmp210.sap-ag.de/~sapidb/011000358700000790092013

https://websmp108.sap-ag.de/~sapidb/012002523100010938582014E

 

See you soon!

 

Frederich Murador

SAP Netweaver Certified

SAP Hana SUP_1 Certified

How to resize redo log via brtools

$
0
0

Hi ,

 

Today I make a test about to use brtools to resize oracle redo log. Below are the steps:

 

 

Capture.PNG

my redo log is 100MB

Capture.PNG

Capture.PNG

Capture.PNG

 

Capture.PNG

seems we need to select all the redo logs

 

Capture.PNG

option 10, to give the new size, then c continue

Capture.PNG

 

 

Capture.PNG

redo log size changed.

 

 

Best regards,
James


Oracle client upgrade on SAP

$
0
0

Hi,

 

This document expains the step by step procedure to upgrade oracle client on SAP.

Platform:

Source

OS- AIX 7.1

Oracle client- 10.

 

Target

ORACLE Client- 11.2.0.4 V3

Media Used- 51049326 for ORACLE Client 11.2.0.4 V3

 

 

1. create a   dir 11x_64 in /oracle/client

os> mkdir -p /oracle/client/11x_64

 

2. dump the oracle client software to this new direcotry(only keep the directory name with 'instantclient_11204' in this new dir.)

change the permission of 'instantclient_11204' to sidadm:sapsys

 

3. creating soft link for this new client

os> cd /oracle/client/11x_64

os> ln -s /oracle/client/11x_64/instantclient_11204 instantclient

 

4. Change the entries of all env files under home dir(/home/sidadm). in these env files we have to replace the value of old client (10x_64) to new client(11x_64).

the files where change is required are:(1).dbenv_hostname.sh (2).dbenv_hostname.csh (3).dbenv.sh (4).dbenv.csh

 

5. check whether 11x has been reflected in the whole env files:

sidadm> env | grep 11x(it must give some output)

sidadm> env | grep 10x(output must be blank)

 

6. check whether soft link created or not?

 

go to this directory->

/oracle/client/11x_64

ls -lrt

total 8

drwxrwxrwx    2 sidadm   sapsys         4096 Dec 25 16:15 instantclient_11204

lrwxrwxrwx    1 root     system           41 Dec 25 16:18 instantclient -> /oracle/client/11x_64/instantclient_11204

**the output must be like this

 

7. check the version of current soft link client

sidadm> cd /oracle/client/11x_64/instantclient_11204

sidadm> ./genezi -v

Client Shared Library 64-bit - 11.2.0.4.0

Recently Featured Content

$
0
0

Here you can find entries that were recently shown in http://scn.sap.com/community/oracle but have been removed.

 

Red Hat Enterprise Linux 7 Supported for SAP on Oracle

Red Hat Enterprise Linux 7 is now certified for SAP systems running on Oracle Database 11g Release 2. For more information, see SAP Notes 1431800 and 2002167.
Stay up-to-date by following us on Twitter.

 

Oracle Exadata X5 Certified by SAP

All SAP products based on SAP NetWeaver 7.x  available on Oracle Linux 6 and certified with Oracle Database 11g Release 2 can now be used with the new Oracle Exadata Database Machine X5 in a non-virtualized setup. For more information, see SAP Note 1590515.
Stay up-to-date by following us on Twitter.

 

Oracle Database 11g Release 2 Patchset 3 (11.2.0.4) Now Available

Oracle Database 11g Release 2 Patchset 3 (11.2.0.4) is now available on all Oracle engineered systems platforms, all Linux platforms, all UNIX platforms, and Microsoft Windows platforms (Oracle 11204 is the first version that supports Microsoft Windows Server 2012 R1 and R2). For more information, see SAP Note 1431799.

Stay up-to-date by following us on Twitter.

 

Support for SAP Applications with Oracle Databases in Microsoft Azure Environments

With Oracle Database 11g Release 2 Patchset 3 (11.2..0.4), SAP applications are now certified and supported for Oracle databases in a Microsoft Azure environment. For more information, see SAP Note 2039619.
Stay up-to-date by following us on Twitter.

 

Structural Changes in SAP Bundle Patches

As of June 2014, there is a change in the internal structure of the SAP Bundle Patches (SBPs) for Oracle. While this has many benefits, applying the new SBP for the first time requires special handling. For more information, see the hot news SAP Note 2011199.
Stay up-to-date by following us on Twitter.

 

Oracle Virtual Compute Appliance (VCA) Certified by SAP

All SAP products based on SAP NetWeaver 7.x available on Oracle Linux 5 and Oracle Linux 6 can now be used on the Oracle Engineered System designed for virtualization - the Oracle Virtual Compute Appliance (VCA). For more information, see SAP Note 2052912.
Stay up-to-date by following us on Twitter.

 

Virtual Exalogic Certified by SAP

All SAP products based on SAP NetWeaver 7.x available on the Oracle Linux 5 platform can now be used in a Virtual Exalogic configuration. For more information, see SAP Note 1617188.
Stay up-to-date by following us on Twitter.

 

Virtual Exalogic Certified by SAP

All SAP products based on SAP NetWeaver 7.x available on the Oracle Linux 5 platform can now be used in a Virtual Exalogic configuration. For more information, see SAP Note 1617188.

 

SAP NW Master Data Management Now Certified with Oracle ASM

SAP’s solution for managing, consolidating, and synchronizing your enterprise master data, SAP NetWeaver Master Data Management (MDM), has been officially certified with Oracle Automatic Storage Management (ASM), as of SAP NW MDM 7.1 SP10. For more information, see SAP Note 1825328.
Stay up-to-date by following us on Twitter.

 

Microsoft Hyper-V Now Supported for SAP on Oracle

Microsoft virtualization solution Windows Server 2012 Hyper-V is now certified for use with SAP systems running on Oracle database, supporting Windows Server 2008 R2 SP1 and Windows Server 2012 (with upcoming Oracle 11.2.0.4) as guest operating systems, and all SAP and Oracle products certified with these guest OSs. For more information, see SAP Note 1329848.
Stay up-to-date by following us on Twitter.

 

Oracle Clusterware 11g Release 2 Integration with SAP NetWeaver Certified!

The integration of Oracle Clusterware 11g Release 2 running on the Solaris and Linux operating system with SAP NetWeaver 7.30 via the SAP integration scenario NW-HA-CLU 730 has been officially certified by SAP AG (certification reports 20284533 and 20284617). The integration is implemented with SAPCTL V7.
For more information, see SAP Note 1496927.

 

Oracle VM Certified by SAP

The latest release of Oracle's server virtualization solution Oracle VM 3.2.1 has now been certified by SAP for x86_64 platforms. SAP products can now be deployed in Oracle VM virtualized environments using Linux and Solaris guests. Oracle VM provides SAP customers with a fully supported and certified virtualization environment for the Oracle database.
For more information on Oracle VM, see SAP Note 1808268.

 

SAP Library Docu for SAP on Oracle with BR*Tools

We now have a new updated version of the SAP Library documentation for SAP on Oracle, including BR*Tools.
For more information, see SAP Database Guide: Oracle. Sep 18 2012

 

Oracle Linux 6 (including Unbreakable Enterprise Kernel Release 2) certified by SAP

Oracle Linux 6 is the newest Linux version of Oracle for your SAP infrastructure computing needs. Unbreakable Enterprise Kernel Release 2 is based on the mainline Linux kernel and boasts a wide range of new features and improvements relevant for enterprise workloads. It includes performance and scalability enhancements that enable Oracle to achieve excellent performance.
For more information, see SAP Note 1635808. May 16, 2012

 

BR*Tools Now Supports Oracle ASM and Exadata

As of patch 18 for BR*Tools 7.20, you can use BR*Tools to manage Oracle 11g databases based on Oracle Automatic Storage Management (ASM), including Oralce Exadata Database Machine. For more information, see SAP Notes 1627541 and 1598594.

We released Oracle ASM for SAP in February 2011 - see SAP Note 1550133.

We released Oracle Exadata Database Machine for SAP in June 2011 - see SAP Note 15905158 Nov 2011

 

 

SAP on Oracle White Papers

Updated February 2012

 

Oracle Patch Set 11.2.0.3 Released

We have now released the Oracle patchset 11.2.0.3 for use with SAP systems on UNIX platforms. For more information, see SAP Notes 1431799 and 1631931 and the guide Upgrade to Oracle Database 11g Release 2 (11.2): UNIX - For Oracle Patch Set Release 11.2.0.2 and 11.2.0.3.  20 Dec 2011

 

Oracle Exalogic and Exadata Now Certified by SAP

All SAP products based on SAP NetWeaver 7.x that are also certified for Oracle Database 11g Release 2 can now be used with the Oracle Exadata Database Machine and the Oracle Exalogic system. Only the Oracle database can run on the Oracle Exadata Database Machine. No SAP instance can be deployed on the Oracle Exadata Database Machine. SAP instances have to run on different middle-tier machines of any hardware architecture and operating system or on the Oracle Exalogic system.

For more information on the Oracle Exadata Database Machine, see SAP Note 1590515 and the Oracle white paper. For more information on the Oracle Exalogic system, see SAP Note 1617188.

Useful Oracle queries for SAP Basis Adminsitrators

$
0
0

 

Introduction

The main goal of this document is serving as a base for SAP Basis Administrator who work with Oracle Databases and want to perform simple checks.


I will try to improve this document as much as I can.

 

Of course, do not hesitate to collaborate by adding more SQL queries.


 

Considerations

DBSID: SAP

SAPSID: SAP

 

 

System variables

SPOOL <filename>

SET LINESIZE 32767

SET WRAP OFF

SPOOL OFF

 

Check SQL*Plus User's Guide and Reference.

 

 

Database

 

Show Oracle Database version

SQL> SELECT * FROM v$version;


BANNER

--------------------------------------------------------------------------------

Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production

PL/SQL Release 11.2.0.3.0 - Production

CORE    11.2.0.3.0      Production

TNS for IBM/AIX RISC System/6000: Version 11.2.0.3.0 - Production

NLSRTL Version 11.2.0.3.0 - Production

 

 

Show database details

SQL> SELECT NAME, LOG_MODE, OPEN_MODE, DATABASE_ROLE, PLATFORM_NAME FROM  v$database;


 

NAME      LOG_MODE     OPEN_MODE            DATABASE_ROLE    PLATFORM_NAME

--------- ------------ -------------------- ---------------- --------------------------

SAP       NOARCHIVELOG READ WRITE           PRIMARY          AIX-Based Systems (64-bit)



Show database size

SQL> SELECT SUM(BYTES)/1024/1024/1024 AS "DBSIZE(GB)" FROM dba_data_files;

 

DBSIZE(GB)

----------

5312.59766



Show Oracle Instant Client Version

SQL> select distinct client_version from v$session_connect_info where sid = sys_context('userenv', 'sid');

 

 

CLIENT_VERSION

--------------

11.2.0.3.0

For a list of all possibilities to check and identify Oracle Instant Client Version check this document.





Instance

 

Show database instance details

SQL> SELECT INSTANCE_NAME, HOST_NAME, VERSION, STARTUP_TIME, STATUS, INSTANCE_ROLE FROM v$instance;


INSTANCE_NAME  HOST_NAME      VERSION     STARTUP_TIME    STATUS       INSTANCE_ROLE   

-------------  ---------      -------     ------------    ------       -------------   

SAP            SAPSERVER     11.2.0.3.0  26-MAR-15      OPEN         PRIMARY_INSTANCE

 

 

 

 

Tablespaces

 

Show tablespaces details

SQL> SELECT TABLESPACE_NAME, STATUS, CONTENTS, SEGMENT_SPACE_MANAGEMENT FROM dba_tablespaces;


TABLESPACE_NAME                STATUS    CONTENTS  SEGMEN

------------------------------ --------- --------- ------

SYSTEM                         ONLINE    PERMANENT MANUAL

PSAPUNDO                       ONLINE    UNDO      MANUAL

SYSAUX                         ONLINE    PERMANENT AUTO

PSAPTEMP                       ONLINE    TEMPORARY MANUAL

PSAPSR3                        ONLINE    PERMANENT AUTO

PSAPSR3USR                     ONLINE    PERMANENT AUTO

TOOLS                          ONLINE    PERMANENT AUTO

PSAPSR3731                     ONLINE    PERMANENT AUTO

 

 

List of datafiles for tablespace

SQL> select file_name from dba_data_files where tablespace_name='<TABLESPACE_NAME>';

 

 

Find tables being used by tablespace

SQL> select table_name from dba_tables where tablespace_name='PSAPSR37XX';

 

 

Check autoextend

SQL> select TABLESPACE_NAME,SEGMENT_SPACE_MANAGEMENT from dba_tablespaces;

 

 

 

 

Users

 

Show database users

SQL> SELECT USERNAME, ACCOUNT_STATUS, AUTHENTICATION_TYPE FROM dba_users;


USERNAME                       ACCOUNT_STATUS                   AUTHENTI

------------------------------ -------------------------------- --------

SAPSR3                         OPEN                             PASSWORD

SYSTEM                         OPEN                             PASSWORD

SYS                            OPEN                             PASSWORD

MGMT_VIEW                      OPEN                             PASSWORD

OPS$SAPSERVICESAP              OPEN                             EXTERNAL

OPS$ORASAP                     OPEN                             EXTERNAL

NAGIOS                         OPEN                             PASSWORD

DUMMY                          OPEN                             PASSWORD

ADMIN                          OPEN                             PASSWORD

PERFSTAT                       OPEN                             PASSWORD

APPQOSSYS                      OPEN                             PASSWORD

USERNAME                       ACCOUNT_STATUS                   AUTHENTI

ORACLE_OCM                     OPEN                             PASSWORD

OPS$SAPADM                     OPEN                             EXTERNAL

DIP                            OPEN                             PASSWORD

OUTLN                          OPEN                             PASSWORD

SYSMAN                         EXPIRED(GRACE)                   PASSWORD

DBSNMP                         EXPIRED(GRACE)                   PASSWORD

 

 

Unlock user account

SQL> ALTER <USERNAME> ACCOUNT UNLOCK;

 

 

Create user

SQL> CREATE USER <USERNAME> IDENTIFIED BY <PASSWORD> [PROFILE <PROFILE_NAME>]

 

 

Password complexity

Execute script sap_utlpwdmg.sql from SAP Note 1522952 in SQL Plus:

SQL> @sap_utlpwdmg.sql

 

Activate complexity in profiles:

SQL> ALTER PROFILE DEFAULT LIMIT PASSWORD_VERIFY_FUNCTION verify_function_sap;

SQL> ALTER PROFILE SAPUPROF LIMIT PASSWORD_VERIFY_FUNCTION verify_function_sap;


Deativate complexity in profiles:

SQL> ALTER PROFILE DEFAULT LIMIT PASSWORD_VERIFY_FUNCTION NULL;

SQL> ALTER PROFILE SAPUPROF LIMIT PASSWORD_VERIFY_FUNCTION NULL;

Datafiles

 

Check datafiles

SQL> SELECT FILE#, STATUS, ENABLED FROM  v$datafile;


     FILE# STATUS  ENABLED

---------- ------- ----------

       375 ONLINE  READ WRITE

       376 ONLINE  READ WRITE

       377 ONLINE  READ WRITE

       378 ONLINE  READ WRITE

       379 ONLINE  READ WRITE

       380 ONLINE  READ WRITE

 

 

List of datafiles

SELECT FILE_NAME AS Datafile, BYTES/1024/1024 AS "Size(MB)" FROM DBA_DATA_FILES WHERE TABLESPACE_NAME LIKE '%<TABLESPACE_NAME>%';

 

Datafile                                          Size(MB)

------------------------------------------ ---------------

[...]

/oracle/SAP/sapdata9/sr3731_3/sr3731.data3           20000

/oracle/SAP/sapdata9/sr3731_4/sr3731.data4           20000

/oracle/SAP/sapdata9/sr3731_5/sr3731.data5           20000

/oracle/SAP/sapdata9/sr3731_6/sr3731.data6           20000

/oracle/SAP/sapdata9/sr3731_7/sr3731.data7            3500

/oracle/SAP/sapdata5/sr3_348/sr3.data348             31744

 

 

Resize datafile until size

SQL> ALTER DATABASE DATAFILE '<PATH_TO_DATAFILE>' RESIZE <SIZE>M;

 

Database altered.

 

 

 

 

Redologs

 

List of redologs groups and files belonging to each group

SELECT a.group#, a.member, b.bytes FROM v$logfile a, v$log b WHERE a.group# = b.group#;

 

    GROUP# MEMBER

---------- -----------------------------------

        26 /oracle/SAP/origlogB/log_g26_m1.dbf

        26 /oracle/SAP/mirrlogB/log_g26_m2.dbf

        25 /oracle/SAP/origlogA/log_g25_m1.dbf

        25 /oracle/SAP/mirrlogA/log_g25_m2.dbf

        24 /oracle/SAP/origlogB/log_g24_m1.dbf

        24 /oracle/SAP/mirrlogB/log_g24_m2.dbf

        23 /oracle/SAP/origlogA/log_g23_m1.dbf

        23 /oracle/SAP/mirrlogA/log_g23_m2.dbf

        22 /oracle/SAP/origlogB/log_g22_m1.dbf

        22 /oracle/SAP/mirrlogB/log_g22_m2.dbf

        21 /oracle/SAP/origlogA/log_g21_m1.dbf

        21 /oracle/SAP/mirrlogA/log_g21_m2.dbf

 

 

Active Redolog groups

SQL> select group#, status from v$log;

 

    GROUP# STATUS

---------- ----------------

        21 INACTIVE

        22 INACTIVE

        23 CURRENT

        24 INACTIVE

        25 INACTIVE

        26 INACTIVE

 

 

 

 

SAP Queries

 

system in upgrade, no import possible

SQL> update SAPSR3.uvers set PUTSTATUS='+';

SQL> commit;

 

 

BRBACKUP error

When you are getting follwing error:

BR0051I BRBACKUP 6.40 (43)

BR0055I Start of database backup: bebchpaa.anf 2014-01-16 01.00.34

BR0484I BRBACKUP log file: /oracle/SAP/sapbackup/bebchpaa.anf

BR0071E BRBACKUP currently running or was killed

BR0072I Please delete file /oracle/SAP/sapbackup/.lock.brb if BRBACKUP was killed

BR0073E Setting of BRBACKUP lock failed

BR0056I End of database backup: bebchpaa.anf 2014-01-16 07.00.04

BR0280I BRBACKUP time stamp: 2009-07-26 07.00.05

BR0054I BRBACKUP terminated with errors

BR0280I BRBACKUP time stamp: 2009-07-26 07.00.05

BR0291I BRARCHIVE will be started with options '-U -jid ALLOG20090607070000 -d util_file -c force -p initSAP.sap -cds'

Connect to database:

sqlplus /nolog

SQL> connect /as sysdba

End backup:

SQL> ALTER DATABASE END BACKUP;

Then check if lock exists the lock file and delete it. If not found then run the backup again.

Key Notes for SAP on Oracle

$
0
0

Make sure you read these key SAP notes for SAP on Oracle (you need SAP Service Marketplace access):



Recent Hot News

 

SAP Note

Description

2240098

Wrong data / missing data after unclustering tables

2175161

SWPM Oracle/Unix 12.1 MCOD Installation Drops Already Installed Database Without Warnings

2159551

Oracle 12c: Wrong results when _optimizer_aggr_groupby_elim=true

2048023

Oracle 11g RAC: Instance terminated with ORA-00600 [kcbo_switch_cq_1]

2018245

DBSL: Error with parameter "dbs/ora/substitute_literals"

2011199

SAP Bundle Patches (SBP) - structure changes starting with June 2014

2008760

Oracle Alert: Instance Keeps Crashing With ORA-00600: [kcbchg1_28] Errors After Windows 11.2.0.3 Patchset 28 Is Installed

2005311

Oracle Alert: Description and fix for Bug 8895202:
ORA-1555 / ORA-600 [ktbdchk1: bad dscn] ORA-600 [2663] in Physical Standby after switchover (Doc ID 1608167.1)

1970224

Missing or wrong data in OLTP compressed tables after expanding columns to be >255

1965863

Exadata cell optimized incremental backup can skip some blocks to backup

1918966

ORA-7445 [*_MEMCPY*] block corruption on compressed table

1915485

Wrong results on Oracle Index Organized Table (IOTs)

1847870

Oracle 11g: Advanced Compression - Known issues and solution

1654734

Extended Support contract required for 10.2.0.5 PSU and SBP

1028068

Required Oracle Options for the DBA Cockpit

 


Top Notes for Oracle 12c

 

SAP Note

Description

2133079

Oracle Database 12c: Integration in SAP Environment

1914631

Central Technical Note for Oracle Database 12c Release 1 (12.1)

2157904

Oracle 12c: Conversion of Compressed Tables

2166836

Oracle 12c: Problem during SAP upgrade with compressed tables

1888485

Database Parameters for 12.1.0.2

1915299

Troubleshooting Software Installation for 12.1.0.2

1915313

Current Patch Set for Oracle Database 12c Release 1 (12.1)

1915316

Database: Patches for 12.1.0.2

1915315

Database Upgrade Scripts for 12.1.0.2

2087004

BR*Tools Support for Oracle 12c

2240098

Wrong data / missing data after unclustering tables

2175161

SWPM Oracle/Unix 12.1 MCOD Installation Drops Already Installed Database Without Warnings

2159551

Oracle 12c: Wrong results when _optimizer_aggr_groupby_elim=true

 


Top Notes for Oracle 11g

 

SAP Note

Description

1949250

Oracle 11.2.0: Patches/Patch Collections for 11.2.0.4

1631931

Oracle 11.2.0: Patches/Patch Collections for 11.2.0.3

1503709Oracle 11.2.0: Patches/Patch Collections for 11.2.0.2

1431800

Oracle 11.2.0: Central Technical Note

1398634

Oracle database 11g: Integration in SAP environment

1431798

Oracle 11.2.0: Database Parameter Settings

1431796

Oracle 11.2.0: Troubleshooting the Software Installation

1431797

Oracle 11.2.0: Troubleshooting the Database Upgrade

1431799

Oracle 11.2.0: Current Patch Set

1431793

Oracle 11.2.0: Upgrade Scripts

1430669

BR*Tools support for Oracle 11g


Top Notes for Oracle 10g

 

SAP Note

Description

1431752

Oracle 10.2.0: Patches/Patch Collections for 10.2.0.5

1110995

Extended Support for Oracle Version 10.2

839187

Oracle 10.2.0: Applying patch set/patches/patch collection

720886

Oracle Database 10g: Integration into the SAP environment

940794

Releasing Oracle 10.2 versions for older SAP versions

841728

Oracle Database 10g: Software installation problems 10.2.0

871096

Oracle Database 10g: Patch sets/patches for 10.2.0

834917

Oracle Database 10g: New database role SAPCONN

819829

Oracle Database 10g: Instant Client 10.x on Unix

830576

Parameter recommendations for Oracle 10g


Top Notes for BR*Tools

 

SAP Note

Description

1882182

Functional enhancements in BRARCHIVE 7.40 06.03.2014

1844380

Minor functional enhancements in BR*Tools (5) 12.05.2014

1838850

Corrections in BR*Tools 7.40

1671867

Online consistent backup for disk copy and split-mirror

1647272

Minor functional enhancements in BR*Tools (4)

1647271

Support for bigfile tablespaces in BR*Tools

1638356

Additional information about BR*Tools Version 7.20 EXT

1627541

BR*Tools support for Oracle ASM and Exadata/ODA

1598594

BR*Tools configuration for Oracle inst. under "oracle" user

1493614

Parallel incremental backup on disk

1464156

Support for index compression in BRSPACE 7.20

1464091

Minor functional enhancements in BR*Tools (3)

1431296

LOB conversion and table compression with BRSPACE 7.20

1430669

BR*Tools support for Oracle 11g

1428529

Corrections in BR*Tools Version 7.20

29321Creating traces for BR Tools
646681Reorganization of tables with BRSPACE


Top Notes for SAP Database Interface on Oracle

 

SAP Note

Description

2029981DBSL: Replacement of invalid aliases in Oracle hints
1622837

Secure Connection of AS ABAP to Oracle via SSFS

1589924

SAP Workload Management via Oracle Resource Manager

1505012

Trace Options of DBSL for Oracle

1056624

SAP work process tracing in the work process logs dev_w

1047369

Faster DB accesses for R3szchk using Oracle DBSL

915079

J2EE on Oracle: Updating the JDBC Drivers

902042

DBSL: Hint und Profil-Parameter für "substitute literals"

832893

Oracle release check in DbSl

808505

Secondary connection to Oracle DB w/ different character set

797792

R/3 Reconnect after various Oracle error codes


Top Notes for SAP Installation / Upgrade / System Copy

 

SAP Note

Description

2009572

Phase MAIN_SHDRUN/PARDIST_SHD terminated with dump DBIF_DSQL2_SQL_ERROR

1991576

SMIGR_DDL_SELECT_ORA: Not all indexes taken into account (homogenous migration)

1978860

SQL error in report SDB2FORA

1950570

SMIGR_CREATE_DDL: Not all tables are correctly handled

1609745

SMIGR_CREATE_DDL: Termination with very large tables


Miscellaneous Notes

 

SAP Note

Description

2008547

Error during conversion of sub-partitioned tables

1575609

Future HPUX support for SAP on Oracle databases

1174136

Oracle: End of Support Dates

1179765

AIX: End of Support Dates

1174175

HP-UX: End of Support Dates

1174174

Solaris: End of Support Dates

1174176

Tru64: End of Support Dates

1177282

Windows: End of Support for SAP Releases

998004

Update the Oracle Instant Client on Windows

740897

Info about the Oracle license scope; Required Oracle options

527843

Oracle RAC support in the SAP environment

1171650Automated Oracle DB Parameter Check
23345Consistency check of ORACLE database
365481Block corruptions
562403FAQ: Oracle Net
1020260Delivery of Oracle Statistics (Oracle 10g and 11g)

Featured Content for SAP on Oracle

$
0
0

Extension for Period of Waived Oracle 11g Extended Support Fees New!

Oracle has extended the period of waived Oracle 11g Extended Support fees to cover just over the first 2 years of Extended Support. Customers still running on Oracle 11.2.0.4 will not be charged extra for Extended Support until May 31, 2017. For more information, see SAP Note 2098258.
Stay up-to-date by following us on Twitter.

 

Oracle Database In-Memory Certified by SAP

Oracle Database In-Memory has been certified by SAP for use with the SAP® Business Suite based on the SAP NetWeaver® 7.x technology platform. For more information, see SAP Note 2178980.
Stay up-to-date by following us on Twitter.

 

Oracle Database 12c Certified by SAP

Oracle Database 12c has been certified by SAP for use with the SAP® Business Suite based on the SAP NetWeaver® 7.x technology platform.. SAP installations and upgrades are now (as of ) also supported with Oracle 12c. For more information, see SAP Note 2133079.
Stay up-to-date by following us on Twitter.

 

SAP on Oracle Development Update (November) New!

Check our development update for what's up and coming for SAP on the Oracle database - platform news, Oracle 12.1 & 11.2, RAC, ASM, Oracle Linux, BR*Tools, Oracle Database In-Memory....
Stay up-to-date by following us on Twitter.

 

New BR*Tools Patch Now Available (with support for Oracle 12c) New!

The new BR*Tools patch (7.40 Patch 17) is now available on SAP Service Marketplace. It includes full support for Oracle 12c (introduced with patch 14). For more information, see SAP Notes  2213142 and 2087004.
Stay up-to-date by following us on Twitter.

 

Oracle Linux 7 Certified by SAP

Oracle Database 11g Release 2 and all SAP products based on SAP NetWeaver 7.x are now certified and supported on Oracle Linux 7. You can run on bare-metal Oracle Linux or in a virtualized Oracle VM environment, with a certified and supported SAP environment. For the latest Oracle Linux certification, see SAP Note 2069760.
Stay up-to-date by following us on Twitter.

 

New Secure Connect Method 

There is now a new method for the connection between SAP processes and the Oracle database. Instead of storing the encrypted password in the database, it is stored in the file system. This means that the Oracle remote OPS$ connect, which has been used up till now, is no longer needed. For more information, see SAP Notes 1622837 and 1639578.
Secure storage is now supported in BR*Tools. For more information, see SAP Note 1764043.

 

SAP on Oracle Presentations

Here is a new presentation from the recent conference of the German Oracle Users Group (DOAG):

Optimized Loading into the F-Fact Table

Here are some presentations from previous DOAG conferences:

 

Recently Featured Content

Here you can find entries that were previously shown on this page but have since been removed to make way for new content.
Viewing all 299 articles
Browse latest View live