把
alter database rename global_name to China.test.com.cn;放到一个sql文件中,例如alter.sqla.bat内容改为:
sqlplus test/test@test @alter.sql
alter database rename global_name to China.test.com.cn;放到一个sql文件中,例如alter.sqla.bat内容改为:
sqlplus test/test@test @alter.sql
只要把 test/test 和@test.sql 中间加空格就可以了
分 :)
同意一楼的做法
誰可以幫助解釋一下
"@"的意思
在oracle中好像是取地址用的。
比如sqlplus test/test@oracle是定位连接oracle的哪个实例
和在sqlplus里执行@test.sql是执行指定的脚本。
select *
from iqcreport_h h,iqcreport_d d,
where
h.reportid = d.reportid
and d.prarea (+)= h.prarea這句查詢中的(+)是什麼意思?