I work on Oracle SQL Developer and looking for a script for which the input will be - $1 - String to be searched $2 - String to be replaced with The script will find for $1 in all TABLE/VIEWS/FUNCTIONS/PACKAGES, etc. and will replace with $2 from the entire database of a particular schema. The output should be the count of replacements.
Guidance is highly appreciated.
If you want to change the table data containing certain string in any column then it could be done using dynamic sql and pl/sql. It is quite risky action, though. You realy should at least be sure to target tables to those that such an action would not compromise accidentaly. Here is a rough sample of an option to do it (with some test data).
TEST Tables:
PL/SQL Block
TEST Tables - Before and After