Oracle基础(2)--管理工具
1 简介
- SQLPLUS
提供了数据库的专用接口:
执行数据库管理操作
执行SQL命令用来查询,插入,更新和删除数据库中的数据 - SQL Developer
是用于访问Oracle数据库实例的图形用户界面
支持SQL和PL / SQL开发
在Oracle数据库的默认安装中可用
他能去进项相关的ORACLE数据库管理操作 - Oracle Enterprise Manager Database Express
- Oracle Enterprise Manager Cloud Control
2 使用
2.1 sqlplus
- sqlplus shell脚本
sqlplus hrxt/hrxt <<EOF
select count(*) from employees;
update employees set salary = salary+1;
commit;
quit
EOF
- sqlplus sql文件
select * from departments where location_id = 1400;
quit
sqlplus hrxt/hrxt @script.sql
//隐去开头初始化信息 -s
sqlplus -s hrxt/hrxt @script.sql
2.2 SQL Developer
- Oracle SQL Developer: 连接

- Oracle SQL Developer: DBA 操作界面

2.3 EM
- Oracle Enterprise Manager Database Express 结构

lsnrctl start(确保监听是启动)
查询当前端口状态:
select dbms_xdb_config.gethttpsport() from dual;
设置EM express端口
//设置https端口的端口号
exec dbms_xdb_config.setHTTPSPort(5500);
http://ip:5500/em
2.4 EMCC
-
Enterprise Manager Cloud Control 目标和类型
Enterprise Manager Cloud Control 可以监控,管理,维护许多不同类型的目标,包括:
Oracle databases 数据库
Oracle Database Listener 监听
Oracle Fusion Middleware products 中间件
Oracle Application Server 应用服务
Oracle WebLogic Server WebLogic
Oracle applications, including E-Business Suite, SOA, Siebel, and PeopleSoft 商业套件
Exadata and Exalogic 一体机
Cloud Control Components: OMR and OMS 云端产品
Third-party products 第三方产品 比如说MYSQL PGSQL等 -
Oracle Enterprise Manager Cloud Control 组件

- 控制 Enterprise Manager Cloud Control 服务

-
启动Enterprise Manager Cloud Control 服务
1 启动存储库数据库侦听器。
2 启动存储库数据库实例。
3 启动OMS。
4 在OMS /存储库服务器上启动代理。
5 在受管服务器上启动代理。 -
停止 Enterprise Manager Cloud Control
1 在受管服务器上停止代理。
2 在OMS /存储库服务器上停止代理。
3 停止OMS。
4 停止存储库数据库实例。

浙公网安备 33010602011771号