Glen_D
asked on
Connect Identifier in iSQL Plus
I am trying to connect to our db via iSQL Plus but keep getting an error on the connection string; I have the tnsnames file.
We do have 2 db instances on this server.
any help is appreciated.
We do have 2 db instances on this server.
any help is appreciated.
The error message will help us.
ASKER
Thx...here it is:
ERROR: ORA-12154: TNS:could not resolve the connect identifier specified
ERROR: ORA-12154: TNS:could not resolve the connect identifier specified
Do you have tnsnames.ora configured? Please show your tnsnames.ora and your listener.ora
Usually this error is a result of lack of an entry in tnsnames for that alias
Usually this error is a result of lack of an entry in tnsnames for that alias
ASKER
Here's the TNS...I'm retrieving the listener...thx
# tnsnames.ora Network Configuration File: F:\oracle\product\10.2.0\d b_2\networ k\admin\tn snames.ora
# Generated by Oracle configuration tools.
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = CustomerDev.FREEDOM.LOCAL) (PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)
ERIC =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = CustomerDev.FREEDOM.LOCAL) (PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ERIC)
)
)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)
# tnsnames.ora Network Configuration File: F:\oracle\product\10.2.0\d
# Generated by Oracle configuration tools.
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = CustomerDev.FREEDOM.LOCAL)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)
ERIC =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = CustomerDev.FREEDOM.LOCAL)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ERIC)
)
)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)
And you are using ORCL or ERIC to connect, right?
Verify that you can: tnsping ORCL
from the command prompt
Verify that you can: tnsping ORCL
from the command prompt
ASKER
Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.
C:\Documents and Settings\myname>tnsping orcl
TNS Ping Utility for 32-bit Windows: Version 10.2.0.4.0 - Production on 01-JUL-2
009 17:35:17
Copyright (c) 1997, 2007, Oracle. All rights reserved.
Used parameter files:
F:\oracle\product\10.2.0\d b_2\networ k\admin\sq lnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = Customer
Dev.FREEDOM.LOCAL)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_N
AME = orcl)))
OK (20 msec)
(C) Copyright 1985-2003 Microsoft Corp.
C:\Documents and Settings\myname>tnsping orcl
TNS Ping Utility for 32-bit Windows: Version 10.2.0.4.0 - Production on 01-JUL-2
009 17:35:17
Copyright (c) 1997, 2007, Oracle. All rights reserved.
Used parameter files:
F:\oracle\product\10.2.0\d
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = Customer
Dev.FREEDOM.LOCAL)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_N
AME = orcl)))
OK (20 msec)
ASKER
Here's the listener data:
# listener.ora Network Configuration File: F:\oracle\product\10.2.0\d b_2\networ k\admin\li stener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = F:\oracle\product\10.2.0\d b_2)
(PROGRAM = extproc)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = CustomerDev.FREEDOM.LOCAL) (PORT = 1521))
)
)
# listener.ora Network Configuration File: F:\oracle\product\10.2.0\d
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = F:\oracle\product\10.2.0\d
(PROGRAM = extproc)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = CustomerDev.FREEDOM.LOCAL)
)
)
ASKER
C:\Documents and Settings\myname>tnsping eric
TNS Ping Utility for 32-bit Windows: Version 10.2.0.4.0 - Production on 01-JUL-2
009 17:37:27
Copyright (c) 1997, 2007, Oracle. All rights reserved.
Used parameter files:
F:\oracle\product\10.2.0\d
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = Customer
Dev.FREEDOM.LOCAL)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_N
AME = ERIC)))
OK (10 msec)
C:\Documents and Settings\gdamiani>
Is the same tnsnames.ora file on the server that is running iSQLPLUS?
ASKER
Is the same tnsnames.ora file on the server that is running iSQLPLUS?
Yes
Thx
Yes
Thx
ASKER
This is waht I was trying tu use as my connect identifier:
CustomerDev.FREEDOM.LOCAL: 1521/ERIC
CustomerDev.FREEDOM.LOCAL:
For isqlplus just try using ERIC
ASKER
Received the same error:
ERROR: ORA-12154: TNS:could not resolve the connect identifier specified
ERROR: ORA-12154: TNS:could not resolve the connect identifier specified
ASKER
any other ideas? really need to solve this
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
This is what I received:
Enter user-name: sqlplus user/pwxxxx@ERIC
SP2-0306: Invalid option.
Usage: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER}]
where <logon> ::= <username>[/<password>][@< connect_id entifier>] | /
Enter user-name: sqlplus user/pwxxxx@ERIC
SP2-0306: Invalid option.
Usage: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER}]
where <logon> ::= <username>[/<password>][@<
ASKER
OK...weird....
I just used another account and was able to connect via the command prompt; actually my account.
I just used another account and was able to connect via the command prompt; actually my account.
Use a real username
user was for the example, not literal
user was for the example, not literal
ASKER
yes, I know but was trying to keep some privacy here
The account I tried is our development account that everyone should use...not my personal user account.
Thx
The account I tried is our development account that everyone should use...not my personal user account.
Thx
ASKER
Thx for hanging in there....Glen
Sure, I did not mean to literally post the user, but I assumed you had actually typed "user", it happens often. :)
SO the end result, are you in with iSQLPLUS or did you resort to the command line?
SO the end result, are you in with iSQLPLUS or did you resort to the command line?
ASKER
In with iSQLPLUS...now I just need to code the scripts to place in ERIC under the schema I need.
Thx
Thx