- 最后登录
- 2015-4-22
- 在线时间
- 122 小时
- 威望
- 133
- 金钱
- 1304
- 注册时间
- 2012-2-22
- 阅读权限
- 50
- 帖子
- 144
- 精华
- 1
- 积分
- 133
- UID
- 254
|
4#
发表于 2012-6-20 00:09:40
- [root@localhost ~]# useradd oratest1 -G oinstall,dba
- [oratest1@localhost ~]$ id oratest1
- uid=501(oratest1) gid=502(oratest1) groups=502(oratest1),500(oinstall),501(dba)
- [oratest1@localhost ~]$
- [oratest1@localhost ~]$ cat .bash_profile
- # .bash_profile
- # Get the aliases and functions
- if [ -f ~/.bashrc ]; then
- . ~/.bashrc
- fi
- # User specific environment and startup programs
- PATH=$PATH:$HOME/bin
- export PATH
- unset USERNAME
- export ORACLE_BASE=/u01/app/oracle
- export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
- #export ORACLE_SID=saup10g
- export ORACLE_SID=SAUP10G
- export PATH=$PATH:$HOME/BIN:$ORACLE_HOME/bin
- export NLS_DATE_FORMAT='YYYY-MM-DD HH24:MI:SS'
- export NLS_LANG="AMERICAN_AMERICA.ZHS16GBK"
- [oratest1@localhost ~]$ . .bash_profile
- [oratest1@localhost ~]$ /u01/app/oracle/product/10.2.0/db_1/bin/lsnrctl status
- LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 20-JUN-2012 00:07:40
- Copyright (c) 1991, 2005, Oracle. All rights reserved.
- Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost.localdomain)(PORT=1521)))
- STATUS of the LISTENER
- ------------------------
- Alias LISTENER
- Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
- Start Date 29-APR-2012 00:18:26
- Uptime 51 days 23 hr. 49 min. 13 sec
- Trace Level off
- Security ON: Local OS Authentication
- SNMP OFF
- Listener Parameter File /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
- Listener Log File /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
- Listening Endpoints Summary...
- (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))
- (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC0)))
- Services Summary...
- Service "PLSExtProc" has 1 instance(s).
- Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
- Service "SAUP10G" has 1 instance(s).
- Instance "SAUP10G", status UNKNOWN, has 1 handler(s) for this service...
- Service "SAUP10G.LK" has 1 instance(s).
- Instance "SAUP10G", status READY, has 1 handler(s) for this service...
- Service "SAUP10GXDB.LK" has 1 instance(s).
- Instance "SAUP10G", status READY, has 1 handler(s) for this service...
- Service "SAUP10G_XPT.LK" has 1 instance(s).
- Instance "SAUP10G", status READY, has 1 handler(s) for this service...
- The command completed successfully
复制代码 |
|