Tom:
But TNSPING will not work if the file "tnsnames.ora" is damaged or it could not find it but that works. if TNS_ADMIN is not set it should go to oracle home to read it too.
Would this log help you pinpoint where the problem is. Do yo urecommend uninstall OEM and reinstall. is it configuration of OEM.
-bash-3.00$ emca -config dbcontrol db -repos recreate
STARTED EMCA at Mar 1, 2009 6:59:07 PM
EM Configuration Assistant, Version 10.2.0.1.0 Production
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Enter the following information:
Database SID: traxmeta
Database Control is already configured for the database traxmeta
You have chosen to configure Database Control for managing the database traxmeta
This will remove the existing configuration and the default settings and perform a fresh configuration
Do you wish to continue? [yes(Y)/no(N)]: y
Listener port number: 1521
Password for SYS user:
Password for DBSNMP user:
Password for SYSMAN user:
Email address for notifications (optional):
Outgoing Mail (SMTP) server for notifications (optional):
-----------------------------------------------------------------
You have specified the following settings
Database ORACLE_HOME ................ /usr/oracle/app/trax/oracle/product/10.2.0/db_1
Database hostname ................ dev-trax-db.bsg.sa.tensy.com
Listener port number ................ 1521
Database SID ................ traxmeta
Email address for notifications ...............
Outgoing Mail (SMTP) server for notifications ...............
-----------------------------------------------------------------
Do you wish to continue? [yes(Y)/no(N)]: y
Mar 1, 2009 6:59:44 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /usr/oracle/app/trax/oracle/product/10.2.0/db_1/cfgtoollogs/emca/traxmeta/emca_2009-03-06_06-59-07-PM.log.
Mar 1, 2009 6:59:45 PM oracle.sysman.emcp.util.DBControlUtil stopOMS
INFO: Stopping Database Control (this may take a while) ...
Mar 1, 2009 6:59:46 PM oracle.sysman.emcp.EMReposConfig dropRepository
INFO: Dropping the EM repository (this may take a while) ...
Mar 1, 2009 6:59:46 PM oracle.sysman.emcp.util.PlatformInterface executeCommand
WARNING: Error executing /usr/oracle/app/trax/oracle/product/10.2.0/db_1/sysman/admin/emdrep/bin/RepManager -connect (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=dev-trax-db.bsg.sa.tensy.com)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=traxmeta.bsg.sa.tensy.com))) -repos_user SYSMAN -action drop -verbose -output_file /usr/oracle/app/trax/oracle/product/10.2.0/db_1/cfgtoollogs/emca/traxmeta/emca_repos_drop_2009-03-06_06-59-46-PM.log
Mar 1, 2009 6:59:46 PM oracle.sysman.emcp.EMReposConfig invoke
SEVERE: Error dropping the repository
Mar 1, 2009 6:59:46 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Refer to the log file at /usr/oracle/app/trax/oracle/product/10.2.0/db_1/cfgtoollogs/emca/traxmeta/emca_repos_drop_<date>.log for more details.
Mar 1, 2009 6:59:46 PM oracle.sysman.emcp.EMConfig perform
SEVERE: Error dropping the repository
Refer to the log file at /usr/oracle/app/trax/oracle/product/10.2.0/db_1/cfgtoollogs/emca/traxmeta/emca_2009-03-06_06-59-07-PM.log for more details.
Could not complete the configuration. Refer to the log file at /usr/oracle/app/trax/oracle/product/10.2.0/db_1/cfgtoollogs/emca/traxmeta/emca_2009-03-06_06-59-07-PM.log for more details.
-bash-3.00$
***********************************************************************************************************************
THEN LOOKING AT the LOG
-bash-3.00$ more emca_repos_drop_2009-03-06_06-59-46-PM.log
[06-03-2009 18:59:46] Enter SYS user's password :
[06-03-2009 18:59:46]
[06-03-2009 18:59:46] Enter repository user password :
[06-03-2009 18:59:46]
[06-03-2009 18:59:46] Getting temporary tablespace from database...
[06-03-2009 18:59:46] Found temporary tablespace: TEMP
[06-03-2009 18:59:46] Environment :
[06-03-2009 18:59:46] ORACLE HOME = /usr/oracle/app/trax/oracle/product
/10.2.0/db_1
[06-03-2009 18:59:46] REPOSITORY HOME = /usr/oracle/app/trax/oracle/product
/10.2.0/db_1
[06-03-2009 18:59:46] SQLPLUS = /usr/oracle/app/trax/oracle/product
/10.2.0/db_1/bin/sqlplus
[06-03-2009 18:59:46] SQL SCRIPT ROOT = /usr/oracle/app/trax/oracle/product
/10.2.0/db_1/sysman/admin/emdrep/sql
[06-03-2009 18:59:46] EXPORT = /usr/oracle/app/trax/oracle/product
/10.2.0/db_1/bin/exp
[06-03-2009 18:59:46] IMPORT = /usr/oracle/app/trax/oracle/product
/10.2.0/db_1/bin/imp
[06-03-2009 18:59:46] LOADJAVA = /usr/oracle/app/trax/oracle/product
/10.2.0/db_1/bin/loadjava
[06-03-2009 18:59:46] JAR FILE ROOT = /usr/oracle/app/trax/oracle/product
/10.2.0/db_1/sysman/admin/emdrep/lib
[06-03-2009 18:59:46] JOB TYPES ROOT = /usr/oracle/app/trax/oracle/product
/10.2.0/db_1/sysman/admin/emdrep/bin
[06-03-2009 18:59:46] Arguments :
[06-03-2009 18:59:46] Connect String = (DESCRIPTION=(ADDRESS_LIST=(ADDRESS
=(PROTOCOL=TCP)(HOST=dev-trax-db.bsg.sa.tensy.com)(PORT=1521)))(CONNECT_DAT
A=(SERVICE_NAME=traxmeta.bsg.sa.tensy.com)))
[06-03-2009 18:59:46] Action = drop
[06-03-2009 18:59:46] Repos User = SYSMAN
[06-03-2009 18:59:46] Default tablespace = MGMT_TABLESPACE
[06-03-2009 18:59:46] Default Data file = mgmt.dbf
[06-03-2009 18:59:46] Dflt Dfile Init size = 20m
[06-03-2009 18:59:46] Dflt Dfile Ext size = 20m
[06-03-2009 18:59:46] ECM tablespace = MGMT_ECM_DEPOT_TS
[06-03-2009 18:59:46] ECM Data file = mgmt_ecm_depot1.dbf
[06-03-2009 18:59:46] ECM Dfile Init size = 100m
[06-03-2009 18:59:46] ECM Dfile Ext size = 100m
[06-03-2009 18:59:46] TEMP tablespace = TEMP
[06-03-2009 18:59:46] Create options = 3
[06-03-2009 18:59:46] Verbose output = 1
[06-03-2009 18:59:46] Output File = /usr/oracle/app/trax/oracle/product
/10.2.0/db_1/cfgtoollogs/emca/traxmeta/emca_repos_drop_2009-03-06_06-59-46-PM.lo
g
[06-03-2009 18:59:46] Repos creation mode = CENTRAL
[06-03-2009 18:59:46] MetaLink user name = _NOT_AVAILABLE_
[06-03-2009 18:59:46] MetaLink URL =
http://updates.oracle.com [06-03-2009 18:59:46] Export Directory = /usr/oracle/app/trax/oracle/product
/10.2.0/db_1/sysman/log
[06-03-2009 18:59:46] Import Directory = /usr/oracle/app/trax/oracle/product
/10.2.0/db_1/sysman/log
[06-03-2009 18:59:46] Checking SYS Credentials ...
[06-03-2009 18:59:46] File - /tmp/AJg9ljsznf/AV6rPap5wK.sql.
SQL*Plus: Release 10.2.0.1.0 - Production on Fri Mar 1 18:59:46 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Enter user-name: ERROR:
ORA-12154: TNS:could not resolve the connect identifier specified
Enter user-name: SP2-0306: Invalid option.
Usage: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER}]
where <logon> ::= <username>[/<password>][@<connect_identifier>] | /
Enter user-name: SP2-0306: Invalid option.
Usage: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER}]
where <logon> ::= <username>[/<password>][@<connect_identifier>] | /
SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus
[06-03-2009 18:59:46] Return code = 1.
[06-03-2009 18:59:46] Failed
[06-03-2009 18:59:46] SYS credentials or connect string is invalid.
-bash-3.00$