oracle long字段迁移
有一张照片表,zp字段为long值。
做了一下操作:
copy from database to database create t1 using select zpid,ryid ,zp from zptable
由于未设置long 长度,所以long长度默认为80
迁移过来数据zp字段为乱码,迁移不成功。
后更改为
set arraysize 1000
set copycommit 1000
set long 100000
copy from database to database create t1 using select zpid,ryid ,zp from zptable
结果copy时报ora-01461错误
上面语句在做实验的时候能成功。
我想能成功是因为实验表中的long字段 来源为 select table_name from user_tables;没有照片字段大。
不知道这个问题大家有没有遇到过。