win7 OS
oracle 11.2.0C:\Users\Tequila>emctl status dbconsole
Can't locate CompEMdbconsole.pm in @INC (@INC contains: %s_javapOracleHome%/sysman/admin/scripts %s_javapOracleHome%/bin F:\app\Tequila\product\11.2.0\dbhome_1\\perl\bin F:\app\Tequila\product\11.2.0\dbhome_1\perl\lib F:\app\Tequila\product\11.2.0\dbhome_1\perl\lib\site_perl F:\app\Tequila\product\11.2.0\dbhome_1\perl\site\lib F:\app\Tequila\product\11.2.0\dbhome_1\sysman\admin\scripts F:\app\Tequila\product\11.2.0\dbhome_1\sysman\admin\scripts\Net-DNS-0.48\lib F:\app\Tequila\product\11.2.0\dbho
me_1\bin F:/app/Tequila/product/11.2.0/dbhome_1/perl/lib F:/app/Tequila/product/11.2.0/dbhome_1/perl/site/lib .) at F:\app\Tequila\product\11.2.0\dbhome_1\bin/EmctlCommon.pm line 598.
C:\Users\Tequila>emctl start dbconsol
Can't locate CompEMdbconsole.pm in @INC (@INC contains: %s_javapOracleHome%/sysman/admin/scripts %s_javapOracleHome%/bin F:\app\Tequila\product\11.2.0\dbhome_1\\perl\bin F:\app\Tequila\product\11.2.0\dbhome_1\perl\lib F:\app\Tequila\product\11.2.0\dbhome_1\perl\lib\site_perl F:\app\Tequila\product\11.2.0\dbhome_1\perl\site\lib F:\app\Tequila\product\11.2.0\dbhome_1\sysman\admin\scripts F:\app\Tequila\product\11.2.0\dbhome_1\sysman\admin\scripts\Net-DNS-0.48\lib F:\app\Tequila\product\11.2.0\dbho
me_1\bin F:/app/Tequila/product/11.2.0/dbhome_1/perl/lib F:/app/Tequila/product/11.2.0/dbhome_1/perl/site/lib .) at F:\app\Tequila\product\11.2.0\dbhome_1\bin/EmctlCommon.pm line 639.sqlplus /nolog
conn sys/xxxxx as sysdba
$emca -deconfig dbcontrol db -repos dropCould not connect to SYS/(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=karmalab)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=Alex))): ORA-12541: TNS:no listener (DBD ERROR: OCIServerAttach)$emca -config dbcontrol db -repos create
每做一次,都会出现相同的错误如下,就是有一个同义词已经存在,需要删除。这一次出现这个删了以后,再运行出现另一个同义词已经存在的错误。都不知道到底要删除多少个同义词,才能继续往下走
ORA-00955: name is already used by an existing objectlsnrctl status 运行这个没有问题
C:\Users\Tequila>lsnrctl status
 
LSNRCTL for 32-bit Windows: Version 11.2.0.1.0 - Production on 27-JAN-2013 16:17:46
 
Copyright (c) 1991, 2010, Oracle.  All rights reserved.
 
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
 STATUS of the LISTENER
 ------------------------
 Alias                     LISTENER
 Version                   TNSLSNR for 32-bit Windows: Version 11.2.0.1.0 - Production
 Start Date                27-JAN-2013 16:16:24
 Uptime                    0 days 0 hr. 1 min. 23 sec
 Trace Level               off
 Security                  ON: Local OS Authentication
 SNMP                      OFF
 Listener Parameter File   F:\app\Tequila\product\11.2.0\dbhome_1\network\admin\listener.ora
 Listener Log File         f:\app\tequila\diag\tnslsnr\karmalab\listener\alert\log.xml
 Listening Endpoints Summary...
   (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
   (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
 Services Summary...
 Service "AlexXDB" has 1 instance(s).
   Instance "alex", status READY, has 1 handler(s) for this service...
 Service "CLRExtProc" has 1 instance(s).
   Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
 Service "alex" has 1 instance(s).
   Instance "alex", status READY, has 1 handler(s) for this service...
 The command completed successfully
 
C:\Users\Tequila>lsnrctl stop/START/reload 运行这三个都要相同的错
C:\Users\Tequila>lsnrctl stopLSNRCTL for 32-bit Windows: Version 11.2.0.1.0 - Production on 27-JAN-2013 17:17:36Copyright (c) 1991, 2010, Oracle.  All rights reserved.Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
TNS-01190: The user is not authorized to execute the requested listener commandC:\Users\Tequila>我的注册表里HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\OracleOraDb11g_home1TNSListener有ImagePath,键值是F:\app\Tequila\product\11.2.0\dbhome_1\BIN\TNSLSNR 我的数据库名是ALEX
C:\Users\Tequila>tnsping ALEX;TNS Ping Utility for 32-bit Windows: Version 11.2.0.1.0 - Production on 27-JAN-2013 17:03:37Copyright (c) 1997, 2010, Oracle.  All rights reserved.Used parameter files:
F:\app\Tequila\product\11.2.0\dbhome_1\network\admin\sqlnet.oraTNS-03505: Failed to resolve name
sqlnet.ora code:
 # sqlnet.ora Network Configuration File: F:\app\Tequila\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
 # Generated by Oracle configuration tools.
 
# This file is actually generated by netca. But if customers choose to 
 # install "Software Only", this file wont exist and without the native 
 # authentication, they will not be able to connect to the database on NT.
 
SQLNET.AUTHENTICATION_SERVICES= (NTS)
 
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
 listener.ora code:
 # listener.ora Network Configuration File: F:\app\Tequila\product\11.2.0\dbhome_1\network\admin\listener.ora
 # Generated by Oracle configuration tools.
 
SID_LIST_LISTENER =
   (SID_LIST =
     (SID_DESC =
       (SID_NAME = CLRExtProc)
       (ORACLE_HOME = F:\app\Tequila\product\11.2.0\dbhome_1)
       (PROGRAM = extproc)
       (ENVS = "EXTPROC_DLLS=ONLY:F:\app\Tequila\product\11.2.0\dbhome_1\bin\oraclr11.dll")
     )
   )
 
LISTENER =
   (DESCRIPTION_LIST =
     (DESCRIPTION =
       (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
       (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
     )
   )
 
ADR_BASE_LISTENER = F:\app\Tequila
 
tnsnames.ora code:
 # tnsnames.ora Network Configuration File: F:\app\Tequila\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
 # Generated by Oracle configuration tools.
 
LISTENER_ALEX =
   (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
 ORACLR_CONNECTION_DATA =
   (DESCRIPTION =
     (ADDRESS_LIST =
       (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
     )
     (CONNECT_DATA =
       (SID = CLRExtProc)
       (PRESENTATION = RO)
     )
   )
 
ALEX =
   (DESCRIPTION =
     (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
     (CONNECT_DATA =
       (SERVER = DEDICATED)
       (SERVICE_NAME = Alex)
     )
   )
 
C:\Windows\System32\drivers\etc\hosts code
 # Copyright (c) 1993-2009 Microsoft Corp.
 #
 # This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
 #
 # This file contains the mappings of IP addresses to host names. Each
 # entry should be kept on an individual line. The IP address should
 # be placed in the first column followed by the corresponding host name.
 # The IP address and the host name should be separated by at least one
 # space.
 #
 # Additionally, comments (such as these) may be inserted on individual
 # lines or following the machine name denoted by a '#' symbol.
 #
 # For example:
 #
 #      102.54.94.97     rhino.acme.com          # source server
 #       38.25.63.10     x.acme.com              # x client host
 
# localhost name resolution is handled within DNS itself.
 127.0.0.1       localhost
 # ::1             localhost