dbca新建实例报错dbca java Permission denied
2024-12-16 08:18:54 阅读次数:2
java,报错
问题描述:dbca新建实例报错dbca java Permission denied,如下所示:
1、异常重现
[oracle@hisdb1 ~]$ dbca -silent -createDatabase \
> -ignorePrereqFailure \
> -templateName General_Purpose.dbc \
> -responseFile NO_VALUE \
> -sid orcl \
> -sysPassword oracle123 \
> -systemPassword oracle123\
> -redoLogFileSize 1024 \
> -storageType FS \
> -databaseConfigType SINGLE \
> -datafileDestination /u01/app/oracle/oradata/orcl \
> -enableArchive true \
> -archiveLogDest /u01/app/oracle/archivelog \
> -characterset ZHS16GBK \
> -nationalCharacterSet AL16UTF16 \
> -emConfiguration NONE \
> -automaticMemoryManagement false \
> -totalMemory 10000 \
> -databaseType OLTP \
> -createAsContainerDatabase false
/u01/app/oracle/product/19.3/db_1/bin/dbca: line 212: /u01/app/oracle/product/19.3/db_1/jdk/jre/bin/java: Permission denied
/u01/app/oracle/product/19.3/db_1/bin/dbca: line 212: exec: /u01/app/oracle/product/19.3/db_1/jdk/jre/bin/java: cannot execute: Permission denied
2、问题分析
根据提示可知,文件/u01/app/oracle/product/19.3/db_1/jdk/jre/bin/java无执行权限.
--查正常库的该目录权限信息.
[oracle@leo-oracle-19c bin]$ pwd
/u01/app/oracle/product/19.3.0/db/jdk/jre/bin
[oracle@leo-oracle-19c bin]$ ls -ltr
total 460
-rwxr-xr-x. 1 oracle oinstall 186960 Oct 15 2021 unpack200
-rwxr-xr-x. 1 oracle oinstall 8904 Oct 15 2021 tnameserv
-rwxr-xr-x. 1 oracle oinstall 8840 Oct 15 2021 servertool
-rwxr-xr-x. 1 oracle oinstall 8840 Oct 15 2021 rmiregistry
-rwxr-xr-x. 1 oracle oinstall 8832 Oct 15 2021 rmid
-rwxr-xr-x. 1 oracle oinstall 8840 Oct 15 2021 policytool
-rwxr-xr-x. 1 oracle oinstall 8832 Oct 15 2021 pack200
-rwxr-xr-x. 1 oracle oinstall 8904 Oct 15 2021 orbd
-rwxr-xr-x. 1 oracle oinstall 8832 Oct 15 2021 keytool
-rwxr-xr-x. 1 oracle oinstall 8832 Oct 15 2021 jjs
-rwxr-xr-x. 1 oracle oinstall 6264 Oct 15 2021 jcontrol
-rwxr-xr-x. 1 oracle oinstall 148896 Oct 15 2021 javaws
-rwxr-xr-x. 1 oracle oinstall 8712 Oct 15 2021 java
lrwxrwxrwx. 1 oracle oinstall 8 Dec 23 2023 ControlPanel -> jcontrol
--异常库的权限信息如下.
[root@hisdb1 bin]# ls -ltr
total 468
-rw-r--r-- 1 oracle oinstall 186960 Apr 7 2022 unpack200
-rw-r--r-- 1 oracle oinstall 8904 Apr 7 2022 tnameserv
-rw-r--r-- 1 oracle oinstall 8840 Apr 7 2022 servertool
-rw-r--r-- 1 oracle oinstall 8840 Apr 7 2022 rmiregistry
-rw-r--r-- 1 oracle oinstall 8832 Apr 7 2022 rmid
-rw-r--r-- 1 oracle oinstall 8840 Apr 7 2022 policytool
-rw-r--r-- 1 oracle oinstall 8832 Apr 7 2022 pack200
-rw-r--r-- 1 oracle oinstall 8904 Apr 7 2022 orbd
-rw-r--r-- 1 oracle oinstall 8832 Apr 7 2022 keytool
-rw-r--r-- 1 oracle oinstall 8832 Apr 7 2022 jjs
-rw-r--r-- 1 oracle oinstall 6264 Apr 7 2022 jcontrol
-rw-r--r-- 1 oracle oinstall 148896 Apr 7 2022 javaws
-rw-r--r-- 1 oracle oinstall 8712 Apr 7 2022 java
-rw-r--r-- 1 oracle oinstall 6264 Apr 7 2022 ControlPanel
说明:从以上可知异常库权限不正确.
3、解决方案
--修改相应权限.
[root@hisdb1 bin]# chmod 755 unpack200
[root@hisdb1 bin]# chmod 755 tnameserv
[root@hisdb1 bin]# chmod 755 servertool
[root@hisdb1 bin]# chmod 755 rmiregistry
[root@hisdb1 bin]# chmod 755 rmid
[root@hisdb1 bin]# chmod 755 policytool
[root@hisdb1 bin]# chmod 755 pack200
[root@hisdb1 bin]# chmod 755 orbd
[root@hisdb1 bin]# chmod 755 keytool
[root@hisdb1 bin]# chmod 755 jjs
[root@hisdb1 bin]# chmod 755 jcontrol
[root@hisdb1 bin]# chmod 755 javaws
[root@hisdb1 bin]# chmod 755 java
[root@hisdb1 bin]# ls -ltr
total 468
-rwxr-xr-x 1 oracle oinstall 186960 Apr 7 2022 unpack200
-rwxr-xr-x 1 oracle oinstall 8904 Apr 7 2022 tnameserv
-rwxr-xr-x 1 oracle oinstall 8840 Apr 7 2022 servertool
-rwxr-xr-x 1 oracle oinstall 8840 Apr 7 2022 rmiregistry
-rwxr-xr-x 1 oracle oinstall 8832 Apr 7 2022 rmid
-rwxr-xr-x 1 oracle oinstall 8840 Apr 7 2022 policytool
-rwxr-xr-x 1 oracle oinstall 8832 Apr 7 2022 pack200
-rwxr-xr-x 1 oracle oinstall 8904 Apr 7 2022 orbd
-rwxr-xr-x 1 oracle oinstall 8832 Apr 7 2022 keytool
-rwxr-xr-x 1 oracle oinstall 8832 Apr 7 2022 jjs
-rwxr-xr-x 1 oracle oinstall 6264 Apr 7 2022 jcontrol
-rwxr-xr-x 1 oracle oinstall 148896 Apr 7 2022 javaws
-rwxr-xr-x 1 oracle oinstall 8712 Apr 7 2022 java
-rw-r--r-- 1 oracle oinstall 6264 Apr 7 2022 ControlPanel
说明:此处并未创建ControlPanel的软连接文件,权限修改后成功执行dbca.
版权声明:本文内容来自第三方投稿或授权转载,原文地址:https://blog.51cto.com/u_12991611/11546215,作者:Liujun_Deng,版权归原作者所有。本网站转在其作品的目的在于传递更多信息,不拥有版权,亦不承担相应法律责任。如因作品内容、版权等问题需要同本网站联系,请发邮件至ctyunbbs@chinatelecom.cn沟通。
上一篇:【技巧模版】数组原地修改的专栏训练(java版本含注释)
下一篇:Eclipse里使用Servlet实现简单的登录功能