Mapping Deployment Has Error: Duplicate Database Link Exists
Hi everyone,
This is hopefully a simple question. I've been working with OWB 10GR2 for awhile now with no problems. My project finished and I moved on to another OWB environment, still 10GR2 and now my mapping deployments are having errors during the deployment. Each time I try to deploy the mapping, OWB also tries to create the database link, regardless of the fact that it already exists. It fails to deploy the database link but the mapping successfully deploys nonetheless. If I drop the database link and then deploy a mapping there is no error but then if I deploy a second mapping it comes back again (no real surprise here).
I tried to deploy the connector by setting it to "replace" and hit deploy. That was fine, but according to, OWB,even though I just replaced the exisiting DB link, it still didn't see that it was created. OWB still considered this connector as "New".
Does anyone know what I need to do to get OWB to stop trying to deploy the DB link with every mapping? How can I tell it that the DB link exists and is correct?
Thanks!
-Joe
Hi there,
I experienced same issue a few days ago ... I'll tell you how I solved it.
I think the real problem is that the link gets never marked as deployed => so, it's deployed with every single mapping which is using it!
You can even try to deploy it on its own, and deploying process ends with no errors, but it is not marked as deployed ...
Why can't the link be marked as deployed? Where does the db_link come from?
The link is pointing to a location where you dragged from a table (or any object) to your mapping.
In my case, the location was first created and registered by another user before starting project development (with a new user).
I unregistered the location with the original user and registered it again with my user, than I could deploy it and got it marked accordingly.
It's never again apperead within my mapping deployments.
Hope I've been clear enough ... and helpfull!
Joan.
Similar Messages
-
On deploy tries to recreate database link?
I have a problem when deploying a mapping.
I keep getting the error ORA-02011: duplicate database link name.
After I analyzed the Job Details of this deploy and the one of the mapping that is very similar to this one in the same location, I noticed that the one that gives problems tries to do Create of a location. The other one does a Replace of a location (database link). Both mappings are at the same location and the source and target locations are the same for both mappings.
Sounds familiar? What coud be the problem?Hi!
Probably you can check the connector status. In Control Center, you can expand the connector status and see what you have.
Regards,
Sebastian -
Admin tool error: Physical database already exists
Hello Gurus,
I am using OBIEE 11.1.1.3 and trying to import a new Essbase ASO cube into my RPD using the Admin Tool. I am getting the error message "Physical database already exists, but it is not of the same provider type". The cube is new and not in my rpd yet so why is it saying it exists? Is there a way to search for it in case it is in there?
Thanks very much for your help.
Regards,
JennC
Edited by: user754680 on May 13, 2011 5:06 PMYou can search for the Tables, Cubes, Databases etc that are already in the repository. Just click on tools in the admin tool and select query repository. Here you can select from the drop down list what you are looking for and leave the name as * if you want to search for everything.
Hope this helps.
Thanks,
-Amith. -
Error in database link(ORA-02063 and ORA-02391)
Hi
database link was working fine till this morning. now when i try to query using the database link, i get the following error
ORA-02391: exceeded simultaneous SESSIONS_PER_USER limit
ORA-02063: preceding line from RMSLIVE
It would beof great help if you can advise why this error is occuring.
many thanks.The error stack is quite obvious.
Either, the profile, with which the database user on remote database is running, must be modified to allow more connections or investigate the session leak in the application talking over database links. -
Before creating the link, I went into my init.ora file and made sure the GLOBAL_NAMES entry was false.
I then created a database link using the following:
create public database link cindy_link
connect to system identified by syspswd
using 'PRECISEI';
My link was created, but when I attempt to use it, I get the error:
ORA-02085:database link CINDY_LINK.WORLD connects to PRECISEI.WORLD
Here is the entry from my tnsnames.ora file:
PRECISEI =
(DESCRIPTION =
(ADDRESS_LINK =
(ADDRESS =(PROTOCOL = TCP)(HOST = taurus)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = precisei.world)
Here is the entry from my listener.ora file:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = precisei.world)
(ORACLE_HOME = E:|oracle\ora81)
(SID_NAME = precisei)
(I must admit to not having a full understanding of SID_NAME vs SERVICE_NAME.) I looked in dba_db_links, and my db_link is named CINDY_LINK.WORLD instead of CINDY_LINK.
Do I have a problem in one of my files?
I would really appreciate any help.
Thanks.Well, I was facing the same problem but corrected it later on. Let me describe the solution is little detail.
You need to check few things before creating db link.
1) db_name and db_domain in init.ora file
2) global_name in listener.ora file
3) service name in tnsnames.ora file.
It seems to me that you have not specified the db_domain in init.ora file. And in that case, you need to follow these steps.
I am considering here that you have database A on server X and database B on server Y.
Go to the first server (server X).
set the global name in init.ora file by following
Global_name=true
db_domain=usa.com
Start and open the database.
connect as system user.
(if your oracle sid is orcl then)
svrmgr30>alter database rename global_name
to orcl.usa.com;
this will set the global_name as specified in init.ora file. Here, your SID is orcl and db_domain is usa.com so global_name will be orcl.usa.com.
svrmgr30>Select * from global_name;
You get the answer like this.
Orcl.usa.com
Now, go to Listener.ora file and change global_name to the new name (orcl.usa.com)
restart the listener.
WE WILL SEE ABOUT THE CHANGES OF TNSNAMES.ORA LITTLE LATER.
Now, go to second server(server Y) and perform the same operation as defined above. i.e. Specify the db_name, db_domain in init.ora file, execute "alter database.." command for setting global_name and edit listener.ora file for new global name.
Once you do all these you need to create service on server 1 to connect to server 2 and on server2 to connect to server1.
Go to server X.
Open tnsnames.ora file and create an entry like this.
P =
(DESCRIPTION =
(ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(Host = IP address of B)(Port= 1521)))
(CONNECT_DATA = (SID = P))
Here, P is global name of P ( at both the places).
Now, go to server Y.
Open tnsnames.ora file and create an entry like this.
Q =
(DESCRIPTION =
(ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(Host = IP address of A)(Port= 1521)))
(CONNECT_DATA = (SID = Q))
Here, Q is global name of Q ( at both the places).
you are all set now.
Create database link between 2 servers now.
Say these are all your settings..
Server X is having database A with global_name orcl.usa.com and server Y is having database B with global_name orcl2.us.com
Now go to server X and create db link to server Y
Create public database link orcl2.us.com using 'orcl2.us.com'
(Note. don't miss to create a service 'orcl2.us.com' in server X's tnsnames.ora file)
And go to server Y and create db link there.
Create public database link orcl.usa.com using 'orcl.usa.com'
(Note. don't miss to create a service 'orcl.usa.com' in server Y's tnsnames.ora file)
hope this helps,
If this doesn't work, feel free to contact me.
Kalpen
<BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by cindy spearman ([email protected]):
Before creating the link, I went into my init.ora file and made sure the GLOBAL_NAMES entry was false.
I then created a database link using the following:
create public database link cindy_link
connect to system identified by syspswd
using 'PRECISEI';
My link was created, but when I attempt to use it, I get the error:
ORA-02085:database link CINDY_LINK.WORLD connects to PRECISEI.WORLD
Here is the entry from my tnsnames.ora file:
PRECISEI =
(DESCRIPTION =
(ADDRESS_LINK =
(ADDRESS =(PROTOCOL = TCP)(HOST = taurus)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = precisei.world)
Here is the entry from my listener.ora file:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = precisei.world)
(ORACLE_HOME = E:|oracle\ora81)
(SID_NAME = precisei)
(I must admit to not having a full understanding of SID_NAME vs SERVICE_NAME.) I looked in dba_db_links, and my db_link is named CINDY_LINK.WORLD instead of CINDY_LINK.
Do I have a problem in one of my files?
I would really appreciate any help.
Thanks.<HR></BLOCKQUOTE>
null -
Sintax error depending database link used
Hi every one, I have a weird weird situation and I need some tips to deal with it.
A code like that:
declare
all variables;
begin
select xxxx
into vl_xxx
from t1@db_L1 a
, t2@db_L1 b
, t3@db_L1 c
where etc;
some stuff;
end;
WHY this kind of code could faisl with sintax errors: dbe_jobs_pkg.pr_eje_alm:26-04-2010 09:22 --> ast_codigo = 47:ORA-06550: line 69, column 14:
PL/SQL: ORA-00904: "A"."TABLESPACE_NAME": invalid identifier)
depending of the database link used. Indeed, if I execute de query in a isolated way (sql*plus for example) it works fine using the database link whose plsql fail
I garantee there is not grants problems...
By the way, the code begun to fails suddendly, and I don't know what happened....
All the databases are 9.2.0.5
I need sugestions to track o investigate the posible causes
Thanks a lot, kind regards
Mauricio Fernández C.
ADDENDUM:
I've restarted the source database and the PL/SQl with sintax error now works fine....Still I need some tips to understand what's going on.....
Edited by: maufer on 26-abr-2010 7:10Prashanth
my guess is that you can create the database link, which simply points to the remote instance. however, the problem is on the remote instance.
As the error message suggest, make sure that the listener is up and running on the remote machine. The link can be created, but if there is no listener on the other side, you will not get any response. -
Error :This database already exists and is not a supported version of MBAM.
While installing MBAM 2.0 SP1 i get the following error ,screenshot is attached.
This database already exists and is not a supported version of MBAM.
System set-up
Server 2012 on which SQL 2012 SP1 is installed.
Adding MBAM Audit , recovery and compliance features.Change the name of the database to:-
- For Recovery database - "MBAM Recovery and Hardware"
- For Compliance Database - "MBAM Compliance Status"
While installing the MBAM DB features and then try. Don't change the default names or use any custom name for DBs.
Gaurav Ranjan -
Hello Everybody,
I am getting the following error while creating the database link using the connection information at OWB Client.
Testing...
Failed.
ORA-12514 TNS: no listener
*Cause: The connection request could not be completed because the listener is not running
*Action: Ensure that the supplied destination address matches one of the addressed used by the listener
-compare the TNSNAMES.ORA entry with the appropriate LISTENER.ORA file
Start the listener on the remote machine.
The version of OWB Client is 10.1.0.2.0.
When queried at oracle using the userid which i used to login OWB Client i.e. as shown below
select db_link from all_db_links - the database link is created. But none of the obects are accessable with the db link.
Note: I am able to create a database link explicity by issuing the command at backend oracle i.e create database link etc. and also able to access the tables.
Kindly help.
Thanks
PrashanthPrashanth
my guess is that you can create the database link, which simply points to the remote instance. however, the problem is on the remote instance.
As the error message suggest, make sure that the listener is up and running on the remote machine. The link can be created, but if there is no listener on the other side, you will not get any response. -
Deploying a mapping creates a database link
I have one mapping where everytime I deployed a mapping it always creates a database link. How do I remove this and how did this happen?
Is the problem that you expect a local reference like SCOTT.EMP rather than SCOTT.EMP@DBLINK? Check the source and target locations for the tables in your mapping, check that the locations are defined identical in the host:port:service name? Did you define them with H:P:S? May be one has localhost the other a machine name or something.
Cheers
David -
Now connected to database B :
INSERT INTO abc_hesids
( abc_key,
hesid,
date_added,
date_updated,
dob,
sex,
newnhsno,
homeadd,
procode3,
lopatid
SELECT 'X',
0,
sysdate,
sysdate,
HES_Common.f_string_field('X', 1),
HES_Common.f_string_field('X', 2),
HES_Common.f_string_field('X', 3),
HES_Common.f_string_field('X', 4),
HES_Common.f_string_field('X', 5),
HES_Common.f_string_field('X', 6)
FROM dual
The above INSERT has been reduced down to bare minimum with the following error occurring :
HES_Common.f_string_field('X', 1),
ERROR at line 18:
ORA-02069: global_names parameter must be set to TRUE for this operation
SQL>
The abc_hesids table exists in database A and this insert is running in database B. A database link exists such that abc_hesids is a synonym for the table of the same name in database A.
I want Oracle to insert into the table in database A but use the package HES_Common in database B. I think this is possible but have not done this sort of thing for a while. Note : the package HES_Common exists in both databases A and B
Any ideas on how to get Oracle to use the local version of the package - do I have to get the DBA to change global_names to TRUE ??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. -
ORA-02020 too many database links
Hello,
I'm getting the ORA-02020 too many database links error in my Apex application. This error occurs when I run an interactive report in a page. There are 21 pages and 7 database links in the application. Each page has one interactive report that references one database link in the region source.
The database links are referenced in each page as follows: database link1 (page 1); database link2 (pages 2 and 3); database link3 (pages 4-7), database link4 (pages 8-15); database link5 (pages 16-18); database link6 (pages 19); and database link7 (pages 20-21). Each database link is referenced to separate schemas in one remote Oracle database.
I tried to eliminate the error by setting the open_links and open_links_per_instance parameters in the init.ora file of the remote and XE databases to 100 then restarted the both databases. This solution did not work. I created separate Application Processes from the Shared Components to close each database link by implementing the following:
Click on Shared Components> Logic > Application Processes > Create >
Name: CLOSE_LINK1
Sequence: 1
Point: On Load: Before Header (page template header)
Type: PL/SQL Anonymous Block
Process Text: execute immediate 'ALTER SESSION CLOSE DATABASE LINK LINK1';
Error Message: Database Link Error
When I run the application now, the ORA-02081: database link is not open error appears.
Please help anyone! I know someone has experienced these same errors.
Thanks,
Ms. HJoel,
Thank you for your quick response. For clarification purposes, could you provide samples for 1) issuing the CLOSE DATABASE LINK and catching the exception; and 2) querying from V$DBLINK prior to issuing the CLOSE DATABASE LINK from the Shared Components > Logic > Application Processes?
Lets assume the following query with a database link in the region source is referenced for Page 1.
Page 1 - Employee Listing
Region Source:
select ename, job, hiredate
from scott.emp@link1
Lets assume the following Application Processes from the Shared Components is referenced to close the database link:
Click on Shared Components> Logic > Application Processes > Create >
Name: CLOSE_LINK1
Sequence: 1
Point: On Load: Before Header (page template header)
Type: PL/SQL Anonymous Block
Process Text: execute immediate 'ALTER SESSION CLOSE DATABASE LINK LINK1';
Error Message: Database Link Error
My thoughts are to do the following:
1. Log in SQL*Plus as SYS
SQL> grant select to v_$dblink to scott;
2. In Apex, goto Shared Components> Logic > Application Processes and add the following queries in the Process Text:
Name: CLOSE_LINK1
Sequence: 1
Process Text:
select db_link from v$dblink;
execute immediate 'ALTER SESSION CLOSE DATABASE LINK LINK1';
3. Catch the exception???
Your assistance is greatly appreciated. :8}
Ms. H -
NLS settings for a database link between DBs with different character sets
I am using a database link to move data from one database to another and I am seeing some strange data problems. The databases have different character sets and different NLS settings. I wonder if this could be causing my problem.
Here are the NLS parameters for the database where the database link exists. (the SOURCE database)
1 NLS_CALENDAR GREGORIAN
2 NLS_CHARACTERSET WE8MSWIN1252
3 NLS_COMP BINARY
4 NLS_CURRENCY $
5 NLS_DATE_FORMAT DD-MON-RR
6 NLS_DATE_LANGUAGE AMERICAN
7 NLS_DUAL_CURRENCY $
8 NLS_ISO_CURRENCY AMERICA
9 NLS_LANGUAGE AMERICAN
10 NLS_LENGTH_SEMANTICS BYTE
11 NLS_NCHAR_CHARACTERSET AL16UTF16
12 NLS_NCHAR_CONV_EXCP FALSE
13 NLS_NUMERIC_CHARACTERS .,
14 NLS_SORT BINARY
15 NLS_TERRITORY AMERICA
16 NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
17 NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
18 NLS_TIME_FORMAT HH.MI.SSXFF AM
19 NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
Here are the NLS parameters for the database that the database link connects to. (the TARGET database)
1 NLS_CALENDAR GREGORIAN
2 NLS_CHARACTERSET AL32UTF8
3 NLS_COMP BINARY
4 NLS_CURRENCY $
5 NLS_DATE_FORMAT DD-MON-RR
6 NLS_DATE_LANGUAGE AMERICAN
7 NLS_DUAL_CURRENCY $
8 NLS_ISO_CURRENCY AMERICA
9 NLS_LANGUAGE AMERICAN
10 NLS_LENGTH_SEMANTICS BYTE
11 NLS_NCHAR_CHARACTERSET AL16UTF16
12 NLS_NCHAR_CONV_EXCP FALSE
13 NLS_NUMERIC_CHARACTERS .,
14 NLS_SORT BINARY
15 NLS_TERRITORY AMERICA
16 NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
17 NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
18 NLS_TIME_FORMAT HH.MI.SSXFF AM
19 NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
The SOURCE database version is 10g Release 10.2.0.3.0 - Production
The TARGET database version is 11g Release 11.1.0.6.0 - 64bit Production
Do I need to modify the NLS settings in the SOURCE database before executing a script to insert data into the TARGET database?
Thanks, JackThe difference in settings is not a problem by itself, especially that only the NLS_CHARACTERSET matters. Of course, this difference may lead to certain issues if not taken into consideration.
Please, describe symptoms of your problems.
-- Sergiusz -
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 -
Hi all,
While trying to create a database link i am getting the following error:
Create Database Link Failed.
ORA-01031: insufficient privileges
Could you please tell me how to create a database link.
Thanks
GrishmaHi Grishma,
Login as DBA (SYSTEM or SYS for ex.) in SQL*Plus and run this command:
SELECT *
FROM dba_sys_privs
WHERE grantee = 'USERNAME'
AND PRIVILEGE = 'CREATE DATABASE LINK'
Change the USERNAME by the USER you're trying to create the database link from. (CAPITALS!)
Dimitri -
ODP AND DATABASE LINKS ???
Hi, some very weird stuff going on here:
When I bind data to my datagrid, if it comes through a database link in any way (either I code to access via a database link or I create a view with the link in it) I get only the first two chars of every field. Really weird, any ideas:
You can see four sql lines below- The only one that works is one that is a view on the local database(not the data i need), all the others only return first two chars of every item via the db link. In case two I created the view with the link in it.
Code in my DAL:
Public Function returnTissues(ByVal inFrom As String, ByVal inTo As String) As DataTable
Dim tissues As New DataTable
Dim command As New OracleCommand
Dim adapter As New OracleDataAdapter
Try
Dim sql As String = "select specimenid, status, sampletype, form, species from [email protected] where specimenid between '" & inFrom & "' and '" & inTo & "'"
'FAIL-Dim sql As String = "select specimenid, status, sampletype, form, species from specimen_view_sbat where specimenid = 'ONC000100'"
'PASS-Dim sql As String = "select * from request_view"
'FAIL-Dim sql As String = "select s_sampleid from [email protected] where s_sampleid = 'MGH000167'"
command.CommandText = sql
command.Connection = Me.globaldal.msdb
adapter.SelectCommand = command
adapter.Fill(tissues)
Return tissues
Catch ex As OracleException
Throw ex
Finally
End Try
End Function
Here is the page code:
Private Sub ButtonSearchByRange_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonSearchByRange.Click
Dim fromvalue As String
Dim tovalue As String
fromvalue = TextboxFrom.Text
tovalue = TextBoxTo.Text
DataGridTissues.DataSource = tissuedal.returnTissues(fromvalue, tovalue)
DataGridTissues.DataBind()
End Sub
Also, I will materialize the view and try it, but it has got to be the ODP, the sql executes fine via slqplus, toad, etc, and It's not the grid, I bound the first column to a dropdown and got the same result.
My ENV:
Local DB 8.1.7.3 - I think
Remote DB 9 release 2
OPD: 9.2.0.4.01Further testing has revealed:
The database link works fine when connected to another 8.1.7.4 instance as opposed to the 9.2.0.3.0 instance.
It makes no difference if the link is public or private.
Creating a materialized view with the database link in it to the 9.2.0.3.0 instance also works fine.
However none of the above is a solution.
Maybe you are looking for
-
Hi, I configured ESS. In portal i created 2500 users. All these 2500 users need to access ESS services. All these 2500 users has personal id's in r/3. But do i need to create 2500 users also in r/3 system....or without creating users can i access the
-
Chart Top N shows "0" in legend instead of "Others"
We have a report template that was created in Crystal Reports XI R2 that displays two charts in a Report Header. The first chart is a Top N chart; the second is a Bottom N chart. Both charts use the setting "Include Others with name "Others"". Our
-
How to make a personal hotspot ?
how to make a personal hotspot ?
-
hello I am making a program to automatically rename greek filenames to greeklish (still in greek but written with english characters) I have a serious problem because Java seems to have a problem handling those characters in my machine - or maybe I a
-
Where is the dialpad and the volume button in Skyp...
I seriously miss the volume button in Skype. I can't mute other people anymore if I'm distracted by them when watching a video or something. And also: Where is the dialpad? Did it just dissappear? I'm sorry Skype, but i seriously hate this update. Th