- Oracle Time Zone Definitions の確認
$ sqlplus / as sysdba
SQL> select version from v$timezone_file;
VERSION
----------
4 ← 「4」であればOK
SQL> shutdown immediate
$ mkdir -p ~/db_backup/before_psr11107
$ tar cvf ~/db_backup/before_psr11107/ORACLE_HOME.tar $ORACLE_HOME
$ gzip ORACLE_HOME.tar
$ mkdir -p ~/db_backup/orcl_initial
$ tar cvf ~/db_backup/orcl_initial/oradata.tar $ORACLE_BASE/oradata/orcl/*
$ gzip oradata.tar
db01 being added to access control list
- パッチを適用する
- vncクライアントを使ってdb01に接続する。
server: db01:1
$ su - oracle
$ bash
$ cd ~/software
$ unzip p6890831_111070_SOLARIS64.zip
$ cd Disk1
$ export DISPLAY=db01:1.0
$ export LANG=C
$ export NLS_LANG=American_America.JA16EUC
$ cd Disk1
$ ./runInstaller
- インストーラに下記の通り入力する。
- Name: OraDb11g_home1
- Path: /export/home/oracle/app/oracle/product/11.1.0/db_1
- Email: 入力しない
- I wish to receive security updates via MetaLink: チェックしない
- MetaLink Password: 入力しない
- Email Address Not Specified: Yes
Enter the full pathname of the local bin directory: [/usr/local/bin]:
The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y
Copying dbhome to /usr/local/bin ...
The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y
Copying oraenv to /usr/local/bin ...
The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y
Copying coraenv to /usr/local/bin ...
- Pre-Upgrade Information Tool を実行する。
$sqlplus / as sysdba
SQL> startup upgrade
SQL> spool upgrade_info.log
SQL> @?/rdbms/admin/utlu111i.sql
SQL> spool off
SQL> shutdown immediate
SQL> exit
$ less upgrade_info.log
$ lsnrctl start
$ sqlplus / as sysdba
SQL> startup upgrade
SQL> spool patch.log
SQL> @?/rdbms/admin/catupgrd.sql
SQL> spool off
SQL> shutdown immediate
SQL> exit
$ grep ORA- patch.log
$ sqlplus / as sydba
SQL> startup
SQL> spool compile.log
SQL> @?/rdbms/admin/utlrp.sql
SQL> spool off
SQL> SELECT COMP_NAME, VERSION, STATUS FROM SYS.DBA_REGISTRY;
$ emca -upgrade db