群里一朋友win下安装11的db,dbca失败,报错如下:
[Ins-20802] Oracle Database Configuration Assistant failed。
下面是mos一段参考:
Oracle Server - Enterprise Edition - Version: 11.2.0.2 and later [Release: 11.2 and later ]
Microsoft Windows x64 (64-bit) - Version: 2008 R2
SYMPTOMS
After binary installation the following message pops up in DBCA step:
[Ins-20802] Oracle Database Configuration Assistant failed
DBCA fails with:
INFO:
The Runconfig command constructed is E:oracle\product\11.2.0\dbhome_1\oui\bin\runConfig.bat ORACLE_HOME=E:oracle\product\11.2.0\dbhome_1 MODE=perform ACTION=configure RERUN=true $*
INFO: Created a new file E:\\oracle\product\11.2.0\dbhome_1\cfgtoollogs\configToolAllCommands
SEVERE: java.io.IOException: Access is denied
at java.io.WinNTFileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(File.java:850)
at oracle.sysman.oii.oiix.OiixFileOps.createFileWithPermissions(OiixFileOps.java:1955)
at oracle.sysman.oii.oiio.oiiol.OiiolTextLogger.writePlugInCommands(OiiolTextLogger.java:2018)
at oracle.install.driver.oui.OUISetupDriver.config(OUISetupDriver.java:983)
at oracle.install.driver.oui.OUISetupDriver.config(OUISetupDriver.java:1028)
at oracle.install.ivw.db.driver.DBSetupDriver.config(DBSetupDriver.java:218)
at oracle.install.driver.oui.ConfigJob.call(ConfigJob.java:137)
at oracle.install.driver.oui.ConfigJob.call(ConfigJob.java:51)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
at java.util.concurrent.FutureTask.run(FutureTask.java:123)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
CAUSE
DBCA is failing due to insufficient permissions on the folder E:\oracle\product\11.2.0\dbhome_1\cfgtoollogs
and it prevents configToolAllCommands to be created.
SOLUTION
You need to Turn off User Access control (UAC).
The following steps describe how to turn off UAC for Windows 7 or Vista:
1. Go to Control Panel
2. Select "User Accounts"
3. Under "User Accounts" window click on User Accounts
4. Then click on "Turn User Account Control off"
5. Select "Use User Account Control (UAC) to help protect your computer" to clear the check box to turn off UAC and then click OK.
For Windows 2008 R2
1. Go to Control Panel
2. Select "User Accounts"
3. Click on "Change User Account Control Settings"
4. To turn off UAC move the vertical slide to "Never Notify" then click "OK"
For more information:
Refer to Microsoft documentation, for example:
"User Account Control Step-by-Step Guide" viewable at
http://technet.microsoft.com/en-us/library/cc709691%28WS.10%29.aspx#BKMK_S3
or
modify the permission on this folder where files cannot be copied/created.
1. Right click on the folder which needs permissions to be changed
2. Go to Security Tab
3. Click on Advanced button
4. Select appropriate "Permission entries"
5. Click on Change permission and select required permission, click OK
建立ora_dba组和oracle用户,把当前用户加到此组。
先安装oracle软件成功,然后dbca报错如下:
实例已创建 dim 00019 创建服务时出错 os error os1053 服务没有及时响应启动或者控制请求。
进入服务管理界面,手工启动服务也是报此错误。
最后朋友想到可能是主机名称有中文的情况。然后修改下主机名,shutdown一下,成功了。
谨记:请不要在主机名称中夹带中文字眼!