Database link from 11g to 10g
I am trying to create a database link from the 11g database to the 10g database using:
create database link ORCL10R2 connect to <username10g> identified by <password10g> using <db10g>;
It Returns
Database link created.
select sysdate from dual@ORCL10R2 returns error:
ERROR at line 1:
ORA-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATA
Please let me know what changes I need to make to tnsnames and listener at both servers.
11g database: 10.1.1.10
10g database: 10.1.1.12
TNSNAMES.ORA at 10.1.1.10
XYZ =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.1.1.10)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XYZ)
LISTENER.ORA at 10.1.1.10
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.1.1.10)(PORT = 1521))
what needs to be modified here?
Edited by: 944558 on 5 Jul, 2012 12:27 AM
Similar Messages
-
Database link from 11g to 10 g
I am trying to create a database link from the 11g database to the 10g database using:
create database link ORCL10R2 connect to <username10g> identified by <password10g> using <db10g>;
It Returns
Database link created.
select sysdate from dual@ORCL10R2 returns error:
ERROR at line 1:
ORA-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATA
Please let me know what changes I need to make to tnsnames and listener at both servers.i think this question is not related to sql or pl sql.
Please Post here
General Database Discussions
Venkadesh -
RPC through DB Link from 11g to 10g doesn't work
Guys,
I am unable to make simple RPC to an Oracle 10g database (Running on Unix Server) from Oracle 11g database (Running on XP Professional).
But RPC Call from 10g to 11g works fine.
Any idea?
C:\temp>sqlplus /nolog
SQL*Plus: Release 11.1.0.6.0 - Production on Thu Jan 24 10:13:50 2008
Copyright (c) 1982, 2007, Oracle. All rights reserved.
-- Login into 10g Database and create the procedure
SQL> conn scott/tiger@ORA10G;
Connected.
ORA10g> SET SERVEROUTPUT ON
ORA10g>SELECT * FROM V$VERSION;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for Linux: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
ORA10g>CREATE OR REPLACE PROCEDURE TEST AS
2 L_CNT NUMBER;
3
4 BEGIN
5 SELECT 1 INTO L_CNT FROM DUAL;
6 DBMS_OUTPUT.PUT_LINE('10G SYSDATE = ' || SYSDATE);
7
8 END;
9 /
Procedure created.
ORA10g>EXEC TEST;
10G SYSDATE = 24-JAN-08
PL/SQL procedure successfully completed.
-- Login to 11g Database and create the DB Link and call the procedure
ORA10g>conn scott/tiger@ORA11G;
Connected.
ORA11g>SELECT * FROM V$VERSION;
BANNER
Personal Oracle Database 11g Release 11.1.0.6.0 - Production
PL/SQL Release 11.1.0.6.0 - Production
CORE 11.1.0.6.0 Production
TNS for 32-bit Windows: Version 11.1.0.6.0 - Production
NLSRTL Version 11.1.0.6.0 - Production
ORA11g>create database link DB_LINK connect to SCOTT identified by TIGER using 'ORA10G';
Database link created.
ORA11g>SELECT * FROM DUAL@DB_LINK;
D
X
ORA11g>exec test@DB_LINK;
BEGIN test@DB_LINK; END;
ERROR at line 1:
ORA-04052: error occurred when looking up remote object SCOTT.TEST@DB_LINK
ORA-00604: error occurred at recursive SQL level 1
ORA-06544: PL/SQL: internal error, arguments: [55916], [], [], [], [], [], [],
ORA-06553: PLS-801: internal error [55916]
ORA-02063: preceding 2 lines from ORA10G
ORA11g>exitHello
Did u get the issue resolved after applying the patch 10.2.0.3?
I am also having the same problem with RPC and using 10g version 10.2.0.3 and 11g version 11.1.0.6
Thanks
Banu -
Database link from 10g database to 8i
Is it possible to create a database link from 10g(10.1.0) to talk to a 8i(8.1.7) database?
I'm using a database link between a 9i database to 8i database, and would like to upgrade the 9i database to 10g. I created a link in 10g and kept getting the error message: ORA-02019: connection description for remote database not found, but I have an entry for my database in the tnsnames.or on the 10g database server.
Message was edited by:
linghleongMy database version is 8.1.7.0, and I couldn't get to the point to select any data like the situation mentioned in the link.
I also tried to create a db link to a 9i(9.2.0) database, I got the same error message. I must have some issue other than linking from 10g to 8i. Any advice?
Thanks! -
Data pump import from 11g to 10g
I have 2 database: first is 11.2.0.2.0 and second is 10.2.0.1.0
In 10g i created database link on 11g
CREATE DATABASE LINK "TEST.LINK"
CONNECT TO "monservice" IDENTIFIED BY "monservice"
USING '(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = host)(PORT = port))) (CONNECT_DATA = (SID = sid)))';
And execute this query for test dbLink which work fine:
select * from v$[email protected];
After it i try to call open function:
declare
h number;
begin
h := dbms_datapump.open('IMPORT', 'TABLE', 'TEST.LINK', null, '10.2');
end;
and get exception: 39001. 00000 - "invalid argument value"
if i remove 'TEST.LINK' from the arguments it works fine
Edited by: 990594 on 26.02.2013 23:41Hi Richard Harrison,
result for import from 11g to 10g:
impdp user/pass@dburl schemas=SCHEMANAME network_link=TEST_LINK version=10.2
Connected to: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
ORA-39001: invalid argument value
ORA-39169: Local version of 10.2.0.1.0 cannot work with remote version of 11.2.0.2.0
result for export from 11g to 10g:
expdp user/pass@dburl schemas=SCHEMANAME network_link=TEST_LINK version=10.2
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64 bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing option
ORA-39006: internal error
ORA-39065: unexpected master process exception in DISPATCH
ORA-04052: error occurred when looking up remote object SYS.KUPM$MCP@TEST_LINK
ORA-00604: error occurred at recursive SQL level 3
ORA-06544: PL/SQL: internal, error, arguments: [55916], [], [], [], [], [], [], []
ORA-06553: PLS-801: internal error [55916]
ORA-02063: preceding 2 lines from TEST_LINK
ORA_39097: Data Pump job encountered unexpected error -4052 -
DATABASE LINK from 92060 to 102030 issue
Hi All,
Question on Database link:
Database A -- 10.2.0.3.0
Database B -- 9.2.0.6.0
Created database link from 10g to 9i and it works fine as expected.
I tried from BOTH server and also a CLIENT (SQLPLUS from my PC).
Created databas elink from 9i to 10g and it works fine on server
for example:
SQL> select sysdate from dual ;
SYSDATE
10-APR-07
SQL> select sysdate from dual@<<DBLINKNAME>> ;
SYSDATE
10-APR-07
However, I'm unable to connect using SQLPLUS.
for example:
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.6.0 - Production
SQL> select sysdate from dual ;
SYSDATE
10-APR-07
SQL> select sysdate from dual@daspnprd ;
select sysdate from dual@daspnprd
ERROR at line 1:
ORA-12154: TNS:could not resolve service name
Note;
=====
NO change in tnsnames.ora or LDAP.. ALL are identical
Any known issues???
Please help!!Make sure you are resolving with LDAP, (check the sqlnet.ora contents) and not the local tnsnames. Verify the entry at the OID and verify that the default context being used is correct by specifying a fully qualified net service name or a full LDAP DN as the connect identifier.
-
Hi all,
I am importing an expdat.dmp which is an output of 11g to lower 10g db.
So I am using a 11g client to import it to 10g. But I can not understand why some tables got imported while others were not :(
The error said that the table already exist, when in fact is it not yet there.
Have you encountered this kind of issue?
Or how do I import a dump from 11g to 10g?
Thanks a lot,
Yxz
Edited by: yxes2013 on 17.2.2013 20:02sb92075 wrote:
yxes2013 wrote:
Hi all,
I am importing an expdat.dmp which is an output of 11g to lower 10g db.
So I am using a 11g client to import it to 10g. But I can not understand why some tables got imported while others were not :(
The error said that the table already exist, when in fact is it not yet there.
Have you encountered this kind of issue?
Or how do I import a dump from 11g to 10g?
Thanks a lot,
Yxz
Edited by: yxes2013 on 17.2.2013 20:02export MUST be taken or done using the LOWER version utility.
http://docs.oracle.com/cd/E11882_01/server.112/e22490/dp_export.htm#SUTIL870
Wouldn't an export from the 11g Data Pump client work with a 10g database, as long as the dumpset was created with VERSION=10.x?
-Justin -
Exporting schema from 11g to 10g
how can i export full schema(suppost scott) from 11g to 10g both are on different machines and i dont know much about db side, if any body can suggest some queries.
thanks and regards
Abbaswhen i run the expdp it gives me following error
Export: Release 10.1.0.4.2 - Production on Wednesday, 27 April, 2011 11:43
Copyright (c) 2003, Oracle. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit
Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORA-39002: invalid operation
ORA-39070: Unable to open the log file.
ORA-29283: invalid file operation
ORA-06512: at "SYS.UTL_FILE", line 536
ORA-29283: invalid file operation
what can be wrong
Regards
Abbas -
How can i get data from another database SQL Server use database link from
I have a database link from Oracle connect to SQL Server database with user cdit connect default database NorthWind.How can I get data from another database(this database in this SQL Server use this database link)?
hi,
u should see following documentation:
Oracle9i Heterogeneous Connectivity Administrator's Guide
Release 1 (9.0.1)
Part Number A88789_01
in it u just go to chapter no. 4 (using the gateway),,u'll find ur answer there.
regards
umar -
Problem with using database link from oracle 7 to oracle 9i
Hi To Every One
I have two oracle database oracle 7.3.4.0.1 and oracle 9i 9.2.0.1.0.
and the tns alias to connect to oracle 9i database is oracle9i and tns
alias to oracle 7 database is oracle7.I have no problem in connect to
these database using these tns aliases from either database.The tns
alias for oracle 7 is available in tnsnames.ora file of oracle9i and
tns alias for oracle 9i is available in tnsnames.ora file of oracle 7.
So there is no connection problem from each other.Connection is
working fine for each other but the problem with database links is
like this
Problem:
when i create database link from oracle9i user or public database link
from oracle9i for oracle7 user like this
SQL ORACLE9I >CREATE DATABASE LINK ORACLE7 CONNECT TO <ORACLE7USER>
IDENTIFIED BY <PASSWORD> USING 'ORACLE7';
OR
SQL ORACLE9I >CREATE PUBLIC DATABASE LINK ORACLE7 CONNECT TO <ORACLE7USER>
IDENTIFIED BY <PASSWORD> USING 'ORACLE7';
The links get created sucessfully but when i write command like
SQL ORACLE9I> DESC <ORACLE7USER_NAME>.<ORACLE7USER_TABLENAME>@ORACLE7
I RECEIVE A ORACLE ERROR LIKE
ORA-12663 SERVICE REQUIRED BY CLIENT IS NOT AVAILABLE ON THE SERVER.
OR IF MY COMMAND IS LIKE
SQL ORACLE9I> SELECT <FEILD_NAME> FROM
<ORACLE7USER_NAME>.<ORACLE7USER_TABLENAME>@ORACLE7;
I RECEIVE AN ORACLE ERROR LIKE
ORA-01002 FETCH OUT OF SEQUENCE.
ORA-02063: preceding line from ORACLE7
BUT IF I CREATE A LINK FROM ORACLE7 USER FOR ORACLE9I USER
IT WORKS FINE.
PLZ HELP ME WHAT IS THE PROBLEM THAT THE LINK FOR ORACLE 7 IS NOT WORKING WHEN
IT IS BEING CREATED FROM ORACLE9I.
Thank u.Oracle 9.2.0 does not support connectivity to Oracle 7. The newest version that will support this is 9.0.1.
-
Database link from XE to 8i - Ok for XE, but error ORA-12705 for ApEx
I have oracle 8.1.7.4 (8i) with these settings:
PARAMETER VALUE
NLS_LANGUAGE AMERICAN
NLS_TERRITORY AMERICA
NLS_CURRENCY $
NLS_ISO_CURRENCY AMERICA
NLS_NUMERIC_CHARACTERS .,
{color:#ff0000}NLS_CHARACTERSET CL8MSWIN1251{color}
NLS_CALENDAR GREGORIAN
NLS_DATE_FORMAT dd-mon-rr
NLS_DATE_LANGUAGE AMERICAN
NLS_SORT BINARY
NLS_TIME_FORMAT HH.MI.SSXFF AM
NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZH:TZM
NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZH:TZM
NLS_DUAL_CURRENCY $
NLS_COMP BINARY
{color:#ff0000}NLS_NCHAR_CHARACTERSET CL8MSWIN1251{color}
NLS_RDBMS_VERSION 8.1.7.4.0
And oracle XE:
NLS_LANGUAGE AMERICAN
NLS_TERRITORY AMERICA
NLS_CURRENCY $
NLS_ISO_CURRENCY AMERICA
NLS_NUMERIC_CHARACTERS .,
{color:#ff0000}NLS_CHARACTERSET AL32UTF8{color}
NLS_CALENDAR GREGORIAN
NLS_DATE_FORMAT DD-MON-RR
NLS_DATE_LANGUAGE AMERICAN
NLS_SORT BINARY
NLS_TIME_FORMAT HH.MI.SSXFF AM
NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
NLS_DUAL_CURRENCY $
NLS_COMP BINARY
NLS_LENGTH_SEMANTICS BYTE
NLS_NCHAR_CONV_EXCP FALSE
{color:#ff0000}NLS_NCHAR_CHARACTERSET AL16UTF16{color}
NLS_RDBMS_VERSION 10.2.0.1.0
I create database link from XE to 8i - it works fine:
I create view in XE based on table from 8i
and using SQL Developer {color:#0000ff}I can Select/Insert{color} into this view {color:#0000ff}from XE{color}.
BUT when I login {color:#0000ff}to Application Express{color} and try the same SELECT from the view - {color:#0000ff}I get error:{color}
ORA-12705: ORA-12705: invalid or unknown NLS parameter value specified
ORA-02063: preceding line from LINKED8i
What should I do to make Application Express work with the view based on table in remote database correctly - i.e. allow me to Select/Insert/... ?Hi,
i don't have a solution for your problem but i want to share with you my research in using Database Links with XE/Apex.
I have done it a in a lot of projects and in most of all cases it shows a strange behavior when using Database Links via Apex. As far as i know SQL-Request in Apex are executed via the DBMS_SQL-Package. And that seems to be source for all errors and strange behaviors you get.
If you post a SQL-Request directly from your XE, everything's fine. If you do the same from APEX, sometimes it is very slow and sometimes it fails.
So, my approach to this issue is to work with Materialized Views. Your can create MV's on your XE to reference your remote tables and even schedule refreshes. In Apex, you only work with these MV's instead of the remote tables. And everything's going to be fine!
Hope this helps!
Regards, Jens -
Problem connecting DataBase Link from windows oracle to oracle on Linux
I'm facing a problem with database links from windows oracle to Oracle hosted on Linux server.
I'm able to successfully create the Database Link using the following query on oracle database hosted on a windows server
CREATE DATABASE LINK SampleDB
CONNECT TO myuser IDENTIFIED BY password
USING 'sample';
The tns names entry on windows for database in Linux server is as follows
DSOFT =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.100)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = sample)
But while executing the query "select count(*) from doctor@SampleDB;" in sql developer on windows, I'm getting the following error
SQL Error: ORA-12154: TNS:could not resolve the connect identifier specified
12154. 00000 - "TNS:could not resolve the connect identifier specified"
*Cause: A connection to a database or other service was requested using
a connect identifier, and the connect identifier specified could not
be resolved into a connect descriptor using one of the naming methods
configured. For example, if the type of connect identifier used was a
net service name then the net service name could not be found in a
naming method repository, or the repository could not be
located or reached.
Using the above tns entries, i'm successfully able to connect to the database in Linux server through sql developer installed on the windows machine. Then why i'm getting this error while executing the query on Database Link?. Can any one help me?1005745 wrote:
I'm facing a problem with database links from windows oracle to Oracle hosted on Linux server.
I'm able to successfully create the Database Link using the following query on oracle database hosted on a windows server
CREATE DATABASE LINK SampleDB
CONNECT TO myuser IDENTIFIED BY password
USING 'sample';
The tns names entry on windows for database in Linux server is as follows
DSOFT =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.100)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = sample)
But while executing the query "select count(*) from doctor@SampleDB;" in sql developer on windows, I'm getting the following error
SQL Error: ORA-12154: TNS:could not resolve the connect identifier specified
12154. 00000 - "TNS:could not resolve the connect identifier specified"
*Cause: A connection to a database or other service was requested using
a connect identifier, and the connect identifier specified could not
be resolved into a connect descriptor using one of the naming methods
configured. For example, if the type of connect identifier used was a
net service name then the net service name could not be found in a
naming method repository, or the repository could not be
located or reached.
Using the above tns entries, i'm successfully able to connect to the database in Linux server through sql developer installed on the windows machine. Then why i'm getting this error while executing the query on Database Link?. Can any one help me?A database link is acting as a client to the target, remote database in exactly the same fashion and using exactly the same tns infrastructure as any other client trying to connect to that remote database. your ORA-12154 when querying a db link means exactly the same as if you had gotten it trying to connect with sqlplus, from the same server. Check the link SB provided. Keep in mind that the tnsnames file of concern is the one on the source database server. -
Database link from oracle to db2
Can any help me to create a database link from oracle to db2. It would be greatful if you can provide me detail steps
<p>You don't give us much information to go on. What version of Oracle? What platform is DB2 running on? You might want to take a look at <b>this</b>. You might also look <b>here</b> and <b>here</b>.</p>
Tom -
Database link from Oracle8i to Oracle9i
Hi,
I am trying to create a database link from an oracle 8i database to connect to an oracle 9i database ... When testing the connection , I always receive an error "The Database link is not active"
Notes
1- Creating a database link that connects from the same 8i database to another 8i database succeeds. This gave me the impression that it is a compatibility problem but I am not sure.
2- I changed the initialization parameter
global_names = falseand restarted the Oracle database
3- the 2 databases are on the same domain
Did anyone pass through this problem before ??
thanksWell, I was testing the database link via DBA studio and there was no ora error associated with the message.
A friend helped me to identify and sove the problem. here is what he did.
Lets assume that the oracle8i database called Ora8i
and the oracle9i database called Ora9i
and that the network domain name is OraTest.com
When i select * from global_name; on both databases
Ora8i database return ==> ora8i
Ora9i database return ==> Ora9i.us.oracle.com
We then execute the following statement on Ora9i database
alter database rename global_name to Ora9i.OraTest.com;
Testing the database link after that went fine.
Thanks -
Creation of database link from oracle to sql server 2000
Hi
I need to create a database link from oracle to sql server 2000.Assuming your Oracle database is running on Windows, you can set up a database link using ODBC using Heterogeneous Services and Generic Connectivity, but there are some functional limitations (i.e. no two-phase commits). If you can live with those limitations but aren't on Windows, you can generally purchase an ODBC driver for your operating system that will connect to SQL Server through someone like DataDirect and still use Generic Connectivity. If you cannot live with those limitations, you can purchase one of Oracle's Transparent Gateway products (though this can get somewhat pricey).
What version of Oracle are you on?
What operating system(s) are you using?
What are you going to use the database link for?
Justin
Maybe you are looking for
-
ALV Filter : Not working for a text field - Strange problem
Dear All, I have a Z-program where the ALV filter is not working on a particular text field. The output on that text field is as below : ABCD JKLM YYZZ ABCD JKLM ABCD JKLM YYZZ YYZZ When we try to filter on YYZZ, it gives blank list. But for other op
-
Error Install : SAP NetWeaver 7.01 ABAP Trial Version
Hi Everyone, I am getting this error while trying to install SAP Netweaver 7.01 ABAP Trial version. (Sep 27, 2008 3:01:11 PM), Install, com.sap.installshield.maxdb.maxdb_call_sdbinst, err, An error occurred and product installation failed. Look at t
-
Generate bar codes in mail forms
Hi, I know how to insert Bar codes in smartforms, but I need to print the bar codes in Mail Forms, is that possible? Thanks a lot, Nuno Moreira
-
Configuring iviews related to appraisals in ESS
Hi- We are using ECC 5 and SP15. I am currently working on Appraisals in ESS/MSS. There is a template that is configured by the Functional person that determines what input fields, check boxes, and other display elements are rendered on the portal un
-
Acquisition Postings at Cutover not showing up in FI
Hi, I am trying to investigate why acquisition posting at time of Cutover are not showing up in FI as a posting. I have tested a new acquisition for the asset, and the acquisition is successfully posted, so I know that the account determinations are