- 论坛徽章:
- 0
|
设置环境变量:
[oracle@supxmen.cublog.cn root]$ cd /home/oracle/infra1012/bin/
[oracle@supxmen.cublog.cn bin]$ pwd
/home/oracle/infra1012/bin
[oracle@supxmen.cublog.cn bin]$ export ORACLE_HOME=/home/oracle/infra1012
[oracle@supxmen.cublog.cn bin]$ export ORACLE_SID=supxmen
[oracle@supxmen.cublog.cn bin]$ echo $ORACLE_HOME
/home/oracle/infra1012
[oracle@supxmen.cublog.cn bin]$ echo $ORACLE_SID
supxmen
启动数据库链接:
[oracle@supxmen.cublog.cn bin]$ ./sqlplus /nolog
SQL*Plus: Release 10.1.0.4.2 - Production on Wed Feb 8 12:52:51 2006
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> conn / as sysdba
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 281018368 bytes
Fixed Size 778968 bytes
Variable Size 229645608 bytes
Database Buffers 50331648 bytes
Redo Buffers 262144 bytes
Database mounted.
Database opened.
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.4.2 - Production
With the Partitioning, OLAP and Data Mining options
[oracle@supxmen.cublog.cn bin]$
启动数据库监听:
[oracle@supxmen.cublog.cn bin]$
[oracle@supxmen.cublog.cn bin]$ ./lnsrctl start
bash: ./lnsrctl: 没有那个文件或目录
[oracle@supxmen.cublog.cn bin]$ ./lsnrctl start
LSNRCTL for Linux: Version 10.1.0.4.2 - Production on 08-FEB-2006 12:56:28
Copyright (c) 1991, 2004, Oracle. All rights reserved.
Starting /home/oracle/infra1012/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 10.1.0.4.2 - Production
System parameter file is /home/oracle/infra1012/network/admin/listener.ora
Log messages written to /home/oracle/infra1012/network/log/listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=hirisun-linux)(PORT=1521)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=hirisun-linux)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 10.1.0.4.2 - Production
Start Date 08-FEB-2006 12:56:28
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /home/oracle/infra1012/network/admin/listener.ora
Listener Log File /home/oracle/infra1012/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=hirisun-linux)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
[oracle@supxmen.cublog.cn bin]$
启动基础架构服务控制台:(用一样的方法启动Portal服务控制台)
[oracle@supxmen.cublog.cn bin]$ pwd
/home/oracle/infra1012/bin
[oracle@supxmen.cublog.cn bin]$ ./emctl start iasconsole
TZ set to PRC
Oracle Enterprise Manager 10g Application Server Control Release 10.1.2.0.2
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
http://hirisun-linux:1156/emd/console/aboutApplication
Starting Oracle Enterprise Manager 10g Application Server Control ....... started successfully.
[oracle@supxmen.cublog.cn bin]$
启动基础架构服务:(用一样的方法启动Portal服务)
[oracle@supxmen.cublog.cn opmn]$ cd bin
[oracle@supxmen.cublog.cn bin]$ pwd
/home/oracle/infra1012/opmn/bin
[oracle@supxmen.cublog.cn bin]$ ./opmnctl startall
opmnctl: starting opmn and all managed processes...
[oracle@supxmen.cublog.cn bin]$ ./opmnctl status
Processes in Instance: infra1012.hirisun-linux
-------------------+--------------------+---------+---------
ias-component | process-type | pid | status
-------------------+--------------------+---------+---------
DSA | DSA | N/A | Down
LogLoader | logloaderd | N/A | Down
dcm-daemon | dcm-daemon | 3599 | Alive
OC4J | oca | 3536 | Alive
OC4J | OC4J_SECURITY | 3538 | Alive
HTTP_Server | HTTP_Server | 3355 | Alive
OID | OID | 3380 | Alive
[oracle@supxmen.cublog.cn bin]$
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/12347/showart_83479.html |
|