当前位置:网站首页>SAP oracle 复制新实例后数据库远程连接报错 ora-01031
SAP oracle 复制新实例后数据库远程连接报错 ora-01031
2022-07-28 21:59:00 【wxgnolux】
问题:oracle 服务器本地用 sqlplus 可以用 sys 作为 dba 登入,但是用 pl/sql 登入时就报ORA-01031 insufficient privileges 错误。 如下图。


这个问题的原因是,在数据库复制迁移时,没有重新生成对应的 password文件。 正常情况下,此目录下应该有一个对应数据库实例名的 orapwTST 文件(目前还是原来orapwPRD).

因为密码都保持没变,我这里直接重命名。
mv orapwPRD orapwTST

重新在 pl/sql 登入就成功了。
再深入研究:
1.密码文件可以通过 工具 orapwd 产生

如下 我用命令重新生成一个密码文件
orapwd file=orapwTST password=pwd
测试可以用新密码pwd登入(远程登入的密码以此文件优先,不以数据库本身账号密码优先)
2.密码文件如果正确存在,sqlplus查询如下:

文件不存在的话,sqlplus查询如下:
边栏推荐
猜你喜欢
随机推荐
金仓数据库 KingbaseES V8.3至V8.6迁移最佳实践(3. KingbaseES移植能力支撑体系)
2022焊工(初级)上岗证题目及答案
Pin mapping relationship of stm32f103c series single chip microcomputer under Arduino framework
Jincang database kingbasees client programming interface guide ODBC (5. Development process)
How to add the index of a set in mongodb to another set in mongodb
YOLOV5学习笔记(一)——原理概述
金仓数据库 KingbaseES与Oracle的兼容性说明(2. 数据类型)
Pagoda phpMyAdmin unauthorized access vulnerability
Compatibility description between kingbasees and Oracle (5. Pl/sql)
MySQL log management, backup and recovery
多传感器融合定位(二)——基于地图的定位
Codeforces Round #474 (Div. 1 + Div. 2) - C, F
2022 G2 power plant boiler stoker examination question bank simulated examination platform operation
从XSS Payload学习浏览器解码
利用递归和链表头插法实现链表成组的翻转——LeetCode25 K个一组翻转链表
Byte 8 years' experience of female test Director - for girls who want to change careers or are about to enter the testing industry
零视科技 H5S视频平台 GetUserInfo 信息泄漏漏洞 CNVD-2020-67113
2022年R2移动式压力容器充装考题模拟考试平台操作
Solve thread safety problems & singleton mode
2022 simulated examination platform operation of hoisting machinery command examination questions



![[self] - question brushing - peak value](/img/cf/9c47da9c574b61415578e7fde8b126.png)




