database-link

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

Can I chain database links in Oracle?

折月煮酒 提交于 2019-12-06 02:14:00
问题 I have 3 databases. 1 links to 2, 2 links to 3. I'd like to query tables in 3, from 1. I tried third_db_tab@3@2 and it did not work. Wondering if this is possible and if so, what the syntax is. 回答1: I think you can do this by creating synonyms. In database 2 create a synonym: CREATE SYNONYM third_db_tab for third_db_tab@3; then in database 1 create a second synonym: CREATE SYNONYM third_db_tab for third_db_tab@2; This is untested (I don't have three databases running right now), but I think

Is transfer via database link in Oracle 10g compressed ? Is it possible?

夙愿已清 提交于 2019-12-01 07:38:16
I'm transferring data from one base to another via database links (using INSERT INTO SELECT ... ). I want to know if data transferred through the link is compressed or can be compressed to avoid too much network use. I have very little bandwidth, and I think that would help if it's not already done.

Is transfer via database link in Oracle 10g compressed ? Is it possible?

假装没事ソ 提交于 2019-12-01 04:58:55
问题 I'm transferring data from one base to another via database links (using INSERT INTO SELECT ... ). I want to know if data transferred through the link is compressed or can be compressed to avoid too much network use. I have very little bandwidth, and I think that would help if it's not already done. 回答1: There's some de-duplication but no serious compression. There is a UTL_COMPRESS function but it would be tricky to get that to decompress on the destination (maybe a trigger, or instead of

How to execute an Oracle stored procedure via a database link

时光毁灭记忆、已成空白 提交于 2019-11-29 04:58:19
问题 Can I call a stored procedure in Oracle via a database link? The database link is functional so that syntax such as... SELECT * FROM myTable@myRemoteDB is functioning. But is there a syntax for... EXECUTE mySchema.myPackage.myProcedure('someParameter')@myRemoteDB 回答1: The syntax is EXEC mySchema.myPackage.myProcedure@myRemoteDB( 'someParameter' ); 回答2: check http://www.tech-archive.net/Archive/VB/microsoft.public.vb.database.ado/2005-08/msg00056.html one needs to use something like cmd

工具导航Map

JSON相关