免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2407 | 回复: 6
打印 上一主题 下一主题

求助,用户信息移植问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-12-16 10:04 |只看该作者 |倒序浏览
要做同平台的sybase数据库移植,建应用库和导数据已完成。只剩下用户表sysusers和登陆名信息syslogins里的内容需要转移。
我用bcp的方式,不能成功。
$ bcp master..syslogins in syslogins.bcp -Usa -P -SSYBASE -c
Server Message: SYBASE - Msg 10321, Level 14, State 1:
Ad-hoc updates to system catalogs not enabled. A user with System Security Offic
er (SSO) role must reconfigure system to allow this.

CTLIB Message:  - L0/O0/S0/N0/0/0:
blk_init(): blk layer: CT library error: Failed when CT_Lib routine ct_results()
called.
blk_init failed.

请问,各位大虾该怎么做?

论坛徽章:
1
2017金鸡报晓
日期:2017-01-10 15:19:56
2 [报告]
发表于 2004-12-16 13:45 |只看该作者

求助,用户信息移植问题

sp_configure "allow update "看一下,是否允许修改系统表?

论坛徽章:
0
3 [报告]
发表于 2004-12-16 16:45 |只看该作者

求助,用户信息移植问题

谢谢,我将该参数设置为1后,在执行报如下错误:
$ bcp master..syslogins in syslogins.bcp -Usa -P -SHP112 -c

Starting copy...
CSLIB Message:  - L0/O0/S0/N24/1/0:
cs_convert: cslib user api layer: common library error: The conversion/operation
was stopped due to a syntax error in the source field.
CSLIB Message:  - L0/O0/S0/N24/1/0:
cs_convert: cslib user api layer: common library error: The conversion/operation
was stopped due to a syntax error in the source field.
CSLIB Message:  - L0/O0/S0/N24/1/0:
cs_convert: cslib user api layer: common library error: The conversion/operation
was stopped due to a syntax error in the source field.
CSLIB Message:  - L0/O0/S0/N24/1/0:
cs_convert: cslib user api layer: common library error: The conversion/operation
was stopped due to a syntax error in the source field.
CSLIB Message:  - L0/O0/S0/N24/1/0:
cs_convert: cslib user api layer: common library error: The conversion/operation
was stopped due to a syntax error in the source field.
CSLIB Message:  - L0/O0/S0/N24/1/0:
cs_convert: cslib user api layer: common library error: The conversion/operation
was stopped due to a syntax error in the source field.
CSLIB Message:  - L0/O0/S0/N24/1/0:
cs_convert: cslib user api layer: common library error: The conversion/operation
was stopped due to a syntax error in the source field.
Unexpected EOF encountered in BCP data-file.
Unexpected EOF encountered in BCP data-file.
bcp copy in failed

怎么办?

论坛徽章:
0
4 [报告]
发表于 2004-12-20 08:57 |只看该作者

求助,用户信息移植问题

关键是很多用户的密码都不知道是多少,所以想采用bcp方式。

望高手指点,谢谢!

论坛徽章:
0
5 [报告]
发表于 2004-12-20 12:39 |只看该作者

求助,用户信息移植问题

不用这么麻烦的吧,按照原先master的设备建一个新的master,在单用户模式下load database master就可以了
我以前做过,重新load之后所有的login都在,但user要重新建立,另外就是先移植master,再移植应用DB

论坛徽章:
0
6 [报告]
发表于 2004-12-21 09:22 |只看该作者

求助,用户信息移植问题

原帖由 "jasonshan" 发表:
不用这么麻烦的吧,按照原先master的设备建一个新的master,在单用户模式下load database master就可以了
我以前做过,重新load之后所有的login都在,但user要重新建立,另外就是先移植master,再移植应用DB


“按照原先master的设备建一个新的master”,这一点能不能说的详细一些?谢谢

论坛徽章:
0
7 [报告]
发表于 2004-12-21 09:35 |只看该作者

求助,用户信息移植问题

先检查一下原来master设备的大小,按照原先的大小用buildmaster重建master设备
buildmaster -d设备路径及名称 -s设备大小(2K单位)
启动单用户模式
startserver -m -f启动文件名
如果没有启动备份服务器的话,启动备份服务
装入master的备份
load database master from '备份文件'
go
装入成功后ASE会自动停止运行,重新启动成功后在建立用户设备和数据库即可
ps.其实上述过程就是重新建立一个新的ASE服务,只是在建立时要保证master设备的大小和原来的一致,因为建立完成后要做load
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP