Insert through DB Link

Hi all,
I have two Databases(primary and secondary) on below platform -
windows 2003 server,
Oracle 10g release 1.2
I am trying to perform insertion in secondary database thru a stored procedure, which i defined in primary db as -
CREATE OR REPLACE PROCEDURE CAP(CT_id IN NUMBER)IS
Begin
INSERT INTO table1@dblink1
select * from table1 where id=CT_id;
COMMIT;
END;
where i have table table1 with same structure in both DBs and created a link dblink1 on secondary DB.
Now, I want to perform some condition based insertion in table1 of secondary DB.
when i try to execute the above procedure, it is throwing the following errors -
ERROR at line 1:
ORA-02049: timeout: distributed transaction waiting for lock
ORA-02063: preceding line from dblink1
ORA-06512: at "CAP", line 4
ORA-06512: at line 1
Hope the above info will help you to focus on this issue.
Thanks

Verify the lock on the destination host, through of the query below:
select l.* , o.owner, o.object_name, o.object_type
from v$locked_object l, dba_objects o
where o.object_id = l.OBJECT_ID

Similar Messages

  • Persistant ORA-01461error on insert through db link in processes

    I have noted this as a frequent subject on the forum, but not found a definitive solution. I have an update going through a db link. Even though the field I'm updating with and the field being updated are both VARCHAR2(150), I get the error...
    ORA-01461: can bind a LONG value only for insert into a LONG column ORA-02063: preceding line from APPS
    I noted that on query through the dblink I would get an ORA-01460 error, but by joining dual to the table it would bypass the error. I can't, however, join dual into my update statement.
    Any assistance is greatly appreciated.

    There is confusion as to what the problem is, and Oracles solution may or may not work. It appears to be dependent on the platform your running. For Oracle DB 9.2.0.6 the fix for this problem has been applied, however on a HP platform we still get the error. In the tar I raised the db group did not believe its there problem since the fix was applied and it was sent back to the htmldb which then stated they will resolve the problem in 2.1. So you can raise a tar and they can create a patch for your environment but be aware it may or may not work.

  • Accessing function through DB link, giving error.

    Hi All,
    I am using Oracle 10g. I am having a function which is being called in a 'Select' query. And with in the function i have done exception handling, in which in case of exception, i am inserting the records into one table and its is 'pragma automnomous'. So its working fine , when i called this function through the 'Select' query from my own DB. but when i called the function from another DB through DB link, its giving me error stating , DML is not possible in function.
    can you please suggest some other alternatives or hoe to handle this situation?

    930254 wrote:
    Hi All,
    I am using Oracle 10g. I am having a function which is being called in a 'Select' query. And with in the function i have done exception handling, in which in case of exception, i am inserting the records into one table and its is 'pragma automnomous'. So its working fine , when i called this function through the 'Select' query from my own DB. but when i called the function from another DB through DB link, its giving me error stating , DML is not possible in function.
    can you please suggest some other alternatives or hoe to handle this situation?You have tables. We don't.
    You have data. We don't.
    You have code. We don't.
    You have error. We don't.
    You have mystery. We have no clues.
    You're On Your Own (YOYO!)

  • Insert an email link

    Hi,
    how may I insert an email link in an adobe rome document ? the "mailto:..." command doesn't work...
    thanks.

    No, there's no special feature for mailing options.
    A few questions :
    - When you say it doesn't work, you mean that, when you click on the link, your default email client doesn't automatically start ? It should.
    - Do you write "mailto: ..." with quoting marks ? Quoting marks are useless.
    - The problem obviously appears when linking a part of the text (the Link option is available only with parts of text). Have you ever tried with a whole text area ? Through Event menu.
    - Which Rome do you use ? Online or local version ?
    - The problem appears in the preview, the output file or both ?
    Try to upload your site and then check your mailing button. Someone already posted about some URL rewriting by Rome within preview and local files, and the problem has been resolved with site online publishing.
    Good luck

  • Commit through databse link

    Hi all,
    10.2.0.1
    RHEL4
    I am inserting some data to a remote location through database link.
    SQL>insert into tbl1@dblnk select * from tbl1;
    How should i commit?
    How would commit take effect?

    Commit as normal. Oracle will take care of it using two-phase commit.
    For more information see:
    http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14231/ds_txns.htm#g1013136
    Message was edited by:
    Anvar Huseynov
    added the link

  • Problem with data selection when inserted through textarea

    hi there,
    i am inserting data from textarea into a database field
    and then displaying the inserted data it is displaying properly but as a continuous string
    i want to display it as it was inserted with new line
    like if i have inserted through <textarea>
    hello
    all
    there
    it is displaying like
    hello all there
    i want to display as it was
    i have three pages as given below and my database field is varchar (using oracle 9i)
    1.first.html
    <html>
    <body>
    <form method="post" action="insert.jsp">
    <textarea name="text">
    </textarea>
    <input type="submit"></input>
    </form>
    </body>
    </html>2.insert.jsp
    <%@ page import = "java.io.*"%>
    <%@ page import="java.sql.*" %>
    <%!
    String txt;
    %>
    <%
          Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         Connection con =DriverManager.getConnection("jdbc:odbc:ods","scott","tiger");
         txt= request.getParameter("text");
         out.println(txt);
         PreparedStatement ps = con.prepareStatement("insert into text values('"+txt+"')");
         ps.executeUpdate();
         out.println("values inserted successfully");
    %>3.display.jsp
    <%@ page import = "java.io.*"%>
    <%@ page import="java.sql.*" %>
    <%
          Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         Connection con =DriverManager.getConnection("jdbc:odbc:ods","scott","tiger");
         PreparedStatement ps = con.prepareStatement("select * from text");
         ResultSet rs=ps.executeQuery();
         while(rs.next())
         out.println(rs.getString(1));
    %>thanx & regards
    sweety

    This is a feature of HTML. Its the way it is supposed to work.
    If you view source on your generated jsp page, you should see the html exactly mirrors what you typed in the text area
    If you don't want it acting this way then either
    1 - put it in a text area again
    2 - put <pre> tags around what you want do display unformatted
    or
    3 - Change all new lines to <br> in the html
    This is what you want in the html:
    <pre>
    Mulitple
      line
    Data
    </pre>

  • How to display the one BSP View page (not a start page)Through URL link..

    Hi Sir/Madam,
                 I want to open one BSP view page through URL link...
    Let me Explain clearly..
                I have an Z application ZHRRCF_APPROVAL..In this application approve.bsp file i have added som more Fields..and Finally I am going to click ApproVe Buton /Reject Button.When i click the reject button the the items are rejected.Its working fine.....
              My Requirement is :
                   1. I want to display the approval page directly when i click the URL link from mail box.--i am getting this .. No issues..(Got the URL link from function module)
                   2. After opening the approval page when i click URL link, when i click the reject button-- i am getting the error "The following Error Text was processed in the system GR2."Access via NULL object reference not possible"
                   3. How to proceed the this URL link without error .. the URL link is
    https://abd00093.de.abb.com:8200/sap(bD1lbiZjPTIwMA==)/bc/bsp/sap/zhrrcf_approval/application.bsp?objid=50003421&otype=NB&plvar=01&requestdate=20090121&requestedRsnCode=01&requestedstatus=1&requester=USRECRUITER1&SAPWFCBURL=https%3a%2f%2fabd00093%2ede%2eabb%2ecom%3a0000000000008200%2fsap%2fbc%2fwebflow%2fwshandler%3f_sapwiid%3d000000018491%26_saptask%3dTS51807979%26_saplogsys%3dGR2CLNT200%26_sapuname%3dLINEMANAGER%26_saplangu%3dE%26sap-client%3d200
    ( I got this URL directly using my own function module.. In this function Module i was not getting the SAPGUID -- the error is because of that i am not sure..)How to get this sapguid dynamically..
                    Please guide me to proceed this req asap..
    I am waiting for your reply ....Please
    Thanks and Regards
    Mohan,P

    Please have BPEL loggers both at domain and system level to DEBUG mode. Set all loggers to DEBUG as you are interested to see the entire sequence flow..however, some loggers give you unnecessary info ;/ apart from cube, activation, delivery, dispatch, persistence.
    Added to this, you might want to try SOAPUI, Fiddler, HTTP Analyzer.

  • OBIEE 11g - APEX Integration through Action links

    Hi All,
    We are trying to achieve SSO between OBI and APEX. We got this working by the below process.
    1. Integrate OBI domain with AD
    2. Integrate APEX with the same AD ( Perform standalone configuration)
    3. Create Action Link in OBI pointing to APEX form
    4. Accessing Action Link does not prompt the credentials
    5. APEX form opens up in a separate tab in browser
    We checked this by logging into OBI using an AD ID and jumping to APEX from there through action link. However the user context is not getting carried forward to APEX. For example if we login as "d123456" AD user in OBI, when we access APEX form the user name is appearing as "NO BODY" at the top right corner. We have a use case where in we want to capture the ID who is accessing the APEX form. The field is updated as NOBODY.
    But if we login to APEX stand alone URL, then the actual AD user name can be seen on APEX pages.
    Can some one help on how to carry forward the user context from OBI to APEX.
    Thanks in advance.

    Hi,
    I'm rearching the integration between Siebel Sales 8.1 and and obiee 11g, can you please share how to do the integration between the two? Some issue we can discuss together.
    Any docs or points would be very helpful.
    Thanks.

  • I have a problem with two PDF's when trying to open them through a link on a web page. The two PDF's open fine with Adobe on my own PC and on the server I have copied it to but when they are opened through a link on a web page (pointing to the server wher

    I have a problem with two PDF's when trying to open them through a link on a web page. The two PDF's open fine with Adobe on my own PC and on the server I have copied it to but when they are opened through a link on a web page (pointing to the server where the PDFs open fine) I get an error 'There was an error processing a page. Invalid function resource' The other one just doesn't open at all. Can anyone help with this please?

    Hello,
    Are the pdf linked correctly in the website? Is this a public website? If yes, please post the link here.
    ~Deepak

  • Purchase Order Authorization through Navigation link

    Hi
       I am having an requiremnet like these........
            1) 2 users entering purchase orders in diferent systems alternatively.
            2) After entering purchase order 1 user didnt allow to see other user purchase order through navigation link he can see other user purchase order
               (Note:if he navigate means only that particular users purchase orders only have to display)
            3)only manager user have to see all the users purchase order.
       Is there any Authorization will be there to acheive the above process.
    Regards
    Vinoth

    Hi Vinoth..
    Check with the data ownership authorizations.
    https://help.sap.com/saphelp_sbo882/helpdata/en/45/05bc8224a70489e10000000a155369/content.htm
    Regards
    Kennedy

  • When in Safari, I try to text the link in the address bar to a contact through the link at th ebottom of safari and it never goes to th econtact and the message is lost.  Any fix here or is it a bug in 7.0.2?

    When in Safari, I try to text the link in the address bar to a contact through the link at th ebottom of safari and it never goes to th econtact and the message is lost.  Any fix here or is it a bug in 7.0.2?
    Re Create the task:
    1. Open Safari
    2. Go to the desired website/address
    3. Click the send icon at the bottom (Square with arrow pointed up)
    4. Click Message
    5. Add contact in "To:" line
    6. Hit send
    It locks up and lags here on me and the message never shows up at the contacts phone/imessage/etc.

    Hi,
    /Users/sarahschadek/Desktop/Safari.app/Contents/MacOS/Safari
    Move the Safari app from the Desktop to the Applications folder.
    Restart your Mac.
    That's why you see this:
    When I try to do the updates my computer says it has ready it goes through like it is downloading them then at the end it says some of the files could not be saved to "/" files.
    After your restart your Mac, click the Apple  menu (top left in your screen) then click:  Software Update ...
    Carolyn  

  • Trying to add a Word Press blog to my Dreamweaver site through a linked tab... is it possible?

    Trying to add a Word Press blog to my Dreamweaver site through a linked tab... is it possible?  My client wants a blog on his website that I am curently creating in Dreamweaver and I am clueless on how to manually create one using a DB... so is it possible to use a menubar link to go to a wordpress page that would contain the blog?  Please help.
    Thanks,
    TIffany

    Be sure to install WP files inside a separate folder on the domain.  
    yourdomain.com/blog/wp
    http://codex.wordpress.org/Installing_WordPress
    Link to blog:
    <a href="http://yourdomain.com/blog/wp/index.php">Link to Blog</a>
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com/

  • Failure to sync contacts and calendar from Outlook through BlackBerry Link after update

    Hi everyone,
    I have both z10 and z30. I have been syncronizing my Outlook contacts and calendars to both of them through Blackberry Link. My z10 automatically updated several days ago and I lost everythiing on the phone including contacts, calendar, texts, phots, etc. And then the same thing happend to my z30...
    Now I am trying to sync my Outlook contacts and calendars to them through Blackberry Link as I always did but it turned out unsuccessful. It stops at 'Getting status from Blackberry calendar' and it also pops out a message saying 'BLACKBERRY-7D1B Sync was unsuccessful. An error has occurred during an attempt to access to device data.'
    I already tried to reinstall Blackberry Link and reset my phones but neither of these worked out.
    Please help. Thank you!

    This is exactly what I am dealing with. Blackberry Link will work great for awhile and then something happens and I can not sync my contacts. I have spent many hours and days trying to fix this to no avail. BB support has been great but I still go through a long process each time. This week I finally gave up and started using the Microsoft Hotmail Outlook Connector since my company does not offer Active Sync or Exchange. It works flawlessly. I would dedfinitely check it out. If you swith to a Widows Phone or Android this is one of the options they recommend you use.
    In a nutshell Link is awful and BB should be ashamed of the product they put on the market. I will only use it for syncing pictures and documents. Good luck!

  • Datatype through a link (URGENT)

    How do i find datatype of columns through a link?
    for example:
    if i use
    DESCRIBE table;
    it works
    but if i use
    DESCRIBE table@link;
    it doesn't work
    Please help me how to find colmuns datatype of table@link
    Thank you,
    Jianu Ovidiu - Romania

    it doesn't workIt does. What tool are you using for this?
    SQL*Plus works.
    SQL> select * from v$version ;
    BANNER
    Oracle9i Enterprise Edition Release 9.2.0.7.0 - Production
    PL/SQL Release 9.2.0.7.0 - Production
    CORE    9.2.0.7.0       Production
    TNS for 32-bit Windows: Version 9.2.0.7.0 - Production
    NLSRTL Version 9.2.0.7.0 - Production
    5 rows selected.
    SQL> select * from v$version@ora10gr2 ;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    CORE    10.2.0.1.0      Production
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    5 rows selected.
    SQL> desc scott.emp@ora10gr2
    Name                                      Null?    Type
    EMPNO                                     NOT NULL NUMBER(4)
    ENAME                                              VARCHAR2(10)
    JOB                                                VARCHAR2(9)
    MGR                                                NUMBER(4)
    HIREDATE                                           DATE
    SAL                                                NUMBER(7,2)
    COMM                                               NUMBER(7,2)
    DEPTNO                                             NUMBER(2)
    SQL>

  • How to insert an HTML link into a page

    Hello,
    We have a list of documents in a external document management system. We would like to present the list of documents to the user for retrieval from within any SRM HTML page.
    I was thinking of two different approaches:
    1) I would like to be able to insert an HTML link to a URL of documents for display to the end user.
    2) Alternatively, we might want to inject some javascript into the screen to handle the presentation of the links.
    We would like this functionality to work on any of the screens within SRM as global functionality.
    Any suggestions on how to customize SRM to handle this functionality request?
    (Will reward points very quickly)
    Thanks
    Edited by: Aaron Jack on Feb 15, 2008 7:02 PM
    Edited by: Aaron Jack on Feb 15, 2008 7:03 PM

    Hi,
    My project has a requirement to show URL in Bid Invitation screen. In turn, when user clicks that hyperlink, it will pop-up a web dynpro screen.
    Maybe this is the same with your need.
    In case this is the same, the trick is to define an additional field in bid invitation custom header with customized data element and customized domain.
    Then, defined conversion exit for the domain with javascript line such as "<html> bla bla </html>" to pop-up the web dynpro screen in modal dialog.
    The result will be as what I have above.
    Hopefully this can help you.

Maybe you are looking for

  • Using iPod with external Hard Drive connected to laptop

    Is there a way to use the iPod video and an external hard drive connected to a Dell Latitude D600 laptop at the same time? I can use one or the other but not both. When both are connected using the usb ports on the back of the laptop, the iPod is not

  • How do I move iTunes settings and playlists from PC to Mac?

    I have a very convoluted arrangement of playlists and folders in my Windows version of iTunes. I now would like to move these over to my new Mac. Is this easy or indeed possible? I'm not referring to the music files themselves. They reside on a separ

  • Bridge - Batch Processing has stopped working...help

    I am using Photoshop for Windows in CS2. Have been for years. Work with batch processing and Web Gallery all the time...for years. Batch Processing and Web Gallery stopped working (along with other Photoshop features). I upgraded to Windows 7, and ph

  • Conversion of XML to a String in XSLT

    Hello -- I've written an XSLT that creates a fragment of XML as the contents of an xsl variable element. I then want to convert that fragment to a string and use it as the value of another element. I've tried both the orcl:get-content-as-string() and

  • IPhone 3GS - Reception Problem Discovered

    I was taking a stroll through my backyard and found an issue with reception. I have isolated the cause to the lemon tree I have. Is there some sort of weird signal attenuation that occurs due to the highly acidic nature of lemons? I have posted a vid