Friday, September 30, 2011

tns error

ORA-12154 : "TNS:could not resolve  service name"

Cause : oracle Net Services cannot locate the connect descriptor specified in the  tnsnames.ora configuration .

>> verify the tnsnames.ora files exists and that accessible .
>>verify that tnsnames.ora file in the location by the TNS_ADMIN environment variable.

ORA-12198: "TNS: could not find  path to destination  "
ORA-12203: "TNS: unable to connect the destination "

>> verify that you have correctly enter the service name of the database that you  want to connect.
>> verify that service name address ADDRESS parameter in the connect descriptor of your  tnsname.ora file are correct .
>> verify that you tnsname.ora  file stored in the directory defined in the TNS_ADMIN environment Variable

Looking forward for your suggestions.. please feel free to write to me.. Your help would definitely help to improve our blog. Chetan Yadav

tnsnames.ora

sample tnsnames.ora

---------------------------------------------------------------------------------------------------

# tnsnames.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.

ORCL =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = xp)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = orcl)
    )
  )

EXTPROC_CONNECTION_DATA =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    )
    (CONNECT_DATA =
      (SID = PLSExtProc)
      (PRESENTATION = RO)
    )
  )


---------------------------------------------------------------------------------------------------



here my DB name is "ORCL"
host is "XP"

The tnsnames.ora file is used to store the net services names. The deafault location is %ORACLE_HOME\network\admin on windows and $ORACLE_HOME/netwrok/admin/on UNIX.

any mistake is there or u wanna give any suggestion so please write to me ............

Thursday, September 22, 2011

Configuring Network settings on Oracle VM






any mistake is there or u wanna give any suggestion so please write to me ............