Oracle数据库实验手册 - 图文 联系客服

发布时间 : 星期三 文章Oracle数据库实验手册 - 图文更新完毕开始阅读6a0a23fb8762caaedc33d405

⑧ 执行数据库配置

此次可以修改 SYS、SYSTEM 等用户密码

⑨ 配置助手执行完后,会出现如下对话框,需以 root 用户执行两条脚本:

⑩ 数据库安装完成

8、验证 ORACLE 已成功安装

① 从 root 用户切换至 oracle 用户,运行 sqlplus 命令,进入 sqlplus 环境,nolog 表 示不连接至数据库

[oracle@node1 ~]$ sqlplus /nolog

SQL*Plus: Release 10.2.0.1.0 - Production on Tue Oct 5 05:54:02 2010 Copyright (c) 1982, 2005, Oracle. rights reserved. SQL>

② SYS 用户已 SYSDBA 身份连接数据库 SQL> conn sys/oracle as sysdba Connected.

③ 查看共享内存分配情况 SQL> show sga

Total System Global Area 167772160 bytes Fixed Size bytes Variable Size Database Buffers Redo Buffers bytes

④ 关闭数据库

SQL> shutdown immediate Database closed. Database dismounted. ORACLE instance shut down.

All

1218292 88082700 bytes 71303168 bytes 7168000

⑤ 启动数据库 SQL> startup

ORACLE instance started.

Total System Global Area 167772160 bytes Fixed Size bytes Variable Size Database Buffers Redo Buffers

1218292 88082700 bytes 71303168 bytes 7168000

bytes Database mounted. Database opened.

⑥ 查看数据库监听器状态

[oracle@node1 ~]$ lsnrctl status

LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 05-OCT-2010 06:05:02 Copyright (c) 1991, 2005, Oracle. Connecting to

(DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1))) STATUS of the LISTENER

------------------------ Alias Version Start Date Uptime Trace Level Security SNMP

Listener Parameter File

/u01/oracle/product/10.2/db_1/network/admin/listen

er.ora Listener Log File Endpoints Summary...

(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))

(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=node1.hnsunrise)(PORT=1521)))

Services Summary...

Service \

Instance \Service \

Instance \ Service \

Instance \, has 1 handler(s) for this service... Service \Instance \, has 1 handler(s) for

All rights reserved.

LISTENER

TNSLSNR for Linux: Version 10.2.0.1.0 - Production 05-OCT-2010 06:04:52 0 days 0 hr. 0 min. 10 sec off

ON: Local OS Authentication OFF

/u01/oracle/product/10.2/db_1/network/log/listener.log Listening

this service... The command completed successfully

如果 ORACLE 监听器没有启动,可以通过 lsnrctl start 命令启动监听器。

实验二 配置 ORACLE 10g 数据库

一、实验环境

操作系统:红帽 Linux.5.5.for.x86.企业级服务

器版 数据库软件:oracle10g 数据库 for x86 linux 版 二、实验过程

1、用网络配置助手 netca 配置 ORACLE 监听服务 ① 在图形界面中,从 root 用户切换至 oracle 用户,然后执行 netca 命令 [root@node1 ~]# su - oracle

[oracle@node1 ~]$ netca

出现如下图示,我们选择第一项,配置监听器

② 我们添加一个新的监听器