Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
13Activity
0 of .
Results for:
No results containing your search query
P. 1
Upgrade database to 11g

Upgrade database to 11g

Ratings:

5.0

(6)
|Views: 4,243 |Likes:
Published by abd elaal
THIS DOCUMENT TO HELP PEOPLE WHO NEED TO UPGRADE 9I TO 11G
THIS DOCUMENT TO HELP PEOPLE WHO NEED TO UPGRADE 9I TO 11G

More info:

Published by: abd elaal on Jan 11, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF or read online from Scribd
See more
See less

11/19/2012

 
 
Upgrade from 9.2.0.8 to 11.1.0.6 using 'DBUA'
1 - Install the new oracle 11g home.2- Run the Pre-Upgrade Information Tool.
Using utlu111i.sql that is located in 11g home ORACLE_HOME/RDBMS/admindirectoryAnd connect to 9i sqlplus and run this commandSQL> spool C:\utl.txtSQL> @ORACLE_HOME\rdbms\admin\utlu111i.sqlSQL> spool off And then check the output of this command and configure the warning in this outputreview upgrade guide for more information
3 - Prepare the Database to Be Upgraded
 
Deprecated CONNECT Role
After upgrading to Oracle Database 11g Release 1 (11.1) from Oracle9i Release 2 (9.2)Or Oracle Database 10g Release 1 (10.1), the CONNECT role has only the CREATESESSION privilege; the other privileges number granted to the CONNECT role in earlierreleases are revoked during the upgrade. To identify which users and roles in yourdatabase are granted the CONNECT role, use the following querySELECT grantee FROM dba_role_privsWHERE granted_role = 'CONNECT' andgrantee NOT IN ('SYS', 'OUTLN', 'SYSTEM', 'CTXSYS', 'DBSNMP','LOGSTDBY_ADMINISTRATOR', 'ORDSYS','ORDPLUGINS', 'OEM_MONITOR', 'WKSYS', 'WKPROXY','WK_TEST', 'WKUSER', 'MDSYS', 'LBACSYS', 'DMSYS','WMSYS', 'EXFSYS', 'SYSMAN', 'MDDATA','SI_INFORMTN_SCHEMA', 'XDB', 'ODM');
 
Note.If users or roles require privileges other than CREATE SESSION, then grant the specificrequired privileges prior to upgrading.
TIMESTAMP WITH TIMEZONE Data Type.
The time zone files that are supplied with Oracle Database 11g Release 1 (11.1) haveBeen updated from version v1 to version v4 to reflect changes in transition rules for someTime zone regions.then you must update your time zone from v1 to v4 before the upgrade process. If youupgrade without do that you will see error during upgrade process 'invalid number'.
 
How you can upgrade to v4 timezone
1- Apply patch number 5726045 for configure the utlzuv2.sql utility.2- Apply the patch number 5845928 from the metal ink and review the read meattachment.If you don’t able to apply this patch because your pat chest utility you can make itmanually by read Note: 396387.1
Optimizer Statistics (optional step)
When upgrading to Oracle Database 11g Release 1 (11.1), optimizer statistics areCollected for dictionary tables that lack statistics. This statistics collection can be timeConsuming for databases with a large number of dictionary tablesCollecting Statistics for System Component SchemasSpool gdictGrant analyze any to sys;exec dbms_stats.gather_schema_stats('WMSYS',options=>'GATHER', -estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE, -method_opt => 'FOR ALL COLUMNS SIZE AUTO', cascade => TRUE);exec dbms_stats.gather_schema_stats('MDSYS',options=>'GATHER', -estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE, -
 
method_opt => 'FOR ALL COLUMNS SIZE AUTO', cascade => TRUE);exec dbms_stats.gather_schema_stats('CTXSYS',options=>'GATHER', -estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE, -method_opt => 'FOR ALL COLUMNS SIZE AUTO', cascade => TRUE);exec dbms_stats.gather_schema_stats('XDB',options=>'GATHER', -estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE, -method_opt => 'FOR ALL COLUMNS SIZE AUTO', cascade => TRUE);exec dbms_stats.gather_schema_stats('WKSYS',options=>'GATHER', -estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE, -method_opt => 'FOR ALL COLUMNS SIZE AUTO', cascade => TRUE);exec dbms_stats.gather_schema_stats('SYSTEM',options=>'GATHER', -estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE, -method_opt => 'FOR ALL COLUMNS SIZE AUTO', cascade => TRUE);exec dbms_stats.gather_schema_stats('SYS',options=>'GATHER', -estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE, -method_opt => 'FOR ALL COLUMNS SIZE AUTO', cascade => TRUE);spool off 
Take note of all INVALID objects:
SQL> SELECT UNIQUE object_name, object_type, ownerFROM dba_objects WHERE status='INVALID';Recompile invalid objects in SYS and SYSTEM with ultrp.sql
Run the Oracle Net Configuration Assistant
Remove listener from 9i home and create it in 11g home.You must remove the old listener before creating a new one. If you attempt toCreate a new listener from the new Oracle home first, and use the same name andPort as the old listener, then Oracle Net Configuration Assistant returns an error.

Activity (13)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
Adnan Salam liked this
scolomaay liked this
dbareddy liked this
Stefan Le Breton liked this
ravinder35 liked this
ahmerjamil liked this
ravinder35 liked this
ravinder35 liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->