Database Link makes manipulation slow
i have oracle 8.5 with developer 6i.
my application uses two database server and there is a database link between both server.
when user make a transaction and commit the manipulation procedures post the transaction on local server and on other server through database link.
but some time it freezes when user press save button and resume after about 5 seconds. and even some time it hangs up for long time.
is there any solution to get rid of this problem?
i m working in a client server environment with LAN.
regards
adeel
how much time does it take if you do the same amount of data transaction on sqlplus with the two linked databases?
The solutions depend on the details of your task.
e.g.,if data are huge, using the database night cronjob to make the tansactions to the linked one.
Similar Messages
-
Custom function in a database view makes performance slow in OBI?
Hi,
I am facing a major performance problem.
I have a oracle view which is calling a database function ( which I created).
CREATE OR REPLACE VIEW ISRM_ECOX_NAK_REPLAY (ret)
as
select APP.ISRM_ECOX_NAK_REPLAY (CASHFLOW_MESSAGE.EXTERNAL_DEAL_NUMBER) ret from CASHFLOW_MESSAGE
It runs in the database in a couple of seconds. But when I import the view in the OBI repository the query keeps running for hours without returning any data.
If there are very few records in the database table used on the view then it runs in OBI after a couple of minutes, but not otherwise.
When I pick the query from Manage Sessions and run it in the database, again it runs fast
The OBIEE version is 10.1.3.4.1
thanks and regards,
Gaurav
Edited by: Gaurav on 22-Sep-2011 02:43Hi guarav,
may be an idea...why not creating a materialized view in the db which you make use of in obi?
Can't that solve your perf problems?
Kr,
A -
I've written an accouting program 15 years ago that runs on developer, with excellent performance overall. Now I'm trying to write an apex program that uses a database link to access the data on a 10.1.0.3.0 SE database. Two things are happening: 1) every once in a while, when I navigate on a view in an XE report (the usual "next 15 records" option,) apex asks if I want to "save" the file (f.bin) and then it gets real slow! Too slow for commercial use... I mean, it takes minutes to move between pages. 2) every two pages that I navigate, it gets really, really slow! It goes from the first page to the next fast; fast again; and then sloooow; fast, fast and then slow; fast, fast, and then: save the page. It is driving me nuts. I've tried using a 10g SE table@, I've tried using a 10g SE view@, and I've tried using an XE view on a 10g SE table - but I am having the same results... However, if I write an XE table, based on a 10g SE view, and do not use the database link, keeping everything local (using only the XE) - it gets very fast, and the strange behavour ends! I wanted to use a database link because it would be easier, much simpler to write the program, and very dynamic. If a have to transfer data between databases it will be much harder to do it.
Any ideas? Has anyone come across such behaviour? Do you believe it could be a bad installation? By the way, the 10g SE runs on RHES4 and the XE runs on debian; I'am using apex 2.0. Thanks.An update on the problem: I've decided to go with the whole XE solution, and I wrote another application, that works just fine! It's normal, I mean, fast! That is, until I transfer data between databases - then it gets real slow until the user logs out. Interesting, isn't it? Later on I'll try the other way around, connecting to SE and transfering the data from XE. I am using something like:
insert into table@dblink select * from table; delete from table;
insert into table select * from table@dblink; delete from table@dblink; -
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 -
Hi
I try send data from DB1 to DB2 via dblink.
I created link
CREATE DATABASE LINK MED
CONNECT TO user IDENTIFIED BY pass
USING
'(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.255.134.30)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = med)
and I can select data from remote table without errors.
When I try Insert data to remote table (with PLSQL)
for xx in (select u.*, sm.nr_gm, sm.nazwa nazwa_miejsc from adresy u ,sl_miejscow@med sm where u.miasto=sm.ident and
not exists
(select * from PAC@med pk where pk.ident_pac=u.identyfikator and pk.jednoraz='K' )
and u.data_zap is not null)
loop
insert into PAC@MED
(ident_pac, od_daty, do_daty, adr_ulica, adr_kod, nr_domu, nr_lokalu, telefon, jednoraz,z_kim_mieszka,ident_miejsc,ident_poczty,ident_kraj, adr_gmina, WOJEW_KOD, ADR_MIEJSC)
values
( xx.identyfikator, sysdate, to_date('31/12/2099','dd/mm/yyyy'),xx.ULICA, xx.KOD,xx.DOM,xx.LOKAL,
xx.TELEFON,'K',82, xx.MIASTO, xx.MIASTO, xx.kraj, xx.nr_gm,99, xx.nazwa_miejsc);
end loop;
I have error ORA-04054: database link string does not exist.
Can you help me ??
Message was edited by:
AndyPolI found solution.
Main problem was in GLOBAL_NAMES parameter.
This description help me:
Problem Description:
====================
You receive an ORA-02069 error during an insert to a remote database through a
database link when the insert contained a local sequence.
ORA-02069: global_names parameter must be set to TRUE for this operation
Cause: A remote mapping of the statement is required but cannot be
achieved because global_names should be set to TRUE for it to
be achieved.
Action: Issue alter session set global_names = true if possible
Problem Explanation:
====================
This is expected behaviour.
The insert statement is transformed so that it can be executed at the remote
end of the dblink. The reference to the local sequence has to be qualified so
that the remote end knows to call back to the local instance. The qualification
is made by appending @local_dbname.domain to the sequence reference if
global_names=true. When global_names=false, the code cannot make the assumption
that the qualifier will be valid and reports the error ORA-02069 'global_names
parameter must be set to TRUE for this operation'.
Search Words:
=============
DBLINK SEQUENCE GLOBAL_NAMES ORA-2069
Solution Description:
=====================
Use the following workaround:
1. Create a 'temporary' table on the local database for holding the inserts.
2. Insert the entire row into this table.
3. Insert the 'temporary' row from the temporary table to the remote table.
4. Delete the 'temporary' row from the temporary table.
This is slower but it will get around the problem. It help me
OR
Set GLOBAL_NAMES=TRUE in the init<SID>.ora - not work for me
Solution Explanation:
=====================
The first workaround bypasses the remote node having to make a
call back to the local instance to reference the local sequence. -
Execute procedure over database link
Hi,
I''m working on a package where you can select the required database, paste some query and with clicking on a button it will execute and create an explain plan for this query.
Therefore i've create a procedure on each database that put's the explain plan in the PLAN_TABLE.
To do this i need to execute this prodecure from the package. I use the following code:
DBA_OWNER.DB_PCD_EXPLAIN_PLAN@DBA_LINK_533.WORLD(p_query);
This is working fine as this database link allready exists to the required database. But i want to make the database link name variable. I've allready created the dynamic database link:
l_link varchar2(20) := 'DBA_LINK';
l_link_nr number(4) := dbms_random.value(0,1000);
l_db varchar2(20) := l_link||'_'||l_link_nr;
l_statement varchar2(4000);
begin
l_statement := 'create database link '||l_db||' connect to **** identified by ***** using '''||p_database||'.WORLD''';
execute immediate l_statement ;
So now i have the dynamic databaselink that is created each time i call the package.
now i want to use this databaselink to call the procedure. this is where it goes wrong.
The code i'm using:
DBA_OWNER.DB_PCD_EXPLAIN_PLAN@l_db(p_query);
is not acceoted when i build the package.
The follwoing error message is showed.
PACKAGE BODY DBA_OWNER.PCK_EXPLAIN_PLAN
On line: 66
PLS-00352: Unable to access another database 'L_DB'
Does someone know how to use this variable to execute the procedure on the remote db?Any procedures you call have to be accessible at compile time, so the database link must also exist at compile time.
You can get around this by putting your procedure call to DB_PCD_EXPLAIN_PLAN inside dynamic SQL, the same as you are doing to create the database link. Dynamic SQL is not checked until runtime.
Think about the risk if this procedure is exploited. You are creating a way for someone to run arbitrary code in an any database in your environment, with presumably a highly-privileged ID, if it can run an explain plan against any schema in any target database.
This is exposing some significant security issues. Read up on SQL injection, and have someone else review the code for security issues before deploying this. -
Interactive report performance problem over database link - Oracle Gateway
Hello all;
This is regarding a thread Interactive report performance problem over database link that was posted by Samo.
The issue that I am facing is when I use Oracle function like (apex_item.check_box) the query slow down by 45 seconds.
query like this: (due to sensitivity issue, I can not disclose real table name)
SELECT apex_item.checkbox(1,b.col3)
, a.col1
, a.col2
FROM table_one a
, table_two b
WHERE a.col3 = 12345
AND a.col4 = 100
AND b.col5 = a.col5
table_one and table_two are remote tables (non-oracle) which are connected using Oracle Gateway.
Now if I run above queries without apex_item.checkbox function the query return or response is less than a second but if I have apex_item.checkbox then the query run more than 30 seconds. I have resolved the issues by creating a collection but it’s not a good practice.
I would like to get ideas from people how to resolve or speed-up the query?
Any idea how to use sub-factoring for the above scenario? Or others method (creating view or materialized view are not an option).
Thank you.
Shaun S.Hi Shaun
Okay, I have a million questions (could you tell me if both tables are from the same remote source, it looks like they're possibly not?), but let's just try some things first.
By now you should understand the idea of what I termed 'sub-factoring' in a previous post. This is to do with using the WITH blah AS (SELECT... syntax. Now in most circumstances this 'materialises' the results of the inner select statement. This means that we 'get' the results then do something with them afterwards. It's a handy trick when dealing with remote sites as sometimes you want the remote database to do the work. The reason that I ask you to use the MATERIALIZE hint for testing is just to force this, in 99.99% of cases this can be removed later. Using the WITH statement is also handled differently to inline view like SELECT * FROM (SELECT... but the same result can be mimicked with a NO_MERGE hint.
Looking at your case I would be interested to see what the explain plan and results would be for something like the following two statements (sorry - you're going have to check them, it's late!)
WITH a AS
(SELECT /*+ MATERIALIZE */ *
FROM table_one),
b AS
(SELECT /*+ MATERIALIZE */ *
FROM table_two),
sourceqry AS
(SELECT b.col3 x
, a.col1 y
, a.col2 z
FROM table_one a
, table_two b
WHERE a.col3 = 12345
AND a.col4 = 100
AND b.col5 = a.col5)
SELECT apex_item.checkbox(1,x), y , z
FROM sourceqry
WITH a AS
(SELECT /*+ MATERIALIZE */ *
FROM table_one),
b AS
(SELECT /*+ MATERIALIZE */ *
FROM table_two)
SELECT apex_item.checkbox(1,x), y , z
FROM table_one a
, table_two b
WHERE a.col3 = 12345
AND a.col4 = 100
AND b.col5 = a.col5If the remote tables are at the same site, then you should have the same results. If they aren't you should get the same results but different to the original query.
We aren't being told the real cardinality of the inners select here so the explain plan is distorted (this is normal for queries on remote and especially non-oracle sites). This hinders tuning normally but I don't think this is your problem at all. How many distinct values do you normally get of the column aliased 'x' and how many rows are normally returned in total? Also how are you testing response times, in APEX, SQL Developer, Toad SQLplus etc?
Sorry for all the questions but it helps to answer the question, if I can.
Cheers
Ben
http://www.munkyben.wordpress.com
Don't forget to mark replies helpful or correct ;) -
How can you SELECT via Database Link CLOB data using Application Express?
Customer Issue:
Developer using Oracle's Application Express 3.1. The Developer is trying to SELECT a CLOB datatype column from a remote (10.2.0.3) database, via a database link on her 10.2.0.4 based client Application. The Developer wants to be able to select CLOB data from the remote database which has limitation that she can't make any changes to the remote database.
Developer's Comments:
I do a select and get the error. Getting error ORA-22992: cannot use LOB locators selected from remote tables. So she feels she can't use dbms_lob.substr in this configuration I can do a "select into" but that is for one value. I am trying to run a select statement for a report that brings back more than one row. I do not have permission to change anything on the remote database. I want to access the remote database and multiple tables.
This is not something I work with, would greatly appreciate help or ideas. Is this a limitation of the 3.1; or does she just not have this set up correctly; or should she be using a Collection (if yes, please share example)
Thanks very much,
Pam
Edited by: pmoutrie on Jun 4, 2009 12:01 PM
Hello???
Would really appreciate an answer.
Thanks,
PamThis may not be a perfect solution for you but it worked for my situation.
I wanted to grab some data from Grid Control's MGMT$JOB_STEP_HISTORY table but I couldnt' create an Interactive Report due to the existance of a CLOB column. I cheated this by creating a view on the GC DB, grabbing the first 4000 characters and turning it into a varchar2 column:
create view test_job_step_history as
select job_Name, target_name, status, start_time, end_time, to_char(substr(output,1,4000)) output
from MGMT$JOB_STEP_HISTORY where trunc(end_time) > trunc(sysdate)-90
In an APEX Interactive Report:
select * from test_job_step_history@GCDB
Granted, the output looks aweful right now but I am only looking for a very particular output (failed, denied, ORA-, RMAN-, etc) so the formatting isn't the most important thing to me right now.
If anyone can improve -- and I'm sure you can -- on this I'd love to hear about it.
Thanks,
Rich -
How to Create Public database link in oracle 9i?
Friends,
OS: RHEL AS 3
DB: 9iR2
database name 1 = nubul
database name 2 = test
in the 'nubul' database server using system user.
i created a database link to connect the 'test' database
sql> create public database link test using 'test';
database link created.
then i logged in as normal user....
sql> select count(*) from employee@test
Error at line 1:
ORA-12154: TNS: could not resolve service name
where i am making mistake?
i gave the linkname as my remote database name.
am i have to make any entry in the tnsnames.ora?
thanks & regardsYou have to remember that when you access a dblink, the database where the link is defined is acting as a client to the database to which the link points ... exactly the same as if you you were using sqlplus on the machine hosting the db where the link is defined. In other words, given:
Host 'Host-src', with database 'db-src', with a dblink 'lk_target'
Host 'host-trgt', with database 'db-trgt'
When you connect to db-src and access lk-target, db-src is now acting as a client to db-trgt. Exactly as if you had opened sqlplus on host-src and connected directly to db-trgt. So, given the above scenario
host-src$> sqlplus scott/tiger@db-src
sql> select * from emp@lk_target;when you execute that SELECT to the link, the same tns considerations are in effect as if you had
host-src$> sqlplus scott/tiger@db-trgtThe same tnsnames.ora entry, on the source machine, is required for both. -
Failed to create Database Link in OWB 9.2 for remote SQL Server
Hi,
I have to create Database link for connecting to SQL server in a different machine.I am using OWB 9.2 and XP.
Dataserver is the machine name which is running SQL Server
I included follwing lines in TNSNAMES.ORA file
hsodbc.world =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = dataserver)(PORT = 1433)
(CONNECT_DATA = (SID=hsodbc.world)
(HS =OK)
I included follwing lines in Listener.ORA file
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = dataserver)(PORT = 1433)
(SID_DESC=
(SID_NAME=hsodbc.world)
(ORACLE_HOME=C:\ora92)
(PROGRAM=hsodbc)
I included follwing lines in inithsodbc.ORA file
HS_FDS_CONNECT_INFO = testdsn
HS_FDS_TRACE_LEVEL = 0
While creating new database link I gave the follwing values
DB Link Name : Mylink
SQL * Net Connect String: hsodbc
User Name: sa
password:<my password>
Then clicked "Create and Test" button to get the follwing error message
Testing...
Failed.
ORA-12154 TNS:could not resolve service name
*Cause: The service name specified is not defined correctly in the TNSNAMES.ORA file
*Action: Make the following checks and correct the error:
- Verify that a TNSNAMES.ORA file exists on your repository server
in the proper place and is accessible. See the operating
system specific manual for details on the required name and location.
- Check to see that the service name exists in one of the
TNSNAMES.ORA files and add it if necessary.
- Make sure there are no syntax errors in the file.
Particularly look for unmatched parentheses or stray characters.
Any error in a TNSNAMES.ORA file makes it unusable. See
Chapter 4 in the SQL*Net V2 Administrator's Guide. If possible,
regenerate the configuration files using the Oracle Network Manager.
Is there anything wrong in my configuration. Please help me in getting out of this problem.
Thanks in advance
AndyHi Mark,
Thanks Mark.I did the changes in the specified .ora file but now it shows a different error message.
The error is
Testing...
Failed.
Cwm Error Message: SQL Exception
Cwm Error: SQL Exception
Class Name: CacheMediator
Method Name: getDDEntryFromDB
Repository Error Message: ORA-28545: error diagnosed by Net8 when connecting to an agent
NCRO: Failed to make RSLV connection
ORA-02063: preceding 2 lines from MYLINK
Query: select 1 from dual@MyLink
I got the same error when i tried manually in sql plus.
Please help me in getting out of thid problem
Thanks in advance
Andy -
How to Execute a Remote Procedure in Portal using Database Link
Hi,
I followed the instructions to create a Portal form for a remote procedure. But I am encountering the following error. Can someone advise what may be the cause?
Failed to execute - Missing string(create_package_body) language(us) domain (wwv) sub_domain (wwv_builder) (WWV-04300)
ORA-04020: deadlock detected while trying to lock object PUBLIC.PORTLET_SCHEMA (WWV-11230)
Failed to parse as PORTAL - (WWV-08300)
PURPOSE
How to execute a remote procedure in Portal using Database Link.
DESCRIPTION
This procedure assumes that you have two databases, one of which is remote, and Portal is configured in the other.
Remote Database A:
==================
1) Create a procedure as follows: Create or Replace PROCEDURE SCOTT.ADD_TWO_VALUES ( v_one IN NUMBER, v_two IN NUMBER, v_result OUT NUMBER) as begin v_result :=v_one+v_two; end; 2) Grant execute privileges to PUBLIC on the procedure.
Database B (where Portal is configured): ========================================
1) Create a public database link and choose to connect as a specific user (say SYSTEM). By default, in an Oracle 8i database, the "global_names" parameter in initSID.ora (or init.ora) file is set to "true". This Global Naming parameter enforces that a dblink has the same name as the database it connects to. Therefore, if the remote global database (A) name is "ora8.acme.com" then the database link should also be named as "ora8.acme.com".
2) Create a synonym for the procedure in Database A. Make sure you fully qualify the procedure name in the remote database (like SCOTT.ADD_TWO_VALUES).
3) Create a dynamic page to execute the procedure. The ORACLE tags in the dynamic page will look similar to the following: <ORACLE> DECLARE v_total NUMBER; BEGIN ADD_TWO_VALUES(:v_one,:v_two, v_total); htp.p('The total is => '); htp.p('<input type="TEXT" VALUE='||v_total||'>'); htp.para; htp.anchor('http://<machine.domain:port#>/pls/portal30/SCOTT.DYN_ADD_TWO_VALUES.show_parms', 'Re-Execute Procedure'); END; </ORACLE>
4) Portal does not have an option to create a form based on a synonym. Therefore, if you want to create a form instead of a dynamic page, create a wrapper procedure and then create a form based on this procedure. For example: Create or Replace PROCEDURE PORTAL30.ADD_TWO_VALUES_PR ( v_one IN NUMBER, v_two IN NUMBER, v_total OUT NUMBER) as begin add_two_values(v_one, v_two, v_total); end;
5) Grant execute privileges to PUBLIC on the procedure.hello...
any input will welcomed... Thanks.. -
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.
-
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 -
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 -
APP-RG-09518: An error occurred while creating a database link
Hi All,
While creating a database link in Oracle EBS from one instance to another instance for transferring FSG reports
Go to Any GL Setup responsibility...Setup>System>Database links > Create new database link
Prior to the above...below steps should be done on the server.
1.grant create database link to <apps.user>; (on db server)
2.source tns entry should be in destination tns file and destination tns entry in source tns file. (check tnsping after entry)
3.*make sure destination tns entry of 8.0.6 oracle home should be in source tns file* (Because we are creating db link for the application)
4.Run the Program FSG Report.
Regards,
Harish Muramshetty.Hi,
I have solved the issue as below:
This error was started when I install a software which I have made myself and it uses sql server compact edition 3.5.
I saw when I manually replaced the sql related files from "C:\Program Files (x86)\Microsoft SQL Server Compact Edition\v3.5" with the files which my software setup had "version 3.5.5386.0" then the error started. And if copy back the latest version 3.5.8080.0
then it disappear. So use latest sql files in your software too.
My software was replacing the the latest files with older version.
Muhammad Arshad Awan
Maybe you are looking for
-
Recommendations for running Windows on Macbook with OSX Lion version 10.7.2?
I Just bought a new MacBook Pro, running Lion, version 10.7.2. I am looking to run some windows applications on my mac, including AutoCAD, etc. I would ideally like to install bootcamp on my MacBook, but from what i understand, Lion is only compatibl
-
hi all , i have some trouble about sound recording function. i want to have 30S duration of sound input recording and also , if the user click the finish button the recording will be stopped even it is still have time for recording. i have tried
-
Hello, I have two 10.6.4 server machines wich I use as NTP server for my clients (both referes to time.europe.apple.com and have flagged NTP under general settings to enable NTP). One of them works properly: if on a client i use his FQDN or IP they t
-
Screen sharing - difficult to show the dock
I've had this problem in Mavericks and now again in Yosemite. When screen sharing with another computer whose dock "Automatically" hides and shows the dock, I have a very difficult time positioning the cursor so that a hidden dock will reveal itself.
-
Since I've upgraded to Maverick on my Macbook Pro the airpot utility does not recognise that there is a time capsule on the wireless network. I can see the TC using the air port utility on my iPhone5 and on my iPad. What am I doing wrong on my macboo