oracle 11g dbconsole 无法启动
安装oracle 11g以后 无法启动dbconsole 。通过两天的努力终于解决了
1 发现日志报 端口5520已经被占用,无法使用,打开 /%ORACLE_HOME%/oc4j/je22/OC4J_DBConsole_localhost_orcl/config/rmi.xml
发现 port="5520" ssl-port="5520" 端口号使用相同,于是修改 port="5521" ssl-port="5522"
2
2009-10-26 17:33:14
Thread-2596 ERROR main: nmectla_agentctl: Error connecting to https://localhost:3938/emd/main. Returning status code 1
2009-10-27 09:57:38 Thread-1900 ERROR main: nmectl.c: nmectl_validateTZRegion, agentTZoffset =480,and testTZoffset for GMT:0 do not match
2009-10-27 09:57:39 Thread-1900 ERROR main: nmectl.c: nmectl_validateTZRegion, agentTZoffset =480,and testTZoffset for GMT:0 do not match
2009-10-27 09:58:09 Thread-2832 WARN http: snmehl_connect: connect failed to (localhost:3938): 由于目标机器积极拒绝,无法连接。
(error = 10061)
好像是时区设置的不正确
把\%ORACLE_HOME%\localhost_orcl\sysman\config \emd.properties文件的最后一项参数由agentTZRegion=GMT 改成:agentTZRegion=Asia/Shanghai 正确的时区设置 ,保存后重启oracledbconsoleSID服务。
其实很简单,但是在解决问题的时候没有想到,这一点!
相关文档:
显示表信息
1,显示特定用户的表
DAT_TABLES 可以显示所有数据库表的详细信息
ALL_TABLES 可以显示用户可以访问的所有表信息
USER_TABLES 可以显示当前用户所有表的信息
SELECT table_name,num_rows,pct_free,blocks,chain_cnt
from dba_tables WHERE owner=’SCOTT’;
Table_name用于标识表名,n ......
server A: 10.85.10.44 SID=orcl
target server B: 10.85.10.43
oracle version:10.2.0.1
OS platform : windows XP
Data Guard默认是maximize performance, 可以用以下语句来进行模式间的切换。
ALTER DATABASE SET STANDBY DATABASE TO MAXIMIZE {PROTECTION | AV ......
1 . set database to archivelog mode
Sql代码
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount;
ORACLE&n ......