SQL1092N The requested command or operation failed because the user ID does not have the authority to perform the requested command or operation.
2016-09-08 14:17
701 查看
1.前一天安装号db2后,做了如下处理:
************************************************************
修改 /etc/sudoers 文件,找到下面一行,把前面的注释(#)去掉
## Allows people in group wheel to run all commands
%wheel ALL=(ALL) ALL
然后修改用户,使其属于root组(wheel),命令如下:
#usermod -g root db2inst1
修改完毕,现在可以用db2inst1帐号登录,然后用命令 su – ,即可获得root权限进行操作。
**************************************************************
2.第二天启动数据库实例报错如下截图:
3.解决办法:
用root用户登录
vi /etc/group
部分文件内容截图如下:
同样用root用户登录
vi /etc/passwd
部分文件内容截图如下:
上述修改完毕之后,保存退出。再次使用db2start启动即可成功。
但是,数据库实例是可以启动了,连接数据库又失败了
数据库连接报错如下:
错误详细描述:
这个问题的处理办法如下:
cd /opt/ibm/db2/V10.5/instance
然后切换root用户,执行./db2iupdt db2inst1
执行完成之后,数据库就可以登录了。
************************************************************
修改 /etc/sudoers 文件,找到下面一行,把前面的注释(#)去掉
## Allows people in group wheel to run all commands
%wheel ALL=(ALL) ALL
然后修改用户,使其属于root组(wheel),命令如下:
#usermod -g root db2inst1
修改完毕,现在可以用db2inst1帐号登录,然后用命令 su – ,即可获得root权限进行操作。
**************************************************************
2.第二天启动数据库实例报错如下截图:
3.解决办法:
用root用户登录
vi /etc/group
部分文件内容截图如下:
同样用root用户登录
vi /etc/passwd
部分文件内容截图如下:
上述修改完毕之后,保存退出。再次使用db2start启动即可成功。
db2inst1:x:1002:0::/home/db2inst1:/bin/bash 1 2 3 45 6 7 | | | || | | | | | || | |--用户默认使用的SHELL | | | || |--用户家目录 | | | ||--用户finger信息(注释信息) | | | |--用户组ID(GID) | | |--用户ID(UID) | |--密码占位符(密码保存在/etc/shadow文件内) |--用户名
但是,数据库实例是可以启动了,连接数据库又失败了
数据库连接报错如下:
错误详细描述:
SQL1639N The database server was unable to perform authentication because security-related database manager files on the server do not have the required operating system permissions. SQLSTATE=08001
这个问题的处理办法如下:
cd /opt/ibm/db2/V10.5/instance
然后切换root用户,执行./db2iupdt db2inst1
执行完成之后,数据库就可以登录了。
相关文章推荐
- TFS2010提示:TF204017 The operation cannot be completed because the user does not have one or more required permissions (Use) for workspace
- 阿里云 esc 云服务器无缘无故的一次/usr/bin 目录丢失导致整个服务无法启动 # ./shutdown.sh ./shutdown.sh: line 41: dirname:command not found cannot find /catalina.sh the find /catalina.sh The file is absent or does not have execute
- This application failed to start because it could not find or load the Qt platform plugin "xcb".
- This application failed to start because it could not find or load the Qt platform plugin "xcb"问题解决方
- Cannot execute as the database principal because the principal "guest" does not exist, this type of principal cannot be impersonated, or you do not have permission.
- This application failed to start because it could not find or load the Qt platform plugin “...
- This application failed to start because it could not find or load the Qt platform plugin "windows"
- This application failed to start because it could not find or load the Qt platform plugin "xcb" in "
- QT5:his application failed to start because it could not find or load the Qt platform plugin "xcb"
- The service cannot be activated because it does not support ASP.NET compatibility. ASP.NET compatibility is enabled for this application. Turn off ASP.NET compatibility mode in the web.config or add the AspNetCompatibilityRequirements attribute to the ser
- The user running validate, does not have permissions to create computer objects in the 'x.com
- This application failed to start because it could not find or load the Qt platform plugin "xcb".
- nodejs gyp WARN EACCES user "root" does not have permission to access the dev dir
- This application failed to start because it could not find or load the Qt platform plugin "xcb".
- This application failed to start because it could not find or load the Qt platform plugin "xcb".
- This application failed to start because it could not find or load the Qt platform plugin "xcb".
- TF31003: Your user account does not have permsision to connect to the team foundation server xxx. Contact your team foun
- Application failed to start because it could not find or load the QT platform plugin “windows”
- QT移植无法启动 This application failed to start because it could not find or load the Qt platform plugin
- mac安装jello,安装不过去,报gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/