Hello All,
I have an sql file that was spawned by another parent job. The drop.sql file contains lines like:
DROP TABLESPACE DATA INCLUDING CONTENTS CASCADE CONSTRAINTS;
DROP TABLESPACE HIST INCLUDING CONTENTS CASCADE CONSTRAINTS;
DROP TABLESPACE INDX INCLUDING CONTENTS CASCADE CONSTRAINTS;
DROP TABLESPACE SYSAUX INCLUDING CONTENTS CASCADE CONSTRAINTS;
DROP TABLESPACE SYSTEM INCLUDING CONTENTS CASCADE CONSTRAINTS;
DROP TABLESPACE RRRR INCLUDING CONTENTS CASCADE CONSTRAINTS;
DROP TABLESPACE LLLL INCLUDING CONTENTS CASCADE CONSTRAINTS;
...
...
I will like to delete these lines and save the shell script back:
DROP TABLESPACE SYSAUX INCLUDING CONTENTS CASCADE CONSTRAINTS;
DROP TABLESPACE SYSTEM INCLUDING CONTENTS CASCADE CONSTRAINTS;
Pleas help on how to do this in shell script.
Note this is a work around for me as I have spent 2 days trying to decipher where the lines are generated within the myriads of jobs (21) that are spawned from the parent job.
your help will be appreciated.
Thanks
I have an sql file that was spawned by another parent job. The drop.sql file contains lines like:
DROP TABLESPACE DATA INCLUDING CONTENTS CASCADE CONSTRAINTS;
DROP TABLESPACE HIST INCLUDING CONTENTS CASCADE CONSTRAINTS;
DROP TABLESPACE INDX INCLUDING CONTENTS CASCADE CONSTRAINTS;
DROP TABLESPACE SYSAUX INCLUDING CONTENTS CASCADE CONSTRAINTS;
DROP TABLESPACE SYSTEM INCLUDING CONTENTS CASCADE CONSTRAINTS;
DROP TABLESPACE RRRR INCLUDING CONTENTS CASCADE CONSTRAINTS;
DROP TABLESPACE LLLL INCLUDING CONTENTS CASCADE CONSTRAINTS;
...
...
I will like to delete these lines and save the shell script back:
DROP TABLESPACE SYSAUX INCLUDING CONTENTS CASCADE CONSTRAINTS;
DROP TABLESPACE SYSTEM INCLUDING CONTENTS CASCADE CONSTRAINTS;
Pleas help on how to do this in shell script.
Note this is a work around for me as I have spent 2 days trying to decipher where the lines are generated within the myriads of jobs (21) that are spawned from the parent job.
your help will be appreciated.
Thanks