更新时间:2023-11-08 gmt 08:00

支持与限制的命令-凯发k8国际娱乐官网入口

用户在连接到社区版文档数据库后,需要关注以下支持以及限制的命令。

更多信息,请参见。

如下表所示,“√”表示当前版本支持该命令,“×”表示当前版本不支持该命令。

表1 支持与限制的命令

命令类别

命令名称

3.4

4.0

4.2

备注

aggregates commands

aggregate

-

count

-

distinct

-

group

-

mapreduce

在dds实例关联参数模板中设置参数“security.javascriptenabled”的值为“true”后,可以使用该命令。更多信息,请参见。

geospatial commands

geonear

-

geosearch

-

query and write operation commands

find

-

insert

-

update

-

delete

-

findandmodify

-

getmore

-

getlasterror

-

reseterror

-

getpreverror

-

parallelcollectionscan

-

query plan cache commands

plancachelistfilters

-

plancachesetfilter

-

plancacheclearfilters

-

plancachelistqueryshapes

-

plancachelistplans

-

plancacheclear

-

authentication commands

logout

-

authenticate

-

copydbgetnonce

-

getnonce

-

authschemaupgrade

x

x

x

系统内部命令。

user management commands

createuser

-

updateuser

-

dropuser

-

dropallusersfromdatabase

-

grantrolestouser

-

revokerolesfromuser

-

usersinfo

-

role management commands

invalidateusercache

-

createrole

-

updaterole

-

droprole

-

dropallrolesfromdatabase

-

grantprivilegestorole

-

revokeprivilegesfromrole

-

grantrolestorole

-

revokerolesfromrole

-

rolesinfo

-

replication commands

replsetelect

x

x

x

系统内部命令。

replsetupdateposition

x

x

x

系统内部命令。

appendoplognote

x

x

x

系统内部命令。

replsetfreeze

x

x

x

系统内部命令。

replsetgetstatus

-

replsetinitiate

x

x

x

系统内部命令。

replsetmaintenance

x

x

x

系统内部命令。

replsetreconfig

x

x

x

系统内部命令。

replsetstepdown

x

x

x

系统内部命令。

replsetsyncfrom

x

x

x

系统内部命令。

replsetrequestvotes

x

x

x

系统内部命令。

replsetdeclareelectionwinner

x

x

x

系统内部命令。

resync

x

x

x

系统内部命令。

applyops

x

x

x

系统内部命令。

ismaster

-

replsetgetconfig

x

x

x

系统内部命令。

sharding commands

flushrouterconfig

高危命令。

addshard

x

x

x

越权操作。

addshardtozone

-

balancerstart

-

balancerstatus

-

balancerstop

-

removeshardfromzone

-

updatezonekeyrange

-

cleanuporphaned

x

x

x

高危命令。

checkshardingindex

x

x

x

系统内部命令。

enablesharding

-

listshards

x

x

x

系统内部命令。

removeshard

x

x

x

高危命令。

getshardmap

x

x

x

系统内部命令。

getshardversion

-

mergechunks

-

setshardversion

x

x

x

系统内部命令。

shardcollection

-

shardingstate

x

x

x

系统内部命令。

unsetsharding

x

x

x

系统内部命令。

split

-

splitchunk

-

splitvector

-

movechunk

-

moveprimary

x

-

isdbgrid

-

administration commands

setfeaturecompatibilityversion

-

renamecollection

-

dropdatabase

-

listcollections

-

drop

-

create

-

clone

x

x

x

系统内部命令。

clonecollection

-

clonecollectionascapped

-

converttocapped

-

filemd5

-

createindexes

-

listindexes

-

dropindexes

-

fsync

-

clean

x

x

x

系统内部命令。

connpoolsync

x

x

x

系统内部命令。

connectionstatus

-

compact

x

x

x

高危命令。

collmod

-

reindex

-

setparameter

x

x

x

系统配置命令。

getparameter

-

repairdatabase

x

x

x

高危命令。

repaircursor

x

x

x

系统内部命令。

touch

-

shutdown

x

x

x

高危命令。

logrotate

x

x

x

高危命令。

killop

-

releasefreememory

-

diagnostic commands

availablequeryoptions

-

buildinfo

-

collstats

-

connpoolstats

x

x

x

系统内部命令。

cursorinfo

x

x

x

系统内部命令。

datasize

-

dbhash

x

x

x

系统内部命令。

dbstats

-

diaglogging

x

x

x

系统内部命令。

driveroidtest

x

x

x

系统内部命令。

explain

-

features

-

getcmdlineopts

x

x

x

系统内部命令。

getlog

x

x

x

系统内部命令。

hostinfo

x

x

x

系统内部命令。

isself

x

x

x

系统内部命令。

listcommands

-

listdatabases

-

netstat

x

x

x

系统内部命令。

ping

-

profile

-

serverstatus

-

shardconnpoolstats

x

x

x

系统内部命令。

top

-

validate

x

x

x

系统配置命令。

whatsmyuri

-

internal commands

handshake

x

x

x

系统内部命令。

_recvchunkabort

x

x

x

系统内部命令。

_recvchunkcommit

x

x

x

系统内部命令。

_recvchunkstart

x

x

x

系统内部命令。

_recvchunkstatus

x

x

x

系统内部命令。

_replsetfresh

x

x

x

系统内部命令。

mapreduce.shardedfinish

x

x

x

系统内部命令。

_transfermods

x

x

x

系统内部命令。

replsetheartbeat

x

x

x

系统内部命令。

replsetgetrbid

x

x

x

系统内部命令。

_migrateclone

x

x

x

系统内部命令。

replsetelect

x

x

x

系统内部命令。

writebacksqueued

x

x

x

系统内部命令。

writebacklisten

x

x

x

系统内部命令。

system events auditing commands

logapplicationmessage

x

x

x

系统内部命令。

分享:
网站地图