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

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 - PART I

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 :  Refer SCN document at SAP ORACLE UPGRADE STEPS FROM 11g TO 12c FOR SAP SYSTEMS ON LINUX - PART II

 

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.

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

Oracle 12c: Wrong results when _optimizer_reduce_groupby_key_=true

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)

Oracle TDE: Tablespace Encryption - Quick Guide

$
0
0

I just set up TDE for tablespace encryption based on note 974876 and want to share the guide with you guys.
For a complete list of prerequisites and steps, please refer to note.

 

KBA 2126230 contains a PDF document with more details.

 

 

Steps in Nutshell:

  1. Prerequisites
  2. Preparation
  3. Execution

 

Steps in Detail:

  1. Prerequisites
    - ASO license. The Oracle Database Software ASO is always installed by default during an SAP installation. which means you can use TDE immediately without any additional installation tasks. If you bought the license from Oracle Corporation, please consult with Oracle first.
    - Oracle Database 10.2.0.4 or higher
    - SAP Kernel Release 6.40 and higher
    - SAP Basis Release 6.40 Support Package 22
    - SAP Basis Release 7.00 Support Package 16
    - SAP BR*Tools 7.00 patch 24 and higher

  2. Preparation
    - create a backup of sqlnet.ora (for sake of security make sure every single sqlnet.ora is modified, not just in TNS_ADMIN,
    but in $ORACLE_HOME/network/admin as well)
    cp $TNS_ADMIN/sqlnet.ora $TNS_ADMIN/sqlnet.ora.SAVE
    cp $ORACLE_HOME/network/admin/sqlnet.ora $ORACLE_HOME/network/admin/sqlnet.ora.SAVE
    - supplement sqlnet.ora files with below entry (make sure the syntax is correct, otherwise database can not recognize it):
    ENCRYPTION_WALLET_LOCATION =(SOURCE = (METHOD = FILE)(METHOD_DATA =(DIRECTORY = /oracle/OL1/112_64/dbs)))
    - check if above path (specified in DIRECTORY) can be written by ORacle user (ora<sid> or 'oracle')
    - restart database
    - check if Wallet Directory was recognized by the database (below statement should show DIRECTORY in column WRL_PARAMETER)
    SQL> select WRL_PARAMETER,STATUS from V$ENCRYPTION_WALLET;
    - create encryption wallet (specify password in 'point 6' of BR*Tools menu, twice)
    OS> brspace -u / -f mdencr -a create
    - now check enryption wallet again (now, result should show you 'OPEN', if not check steps before and the syntax in sqlnet.ora)
    OS> brspace -u / -f mdencr -a show
    SQL> select WRL_PARAMETER,STATUS from V$ENCRYPTION_WALLET;
    - save encryption wallet
    OS> brspace -f mdencr -a save

  3. Execution
    - Stop and start database
    SQL> shutdown immediate;
    SQL> startup;
    - open database with encryption wallet
    SQL> alter system set encryption wallet open identified by "<password specified in point 2 while creating wallet>";
    - create encrypted tablespace either in SQLPLUS or with BR*Tools
    If using BR*Tools, don't forget to specify "Tablespace encryption (encrypt) [yes]"
    OR
    SQL> create tablespace <encrypted tablespace following SAPs recomendations, like PSAPSR3....> extent management
    local autoallocate segment space management auto encryption default storage (encrypt) datafile '<location of datafile>' size 20M;
    - transfer tables and indexes to the new tablespace with BR*tools
    - check if there are no more objects,segments,extents in old unencrypted tablespace
    - delete old unencrypted tablespace and datafiles

 

UPDATE: There is a PDF document with all steps uploaded to Oracle - SAP on Oracle - SCN Wiki under 'Best Practice Documents'

 

 

Regards,
János

Set up for Secure Storage (SSFS) to support BR*Tools

$
0
0


Hi,

 

I am sharing with you the steps I made.

 

0.) Don't forget the use the latest version of BR*Tools, as SSFS connection method is supported as of BR*Tools 7.20 (27)!

 

1.) First, we have to create the SSFS directories for BR*Tools (note, this can be anywhere. In my case, it is only an Oracle installation without SAP system on it.,so I used SAPDATA_HOME a the source location.)

point1.png

 

 

2.) Create BRT$ADM

point2.png

 

 

3.) Change the password of BRT$ADM user

point3.png

 

 

4.) Test it

 

point4.png

 

After you have set up the SSFS BR*Tools database user (BRT$ADM), you can call all BR*Tools executables with the option "-u //" to connect to the database using the data that you have stored in the secure storage.

 

5.) Change DBACOCKPIT/DB13 settings.

 

You can also use the new connection method for BR*Tools calls in the CCMS transaction DBACOCKPIT/DB13. For this, you must replace the option "-u /"

manually (for example with transaction SE16) with the option "-u //" in the SAP  table SDBAC in the field PSTRING.
UPDATE: There is a script attached to SAP note 1764043, that changes the entries automatically for you. Very handy.

 

 

 

That's all.

 

Regards,

János

SAP on Oracle - Performance

$
0
0

Here you can find information on database performance for SAP systems running on Oracle.
The information includes concept papers clarifying the performance topic as well as best practice papers containing recommendations for performance optimization.

 

Using SAP NetWeaver with Oracle Database: 12c Automatic Data Optimization and Information Lifecycle Management

This document describes the necessary steps to implement automatic data optimization, information lifecycle management, and hybrid columnar compression with row-level locking for SAP products based on SAP NetWeaver.

 

Optimized Loading into the F-Fact Table

This presentation is a discussion of how to optimize loading into the F-fact table for SAP Business Warehouse.

 

Oracle Compression

This presentation is a discussion of Oracle compression.

 

Configuration Overview Command

This presentation from the 2013 German Oracle Users Conference (DOAG) discusses the configuration overview command from the SAP Oracle script collection.

 

SAP Service Tools for Performance Analysis

This presentation from the 2013 German Oracle Users Conference (DOAG) describes SAP service tools for performance analysis with an Oracle database.

 

Oracle LGWR Analysis

This presentation from the 2012 German Oracle Users Conference (DOAG) provides a detailed analysis of the Oracle log writer, including case studies, scenarios, and scripts.

 

Oracle 11g - Ten Less Popular Features 
This presentation from the 2011 German Oracle Users Conference (DOAG) focuses on the less popular new features and some minor changes in Oracle 11g that are good to know in SAP environments.

 

SQL Commands for Lock, Fragmentation and Index Compression Analysis
This presentation from the 2010 German Oracle Users Conference (DOAG) offers additional SQL scripts to monitor Oracle databases by analyzing lock, fragmentation, and index compression.

 

Oracle CBO Cost Calculation 
This presentation from the Oracle German Users Conference (DOAG) discusses how the Oracle cost-based optimizer (CBO) works, including detailed examples.

 

Oracle 10g Performance Case Studies 
This presentation from the German Oracle Users Conference (DOAG) looks at some case studies in performance analysis using the Oracle 10g database.

 

Oracle Bind Variables 
This paper is a detailed discussion of Oracle bind variables, including the advantages and disadvantages of this approach and alternatives to it.

 

Update Statistics for the Oracle Cost-Based Optimizer 
The cost-based optimizer (CBO) is an essential component for improving Oracle database performance. It uses statistics describing database objects and the distribution of data within them. Statistics on data distribution help identify which data is the most selective. This SAP whitepaper describes how update statistics work with the Oracle Cost-Based Optimizer.

 

Faster Oracle DB Access for R3SZCHK - SAP Note 1047369 
We've reduced the typical runtime of R3szchk from several hours to a few minutes by reworking the database access routines, which are used to find the space requirements of tables, indexes, and LOBs. R3szchk no longer requires statistics created with BRCONNECT. However, if the statistics are available, R3szchk automatically uses them to more accurately calculate the space requirements of LOBs and indexes - without noticeably taking any extra time.

 

The CBO and its Optimism About Cardinalities 
This paper discusses how cardinality (the number of rows estimated by the Oracle Cost-Based Optimizer for each step of the execution plan) can significantly impact complex queries.

 

Analyzing SQL Statement with the SQL ID Data Collector 
This presentation describes how SQL statement tuning can improve database performance.

 


SAP on Oracle Automatic Storage Management (ASM)

$
0
0

This topic page describes how to use Oracle Automatic Storage Management (ASM) with your SAP system.

 

Getting Started

Installation and Configuration Requirements for Oracle ASM with SAP  

Update September 2012: This document describes the necessary steps to install and configure ASM in an SAP environment.

 

Best Practices for Migration of an SAP Database to Oracle ASM  

Update January 2013: This document describes two recommended ways for migration of an existing SAP database from filesystem to ASM.

 

SAP with Oracle Real Application Clusters 11g Release 2 and Oracle Automatic Storage Management 11g Release 2  

Update September 2012: This document describes advanced configurations and techniques to configure and manage SAP with Oracle RAC and Oracle ASM on so-called stretched clusters using multiple storage systems located in different datacenters.

Featured Content for SAP on Oracle

$
0
0

Oracle Database 12c Automatic Data Optimization (ADO) Certified by SAP New!

ADO is now 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 2254866.
Stay up-to-date by following us on Twitter.

 

Extension for Period of Waived Oracle 11g Extended Support Fees

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 2015)

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)

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.

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)

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 1.5 MB)

Update March 2016: 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 or later, the integration with the SAP HA interface, and SAP MMC.

 

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.

 

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.

 

New User Concept

New User Concept for SAP NetWeaver on Oracle Database

This presentation describes the new user concept for SAP NetWeaver-based installations with Oracle on Unix.

 

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),.

SAP on Oracle - Security

$
0
0

Here you can find information on database security for the Oracle database running SAP systems. General information on Oracle security as well as information related to specific Oracle security products such as Advanced Security Option (ASO) is included here.

 

Oracle Database Vault for SAP NetWeaver

This presentation discusses Oracle Database Vault 12c Release 1 for SAP NetWeaver.

 

High Security for SAP Data with Oracle Database Vault and Transparent Data Encryption

This paper from the German Oracle Users Conference (DOAG) discusses security issues affecting Oracle databases in an SAP environment, including Transparent Data Encryption (TDE) and Data Vault (DV).

 

Oracle Database Vault for SAP

This presentation from Oracle World 2008 gives an overview of Oracle Database Vault, including SAP certification, best practices, and performance.

 

Database Security for Oracle

A thorough security plan at your site must include securing application databases. This SAP whitepaper explains how best to secure SAP applications running on Oracle. Specifically, you'll learn about securing the OPS$ mechanism and securing DBA tools for Oracle including RMAN, BRBACKUP, and BRRECOVER.

SAP on Oracle - Installation and Upgrade

$
0
0

Here you can find resources and guides to help you install or upgrade your SAP on Oracle application environment. Please note - technical documentation of this type resides on the SAP Support Portal in the SAP Service Marketplace (SMP). An SMP login is required to access these guides and SAP Notes.

 

Tools

MOPatch version 1.9 is now available for SAP customers running Oracle 10.2.0.4. This tool simplifies the task of installing multiple Oracle database patches into an Oracle Home. It automates the process of unpacking the patches and calling "opatch apply" for each of them. You can download MOPatch from SAP Note 1027012, which also tells you how to use the tool.

 

General

Getting Started

Upgrade to Oracle Database 12c Release 1 (12.1): UNIX  (SMP login required)

Upgrade to Oracle Database 12c Release 1 (12.1): Windows  (SMP login required)

 

 

System Copy

These presentations are from the 2013 German Oracle Users Conference (DOAG):

 

 

Homogenous Database Copies With BR*Tools 
This presentation from the German Oracle users Conference (DOAG) shows how to make homogeneous database copies using the new BR*Tools procedure.

 

Miscellaneous

 

Here are some presentations:

SAP on Oracle Engineered Systems

$
0
0
This page describes how to use the Oracle Engineered Systems with your SAP system.

 

Using SAP NetWeaver with Oracle Database Appliance Version 12.1.2.6.0 New!

March 2016: This document describes the necessary steps to plan and configure your SAP system for the Oracle Database Appliance Version 12.1.2.6.0.

 

Using SAP NetWeaver with Oracle Database 12c on Oracle Exadata

July 2015: This document contains information on how to configure the Oracle Exadata Database Machine for using Oracle Database 12c with SAP NetWeaver.

 

Using SAP NetWeaver with the Oracle Database Appliance Release 2.10

This document describes the necessary steps to plan and configure your SAP system for the Oracle Database Appliance Release 2.10.

 

 

This document describes the necessary steps to plan and configure your SAP system for the Oracle Database Appliance Release 2.9.

 

This document describes the necessary steps to plan and configure your SAP system for the Oracle Database Appliance X4-2 with Oracle Database Appliance Release 2.8.

 

This document describes the necessary steps to plan and configure your SAP system for the Oracle Database Appliance Releases 2.4, 2.6, and 2.7.

 

This document describes the necessary steps to plan and configure your SAP system for the Oracle Exadata Database Machine.

 

A technical guide for installation, migration, and configuration of the Oracle Exadata Database Machine with SAP NetWeaver

 

A technical guide for installation of the SAP high-availability instances (ASCS and ERS) for the Oracle Database Appliance (ODA).

 


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.




Installed components in Database

SQL> SELECT COMP_NAME, VERSION, STATUS FROM DBA_REGISTRY;

 

 

CLIENT_VERSION

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

11.2.0.3.0



Is Database of type OLAP?

SQL> SELECT * FROM V$OPTION WHERE PARAMETER = 'OLAP';

CLIENT_VERSION

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

11.2.0.3.0





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

 

 

 

DB Schema for SAP

SQL> SELECT OWNER FROM DBA_TABLES WHERE TABLE_NAME = 'T000';

OWNER

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

SAPSR3

 

 

 

 

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>]

 

 

Delete SAP* user (or another user)

First we check if user exists. Then delete it.

SQL> SELECT MANDT, BNAME FROM <DB_SCHEMA>.USR02 WHERE MANDT = 'XXX' AND BNAME = 'SAP*';

SQL> DELETE FROM <DB_SCHEMA>.USR02 WHERE MANDT = 'XXX' AND BNAME = 'SAP*';

 

(change <DB_SCHEMA> and MANDT)

 

 

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.

Change default port Oracle

$
0
0

This document show some step to do for change the default port to Oracle Listener "1521"

 

First that all, check the port. Use the command "lsnrctl status".

 

Stop SAP with the database too, change the port onthe "tnsnames.ora" file.

 

That's all

Oracle 12c Upgrade

$
0
0

                                                            Oracle 12c Upgrade

 

This document describes the process of executing Oracle 12c Database upgrades, from the source 11g.


In addition, this manual provides information about compatibility, upgrading applications, and important changes in the new Oracle Database release.



1 Preparations/Prerequisites Step’s

 

The following activities can be executed with the system up and running.

 

  1. The software Packages can be placed at a specific location as per your understanding. Like we have kept at the following location /net/hnfssap/sap/infra/install/ORACLE12

 

    1. Oracle Stage /net/hnfssap/sap/infra/install/ORACLE12/stage_12
    2. Oracle Client  12c à /net/hnfssap/sap/infra/install/ORACLE12/instantclient_12
    3. DBA Tools 7.40 (pl17) à /net/hnfssap/sap/infra/install/ORACLE12/brtools
    4. MOPatch à /net/hnfssap/sap/infra/install/ORACLE12/MOPatch
    5. OPatch à /net/hnfssap/sap/infra/install/ORACLE12/OPatch

 

    2. Request Unix team to create additional Logical Volume

    1. /dev/mapper/sap<sid>db-vol<nn>
    2. /oracle/<SID>12102
    3. 15 GB

 

   3. Create directory /etc/oracle and make it 777. It will avoid the issue faced during the oracle upgrade later on.

i1.JPG

 

     4. Check the free space in our HNFS stage. Minimum free space 10GB

    1.     #df -h |grep hnfssap:/sap/infra/Install

 

     5. Backup of current oracle_home and oraInventory (position to the proper source location)


            a.    #tar -cvf /net/hnfssap/sap/infra/install/ORACLE12/oraInventory.tar oraInventory

            b. #tar -cvf /net/hnfssap/sap/infra/install/ORACLE12/11204.tar 11204

 

     6. Create SPFILE for backup

    1. @sqlplus /as sysdba
    2. #create pfile from spfile;
    3. Save the new spfile: cp init<SID>.ora init<SID>.ora.orig

 

     7. Check the patch inventory, and save the extract to a txt file.

    1. #./opatch lsinventory

 

     8. Check the oraInst.loc file. Outcome expected is the correct  oraInventory Location

    1. #more /etc/oraInst.loc

 

     9. Prepare the export display. Open two sessions, one will be used with the Oracle 11g variables and the second one with the 12c Variables:

    1. Open exceed X11
    2. #xhost+
    3. #sudo su – ora<sid>
    4. #export DISPLAY=<your_ip>:0.0
    5. #xclock (to check if it works)

 

    10. Set the 12c Variables

        a.    export ORACLE_HOME=/opt/oracle/<SID>/product/12102

        b.    export ORACLE_HOME_SRC=/opt/oracle/<SID>/product/11204

        c.    export ORACLE_HOME_TGT=/opt/oracle/<SID>/product/12102

 

    11. Link the new stage located in HNFS. The Oracle 12c Stage contains the latest scripts for the RUNINSTALLER (Patch Level 059 - 02062015). Check                 OSS note 1915301 in case a new script is available

    1. #cd /oracle
    2. # ln –s /net/hnfssap/sap/infra/install/ORACLE12/stage_12 stage

 

    12. Launch the RunInstaller Check

    1. #cd /net/hnfssap/sap/infra/install/ORACLE12/stage_12/database/SAP
    2. #RUNINSTALLER –check
    3. Request Unix to fix the warning and install the missing packages

 

2 Installation of new Oracle_Home 12.1.0.2

 

  1. With the 12c Variables, launch the RUNINSTALLER


i2.JPG

Click Next

 

i3.JPG

Click Yes

 

i4.JPG

Select Install Database software, then click Next

 

i5.JPG

Select Single instance database installation, then click Next

 

i6.JPG

Select English ---  Click Next


i7.JPG

Select the Database Edition then Click Next


i8.JPG

Hidden the <SID>


Select the correct Oracle Base and Oracle_Home locations, then click Next

i9.JPG

Ignore the WARNING and click YES


i10.JPG

Click Next


i11.JPG

If already checked with Unix and the warning are still there, click Ignore All then click Next


i12.JPG

Click Yes


i13.JPG

Check and then click Install


i14.JPG

i15.JPG

Run the script as suggested


i16.JPG

i17.JPG

Click on Close



3. Install the Sap Bundle Patch (still with variables 12c)

    1. a. Upgrade the MOPatch and OPatch executables
    2. b. Position the zip file in the MOPatch directory
    3. c. #./ mopatch.sh -v -s SAP12102P_1511-20012300.zip

 

Link Status:

 

  Link script “./link.hostname.sh” executed successfully


Orasid>


 

4.  Launch the pre_upgrade script from the new Oracle_Home 12c


a.       sqlplus / as sysdba @pre_upgrade_status.sql

i18.JPG

 

5. Launch the dbua.sh –qand check the warning (in this case, the display variables were not properly set)

 

User is -- ora<SID>

 

i19.JPG


6. Launch the upgrade script dbua.sh


i20.JPG

Check if the DB is up and running, then click Next

 

i21.JPG

Select Upgrade Oracle Instance, then click Next



 

Prerequisite Checks will run automatically

i23.JPG


Click Next, hidden the <SID>


i24.JPG

Un-check and then click Next


i25.JPG

Un-check andthen click Next, hidden the<SID>


i26.JPG

clickNext, hidden the<SID>


i27.JPG

Select the own backup strategy then clickNext, hidden the<SID>


i28.JPG

 

Check the details then click Finish


Hostname:/etc # ll |grep oracle

 

Drwxrwxrwx     2 root        root             4096     oracle

 

Hostname:/etc #

 

Refer to this link, if required-:

 

https://community.oracle.com/thread/3696552?start=0&tstart=0


                                                  Post Activities

 

1. Update the SQL*Net configuration files:

            a. Copy the listener.ora, sqlnet.ora and tnsnames.ora from the Oracle 11 to the 12c $ORACLE_HOME/network/admin

            b. Adjust the files with the new oracle12 locations

 

2. Check the symbolic link for the runtime Oracle home.

            a. # cd /oracle/<SID>

            b. # ln -s /oracle/DBSID/12102 121

 

3. Adapt the environment of the <sid>adm user.

            a. Log on as user adm and adapt the variables listed below in the .dbenv* files.

            b. Set the ORACLE_HOME environment variable to new Oracle home

 

4. Adapt the environment of the ora user.

 

5. Edit the /etc/oratab file including the following line:

     a. <SID>:/opt/oracle/<SID>/product/12102:N

 

6. Start the database and listener process as <ora>sid user.

 

7. Perform post-upgrade checks.  Refer Note : SAP Note 1915315

 

8. Perform post-upgrade tasks

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

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

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

 

9. Update the Oracle Instant Client.

     a. Copy the oracle client from the HNFS location

     b. #cd /oracle/client/12x

     c. #ln -s instantclient_12102 instantclient

 

10.  Update BR*Tools.

     a. Copy the executables from the HNFS location

 

11.  Backup the database.

 

12.  Unistall the old Oracle_Home 11g

       a. # ./runinstaller -deinstall -home <path_of_Oracle_home_to_be_deinstalled>


End of Document




Index storage capacity analysis & Re-build

$
0
0

Index storage capacity analysis

&

Re-build


Introduction:

 

Indexes are the vital component in database to search data in most optimal way using filter. By continuous changes in the data due to Insert, Update and Delete operations, the index stored on the database gets fragmented thus increasing Application response time and consuming hardware resources like disk space and CPU. Index rebuild is considered as one of the important activity in performance optimization.

 

 

1. Index storage capacity analysis

 

Execute report RSORAISQ/RSORAISQN through T-code SE38.

1.png

 

Provide any ID to distinguish it from others.

 

Provide the Index, Table and Tablespace name as shown. (Currently we are analyzing the PSAPSR3 Tablespace so it is provided).

 

Choose "Start workingset" option with Analyze (Fast) option and execute the report in background.

 

Check the job status from SM37 --> job name RSORAISQN.

 

Upon successful completion of job execute the report again. And choose the option “Show History” to get the results.

 

2.png

 

The report will provide us the list of indexes with their size, storage capacity and other details.

 

Sort the details in the report by index size and storage capacity and extract the details in sheet.

 

 

 

2. Index Re-build Methods

 

Method 1: Execute the report RSANAORA (Recommended)

 


Execute the report RSANAORA.

3.png

 

Select the Index option --> Enter Index names that are to be rebuilt from the extracted sheet.

(To avoid the system load it’s recommended to choose indexes batch wise for rebuild)

 

4.png

 

After copying the list of Indices through clipboard, select ALTER INDEX REBUILD ONLINE option

 

5.png

 

Execute the program in Background

This method is recommended as it does the index rebuild by online method.

 

 

Method 2: Transaction code – DBACOCKPIT/ DB02OLD

 

Execute the Transaction Code DB02OLD

Choose the option current sizes

 

6.png

 

Choose Tables/Indexes option.

7.png

 

8.png

 

Select the index and choose for detailed analysis option.

 

9.png

 

In the detailed analysis it will show the size of the index which is 192 KB in the current case.

 

10.png

From the menus choose Alter index --> Rebuild


11.png



Transaction Code – DBACOCKPIT

 

Execute the T-code DBACOCKPIT and navigate as space --> segments --> detailed analysis.

From the main screen select the Index.

Main Data tab you can validate / Rebuild index

Storage tab provides the current size and storage quality of selected index

 

12.png

 

 

Method 3: Brtools

 

You can use brtools for rebuild indexes

Launch the brtools by ora<SID> user and choose the following options to traverse.

 

13.png

 

14.png

 

15.png

16.png



Method 4: By executing Oracle query

 

Connect to oracle by

 

Sqlplus / as sysdba

 

And execute the query as

 

Syntax: alter index <tablesapace_name>.<index_name> REBUILD ONLINE

 

E.g. alter index SAPSR3.CRM_ACE2_OBJ_WL~0 REBUILD ONLINE

 

 

3. Result/Observation:

 

The usable memory capacity of the tablespace is increased. The increased system response time can also be observed.

This can be checked by T-code ST04 --> space --> Tablespace --> Overview.

 

Before index rebuild:

 

17.png

After index rebuild:

 

18.png

 

4. Reference Notes:

 

332677 – Alternatives to rebuild indexes

682926 – Problems with Create/rebuild index with the solutions.

712098 - RSORAISQ: Index Storage Quality Management, in order to fix authorization problem.

Viewing all 299 articles
Browse latest View live


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