Вы находитесь на странице: 1из 4

Oracle upgrade

By: shobha kumari | 14 Feb 2012 7:27 am | 1151 times viewed | 0 Comments

Oracle upgrade
1. Set NLS_LANG

select * from v$nls_parameters where parameter like 'NLS_CHAR%'; If NLS_CHARACTERSET has the value WE8DEC, set NLS_LANG to AMERICAN_AMERICA.WE8DEC If NLS_CHARACTERSET has the value US7ASCII, set the variable NLS_LANG to AMERICAN_AMERICA.US7ASCII
2. Installation of 9i

Run sapserver.cmd
For Path Enter the path of a new Oracle Home directory. We recommend that you use the path: :ORACLE, for example, C:ORACLEC11920

Take typical configuration and finish installation Starting Oracle upgrade


Before you can upgrade the database with the Database Upgrade Assistant, you have to perform the following tasks. 1. In the environment of the user adm, delete the variables listed below. ORACLE_HOME TNS_ADMIN (if it exists) 2. Edit init.ora and set JOB_QUEUE_PROCESSES = 0. 3. Log off and log on again to activate the changes to the Windows environment. 1. Stop the SAP system. 2. Start the Oracle Database Upgrade Assistant from the Start menu with: Start Programs Oracle - Configuration and Migration Tools Database Upgrade Assistant

Screen 1. 2. 3. 4. DUA: Welcome DUA: Select a Database Instance DUA: NCHAR datatypes DUA: SYSTEM tablespace

Input Choose Next Select - and choose Next. Choose Yes

If there is not enough space in the SYSTEM table space, this message appears. Extend the system tablespace and choose Retry without stopping the Database Upgrade Assistant. If you intend to use brtools. exe to extend the system tablespace you will have to start a command prompt and fix the enviroment variable Path in this command prompt using the set commend. Put the binary directory of the old 8.1.7 Oracle Home to the very beginning of the environment variable PATH. Start brtools.exe from within this command box.

5.

DUA: SYSTEM rolback segment

If this message appears, choose continue.

6.

DUA: Backup Your Select I have already backed up my database and choose Next Database Summary Choose Finish to start the upgrade

7.

8.

DUA: Progress

The screen displays the phase of the data upgrade procedure. It takes approximately 15 20 minutes to complete the upgrade. After the upgrade has finished choose OK to see t upgrade results. Checkthe results and any errors. Do not Configure Database Passwords. Do not choose Restore Database Choose Close to close the Databse Upgrade Assistant

9.

DUA: Upgrade Results Window

10. Close

Post-Upgrade Activities
Modifying the Oracle Network Configuration
1. Stop the old Oracle Listener service. 2. Start the Net Manager that guides you through the Network configuration process. Too this, d choose Start Programs Oracle - Configuration and Migration Tools Net Manager The assistant opens. 3. On the Net Manager screen, in the tree on the left, expand Local and select Profile. a. On the right, if necessary, select Naming from the dropdown box and then the tab Oracle Names. In the field Default Domain, enter world Leave the other settings unchanged. b. On the right, select the Methods tab. From the list of Selected Methods remove the entries hostname and onames. 4. In the tree on the left, expand Listeners and select the LISTENER node that appears. a. On the right, select Listening Locations from the dropdown box. Address tabs appear. b. Check all the address tabs. If it exists, on the tab with the port number 2481, the option Dedicate this endpoint to IIOP connections is selected. Delete this address. c. Choose Add Address to open a dialog box for a new address. Enter the port number 1527, if it is free. Note that this is the network configuration of the Listener for the database server. d. In the tree on the left, expand Service Naming and select . Choose Edit Rename. Enter the name .world and choose OK. e. Under Service Naming select .world. On the right, in Address Configuration choose the plus icon to open a dialog box for a new address. Enter the port number 1527 a second time if it is free. Under Service Identification select Use Oracle8 Release 8.0 Compatible Identification. For SID enter . Note that this is the network configuration for the database client. If the option Use Oracle8 Release 8.0 Compatible Identification is not selected, the standalone database is later not visible in the Oracle Fail Safe Manager. 5. From the menu, choose File Save Network Configuration.

6. Exit the Net Manager. 7. Restart the Oracle Listener for Oracle 9.2.0.

Configuration Tasks for SAP systems below 6.40


Procedure
1. Edit the file <NEW_ORACLE_HOME>networkadminsqlnet.ora by inserting the line: tcp.nodelay = true 2. In the directory for 9.2.0, create the subdirectory SAP. From the Oracle RDBMS CD3, copy all the files from the directory :NTI386SAP to the new SAP directory. 3. Copy the init.dba and init.sap file from the old Oracle home to the new Oracle home. The location of the init.* files under the new Oracle Home is: DATABASE 4. The Database Upgrade Assistant switches the profile mechanism to the new SPFILE mechanism, which is not fully supported by SAP at the moment. Therefore we have to revert this step manually: a. Startup the database and run the following commands: sqlplus /nolog sqlplus> connect / as sysdba sqlplus> create pfile from spfile; sqlplus> exit b. Delete the file databaseSPFILE.ora. 5. Edit the init.ora file in DATABASE with the SAPPad editor as follows: a. Choose Options Save As NT TextFile b. Delete *. in front of the parameter names. You can achieve this by replacing *. in the whole document with nothing. c. Make sure that the following parameters point to the correct directory: o background_dump_dest has to point to <drive>:oraclesaptracebackground o core_dump_dest has to point to <drive>:oraclesaptracebackground o user_dump_dest has to point to :oraclesaptraceusertrace d. Search for the parameter compatible and set it from 8.1.7 to 9.2.0. The environment variable saptrace normally points to the directory :oraclesaptrace. If not, %sapdata_home%saptrace points to this directory. Be aware, that you cannot use the names saptrace or sapdata_home as environment variables in the init.ora file. For example you cannot use: user_dump_dest = '%saptrace%usertrace' or '$saptraceusertrace'. 6. Change the parameter values with the Oracle Administration Assistant for Windows NT Windows NT only: The Administration Assistant is not available if you have not installed the MMC. In releases prior to 4.5B, you can change the parameters in the Registry. Both procedures are explained in the following. Changing the Parameters with the Administration Assistant i. Start the Administration Assistant with Start Programs Oracle Configuration and Migration Tools Administration Assistant for Windows NT The Assistant opens.

ii. Choose Oracle Managed Objects Computers Oracle Homes iii. Open the context menu with the right mouse button and choose Properties. iv. In the Properties dialog box, change the entry for ORA__PFILE to: <NEW_ORACLE_HOME>DATABASEinit.ora v. Set the entry for ORA__AUTOSTART to FALSE and confirm with OK. Changing the Parameters in the Registry i. Choose Start Run and then enter regedit. ii. Expand HKEY_LOCAL_MACHINE SOFTWARE ORACLE Where iii. Change the parameters as required. 7. Start the Oracle Services, if not yet started. Set the startup type of OracleService and OracleTNSListener to automatic to ensure that they are automatically restarted after booting.

8. X
9. Start up the database.

10. Unpack BR*Tools as follows:


a. Open a command prompt. b. Switch to the directory: <DRIVE>:USRSAPSYSEXERUN c. To unpack the tools, enter the following command on a single line: SAPsapcar -xvf SAPDBATOOLS.SAR 11. Make sure that the user SAPService is included in the local group ORA__DBA.
- See more at: http://www.saptechies.org/oracle-upgrade/#sthash.R4KWStNX.dpuf

Вам также может понравиться