(转)SQL1092N "USER" does not have the authority to perform therequested command -

http://dbaspot.com/forums/db2-udb/203214-sql1092n-user-does-not-have-authority-perform-therequested-command.html

SQL1092N "USER" does not have the authority to perform therequested command - db2-udb

This is a discussion on SQL1092N "USER" does not have the authority to perform therequested command - db2-udb ; Hi all, i have a problem with the authority feature on my machine. It keeps on saying i don't have permission to run "CREATE DATABASE" command in db2cmd. I also having permission issue opening control center. Err : SQL1092N "KONGK" ...


Home > Database Forum > Other Databases > db2-udb > SQL1092N "USER" does not have the authority to perform therequested command

Reply
 
Thread Tools  Display Modes 
  # 1  
Old 08-03-2007, 02:30 AM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,248
Database Administrator is on a distinguished road
Default  SQL1092N "USER" does not have the authority to perform therequested command

Hi all, i have a problem with the authority feature on my machine.

It keeps on saying i don't have permission to run "CREATE DATABASE" command in db2cmd. I also having permission issue opening control center.

Err :

SQL1092N "KONGK" does not have the authority to perform the requested
command.

The following is "get dbm cfg" output :

SYSADM group name (SYSADM_GROUP) = DB2ADMNS
SYSCTRL group name (SYSCTRL_GROUP) =
SYSMAINT group name (SYSMAINT_GROUP) =

I am using domain account login to windows. I have already added domain account kongk into local group DB2ADMNS and it is part of local administrator group.

Please help as i cant find any workaround on this.

Info :

DB2 UDB v8.1 for windows
Platform Windows XP Professional Edition


Can someone please advice what should i do to workaround this issue ?

Thanks in advance.




Reply With Quote
  # 2  
Old 08-03-2007, 07:11 AM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,248
Database Administrator is on a distinguished road
Default  Re: SQL1092N "USER" does not have the authority to perform therequested command

Hi,

If a user logs on to a domain account and tries to access a DB2 database, DB2 goes to a Domain Controller to enumerate groups (including the Administrator's group). You can change this behavior in either of two ways:

1. Set the registry variable DB2_GRP_LOOKUP = local and add the domain accounts (or global groups) to the local Administrators group.
2. Update the database manager configuration file to specify a new group. If you want that group enumerated on the local machine, then you must also set the DB2_GRP_LOOKUP registry variable.

By default in a Windows NT domain environment, only domain users that belong to the Administrators group at the Primary Domain Controller (PDC) have SYSADM authority on an instance. Since DB2 always performs authorization at the machine where the account is defined, adding a domain user to the local Administrators group on the server does not grant the domain user SYSADM authority to the group.

To avoid adding a domain user to the Administrators group at the PDC, you should create a global group and add the users (both domain and local) that you want to grant SYSADM authority. To do this, enter the following commands:

DB2STOP
DB2 UPDATE DBM CFG USING SYSADM_GROUP global_group
DB2START

Reply With Quote
  # 3  
Old 08-03-2007, 11:48 AM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,248
Database Administrator is on a distinguished road
Default  Re: SQL1092N "USER" does not have the authority to perform therequested command

hi elza, thanks a lot !!! it works well now. i can create database and open control center now without any problem.

Here is what i did as per your suggestion :

1. Set the registry variable DB2_GRP_LOOKUP = local and add the domain accounts (or global groups) to the local Administrators group.
- db2set DB2_GRP_LOOKUP=local ?g
2. create new group ?DB2ADMNS?
3. Add both db2admin user and domain user into DB2ADMNS group
4.Update the database manager configuration file to specify a new group.
Db2 update dbm cfg using sysadm_group DB2ADMNS
5. db2stop
6. db2start

Reply With Quote
  # 4  
Old 08-04-2007, 10:32 AM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,248
Database Administrator is on a distinguished road
Default  Re: SQL1092N "USER" does not have the authority to perform the requestedcommand

d9832834@yahoo.com.au wrote:
> hi elza, thanks a lot !!! it works well now. i can create database and open control center now without any problem.
>
> Here is what i did as per your suggestion :
>
> 1. Set the registry variable DB2_GRP_LOOKUP = local and add the domain accounts (or global groups) to the local Administrators group.
> - db2set DB2_GRP_LOOKUP=local ?g
> 2. create new group ?DB2ADMNS?
> 3. Add both db2admin user and domain user into DB2ADMNS group
> 4.Update the database manager configuration file to specify a new group.
> Db2 update dbm cfg using sysadm_group DB2ADMNS
> 5. db2stop
> 6. db2start
>


The only change that you needed to make was #1 (and #5, #6, of course).

Just so you understand, setting DB2_GRP_LOOKUP=local tells DB2 to
enumerate a user's group memberships on the local machine, regardless
of where (i.e. local machine or PDC) the user account was authenticated.

The purpose of this is to allow you to define group memberships in one
location. The default is somewhat confusing, because you can end up
with 2 groups (DOMAIN\group and LOCALMACHINE\group), with different
members ...

Reply With Quote
  # 5  
Old 08-05-2007, 05:27 AM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,248
Database Administrator is on a distinguished road
Default  Re: SQL1092N "USER" does not have the authority to perform therequested<br> command

Hi Ian, thanks for your input. I really appreciate 

It works well now in my machine.
Reply With Quote
  # 6  
Old 09-28-2007, 01:22 AM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,248
Database Administrator is on a distinguished road
Default  Re: SQL1092N "USER" does not have the authority to perform therequested<br> command

I have tried everything in this article and still have the problem. My environment is:
- New to DB2 Express C
- Windows XP SP2
- Signed on as domain user
- My profile is a Domain Admin
- DB2 Express C installed on my local machine
- DB2ADMINS and DB2USER are local groups
- My domain user ID as a member of DBADMINS and DBUSERS
- I did have a local user with the same name as my domain user but I have deleted it as per this article: http://publib.boulder.ibm.com/infoce...c/r0005907.htm
- Stop/Start DB2 after making the change.
- Here are my settings
C:\Program Files\IBM\SQLLIB\BIN>db2set -all
[e] DB2PATH=C:\Program Files\IBM\SQLLIB
[i] DB2_CREATE_DB_ON_PATH=ON
[i] DB2_GRP_LOOKUP=local
[i] DB2INSTPROF=C:\Program Files\IBM\SQLLIB
[i] DB2COMM=TCPIP
[g] DB2_EXTSECURITY=YES
[g] DB2PROCESSORS=0,1
[g] DB2_GRP_LOOKUP=local
[g] DB2SYSTEM=SEDGE
[g] DB2PATH=C:\Program Files\IBM\SQLLIB
[g] DB2INSTDEF=DB2
[g] DB2ADMINSERVER=DB2DAS00

Thanks
Steve
Reply With Quote
  # 7  
Old 08-17-2010, 11:16 AM
Database Newbie
 
Join Date: Aug 2010
Posts: 1
Tiger_trace is on a distinguished road
Default  Re: SQL1092N "USER" does not have the authority to perform therequested command

Hi Steve

I don't know if you eventually found the answer to this...?
After a lot of scratching around and trial & error, I managed to get it to work by doing the following:
1. db2set DB2_GRP_LOOKUP=LOCAL,TOKENLOCAL
2. db2stop
3. db2start

I hope that this helps you.

Opencv2.4.9源码分析——HoughCircles 图形可以用一些参数进行表示,标准霍夫变换的原理就是把图像空间转换成参数空间(即霍夫空间),例如霍夫变换的直线检测就是在距离-角度空间内进行检测。圆可以表示成: (x-a)2+(y-b)2=r2                   (1) 其中a和b表示圆心坐标,r表示圆半径,因此霍夫变换的圆检测就是在这三个参数组成的三维空间内进行检测。 原则上,霍夫变换可以检测任何形状。但复杂的形状需要的 阅读详情

相关推荐

vcs覆盖率相关

选择要查看的覆盖率点,右键选择 show xxx tests;

qq_40571921的博客 2394

DB2 :SQL1092N "USERID does not have the authority to perform the requested command or operation."

在DB2数据库安装和使用过程中,经常出现SQL1092N "USERID does not have the authority to perform the requested command or operation."即没有权限问题,根据我自己的经历,是由于安装DB2数据库时创建了新用户导致的,安装时系统会自动填充db2admin的新用户(管理员账户),所以在这里需要将用...

笑*容的博客 3993

Windows Server 2008 R2装不上VMware Tools?别急,手动安装驱动补丁的保姆级教程来了

本文提供了Windows Server 2008 R2手动安装VMware Tools驱动补丁的详细教程,解决驱动签名验证失败问题。通过获取特定补丁文件、创建安装介质、挂载虚拟机并安装补丁等步骤,帮助用户顺利完成VMware Tools安装,提升虚拟机功能与性能。

weixin_28335283的博客 468

db2 db2start报SQL1092N "DB2INST1" does not have the authority to perform the requested command or op...

一、root用户下执行: find / -name db2iupdt 2>/dev/null 找到文件db2iupdt所在目录,cd到这个目录下运行./db2iupdt db2inst1 db2inst1用户下: groupsdb2inst1 (此命令查看用户db2inst1所在用户组) db2 update dbm cfg u...

weixin_30471065的博客 1212

vscode+keil嵌入式软件开发全流程

vscode+keil嵌入式软件开发全流程

AspringQ的博客 6788

PostgreSQL使用 pg_rman物理备份搭建流复制备库(streaming replication standby)

摘要:使用pg_rman备份搭建PostgreSQL流复制备库 本文详细介绍了利用pg_rman工具快速搭建PostgreSQL流复制备库的完整流程。该方法结合物理备份的高效性和流复制的实时性,特别适合大型数据库环境。主要内容包括:主库上的pg_rman安装配置、全量备份操作;备份文件传输至备库;备库数据目录准备及恢复;流复制参数配置;以及最终的启动验证步骤。文章还提供了架构示意图和关键配置示例,并包含常见问题排查建议,如备库无法启动或复制卡顿情况的处理方法。整个流程强调通过.pgpass文件管理密码的安全

liumangtuzi888的博客 1169

安装上db2后,输入命令总是报错:SQL1092N

今天在服务器上安装db2 9.7版本后,在db2cmd中输入命令总是报错SQL1092N。      原因是当前登录用户无权使用命令。       解决方法:      第一,将登录用户加入DB2ADMNS组和 DB2USERS组里面,然后重启服务器 第二,在db2cmd命令窗口中,输入:db2set DB2_GRP_LOOKUP=LOCAL,TOKENLOCAL,回车即可。

xiaoyu714543065的专栏 9035

SuccessFactors入门篇

SuccessFactors入门篇—— Employee Central(一)最近通过一个月左右的学习,拿到了SF EC(SuccessFactors Employee Central )模块SAP认证,所以打算把自己学习SF的整个过程以及相关资料和大家分享一下,相互切磋,共同进步。Employee Central简单了解Employee Central简单了解新的改变功能快捷键合理的创建标题,有...

qq_42288853的博客 1万+

db2admin start 错误

在dasusr1下使用db2admin start报一下错误:SQL1092N  "dasusr1" does not have the authority to perform the requested command.搞了半天,最后 su - rootcd db2目录/opt/IBM/db2/V9/instance./dasdrop dasusr1再新建dsausr1用户后

海上钢琴师的专栏 1738

黑猫带你学eMMC协议第14篇:eMMC FFU详解(Field Firmware Update)

1 前言 1.1 声明 本文依据eMMC JEDEC5.1及个人工作经验整理而成,如有错误请留言。 本文结合eMMC JEDEC5.1协议手册查看效果更佳。 1.2 内容提要 1、ffu相关寄存器有哪些? 2、如何设置ffu? 3、什么是ffu?是否能够更新旧版本的固件到emmc? 4、ffu配置流程图。 2 什么是FFU 主机下载新的固件到eMMC,下载成功后eMMC将固件安装到设备。 3 相关寄存器/命令 SUPPORTED_MODES [493] FFU_FEATURES [492] 该

黑猫奥利奥的博客 4660

ZYNQ 使用AXI_BRAM实现PS与PL 数据交互数据交互

有时CPU需要与PL进行小批量的数据交换,可以通过Block RAM实现。通过Zynq 的GP Master 接口读写PL端的 BRAM,实现PS与PL的交互。加入自定义的 FPGA 程序,并利用 AXI4 总线进行配置,通知何时读写 BRAM。CPU通过 AXI BRAM Controller 读取 BRAM 数据,CPU 仅配置自定义的 PL BRAM Controller 的寄存器,不通过它读写数将BRAM与socket进行联合使用,将电脑的数据发到PS端,PS端放在PL端,PL端再发给PS端,P据。

wangjie36的博客 1万+

sql1092n linux,SQL1092N The requested command or operation failed because the user ID does not have ...

Hello DB Experts!Greetings!when I am trying to trigger backup on system , I am getting below error , I tried all possibilities to fix the issue, but I didn't .SQL1092N The requested command or operati...

weixin_42226116的博客 840

概念解析 | 事件相机的原理 (含仿真代码)

在我们熟悉的世界里,传统相机就像一个勤勉的绘画师,每隔固定的时间就为我们勾勒出一幅完整的画面。但是,大自然中有太多瞬息万变的精彩场景,这种"定时绘画"的方式往往难以捕捉。于是,一种全新的"观察者"应运而生 -事件相机(Event Camera)。事件相机,就像是一群极其敏感的"像素哨兵",它们不再按部就班地等待指令,而是主动感知周围的变化,只有在光线强度发生显著变化时才会发出信号。这种革命性的设计,让事件相机拥有了传统相机难以企及的优势:超高的时间分辨率、极低的延迟、宽广的动态范围,以及出色的能效比。

NLOS的博客 1423

Security related

SSL certificate error https://docs.apigee.com/api-platform/troubleshoot/runtime/400-ssl-certificate-error refine the certification with client type.

lzxjxsy的博客 208

计算机控制技术及应用

《计算机控制技术及应用》通过总结作者的科研成果和吸收国内外的先进理论、方法和技术,以计算机控制系统的网络化、开放化、智能化和集成化发展趋势为主线索,主要介绍计算机控制系统的基本概念和计算机控制系统的典型形式,计算机控制系统的数学描述与基本分析方法,以及数字PID控制器、最少拍控制系统、达林算法、状态变量设计法等设计方法及其各种改进算法。重点突出计算机控制系统输入输出通道接口的设计方法和典型控制系统的设计案例与实现方法等。

温度PID控制PLC程序

温度PID稳定控制程序,适用于欧姆龙PLC,对其他PLC也具有很大参考价值

SQL1092N The requested command or operation failed because the user ID does not have the authority ...

1.前一天安装号db2后,做了如下处理: ************************************************************ 修改 /etc/sudoers 文件,找到下面一行,把前面的注释(#)去掉 ## Allows people in group wheel to run all commands%wheel ALL=(ALL)...

ajsyipsc40270的博客 1000

老版QQ原生表情gif动态

这是老版的QQ表情,不过全是动态的的,Windows照片查看器是不会动的,可以右击用浏览器打开查看,再说一遍是老版的,只是分享给宁愿用老版也要动态的人。

db2启动抛出sql1092n错误

db2inst1用户下: https://www.cndba.cn/hbhe0316/article/4784 https://www.cndba.cn/hbhe0316/article/4784https://www.cndba.cn/hbhe0316/article/4784https://www.cndba.cn/hbhe0316/article/4784https...

hbhe0316的专栏 1071

复分析 阿尔福斯(Ahlfors) 第三版答案 英文

答案分为十章,有部分习题没有答案,全英文复分析阿尔福斯(Ahlfors) 第三版答案

sql1092n linux,DB2.9.7 SQL1092N

[root@node3 ~]# /opt/ibm/db2/V9.7/instance/db2icrt -a server -u db2fenc1 ptsDBI1768W Unable to add /pts//sqllib/db2profile to the .profile file or/pts//sqllib/db2cshrc to the .login file of user pts...

weixin_35726374的博客 650

DB2 SQL1092N

下午试图建立第一个DB2数据库,一直报1092N错误。检查良久,发现登陆DB2的用户名是user1而非domain/user1. 而该用户在本机操作系统不存在,也无需输入用户密码(default)。创建一个user1用户,加入administrator group。发现再次登陆,要求输入密码,正确!PS:by default,db2的数据库创建在"盘符:/db2/"下面。

zs_shine的专栏 7569

windows7下安装db2出现sql1092n没有权限错误

把没有权限的用户加入到计算机的Administrator和DB2ADMNS组里,方法是,右键我的电脑,管理,本地用户和组,点击进入选中的组,通过对象名称添加即可 在开始菜单里,输入db2cmd进入db2命令行终端,输入指令db2set DB2_GRP_LOOKUP=LOCAL,TOKENLOCA 重启所有db2开头的服务,方法是,右键我的电脑,管理, 服务和应用程序, 服务, 选中db2开头的服务,重启. ...

haoqiuwu的博客 1037

db2异常

问题描述:在用import导入时没有问题,用load导入时发生SQL0180N The syntax of the string representation of a datetime value is incorrect. SQLSTATE=2200 应该是数据源中的Timestamp没有毫秒(2013-10-10 00:00:00),而Timestamp的默认格式是有毫秒的,所以load不

Silence的专栏 1万+

DB2常用命令、操作、SQLCode总结

以下(绿字标记部分)同样适用于服务器端DB操作 ----------------------------- ■DB Server 的服务器连接(Linux) sudo su - su - DBUser db2 connect to XXXDB db2 set schema SchemaName cd /XXXXXX/XXX/ 补足说明,一般DB Server会指定一个「DBUse...

sun0322 2万+

"TNS-01190: 用户无权执行所请求的监听程序命令"

最后我找到文件LSNRCTL.EXE,在目录%ORACLE_HOME%\bin下,以鼠标右键单击,选择“以管理员身份运行”,此时出现一个用户帐户控制页面,选择“是”,出现了LSNRCTL提示符。 在这里执行stop,监听成功关闭。   如果不想每次都去目录%ORACLE_HOME%\bin下找文件LSNRCTL.EXE,可以改变LSNRCTL.EXE文件的属性。到“兼容性”选项卡

雅冰石的专栏 1万+

win7 db2 SQL1092N 没有执行所请求的命令的权限

  db2 SQL1092N 没有执行所请求的命令的权限   win7安装db2后,创建报没有权限 解决方法: 1。将登录用户user加入DBADMNS组和系统管理员组里面 2。在db2cmd命令行下,敲入db2set DB2_GRP_LOOKUP=LOCAL,TOKENLOCAL   然后就解决了 ...

smartwgd的专栏 1784

DB2最小化权限问题

—创建角色 test_write_role:具有DML操作权限 test_read_role:只读权限db2 create role test_write_roledb2 create role test_read_role ———————————————————————-#—给角色 test_write_role 授权db2 grant usage on workload sy...

hbhe0316的专栏 3051
上一篇: (转)DB2 sqlstate 57016 原因码 "7"错误详解
下一篇: (转)EBWin辞典下载资源
mlxia
博客等级 码龄26年 28粉丝 410原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

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

抵扣说明:

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

余额充值