Error RMAN connection to auxiliary database ORA- 12514
Hi,
I'm trying to make a clone of my database in another server but when I'm trying to connect as follow the RMAN return
to me the error ORA-12514.
C:\Documents and Settings\joses.morales>rman TARGET sys/pass@iswgen nocatalog
AUXILIARY sys/[email protected]
Recovery Manager: Release 8.1.7.4.1 - Production
RMAN-06005: connected to target database: ISWGEN (DBID=2348350645)
RMAN-06009: using target database controlfile instead of recovery catalog
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00554: initialization of internal recovery manager package failed
RMAN-04006: error from auxiliary database: ORA-12514: TNS:listener could not resolve SERVICE_NAME given in connect descriptor
For more information:
- the auxiliary database is started whit nomount option.
- this is my listener.ora in the auxiliary host
LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = WSSP61)(PORT = 1521))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = oracle8)
(ORACLE_HOME = C:\oracle\ora81)
(SID_NAME = iswgen)
(SID_DESC =
(GLOBAL_DBNAME = oracle8)
(ORACLE_HOME = C:\oracle\ora81)
(SID_NAME = oracle8)
- this is my tnsnames.ora in the auxiliary host
ISWGEN =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = wssp61)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = iswgen)
ORACLE8 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = WSSP61)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = oracle8)
- this is my tnsnames.ora in the target host
iswgen =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = gdcoracle)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = iswgen)
iswgen.wssp61 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = wssp61)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = iswgen)
- target server: gdcoracle
- auxiliary server: wssp61
- global name in auxiliary: Oracle8
- intances in auxiliary: Oracle8 & Iswgen
I was expecting the follow message:
connected to target database: ISWGEN (DBID=519338572)
using target database control file instead of recovery catalog
connected to auxiliary database: ISWGEN.WSSP61 (not mounted)
Can anybody help me to resolve this error ORA-12514??
Thanks
I'm try to connect to the auxiliary server at SQLPLUS and I get the follow:
C:\Documents and Settings\joses.morales>sqlplus /nolog
SQL*Plus: Release 8.1.7.0.0 - Production on Sex Jun 1 12:26:09 2007
(c) Copyright 2000 Oracle Corporation. All rights reserved.
SQL> conn sys@iswgen
Informe a senha:
ERROR:
ORA-12514: TNS:listener nao conseguiu resolver o SERVICE_NAME fornecido no
descitor de conexao
SQL> conn sys@iswgen as sysdba
Informe a senha:
ERROR:
ORA-12514: TNS:listener nao conseguiu resolver o SERVICE_NAME fornecido no
descitor de conexao
SQL> conn internal as sysdba
Conectado.
SQL>
Any sugestions?
Thanks everyone and regards
Similar Messages
-
Error while connecting to Auxiliary Database
Hi
I am practicing Cloning the database on my Personal Computer. I am following the steps outlined here
http://www.oracle-base.com/articles/9i/DuplicateDatabaseUsingRMAN9i.php
But while connecting to Auxiliary database I get this error.
RMAN - 04006 Error from auxiliary database: ORA 12514 TNS: listener does not currently know of service requested in connect descriptor
RMAN - 00554 initialization of internal recovery manager package failed...
what is the solution for this?
This is 10g database and my PC has Opensuse 11 OS
I think the problem is in configuring listener. But I am following the instructions given in that page....You probably skipped this part
Next add the appropriate entries into the tnsnames.ora and listener.ora files in the $ORACLE_HOME/network/admin directory. Remember to load the new configuration into the listener:
Which is why you are getting the error. The database needs to register itself with the listener. This doesn't happen in nomount mode.
Other than that: there is an option in database control to duplicate a database in 10g. Using that you only need to hit buttons. Why are you using 9i code and policies?
Sybrand Bakker
Senior Oracle DBA -
ORACLE error from auxiliary database: ORA-01152: file 2 was not restored fr
Hello,
i'm trying to clone a database. It is in archive log mode.
I took a full back using below command
run {
backup
tag 'DAILY_WHOLE'
format 'FULL_backup_%s_%p_%c.bkp' database
plus archivelog
tag 'DAILY_WHOLE'
delete all input;
backup
current controlfile
format 'FULL_backup_%s_%p_%c.bkp' tag 'WHOLE'
spfile
format 'FULL_backup_%s_%p_%c.bkp' tag 'WHOLE';
}then i issue a duplicate database command
RUN
DUPLICATE DATABASE TO TEST_DB
NOFILENAMECHECK
NOREDO
BACKUP LOCATION '/disk10/flash_recovery_area/PROD';
}at the very end I got this error.
contents of Memory Script:
Alter clone database open resetlogs;
executing Memory Script
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 05/15/2013 11:59:21
RMAN-05501: aborting duplication of target database
RMAN-03015: error occurred in stored script Memory Script
RMAN-06136: ORACLE error from auxiliary database: ORA-01152: file 2 was not restored from a sufficiently old backup
ORA-01110: data file 2: 'sysaux.dbf'Can anyone help me? I would appreciate it. thanksNOREDO would be used when you have a Consistent Backup (i.e. backup taken when the database is MOUNTed but not OPEN) and so, no archivelogs need to be applied. (This would also be the case for a NOARCHIVELOG database).
See the notes on NOREDO in the DUPLICATE command documentation in the Backup and Recovery Reference.
http://docs.oracle.com/cd/E11882_01/backup.112/e10643/rcmsynta020.htm#i81724
Hemant K Chitale -
Error Could not connect to the database - ora-12545: tns:name lookup failure
Hi,
I am a tech at a failing company. Unfortuneatly some users still need ADI installed and working with very limited resources to troubleshoot oracle. I am getting the error - ( Could not connect to the database - ora-12545: tns:name lookup failure )when the user tries to log on to ADI. Any suggestions? I would really appreciate it. We are on Windows NT on an NT network. Oracle 8.05 client installed and ADI 6.0.
Thanks, MaryCopy the tnsname.ora file from Oracle Database serve onto the client PC.
Path: %Oracle_home%\net80\admin\
Send me a mail if there is any other issues
Regards
Oluseyi Funmi Oduberu
Oracle Consultant
Email:[email protected]
Hi,
I am a tech at a failing company. Unfortuneatly some users still need ADI installed and working with very limited resources to troubleshoot oracle. I am getting the error - ( Could not connect to the database - ora-12545: tns:name lookup failure )when the user tries to log on to ADI. Any suggestions? I would really appreciate it. We are on Windows NT on an NT network. Oracle 8.05 client installed and ADI 6.0.
Thanks, Mary -
Connected to auxiliary database (not started)
Hello! I'm establishing Data Guard on Oracle 11g (x64). OS - CentOS 6.6 x86_x64.
The problem occurs when i'm trying to connect from my primary db to standby.
I expect:
connected to auxiliary database (not mounted)
but getting
not started
And when i'm trying to:
duplicate target database for standby nofilenamecheck dorecover;
I get an expected error:
Starting Duplicate Db at 17-MAR-15
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 03/17/2015 01:04:49
RMAN-06403: could not obtain a fully authorized session
RMAN-04006: error from auxiliary database: ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux-x86_64 Error: 2: No such file or directory
I also read simular topic:
Creating a duplicated database from active database
but i check several times my listener.ora on standby, and i can't figure out where the problem lies.
Actions that preceded the appearance of the error:
The main base is loaded by default (startup)
StandBy base loaded without mount (startup nomount)
On the main launch from the terminal «rman target /»
Command «connect auxiliary sys@orclstandby»
Password (sys)
Got: connected to auxiliary database (not started)
Here is my configuration files:
Primary:
tnsname:
orclprimary =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = oracle11centos.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl.com)
orclstandby =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.115)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orclstandby.com)
(SID_NAME = orcl)
pfileORCL.ora
orcl.__db_cache_size=301989888
orcl.__java_pool_size=4194304
orcl.__large_pool_size=4194304
orcl.__oracle_base='/u01/app/oracle'#ORACLE_BASE set from environment
orcl.__pga_aggregate_target=314572800
orcl.__sga_target=469762048
orcl.__shared_io_pool_size=0
orcl.__shared_pool_size=150994944
orcl.__streams_pool_size=0
*.audit_file_dest='/u01/app/oracle/admin/orcl/adump'
*.audit_trail='db'
*.compatible='11.2.0.0.0'
*.control_files='/u01/app/oracle/oradata/orcl/control01.ctl','/u01/app/oracle/flash_recovery_area/orcl/control02.ctl'
*.db_block_size=8192
*.db_domain='com'
*.db_name='orcl'
*.db_recovery_file_dest='/u01/app/oracle/flash_recovery_area'
*.db_recovery_file_dest_size=4070572032
*.diagnostic_dest='/u01/app/oracle'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=orclXDB)'
*.memory_target=784334848
*.open_cursors=300
*.processes=150
*.remote_login_passwordfile='EXCLUSIVE'
*.undo_tablespace='UNDOTBS1'
db_unique_name='orclprimary'
log_archive_config='dg_config=(orclprimary,orclstandby)'
log_archive_dest_1='SERVICE=orclstandby LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) db_unique_name=orclstandby'
log_archive_dest_2='LOCATION=/u01/app/oracle/oradata/orcl/archive VALID_FOR=(ALL_LOGFILES,ALL_ROLES) db_unique_name=orclprimary'
log_archive_dest_state_1=ENABLE
log_archive_dest_state_2=ENABLE
fal_client='orclprimary'
fal_server='orclstandby'
standby_file_management='AUTO'
StandBy
tnsname
orclstandby =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = oracle11standby2centos.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orclstandby.com)
orclprimary =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.101)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl.com)
listener
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = orclstandby.com)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1/)
(SID_NAME = orcl)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = oracle11standby2centos.com)(PORT = 1521))
ADR_BASE_LISTENER = /u01/app/oracle
pfileORCL.ora
orcl.__db_cache_size=301989888
orcl.__java_pool_size=4194304
orcl.__large_pool_size=4194304
orcl.__oracle_base='/u01/app/oracle'#ORACLE_BASE set from environment
orcl.__pga_aggregate_target=314572800
orcl.__sga_target=469762048
orcl.__shared_io_pool_size=0
orcl.__shared_pool_size=150994944
orcl.__streams_pool_size=0
*.audit_file_dest='/u01/app/oracle/admin/orcl/adump'
*.audit_trail='db'
*.compatible='11.2.0.0.0'
*.control_files='/u01/app/oracle/oradata/orcl/control01.ctl','/u01/app/oracle/flash_recovery_area/orcl/control02.ctl'
*.db_block_size=8192
*.db_domain='com'
*.db_name='orcl'
*.db_recovery_file_dest='/u01/app/oracle/flash_recovery_area'
*.db_recovery_file_dest_size=4070572032
*.diagnostic_dest='/u01/app/oracle'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=orclXDB)'
*.memory_target=784334848
*.open_cursors=300
*.processes=150
*.remote_login_passwordfile='EXCLUSIVE'
*.undo_tablespace='UNDOTBS1'
db_unique_name='orclstandby'
log_archive_config='dg_config=(orclprimary,orclstandby)'
log_archive_dest_1='SERVICE=orclstandby LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) db_unique_name=orclprimary'
log_archive_dest_2='LOCATION=/u01/app/oracle/oradata/orcl/archive VALID_FOR=(ALL_LOGFILES,ALL_ROLES) db_unique_name=orclstandby'
log_archive_dest_state_1=ENABLE
log_archive_dest_state_2=ENABLE
fal_client='orclstandby'
fal_server='orclprimary'
standby_file_management='AUTO'
Where I did wrong?Thanks for the quick reply!
Primary:
sqlplus sys/<password>@orclstandby as sysdba
Result:
SQL*Plus: Release 11.2.0.1.0 Production on Tue Mar 17 09:01:29 2015
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to an idle instance.
SQL>
sqlplus sys/<password>@orclprimary as sysdba
Result:
SQL*Plus: Release 11.2.0.1.0 Production on Tue Mar 17 09:28:21 2015
Copyright (c) 1982, 2009, Oracle. All rights reserved.
ERROR:
ORA-12514: TNS:listener does not currently know of service requested in connect
descriptor
Standby
sqlplus sys/<password>@orclstandby as sysdba
Result:
SQL*Plus: Release 11.2.0.1.0 Production on Tue Mar 17 09:08:37 2015
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to an idle instance.
SQL>
sqlplus sys/<password>@orclprimary as sysdba
Result:
SQL*Plus: Release 11.2.0.1.0 Production on Tue Mar 17 09:10:22 2015
Copyright (c) 1982, 2009, Oracle. All rights reserved.
ERROR:
ORA-12514: TNS:listener does not currently know of service requested in connect
descriptor -
Error when connecting to auxiliary instance
Hi,
I have set up an auxiliary database to do a DUPLICATE. The auxiliary instance is started in NOMOUNT mode.
When i try to connect from RMAN i get the following error:
RMAN>connect auxiliary sys/<password>@<sid>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-04006: error from auxiliary database: ORA-00600: internal error code, arguments: [15435], [SYS], [X$DBMS_BACKUP_RESTORE], [], [], [], [], []
ORA-04031: unable to allocate 1040 bytes of shared memory ("shared pool","X$DBMS_BACKUP_RESTORE","PL/SQL DIANA","PAR.C:parapt:Page")
RMAN-04015: error setting target database character set to WE8MSWIN1252
Environment is 10.2 on Windows
any clues??
Regards
RolfHi all and thanks for your response,
RMAN client is 10.1.0.3.0. Auxiliary instance is 10.2.0.3 (same as target).
I modified auxiliary init.ora with:
SHARED_POOL_SIZE=64M
I had created the auxiliary instance as said in the manual (I think), using orapwd, oradim, creating a init.ora file, etc.
I don't remember that SHARED_POOL_SIZE was mandatory for the init.file of the auxiliary instance...
However, i restarted the instance (nomount), and now I can connect the auxiliary instance from RMAN :)
However; i was going to create a duplicate database useing the DUPLICATE command. Everything went smoothly, all datafiles restored to correct path, but when RMAN finaly was trying to CREATE CONTROLFILE... I hit this error:
SQL-setning: CREATE CONTROLFILE REUSE SET DATABASE "W558DUP" RESETLOGS NOARCHIVELOG
MAXLOGFILES 16
MAXLOGMEMBERS 3
MAXDATAFILES 200
MAXINSTANCES 8
MAXLOGHISTORY 77312
LOGFILE
GROUP 1 ( 'D:\ORACLE\ORADATA\W558DUP\REDO01.LOG' ) SIZE 16 M REUSE,
GROUP 2 ( 'D:\ORACLE\ORADATA\W558DUP\REDO02.LOG' ) SIZE 16 M REUSE,
GROUP 3 ( 'D:\ORACLE\ORADATA\W558DUP\REDO03.LOG' ) SIZE 16 M REUSE,
GROUP 4 ( 'D:\ORACLE\ORADATA\W558DUP\REDO04.LOG' ) SIZE 16 M REUSE,
GROUP 5 ( 'D:\ORACLE\ORADATA\W558DUP\REDO05.LOG' ) SIZE 16 M REUSE
DATAFILE
'D:\ORACLE\ORADATA\W558DUP\SYSTEM01.DBF'
CHARACTER SET WE8MSWIN1252
frigitt kanal: TSM
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 08/25/2008 04:20:19
RMAN-06136: ORACLE error from auxiliary database: ORA-01503: CREATE CONTROLFILE
failed
ORA-00600: internal error code, arguments: [kccscf_1], [9], [77312], [65535], []
RMAN>
I find Bug 4877360 (*'Create controlfile command in 10.2 compatibility mode results in an ORA-600 [kccscf_1]*') on metalink, confirmed in 10.2.0.3 (my version) and fixed in 10.2.0.4, and there is a patch (Patch 4877360)
but not for Windows as far as i can see...
I also tried the CREATE CONTROLFILE ( referencing all datafiles) from sql*plus but got the same error.
My auxiliary init.ora files contain the COMPATIBLE=10.2.0.3.0 parameter.
Could I set compatibility to, say 10.1 (since the bug reference the 10.2 compatibility mode) ??
Regards
Rolf -
"no ocijdbc11 in java.library.path" error when connecting a TNS database co
Hi
"no ocijdbc11 in java.library.path" error when connecting a TNS database connection
I have the same problem 'error code' when testing the connection to a database although I have an APEX db that connects without a problem.
I have re downloaded jre & SQL Developer just to ensure all files are where they should be with no luck.
I've also tried most of the suggestions in various threads.
Does anyone know what exactly causes this error?
eg; should I be looking for a file called 'ocijdbc11' & put it into the 'java.library.path' path?
Can anyone explain to a newbie at db connections what I should do?
I'm using the 'thin' client as the checkbox is clear & I don't know what path to enter into the correct file to make this work??
This is & needs to connect as a TNS connection & was working fine until recently, the only change I can think of is a move of files from the 'C' drive but I thought redownloading SQL Developer would slove this.
ThanksWhen you reinstalled SQL Developer, did you install into a new directory (ie rename or delete the old directory first)?
I don't know if system setup contains directory references (which might be invalid after moving the location of SQL Developer). Does renaming your system2.1.1.64.45 directory (in C:\Documents and Settings\username\Application Data\SQL Developer) help? Note that your connections are in the connections.xml file in the o.jdeveloper.db.connection.11.1.1.2.36.55.30 subdirectory of system2.1.1.64.45 - you will either need to export connections before renaming and then import again after or copy this file to test if you can connect.
Finally, the TNS Names directory preference is just a way of telling SQL Developer where to look for the tnsnames.ora file, rather than just assuming it will pick the right one. If you go to create a new connection, do you get the right list of TNS aliases? If not, then set this preference to the directory where the right tnsnames.ora file lives.
theFurryOne -
Error while connecting to the database from a JSP Page
Hi,
I am using a simple JSP page which is based on the sample JSP pages from OTN.
When I try to connect to my database using the following code:
InitialContext ic = new InitialContext();
OracleDataSource ds = (OracleDataSource)ic.lookup("jdbc/OTN9iDS");
m_connection = ds.getConnection();
I get the following error:
Naming exception Error while connecting to the database : javax.naming.NameNotFoundException: jdbc/OTN9iDS not found in JDBCTest-JDBCTestProject-webapp
Does anybody know wht this is happening?
Any help would be appreciated
FRankHi Frank,
Are you using standalone OC4J or 9iAS ? If you are using standalone OC4J then you need to add a proper data source entry in %OC4J_HOME%j2ee\home\config\data-sources.xml file.
If you are using 9iAS the you can log in to the Enterprise Manager console and add the data source entry by using wizard provided by 9iAS.
Ensure the case of the JNDI lookup string, since, it is case sensitive.
Hope this helps.
Abhijeet -
ORA-01031 WHEN CONNECTING TO AUXILIARY DATABASE
Hi
i am currently trying to to create a standby database using RMAN using the ORACLE RMAN Backup and recovery book.
I get the ORA-01031 when i connect to the auxiliary database.
i do the following:
RMAN> connect target sys/password@primary
connected to target
RMAN > connect auxiliary sys/password@aux1
ORA-01031.............insufficient privileges
obviously the database aux1 hasnt been created yet but i have configured the tns and listener and both work fine, also created a password file and created a pfile from the spfile in the primary database as instructed by the book. I also started the aux1 database in nomount mode as well.
does any one have any ideas where i maybe going wrong?
thanksconn sys/pwd@aux1 as sysdba ,what happens to this
in sqlplus
add an entry to your TNSNAMES.ora
SQLNET.AUTHENTICATION_SERVICES = (NTS)
We dont need this entry this is for OS authenicarion sorry
then try again
Version and OS?
Message was edited by:
Maran Viswarayar
Message was edited by:
Maran Viswarayar -
Error in connecting with the database
Hi,
when i try to connect with the database the following error has occured
ORA-12504: TNS:listener name was not given the service name in connect data
solution wanthi,
i has the following in my tnsnames.ora file
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
XE =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
ORCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl.localdomain)
) -
Suddenly unable to connect Reports to database: ORA 12154 TNS can't resolve
Beginning end of last week, the Reports development tool (rwbuilder v10.1.2.0.2) suddenly lost the ability to connect to the database. The error is ORA-12154: TNS: could not resolve the connect identifer specified.
However, nothing has changed on either the database or my workstation. SQL*Developer and the Network Administrator can both access the database, confirming the configuration of TNSNAMES.
A fresh install of the DevSuite (rwbuilder v9 something) onto another workstation yielded the same error. The problem seems to be with Reports, not my workstation, my TNSNAMES configuration, or the database itself.
What could possibly cause the database to reject only Reports?Well, continued searching this forum revealed the answer. It was found in:
ORA - 12154 - Unable to resolve TNS..
It seems that something did, indeed, change on my workstation. I renamed all of the TNSNAMES.ORA files other than the one used by the network administrator. It seems that Oracle*Reports requires its own copy of the TNSNAMES file. What I don't understand is how it gets updated when changes are made to the real TNSNAMES file via the network administrator.
In any event, I'm back up and running. Sorry for the wasted bandwidth. -
Connect to Remote Database - ORA-12154
When attempting to use OCI to attach to a remote database I cannot resolve the service name.
However, I am able to connect using tnsping.
Example output is:
bash-2.03$ bin/msgoptim mo password mo
Message Optimiser - Version 1.0
Oracle DB Initialising
Database Access Error - ORA-12154: TNS:could not resolve service name
Abort (core dumped)
bash-2.03$ tnsping mo
TNS Ping Utility for Solaris: Version 8.1.7.0.0 - Production on 03-APR-2003 11:28:14
(c) Copyright 1997 Oracle Corporation. All rights reserved.
Attempting to contact (ADDRESS=(PROTOCOL=TCP)(HOST=qld)(PORT=1521))
OK (0 msec)
The remote database name is fed to the OCIServerAttach call as in :
checkerr( errhp, OCIServerAttach( svrhp, errhp, (text*) server.c_str(),
(sb4) server.length(), 0));
Am I doing this in the correct location, or am I missing something else in the process for remote databases.
I have no trouble connecting to a local database with a empty string in the OCIServerAttach call.
Thanks in anticipation.ORA-12154: "Could not resolve service name"
ORA-12541: "No listener"
ORA-12154: "Could not resolve service name"
When you try to connect to your database through Developer, try using the connect_string you've been using with .world added to it (sometimes it's appended to your connect_string automatically, and if your sqlnet.ora file has NAMES.DEFAULT_DOMAIN and NAME.DEFAULT_ZONE set to anything other than 'world' then you may have to create a new sqlnet.ora file and set NAMES.DEFAULT_DOMAIN and NAME.DEFAULT_ZONE to world for it to work properly.
ORA-12541: "No listener"
You just need to verify that the listener is running and also is listening for the SID or CONNECT_DATA value being sent be PL/SQL Developer. For example, if the listener on your remote machine is listening for 'pl_sql' but when you try to connect to the remote database the PL/SQL Developer is sending a request to connect to 'plsql', then there is 'no listener' listening for 'plsql' and it fails. IF you can connect to the remote database via sqlplus, but then when you try it from PL/SQL Developer and it fails, that means the listener is in fact running, but not listening for the correct string being sent to it by the application.
Hope this helps.
Roy -
ERROR IN CONNECTING TO B1 DATABASE
Hello,
I am trying to connect to SAP B1 database from an add on so to post a journal entry. I have not been able to and wondering what could be wrong on connecting to the database?Hi,
The question is not clear, you try to add through DI API or through SAP it self .
please check the link
oCompany.Connect takes a very long time.
and Check you system. the Server name or Ip is correct or not .
this also can be a problem.
Regards,
Mayank Shah -
Error while connecting to Access Database from Oracle
Dear All,
I'm trying to connect Oracle 9i to Access Database.
but im getting the below error while executing query.
ERROR at line 1:
ORA-28545: error diagnosed by Net8 when connecting to an agent
NCRO: Failed to make RSLV connection
ORA-02063: preceding 2 lines from MYSQLi did the following thing through to connect the database.
1) First i made odbc driver called ODBC1
2) I create the following file on oracle server C:\oracle\ora9I\hs\admin\initodbc1.ora
i edit the below thing in initodbc1.ora
HS_FDS_CONNECT_INFO =ODBC1
HS_FDS_TRACE_LEVEL = ON3) I made some changes in sqlnet.ora
SQLNET.AUTHENTICATION_SERVICES= NONE
before it was *NTS*4) Below are the entries in tnsnames.ora i changed the port from 1521 to 1522 cos 1521 already exists.
ODBC1.TADAWI.LOC =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = admin-amc)(PORT = 1522))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ODBC1)
ODBC1.WORLD =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.251) (PORT = 1522)
(CONNECT_DATA =
(SID = ODBC1)
(HS=OK)
)5) Listener file code
ODBC1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = admin-amc)(PORT = 1522))
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = admin-amc)(PORT = 1521))
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC2))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oracle\ora9I)
(PROGRAM = extproc)
(SID_DESC =
(GLOBAL_DBNAME = orcl)
(ORACLE_HOME = C:\oracle\ora9I)
(SID_NAME = orcl)
(SID_DESC =
(PROGRAM = hsodbc)
(ORACLE_HOME = C:\oracle\ora9I)
(SID_NAME = ODBC1)
)6) after that i created
SQL> CREATE DATABASE LINK MYSQL CONNECT TO XTRACK IDENTIFIED BY XTRACK USING 'ODBC1.WORLD'
Database link created.7) Listener Status
LSNRCTL for 32-bit Windows: Version 9.2.0.1.0 - Production on 04-MAR-2012 21:26:16
Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=admin-amc)(PORT=1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 9.2.0.1.0 - Production
Start Date 04-MAR-2012 20:52:33
Uptime 0 days 0 hr. 33 min. 44 sec
Trace Level off
Security OFF
SNMP OFF
Listener Parameter File C:\oracle\ora9I\network\admin\listener.ora
Listener Log File C:\oracle\ora9I\network\log\listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=admin-amc.tadawi.loc)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC2ipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=admin-amc.tadawi.loc)(PORT=8080))(Presentation=HTTP)(Session=RAW))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=admin-amc.tadawi.loc)(PORT=2100))(Presentation=FTP)(Session=RAW))
Services Summary...
Service "ODBC1" has 1 instance(s).
Instance "ODBC1", status UNKNOWN, has 1 handler(s) for this service...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "orcl" has 2 instance(s).
Instance "orcl", status UNKNOWN, has 1 handler(s) for this service...
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orclXDB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
The command completed successfullyi did exactly what documentation says and it will not through any error but atlast when i try to access the access database tables it give me the below error
SELECT * FROM DBO_COMPANY@MYSQL
ERROR at line 1:
ORA-28545: error diagnosed by Net8 when connecting to an agent
NCRO: Failed to make RSLV connection
ORA-02063: preceding 2 lines from MYSQLi'm using Oracle9i Enterprise Edition Release 9.2.0.1.0 any help will appreciate.
Regards
Moazam
Edited by: Moazam Shareef on Mar 4, 2012 10:25 AMfirst of all thanks for your support Mr. Kgronau
I did what u said but still its giving me below error.
SQL> SELECT * FROM DBO_PATINS@MYSQL
2 ;
SELECT * FROM DBO_PATINS@MYSQL
ERROR at line 1:
ORA-12154: TNS:could not resolve service namei re-check the service, and restart the listener as you said below are the logs could you help me to solve this issue plz.
TNSNAMES.ORA
# TNSNAMES.ORA Network Configuration File: C:\oracle\ora9I\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
ORCL.TADAWI.LOC =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = admin-amc)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
ODBC1 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = admin-amc)(PORT = 1522))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ODBC1)
INST1_HTTP.TADAWI.LOC =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = admin-amc)(PORT = 1521))
(CONNECT_DATA =
(SERVER = SHARED)
(SERVICE_NAME = MODOSE)
(PRESENTATION = http://HRService)
EXTPROC_CONNECTION_DATA.TADAWI.LOC =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC2))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)LISTENER.ORA
# LISTENER.ORA Network Configuration File: C:\oracle\ora9I\NETWORK\ADMIN\listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = admin-amc)(PORT = 1521))
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC2))
ODBC1 =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = admin-amc)(PORT = 1522))
SID_LIST_ODBC1 =
(SID_LIST =
(SID_DESC =
(SID_NAME = ODBC1)
(ORACLE_HOME = C:\oracle\ora9I)
(PROGRAM = hsodbc)
(SID_DESC =
(GLOBAL_DBNAME = ODBC1)
(ORACLE_HOME = C:\oracle\ora9I)
(SID_NAME = ODBC1)
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oracle\ora9I)
(PROGRAM = extproc)
(SID_DESC =
(GLOBAL_DBNAME = orcl)
(ORACLE_HOME = C:\oracle\ora9I)
(SID_NAME = orcl)
)then i restart both listener entries (ie lsnrctl start ODBC1 and lsnrctl start ) and both are running fine without any error below are the status.
LSNRCTL for 32-bit Windows: Version 9.2.0.1.0 - Production on 05-MAR-2012 18:42:09
Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=admin-amc)(PORT=1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 9.2.0.1.0 - Production
Start Date 05-MAR-2012 18:32:15
Uptime 0 days 0 hr. 9 min. 56 sec
Trace Level off
Security OFF
SNMP OFF
Listener Parameter File C:\oracle\ora9I\network\admin\listener.ora
Listener Log File C:\oracle\ora9I\network\log\listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=admin-amc.tadawi.loc)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC2ipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=admin-amc.tadawi.loc)(PORT=8080))(Presentation=HTTP)(Session=RAW))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=admin-amc.tadawi.loc)(PORT=2100))(Presentation=FTP)(Session=RAW))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "orcl" has 2 instance(s).
Instance "orcl", status UNKNOWN, has 1 handler(s) for this service...
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orclXDB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
The command completed successfullyLISTENER.ORA ODBC1 status
LSNRCTL for 32-bit Windows: Version 9.2.0.1.0 - Production on 05-MAR-2012 18:41:52
Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=admin-amc)(PORT=1522)))
STATUS of the LISTENER
Alias ODBC1
Version TNSLSNR for 32-bit Windows: Version 9.2.0.1.0 - Production
Start Date 05-MAR-2012 18:32:08
Uptime 0 days 0 hr. 9 min. 46 sec
Trace Level off
Security OFF
SNMP OFF
Listener Parameter File C:\oracle\ora9I\network\admin\listener.ora
Listener Log File C:\oracle\ora9I\network\log\odbc1.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=admin-amc.tadawi.loc)(PORT=1522)))
Services Summary...
Service "ODBC1" has 1 instance(s).
Instance "ODBC1", status UNKNOWN, has 2 handler(s) for this service...
The command completed successfullyWhere hope i'm near to retrive the access data.
Regards
Moazam -
ERROR while connecting to Netezza Database from oracle 10g via dblink.
Gurus,
We are trying to connect to Netezza DB from oracle 10g DB.. We successfully establised ODBC connection but unable to retrieve data over the dblink connected from oracle to Netezza. We get this error.. Please HELP ASAP!!!!!!!!
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
Server and/or port attributes are empty {HY000,NativeErr = 33}Manik wrote:
We are trying to connect to Netezza DB from oracle 10g DB.. We successfully establised ODBC connection but unable to retrieve data over the dblink connected from oracle to Netezza. We get this error.. Please HELP ASAP!!!!!!!!
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
Server and/or port attributes are empty {HY000,NativeErr = 33}Always test ODBC client connectivity on the Oracle server to the remote and foreign database, first. Use the isql ODBC client command line interface (as the oracle or grid o/s user).
If this does not work, then Oracle HSO will also not work.
Once you have confirmed that this is working, then configure the HSO service for Oracle.
If that fails, enables ODBC client tracing for that HSO service (in the init file for that service) to see exactly what ODBC calls Oracle is making and which of these are failing.
Maybe you are looking for
-
Search in Mail and iCal lost?
Mail issue: I have just upgraded to Leopard and find that I am no longer able to search "entire message" using Mail!! This is a terrible loss of functionality! Is anyone else having this problem or have I destroyed my Mac? I can only search "from" "t
-
The Installtion of updates for Photoshop CS6 failed. Error code for Update of Adobe Application Manager is U44M1P210, for all other features (Adobe Bridge, Photoshop CS6, Camera Raw) U44 M1U5
-
Export to Office and PDF solutions fail on client machines, HTML works
I have created a nice Dashboard with the Trial version ($495). My client was very happy with the solution so I want to buy the software. However, there is one problem that I have encountered. When I deploy the solution on my clients machines they get
-
When downloading it gets to the point of checking addons and gets stuck and wont open.
How do I get past checking addons when I cant open Firefox after downloading Firefox35.0? It seems to download fine but then it gets to the point of checking Addon compatibility and stops.
-
Passing table names as parameters (aka Trouble building a dynamic SQL command)
I am attempting to develop a template for publishing some data, and would like to pass standard table names as parameters to the various queries. What I have created generates the following error: Msg 137, Level 16, State 1, Procedure spPublishTrans