|
> 分配22个表空间,但这个要改程序里面很多sql 语句
Why do the SQLs need to be changed in this case?
> 建22个数据库实例,分22个同样的用户名,配置不同链接,这个设计程序改动小,但部署基本不可实现;
Why is it not realistic?
By the way, in case you don't know, you can change a string in many files with one single command, e.g. change "hello" to "Hello":
perl -pi -e 's/hello/Hello/g' * #search all files in the current directory and make changes if found
find /path/to/somewhere -exec perl -pi -e 's/hello/Hello/g' * #all files in that path and down
Change -pi to -pibak and ' to " in Windows. |
|