Job Seekers   Employers
dbapool: Authors | Submissions | Contact Us
   Forgot password? | Sign up
  Home   Discussion Forum   Articles   Interview Questions   FAQs   Scripts   Rewards   Analyzer   White Papers   Blog   Certification   Downloads   Tools
 

Topic: Database Administration >> error during upgarde from 9.2.0.7 to 9.2.0.8

Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property. You may review the entire Oracle Certification Program Candidate Agreement online Here.



  


 Title: error during upgarde from 9.2.0.7 to 9.2.0.8
 sumi  Posted: Nov 18, 2007 01:12:33 AM

 Total Post: 8
 Joined: Feb, 2007






 Hi All,

I am upgarding our DB from 9.2.0.7 -9.2.0.8 in UNIX .When I run the catpatch.sql script, I get the following errors.
ORA-22319: type attribute information altered in ALTER TYPE

How can I rectify this error.
Please advice.

 Babu
Posted: Nov 18, 2007 05:40:00 AM  

 Total Post: 90
 Joined: Oct, 2007






 
ORA-22319: type attribute information altered in ALTER TYPE

Cause: The type attribute information does not match that of the original type declaration when altering type. Attributes cannot be altered during ALTER TYPE. Only new methods can be added.

Action: Check that all type alterations are legal.

 sumi
Posted: Nov 19, 2007 01:08:08 AM  

 Total Post: 8
 Joined: Feb, 2007






 

Hi,

Can you please advice me where to go and corrcet this error?



 Babu
Posted: Nov 19, 2007 03:24:18 AM  

 Total Post: 90
 Joined: Oct, 2007






 
For example, assume that the following is used to create an object
type and an object table:

create or replace type address as object (city varchar2(10), state char(2));
/

create table address_tab of address;
insert into address_tab values ('Orlando', 'FL');
insert into address_tab values ('Boston', 'MA');

You then attempt to change the attribute definition of 'city'
from varchar2(10) to varchar2(20) using 'alter type' as shown below:

alter type address replace as object (city varchar2(20), state char(2));

The error occurs after issuing this command.


Additional Search Words
-----------------------

ORA 22319

Solution Description
--------------------

The attributes definition cannot be changed using 'alter type'.
The feature to change the definition of attributes is not yet
implemented.

To workaround the problem, drop the type. When trying to drop the
type with table dependencies, however, you receive the following
error:

ORA-02303: cannot drop or replace a type with type or table dependents

For example:

SQL> drop type address;
drop type address
*
ERROR at line 1:
ORA-02303: cannot drop or replace a type with type or table dependents

In this case, issue the following command:

SQL> drop type address force;

Type dropped.

The dependent tables become invalid after the type is dropped:



 Time Zone: EDT

  




Forum Rules & Description


Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user




 








Get FREE Magazines

Top 10 Forum User

  Murtuja Khokhar814
  Mohammed Taj694
  Jayanta Sur479
  Vigyan Kaushik386
  positive fanatic361
  Gitesh Trivedi322
  Gopu Gopi239
  neeraj sharma228
  Ramesh Jois226
  snehalatha p169






oracle Mag



  About Us Advertise Terms of Use Privacy Newsletters Contact Us    

Home   Discussion Forum   FAQs  Articles  Jobs   Newsletters  Directory  Downloads 

Our Premium Sponsor
Confio Software