Can not insert through dblink in procedure

I have created one procedure which is selecting,inserting and updating data to another database on same server using dblink. it select and update data successfully but when it is going to insert using dblink it gives following error.
ORA-02019: connection description FOR remote DATABASE NOT FOUND
ORA-02063: preceding line FROM PAS
But when i executed same insert statement on sql prompt it is exeuted successfully.
insert into tab1@dblink values('blah','blah','blah');
I have dropped all my dblink and recreate it again i have given priveleges externally means insert any table,select any table,update any table to username.
but still i have recieved same error. Please guide me.
Global name of database is same as dblink name.
Thanks in advance
dhaval

1. select * from global_name
PAS and RATEPAS
I have created two database on same server.
named pas and ratepas.
I can not send procedure's code. but actual logic of procedure is selecting a record from temporary table and check whether it is a valid record on the basis of time_stamp and it is inserting a record to base table and update time_stamp to other two tables. and it is giving error only when
SELECT * FROM dba_db_links;
OWNER
DB_LINK
USERNAME
HOST
CREATED
PUBLIC
PAS
PASUSER
OWNER
DB_LINK
USERNAME
HOST
CREATED
pas125
13-OCT-05

Similar Messages

  • Can not insert/update data from table which is created from view

    Hi all
    I'm using Oracle database 11g
    I've created table from view as the following command:
    Create table table_new as select * from View_Old
    I can insert/update data into table_new by command line.
    But I can not Insert/update data of table_new by SI Oject Browser tool or Oracle SQL Developer tool .(read only)
    Anybody tell me, what's happend? cause?
    Thankyou
    thiensu
    Edited by: user8248216 on May 5, 2011 8:54 PM
    Edited by: user8248216 on May 5, 2011 8:55 PM

    I can insert/update data into table_new by command line.
    But I can not Insert/update data of table_new by SI Oject Browser tool or Oracle SQL Developer tool .(read only)so what is wrong with the GUI tools & why posting to DATABASE forum when that works OK?

  • Can not insert null into foreign key issue

    Hi ,
    I am having parent-child relationship table.
    In the child table when I am adding a new record , data is getting inserted with foreign key.
    After insert if I immediately update the same record. Its giving error that can not insert null into foreign key.
    If i click on rollback button I am able to update that record properly.

    Hi ,
    I am having parent-child relationship table.
    In the child table when I am adding a new record , data is getting inserted with foreign key.
    After insert if I immediately update the same record. Its giving error that can not insert null into foreign key.
    If i click on rollback button I am able to update that record properly.

  • Help!!urgent!!can not insert/update clob:the row containing the lob is not locked

    Hi,
    could you do me help?
    i can not insert a string into a oracle clob field, it echo as:
    ORA22920 row containing the lob value is not locked. ORA 06512 at "SYS.DBMS_LOB" line 708
    ORA 06512 at line 1;
    what its means? please.
    my table defined as : create table clob1(id number(5),mclob clob default empty_clob()); the id is create by a sequece of test_sequence automaticly.
    my code as belows:
    import java.io.*;
    import java.sql.*;
    //import oracle.sql.*;
    public class test4 {
    public static void main(String args[]) {
    String url_String
    = "jdbc:oracle:thin:test/test@myhost:1521:myorcl";
    try {
    Class.forName
    ("oracle.jdbc.driver.OracleDriver");
    java.sql.Connection con =
    java.sql.DriverManager.getConnection(url_String);
    con.setAutoCommit(true);
    Statement stmt
    =con.createStatement();
    String sqlStr ="insert into
    clob1 (mclob) " + "values(empty_clob())";
    stmt.executeUpdate(sqlStr);
    String query = "select
    test_seq.CURRVAL from dual";
    ResultSet rs =stmt.executeQuery
    (query);
    rs.next();
    int currval =rs.getInt(1);
    query = "select * from clob1 where
    id="+currval;
    String str
    ="abcedefhijklmnopqrstuvwxyz";
    rs =stmt.executeQuery(query);
    rs.next();
    java.sql.Clob clob1
    =rs.getClob(2);
    oracle.sql.CLOB clob=
    (oracle.sql.CLOB)clob1;
    System.out.print(clob);
    java.io.Writer
    wr=clob.getCharacterOutputStream();
    wr.write(str);
    wr.flush();
    wr.close();
    stmt.close();
    con.close();
    } catch(Exception ex) {
    System.err.println("SQLException: "
    + ex.getMessage());
    null

    Hi,
    To avoid ORA-22920 error while selecting lob column, use the 'for update' clause in the select statement like :
    query = "select * from clob1 where id="+currval+" FOR UPDATE" ;
    This should solve the problem. However, after fixing this, you might get the error :
    java.sql.SQLException: ORA-1002: fetch out of sequence
    I got this error when testing your code. To avoid this error, before executing 'select ... for update' statement Set AutoCommit to OFF, like :
    query = "select * from clob1 where id="+currval+" FOR UPDATE" ;
    con.setAutoCommit(false);
    rs =stmt.executeQuery(query);
    Hope that Helps,
    Srinivas

  • I installed a version of Firefox 6.0. in the Russian program, the social network for sending a short message, I can not insert a file in the message field.

    I installed a version of 6.0. In the Russian program of social network My World by sending a short message, I can not insert a file in the message or photo. How do I solve this key problems?

    I need to access Network Solutions website builder too. It isn't compatible with Internet Explorer v9, Chrome v13, or Firefox v5! I believe Firefox v6 is out now. This is a Network Solution's problem. What's involved in rolling back? Can you still get add-ons, plugins, and extensions for such an older version? You can't save your personal preferences can you?

  • Hello, I have a Macbook pro retina-2013.  About Mavericks I could set my 4K monitor via HDMI on 2560x1440.  This I can not get through at Yosemite. Can someone help me there?

    Hello, I have a macbook pro retina-2013.
    About Mavericks I could set my 4K monitor via HDMI on 2560x1440.
    This I can not get through at Yosemite. Can someone help me there?

    They really pushed that it would all work great! Has anyone had the same struggle? Are there any step-by-step instructions to get linked up?
    Call Verizon's wireless tech support & explain your problem to them.  They will provide "step-by-step" instructions over the phone. 
    Take notes too!
    TIP:  If you do call & don't want to go through all those darn promps, when you initially call, just don't say anything.  The automatic voice will then say,  "will connect you to a service rep."

  • Can not search through 1003 results

    1. Firefox Help
    2. Search
    Found 1003 results for "where are my posts"
    I can not search through 1003 results to find my solution. I want to see what I have posted, to what threads I’m subscribed and responses to all. How?

    Thank you,
    But I don’t see these specific words “Firefox Support Forum
    The Official Community-Driven Support Web Site for Firefox” on this page. Perhaps I have not searched for them thoroughly enough. Are they at the top, bottom, somewhere else or on a different page?
    Maybe I am not seeing the same page that you are seeing. I recently downloaded Firefox 9.0.1. If we are not seeing the same page, is there something I can do to correct this?

  • Why can not purchase through my cr card since last time on 7/2/2012

    on 7/2/2012 i purchased chips twice for $99.99 each for texas poker game one chips order credited in the game and the other not credited mainwhile both deducted from cr. card . Now i can not purchase through my card and give me massage refer to itune support for help although there is enough balance in the card.
    Thanks for supporting

    You are not talking to Apple here. This is only a user-to-user forum and noone here can have idea of what if anything has happened to whatever it is you're talking about, and noone here can do a thing to resolve your issues.
    It would seem you need to be talking to iTunes support, which is addressed through iTunes, not these or any other of these Apple Support Communities forums.

  • My DVD drive is blocked. I can not insert a CD / DVD. Does anyone know a solution?

    My DVD drive is blocked. I can not insert a CD / DVD. Does anyone know a solution?

    DDWooldridge wrote:
    Yeah, I was afraid that taking it in for repair might be my only option at this point.  It's my primary computer for work, so almost impossible to be without it for any length of time.  sigh...  Thanks!
    You can request a replacement while your computer is being repaired if you are still under warranty or have Apple Care.  You have to call Apple Care to request a replacement.

  • HT1338 I have macbook without a firewire port, I have usb 2.0 port, now my os is not working I can not get through apple logo loading , I can not enter safe mode, I can only enter one user mode, how can I backup my data, I have very important data in my h

    I have macbook without a firewire port, I have usb 2.0 port, now my os is not working I can not get through apple logo loading , I can not enter safe mode, I can only enter one user mode, how can I backup my data, I have very important data in my hdd

    Here is what worked for me:
      My usb hub, being usb2, was too fast. I moved the wire to a usb port directory on my pc. That is a usb1 port which is slow enough to run your snyc.

  • The safari can search website but it can  not go through the icon. screen color blacken. solution?

    the safari can search website but it can  not go through the icon. screen color blacken. solution?

    Try clearing Safari's cache : Settings > Safari > Clear Cache (and Clear History)
    If that doesn't work then try closing Safari completely and then re-open it : from the home screen (i.e. not with Safari 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Safari app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    A third option is a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • 3ds can not get through my wpa2

    Not sure if anyone can offer any suggestions but my daughters 3ds can not get through the wpa2 security to access the Nintendo wifi network.  Anybody have any suggestions as to how we can get by this?

    loper wrote:
    Not sure if anyone can offer any suggestions but my daughters 3ds can not get through the wpa2 security to access the Nintendo wifi network.  Anybody have any suggestions as to how we can get by this?
    The following links may help.
    http://en-americas-support.nintendo.com/app/answers/detail/a_id/499/p/48/session/L3RpbWUvMTM3NjMzMTc...
    http://www.nintendo.com/consumer/wfc/en_na/ds/firewall.jsp
    If neither of these resolve the problem you should contact Nintendo customer support.

  • Can not insert Data

    Hi all ;
    when tryiing to call a stored procedure from java session bean ,i am getting this error message:
    [BEA][Oracle JDBC Driver][Oracle]ORA-20000: Records are not inserted into the stagging table
    ORA-06512: at "APPS3_MTNAOL.MTN_INV_MANAGER", line 2529
    ORA-06512: at line 1
    but when i am calling the same stored procedure from sql developper for test ,with the same input data, it is working fine. what can be the issue?

    ORA-20000 is a user-defined Error in the database. Please check with whoever developed the code within your organization on what that means.
    but when i am calling the same stored procedure from sql developper for test ,with the same input data, it is working fine. what can be the issue?Obviously, you are not able to recreate the error from 'sql developer'.
    Edited by: RPuttagunta on Dec 7, 2010 3:06 PM

  • Can not Insert data to Microsoft Access successfully

    I am using Microsoft Access database, and trying to insert some data into a table with a "while" loop, but every time, the last row can not be inserted although the return value of the "executeUpdate()" is 1, can anyone tell what's wrong with that? thank you very much

    http://forums.java.sun.com/thread.jsp?forum=48&thread=147704
    Sounds like it may be the same "glitch"
    Jamie

  • I can not insert a field in ANY report . . .

    Post Author: Chass
    CA Forum: General
    I've searched around a bit about this. I can't find anything about anyone who had the same problem.
    I was reporting along and suddenly CR v8.5 wouldn't let me insert a field anymore. I can't insert a field on a new or old report from the field exporer. I drag the field to the area of the report that I want to drop it and it stays a black circle with a line through it. It won't allow me to insert any field in any report.
    I tested this on my coworkers computer and his is working fine. Same version, same report, same field.
    What would cause my install of CR to stop allowing insertion of fields?
    Thanks in advance . . .
    Chass
    ct

    Post Author: Chass
    CA Forum: General
    For anyone else that runs into this issue. I searched heavily and came up with nothing.
    I decided to uninstall and then reinstall the application and that fixed the problem.
    I still don't know the original cause . . .
    Chass
    ct

Maybe you are looking for

  • Mapping for fields in Standard cube

    Hi, There arent any mappings for the date related fields 0RPM_MONTH,0RPM_YEAR,..etc. in the business content cube 0RPM_c02 capacity management. I could not find any relevant mappings in sap help also.Please provide any pointers as to how to update th

  • Youtube not working in Safari

    Hello, this is my first post. Recently I have been experiencing a problem with running youtube videos in the Safari browser. It started to happen spontaneously about 1-2 weeks ago, and so far has not changed. If I click a video to play (embedded like

  • A/R Invoice - Create two outgoing payments

    Hi, We have issue here regading A/R Invoice Payment. The A/R Invoice is $100, the payment is $200 with Interact card (Direct account payment) with $100 cash return. The present does not work in B1; but will be developed in future release. The present

  • Exporting files to a eps postscript level one

    hello all. We have just bought a new cutter plotter and the software that was supplied was artcut for a PC, I use a Mac and would like to use Illustrator (CS4) as the main design programme but to import the files into Artcut the need to be a eps post

  • Preview on iPad Not Showing, Help?

    I am struggling to get my iPad to show on preview within Adobe InDesign DPS. I originally thought it was because my iPad wasn't listed as a portable device on my computer, but I finally got it to & I still can't preview. I am curious if this is becau