I have a requirement where I have to update data type of a column (col_1) from number (38,0) to Varchar2(64). This column is also a part of primary key which is composite.
I am achieving this objective by
1) Adding a new column col_2 of data type varchar2(64)
2) populating data for col_2 with existing column col_1 [UPDATE TABLE_1 SET col_2 = col_1]
3) dropping primary key (this drops index created on pkey)
4) dropping column col_1
5) renaming the new column to col_1 [ALTER TABLE TABLE_1 COLUMN col_2 to col_1]
6) creating primary key (this creates index on pkey)
7) Gather stats on Table
After performing above steps SUCCESSFULLY, I am running my regular Informatica job which performs update/insert on the table. That job is taking way longer and not completing. Insert/Update is part of informatica workflow and I can see the no. of rows is being increased in Target statistics under session properties but it is updating approximately 500 rows per hour.
Is there something I am missing as part of my steps. Do I need to explicitly rebuild the index or gather index. I have checked the LAST_ANALYZED date for Index and Tables and both are updated. The Query plan is also looking same as before.
Oracle version - Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
Please help in with your suggestions.
Many Thanks
Keerti