Broken Pipe Error when using database link
We are using WebLogic 6.1 sp2 / oracle database 8.1.6. / thin drivers.
The connection works fine, unit I try to access a view that has a union and db links
in it.
We have used one or the other (view or a dblink) and it works, but when used together,
we get broken pipe error.
I haven't proven that this is the cause, I will try to setup a test, but I was wondering
if this is a known issue or what ??
thanks
Rich
You need to create the catalog views that support distributed SQL in your remote database (the database you connect to via db_link).
To create these views, connect "/ as sysdba" and run:
$ORACLE_HOME/rdbms/admin/catproc.sql
which will in turn call several other scripts including: $ORACLE_HOME/rdbms/admin/catrpc.sql (which creates your missing view)
It is best to run the whole catproc.sql script (and not just the catrpc script).
You can run and rerun catproc.sql several times quite safely.
Cheers
Similar Messages
-
Error When Using DataBase LINK in pl/sql
I have cursor fetching some values from remote db and i m trying to store values in local table (see code below) I can run the select query alone succefully but when i use it inside plsql it fails with error.
DECLARE
TYPE MY_CURSOR
IS
REF
CURSOR;
THE_CURSOR MY_CURSOR;
V_CT NUMBER(18);
V_PSN_ID VARCHAR2(30);
V_INTERNET_ID VARCHAR2(75);
BEGIN
V_CT :=0;
OPEN THE_CURSOR FOR SELECT PSN_ID, 'TEST' FROM TABLE_A@PRO1 WHERE TABLE_A.SEQ_A<=1000;
LOOP
FETCH THE_CURSOR INTO V_PSN_ID, V_INTERNET_ID;
EXIT
WHEN THE_CURSOR%NOTFOUND;
INSERT INTO PSN_EMAIL_SENT_TO@local
(PSN_ID, LAST_UPDT_DT
) VALUES
(V_PSN_ID, SYSDATE
V_CT:=V_CT+1;
END LOOP;
CLOSE THE_CURSOR;
DBMS_OUTPUT.PUT_LINE
TO_CHAR(V_CT)
END;
Error report:
ORA-04052: error occurred when looking up remote object TABLE_A@PRO1
ORA-00604: error occurred at recursive SQL level 1
ORA-04029: error ORA-1775 occurred when querying ORA_KGLR7_DEPENDENCIES
ORA-00604: error occurred at recursive SQL level 1
ORA-01775: looping chain of synonyms
ORA-02063: preceding 3 lines from PRO1
04052. 00000 - "error occurred when looking up remote object %s%s%s%s%s"
*Cause: An error has occurred when trying to look up a remote object.
*Action: Fix the error. Make sure the remote database system has run
KGLR.SQL to create necessary views used for querying/looking up
objects stored in the database.You need to create the catalog views that support distributed SQL in your remote database (the database you connect to via db_link).
To create these views, connect "/ as sysdba" and run:
$ORACLE_HOME/rdbms/admin/catproc.sql
which will in turn call several other scripts including: $ORACLE_HOME/rdbms/admin/catrpc.sql (which creates your missing view)
It is best to run the whole catproc.sql script (and not just the catrpc script).
You can run and rerun catproc.sql several times quite safely.
Cheers -
TNS-12666 error occures when using database link
When I am trying to use database link
defined in my database the following error occures:
TNS-12666 Dedicated server: outbound transport protocol different from inbound.
In documentation is stated to resolve such an error to
specify the same protocol in the SQL*Net connect string or alias for the outbound connection as that used for the inbound connection.
I have in tnsnames.ora defined network service name
by which I can connect to such a database by SQL*Plus
without any problems, why can I not do such a thing
via database link?
Thanks a lot for advise, ...Could you change the following entry in your 'sqlnet.ora' file and try?
SQLNET.AUTHENTICATION_SERVICES = (NONE) -
Broken Pipe error when connecting to database
Hi
I have installed ODI and Oracle 10g database on my machine.
But getting a Broken Pipe error while creating an entity in Oracle Data Profiling and Quality tool
Or I can say while connecting database.
It’s a runtime error.
Server terminated the application in an unusual way.
Any inputs are much appreciated.
Thanks
KSKHello KSK.
Did you receive or did you find any answer about this question?
Please, let me know if yes or no. I have a workmate with the same problem and we didn't find any clue about the problem.
Best regards.
Ponte -
ORA-01406 error encountered when using database link
I am moving data between two different databases using a database link on Oracle 8.1.5. The database statement looks like:
insert into TABLE@DATABASELINK
(COLUMNS)
select (COLUMNS) from TABLE
One of the database columns is defined as varchar2(4000) on both the source and target database tables. When the data in this column on the source database is greater than 2000 characters, the database query generates the message:
ORA-01406: fetched column value was truncated
I have verified that the target column is defined as varchar2(4000), and have also verified that it is this varchar2(4000) column that is causing the problem. I have also tested out that this error only occurs when the varchar field is more than 2000 characters; if I remove characters so that the source field is less than or equal to 2000 characters, this error is no longer generated and the data is inserted to the target database table.
Is this a limit with database links or some other database parameter that is not set up correctly?
Thanks...Theresa TucciCould you change the following entry in your 'sqlnet.ora' file and try?
SQLNET.AUTHENTICATION_SERVICES = (NONE) -
Fatal two-task communication protocol error (when using db link)
I have created the db link betwen two databases of oracle version 9i 9.0.2
the db link connects to specific user
when i access the table with same name as user then recieve following message
ORA-03106: fatal two-task communication protocol error
when i access the other tables having different name that the user to which the db link connects
that works alright
so what is solution of problem in this particular case?What is your Oracle release? Is it 9.0.1.2 or 9.2.0?
What version of Sql*Plus client are you using? -
Shuttle Demo errors when using DB link
The Shuttle demo is awesome. Let me just start there.
I have a table that is accessible over a database link. We're talking a simple select here that does return correctly within APEX SQL Commands.
select "company_name", "company_num" from pmd.company@CORP
However, when I paste that statement into the Shuttle Wizard pSQL_1 and pSQL_2 the following error is returned.
ORA-06502: PL/SQL: numeric or value error: character string buffer too small
Debug:
1: begin
2: &P4_PLSQL_REGION.
3: end;Carl,
Ok. Here's the results. Using a PL/SQL region with the function throws the same error (string buffer too small).
So I checked the length of company_name and the longest string value is 47.
Then I checked the _XL function and got the same error. This is even showing in SQL Workshop's SQL Commands.
SELECT APEX_ITEM.SELECT_LIST_FROM_QUERY_XL(
1,
company_num,
'SELECT company_num, company_name FROM pmd.company@CORP'
FROM pmd.company@CORP
ORA-06502: PL/SQL: numeric or value error: character string buffer too small
Thank you,
Ben -
Timeout when using database link connecting to a remote database
Hi,
I have another strange problem. I have two computers A and B. Both have an Oracle database server instance. I manage the one in B (which is my local computer) but not the one in A (which is a computer where I have a user account and an Oracle account but I don't own or manage).
I tried to establish a database link on the database in B pointing to the one in A. This works.
When I try the opposite, that is, establish a database link on the database in A pointing to the one in B I cannot get it work. I can create the database link but then when I try to use it (e.g., by submitting a "SELECT") it blocks for a long time and finally returns "ORA-12535: TNS:operation timed out". I tried to execute telnet from A to B using the port of the Oracle database server in B and it seems that the connection is established. I tried something similar with tnsping but this does not work, as I get again the timeout. I tried deactivating the firewall on my computer B, but it does not work either (besides, the telnet passes through even if I have the firewall activated).
Any idea?
My TNSPING looks like this:
tnsping '(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = <the-target-ip>)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = XE)
I also tried with:
tnsping '(ADDRESS = (PROTOCOL = TCP)(HOST = <the-target-ip>)(PORT = 1521))';
I'm lost... Any ideas are very much appreciated.
Thanks!From A to B and from B to A can you ping ... post the output surrounded by tags for formatting.
Do the same thing for TNSPING.
What do these computers have in the way of firewalls and antivirus products installed and how are they configured? -
ORA-12154 when using Database Link
We're running 11r2 on our servers. I have a primary db and a standby db, using Data Guard. The standby is open for read-only querying. We are not using ASM.
The primary (and thus the standby) have a PUBLIC database link to a third db server.
When I run a query against the database link on the primary: select * from test@MyDBlink; Everything works fine.
When I run the same query against the database link on the standby: select * from test@MyDBlink; I get ORA-12154: TNS:could not resolve the connect identifier.
I check that the db link exists on the standby. It does.
I go to command prompt on the standby and run "tnsping MyDBlink". It executes fine. It says "Used TNSNAMES adapater to resolve the alias" and sure enough, MyDBlink is referenced in the TNSNAMES.ORA.
I also run "tnsping IP-of-MyDBlink" to doublecheck. No issues.
What is going on that is blocking the db link on the standby? Many reports utilize that standby and I'd hate to deny them the functionality of a db link.
Thanks893968 wrote:
We're running 11r2 on our servers. I have a primary db and a standby db, using Data Guard. The standby is open for read-only querying. We are not using ASM.
The primary (and thus the standby) have a PUBLIC database link to a third db server.
When I run a query against the database link on the primary: select * from test@MyDBlink; Everything works fine.
When I run the same query against the database link on the standby: select * from test@MyDBlink; I get ORA-12154: TNS:could not resolve the connect identifier.
I check that the db link exists on the standby. It does.
I go to command prompt on the standby and run "tnsping MyDBlink". It executes fine. It says "Used TNSNAMES adapater to resolve the alias" and sure enough, MyDBlink is referenced in the TNSNAMES.ORA.
I also run "tnsping IP-of-MyDBlink" to doublecheck. No issues.
What is going on that is blocking the db link on the standby? Many reports utilize that standby and I'd hate to deny them the functionality of a db link.
ThanksMost people with this problem don't understand that the dblink is just another client, no different than sqplus running on the same machine - and therefore the link uses the tnsames in the ORACLE_HOME of the database containing the link. But it seems from the steps you've described that you've grasped that. The only thing I can think of off the top of my head is when you try sqlplus from the standby server you are hitting a different tnsnames than the one the database is using. -
Warp Stabilizer error when using dynamic link
Hey guys,
So I'm very new to video editing, and not surprisingly, I'm running into problems. I'm trying to use dynamic link to allow me to Warp Stabilize and color correct video clips in a Premiere Pro project. When I try to apply the Warp Stabilizer (through dynamic link) in After Effects, I get this error message:
After Effects error: Stabilization analysis doesn't work with Collapse Transformations (514)
(25 :: 101)
I read the only other thread on this which linked to the following page:
http://help.adobe.com/en_US/AfterEffects/9.0/WS064964FC-424C-4e5a-A5C3-2160B3DFBCA4a.html
Unfortunately, that didn't help me much. Maybe the answer is in there somewhere, but if so, its way over my head. Can anyone give me a simple explanation of why this doesn't work? I feel like it should be a simple solution so I don't have to go through the process of importing into AE, render, export, import to Premeire Pro, and replace the clip there, blah blah. This is what dynamic link is for, right?? Thanks for any advice you guys have!Not sure I properly understand you...
As for me, the solution is in AE warning message - just disable Collapse Transformations switch in your AE precomp... -
ORA805.dll error when using DB Links
Hi
Every time I try to use a db link I get the following error: "Access violation at address 67690153 in module 'ORA805.dll'. Read of address 00000000" (using toad or sql plus)
Already try to use it in a simple query like: "select * from table@dblink" or even to create a new one but I always get the same error.
If I test the dblink in toad, the connection is successfully.
Database version is 9i.
Thanks in advanceIf your database is 9i, you shouldn't have the central 8.0.5 dll on your system.
You need to investigate what is on your system and whether or not 8.0.5 dlls aren't first in your PATH.
Sybrand Bakker
Senior Oracle DBA -
Hello,
We are using Weblogic 5.1.0 SP 9 and we are getting broken pipe ioexception errors in production. Each time this occurs, which is pretty much every day, we have to restart the server. This is causing bad problems in production.
Does anyone have any advice on troubleshooting this problem, resolving this problem, or any ideas regarding this. I heard that using WL5.10SP9 fixes this problem but we are currently using this.
Would turning on JDBC tracing help, or any other kind of tracing help on this? Thanks,
Rajan Roland
Siew Chun wrote:
Hi,
I always encounter IO Exception broken pipe error when the application runs more than an hour.
I had a firewall inbetween the DB and Weblogic application servers that do connection shut down if the line has been idled for more than an hour. I had also verified that all my program codes had done proper closing of connection after the database is updated but the problem still persist.
Any advise anyone? By the way, I am using Weblogic 5.1 SP12. Is there a limitation in this "old" version? Could that be a limitation in terms of proxy? (by path or by extension which is better?)
Any help anyone?Hi. set up the pool to test connections on reserve. This will also make the pool periodically test idle
connections. This keeps them busy.
Joe -
Bouncing Oracle Database Creating Broken Pipe Error On Oracle 9iAS 9.0.3
We published and deployed PL/SQL web services using JDeveloper 9.0.3 wizard on Oracle 9iAS 9.0.3. We bounced the database nightly, in turn, closes the application server connection between 9iAS and the database. This causes the broken pipe error. Bouncing the 9iAS is not an option for us.
Is this an Oracle 9iAS bug? Is there a workaround to this problem without bouncing the application server?
Please help.
TomI have discovered a strange thing. I created a new OC4J instance which I called it: Intelap
When I deploy to the recently created instance Intelap, jdeveloper success. But when I set OC4J_home in the optional instance field, I got the previous error.
Sergio -
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 -
Broken pipe error in plugin log
Hello All,
Any help will be much appreciated.
Currently we have a webserver and weblogic servers(two) in the same box. The webserver
is IPlanet and it communicates with weblogic(7.0 SP2) using the weblogic plug-in.
Normally the webserver connects to the first weblogic server and subsequent request
were sent to the same weblogic servers. While doing so, the plugin hits a broken
pipe error and it failover to the second weblogic server. We do not know the cause
of this problem as there is no broken pipe errors in the weblogic server logs.
I changed the weblogic & plugin configurations and did various tests using the
following configuratons, but no luck.
Weblogic plugin configurations:
1. HungServerRecoverSecs to 5000,
2. WLSocketTimeoutSecs to 5000
3. KeepAliveSecs="120" ( by default KeepAliveEnabled is true)
4. ConnectTimeoutSecs="120" along with ConnectRetrySecs=2 ( i.e. 60 connections
before it throws HTTP 503- Service Unavailable exception).
Weblogic server configurations:
1. Post Timeout Secs: 120(max)
2. T3 Message Timeout: 480(max)
3. HTTP Message Timeout: 480(max).
The plugin log file contents are below:
Thu May 13 09:35:25 2004 INFO: sysSend 1247
Thu May 13 09:35:25 2004 INFO: sysSend 139
Thu May 13 09:35:25 2004 ========= errno [32] msg [Broken pipe]
Thu May 13 09:35:25 2004 POST timed out to the server 10.227.8.47:8101
Thu May 13 09:35:25 2004 *******Exception type [POST_TIMEOUT] (POST timed out
to the server 10.227.4.33:8101
) raised at line 731 of proxy.cpp
Thu May 13 09:35:25 2004 failure on sendRequest() w/ recycled connection to 10.227.4.33:8101,
numfailures=1
Thu May 13 09:35:25 2004 Marking 10.227.8.47:8101 as bad
Thu May 13 09:35:25 2004 Marking [0] as bad WLS: 10.227.8.47:8101:65535
Thu May 13 09:35:25 2004 got exception in sendRequest phase: POST_TIMEOUT: [os
error=32, line 731 of proxy.cpp]: POST timed out to the server 10.227.8.47:8101
at line 1051
Thu May 13 09:35:25 2004 Failing over after sendRequest exception
Thu May 13 09:35:25 2004 attempt #1 out of a max of 5
Thu May 13 09:35:25 2004 Server details are 10.227.8.47'/8101/65535
Thu May 13 09:35:25 2004 Server was mark bad, going to next server
Thu May 13 09:35:25 2004 Server details are ''/0/0
Thu May 13 09:35:25 2004 Server was mark bad, going to next server
Thu May 13 09:35:25 2004 general list: trying connect to '10.227.8.47'/8103/65535
at line 1338 for '/callWebApp/application?pageid=NewCall&portletid=CompleteCall&portletns=CompleteCall&wfevent=CompleteCall.showContactAction'
Thu May 13 09:35:25 2004 INFO: New NON-SSL URL
Thu May 13 09:35:25 2004 Going to check the general server list
Thu May 13 09:35:25 2004 WLS info : 10.227.8.47:8103 recycled? 0
Many thanks
ShaanHi Sudeep,
SAP Note 846079 - XI 3.0 JDBC Receiver: # of Retries on SQL Error w/o Effect
Please check the following SAP note also - 831162
Some info which i found there and can be relevant in to your scenario.....
Q: I am using a JDBC Receiver Adapter in conjunction with the Lotus Domino Driver for JDBC perform an INSERT or UPDATE operation on a database. When sending a message to the receiver, the Adapter Monitoring shows the following error message:
"java.sql.SQLException: [Lotus][Domino Driver for JDBC]Invalid cursor state"
Is there a fix for this issue?
A: To work around this JDBC driver problem, activate the Advanced Mode for the respective JDBC Receiver channel and configure the setting "Number of Retries of Database Transaction on SQL Error" to a value > 0. Additionally, make sure that the setting "Database Auto-Commit Enabled" is also active as the Lotus Domino Driver for JDBC does not support transactions.
Apply note 846079 before configuring this scenario.
Q: The TCP/IP connection to my database host is running over an unreliable network connection, i.e. the connection is sometimes interrupted. Consequently, I sporadically receive an SQLException regarding a closed connection in the system trace or audit log or the connection as well as the JDBC Adapter channel are hanging.
How can I work around this connectivity issue?
A: Enable the "Advanced Mode" for the respective JDBC Adapter channel and select the option "Disconnect from Database After Processing each Message".
Note that this might put additional load on your DBMS due to the creation of a new database connection for each message.
I dont have access to a database right now, so i am not able to check this.
Also check the JDBC driver compatability as mentioned in the above note.
Cheer's
Maybe you are looking for
-
Recovering from a Hard drive failurevering
Hi friend. Suppose my hard drive has crushed beyond repair and I have to reinstall the operating system and oracle software on a new hard drive, what will I need to recover completely. I will appreciate very much. Thanks
-
Keynote multi-screen presentation
In about two weeks I have a presentation in a room where I have three separate flatscreens at my disposal. I want to use all three of them, at the same time. Using the 2 Thunderbolt ports and HDMI port of my MacBook Pro, I have managed to connect all
-
While being busy processing images in Bridge (CS6) Raw Mode, the entire computer locked and the screen went to black. After a restart and reopening, I noticed that all other applications are working properly still. But as soon as I open Bridge and Ph
-
How do you resize just one layer & how do I make this layer not blur when enlarged?
I am trying to drop a video game sprite into a much larger image and I wish to make the sprite bigger. Every time I use CTRL + T just to size the layer by dragging the mouse, once I hit the check mark it blurs the image instead of keeping it lookin
-
Visible / invisible of custom container in screen
hi all, i have one custom container on my SUB SCREEN (named "CONT") In MAIN SCREEN i have one push button and the above SUBSCREEN is there. On pushing button, i want to hide or show the SUBSCREEN, if SUBSCREEN contains IO Fields or Table control etc.