Академический Документы
Профессиональный Документы
Культура Документы
Contents
INTRODUCTION ........................................................................................ 1
About this Guide ............................................................................................................... 1
Audience ........................................................................................................................... 1
Conventions ...................................................................................................................... 1
Introduction
INTRODUCTION
ABOUT THIS GUIDE
This guide explains how to upgrade your Oracle 9i database software and your CE or Vista database to
Oracle 10g.
AUDIENCE
This guide is intended for Oracle database administrators. Prior experience with Oracle software is not
required but is highly recommended. If you do not have an Oracle database administrator available to
upgrade your database, you can outsource these tasks to Professional Services. Contact your
representative for details.
CONVENTIONS
The following conventions are used in this guide:
<angle_brackets>
EXAMPLE:
bold
Elements that users click in a graphical user interface, such as buttons, icons,
and tabs, are in bold.
EXAMPLE:
code
Click OK.
Introduction
Courier font
E-mail addresses, file names, code within a sentence, and text in the console
are in Courier font.
EXAMPLE:
EXAMPLE:
italic
$ORACLE_HOME
KEYSTROKE
[square_brackets]
PREREQUISITES
Your database server and application server(s) must meet the system requirements described in the
appropriate version of the Installation Guide.
PRE-STEPS
Before you begin the upgrade, do the following:
Perform a system backup of the database server, including the directory that contains the Oracle
software.
On Solaris and Linux, you should also back up /etc/oratab and /etc/oraInst.loc.
Make sure that you have installed Application Pack 1 for Vista 4 or Campus Edition 6 as described in
either the release notes (for an upgrade) or the Installation Guide (for a new installation).
If Oracle is running on Linux, make sure /etc/sysctl.conf contains the following lines:
kernel.sem = 250 32000 100 128
kernel.shmmax = 4294967295
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 262144
net.core.rmem_max = 262144
net.core.wmem_default = 262144
net.core.wmem_max = 262144
IMPORTANT: The kernel.shmmax parameter specifies the maximum shared memory segment size.
The value given here (4294967295, approximately 4 GB) assumes that your database
server machine has 4 GB of physical memory. If you have more than 4 GB, this value
should be adjusted so that it is greater than or equal to half the server's physical
memory. Otherwise, the Oracle installer will issue a warning.
After making these changes, you must either reboot or execute /sbin/sysctl -p as root.
If Oracle is running on Solaris, make sure /etc/system contains the following line:
set noexec_user_stack=1
Check for invalid objects in the database and recompile them if necessary.
necessary to modify the permissions for the connection pool users and wctsupport.
1. Start SQL*Plus and execute the following:
connect / as sysdba
revoke connect from <connection_pool_user>
/
revoke resource from <connection_pool_user>
/
grant create session, alter session to <connection_pool_user>
/
grant create sequence, create synonym, create table, create view,
create procedure, create trigger, create type to <connection_pool_user>
/
grant create cluster, create database link, create operator,
create indextype to <connection_pool_user>
/
grant query rewrite, unlimited tablespace to <connection_pool_user>
/
revoke connect from wctsupport
/
revoke resource from wctsupport
/
grant create session, alter session to wctsupport
/
grant create sequence, create synonym, create table, create view,
create procedure, create trigger, create type to wctsupport
/
grant create cluster, create database link, create operator,
create indextype to wctsupport
/
You may see errors after the revoke statements are executed. They can be ignored.
Windows
From the Windows Start menu, choose Programs->Oracle ORACLE_HOME_NAME->Configuration and Migration Tools->Database
Upgrade Assistant
You may see warnings that the default privileges for the CONNECT role have changed
and that the optimizer statistics are stale. Click Yes to ignore the warnings and
continue the upgrade.
NOTE:
The new SYSAUX tablespace will be used to store Oracle product-specific data that was
previously stored in separate tablespaces, including statspack statistics. For more
information, see the Oracle Database Administrator's Guide for Oracle 10g (available
from Oracle).
10. From the Recompile Invalid Objects screen, make sure Recompile invalid objects at the end of
upgrade and Turn off Archiving, for the duration of upgrade are both selected. Make sure Degrees of
Parallelism is set to 1. Then click Next.
11. From the Backup screen, make sure I have already backed up my database is selected and click Next.
12. From the Management Options screen, make sure Configure the database with Enterprise Manager is
not selected and click Next.
13. In the Summary screen, review the summary information. If you need to make any changes, click
Back to return to the appropriate screen. Otherwise, click Finish. The upgrade begins.
NOTE:
During the upgrade, you may see a warning about a unique key constraint violation on
CTXSYS.DRC$OAT_KEY. This error can be ignored.
14. When the upgrade is complete, the Upgrade Results screen appears. Review the upgrade results. Then
click Close.
Linux/Solaris
%ORACLE_BASE%\admin\<oracle_sid>\adump
Linux/Solaris
$ORACLE_BASE/admin/<oracle_sid>/adump
Linux/Solaris
connect / as sysdba
create pfile='c:\pfile.ora' from spfile;
connect / as sysdba
create pfile='/tmp/pfile.ora' from spfile;
This creates the pfile.ora text file, which contains all the database's initialization parameter
settings.
3. Open pfile.ora in a text editor. Then search for and remove the following initialization
parameters:
*.sessions=<value>
*.log_buffer=<value>
*.log_archive_dest_state_2=<value>
where <oracle_base> is the new Oracle base directory and <oracle_sid> is the Oracle SID of
the upgraded database.
5. Make the following changes:
*.compatible='9.2.0.0.0' -> *.compatible='10.2.0.1.0'
*.log_archive_format='%t_%s.log' to *.log_archive_format='%t_%s_%r.log'
shutdown immediate
connect / as sysdba
create spfile from pfile='c:\pfile.ora';
startup
Linux/Solaris
shutdown immediate
connect / as sysdba
create spfile from pfile='/tmp/pfile.ora';
startup