导航:首页 > 编程大全 > 如何用sql语句关闭数据库

如何用sql语句关闭数据库

发布时间:2025-01-19 15:19:20

❶ mdb数据库如何使用sql语句

1、打开mdb的一个数据;
2、打开主界面,点击表student,可以查看它的内容;
3、点击上方的创建;
4、继续点击查询设计;
5、马上会弹出一个窗口显示表,直接点击关闭;
6、右键图中查询1;
7、在弹出的列表中选择SQL视图;
8、看到SELECT,同时在这个方框内输入图中所示SQL语句;
9、点击左上方的运行按钮;
10、运行sql结果成功。

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

1. Set up your Oracle environment.

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

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

(Change C:\oracle\proct\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/proct/10.2.0.1.0

(Change /u01/app/oracle/proct/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!

❸ 怎样用sql语句删除整个表及数据库

工具/材料:Management Studio。

1、首先在桌面上,点击“Management Studio”图标。

阅读全文

与如何用sql语句关闭数据库相关的资料

热点内容
司法考试哪个网站好 浏览:469
android搜索功能代码 浏览:437
文件名如何没有文字 浏览:601
吃鸡地图资源包文件路径 浏览:267
cad文件转移手机 浏览:733
指定局域网内文件delphi 浏览:638
苹果5s充电接口维修 浏览:913
建行app怎么老是信息填写错误 浏览:832
罗技g903切换配置文件 浏览:649
游戏的数据在哪个英文文件夹 浏览:435
编程一般学什么专业课 浏览:394
不属于数据库系统的主要组成部分 浏览:797
jdl是什么网络词 浏览:247
优酷的缓存视频文件夹 浏览:842
jsp页面获取地址栏参数 浏览:893
怎么带小度app听酷狗音乐的歌 浏览:17
icleanerpro白苹果 浏览:786
2016年1024客户端安卓 浏览:136
win7连接不了网络打印机共享的打印机 浏览:214
为啥电脑发文件是rtf格式 浏览:927

友情链接