database-link

Java query with DB Link does not close the Db Link connection

点点圈 提交于 2021-01-28 19:49:47
问题 I have a Java code that connects to Database A. Database A has DB link to Database B. Both database are oracle. I make a JPA connection to Database A Then I run a query from joining a table from DAtabase A to table in Database B Then Close connection to Database A Simple code. I am still seeing the DB link connections on Database B is open. It is not closing. Any idea why? I am assuming that it should be internally handled right? Thoughts? 回答1: If you close a connection to the database all

ORA-02019: connection description for remote database not found

点点圈 提交于 2020-05-29 09:41:23
问题 I have created a db link AM_ADMIN throufh SQL Developer: I am trying to check if it is a valid database link. When I test it from the SQL Developer wizard it is successfull. But when I use the below command: SELECT * FROM dual@AM_ADMIN I'm getting the error: ORA-02019: connection description for remote database not found How can I rectify this error? 回答1: According to your screenshot you created the database link as AM_ADMIN.INT.xxx . You are calling it without the domain, just as @AM_ADMIN .

How to create a database link in MySQL to connect to Oracle?

馋奶兔 提交于 2020-01-10 19:34:14
问题 I need to create a database link in MySQL to connect to an Oracle database to use a table present in the Oracle database. I am not able to find any code or method of creating a database link in MySQL. How could I do this? 回答1: You can access the Oracle (or other DBMS) information directly from within MySQL using the MySQL Federated tables via the Perl DBIx::MyServer proxy. This method has been around since about 2007: a good step-by-step write-up of the set-up and usage is available here:

on using oracle database link theres an error “ORA-12154 TNS Could not resolve the connect identifier specified”

微笑、不失礼 提交于 2019-12-25 08:35:23
问题 I'm trying to define a database link on oracle 10.2 with connection identifier that throws the error in the question header. I have the connection identifier (service name) in my tnsnames.ora file. I can connect with sqlplus using this service name. no problem. This is the creation sql: create database link dev1.REGRESS.RDBMS.DEV.US.ORACLE.COM connect to user1 identified by pass1 using 'dev1'; select using the link: select * from t_users@dev1; I get: ORA-12154: TNS:could not resolve the

Create a Test Database copy of Production with only a sample set of Data

霸气de小男生 提交于 2019-12-22 08:22:17
问题 We have 2 Oracle databases. One is our Production customer database. The other is a test database. The Test database is a copy of production without any data...just empty tables. I am trying to come up with an efficient and effective way to copy a sample set of data from the Production db to the Test. I need to start with a sample list of PKs from our Customer table and write a process to populate the test database Customer table with that sample. Then, I need to populate child tables with

ORACLE/ASP.NET: ORA-2020 - Too many database links… what's causing this?

我是研究僧i 提交于 2019-12-12 15:20:34
问题 Here's the scenario... We have an internal website that is running the latest version of the ODAC (Oracle Client). It opens database connections, runs a stored procedure or packaged method, then disconnects. Connection pooling is turned on, and we are currently under version 11g in both our development and test environments, but under 10gR2 in our production environment. This happens on Production. A few days ago, a process began firing off a ORA-2020 error. The process is called from a

Oracle after update trigger creating public database link

梦想的初衷 提交于 2019-12-11 19:03:50
问题 I have an error: 'ORA-04092: cannot COMMIT in a trigger' when trying to execute ddl command in one simple oracle after update trigger. Trigger needs to create public database link after one field in column is updated. Here is the source: create or replace TRIGGER CreateLinkTrigger after UPDATE of Year ON tableInit for each row DECLARE add_link VARCHAR2(200); BEGIN IF :new.year = '2014' then add_link := q'{create public database link p2014 connect to test14 identified by temp using 'ora'}';

Variable for Database Link Name

感情迁移 提交于 2019-12-08 07:26:48
问题 I want to do v$session@remotedatabase where remotedatabase is a variable for a dblink address. Is that possible? I'm using Apex 4 and trying to get temporary space on all databases. Current query select 'Total temp space available in :Database is '||sum(bytes)/1024/1024 ||' mb' from v$tempfile@:Database yeilds ORA-01729: database link name expected because the variable isn't resolved correcltly? I'm quite new to SQL, sorry 回答1: You would need to use dynamic SQL in order to have the database

ORA-24778: cannot open connections

限于喜欢 提交于 2019-12-08 04:52:43
问题 I am getting the ORA-24778: cannot open connections , what are the possible causes? We have a number of applications deployed in WAS7 profile and they connect to a number of schemas in Oracle 11g. One of the schema is connecting through other schema via public DB link. I cannot identify a solution for this cause. After restarting the WAS7 profile, it is ok for a while and again start hitting the error. Pls help!! 回答1: I assume you missed to tell us a few details: You are using XA You are

Oracle database link - connect to proxy with special characters in username

狂风中的少年 提交于 2019-12-08 03:15:35
问题 A user is granted connect by proxy via another user whose name contains special characters: CREATE USER "A-USER" IDENTIFIED BY "a"; CREATE USER foo IDENTIFIED BY "random-trash"; ALTER USER foo GRANT CONNECT THROUGH "A-USER"; Now I'm struggling to create a database link to this: CREATE PUBLIC DATABASE LINK dbl CONNECT TO A-USER[FOO] IDENTIFIED BY "a"; -- ... but it complains about '-' CREATE PUBLIC DATABASE LINK dbl CONNECT TO "A-USER[FOO]" IDENTIFIED BY "a"; -- ... but it treats whole "A-USER