When I tried to perform an exp test in my notebook today, I suddenly reported an error:
ORA-03505:TNS:The specified connection identifier cannot be resolved.
Use tnspingBelow:
C: \> tnsping wwl;
TNS Ping Utilityfor 64-bit Windows: Version 10.2.0.4.0-Production on 21-APR-2012 18:27:52
Copyright (c) 1997,200 7, Oracle. All rights reserved.
Used parameterfiles:
C: \ oracle \ product \ 10.2.0 \ db_1 \ network \ admin \ sqlnet. ora
TNS-03505: failure to resolve name
C: \>
I googled the Internet and said there was a problem with the environment variable. The environment variables are a bit problematic.OracleOfPathIs placed in the middle, the official requirement isOracleOfPathPut it at the beginning. Note that if you modify the environment variables on the interface, you need to restart the computer. This is too troublesome. Directly inDosYou do not need to restart the instance.
1.Modify on the page
My computer->Attribute->Advanced->Environment variable. Find the PATH and change the sequence in it. Take a look.ORACLE_HOMEIf this variable does not exist, add it.
In this way, you need to restart the computer.
2.InDOSModify
C: \> echo % path %
C: \ oracle \ Client; C: \ oracle \ product \ 10.2.0 \ db_1 \ bin; C: \ ProgramFiles \ Common Files \ Microsoft Shared \ Wi
Ndows Live; C: \ ProgramFiles (x86) \ Common Files \ Microsoft Shared \ Windows Live; C: \ Program Files (x86 )\
CommonFiles \ NetSarang; C: \ Windows \ system32; C: \ Windows \ System32 \ Wbem; C: \ Windows \ System32 \ W
IndowsPowerShell \ v1.0 \; C: \ ProgramFiles (x86) \ Windows Live \ Shared; C: \ Program Files (x86) \ Lenovo \ Acce
SsConnections \; C: \ Program Files (x86) \ UltraEdit \; C: \ Program Files (x86) \ DBank \ ClickUp; C: \ Program Fi
Les (x86) \ DBank \ ClickUp
C:/>Set PATH = C: \ oracle \ product \ 10.2.0 \ db_1 \ bin; C: \ oracle \ Client;C: \ ProgramFiles \ Common Files \ Microsoft Shared \ Wi
NdowsLive; C: \ Program Files (x86) \ Common Files \ Microsoft Shared \ WindowsLive; C: \ Program Files (x86 )\
CommonFiles \ NetSarang; C: \ Windows \ system32; C: \ Windows \ System32 \ Wbem; C: \ Windows \ System32 \ W
IndowsPowerShell \ v1.0 \; C: \ ProgramFiles (x86) \ Windows Live \ Shared; C: \ Program Files (x86) \ Lenovo \ Acce
SsConnections \; C: \ Program Files (x86) \ UltraEdit \; C: \ Program Files (x86) \ DBank \ ClickUp; C: \ Program Fi
Les (x86) \ DBank \ ClickUp
C:/Documents andSettings/user. HQ-TEXT>Echo % PATH %
C: \ oracle \ product \ 10.2.0 \ db_1 \ bin; C: \ oracle \ Client; C: \ ProgramFiles \ Common Files \ Microsoft Shared \ Wi
NdowsLive; C: \ Program Files (x86) \ Common Files \ Microsoft Shared \ WindowsLive; C: \ Program Files (x86 )\
CommonFiles \ NetSarang; C: \ Windows \ system32; C: \ Windows \ System32 \ Wbem; C: \ Windows \ System32 \ W
IndowsPowerShell \ v1.0 \; C: \ ProgramFiles (x86) \ Windows Live \ Shared; C: \ Program Files (x86) \ Lenovo \ Acce
SsConnections \; C: \ Program Files (x86) \ UltraEdit \; C: \ Program Files (x86) \ DBank \ ClickUp; C: \ Program Fi
Les (x86) \ DBank \ ClickUp
C: \> tnspingwwl
TNS Ping Utilityfor 64-bit Windows: Version 10.2.0.4.0-Production on 21-APR-2012 18:37:12
Copyright (c) 1997,200 7, Oracle. All rights reserved.
Used parameterfiles:
C: \ oracle \ product \ 10.2.0 \ db_1 \ network \ admin \ sqlnet. ora
Used TNSNAMES adapter to resolve the alias
Attemptingto contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP) (HOST = ThinkPad) (PO
RT = 1521) (CONNECT_DATA = (SERVICE_NAME = WWL )))
OK (30 msec)
C: \>InDOSAfter the window is modified, we can check"My computer"->"Attribute"->"Advanced"->"Environment Variable"Set inPATHValue, which is automatically modified. Don't worryDOSChanges in the window will affect the value of the environment variable,DOSThe environment variable in the window isWindowsA copy of the environment variable. However, modification to the copy will triggerWindowsRefresh the environment variables, so that we do not need to restart the computer.
For more information about Oracle, see Oracle topics page http://www.bkjia.com/topicnews.aspx? Tid = 12