Professional Documents
Culture Documents
2 Database
1| P a g e
The resultant database will be standalone, i.e. not part of a cluster or failover
configuration.
All references to SID should be replaced with correct database name as derived
using a suitable database naming standard.
Useful Information
This section outlines useful information and changes to previous 10g documentation
found on this site. Some have been made for cosmetic reasons, others for more practical
considerations.
File Systems
/--- /var --- /opt --- /oracle
|
--- /u01 --- /app --- /oracle --- /software
|
--- /sql
--- /diag
2| P a g e
--- /admin
|
|
--- /create
--- /exp
| (link to /u09)
|
|
--- /parfile
--- /pfile
|
|
--- /u02 --- /oradata --- /SID --- /redo --- /d1
|
|
--- /u03 --- /oradata --- /SID --- /indx --- /d1
|
|
--- /u04 --- /oradata --- /SID --- /undo --- /d1
|
--- /u05 --- /oradata --- /SID --- /temp --- /d1
|
--- /u06 --- /oradata --- /SID --- /arch --- /d1
|
--- /u07 --- /oradata --- /SID --- /data --- /d1
|
--- /u08 --- /oradata --- /SID --- /index --- /d1
|
--- /u09 --- /oradata --- /SID --- /exp --- /d1
|
3| P a g e
--- /u10 --- /oradata --- /SID --- /flash --- /d1
A new init.ora parameter called diag_dest has been set and maps to
the diag directory in the new directory structure mentioned above.
There are a number of new maintenance jobs in 11g. These can be turned off as
part of this step-by-step guide.
Known Issue:
ERROR ORA-06550
DURING
UPGRADE.
cd /u01/app/oracle/SOFTWARE/DATABASE_11G
unzip solaris.sparc64_11gR2_database_1of2.zip
unzip solaris.sparc64_11gR2_database_2of2.zip
unset ORACLE_HOME
unset TNS_ADMIN
4| P a g e
5. Start x-server.
6. Start the installer.
cd /u01/app/oracle/SOFTWARE/DATABASE_11G/database
export DISPLAY= Enter Your IP Address
./runInstaller
. oraenv
ORACLE_SID = [oracle] ? SID
SQL> @?/rdbms/admin/utlrp
10. Download the Latest Upgrade Check Script from Metalink article 884522.1
11. Perform an upgrade check on the exiting 10g database.
. oraenv
ORACLE_SID = [oracle] ? SID
SQL> startup
SQL> @/u01/app/oracle/product/11.2.0/dbhome_1/rdbms/admin/utlu112
i.sql
5| P a g e
. oraenv
ORACLE_SID = [oracle] ? SID
lsnrctl start
cd /u01/app/oracle/product/11.2.0/dbhome_1/bin
export DISPLAY= Enter Your IP Address
dbua
15. Follow the instructions as demonstrated in the Example Upgrade section below.
16. Update the Oracle .profile
cd /u01/app/oracle/admin/SID
mkdir pfile
mkdir audit
. oraenv
ORACLE_SID = [oracle] ? SID
lsnrctl stop
lsnrctl start
. oraenv
ORACLE_SID = [oracle] ? SID
shutdown immediate
quit
cd /u01/app/oracle/admin/SID/pfile
mv initSID.ora initSID.POST_UPGRADE
6| P a g e
cd $ORACLE_HOME/dbs
rm spfileSID.ora
rm initSID.ora
ln -s /u01/app/oracle/admin/SID/pfile/initSID.ora
startup
shutdown immediate
quit
cd $ORACLE_HOME/dbs
rm initSID.ord
ln -s /u01/app/oracle/admin/SID/pfile/spfileSID.ora
cd /u01/app/oracle/admin/SID/pfile
rm initSID.ora
startup
quit
rm -rf OLD_ORACLE_HOME
lsnrctl status
. oraenv
ORACLE_SID = [oracle] ? SID
7| P a g e
. oraenv
ORACLE_SID = [oracle] ? SID
NB For 11.2.0.1, the latest version is 11. For 11.2.0.2 the latest
version is 14.
. oraenv
ORACLE_SID = [oracle] ? SID
25. Clear out the DST upgrade logging tables prior to checkinng for affected data
. oraenv
ORACLE_SID = [oracle] ? SID
8| P a g e
26. Check for data that may be affected by the DST update
. oraenv
ORACLE_SID = [oracle] ? SID
NB This will show type errors that occured in the rows reported in
dst$affected_tables.
. oraenv
ORACLE_SID = [oracle] ? SID
. oraenv
ORACLE_SID = [oracle] ? SID
9| P a g e
SQL> startup
sqlplus /nolog
SQL> connect sys as sysdba
SQL> BEGIN
10| P a g e
SQL> END;
SQL> /
sqlplus /nolog
SQL> connect sys as sysdba
Example Install
11| P a g e
Un-tick the I wish to receive security updates via My Oracle Support box.
Click Next.
12| P a g e
13| P a g e
14| P a g e
15| P a g e
16| P a g e
Click Next.
17| P a g e
Click Next
18| P a g e
Click Next
Note: The installer may report a failed check on OS Patch 124861-15. Its possible that
this failed check can be ignored. Review Metalink document 969497.1
19| P a g e
Click Finish
20| P a g e
21| P a g e
Click Close.
Example Upgrade
Click Next.
22| P a g e
23| P a g e
24| P a g e
NB You should backup the database prior to this step using the normal
backup method.
Click Next.
25| P a g e
26| P a g e
Click Next.
27| P a g e
28| P a g e
Click Ignore.
NOTE - Review the Known Issues section below regarding this error message.
29| P a g e
30| P a g e
File Listings
Oracle .profile
#---------------------------------------------------------------------# Configure Terminal Settings.
#---------------------------------------------------------------------stty susp ^Z
stty quit ^C
stty erase ^?
export TERM=vt100-w
export ORACLE_TERM=vt100
#---------------------------------------------------------------------# Configure Shell Settings.
#---------------------------------------------------------------------set -o vi
export PATH=/bin:/usr/sbin:/usr/bin:/usr/local/bin:$PATH
export EDITOR=vi
export HOSTNAME=`hostname`
export PS1='$LOGNAME@$HOSTNAME:$ORACLE_SID> '
export TMPDIR=/tmp
export TEMP=/tmp
umask 022
#---------------------------------------------------------------------# Configure Aliases.
#---------------------------------------------------------------------Alias ll="ls -la"
alias bdf="df -k"
#---------------------------------------------------------------------# Configure Oracle Settings.
#---------------------------------------------------------------------Export ORACLE_BASE=/u01/app/oracle
Export SQLPATH=$ORACLE_BASE/scripts/dba/sql
Export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1
Export TNS_ADMIN=$ORACLE_HOME/network/admin
Export ORACLE_HOME_LISTNER=$ORACLE_BASE/product/11.2.0/dbhome_1
Export PATH=$ORACLE_HOME/bin:$PATH
Export ORATAB=/var/opt/oracle/oratab
oratab
SID:/u01/app/oracle/product/11.2.0/dbhome_1:Y
listener.ora
31| P a g e
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = <SID>)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
(SID_NAME = <SID>)
)
)
LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = <hostname>)(PORT = 1521))
)
ADR_BASE_LISTENER = /u01/app/oracle
initSID.ora
###########################################
# Cache and I/O
###########################################
db_block_size=8192
memory_target=1606418432
db_block_checking=MEDIUM
db_block_checksum='FULL'
###########################################
# Cursors and Library Cache
###########################################
open_cursors=500
###########################################
# Database Identification
###########################################
Compatible='11.2.0.0.0'
db_name='SID'
###########################################
# Diagnostics and Statistics
###########################################
diagnostic_dest='/u01/app/oracle'
###########################################
# File Configuration
###########################################
control_files='+DATA/SID/control01.ctl',
'+DATA/SID/control02.ctl',
'+DATA/SID/control03.ctl'
###########################################
# Processes
###########################################
Processes=1000
###########################################
# System Managed Undo and Rollback Segments
###########################################
32| P a g e
undo_tablespace='UNDO'
###########################################
# Security and Auditing
###########################################
audit_trail='db'
remote_login_passwordfile='EXCLUSIVE'
###########################################
# Enabling Archivelog mode
###########################################
log_archive_dest='+FRA/SID/arch/d1'
log_archive_format=arch_%t_%s_%r.log
###########################################
# Defer Segment Creation
###########################################
deferred_segment_creation=FALSE