急急急 如何在SQL*Plus中,用命令行关闭和开启Oracle数据库服务器?

高人帮忙啊... 高人帮忙啊 展开
 我来答
创作者T07oQckbVq
2019-05-26 · TA获得超过3.6万个赞
知道大有可为答主
回答量:1.4万
采纳率:26%
帮助的人:659万
展开全部
运行sql*plus的步骤
同时按住”win“(一般在ctrl键和alt键中间)+”r“(字母键)
输入”cmd“,之後按回车(enter)
在命令行输入”sqlplus“,进入oracle的sql*plus,输入数据库的用户名和密码进行登录操作
oracle的sql*plus是与oracle进行交互的客户端工具,借助sql*plus可以查看、修改数据库记录。在sql*plus中,可以运行sql*plus命令与sql语句。
百度网友054af3a
2008-09-26 · TA获得超过517个赞
知道小有建树答主
回答量:662
采纳率:0%
帮助的人:222万
展开全部
startup 开启
shutdown immediate 关闭
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
ohmi
推荐于2017-10-05 · TA获得超过258个赞
知道答主
回答量:23
采纳率:0%
帮助的人:0
展开全部
1. Set up your Oracle environment.

If you are using Windows operating system, do the followings:

set ORACLE_HOME=C:\oracle\product\10.2.0.1.0
set ORACLE_SID=xxxxxxx

(Change C:\oracle\product\10.2.0.1.0 to your own Oracle Home)
(Change xxxxxxx to your database name)

If you are using UNIX (e.g. HP-UX) operating system, do the followings:

export ORACLE_SID=xxxxxxx
export ORACLE_HOME=/u01/app/oracle/product/10.2.0.1.0

(Change /u01/app/oracle/product/10.2.0.1.0 to your own Oracle Home)
(Change xxxxxxx to your database name)

2. connect as sysdba

Start SQL*Plus, and connect to the database as sysdba. Use the following command:

connect sys/aaaaaaa@bbbbbbb as sysdba

(aaaaaaa is your password for sys)
(bbbbbbb is the connection string defined in tnsnames.ora)

3. Shut down or start up database.

To shut down, use this command:

shutdowm immediate

If the database has problem, and it hangs, use this command:

shutdown abort

To startup, use this command:

startup

If the database does not use spfile, and the pfile is not in the default location, use this command:

startup pfile=C:\aaa\bbb\ccc\ddd\init.ora

(C:\aaa\bbb\ccc\ddd\init.ora should be the init.ora file’s path of your database)

Good luck!
本回答被提问者和网友采纳
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
收起 更多回答(1)
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式