首页
学习
活动
专区
圈层
工具
发布
社区首页 >专栏 >启动Oracle数据库报错ORA-48173、ORA-48187、OSD-00002、OS-Error (OS 5)

启动Oracle数据库报错ORA-48173、ORA-48187、OSD-00002、OS-Error (OS 5)

作者头像
AiDBA宝典
发布2023-04-27 13:22:10
发布2023-04-27 13:22:10
8470
举报

现象

windows server 2006的Oracle 12c,在服务里启动了数据库,正常,但是在通过sqlplus连接进去后发现数据库是空闲实例,开始启动数据库,结果报错:

代码语言:javascript
复制
SQL> startup
ORA-48173: error checking directory existence during ADR initialization [D:\app\diag\rdbms\orclcdb]
ORA-48187: specified directory does not exist
OSD-00002: additional error information
O/S-Error: (OS 5) Access is denied.

原因

数据库的服务,登录名被更改了。

该套环境本身是12.2.0.1的环境,然后我又安装了19c的环境,可能被修改掉了,

解决

修改服务里的Oracle数据库,使用本地系统账号登陆即可。

  • Right-click on service
  • Select 'properties'
  • Select 'logon'
  • Change the default user ID to an Oracle user with Windows administrator privileges

Startup Nomount Fails With ORA-48173 ORA-48187 OSD-00002 (Doc ID 2740770.1)

APPLIES TO:

Oracle Database - Enterprise Edition - Version 11.2.0.4 and later Information in this document applies to any platform.

SYMPTOMS

After the upgrade, when We try to start the instance in nomount mode but it fails:

代码语言:javascript
复制
SQL> startup nomount;
ORA-48173: error checking directory existence during ADR initialization [<ADR_PATH>]
ORA-48187: specified directory does not exist
OSD-00002: additional error information
O/S-Error: (OS 5) Access is denied.

CAUSE

The O/S-Error: (OS 5) Access is denied error happens when the user does not have permission to write to the filesystem.

SOLUTION

For Linux/UNIX: -------------------- Execute chmod 770 on the directory to fix this O/S Access Denied error in Linux/UNIX

For Windows: ---------------- On Windows, default is the OracleServiceservice, which runs as the user LocalSystem. The Windows LocalSystem user is not allowed to write to shared drives.

Change OracleServiceto logon explicitly as an Oracle user with admin privileges.

In the ControlPanel services:

- Right-click on service - Select 'properties' - Select 'logon' - Change the default user ID to an Oracle user with Windows administrator privileges

本文参与 腾讯云自媒体同步曝光计划,分享自微信公众号。
原始发表:2022-12-24,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 DB宝 微信公众号,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 现象
  • 原因
  • 解决
  • Startup Nomount Fails With ORA-48173 ORA-48187 OSD-00002 (Doc ID 2740770.1)
    • APPLIES TO:
    • SYMPTOMS
    • CAUSE
  • SOLUTION
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档