實例管理
阿新 • • 發佈:2017-08-06
sql nbsp config justify 沒有 name lnp netstat etc
監聽
啟動監聽:
$ netstat -tlnp | grep 1521
$ lsnrctl
LSNRCTL> help
$ lsnrctl status
$ lsnrctl stop
$ netstat -tln | grep 1521
快速動態註冊:(可選)
$ sqlplus / as sysdba
SQL> alter system register;
$ lsnrctl status
em
啟動EM:
$ netstat -tlnp | grep 1158
$ echo $ORACLE_SID
orcl
$ echo $ORACLE_UNQNAME
orcl
如果沒有設置ORACLE_UNQNAME:
$ export ORACLE_UNQNAME=orcl
或
$ vi .bash_profile
export ORACLE_UNQNAME=orcl
$ . .bash_profile
確保主機名正常解析:
$ cat /etc/hosts
$ emctl status dbconsole
$ emctl stop dbconsole
$ emctl start dbconsole
查看oem的端口:
$ find /u01 -name portlist.ini
重新配置em:
$ emca
$ emca -deconfig dbcontrol db
$ emca -config dbcontrol db
實例管理