亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 4030 | 回復: 3
打印 上一主題 下一主題

sybase12。5 不能增加段,不能把用戶加到public里面 [復制鏈接]

論壇徽章:
0
跳轉到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2007-07-10 09:47 |只看該作者 |倒序瀏覽
use MCPDB
go
sp_addsegment seg_mcpdata,MCPDB,mcpdata1
go--執(zhí)行成功
sp_addsegment seg_mcplog,MCPDB,mcplog1
go --錯誤
報告如下錯誤:
1> use MCPDB
2> go
1> sp_addsegment seg_mcplog,MCPDB,mcplog1
2> go
Msg 17283, Level 16, State 1:
Server 'SYBASE', Procedure 'sp_addsegment', Line 139:
'mcplog1' is reserved exclusively as a log device.
(return status = 1)
1>

不能在pulic用戶組下面增加用戶:錯誤如下:
1> use MCPDB
2> go
1> sp_dropgroup public
2> go
Msg 156, Level 15, State 1:
Server 'SYBASE', Line 1:
Incorrect syntax near the keyword 'public'.
1> sp_addgroup public
go2>
Msg 156, Level 15, State 1:
Server 'SYBASE', Line 1:
Incorrect syntax near the keyword 'public'.
1> use MCPDB
2> go
1> sp_dropuser mcpuser
2> go
Msg 17232, Level 16, State 1:
Server 'SYBASE', Procedure 'sp_dropuser', Line 156:
No user with the specified name exists in the current database.
(return status = 1)
1> sp_adduser  mcpuser,mcpuser,public
2> go
Msg 156, Level 15, State 1:
Server 'SYBASE', Line 1:
Incorrect syntax near the keyword 'public'.

謝謝各位,幫忙看看、

論壇徽章:
0
2 [報告]
發(fā)表于 2007-07-10 10:09 |只看該作者
原帖由 whiterain 于 2007-7-10 09:47 發(fā)表
use MCPDB
go
sp_addsegment seg_mcpdata,MCPDB,mcpdata1
go--執(zhí)行成功
sp_addsegment seg_mcplog,MCPDB,mcplog1
go --錯誤
報告如下錯誤:
1> use MCPDB
2> go
1> sp_addsegment seg_mcplog,MCPD ...


A1
1> create database a on a='10M' log on b='10M'
2> go
CREATE DATABASE: allocating 2560 logical pages (10.0 megabytes) on disk 'a'.
CREATE DATABASE: allocating 2560 logical pages (10.0 megabytes) on disk 'b'.
1> alter database a log on c='10M'
2> go
Extending database by 2560 pages (10.0 megabytes) on disk c
Warning: Using ALTER DATABASE to extend the log segment will cause user thresholds on the log segment within 128 pages of
the last chance threshold to be disabled.
1> use a
2> go
1> sp_addsegment c,a,c
2> go
Msg 17283, Level 16, State 1:
Server 'DB01', Procedure 'sp_addsegment', Line 149: 'c' is reserved exclusively as a log device.


A2
1> sp_helpuser
2> go
Users_name        ID_in_db    Group_name        Login_name
----------------- ----------- ----------------- -----------------
dbo                         1 public            sa
(return status = 0)
1> sp_addlogin test_user,'123456',a
2> go
Password correctly set.
Account unlocked.
New login created.
(return status = 0)
1> sp_adduser test_user
2> go
New user added.
(return status = 0)
1> sp_helpuser
2> go
Users_name        ID_in_db    Group_name        Login_name
----------------- ----------- ----------------- -----------------
dbo                         1 public            sa
test_user                   3 public            test_user

1> sp_dropuser public
2> go
1> sp_adduser test_user,test_user,public
2> go
Msg 156, Level 15, State 2:
Server 'DB01', Line 1:Incorrect syntax near the keyword 'public'.
1> sp_adduser test_user,test_user,'public'
2> go
New user added.
(return status = 0)

論壇徽章:
0
3 [報告]
發(fā)表于 2007-07-10 12:40 |只看該作者
1.日志設備已由日志段(logsegment)獨占,用戶段自然就建不上去了,日志段只存放syslogs

2.每個用戶自動屬于"public"組,"public"組不是用戶創(chuàng)建的,自動存在.

3.看看ASE系統(tǒng)管理手冊,都有介紹

論壇徽章:
0
4 [報告]
發(fā)表于 2007-07-10 13:39 |只看該作者
謝謝,已經搞定了
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復

  

北京盛拓優(yōu)訊信息技術有限公司. 版權所有 京ICP備16024965號-6 北京市公安局海淀分局網監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關心和支持過ChinaUnix的朋友們 轉載本站內容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP