【问题处理】Error accessing PRODUCT_USER_PROFILE错误一例

简介: 1.问题现象再现1)创建用户secSQL> create user sec identified by sec;User created.2)授权SQL> grant connect,resource to sec;Grant succeeded.
1.问题现象再现
1)创建用户sec
SQL> create user sec identified by sec;

User created.

2)授权
SQL> grant connect,resource to sec;

Grant succeeded.

3)错误在此发生
SQL> conn sec/sec
Error accessing PRODUCT_USER_PROFILE
Warning:  Product user profile information not loaded!
You may need to run PUPBLD.SQL as SYSTEM
Connected.

2.问题原因
原因是SQL*PLus用户环境设置存在问题。

3.问题处理
在错误提示中已经给出了解决办法。关键是要确认“PUPBLD.SQL”脚本的位置。这个脚本位于$ORACLE_HOME/sqlplus/admin目录下。如果不记得具体的位置,也可以使用“find ××× -iname ×××”命令来寻找。
SQL> conn system/oracle1
Connected.
SQL> @?/sqlplus/admin/pupbld.sql
…… 省略脚本执行输出内容 ……

4.最后的测试
再次测试,sec用户连接没有问题
SQL> conn sec/sec
Connected.

此时已经可以正常连接到sec用户。

5.小结
这个问题是在手工建库之后出现的。鉴于此,可以在手工创建数据库之后顺便执行该脚本以防该问题的出现。
有关PRODUCT_USER_PROFILE的更多参考:《【实验】使用PRODUCT_USER_PROFILE禁止特定用户在SQL*Plus中使用 delete语句》(http://space.itpub.net/519536/viewspace-609906)

Good luck.

secooler
10.07.22

-- The End --

目录
相关文章
|
9月前
|
Linux
ERROR: 2 matches found based on name: network product-server_default is ambiguous
ERROR: 2 matches found based on name: network product-server_default is ambiguous
94 0
|
11月前
|
开发者 iOS开发
Xcode运行报错The operation couldn’t be completed. Unable to launch xxx because it has an invalid code...
Xcode运行报错The operation couldn’t be completed. Unable to launch xxx because it has an invalid code...
642 0
|
网络安全 开发工具
【解决方案】A session ended very soon after starting. Check that the command in profile “XXX” is correct.
【解决方案】A session ended very soon after starting. Check that the command in profile “XXX” is correct.
782 0
【解决方案】A session ended very soon after starting. Check that the command in profile “XXX” is correct.
|
网络协议 关系型数据库 Linux
onfigure: error: no acceptable C compiler found in $PATH See `config.log' for more details 问题解决
onfigure: error: no acceptable C compiler found in $PATH See `config.log' for more details 问题解决
145 0
|
关系型数据库 MySQL SQL
[解决] Error Code: 1044. Access denied for user 'root'@'%' to database
今天在测试集群用的mysql上,遇到个权限的问题: SQLException : SQL state: 42000 com.mysql.jdbc.exceptions.
5126 0
|
Python
如何查看某个ABAP user针对某个authorization object的assignment status
如何查看某个ABAP user针对某个authorization object的assignment status
133 0
|
SQL
ORA-00030: User session ID does not exist.
同事在Toad里面执行SQL语句时,突然无线网络中断了,让我检查一下具体情况,如下所示(有些信息,用xxx替换,因为是在处理那些历史归档数据,使用的一个特殊用户,所以可以用下面SQL找到对应的会话信息): SQL> SELECT B.
1876 0
|
SQL 安全 数据库
MS SQL Could not obtain information about Windows NT group/user 'domain\login', error code 0x5. [SQLSTATE 42000] (Error 15404)
最近碰到一个有趣的错误:海外的一台数据库服务器上某些作业偶尔会报错,报错信息如下所示: ---------------------------------------------------------------------------------------------------------...
1218 0
|
SQL Windows
Unable to determine if the owner (Domain\UserName) of job JOB_NAME has server access
早上巡检的的时候,发现一数据库的作业报如下错误(作业名等敏感信息已经替换),该作业的OWNER为一个域账号: JOB RUN: 'JOB_NAME' was run on 2016-6-1 at 7:00:00 DURATION: 0 hours, 0 minutes, 1 seconds STATUS: Failed MESSAGES: The job failed.
1400 0
product_code参数详解
说明: product_code参数为销售产品码,与支付宝签约的产品码名称,此参数一般为必填参数,请严格按照开放平台文档要求传递   示例: 1.电脑网站支付产品alipay.trade.page.pay接口中,product_code为:FAST_INSTANT_TRADE_PAY 2.
3362 0