SQLPlus solve Chinese charactor error

First of all, run the sqlplus.

1. open cmd and input follow script (*Setup charactor to make the chinese script is correct.)

--setup charactor(DOS)(UTF8)
echo %NLS_LANG%
set NLS_LANG=AMERICAN_AMERICA.UTF8

2. input "sqlplus".

3. input database information:"app_dev/app_devpwd@o1234g"

4. use follow commond to run sql list: "@@D:\dbscript\script_list.sql"

5. The "script_list.sql" should be:

whenever oserror exit rollback
whenever sqlerror exit rollback
set define off
set feedback on
set echo on
SET TERMOUT on

spool upgrade_script_.log
----------------------------------------------------

@@APP/PUB/201101121752_dml_1.sql
commit;
@@APP/PUB/201102021541_dml_2.sql
commit;

----------------DBScript Execute Success------------
spool off

quit

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值