Another Post on 'could not resolve identifier' ORA-12154
Hi experts,A new installation of 11g and I CAN connect to the database via SQLPlus but I get ORA-12154 error when you try to connect through RMAN.
I used the EZCONNECT parameter in netca
SQLNET. ORA NAMES_DIRECTORY_PATH a = (EZCONNECT)
Any ideas for what I can check, please?
Thank you, John
user629010 wrote:
Hi experts,A new installation of 11g and I CAN connect to the database via SQLPlus but I get ORA-12154 error when you try to connect through RMAN.
I used the EZCONNECT parameter in netca
SQLNET. ORA NAMES_DIRECTORY_PATH a = (EZCONNECT)
Any ideas for what I can check, please?
Thank you, John
The connection string, you really used to connect knowing would have been helpful...
=================================
ORA-12154: TNS: could not resolve the connect identifier specified
This error means one thing and one thing only. The customer couldn't find the entry specified in the tnsnames.ora file being used.
Following this statement, remember that when you use a dblink, the database that defines the link acts as a client to the database that is the target of the link. So in this case, the tnsnames.ora on the host of your source file must have an entry for your db target, as defined in the db_link.
And for the umpteenth time... This error has NOTHING to do with the status of a listener. The connection request never got far enough to reach a listener. If someone tells you to check a listener in response to ora-12154, they do not pay attention, or do not understand how works the TNS. This error is equivalent to not be able to place a phone call because you do not know the number of the part you want to reach. You would not debug this situation by going to the home of the other guy and test his phone, or by accessing the phone company and the standard test. And you are debugging an ORA-12154 by checking the listener. If I had a list of ten albums of 'Incredibly Simple Concepts (tm)' which must be burned in the brain of anyone claiming to be an Oracle DBA, it would include "ORA-12154 has nothing to do with the listener.
=================================
Suppose you have the following in your tnsnames.ora:
larry =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = myhost)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = curley)
)
)
Now, when you issue a connect, say like this:
$> sqlplus scott/tiger@larry
TNS will appear in your tnsnames.ora for an entry called "larry". Then, tns sends a request to (PORT = 1521) on (HOST = myhost) to aid (PROTOCOL = TCP), requesting a connection to (SERVICE_NAME = curley).
Where's (HOST = myhost) on the network? When the request is passed to tns to the next layer in the network stack, the name "myhost" resolves to an IP address, either via a file 'hosts' local, through DNS, or possibly other mechanisms being used less. Alternatively, you can hard-code the IP (HOST = 123.456.789.101) in the tnsnames.ora.
Then, the request arrives at port 1521 myhost. If all goes well, there is a listener on myhost configured to listen on port 1521, and this listener knows SERVICE_NAME = curley. If so, you'll be connected.
A few important points.
First, the listener is a process only server-side . It's all in life seeks applications for reception for connections to the databases and set up these connections. Once the connection is established, the listener is out of the picture. It creates the connection. Is not maintain the connection. A listener, linking an oracle of the House, listening on a single port, use multiple instances of database in several versions of several houses. It is unnecessary complexity to try to have several headphones. It's like the telephone company, to build a separate table for each customer.
Secondly, the tnsnames.ora file is a problem on the client side . Its purpose is to address resolution - the equivalent of the 'hosts' file tns further to the bottom of the network stack. The only reason it exists on a host computer is because this machine also can run client processes.
What can go wrong?
First, there may not be an entry for 'larry' in your tnsnames file. In this case, you get "ORA-12154: TNS: could not resolve the connect identifier specified" no need to go looking for a problem on the host, with the listener, etc.. If you cannot place a phone call because you do not know the number (cannot find your phonebook (tnsnames.ora) or can not find the party looking for listed in it (no entry for larry)) you don't look at problems at the switchboard.
Perhaps the entry for larry was found, but myhost could not be resolved to an IP address (for example there is no entry for myhost in the local hosts file). This will mean by "ORA-12545: Connect failed because target host or object does not exist.
Maybe there is an entry for MyServer in the local hosts file, but it specified a bad IP address. This will mean by "ORA-12545: Connect failed because target host or object does not exist.
Maybe the INVESTIGATION period was good, but there is no listener running: "ORA-12541: TNS:no listener.
Maybe the INVESTIGATION period was good, there is a listener to myhost, but he is listening on a different port. "ORA-12560: TNS:protocol adapter error.
Maybe the INVESTIGATION period was good, there is a listener to myhost, listening on the specified port, it's unknown SERVICE_NAME = curley. "ORA-12514: TNS:listener is not currently of service requested in connect descriptor.
Tags: Database
Similar Questions
-
ORA-12154: TNS: could not resolve the connect identifier specified in 11g R2
Hello
Recently we changed the name of our Linux server, after chanding hostname, I made changes in tnsnames.ora and listener.ora and also local_listener at the database level.
When I am trying to connect database of his failure with the error.
[orawiz@wizapp admin] $ sqlplus system/oracle@WIZ
SQL * more: Production of release 11.2.0.1.0 LUN 20 16:57:58 Feb 2012
Copyright (c) 1982, 2009, Oracle. All rights reserved.
ERROR:
ORA-12154: TNS: could not resolve the connect identifier specified
Here's my entires of tns.
[orawiz@wizapp admin] $ cat tnsnames.ora
tnsnames.ora # Network Configuration file: /wiz_app/wiz/oracle/product/11.2.0/db_1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = 10.172.20.236)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = wiz)
)
)
#wiz = (DESCRIPTION =
# (ADDRESS_LIST =
# (ADDRESS = (PROTOCOL = TCP) (HOST = 10.172.20.236)(PORT = 1521))
# (CONNECT_DATA =
# (SERVER = DEDICATED)
# (SERVICE_NAME = wiz)
# )
# )
[orawiz@wizapp admin] $ cat listener.ora
listener.ora # Network Configuration file: /wiz_app/wiz/oracle/product/11.2.0/db_1/network/admin/listener.ora
# Generated by Oracle configuration tools.
WIZ =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP) (HOST = 10.172.20.236)(PORT = 1521))
)
)
#SID_LIST_LISTENER =
# (SID_LIST =
# (SID_DESC =
# (SID_NAME = wiz)
# (GLOBAL_DBNAME = wiz)
# (ORACLE_HOME = wiz_app/wiz/oracle/product/11.2.0/db_1)
# )
# )
ADR_BASE_LISTENER = / wiz_app/wiz/oracle
[orawiz@wizapp admin] $ cat sqlnet.ora
sqlnet.ora # Network Configuration file: /wiz_app/wiz/oracle/product/11.2.0/db_1/network/admin/sqlnet.ora
# Generated by Oracle configuration tools.
NAMES. DIRECTORY_PATH = (TNSNAMES, EZCONNECT)
ADR_BASE = / wiz_app/wiz/oracle
tnsping also default.
[orawiz@wizapp admin] tnsping wiz $
AMT Ping utility for Linux: Version 11.2.0.1.0 - Production on 20 February 2012 17:03:16
Copyright (c) 1997, 2009, Oracle. All rights reserved.
Use settings files:
/wiz_app/Wiz/Oracle/product/11.2.0/Db_1/network/admin/SQLNET.ora
AMT-03505: failed to resolve the name
[orawiz@wizapp admin] $Nothing to with listener.ora file with ORA-12154.
If the listener does not not or the status is not ready then it's listener.ora.Below add entries in your file tnsnames.ora and post $tnsping wiz
WIZ = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.172.20.236)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = wiz.
) ) ) Publish your file sqlnet.ora
Published by: CKPT on 20 February 2012 17:28
-
Greetings
There are a lot of topics about this problem on the internet, but none of them deal with this issue properly, so I couldn't find a solution to the problem.
I installed: Oracle Database 10 g Express Edition
After that the installation was done, I opened the SQL command line
and I used the command "connect" to connect
I enter username
Then I entered the password
After a few seconds, I got the following error message:
ORA-12154: TNS: could not resolve the connect identifier specified
Screenshot of the error:
http://I35.Tinypic.com/14o26g7.PNG
I installed this version of Oracle on Windows XP 32 bit and Windows 7 32 bit and I get the same error message when it tries to connect.
Why Oracle does not immediately after installation?
Are there other measures that need to be accomplished in order to make this work? If so I'd appreciate any help step by step, I was stuck trying to find a solution for days.
Published by: user10192105 on August 22, 2010 19:34>
I was able to connect using the above command, but I would like to know why can't connect using a user name and password? I still cannot connect using a user name and password even after the environment variable.
>The problem is that the normal user accounts are either locked, you use is maybe not the right password or they may not have the necessary privileges to establish a session (there are a number of reasons).
Since you are in the console database, you don't need the environment variable set. SQL * Plus Gets the location of your database in the registry.
Make the alter statement that I posted earlier for a user which you know that there is and we'll take it from there.
John.
-
ORA-12154 tns could not resolve the specified correct identifier
I am facing the following problem:
labVIEW 2012 32 bits 64 bits of Windows 7, 10.2.0.1.0 oracle client (32-bit).
I created a DSN from Data Sources (ODBC) (32-bit version of what in % windir%\syswow64\odbcad32.exe) pointing to an instance of Oracle 10 g.
I have test the DSN in this way (IE. Data sources (ODBC) and the connection is successful (which means that the tnsnames.ora is correct).
I use the "DB tools Open Connection.vi" in order to get connected to this database, passing as parameters the DSN above, the user name and password.
I get the error:
ADO error: 0x80040E4D
Exception occurred in the Microsoft OLE DB provider for ODBC drivers:[Oracle] [ODBC] [Ora] ORA-12154: TNS could not resolve the specified correct identifier
all will help much appreciated
Thanks in advance
Hello everyone.
I already solved the problem (work until late Saturday).
the solution was to install the latest version of the Oracle customer, namely: Oracle 11 g Release 2 CLIENT for Windows 32 (11.2.0.1.0).
Now everything works OK.
I also tested in Windows 7 32 bit (the .vi even and the same Oracle client). This will also OK.
Thans a lot.
-
sqlplus ORA-12154: TNS: could not resolve the connect identifier specified
Hello
I am not able to connect to the database using sqlplus, using following command:
sqlplus activites@OCA010
I get the error message "ORA-12154: TNS: could not resolve the connect identifier specified.
I tried to connect by providing the full as connection string: "" sqlplus activities / [email protected]:1521 / compix "and he succeeded."
I also tried to connect using sql developer by providing network TNS alias 'OCA010' it is also successful.
Someone could please help out here and let me know how can I connect using sqlplus using aliases TNS network.
content of the tnsnames.ora file is as follows
tnsnames.ora # Network Configuration file: D:\Oracle\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
COMPIX =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = LUCKY-HP)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = compix)
)
)
BC =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = LUCKY-HP)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = BC)
)
)
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1521))
)
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
)
)
OCA01 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = LUCKY-HP)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = OCA01)
)
)
OCA010 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.10.3)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = compix)
)
)
Thanks in advance.
2931143 wrote:
Hi EdStevens,
I used option TNS with Alias network as 'OCA010' in Sql Developer.
I checked in tnsping and tnsnames.ora directory is correct.
Please find below the exit of tnsping:
C:\Users\LUCKY>tnsping OCA010
AMT Ping Utility for 64-bit Windows: Version 11.2.0.1.0 - Production on October 29, 2015 21:07:38
Copyright (c) 1997, 2010, Oracle. All rights reserved.
Use settings files:
D:\Oracle\product\11.2.0\dbhome_1\NETWORK\ADMIN\sqlnet.ora
AMT-03505: failed to resolve the name
Have you worked from the link I provided? (I don't think you have time to do).
It is possible that your tnsnames.ora is corrupted by some weird characters printable somewhere. In some versions of the oracle, he might be sensitive to spaces vs. tabs. If in doubt, netca to add entries, rather than doing it by hand.
-
ORA-12154: TNS: could not resolve the connect identifier specified
Hello
I installed Oracle 11 g server in Windows 2008 and also installed customer DB 64 & 32 on the same server client.
When I try to test the Oracle DB connection using the UDL file, I get the error message below. Please could you help me solve this problem.
-Microsoft Data Link Error.
Test connection failed because of an error initializing provider.
[DBNETLIB] [ConnectionOpen(connect()) (Connect()).]
SQL Server is not, or access is denied.
--------------------------- OK ---------------------------
I have connected to SQL using sysdba and tried to connect to the schema. It is not connection and throwing below error.
"ORA-12154: TNS: could not resolve the connect identifier specified.
I checked the TNSNAMES.ora file. Everything seems fine.
Thank you
Michel K
Hello
I see just a glance on the tnsnames file you are missing at least one sign =...
You have
ORCL
(DESC...
You should have
ORCL =
(DESC...
There may be other issues too, but give that a try at first - you better run netmgr to allow oracle to create the file for you.
See you soon,.
Rich
-
DB Link error: ORA-12154: TNS: could not resolve the connect identifier specified
Hi all
We need to make an entry in the tnsname.ora file in a local database to connect to the remote database using db link?
Here is my code: -.
create the database link * _DBLINK
connect to the USER IDENTIFIED BY 'user '.
using '(DESCRIPTION =)
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP) (HOST = *. *. *. *)(PORT = 1521))
)
(CONNECT_DATA = (SERVICE_NAME = REM)
)';
After the creation of the DB connection when I'm trying to run select 1 of dual@***_DBLINK
He throws me an error ORA-12154: TNS: could not resolve the connect identifier specified
Am I expected to do an entry in the file tnsname.ora for "REM". I don't remember making any changes in the file tnsname.ora for the creation and access of the remote database via dblink.
Help, please.
Thanks in advance.
2925917 wrote:
Hi all
We need to make an entry in the tnsname.ora file in a local database to connect to the remote database using db link?
Here is my code: -.
create the database link * _DBLINK
connect to the USER IDENTIFIED BY 'user '.
using '(DESCRIPTION =)
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP) (HOST = *. *. *. *)(PORT = 1521))
)
(CONNECT_DATA = (SERVICE_NAME = REM)
)';
After the creation of the DB connection when I'm trying to run select 1 of dual@***_DBLINK
He throws me an error ORA-12154: TNS: could not resolve the connect identifier specified
Am I expected to do an entry in the file tnsname.ora for "REM". I don't remember making any changes in the file tnsname.ora for the creation and access of the remote database via dblink.
Help, please.
Thanks in advance.
I've learned to trust in your obfuscation you covered something important, or you are showing some apples and oranges. Error to declare you come from not being able to find referenced in tnsnames.ora entry, but the way you say you created your link db, you hardcoded the entire connection, so he never users tnsnames.ora.
I would change the definition of db_link
create the database link * _DBLINK
connect to the USER IDENTIFIED BY 'user '.
using "REM."
Then create an entry in your tnsnames.ora
REM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP) (HOST = *. *. *. *)(PORT = 1521))
)
(CONNECT_DATA = (SERVICE_NAME = REM)
)
)
Also, use server name instead of the HOST = IP address
The closer looks that you can miss brackets final closing on your original definition.
-
Hi friends,
We do face-down question when executing the execution Plan in DAC for full charge. We are working on the project of modernization of the OBI Applications and my client has worked on this environment is a few days. Before this, they load to the source 'EBSTST' instance and now changed data for instance 'EBSWKLY '. We have changed the details of connection under the tab 'Physical Data Sources' DAC. Test the connection Source and target are good. We have added input TNS of EBSWKLY in the path: u01/app/oracle/oracle11g/product/11.2.0/client_1/network/admin.
ORA-12154: TNS: could not resolve the connect identifier specified
Database driver error...
Function name: connect
[The database error: could not connect to the database using the [apps] user and the connection string [EBSWKLY].].
Please suggest me if I m done mistake anywhere...
Thanks in advance.
Raghu Jen7782
I was saying about the environment variables defined by you on the server of informatica/dac under the .profile or .bash_profile as below:
TNS_ADMIN = $ORACLE_HOME/network/admin; Export TNS_ADMIN
ORACLE_BASE = / home/oracle/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/; Export ORACLE_HOME
ORACLE_SID = InstanceName; export ORACLE_SID
Path = $PATH: / usr/sbin: $ORACLE_HOME/bin. export PATH
LD_LIBRARY_PATH=.:$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH = $ORACLE_HOME/jlib: $ORACLE_HOME/rdbms/jlib. Export CLASSPATH
Here are some examples I mentioned everything. You can set them in the user profile from which you installed the server informatica/dac.
If it is a CAR Forum, try to set the value of the instance-specific SID for example: orcl11 or orcl12 or orcl13... try to connect to each instance. Sometimes the general SID does not recognize configuration
-
Unable to solve the ORA-12154: TNS: could not resolve the connect identifier specified
Hi friends,
I'm unable to resolve ORA-12154: TNS: could not resolve the connect identifier specified, error:
C:\Windows\System32 > sqlplus scott/tiger@ORADATA
SQL * more: Production release 11.2.0.1.0 on Sun Feb 2 13:46:10 2014
Copyright (c) 1982, 2010, Oracle. All rights reserved.
ERROR:
ORA-12154: TNS: could not resolve the connect identifier specified
SQL > select database_name from v$ database;
DATABASE_NAME
----------------------------------------------------
ORADATA
SQL > select instance_name from v$ instance;
INSTANCE_NAME
----------------
oradata
tnsnames.ora
============
ORADATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST=himanshu-PC) (PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = oradata)
(SERVER = DEDICATED)
)
)
Listener.ora
=========
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = himanshu-PC)(PORT = 1521))
)
(DESCRIPTION =
(ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1521))
)
)
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = ORADATA)
(ORACLE_HOME = G:\app\himanshu\product\11.2.0\dbhome_1)
(SID_NAME = oradata)
)
)
SQLNET.ora
========
SQLNET. AUTHENTICATION_SERVICES = (NTS)
C:\Windows\System32 > lsnrctl status
LSNRCTL for 32-bit Windows: Version 11.2.0.1.0 - Production on February 2, 2014 13:53:37
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = himanshu-PC)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 11.2.0.1.0 - Production
Start date February 2, 2014 13:29:35
Uptime 0 days 0 h 24 min 6 sec
Draw level off
Security ON: OS Local Authentication
SNMP OFF
Listener parameter File G:\app\himanshu\product\11.2.0\dbhome_1\network\admin\listener.ora
G:\app\himanshu\diag\tnslsnr\himanshu-PC\listener\alert\log.XML log listener
Summary of endpoints listening...
(DESCRIPTION = (ADDRESS = (PROTOCOL = tcp) (HOST = himanshu-PC)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
Summary of services...
Service 'ORADATA' has 2 occurrences.
Instance "ORADATA', status UNKNOWN, has 1 operation for this service...
Instance "oradata' READY State, has 1 operation for this service...
Service 'ORADATAXDB' has 1 instance (s).
Instance "oradata' READY State, has 1 operation for this service...
The command completed successfully
Kindly guide whats wrong with my setup.
You can remove your tnsnames.ora if he isn't there the other TNS inside. and use netmanager
http://docs.Oracle.com/CD/E11882_01/network.112/e41945/AdminTools.htm#NETAG216
Concerning
-
URGENT: ORA-12154: TNS: could not resolve the connect identifier specified
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error occurred. [nQSError: 43113] The message returned by OBIS. [nQSError: 17001] Oracle error code: 12154, message: ORA-12154: TNS: could not resolve the connect identifier specified in the call to the OIC OCIServerAttach. [nQSError: 17014] Cannot connect to the Oracle database. (HY000)
(1) I have TNS entries under MW_HOME/OracleBI/network/admin
(2) TNSPING works fine.
(3) source updated JDBC in place on the side WLS...
What should I do?Show complete exception stack trace. This does not seem to relate to WebLogic. The WebLogic console
view running data source? In fact you use WebLogic DataSource? -
OBIEE 11 g, ORA-12154: TNS: could not resolve the connect identifier
HI forumer,
I installed obiee 11g and I am trying to connect to oracle 11 g db installed on the same machine. I am able to create the DSN using the tnsnames.ora, but the same details used with obiee work not and fails with:
ORA-12154: TNS: could not resolve the connect identifier
Appreciate any help in this.
Thank youThis is a change in behavior when we have 10g and 11g. In BI EE 10 g, there was no Oracle Client delivered with BI EE. Thus, BI EE will use your Oracle DB client host to connect to the database. Usually not a problem in this case. But in BI EE 11 g, the software itself contains a client of 11.2 DB. Thus, when you try to connect to the database using the repository or the BI server, it will try to find the tnsnames entry in the customer Oracle of BI EE 11 g instead of your database. There are 2 options to work around this problem
1. copy your tnsnames.ora {Oracle_BI1} \network\admin directory & {oracle_common} \network\admin directory (only the first is necessary because it is the ORACLE_HOME)
2. or instead of the source tnsnames.ora entry, use the full expanded tnsnames as shown below
(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = 172.16.66.173)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED)(SERVICE_NAME = orcl)))
Both of the above will work.
Ref: Re: unable to connect to the database of the OBIEE 11g improved SPR
Courtesy of - Vincent.Thank you
Oldia... -
All,
Help, please. I get the error above despite all I know to do:
tnsnames.ora entry for the remote database (it is what is on the local database):
ORACLE6. STAGING =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = oracle6.staging.hobank.net) (PORT = 1521))
)
(CONNECT_DATA = (SERVICE_NAME = banksys))
)
The following works without problems of local database to a remote database:
On the local database:
sqlplus kay/[email protected]
...
...
Connected to:
Oracle Database 10 g Enterprise Edition Release 10.2.0.2.0 - 64 bit Production
With partitioning, OLAP and Data Mining options
SQL > select * from emp;
EMPNO, ENAME, JOB HIREDATE SAL COMM MGR
---------- ---------- --------- ---------- --------- ---------- ----------
DEPTNO
----------
2 Kay Baffy DBA 1 6 November 10 50000.25
2
* These data are correct and comes from the remote database *.
Next, I created the database link that is connected to the local database:
create the database public link oracle6.staging
connect to identified by kay kay
using 'oracle6.staging ';
Database link created.
!!! But the following does not work:
SQL > select * from [email protected];
Select * from [email protected]
*
ERROR on line 1:
ORA-12154: TNS: could not resolve the connect identifier specified
I am sure of the following:
1 DB link has been created on the local database.
2 oracle6.staging entry is tnsnames.ora
3. I am able to connect to a remote database with: sqlplus kay/[email protected]
* Any help will be be appreciated.* *.
Thanks in advance.
BaffySee the link:-hope, it will be useful for you.
Troubleshooting of database links
http://www.akadia.com/services/ora_dblinks.htmlKind regards
-
ORA-12154: TNS: could not resolve the connect identifier specifier (XE)
Hello
«I installed on my laptop with win 7 Oracle Database 10g Release 2 (10.2.0.1) Express Edition for Microsoft Windows, but when I tried to connect with Toad for Oracle Freeware 10.6 I get the following error ' ORA-12154: TNS: could not resolve the connect identifier specifier (XE)» I read on the forum that the problem comes from the wrong configuration of the AMT.
This is rhe tnsping respons
"C:\Users\Sergiu > tnsping XE.
AMT Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 13-NOV-2
010 15:20:10
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Use settings files:
C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\sqlnet.ora
TNSNAMES adapter used to resolve the alias
Try to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = Sergiu-PC) (p)
(ORT = 1521)) (CONNECT_DATA = (SERVER = dedicated) (SERVICE_NAME = XE)))
OK (0 msec)
"
EARPHONE
"
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
(= Extproc PROGRAM)
)
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
(= Extproc PROGRAM)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC_FOR_XE))
(ADDRESS = (PROTOCOL = TCP) (HOST = Sergiu-PC)(PORT = 1521))
)
)
DEFAULT_SERVICE_LISTENER = (XE)
"
SQLNET
"
# This file is actually generated by netca. But if customers can opt for
# install 'Software Only', this file does not exist and without the native
authentication #, they will not be able to connect to the database on NT.
SQLNET. AUTHENTICATION_SERVICES = (NTS)
"
TNSNAME
"
XE =
(DESCRIPTION =
(ADDRESS =
(PROTOCOL = TCP)
(HOST = Sergiu-PC)
(PORT = 1521)
)
(CONNECT_DATA =
(SERVER = dedicated)
(SERVICE_NAME = XE)
)
)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS =
(PROTOCOL = IPC)
(KEY = EXTPROC_FOR_XE)
)
(CONNECT_DATA =
(PRESENTATION = RO)
(SID = PLSExtProc)
)
)
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS =
(PROTOCOL = IPC)
(KEY = EXTPROC_FOR_XE)
)
(CONNECT_DATA =
(PRESENTATION = RO)
(SID = CLRExtProc)
)
)
"
Can someone tell me what is the problem?
Best regardsIt can be caused by the location of the TOAD software. The have you installed under "Program Files (x 86)? If Yes, then try to reinstall in a different directory, media in the path name can cause problems.
-
Error ORA-16724: could not resolve the deficit for one or more databases in waiting
I came to work today with the following error is displayed:
February 5, 2014 01:27:19 error ORA-16778: make the mistake of transport for one or more databases.
Looks like this error disappeared but now I have the following error:
February 5, 2014 11:52:40 error ORA-16724: could not resolve the deficit for one or more databases in waiting
I did some research on the forums and I think I need backup and restore, but I'm not sure.
Here are some questions that I saw others asking in the forums:
PRIMARY:
Select max(sequence#) from v$ archived_log; -24589
Select current_scn in the database of v$. -871568619
SECONDARY:
Select max(sequence#) from v$ archived_log; -24589
Select max(sequence#) from v$ archived_log in case of application = 'YES '; -24562
Select current_scn in the database of v$. -870987797
Select * from v$ archive_gap;
Thread # Low_Sequence # High_Sequence #.
1 24563 24563
Looks like everything is working, but the error is still appearing in OEM primer.
The issue ended up being with the control file. I followed of many blog posts on how to roll forward the database before and they all said to restore the control file before you recover the database. I followed this paper: http://docs.oracle.com/cd/B28359_01/server.111/b28294/rman.htm#CIHIAADC and it worked as expected. The old control file has had 6 data files that were in a different place than the others. The new control file, I created the primary had all the files of data in one place. After correcting the control to point to the locations correct datafile all started working again.
-
AMT: could not resolve the connect identifier specified
Hi guys, I have installed Oracle on Windows XP SP2 11.2.0.1.0 C:\oracle folder
I use the ORCL service to connect to the database using SQL more. I am connected yesterday and it was very good. Now I get this error:
ORA-12154: TNS: could not resolve the connect identifier specified
Of course, this error is related to the file tnsnames.ora and identifiers of Service and not correct SID.
Here are my tnsnames.ora
Here's the listener.ora# tnsnames.ora Network Configuration File: C:\oracle\product\11.2.0\dbhome_1\network\admin\tnsnames.ora # Generated by Oracle configuration tools. LISTENER_ORCL = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521)) ORACLR_CONNECTION_DATA = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521)) ) (CONNECT_DATA = (SID = CLRExtProc) (PRESENTATION = RO) ) ) ORCL = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl) ) )
Here's the sqlnet.oraSID_LIST_LISTENER = (SID_LIST = (SID_DESC = (SID_NAME = CLRExtProc) (ORACLE_HOME = C:\oracle\product\11.2.0\dbhome_1) (PROGRAM = extproc) (ENVS = "EXTPROC_DLLS=ONLY:C:\oracle\product\11.2.0\dbhome_1\bin\oraclr11.dll") ) (SID_DESC = (SID_NAME = ORCL) (ORACLE_HOME = C:\oracle\product\11.2.0\dbhome_1) ) ) LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521)) (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521)) ) ) ADR_BASE_LISTENER = C:\oracle
All the world is facing something like this before?SQLNET.AUTHENTICATION_SERVICES= (NTS) NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
RAF Royal wrote:
Ok
But now, I noticed something strange.If I try to connect with you the user's SYSTEM:
C:\>sqlplus system/password@ORCL
SQL * more: Production version 11.2.0.1.0 sea Giu 8 12:26:08 2011
Copyright (c) 1982, 2010, Oracle. All rights reserved.
ERROR:
ORA-12154: TNS: could not resolve the connect identifier specifiedIf I login with user SCOTT:
C:\>sqlplus scott/tiger1@ORCL
SQL * more: Production version 11.2.0.1.0 sea Giu 8 12:26:26 2011
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connect to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With partitioning, OLAP, Data Mining and Real Application Testing optionsSQL >
Also, with the sys user, I get error
What is going on?
The 'system' password includes a ' @' character?
Maybe you are looking for
-
blue screen after installing windows update
Original title: Windows Update system killed 13 March 2012 After you install the updates Windows yesterday (13/03/12), the screens of the blue system at startup and in safe mode, does not restore system, saying: "a parameter is incorrect."
-
Hello I m using dell laptop sice 2 years, last week I try to update my pc with windows last graphic update unfortunately after update, the screen become white with cursor flashing on it. Now I could not access my pc .safe mode not either work, attemp
-
Hi my computer is 5 or 6 years and I can't find my coa on computer and there is need for my windows 7 product key can you help please
-
After failure of printer does not print!
Printer will no print only during the process of re - start. Not only the printer by default, but all the printers on the network don't print them indicés when I reboot. Help!
-
I want to enjoy the new interface and not access anything from there. I hope that there is a way.Thanks in advance.