116 questions
0
votes
0
answers
31
views
Different results when invoking function with raw sql and plsql [duplicate]
Well I have 2 distinct Oracle 12c databases, lets name them db1 and db2
I have a link from db1 to db2 (DBL_DB2), also grants for execution of pkg2 which contains procedure 2, which we call proc2 (in ...
0
votes
0
answers
144
views
Getting ORA-00942 error when running Insert Into
I am trying to insert data from a couple different tables in 2 different databases using database links. If I run the select query on it's own, it runs without error and returns the expected results. ...
0
votes
2
answers
206
views
ORA-22992: cannot use LOB locators selected from remote tables
I took the SQL down to the very very bare basics and it still fails on the Insert statement. ORA-22992: cannot use LOB locators selected from remote tables
-- CREATED A TEMP TABLE
DROP TABLE "ABC&...
0
votes
1
answer
600
views
Unable to drop database link
I have 2 database links that have the same db link name, but different service name. As sys dba, I try to drop the one with the wrong TNS info, but I keep getting the "database link not found,&...
0
votes
0
answers
71
views
PLS-00201: identifier 'DBMS_UTILITY.EXEC_DDL_STATEMENT@DB_LINK' must be declared
I am trying to run a DDL statement, from an Oracle database on a Postgres database, through the procedure DBMS_UTILITY.EXEC_DDL_STATEMENT like this:
begin
dbms_utility.exec_ddl_statement@DB_LINK(
'...
0
votes
1
answer
305
views
Create a view between two databases in same PostgreSQL sever
There is a table called TableA and anther table called TableB both of them are in same sever i want to create a viwe called TEST in TableA which takes Username, ID columns to the view from suser table ...
0
votes
1
answer
492
views
Database link without wallet
I am currently working on creating a database link to query data from an on-premises Oracle database. Although I have a working connection string, I don't have access to the server itself. When I ...
0
votes
1
answer
100
views
Problem with catching data from Oracle XE 21c over db link from database MySql 8.0.32
We have problem when we want catch data from Oracle XE 21c over db link from database MySql 8.0.32, when we use where condition on select the results are waiting for a very long time.
For example :
...
0
votes
0
answers
51
views
PL/SQL: ORA-00904: "ArticleWarehouseCode": Invalid Identifier
I'm trying to insert data from DB Oracle (Sql Developer) to SQL Server through dblink oracle, but when I run the code, I get this error message:
Report error -
ORA-06550: riga 16, colonna 64:
PL/SQL: ...
1
vote
1
answer
588
views
How to drop table with dblink
How to drop a table if it exist in oracle with dbLink?I am here trying to connect to remote database using DBLink in oracle.I am using oracle sql developer.
DROP TABLE TableName@dbLinkName. This ...
0
votes
2
answers
730
views
Retuning statement with dblink gives error
I have created a table with generated identity column .script below
CREATE TABLE "TABLESAMPLE"
( "DESCRIPTION" VARCHAR2(2 BYTE),
"TID" NUMBER(5,0) GENERATED ALWAYS AS ...
3
votes
1
answer
194
views
Retrieving numbers in ranges via Oracle SQL
I have a very slow query due to scanning through millions of records. The query searches for how many numbers are in a specific range.
I have 2 tables: numbers_in_ranges and person table
Create table ...
0
votes
2
answers
264
views
MView from remote table over database link gets empty after recreation of table
DB-Server 1:
CREATE TABLE foo (id NUMBER);
INSERT INTO foo VALUES (1);
COMMIT;
DB-Server 2:
CREATE DATABASE LINK foo_link... -- Points to Schema of DB-Server 1.
CREATE MATERIALIZED VIEW mv_foo ...
0
votes
1
answer
1k
views
Can I create a database link from Oracle 18c to a JDBC data source with just the proper JAR file?
I have an Oracle 18c database. From this DB I need to create a database link to a Progress/Openedge 11.7 database to retrieve some data.
I am somewhat familiar with Heterogeneous Services which uses ...
0
votes
1
answer
1k
views
Accessing table and column comments in Oracle for tables in SQL Server via databaselink
I use an Oracle database, where I have a database-Link to a Microsoft SQL Server database.
I need to access the comments for tables in the Microsoft SQL Server database from my Oracle database.
Using ...
0
votes
4
answers
1k
views
ORA-01406 when copying data from one Oracle database to another with different Unicode
I have two identical tables: original_table, destination table in two different Oracle database.
-- Oracle 1
create table original_table
(
my_id NUMBER(11) not null,
my_fld CHAR(15),
)
-- ...
1
vote
1
answer
192
views
Returning Multiple Values from Oracle Function over Database Link
I have two oracle databases: A and B.
On database A, I have a function which returns user defined type:
create or replace type my_type as object
( id number,
f2 varchar2(4000),
f3 ...
-1
votes
1
answer
642
views
Local database docker to AWS database in VPN
i'm a beginner to Docker, hope everyone can help, much appreciated.
I downloaded a docker image from my company repository and i managed to create a container in my local machine from the image, let's ...
0
votes
1
answer
157
views
How to Import Google workspace data automatically to Big Query database?
How to daily import Google workspace data automatically to Big Query database?
I'm new to Big Query and i can do it manually but i want to automate this process. Thanks.
5
votes
1
answer
835
views
force Oracle to process recursive CTE on remote db site (perhaps using DRIVING_SITE hint)
I am trying to fetch data from remote table. The data is expanded from seed set of data in local table using recursive CTE. The query is very slow (300 seed rows to 800 final rows takes 7 minutes).
...
1
vote
4
answers
693
views
How To Prevent Database Links to Same Database in Oracle
My Main objective is to write a PLSQL Procedure to create database links when host, port, service, username and password is given. There I need to block creation of database links to same database.
...
0
votes
1
answer
510
views
Oracle: Cannot copy data from a max_string_size=extended to a max_string_size=standard database
We have a Oracle 12.1 database where MAX_STRING_SIZE has been set to EXTENDED, enabling the use of VARCHAR2(32767) columns. We copy data via a materialized view and a database link to an Oracle 11.2 ...
0
votes
1
answer
464
views
XA Datasource using Oracle DB links in Java EE Container managed transactions
I have following environment:
EAR application on WebSphere 9, container managed transactions using XA datasource for Oracle 19c database (let's name it database "A").
The problem is that ...
0
votes
1
answer
2k
views
Create Oracle database link to SQL Server
How can I create a database link from Oracle on PL/SQL to SQL Server based on this picture:
Example: the SQL Server installed in computer IP 190.168.0.1 and that computer user is MCHSQLSERVER password ...
1
vote
0
answers
1k
views
How to proxy into another database user in Oracle database link, with kerberised authentication
Background:
2 Database hosts(with users): DB1(UserA), DB2(UserA, UserB)
A database link from DB1, UserA, created and works fine with the following SQL
CREATE DATABASE LINK "DB_LINK"
USING ...
1
vote
1
answer
1k
views
Java query with DB Link does not close the Db Link connection
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 ...
1
vote
1
answer
565
views
Using Oracle ON COMMIT option on materialized over database link
I have a question.
I have a table on database 1 called Distribution_id which will hold no more than 2000 records at a time, I have a materialized view called Mv_Distribution_id which is a copy ...
1
vote
1
answer
2k
views
Creating Oracle Database Links and characters in the database link password
I'm trying to create a database link on one database, so I can view tables on another database.
The password to the other database is Bl$nk-d8prd, it doesn't seem to like the "-"
in the password Bl$...
0
votes
1
answer
154
views
Oracle Advanced Queues versus a Small Oracle Database Table
I'm looking for a simple way to communicate between two databases, there currently exists a database link between both database.
I want to process a job on database 1 for a batch of records (batch ...
0
votes
0
answers
971
views
ORA-28545 NET8 ERROR Database link oracle to postgresql
So I'm trying to create a database link between oracle and postgresql in the same server, and when I try to do a select it shows me this error. I've been looking for some answers in different forums ...
1
vote
0
answers
1k
views
Oracle SQL - VIEW PUSHED PREDICATE not happening when using dblink
I'm having performance issues executing the following query (Q1):
select
z_out.*,
a_out.id
from orders a_out, test z_out
where a_out.id=z_out.id and a_out.created>trunc(sysdate) and rownum&...
0
votes
1
answer
348
views
DB Links as Parameters in a Function
I'm creating a function that accepts two parameters. And one of my parameter will serve as the database link for my statement. I've tried concatenating it. How will I be able to achieve this?
It ...
0
votes
0
answers
47
views
Problem with distributed query in procedure to populate data warehouse (Oracle)
I have a problem with a procedure that I will use to populate a table in the data warehouse.
I'll try to exemplify.
I have three types defined as follows:
create or replace type room_t as object(
...
2
votes
2
answers
2k
views
Accessing individual column using database link
I am new to Oracle world. I have recently created a Database Link in Oracle to fetch the data from SQL Server and I am able to fetch the data.
SELECT * FROM emp@dblink
The above query fetching all ...
1
vote
0
answers
793
views
Link existing MS-Access database to SQL Server
I have an external application that uses a MS Access database to store its data.
I do not want to touch anything here, because the application works very good for me.
I have now created a own ...
0
votes
1
answer
3k
views
Cannot connect with database link in Oracle
I have three Oracle databases connections (XE, XE_HR and XE_SBD_HR).
I've tried to create private database link with fixed user that connects as HR using HR password with below query on XE_SBD_HR:
...
0
votes
1
answer
1k
views
Oracle to SQL Server ODBC link - Invalid identifier when using WHERE clause
I need to query data from SQL Server in Oracle using an ODBC database link.
I have created the necessary configuration in Oracle to allow me to access the SQL Server database and query the data.
When ...
0
votes
2
answers
6k
views
How do I connect to Oracle database link directly using SQLPLUS
I tried each of the following - none worked:
[oracle@localhost]$ sqlplus system/oracle@SID_NAME
[oracle@localhost]$ sqlplus system/oracle@localhost:1521/SID_NAME
[oracle@localhost]$ sqlplus system/...
0
votes
1
answer
2k
views
Query and insert data into one db to another db
I need to query data from one oracle database table and insert into another table in a different database, In the sense assume there are two databases called A and B. A has a_table and B has b_table. ...
-2
votes
1
answer
714
views
Create database link between three instances oracle
How to create database link between three instances?
For eg i have database named orcl,orcl1,orcl2 how to link them?
Thanks
0
votes
1
answer
187
views
Database Link vs. NFS
What would be faster to migrate data from an old Oracle DB server to a new server, using a database link, or create a shared directory via NFS between old and new server to move data?
-2
votes
1
answer
70
views
Database link in oracle
I have a USER1 in DATABASE1 and USER2 and USER3 in DATABASE2. I am given the credentials of USER2 from which i can select only few tables on USER3. Now the requirement is, i have to create a ...
0
votes
1
answer
499
views
why dosen't oracle database link show column with image type from sqlserver
we have 2 server :
1-sqlserver 2012 on windows 2012
2-oracle 11g on linux
we want to show information from table1 in sql server on oracle database and created database link between them
when i ...
1
vote
1
answer
807
views
Designing monitoring of jobs on Oracle database
I have several Oracle databases where my in-house applications are running. Those applications use both dba_jobs and dba_scheduler_jobs.
I want to write monitoring function: check_my_jobs which will ...
5
votes
1
answer
55k
views
ORA-03150: end-of-file on communication channel for database link
In an Oracle database there's a big PL/SQL procedure being executed periodically that copies data from one DB to another one through a database link and it is failing after some hours with the ...
1
vote
1
answer
7k
views
Oracle public shared database link not working for non-DBA users
I need to convert a database link that I have in Oracle from a normal public database link to a public shared database link.
I ran the following as my user with DBA privileges to make the link shared:...
0
votes
1
answer
282
views
how to insert sign/character (example: '²' or other language sign) from oracle database to postgreSQL
I am trying to insert data from Oracle Database to PostgreSQL.
In Oracle Database, It was success with standard statement:
insert into "schema"."table"@dblink values (2, 'test');
But when I added ...
2
votes
0
answers
41
views
Oracle Load from other Database Scenarios
I am new in oracle (about 6 month ),
I manage 2 Database, let say DB_A and DB_B, both is Oracle database,
DB_A have Public database link to DB_B,
this dbLink is used in package function to get data ...
0
votes
1
answer
2k
views
Oracle Database Link + Inner Join + To_Number Query
DatabaseA - TableA - FieldA VARCHAR2
DatabaseB - TableB - FieldB NUMBER [dblink created]
SELECT *
FROM TableB@dblink b
INNER JOIN TableA a
ON b.FieldB = a.FieldA
There are 2 complications.
1. ...
0
votes
1
answer
664
views
PL/SQL Block returns ORA-06553: PLS-114: identifier 'MyMSAccessFieldIsOver30CharsLong' too long when using a Remote NON-Oracle Database
I have a database link to a MS Access database in an Oracle database using Oracle's Heterogeneous Services. Some of the Access table column names are longer than the Oracle allowed 30 characters. As ...