一 启动和停止数据库1.启动数据库1.1 登录。XX-laptop:~$ sqlplus "scott/tiger as sysdba"将出现如下连接数据库信息:SQL*Plus: Release 10.2.0.1.0 - Production on Mon Aug 9 15:30:16 2010Copyright (c) 1982, 2005, Oracle. All rights reserved.Connected to an idle instance.SQL>表明登录数据库系统成功。1.2 启动数据库。运行 startup 命令启动数据库。SQL> startupORACLE instance started.Total System Global Area 603979776 bytesFixed Size 1220796 bytesVariable Size 171970372 bytesDatabase Buffers 423624704 bytesRedo Buffers 7163904 bytesDatabase mounted.Database opened.SQL>表示数据库正常启动。2.关闭数据库2.1 登录。与1.1相同,不再赘述。2.2 成功登录数据库系统后,运行 shudown 命令关闭数据库。SQL> shutdown immediateDatabase closed.Database dismounted.ORACLE instance shut down.表明数据库已关闭。二 启动和停止监听程序Oracle 的监听程序主要是为客户端的连接提供接口,在控制台窗口键入如下命令:1 启动监听程序。注意:不是在sql中,而是在bsh等中。XX-laptop:~$ lsnrctl将出现如下监听程序信息:LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 09-AUG-2010 15:37:47Copyright (c) 1991, 2005, Oracle. All rights reserved.Welcome to LSNRCTL, type "help" for information.LSNRCTL> start将出现监听程序的一系列启动和配置情况信息列表。信息行的最后一行是“The command completed successfully”字样时,监听程序启动成功。2. 关闭 Oracle10g 监听程序 :运行 stop 命令关闭监听程序。LSNRCTL> stop信息行的最后一行是“The command completed successfully”字样时,监听程序停止成功。=====================================================================三 启动和停止iSQL*Plus。1 启动iSQL*Plus。XX-laptop:~$ isqlplusctl startiSQL*Plus 10.2.0.1.0Copyright (c) 2003, 2005, Oracle. All rights reserved.Starting iSQL*Plus ...iSQL*Plus started.看到 iSQL*Plus started.表示iSQL*Plus启动成功。2 关闭iSQL*Plus。XX-laptop:~$ isqlplusctl stopiSQL*Plus 10.2.0.1.0Copyright (c) 2003, 2005, Oracle. All rights reserved.Stopping iSQL*Plus ...iSQL*Plus stopped.看到 iSQL*Plus stopped.表示iSQL*Plus停止成功。=====================================================================四 使用企业管理器1 启动控制台XX-laptop:~$emctl start dbconsoleTZ set to PRCOracle Enterprise Manager 10g Database Control Release 10.2.0.1.0Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.http://xhlh-laptop:1158/em/console/aboutApplicationStarting Oracle Enterprise Manager 10g Database Control ......................... started.------------------------------------------------------------------Logs are generated in directory /opt/ora10/product/10.2.0/db_1/xhlh-laptop_openlab/sysman/log表明启动成功。2.停止控制台:XX-laptop:~$ emctl stop dbconsoleTZ set to PRCOracle Enterprise Manager 10g Database Control Release 10.2.0.1.0Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.http://xhlh-laptop:1158/em/console/aboutApplicationStopping Oracle Enterprise Manager 10g Database Control ...... Stopped.表明关闭成功。在Linux下使用sqlplus方向键的使用功能Linux下mysql error #1036 - Table "xxxx" is read only解决方法相关资讯 Ubuntu教程 Ubuntu 10.04
- 经典Linux操作系统:Ubuntu 10.04 (10/07/2014 10:00:12)
- Ubuntu 10.04编译LTP (03/21/2013 21:05:34)
- 让Ubuntu 12.10支持RAR和7Z文件解 (11/15/2012 18:51:50)
| - Ubuntu教程 - 使用Ubuntu拷贝CD和 (12/18/2013 14:38:16)
- 完美安装Ubuntu 12.10最新AMD显卡 (11/27/2012 08:17:47)
- Win 7硬盘安装Ubuntu 12.10 (11/05/2012 13:30:34)
|
本文评论 查看全部评论 (0)