安装完oracle数据库后,没有oracleServiceOrcl服务

gigi-qiqi 2017-09-08 03:52:50
刚刚安装完数据库,只有这几个服务OracleMTSRecoveryService、OracleOraDb11g_home1ClrAgent、OracleOraDb11g_home1TNSListener、OracleRemExecService。
没有oracleServiceOrcl服务,而且运行 connect /as sysdba; 的时候会报错ERROR:ORA-12560: TNS: 协议适配器错误。

请各位大神帮忙解决。
...全文
6916 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
minsic78 2017-09-11
  • 打赏
  • 举报
回复 1
楼主,这是MOS上的一篇文档,看看是否对你有帮助:
引用
IF:How to Resolve DIM-00019: Create Service Error (Doc ID 2016492.1) Modified: 09-Sep-2016 Type: HOWTO Rate this document Email link to this document Open document in new window Printable Page In this Document Goal Solution References APPLIES TO: Oracle Database - Enterprise Edition - Version 9.2.0.1 and later Microsoft Windows x64 (64-bit) Microsoft Windows (32-bit) ***Checked for relevance on 09-Sep-2016*** GOAL This document is to summarize the various causes for DIM-00019 errors and their solutions while creating Oracle service in Windows using ORADIM utility. DIM-00019: create service error O/S-Error: (OS 1053) The service did not respond to the start or control request in a timely fashion. (OR) Error in Process h:\app\OracleWinUser\product\12.1.0\dbhome_1\bin\oradim.exe Enter password for the Oracle server user: DIM-00019: create service error O/S-Error: (OS 87) the parameter is incorrect SOLUTION Solution 1: User must be a Local Administrator User must be a Local Administrator in order to install Oracle products on a Windows NT/2000 Server (or more recent). User must be a Domain Administrator to install Oracle products on a Domain Controller (PDC or BDC). DIM-00019 errors can be resolved by connecting to Windows NT/2000 machine as an appropriately privileged user. Solution 2: Ensure sufficient privileges Adding the Domain Administrators group to the Local Administrators group is not sufficient for operating system authentication of the SYS as SYSDBA user. The same individual domain administrator account must also be a member of the local ORA_DBA group as well. If the individual domain administrator account is called "dbuser" in the "windom" domain, then this account must appear in the Local Administrators group: WINDOM\dbuser Most of the time, a domain account added to Local Administrators and local ORA_DBA groups offers sufficient privileges to connect as SYS as SYSDBA. (Doc ID 2016452.1) provided more details regarding this. Solution 3: Have fix (or workaround) for Bug 19450700 in place. DIM-00019 error accompanied by 'O/S-Error: (OS 87) the parameter is incorrect' can be observed in 12c databases due to unpublished BUG 19450700 - ORADIM FAILS WITH DIM-19 AND O/S-ERROR: (OS 87/1060) ON DOMAIN CONTROLLER. This bug is fixed in Windows DB Bundle Patch 12.1.0.1.0 . Workaround: Add domain user as "Oracle Home User" to group "Domain Admins" via Active Directory admin console, and restart OracleService<SID> Start OracleService<SID> manually when DBCA reports error and then click "OK" on DBCA. Solution 4: Ensure proper installation If this is a new Oracle installation, or newly upgraded software, then ensure that installation is done correctly. Else, Redo the Base release installation and apply the desired Database patchset software . Invoke the DBUA utility again to upgrade the database.
gigi-qiqi 2017-09-08
  • 打赏
  • 举报
回复
引用 3 楼 minsic78 的回复:
手工创建服务看看行不行:
oradim -new -sid orcl
sid可以根据你的需要更改,一般与你建库时候的数据库名同名

另外,执行dbca的操作系统用户,是不是在ora_dba组里的?



操作用户在ora_dba组里,试了一下手动加,最后会报错

请问,这是什么问题?

minsic78 2017-09-08
  • 打赏
  • 举报
回复
手工创建服务看看行不行: oradim -new -sid orcl sid可以根据你的需要更改,一般与你建库时候的数据库名同名 另外,执行dbca的操作系统用户,是不是在ora_dba组里的?
gigi-qiqi 2017-09-08
  • 打赏
  • 举报
回复 2
引用 1 楼 minsic78 的回复:
装软件和建库是两回事情,楼主是不是在安装软件的时候选择了:install software only?不过这种分开的方式有好处,数据库可以更多的自定义。
打开dbca看下,是不是还没有数据库。



是没有数据库,但是用dbca安装的时候最后会报错
然后又是ORA-12560: TNS: 协议适配器错误。

请问,这是什么问题?
minsic78 2017-09-08
  • 打赏
  • 举报
回复
装软件和建库是两回事情,楼主是不是在安装软件的时候选择了:install software only?不过这种分开的方式有好处,数据库可以更多的自定义。 打开dbca看下,是不是还没有数据库。
韩顺平oracle学习笔记 第0讲:如何学习oracle 一、如何学习oracle Oracle目前最流行的数据库之一,功能强大,性能卓越。学习oracle需要具备一定基础: 1.学习过一门编程语言(如:java ,c) 2.最好学习过一门别的数据库(sql server,mysql , access) 教程推荐:oracle使用教程, 深入浅出oracle 记住:欲速则不达,做任何事情要遵循他的规律,循序渐进,信心很重要 成为一个oracle高手过程:理解小知识点->做小练习->把小的只是点连成线->做oracle项目->形成只是面->深刻理解 Oracle基础部分:oracle基础使用; oracle用户管理; oracle表管理 Oracle高级部分:oracle表的查询; oracle的函数; oracle数据库管理;oracle 的权角色; pl/sql 编程; 索引,约束和事物。 期望目标: 1 学会安装、启动、卸载oracle 2 使用sql *plus工具 3 掌握oracle用户管理 4 学会在oracle中编写简单的select语句 第1讲:基础语法 内容介绍: 1.为什么学习oracle 2.介绍oracle及其公司的背景 3.学会安装、启动、卸载oracle 4.oracle开发工具 5.Sql*plus的常用命令 6.oracle用户管理 一、主流数据库包括: ?微软:sql server 和 access ?瑞典:mysql AB公司 ?IBM公司:DB2 ?美国sybase公司:sybase ?IBM公司:infromix ?美国oracle公司:oracle(目前最流行的之一) 数据库分类: 小型数据库 中型数据库 大型数据库 mysql Sybase access sql server Oracle informix DB2 负载量在100人内,比如比如在负载日访问量负载可以处理海量数据板,信息系信息留言统。 5000-15000 库 sybase<oracle数据库的安全性能 安全性要求不高 比如商务网站 高,价格也很昂贵~万 元以上 二、oracle安装,启动及卸载 1.系统要求: 操作系统最好为windows2000 内存最好在256M以上 硬盘空间需要2G以上 2.oracle安装会自动的生成sys和system两个用户 2 说明: 1Sys用户 是 超级用户,具有最高权限,具有sysdba角色,create database? 的权限,默认密码是manager 2System 用户 是 管理操作员,权限也很大,具有sysoper角色,没有create ? database权限,默认密码是 change_on_install 3一般讲,对数据库维护,使用system用户登录就可以了 ? 3.启动oracle 右键单击我的电脑->服务和应用程序:服务->启动OracleServiceMYORA1(MYORA1 是安装oracle时起的名字各有不同)和OracleOracleHome90TNSLlistener 4.卸载oracle 1、先关掉oralce,net stop OracleServiceORCL(ORCL是我的实例名字,换成你的),或者去我的电脑服务中关闭 2、开始,,程序,,Oracle - oracle的版本号,我的是10ghome,,Oracle Installation Products,, Universal Installer 卸载oracle 3、进注册表,regedit,删除选择 HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE下所有的key。HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services、HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\App lication这个里面所有有oracle这个字眼的,删除 4、删除c盘\Program Files\Oracle目录的东西以及oracle安装目录下所有的文件以及文件夹 5、环境变量中删除有关oracle的classpath和path ,, 三、oracle开发工具, Sqlplus是Oracle自带的工具软件,主要用于执行sql语句,pl/sql块。,如何使用:,, 1)在开始,程序,oracle,orachome90,, ,,application,development,sql*plus(这个是在dos下操作), 2)在运行栏中输入:sqlplusw或者sqlplus即可, 3)在开始,程序,oracle,orahome90,, Application,development,sql*plus,worksheet,,4)pl/sql,developer,属于第三方软件,主要用于开发,测试,优化oracle,pl/sql,的 存储过程.如:触发器,此软件oracle不带,需要单独安装。,5)oracle的企业管理器(oem,oracle,enterprise,manager),位置在,,开始,程序,oracleoracle,oraclehome90,enterprise,manager,console, ,,即可启动oracle的企业管理器,是一个图形界面环境, , , , 四、Sql*plus的常用命令, 3 1.连接命令 (1) conn[ect] 用法:conn 用户名/密码 @ 网络服务名[as sysdba/sysoper](角色登陆)当 用特权用户身份连接时,必须带上as sysdba 或是 as sysoper 例:conn scott/tiger; show user; 显示当前用户 2.断开连接命令 (2) disc[onnect] 说明:该命令用来断开与当前数据库的连接 (3)passw[ord] 说明:该命令用于修改用户名的密码。如果要想修改其他用户的密码,需要用sys/system登陆。 (4) show user 说明:显示当前用户名 (5) exit 说明:该命令会断开与数据库的连接,同时会退出sql*plus 3.文件操作命令 (1) start和@ 说明:运行sql脚本 案例:sql>@ d:\a.sql 或者 sql>start d:a.sql (2) edit 说明:该命令可以编辑指定的sql脚本。 案例:sql>edit d:\a.sql (3) spool 说明:该命令可以将sql*plus屏幕上的内容输出到指定文件中去。 案例:sql>spool d:\b.sql 并输入 sql>spool off 4(交互式命令 (1), 说明:可以替代变量,而该变量在执行时,需要用户输入。如:sql>select * from emp where job=‘&job;’ 输入job是注意大小写 (2) edit 说明:该命令可以编辑指定的sql脚本 案例: sql>edit d:\a.sql 5.显示和设置环境变量 概述:可以用来控制输出的各种格式,set show 如果希望永久的保存相关的设置,可以去修改 glogin.sql脚本 (1)linesize 说明:设置显示行的宽度,默认是80个字符 sql>show linesize sql>set linesize 90 (2)pagesize 说明:设置每页显示的行数目,默认是14,用法和linesize一样,至于其他环境参数的使用也是大同小异 sql>set pagesize 8 实际得到的不是14/8=2页 而是:14/(8-3)=5页 五Oracle用户的管理 4 1.创建用户 概述:在oracle中要创建一个新的用户使用create user语句,一般是具有dba(数据库管理员)的权限才能使用。 create user 用户名 identified by 密码; 2.给用户修改密码 概述:如果给自己修改密码可以直接使用 sql>password 用户名 如果给别人修改密码则需要具有dba的权限,或是拥有alter user的系统权限 sql>alter user 用户名 identified by 新密码 3.删除用户 概述:一般以dba的身份去删除某个用户,如果用其他用户去删除用户则需要具有 drop user的权限。 比如 drop user 用户名【cascade】 注意:在删除用户时,如果要删除的用户已经创建了表,就需要在删除的时候带一个参数cascade 4.用户管理的综合案例 概述:创建的新用户是没有任何权限的,甚至连登陆的数据库的权限都没有,需要为其指定相应的权限。给一个用户赋权限(connect登陆,dba管理员,resource建表)使用命令grant,回收权限使用命令revoke. 为了给讲清楚用户管理,给大家举一个案例。 案例: 新建一个用户lady 并给该用户赋可登陆可创建表 Sql>create user lady identified by lady123(密码) 受登陆权限:,grant connect to lady 受可创建表:grant resource to lady 可以多个同时授权:grant connect,resource to lady; 注意授权用户级别应该为(dba以上sys/system) 还可以使用PL/SQL工具创建:文件->新建->用户 现在我要把scott用户里面的emp表的权限赋给lady用户但lady只能有对emp查询权限: grant select on emp to lady;(授权用户级别应该:授权本身,或者sys/system) lady 查询emp的方式:select * from scott.emp; 案例:同上我想把update的权限也赋给leng , grant update on emp to leng; 2)我想把emp所有的(增,删,改,查/insert,delete,update,select这四个一起可以用all代替) 操作权限赋给leng grant all on emp to leng;(此时登陆用户为scott) 案例2:这时我想把权限收回来怎么办呢, 这时用关键字revoke(撤回), revoke select on emp from lady; 收回lady的查权限 案例: 5 现在scott希望吧查询emp表权限通过lady用户继续给别的用户, Scott > grant select on emp to lady with grant option; Leng > grant select on scott.emp to 新建用户 案例: scott想把emp表的权限从leng用户赋权给新用户yoyo; Scott> grant select on emp to leng with grant option; Leng> grant select on scott.emp to yoyo; Yoyo> select * from scott.emp; 如果是对象权限,就加入with grant option 例:grant select on emp to xiaoming with grant option 如果是系统管理权限,system 给xiaoming权限时: 例:grant connect to xiaoming with admin option 如果scott把xiaoming 对emp表的查询权限回收,那么xiaohong会怎么样 Scott->xiaoming->xiaohong ,结果就是xiaoming,xiaohong,都不能查询emp表

17,377

社区成员

发帖
与我相关
我的任务
社区描述
Oracle 基础和管理
社区管理员
  • 基础和管理社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧