简体   繁体   English

windows启动时如何防止oracle数据库启动?

[英]How to prevent oracle database to start when windows boots up?

I installed Oracle database 11g r2 express in my windows machine.我在我的 Windows 机器上安装了 Oracle 数据库 11g r2 express。 But, whenever I start windows, Oracle gets started and I have to stop the database.但是,每当我启动 Windows 时,Oracle 就会启动,我必须停止数据库。 How can I prevent it from starting at the start up of windows?如何防止它在 Windows 启动时启动? i tried to find out it in startup application lists, but it is not there.我试图在启动应用程序列表中找到它,但它不存在。

I am currently using windows 8.1.我目前使用的是 Windows 8.1。

Thank you.谢谢你。

Go to Control Panel, Administrative Tools, then Services.转到控制面板,管理工具,然后服务。

Look for a Service called OracleServiceXE.查找名为 OracleServiceXE 的服务。 It should have "Automatic" Startup Type.它应该具有“自动”启动类型。 Change it to Manual or Disabled by right-clicking it and then choosing Properties.通过右键单击它然后选择属性将其更改为手动或禁用。

Works for me on Windows XP and 7. I don't have a Windows 8 machine, but it should be the same steps.在 Windows XP 和 7 上为我工作。我没有 Windows 8 机器,但应该是相同的步骤。

I think the solution provided here is useful:我认为这里提供的解决方案很有用:

https://dba.stackexchange.com/questions/62699/revised-question-how-do-i-prevent-oracle-12c-database-from-starting-on-machine https://dba.stackexchange.com/questions/62699/revised-question-how-do-i-prevent-oracle-12c-database-from-starting-on-machine

You have two solutions:你有两个解决方案:

1- In Windows OS's in the run, type services.msc and Enter, from the list of services find OracleService and right click and choose Properties. 1- 在 Windows 操作系统的运行中,键入 services.msc 并回车,从服务列表中找到 OracleService 并右键单击并选择属性。 In the General tab in the Startup, Type section choose Manual and click OK and exit.在启动的常规选项卡中,类型部分选择手动,然后单击确定并退出。 From now on your database doesn't start automatically by your machine's start, but whenever you want to start it you have to go to services.msc and start it manually.从现在开始,您的数据库不会在机器启动时自动启动,但无论何时要启动它,您都必须转到 services.msc 并手动启动它。 You can also do this from Windows Task Manager(from Services tab).您也可以从 Windows 任务管理器(从服务选项卡)执行此操作。

2- Let the Startup Type to be automatic in "services.msc". 2-让“services.msc”中的启动类型为自动。 Open the Windows command prompt (Admin) and type this statement (instead of ORCL use your SID name).打开 Windows 命令提示符 (Admin) 并键入此语句(而不是 ORCL 使用您的 SID 名称)。

oradim -edit -sid ORCL -startmode manual

Now your database is in a state that idiomatically called idle.现在您的数据库处于惯用称为空闲的状态。 You can start your database by logging to SQL*Plus with sysdba privilege and then type startup command.您可以通过使用 sysdba 权限登录到 SQL*Plus 来启动数据库,然后键入startup命令。

In Oracle 12c or higher just go to Windows Registry在 Oracle 12c 或更高版本中,只需转到 Windows 注册表

HKEY_LOCAL_MACHINE > SOFTWARE > ORACLE > KEY_OraDB19Home1 > ORA_ < SID > _AUTOSTART HKEY_LOCAL_MACHINE > 软件 > ORACLE > KEY_OraDB19Home1 > ORA_ < SID > _AUTOSTART

Change the parameter from TRUE to FALSE将参数从 TRUE 更改为 FALSE

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Windows Server启动时,如何自动启动ruby sinatra程序? - How do you automatically start my ruby sinatra program when windows server boots? 我如何检测 windows 何时启动并使用.Net / C# 捕获它? - How can i detect when windows boots up and capture it using .Net / C#? Windows启动时在后台运行批处理文件 - Running Batch File in background when windows boots up 系统启动时如何使Windows服务变为“正在运行” - How to make Windows service become “Running” when the system boots 如何使用 SQL-Developer IDE 在 Windows 10 上安装和启动 Oracle Database Express Edition (XE) - How to install and start Oracle Database Express Edition (XE) on Windows 10 with SQL-Developer IDE 如何开发在Windows启动之前运行的GUI程序? - How to develop a GUI program that runs before Windows boots? 在nbackup备份数据库时防止Windows关闭 - Prevent Windows shutdown when nbackup is backuping database 由bat文件制成的自动启动exe应用程序,可在计算机启动时开始运行 - Auto start exe application made from a bat file to start running when computer boots 手动写入页表条目 (PTE) 时如何防止 Windows kernel 锁定 - How to prevent Windows kernel locking up when manually writing to page table entries (PTE) 如何使用python启动pc(windows) - How to start up pc (windows) using python
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM