ORA-29475: useLogonRoles=>TRUE not permitted with userid=>NULL ORACLE 报错 故障修复 远程处理

文档解释 ORA-29475: useLogonRoles=>TRUE not permitted with us…

文档解释

ORA-29475: useLogonRoles=>TRUE not permitted with userid=>NULL

Cause: An unsupported combination of argument values was present in a call to DBMS_SYS_SQL.PARSE_AS_USER.

Action: Specify a valid combination of argument values.

ORA-29475: useLogonRoles=>TRUE not permitted with userid=>NULL 意味着把useLogonRoles设置为true时,userid不能设置为空;这是因为当 useLogonRoles设置为true时,系统需要使用userid来确定角色配置是否正确。

官方解释

常见案例

一般处理方法及步骤

1.检查确保代码中的userid变量不是空的,而是带有有效的用户名。

2.如果可以,尝试把useLogonRoles参数设为false,以允许userid为空。

3.如果此类角色是必需的,则最好在代码中直接指定要使用的角色,而不是使用useLogonRoles参数。

例如: 将“role=> SYSADMIN”加入connect语句中。

香港美国云服务器首选港服(Server.HK),2H2G首月10元开通。
港服(Server.HK)(www.IDC.Net)提供简单好用,价格厚道的香港/美国云服务器和独立服务器。IDC+ISP+ICP资质。ARIN和APNIC会员。成熟技术团队15年行业经验。

为您推荐

港服(Server.HK)MongoDB教程:MongoDB 索引

MongoDB 索引 索引通常能够极大的提高查询的效率,如果没有索引,MongoDB在读取数据时必须扫描集合中的每个文件...

港服(Server.HK)PostgreSQL教程PostgreSQL 别名

PostgreSQL 别名 我们可以用 SQL 重命名一张表或者一个字段的名称,这个名称就叫着该表或该字段的别名。 创建...

港服(Server.HK)Memcached教程:Memcached stats 命令

Memcached stats 命令 Memcached stats 命令用于返回统计信息例如 PID(进程号)、版本号...

港服(Server.HK)Redis教程:Redis 数据类型

Redis 数据类型 Redis支持五种数据类型:string(字符串),hash(哈希),list(列表),set(集...

港服(Server.HK)Redis教程:Redis GEO

Redis GEO Redis GEO 主要用于存储地理位置信息,并对存储的信息进行操作,该功能在 Redis 3.2 ...
返回顶部