This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Upgrade GuideUpgrade to Oracle Database 11 Release 2 (11.2): WindowsBased on Oracle Patch Set Release 11.2.0.2
<Example> Angle brackets indicate that you replace these words or characters with appropriate entries to make entries in the system, for example, “Enter your <User Name>”.
ExampleExample
Arrows separating the parts of a navigation path, for example, menu options
Example Emphasized words or expressions
Example Words or characters that you enter in the system exactly as they appear in the documentation
http://www.sap.com Textual cross-references to an internet address
/example Quicklinks added to the internet address of a homepage to enable quick access to specific content on the Web
123456 Hyperlink to an SAP Note, for example, SAP Note 123456
Example ■ Words or characters quoted from the screen. These include field labels, screen titles, pushbutton labels, menu names, and menu options.
■ Cross-references to other documentation or published works
Example ■ Output on the screen following a user action, for example, messages ■ Source code or syntax quoted directly from a program ■ File and directory names and their paths, names of variables and parameters, and
names of installation, upgrade, and database tools
EXAMPLE Technical names of system objects. These include report names, program names, transaction codes, database table names, and key concepts of a programming language when they are surrounded by body text, for example, SELECT and INCLUDE
Perform the steps on the first MSCS node only. The database must be located on the first MSCS
node.
1. Stop all application servers connecting to the database.
2. In the Cluster Administrator (Windows Server 2003) or Failover Cluster Manager (Windows Server 2008
(R2), take the SAP <SAPSID> <no.> instances in the SAP <SAPSID> resource group offline.
3. In the Cluster Administrator (Windows Server 2003) or Failover Cluster Manager (Windows Server 2008
(R2), move all groups to the first MSCS node.
4. Start the Oracle Fail Safe Manager as the user under which the Cluster Service is running.
5. Choose Groups Oracle<DBSID> Cluster Resources and right-click <DBSID>.world
NOTE
Sometimes the name of cluster resource is <DBSID> only.
6. Choose Remove from Group.
7. In the dialog box Confirm Remove Database from Group, choose Yes.
The Clusterwide operation window displays the steps that are executed to remove the database from
the cluster group. The last line informs you that The clusterwide operation completed successfully.
8. In the Clusterwide operation window, choose Close.
9. Exit the Fail Safe Manager.
3.3 MSCS Only: Upgrading to OFS 3.4.2
If the MSCS configuration is still running with Oracle Fail Safe Software (OFS) version lower than 3.4.2,
you must upgrade to version 3.4.2
To do this, you first have to deinstall the old Oracle Fail Safe software on all MSCS nodes and then
install the Oracle Fail Safe 3.4.2 software on a local disk on all nodes.
CAUTION
Make sure that you install the Oracle Fail Safe 3.4.2 software in the same Oracle Home on all MSCS
nodes.
Prerequisites
■ You are logged on as user <SAPSID>adm
■ The Cluster Service is started on all MSCS nodes.
For more information, see Starting and Stopping Services for MSCS [page 42].
3 Preparation
3.3 MSCS Only: Upgrading to OFS 3.4.2
16/54 PUBLIC 2011-05-17
Procedure
Deinstalling the Old Oracle Fail Safe Software
1. Make sure that the Oracle Fail Safe Manager is closed.
2. Uninstall the old OFS software on all MSCS nodes, as follows:
NOTE
While you are uninstalling the software on a particular MSCS node, do not reboot the other
node.
1. Start the Oracle Universal Installer from the Oracle RDBMS DVD.
■ If you use the Start menu, double-click the following file:
<DVD_DRIVE>:\OFS3.4.2\SAP\sapofs.cmd
■ If you use a Powershell [page 49] script, enter the following command:
<DVD_DRIVE>:\OFS3.4.2\SAP\sapofs.ps1
2. In the Welcome screen, choose Installed Products.
3. In the Inventory window, expand <Fail_Safe_Home> and select Oracle Fail Safe <version_lower_to
3.4.2>.
4. Choose Remove.
5. In the Confirmation dialog box, confirm that you wish to delete the selected products.
6. Click Exit to close the Oracle Universal Installer.
3. If you use a 64-bit system, you also have to deinstall the old Oracle Fail Safe client software on all
nodes, using the .32-bit Oracle Universal Installer from the Oracle RDBMS DVD:
1. Start the Oracle Universal Installer from the Oracle RDBMS DVD.
■ If you use the Start menu, double-click the following file:
<DVD_DRIVE>:\OFS3.4.2\SAP\sapofs.cmd
■ If you use a Powershell [page 49] script, enter the following command:
<DVD_DRIVE>:\OFS3.4.2\SAP\sapofs.ps1
2. In the Welcome screen, choose Installed Products.
3. In the Inventory window, select OFSCLI and choose Remove.
4. In the Confirmation dialog box, confirm that you wish to delete the selected product.
Installing the Oracle Fail Safe Software
1. In the Cluster Administrator, make sure that the:
■ Other MSCS nodes are not set to Pause.
■ SAP group is offline on the node where you are installing.
2. Make sure that the Cluster Server service is started on all MSCS nodes.
3. Start the Oracle Universal Installer from the Oracle RDBMS DVD.
■ If you use the Start menu, double-click the following file:
<DVD_DRIVE>:\OFS3.4.2\SAP\sapofs.cmd
■ If you use a Powershell [page 49] script, enter the following command:
3 Preparation
3.3 MSCS Only: Upgrading to OFS 3.4.2
2011-05-17 PUBLIC 17/54
<DVD_DRIVE>:\OFS3.4.2\SAP\sapofs.ps1
The installer opens and guides you through the installation process.
NOTE
If the installer aborts and an error is displayed in an Application Error window with the text The
exception unknown software exception ..., check the TMP and TEMP variables. In the user environment
of <SAPSID>adm, make sure that these refer to existing files. If not, reset them.
Screen Entry
Welcome Choose Next.
Select Installation Type Choose Typical, and then Next.
Specify Home Details For Name:Enter the name of the Oracle Home for the Oracle Fail Safe software.The Fail Safe software must be installed in a separate Oracle Home directory, for example, OFS
NOTE
If Oracle Fail Safe version 3.3.2 or 3.3.4 was previously installed, we strongly recommend that you use the old Oracle Fail Safe Home for 3.4.2.
For Path:Enter the path of the Oracle Home directory for the Oracle Fail Safe software. It must be on a local disk, for example:F:\Oracle\OFS
Reboot Needed After Installation Choose Next.
Summary View the information and choose Install.
Install Wait while the software is installed.
Configuration Tools In the dialog box Oracle Fail Safe Account/Password, enter the account and password under which the Oracle Fail Safe software is to run. The account has to be a member of the local administrators and the ora_<dbsid>_dba groups on both cluster nodes.The <DBSID>adm user fulfills these requirements.If you choose to use <DBSID>adm, you have to update the account information for the Oracle Services for MSCS Service after every password change of the <DBSID>adm user. To do this, choose Start
All Programs Oracle OFS Oracle Service for MSCS Security Setup on all cluster nodes.
End of Installation Click Exit to leave the installer.
4. Reboot and log on again.
CAUTION
Do not reboot an MSCS node, if the installation of the OFS software or the deinstallation of
earlier releases is in progress on another node.
3 Preparation
3.3 MSCS Only: Upgrading to OFS 3.4.2
18/54 PUBLIC 2011-05-17
4 Oracle Database Upgrade
This section describes how to upgrade the Oracle database.
1. You install the Oracle 11.2 software [page 19].
2. You copy and adapt the old Oracle SQL*Net files [page 22].
3. You run the pre-upgrade scripts.
4. You back up the Oracle database [page 23].
5. You change the environment for user <dbsid>adm [page 23].
6. You upgrade the Oracle database [page 25].
NOTE
If you have problems during the upgrade, see SAP Note 1431797.
4.1 Installing the Oracle Database Software
The following sections describe how to install the Oracle server software, and update the Oracle instant
client software. It also includes information about the current patches to install.
4.1.1 Installing the Oracle 11g Server Software
As of Oracle 11.2.0.2, Oracle database patch sets are full installations of the Oracle database software.
Patch sets now replace existing installations. For more information about identifying and installing the
correct Oracle database software version, see SAP note 1431799.
Procedure
CAUTION
If you copy the files from the RDBMS media to a local disk, do not use directory names containing
blanks.
NOTE
■ You need 5-10 GB disk space for the Oracle server software.
■ MSCS only: You have to install the Oracle database server software on all MSCS nodes.
1. On the database server, make the Oracle RDBMS media available change to the directory:
2. Start the Oracle Universal Installer (OUI) by double-clicking the file sapserver.cmd.
NOTE
■ You cannot directly invoke sapserver.cmd, if you use UNC paths (\\<host_name>
\<share>\sapserver.cmd). Instead, you must map a drive letter to the shared directory
and start sapserver.cmd via the drive letter.
■ You can also use the Powershell script sapserver.ps1 – which you can also use with
UNC paths – to start the OUI. To run the script, do not double-click on it, since this by
default in the Windows explorer opens the edit mode. Instead, right-click on it and execute
it with Powershell.
For more information about Powershell, see Using Powershell [page 49].
■ For support reasons, do not use the setup.exe file in the directory <media_DRIVE>:
\database\. Using sapserver.cmd or sapserver.ps1 guarantees a unique setup of the
ORACLE_HOME that is common to SAP systems.
■ Windows Server 2008 (R2) with activated UAC: If you have drive letters that were
created in unelevated mode, you cannot access them in elevated mode. Therefore, if you
want to double-click sapserver.cmd, you have to copy the Oracle RDBMS media to a
local disk. If you want to invoke sapserver.cmd from within a command prompt or
Powershell window, you have to elevate (run as administrator) the command prompt
or Powershell window before you create the network drive.
If a command prompt window appears, specify the drive letter of the local disk where you want
to install the Oracle software, and the <DBSID>. The command prompt window only appears if
you perform a new installation (under a different user), or if the ORACLE_HOME and <DBSID>
are not set.
3. In the Oracle Universal Installer, enter the information as shown in the following table:
Installing the Oracle 11.2.0 Database Software
Window Task
Configure Security Updates Do not select the check box.Choose Next.The installer issues a warning.Choose Yes and then Next.
Select Installation Option Confirm the default selection Install database software only and then choose Next.
Grid Installation Options Confirm the default selection Single instance database installation and then choose Next.
Select Product Languages Confirm the default option English and then choose Next.
Select Database Edition Confirm the default option Enterprise Edition and then choose Next.
Specify Installation Location This window displays the value for ORACLE_BASE, which should be set in the environment to <drive_containing_oracle_home>:\oracle.
4 Oracle Database Upgrade
4.1 Installing the Oracle Database Software
20/54 PUBLIC 2011-05-17
Window TaskIt also displays the value for ORACLE_HOME, which should be \oracle\<DBSID>\1120<x> (where 1120<x> is the Oracle version number, for example, 11202 for Oracle 11.2.0.2, 11203 for Oracle 11.2.0.3, and so on).Select this option and then Next.
Perform Prerequisite Checks This window checks if all the required system prerequisites for the installation of the database software have been met. If some of the checks are displayed as Failed, you can fix these problems and run the check again by choosing Check Again.
RECOMMENDATION
We strongly recommend you to make sure that there are no failed checks before starting the software installation.
Summary Review the information displayed in this window and choose Finish.
Install Product This window shows the progress of the installation.
Finish After the installation has finished successfully, choose Finish and close the Oracle Universal Installer.
4. Install the required Oracle patches [page 21] (if available).
NOTE
MSCS only:
You have to install the Oracle patches on all MSCS nodes.
4.1.2 Installing Required Patches
After the database software installation, you need to install all required Oracle patches, which on
Windows include patch collections and generic patches.
Check SAP Note 1503709 to find the list of patches to be installed.
■ MSCS only: Follow the instructions on the first cluster node only, where the database is located.
In the Cluster Administrator make sure that the database disks are online on the first cluster node.
Procedure
1. Start the Oracle Database Upgrade Assistant using one of the following options:
■ You use a Powershell script.
To start the Oracle Database Upgrade Assistant (DBUA) with a Powershell script, proceed as
described in SAP note 1431793, section “5.2 Using the DBUA wrapper on Windows”.
The advantage of using a Powershell script is that all required parameters are already specified
in the DBUA, and manual post-installation tasks are reduced to a minimum.
For more information about Powershell, see Using Powershell [page 49].
■ You use the Start menu:
Choose Start All Programs Oracle - <NEW_ORACLE_HOME_NAME> Configuration and
Migration Tools Database Upgrade Assistant .
2. Proceed as shown in the following table:
Screen Input
DBUA: Welcome Choose Next.
DBUA: Select Database 1. Select the database that you want to upgrade.2. Choose Next.
The DBUA analyzes the database to be upgraded and performs pre-upgrade checks.
3. If the DBUA warns you of issues that need to be fixed before the upgrade, you need to analyze and act on these warnings.The most common warning or information messages are as follows: ■ Database is using an old timezone file version
Upgrade of TSTZ data is done automatically if the DBUA was started using dbua.sap.ps1.
■ Database contains schemas with stale optimizer statisticsSee SAP Note 1431793, section 4. Running the Pre-Upgrade Scripts.
■ Database contains INVALID objects prior to upgradeSee SAP Note 1431793, section 4. Running the Pre-Upgrade Scripts.
■ If there is not enough space for the SYSTEM tablespace, increase the space.
■ If you are prompted to resize the rollback segment SYSTEM, choose Continue.
4. Choose Yes to continue with the upgrade.
DBUA: Upgrade Options The following options are available: ■ Recompile invalid objects at the end of the upgrade
Leave this selection unchanged.The option lets you choose whether the DBUA has to automatically recompile all PL/SQL modules after the upgrade. If the database server has multiple CPUs, the DBUA automatically proposes the number of parallel processes to be used for the recompilation.
■ Backup databaseSince you have already performed the Oracle database backup [page 23], you do not need to select this option.
Choose Next.
DBUA: Move Database Files Leave the default setting Do Not Move Database Files as Part of Upgrade and choose Next.
DBUA: Recovery and Diagnostic Location
1. Do not select Specify Flash Recovery Area.2. If you opened the DBUA with the Start menu, in the Diagnostic
Destination field you have to specify the location of the saptrace directory using the Browse button.
3. Choose Next.
DBUA: Management Options Deselect Configure the Database with Enterprise Manager, if selected, and choose Next.
DBUA: Summary Review the summary of changes to be made.This includes the warnings that you ignored or did not fix, components to be upgraded, parameters to be added, removed, and changed after the upgrade.Choose Back to make any final adjustments, if required. Otherwise, leave the default settings and choose Finish to start the upgrade.The upgrade process itself runs for some time, depending mainly on the size of the database and the capacity of the hardware.You can ignore the warning ORA-32004 obsolete or deprecated parameter(s) specified for RDBMS instance.When the DBUA has completed successfully, the results of the upgrade are displayed. Review the changes made and close the DBUA.
3. If you started the DBUA from the Start menu, you must perform additional steps to perform the
post-upgrade script (see below).
Additional Steps When Starting the DBUA from the Start Menu
If you started the DBUA from the Start menu, you have to check the upgraded database and perform
the post-upgrade script manually.
To do this perform the following steps of SAP note 1431793:
Ignore the error message: Unable to start service, OS Error 1056.
Alternatively, use regedit.exe to change the registry key to value FALSE. The registry key is available
at HKLM:\Sofware\Oracle\KEY_<DBSID>11202.
NOTE
If you have several Oracle Homes, ORA_<DBSID>_AUTOSTART is available in one Oracle Home only.
Set the value for ORA_<DBSID>_AUTOSTART from TRUE to FALSE.
5 Post-Upgrade Steps
5.4 Changing the Registry Value of Oracle Autostart
30/54 PUBLIC 2011-05-17
5.5 Checking the Start Up Type of the Oracle Services
Procedure
Start the Oracle services, if not yet started.
In a standard configuration, set the startup type of OracleService<DBSID> and
Oracle<ORACLE_HOME_NAME>TNSListener to automatic to ensure that they are automatically restarted
after booting. For more information about how to start services, see Starting or Stopping Services [page
42].
CAUTION
MSCS only:
Set the startup type of OracleService<DBSID> and Oracle<ORACLE_HOME_NAME>TNSListener to
manual to ensure that they are not automatically restarted after booting.
5.6 Updating the SAP Executables and the BR*Tools
You need to update the SAP executables and the BR*Tools to the latest version.
NOTE
Make sure that you first extract and update the SAP executables before you extract and update
the BR*Tools.
Prerequisites
The BR*Tools of Version 7.20 require the Microsoft Visual Studio 2005 Redistributables. For more
information about and how to install them, see SAP Note 684106.
Procedure
Updating the SAP Executables
Apply the following latest available packages for the SAP executables in the following sequence for:
■ SAPEXE
■ dw_xxx
■ SAPEXEDB
■ lib_dbsl
Executable Download Location
SAPEXEDB and lib_dbsl http://service.sap.com/swdc Download Support Packages and Patches Support Packages and Patches - Entry by Application Group Additional Components SAP Kernel
SAP Kernel <platform> SAP Kernel <your SAP release> Windows Server on <platform> Oracle
SAPEXE and dw_xxx http://service.sap.com/swdc Download Support Packages and Patches Support Packages and Patches - Entry by Application Group Additional Components SAP Kernel
SAP Kernel <platform> SAP Kernel <your SAP release> Windows Server on <platform> #Database Independent
5 Post-Upgrade Steps
5.5 Checking the Start Up Type of the Oracle Services
This page is left blank for documents that are printed on both sides.
6 Common Administration Tasks
The following sections provide information on common administration tasks that have to be performed
repeatedly during the upgrade procedure. Some of these tasks are standard tasks, others are only
relevant for a Microsoft Cluster Service (MSCS) configuration.
■ Starting and stopping the database [page 39]
■ Checking Oracle services [page 41]
■ Starting and stopping services [page 42]
■ Changing or deleting Oracle database parameters [page 43]
■ Determining the value of SAP system profile parameters [page 44]
■ Moving groups for MSCS [page 44]
■ Starting and stopping the SAP system [page 45]
6.1 Starting and Stopping the Database
The following sections provide information on:
■ Starting and stopping the database in a standard configuration [page 39]
■ Starting and stopping the database in an MSCS configuration [page 40]
6.1.1 Starting and Stopping the Database in a Standard Configuration
In a standard configuration you use sqlplus to start or stop the database.
Procedure
Enter the following commands in sqlplus:
■ To start the database, enter:
sqlplus /nolog
SQL>connect / as sysdba
SQL>startup
SQL>exit
■ To stop the database, enter:
sqlplus /nolog
SQL>connect / as sysdba
SQL>shutdown immediate
6 Common Administration Tasks
6.1 Starting and Stopping the Database
2011-05-17 PUBLIC 39/54
SQL>exit
6.1.2 Starting and Stopping the Database in an MSCS Configuration
This section describes how to start or stop the database in an MSCS configuration.
You have the following options
■ You use sqlplus
You use this option if:
● The database disks are online and the OracleService<DBSID> is started.
● You start the database in a certain mode, for example you use the commands startup
upgrade or startup migrate during an upgrade or a migration.
NOTE
If want to start the database in a certain mode (for example, you use the commands startup
migrate, startup upgrade, startup nomount, or if you have installed a patch set or patch
collection), perform the following steps:
1. In the Oracle Fail Safe Manager, right-click the database <DBSID>.world in the cluster
group ORACLE<DBSID>.
2. Choose Place offline.
3. Choose the specific modus.
4. On the node, where the Oracle group is partially online, start the service
OracleService<DBSID>
5. Perform administrative tasks including start up or shutdown
6. In the Oracle Fail Safe Manager, take the cluster resource <DBSID>.world online.
For more information on how to start and stop your database with sqlplus, see Starting and Stopping the
Database in a Standard Configuration [page 39].
■ You use the Oracle Fail Safe Manager
You use this option, if the database is under control of the Oracle Fail Safe Manager.
CAUTION
If the Oracle database resource is online, you must use the Oracle Fail Safe Manager to stop
the database. If you do not use the Oracle Fail Safe Manager, the cluster functionality
automatically attempts to restart the database.
Prerequisites
You are logged on as user <SAPSID>adm.
Procedure
The following procedure describes how to start and stop the database with the Oracle Fail Safe Manager.
6 Common Administration Tasks
6.1 Starting and Stopping the Database
40/54 PUBLIC 2011-05-17
■ Starting the database
1. In the Oracle Fail Safe Manager, right-click the database <DBSID>.world in the cluster group
ORACLE<DBSID>.
2. Choose Place online.
■ Stopping the database
1. In the Oracle Fail Safe Manager, right-click the database resource <DBSID>.world in the cluster
group ORACLE<DBSID>
2. Choose Take offline.
NOTE
If a pop-up appears, asking you how to take the database offline, choose Immediate.
6.2 Checking Oracle Services
This section describes how to check the status of the Oracle services.
Oracle Services
The following services that are available in an Oracle 11g installation and should not be deleted:
■ OracleService<DBSID>
■ Oracle<Oracle_Home_Name>TNSListener
■ OracleMTSRecoveryService
■ Oracle<Oracle_Home_Name>ClrAgent
■ OracleVssWriter<DBSID>
■ MSCS only: OracleMSCSServices
■ MSCS only: Oracle<Oracle_Home_Name>TNSListenerFsl<virtual DB host name>
NOTE
To remove the OracleRemExecService (if available) you first have to stop it.
Procedure
To check the status of a service, perform the following steps:
1. Choose Start All Programs Administrative Tools Services .
2. Double-click the required service.
■ The Status column shows whether a service has been started.
■ The Startup Type column shows whether a service is started automatically after booting or
whether it has to be started manually.
● To change the startup type, right-click Properties, select the General tab, and choose the
startup type from the dropdown box.
● To change the user that is assigned to a service, select the Log On tab and make the
appropriate entries.
6 Common Administration Tasks
6.2 Checking Oracle Services
2011-05-17 PUBLIC 41/54
6.3 Starting and Stopping Services
This section describes how to stop services in a standard configuration and in an MSCS configuration.
Procedure
Starting and Stopping Services in a Standard Configuration
1. Right-click on My Computer and choose Manage.
2. Double-click on Services and Applications and select Services.
3. Right-click on the service you want to start or stop.
4. Choose Start or Stop as required.
Starting and Stopping Services in an MSCS Configuration
■ Starting or Stopping the Cluster Service with the Cluster Administrator (Windows Server
2003) or Failover Cluster Manager (Windows Server 2008 (R2))
1. Start the Cluster Administrator (Windows Server 2003), or Failover Cluster Manager (Windows Server
2008 (R2)).
2. Select the node where you want to start or stop the Cluster Service.
3. To stop the cluster service, choose File Stop Cluster Service.
4. To start the service, choose File Start Cluster Service
■ Starting and Stopping Services with the Cluster Administrator (Windows Server 2003), or
Failover Cluster Manager (Windows Server 2008 (R2)), or Fail Safe Manager
You can start or stop the services listed in the table below with the Cluster Administrator (Windows
Server 2003), or Failover Cluster Manager (Windows Server 2008 (R2)), or Fail Safe Manager.
To start a resource, set it online. To stop a resource set it offline.
CAUTION
If during the migration process the Cluster Service is stopped, you cannot use the Fail Safe
Manager or Cluster Administrator (Windows Server 2003), or Failover Cluster Manager (Windows Server
2008 (R2)) to stop services. In this case, you have to stop them as described above under Starting
and Stopping Services in a Standard Configuration.
However, when the Cluster Service is running, you must use the Cluster Administrator (Windows
Server 2003), or Failover Cluster Manager (Windows Server 2008 (R2)), or Fail Safe Manager,
otherwise the cluster functionality automatically attempts to restart the services you have
stopped.
The following table shows how to start the services.
Service Resource
SAP<SAPSID>_<Instance_No.> Set the SAP cluster resource to online. The SAP system is started.
OracleService<DBSID> Choose one of the following: ● Set the resource <DBSID>.world in the group
ORACLE<DBSID> to online.
6 Common Administration Tasks
6.3 Starting and Stopping Services
42/54 PUBLIC 2011-05-17
Service Resource
● In the Oracle Fail Safe Manager, set the Fail Safe Database <DBSID>.world to online.
Oracle<Oracle_Home_Name>TNSListenerFsl<virtual DB host name>
Set the corresponding resource in the group ORACLE<DBSID> to online.
OracleMSCSServices Set the resource Oracle Services for MSCS in the Cluster group to online.
6.4 Changing or Deleting Oracle Database Parameters
Depending on the configuration of the Oracle database, you must use one of the following files to
change or delete the Oracle database parameters:
■ If your database is not configured for using a spfile you use the init<DBSID>.ora file.
■ If your database is configured for using a spfile you use the spfile.
Procedure
1. Check the configuration of your Oracle database with the following sqlplus commands:
sqlplus /nolog
SQL>connect / as sysdba
SQL>show parameter spfile
2. Check the value of the spfile parameter and perform one of the following steps:
■ If the value of the parameter spfile is empty, your database is not configured for using a spfile.
Edit the init<DBSID>.ora file to change the parameters.
■ If a value for the parameter spfile is displayed, your database is configured for using a spfile.
Change the parameters in the spfile as follows:
● To set the parameter, enter one of the following:
◆ If <parameter_value> consists of a string, for example 11.2.0, enter:
SQL> alter system set <parameter_name>=’<parameter_value>’ scope =
spfile;
◆ Otherwise enter:
SQL> alter system set <parameter_name>=<parameter_value> scope =
spfile;
NOTE
To find out if your parameter value is a string or a number, use the command:
show parameter <parameter_name>
● To delete a parameter, enter:
SQL> alter system reset <parameter_name> scope = spfile sid = '*';
6 Common Administration Tasks
6.4 Changing or Deleting Oracle Database Parameters
2011-05-17 PUBLIC 43/54
NOTE
If you get an error during the ‘alter system reset’ command like ORA-32010 : cannot
find entry to delete in SPFILE, you can ignore it, as it only indicates that the
entry did not exist in the SPFILE.
6.5 Determining the Value of SAP System Profile Parameters
This section describes how to determine the value of SAP system profile parameters, for example of
DIR_CT_RUN and DIR_EXECUTABLE.
Procedure
The following procedure shows an example how to determine the value of the DIR_CT_RUN parameter.
To find out the value of DIR_CT_RUN, do one of the following:
■ If your SAP system is started, use transaction SE38.
Run report rsparam and search for the parameter DIR_CT_RUN.
■ If your SAP system is not started, open a command prompt and enter: sappfpar
pf=<full_path_to instance_profile> DIR_CT_RUN
6.6 Moving Groups or Services and Applications for MSCS
To move the database, SAP, or disk cluster groups from one MSCS node to the other, you can use the
Cluster Administrator (Windows Server 2003), or Failover Cluster Manager (Windows Server 2008 (R2)), or the
Fail Safe Manager. This section describes the procedure for all of them.
NOTE
As of Windows Server 2008 (R2) there are the following terminology changes:
■ Cluster groups are now called services and applications.
We do not always use both names in this section.
■ The Cluster Administrator is now called Failover Cluster Manager.
Procedure
Windows Server 2003: Moving Groups with the Cluster Administrator
Use the Cluster Administrator for groups that do not belong to the Oracle database groups:
1. Start the Cluster Administrator with Start < Settings> Control Panel Administrative Tools Cluster
Administrator.
2. On the left-hand pane, under Groups right-click the cluster group you want to move.
3. Click Move group on the context menu.
The group is now moved to another node.
4. Repeat this for each group that you want to move.
6 Common Administration Tasks
6.5 Determining the Value of SAP System Profile Parameters
44/54 PUBLIC 2011-05-17
Windows Server 2008 (R2): Moving Services and Applications with the Failover Cluster Manager
You use the Failover Cluster Manager for groups that do not belong to the database groups.
1. Start the Failover Cluster Manager with Start Administrative Tools Failover Cluster Manager .
2. In the Failover Cluster Manager, right click the service and application you want to move.
3. Choose Move this service or application to another node Move to <relevant node> .
4. Repeat the previous step for each service and application that you want to move.
NOTE
You can only move disks that are assigned to Services and Applications.
The disks that are added to the cluster are automatically added to a group named Available
Storage. Although the groups Available Storage and Cluster Group exist in an MSCS cluster on Windows
Server 2008 (R2), they are not visible under Services and Applications. Therefore you cannot move
these groups with the Failover Cluster Manager.
■ To move Cluster Group, open a command prompt and enter:
cluster group “cluster group” /move
■ To move Available Storage, open a command prompt and enter:
cluster group “Available Storage” /move
Moving Groups with the Fail Safe Manager
Use the Fail Safe Manager to move the Oracle resources, for example, the database group
Oracle<DBSID>:
1. Start the Fail Safe Manager 3.4.2 with Start All Programs Oracle <Home_Name_fail safe> Oracle Fail
Safe Manager
2. On the left-hand pane, select the group you want to move.
3. Press the right mouse button and click Move to a Different Node on the context menu.
The group is now moved to another cluster node.
6.7 Starting and Stopping the SAP System
This section describes how to start or stop an SAP system in a:
■ Standard Configuration
■ Microsoft Cluster Service (MSCS) Configuration
Procedure
Starting and Stopping the SAP System in a Standard Configuration
For a standard configuration, you use the SAP Microsoft Management Console (SAP MMC) to start or stop
your SAP system. With a newly installed MMC you can start or stop installed SAP instances locally on
the host that you are logged on to. If the MMC is configured for central system administration, you
can start the entire system from a single host. To stop the system, you first have to stop all dialog
6 Common Administration Tasks
6.7 Starting and Stopping the SAP System
2011-05-17 PUBLIC 45/54
instances before you can stop the other instances. For more information on the start or stop order of
an SAP system, see SAP Note 897933.
NOTE
When you boot the Windows operating system in a standard configuration, the SAP Service
SAP<SAPSID>_<Instance_number> (for example SAPPRD_00) is always started automatically.
Perform the following steps:
1. Start the SAP MMC on the SAP system host by choosing Start All Programs SAP Management
Console.
2. Right-click the SAP system node and choose Start or Stop.
All instances listed under the system node, will start or stop in the correct order.
3. If the SAP system is installed on multiple hosts (distributed system), you have the following options
to start or stop your system:
■ You start or stop the SAP instances using the SAP MMC on each host.
■ You add the remote instances to the MMC configuration to start or stop all instances from a
single MMC.
To do so, do one of the following:
● You configure the SAP MMC manually. For more information, see Changing the Configuration
of the MMC in the MMC documentation.
● You use the automatic LDAP registration. For more information, see Configuring MMC
for Active Directory Service in the MMC documentation.
Starting and Stopping the SAP System in an MSCS Configuration
If you use MSCS, you start or stop your SAP system with one of the following tools:
Tool Description
Oracle Fail Safe Manager You use the Oracle Fail Safe Manager to start or stop the database instance.To start or stop the database instance in the Oracle Fail Safe Manager, right-click the database <DBSID>.world in the Fail Safe group ORACLE<DBSID> and choose Place online or Take offline.
SAP Microsoft Management Console (SAP MMC)
To start or stop your SAP system with the SAP MMC, see above.
Cluster Administrator (Windows Server 2003)
NOTE
With the Cluster Administrator you can only start or stop clustered instances such as the (A)SCS instance. For all other non-clustered instances, such as dialog instances or the central instance, you must use the SAP MMC (see above).
To start or stop the clustered instance of the SAP system with the Cluster Administrator (Windows Server 2003), open the Cluster Administrator and set the SAP cluster resource in the SAP cluster group online or offline.
Failover Cluster Manager (Windows Server 2008 (R2))
NOTE
With the Failover Cluster Manager you can only start or stop clustered instances such as the (A)SCS instance. For all other non-clustered instances, such as dialog instances or the central instance, you must use the SAP MMC (see above).
To start or stop the clustered instance of the SAP system with the Failover Cluster Manager (Windows Server 2008 (R2)), select the relevant service and application SAP <SAPSID>.In the right-hand pane, under Other Resources, right-click the resource SAP <SAPSID> <instance_no> Instance and choose Bring this resource online or Take this resource offline.
6 Common Administration Tasks
6.7 Starting and Stopping the SAP System
2011-05-17 PUBLIC 47/54
This page is left blank for documents that are printed on both sides.
A Appendix
A.1 Using Powershell
As of the Oracle 11.2 upgrade, SAP uses the Windows Powershell script. Windows Powershell is a
powerful tool integrated in the Windows operating system. It uses object- oriented methodology, which
allows fast and stable script development.
In this upgrade procedure, the use of Windows Powershell is optional, although it saves you some
manual upgrade steps.
For more information about the Windows Powershell, see:
No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice.Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors.
Microsoft, Windows, Excel, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation.IBM, DB2, DB2 Universal Database, System i, System i5, System p, System p5, System x, System z, System z10, System z9, z10, z9, iSeries, pSeries, xSeries, zSeries, eServer, z/VM, z/OS, i5/OS, S/390, OS/390, OS/400, AS/400, S/390 Parallel Enterprise Server, PowerVM, Power Architecture, POWER6+, POWER6, POWER5+, POWER5, POWER, OpenPower, PowerPC, BatchPipes, BladeCenter, System Storage, GPFS, HACMP, RETAIN, DB2 Connect, RACF, Redbooks, OS/2, Parallel Sysplex, MVS/ESA, AIX, Intelligent Miner, WebSphere, Netfinity, Tivoli and Informix are trademarks or registered trademarks of IBM Corporation.Linux is the registered trademark of Linus Torvalds in the U.S. and other countries.Adobe, the Adobe logo, Acrobat, PostScript, and Reader are either trademarks or registered trademarks of Adobe Systems Incorporated in the United States and/or other countries.Oracle is a registered trademark of Oracle Corporation.UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group.Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc.HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C®, World Wide Web Consortium, Massachusetts Institute of Technology.Java is a registered trademark of Sun Microsystems, Inc.JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape.SAP, R/3, SAP NetWeaver, Duet, PartnerEdge, ByDesign, SAP BusinessObjects Explorer, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and other countries.Business Objects and the Business Objects logo, BusinessObjects, Crystal Reports, Crystal Decisions, Web Intelligence, Xcelsius, and other Business Objects products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of Business Objects Software Ltd. in the United States and in other countries.Sybase and Adaptive Server, iAnywhere, Sybase 365, SQL Anywhere, and other Sybase products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of Sybase, Inc. Sybase is an SAP company.All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies (“SAP Group”) for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.
DisclaimerSome components of this product are based on Java™. Any code change in these components may cause unpredictable and severe malfunctions and is therefore expressly prohibited, as is any decompilation of these components.Any Java™ Source Code delivered with this product is only to be used by SAP’s Support Services and may not be modified or altered in any way.
52/54 PUBLIC 2011-05-17
Documentation in the SAP Service MarketplaceYou can find this document at the following address: http://service.sap.com/instguides