Hi ,
I have a huge file with a lot of oracle statements. In there is there a way to do the following
When I come across the text "_OLD_FK" like below lines
ALTER TABLE TEST$AB DROP CONSTRAINT TEST_OLD_FK
/
I need to add another set of lines with the _OLD_FK replaced with _NEW_FK
so the resultant file should have lines as below
ALTER TABLE TEST$AB DROP CONSTRAINT TEST_OLD_FK
/
ALTER TABLE TEST$AB DROP CONSTRAINT TEST_NEW_FK
/
Any ideas folks...
Thanks in advance.....
I have a huge file with a lot of oracle statements. In there is there a way to do the following
When I come across the text "_OLD_FK" like below lines
ALTER TABLE TEST$AB DROP CONSTRAINT TEST_OLD_FK
/
I need to add another set of lines with the _OLD_FK replaced with _NEW_FK
so the resultant file should have lines as below
ALTER TABLE TEST$AB DROP CONSTRAINT TEST_OLD_FK
/
ALTER TABLE TEST$AB DROP CONSTRAINT TEST_NEW_FK
/
Any ideas folks...
Thanks in advance.....