Alex刺客

Dancing fingers, damage world. -- 舞动手指,破坏世界.

  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  57 随笔 :: 0 文章 :: 76 评论 :: 0 Trackbacks
 1 /**
 2  *    Project Name : Oracle_Database_11g_Study_Notes
 3  *    File Name : 1.Start_Login.sql
 4  *    Author : Alex刺客
 5  *    Date : June 21,2010
 6  */
 7 
 8http://www.oracle.com/technology/global/cn/pub/articles/smiley-11gr1-install.html
 9 
10 1.启动和停止监听器:
11     监听器接受客户端的连接请求,并在验证证书后创建数据库连接。要使用 OEM,必须先启动监听器。
12     [oracle@localhost ~]$  lsnrctl start
13     [oracle@localhost ~]$  lsnrctl stop
14 
15 2.启动和停止数据库:
16     2.1.启动和停止数据库的最简单方法是从 OEM 控制台启动和停止。要从命令行执行此操作,请在以 oracle 身份登录后使用 SQL*Plus,如下所示:
17     启动:
18         [oracle@localhost ~]$ sqlplus
19         Enter user-name: / as sysdba
20         SQL> startup
21         SQL> exit
22 
23     停止:
24         [oracle@localhost ~]$  sqlplus
25         Enter user-name: / as sysdba
26         SQL> shutdown immediate
27         SQL> exit
28 
29     2.2.以下命令也可以启动和停止数据库
30         [oracle@localhost ~]$  dbstart
31         [oracle@localhost ~]$  dbshut
32 
33 3.启动和停止 Oracle 企业管理器数据库控制:
34     [oracle@localhost ~]$  emctl start dbconsole
35     [oracle@localhost ~]$  emctl stop dbconsole
36 
37 4.Oracle相关管理工具
38 
39     Net Manager
40     [oracle@localhost ~]$  netmgr
41 
42     Net Configuration Assistant
43     [oracle@localhost ~]$  netca
44 
45     Database Configuration assistant
46     [oracle@localhost ~]$  dbca
47 
48     Database Upgrade Assistant
49     [oracle@localhost ~]$  dbua
50 
51     Locale Builder
52     [oracle@localhost ~]$  lbuilder
53 
54 5.登录SQLPlus
55     [oracle@localhost ~]$  sqlplus username/password@要连接的数据库(不是IP在Net Configuration Assistant里配置的)
56  
57 6.运行SQL脚本
58     SQL> @~/test.sql
59 
60 7.断开数据库连接
61     SQL> DISCONNECT
62    
63 8.重新连接上数据库
64     SQL> CONNECT
65 
66 9.退出
67     SQL> EXIT
68 
posted on 2010-06-21 04:03 Alex刺客 阅读(540) 评论(0)  编辑  收藏 所属分类: Oracle11g Study Notes

只有注册用户登录后才能发表评论。


网站导航: