Lock-ups while inserting to a remote database using a dblink

Our application runs across multiple instances of Oracle 8i - 8.1.6.
Throughout the day we run some batch processes to transfer data across these instances using dblinks. Ocassionally the process locks up and further investigation shows that the server from which we are pushing information out seems to have executed an insert statement on a remote instance (insert into test_table@tst_dblink select * from local_table) and is waiting for a return from the remote server while the remote instance seems to be hanging too. Oracle does not return any error but simply waits forever for the statement to finish.
If anybody has experienced this before can you please share any information you may have on 1. how to prevent this from happening or 2. How to make oracle give up on the transaction, roll it back and raise an error?
Thanks a lot....

Well, certainly we need more info to fix the problem! couple of "system states" on both the machines when the job is hanging would help. couple of "stack trace" of the shadow process will also help. please call local oracle support with the system state and stack trace.
Sounds like the job is hanging on some resource (lock,enque,latch,io...). oracle doesn't give up for few resources, like waiting on ST,latch, io etc. we have to kill the offending process if we want!!
just my 2 cents :)
G

Similar Messages

  • Error while Creating form on remote Database

    Hi All
    I m getting error while creating form on remote database thru
    Database link
    Line/Column Error
    7099/21 PLS-00454: with a returning into clause, the table
    expression cannot be remote or a subquery
    7099/9 PL/SQL: SQL Statement ignored
    7749/16 PLS-00454: with a returning into clause, the table
    expression cannot be remote or a subquery
    7749/9 PL/SQL: SQL Statement ignored
    and statement at line specified is insert statement. and at end
    of insert statement Returning caluse is there as follows
    RETURNING ROWID INTO "_ROWID";
    This returning clause is causing error. Does anybody knows how
    to handel it??
    Thanks
    Yogesh

    Yogesh
    I haven't seen the ora-03116 problem.
    What version of Portal are you running? Are the databases at the same version? Does your table have longs or anything strange in it?
    Can you query the table via the synonyms and link in sqlplus as the application schema? This is a good test because it eliminates Portal.
    You should try setting up synonyms etc for the emp table. If you still get the problem then Oracle may be able to replicate it. If not, then there's sth funny about your table maybe.
    I agree with Vishnu about creating everything in sqlplus. I create all my links and synonyms in sqlplus. They are all public. I have 2 synonyms: one takes you over the link the other takes you to the right schema. It's flexible and it works.
    data database: D grants to P (local schema) on table T
    public syn T = D.T (sys) (get the right schema)
    portal dbase : public db link to data database connecting as P
    public syn T = T@dblink (sys) (over the link)
    P is a schema created in both databases.
    Test is: P in portal dbase can "select * from T" and gets the right data.
    I never, ever refer to a schema when defining a form. ie. never P.T or D.T or whatever. I always refer simply to a synonym. For the above my form would be defined simply on the table T.
    Hope this helps
    Greg

  • Trigger inserting CLOB in remote database

    I ma using an after insert row level trigger to replicate a table into a remote database which has a CLOB column. This is not Oracle Replication, only a trigger. I have attempted numerous paths to achieve this with only partial successes. Is there a way to insert into the remote database when using a CLOB?
    Trigger follows: (will not work when the table array values gets large; I know it will fail on iteration 14)
    CREATE OR REPLACE TRIGGER COPYUP
    INSERT ON "EVENT_DATA" FOR EACH ROW
    DECLARE
    TYPE t_buffer IS TABLE OF VARCHAR2(32500)
    INDEX BY BINARY_INTEGER;
    vcharBuf t_buffer;
    vintReadlength integer := 1;
    vintSendRead integer;
    vintCntr integer := 0;
    vintTotallength integer := 1;
    vintBeginloc integer := 1;
    vclobVal clob;
    vintOffset integer := 32500;
    vintLoop integer;
    vnumError number;
    vcharErrstr varchar2(200);
    BEGIN
    select :new.rawdata into vclobVal from dual;
    vintTotallength := dbms_lob.getlength(vclobVal);
    LOOP
    if vintTotallength > vintOffset then
    if ((vintCntr + 1) * vintOffset) < vintTotallength then
    vintReadlength := vintOffset;
    else
    vintReadlength := (vintTotallength - (vintCntr * vintOffset));
    end if;
    else
    vintReadlength := vintTotallength;
    end if;
    vintSendRead := vintReadlength;
    -- dbms_output.put_line('COPYUP: vintReadlength: ' || vintReadlength || '.');
    -- dbms_output.put_line('COPYUP: vintTotallength: ' || vintTotallength || '.');
    -- dbms_output.put_line('COPYUP: vintCntr: ' || vintCntr || '.');
    -- dbms_output.put_line('COPYUP: vintOffset: ' || vintOffset || '.');
    -- dbms_output.put_line('COPYUP: vintBeginloc: ' || vintBeginloc || '.');
    -- dbms_output.put_line('COPYUP: vintBeginlocSendRead: ' || vintSendRead || '.');
    -- dbms_output.put_line('COPYUP: EventId: ' || :new.eventid || '.');
    dbms_lob.read(vclobVal, vintSendRead, vintBeginloc, vcharBuf(vintCntr));
    exit when ((vintBeginloc + vintReadlength) >= vintTotallength);
    vintCntr := vintCntr + 1;
    vintBeginloc := (vintCntr * vintReadLength) + 1;
    END LOOP;
    IF vintCntr = 0 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 1 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 2 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 3 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 4 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 5 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 6 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 7 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 8 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 9 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 10 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 11 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 12 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 13 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 14 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13)||vcharBuf(14),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 15 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13)||vcharBuf(14)||vcharBuf(15),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 16 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13)||vcharBuf(14)||vcharBuf(15)||vcharBuf(16),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 17 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13)||vcharBuf(14)||vcharBuf(15)||vcharBuf(16)||vcharBuf(17),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 18 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13)||vcharBuf(14)||vcharBuf(15)||vcharBuf(16)||vcharBuf(17)||vcharBuf(18),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 19 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13)||vcharBuf(14)||vcharBuf(15)||vcharBuf(16)||vcharBuf(17)||vcharBuf(18)||vcharBuf(19),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 20 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13)||vcharBuf(14)||vcharBuf(15)||vcharBuf(16)||vcharBuf(17)||vcharBuf(18)||vcharBuf(19)||vcharBuf(20),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 21 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13)||vcharBuf(14)||vcharBuf(15)||vcharBuf(16)||vcharBuf(17)||vcharBuf(18)||vcharBuf(19)||vcharBuf(20)||vcharBuf(21),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 22 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13)||vcharBuf(14)||vcharBuf(15)||vcharBuf(16)||vcharBuf(17)||vcharBuf(18)||vcharBuf(19)||vcharBuf(20)||vcharBuf(21)||vcharBuf(22),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 23 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13)||vcharBuf(14)||vcharBuf(15)||vcharBuf(16)||vcharBuf(17)||vcharBuf(18)||vcharBuf(19)||vcharBuf(20)||vcharBuf(21)||vcharBuf(22)||vcharBuf(23),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 24 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13)||vcharBuf(14)||vcharBuf(15)||vcharBuf(16)||vcharBuf(17)||vcharBuf(18)||vcharBuf(19)||vcharBuf(20)||vcharBuf(21)||vcharBuf(22)||vcharBuf(23)||vcharBuf(24),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 25 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13)||vcharBuf(14)||vcharBuf(15)||vcharBuf(16)||vcharBuf(17)||vcharBuf(18)||vcharBuf(19)||vcharBuf(20)||vcharBuf(21)||vcharBuf(22)||vcharBuf(23)||vcharBuf(24)||vcharBuf(25),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 26 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13)||vcharBuf(14)||vcharBuf(15)||vcharBuf(16)||vcharBuf(17)||vcharBuf(18)||vcharBuf(19)||vcharBuf(20)||vcharBuf(21)||vcharBuf(22)||vcharBuf(23)||vcharBuf(24)||vcharBuf(25)||vcharBuf(26),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 27 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13)||vcharBuf(14)||vcharBuf(15)||vcharBuf(16)||vcharBuf(17)||vcharBuf(18)||vcharBuf(19)||vcharBuf(20)||vcharBuf(21)||vcharBuf(22)||vcharBuf(23)||vcharBuf(24)||vcharBuf(25)||vcharBuf(26)||vcharBuf(27),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 28 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13)||vcharBuf(14)||vcharBuf(15)||vcharBuf(16)||vcharBuf(17)||vcharBuf(18)||vcharBuf(19)||vcharBuf(20)||vcharBuf(21)||vcharBuf(22)||vcharBuf(23)||vcharBuf(24)||vcharBuf(25)||vcharBuf(26)||vcharBuf(27)||vcharBuf(28),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 29 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13)||vcharBuf(14)||vcharBuf(15)||vcharBuf(16)||vcharBuf(17)||vcharBuf(18)||vcharBuf(19)||vcharBuf(20)||vcharBuf(21)||vcharBuf(22)||vcharBuf(23)||vcharBuf(24)||vcharBuf(25)||vcharBuf(26)||vcharBuf(27)||vcharBuf(28)||vcharBuf(29),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 30 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13)||vcharBuf(14)||vcharBuf(15)||vcharBuf(16)||vcharBuf(17)||vcharBuf(18)||vcharBuf(19)||vcharBuf(20)||vcharBuf(21)||vcharBuf(22)||vcharBuf(23)||vcharBuf(24)||vcharBuf(25)||vcharBuf(26)||vcharBuf(27)||vcharBuf(28)||vcharBuf(29)||vcharBuf(30),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 31 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13)||vcharBuf(14)||vcharBuf(15)||vcharBuf(16)||vcharBuf(17)||vcharBuf(18)||vcharBuf(19)||vcharBuf(20)||vcharBuf(21)||vcharBuf(22)||vcharBuf(23)||vcharBuf(24)||vcharBuf(25)||vcharBuf(26)||vcharBuf(27)||vcharBuf(28)||vcharBuf(29)||vcharBuf(30)||vcharBuf(31),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 32 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13)||vcharBuf(14)||vcharBuf(15)||vcharBuf(16)||vcharBuf(17)||vcharBuf(18)||vcharBuf(19)||vcharBuf(20)||vcharBuf(21)||vcharBuf(22)||vcharBuf(23)||vcharBuf(24)||vcharBuf(25)||vcharBuf(26)||vcharBuf(27)||vcharBuf(28)||vcharBuf(29)||vcharBuf(30)||vcharBuf(31)||vcharBuf(32),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSE
    insert into ncars.trigger_events
    (dt, ip, id, ival1, ival2, cval1, cval2)
    values
    (sysdate, :new.ip_address, :new.eventid, vintCntr,
    vintTotallength, 'COPYUP', 'EVENT_DATA');
    END IF;
    EXCEPTION
    when others then
    vnumError := SQLCODE;
    vcharErrstr := SUBSTR(SQLERRM, 1, 200);
    insert into ncars.trigger_events
    (dt, ip, id, ival1, ival2, cval1, cval2)
    values
    (sysdate, :new.ip_address, :new.eventid, vintCntr,
    vnumError, 'COPYUP', vcharErrstr);
    END COPYUP;

    I aim to please any and all that wish to help. This is very similar to my original trigger. This trigger is constrained by the 32500 size.
    CREATE OR REPLACE TRIGGER COPYUP
    INSERT ON EVENT_DATA FOR EACH ROW
    DECLARE
    vcharBuf varchar2(32500);
    vintTotallength integer := 1;
    vclobVal clob;
    BEGIN
    select :new.rawdata into vclobVal from dual;
    vintTotallength := dbms_lob.getlength(vclobVal);
    dbms_lob.read(vclobVal, vintTotallength , 1, vcharBuf);
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf,
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    END COPYUP;

  • Oerror while inserting in to 11g database from SOA suite 11g db adaptor

    Hi,
    I am getting following error while inserting in to 11g database from SOA suite 11g database adaptor. Can you please help me on this.
    "{http://schemas.oracle.com/bpel/extension}bindingFault" has been thrown.
    Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'insert' failed due to: DBWriteInteractionSpec Execute Failed Exception. insert failed. Descriptor name: [LoggerDBInsert.LoggedError]. Caused by java.sql.SQLSyntaxErrorException: ORA-01722: invalid number . ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution. ORA-01722: invalid number 1722
    Regards,
    Bharat

    It looks like you try to insert a string-value in a number-column.
    can you check all your assign and their values before you invoke the db-adapter, then you should be able to narrow down the problem.

  • Problem while accessing object in remote database

    Hi All,
    We have a procedure "UPDATE_CONV_DETAILS" created in the remote databse in the "apps" schema. The synonym for the procedure is created in the billing schema(present in the remote database). A dblink is created the local database through which we are tring to access the remote object "UPDATE_CONV_DETAILS".
    Dblink script:
    create public database link PRE_TO_CEL
    connect to BILLING
    identified by BILLING
    using 'MAP1';
    When trying to access the object from the local machine using the schema name.object_name it works fine:
    SQL> DESC APPS.UPDATE_CONV_DETAILS@PRE_TO_CEL
    PROCEDURE APPS.UPDATE_CONV_DETAILS@PRE_TO_CEL
    Argument Name Type In/Out Default?
    IN_MOBILE VARCHAR2 IN
    IN_SERVICE_CODE VARCHAR2 IN
    IN_STATUS VARCHAR2 IN
    OUT_ERROR_CODE NUMBER OUT
    But when trying the access the same object using the synonym_name it gives the error:
    SQL> DESC UPDATE_CONV_DETAILS@PRE_TO_CEL
    ERROR:
    ORA-04043: object APPS.UPDATE_CONV_DETAILS does not exist
    Regards,
    Kirti

    You have two schema.
    apps
    billing
    both reside in remote database.
    there on procedure and on procedure u create one synonym and u want to access it.
    ur remote database name is "map1"
    on ur local database ur create one dblink to access remote database.
    ORA-04043: object string does not exist
    Cause: An object name was specified that was not recognized by the system. There are several possible causes:
    - An invalid name for a table, view, sequence, procedure, function, package, or package body was entered. Since the system could not recognize the invalid name, it responded with the message that the named object does not exist.
    - An attempt was made to rename an index or a cluster, or some other object that cannot be renamed.
    Action: Check the spelling of the named object and rerun the code. (Valid names of tables, views, functions, etc. can be listed by querying the data dictionary.)

  • Oracle VPD on Remote database using DBLINk

    Hi All,
    How can i apply row level security on a table that is available in another database using DBlink
    we have two databases PDSSM and EVTA, and i would like to apply row level security on a table in EVTA from a schema in PDSSM using dblink. MXODSADM IS A SCHEMA IN EVTA AND MXEMBARGO IS A SCHEMA IN PDSSM. there is a dblink(EVTA.GMM.COM) between mxembargo and mxodsadm.
    begin
    dbms_rls.add_policy (
    object_schema => 'MXODSADM',
    object_name => 'vehicle_retail_sale',
    policy_name => ' MXEMBARGO_EVTA_POLICY',
    function_schema =>'MXEMBARGO',
    policy_type => dbms_rls.SHARED_CONTEXT_SENSITIVE,
    --policy_type => dbms_rls.STATIC,
    policy_function => ' MXEMBARGO_EVTA_POLICY.MXEMBARGO_EVTA_PREDICATE',
    statement_types => 'select, insert,update,delete',
    update_check => TRUE,
    enable => TRUE,
    static_policy => TRUE
    end;
    I am a complete Database person and i need to do this in my application, can anyone provide me how can i do this using dblink.

    wojpik wrote:
    hello
    I have one short question to you.
    Is that possible to create view at remote database using dblink? Following syntax returns error
    create view ViewName@DbLinkDame (ColumnName) as
    (select 1 from dual )
    "ORA-00905:missing keyword"
    Is that possible at all?
    And particulary - is that possible when remote database is MSSQL and I am using heterogeneous services?
    I really appreciate your help
    best regards
    Wojtek
    Edited by: wojpik on Oct 21, 2009 3:59 AMI doubt you would be able to fire any ddl through database link. You have to connect to remote database to run any ddl even if it is Oracle or some other database.
    Regards
    Anurag

  • I got the above error while i restore the standby database using RMAN backu

    Dear All,
    RMAN> crosscheck archivelog all;
    using target database controlfile instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=14 devtype=DISK
    specification does not match any archive log in the recovery catalogi got the above error while i restore the standby database using RMAN backup from production.
    Help need.i take the backup without catalog database.
    regards,
    DB

    rman> list backup;
    it shows lengthier but i showed only the corresponding
    BS Key  Type LV Size       Device Type Elapsed Time Completion Time
    3479    Full    17G        DISK        01:29:42     09-FEB-13
            BP Key: 3479   Status: AVAILABLE   Tag: 09FEB13_FULL_ESMSRV1_DB
            Piece Name: /oradatabkp/rman/esmsrv1_full_db_09feb13
      SPFILE Included: Modification time: 08-FEB-13
      List of Datafiles in backup set 3479
      File LV Type Ckp SCN    Ckp Time  Name
      1       Full 1759250260 09-FEB-13 /esmsrv1/dbs/system01.dbf
      2       Full 1759250260 09-FEB-13 /esmsrv1/dbs/undotbs01.dbf
      3       Full 1759250260 09-FEB-13 /esmsrv1/dbs/cwmlite01.dbf
      4       Full 1759250260 09-FEB-13 /esmsrv1/dbs/drsys01.dbf
      5       Full 1759250260 09-FEB-13 /esmsrv1/dbs/example01.dbf
      6       Full 1759250260 09-FEB-13 /esmsrv1/dbs/indx01.dbf
      7       Full 1759250260 09-FEB-13 /esmsrv1/dbs/odm01.dbf
      8       Full 1759250260 09-FEB-13 /esmsrv1/dbs/tools01.dbf
      9       Full 1759250260 09-FEB-13 /esmsrv1/dbs/users01.dbf
      10      Full 1759250260 09-FEB-13 /esmsrv1/dbs/xdb01.dbf
      11      Full 1759250260 09-FEB-13 /esmsrv1/dbs/dpipe_default_seg_001.dbf
      12      Full 1759250260 09-FEB-13 /esmsrv1/dbs/dpipe_property_ind_seg_001.dbf
      13      Full 1759250260 09-FEB-13 /esmsrv1/dbs/dpipe_property_seg_001.dbf
      14      Full 1759250260 09-FEB-13 /esmsrv1/dbs/dpipe_upload_ind_seg_001.dbf
      15      Full 1759250260 09-FEB-13 /esmsrv1/dbs/dpipe_upload_seg_001.dbf
      16      Full 1759250260 09-FEB-13 /esmsrv1/dbs/dpipe_rate_ind_seg_001.dbf
      17      Full 1759250260 09-FEB-13 /esmsrv1/dbs/dpipe_rate_seg_001.dbf
      18      Full 1759250260 09-FEB-13 /esmsrv1/dbs/dpipe_summary_ind_seg_001.dbf
      19      Full 1759250260 09-FEB-13 /esmsrv1/dbs/dpipe_summary_seg_001.dbf
      20      Full 1759250260 09-FEB-13 /esmsrv1/dbs/dpipe_overflow_seg_001.dbf
      21      Full 1759250260 09-FEB-13 /esmsrv1/dbs/dpipe_overflow_seg_002.dbf
      22      Full 1759250260 09-FEB-13 /esmsrv1/dbs/dpipe_summary_seg_002.dbf
      23      Full 1759250260 09-FEB-13 /esmsrv1/dbs/perfstat_001.dbf
      39      Full 1759250260 09-FEB-13 /esmsrv1/dbs/oem_repository.dbf
    BS Key  Type LV Size       Device Type Elapsed Time Completion Time
    3480    Full    17G        DISK        01:21:30     09-FEB-13
            BP Key: 3480   Status: EXPIRED   Tag: TAG20130209T200021
            Piece Name: /oradatabkp/rman/esmsrv1/esmsrv1_full_Feb09
      SPFILE Included: Modification time: 08-FEB-13
      List of Datafiles in backup set 3480
      File LV Type Ckp SCN    Ckp Time  Name
      1       Full 1759422265 09-FEB-13 /esmsrv1/dbs/system01.dbf
      2       Full 1759422265 09-FEB-13 /esmsrv1/dbs/undotbs01.dbf
      3       Full 1759422265 09-FEB-13 /esmsrv1/dbs/cwmlite01.dbf
      4       Full 1759422265 09-FEB-13 /esmsrv1/dbs/drsys01.dbf
      5       Full 1759422265 09-FEB-13 /esmsrv1/dbs/example01.dbf
      6       Full 1759422265 09-FEB-13 /esmsrv1/dbs/indx01.dbf
      7       Full 1759422265 09-FEB-13 /esmsrv1/dbs/odm01.dbf
      8       Full 1759422265 09-FEB-13 /esmsrv1/dbs/tools01.dbf
      9       Full 1759422265 09-FEB-13 /esmsrv1/dbs/users01.dbf
      10      Full 1759422265 09-FEB-13 /esmsrv1/dbs/xdb01.dbf
      11      Full 1759422265 09-FEB-13 /esmsrv1/dbs/dpipe_default_seg_001.dbf
      12      Full 1759422265 09-FEB-13 /esmsrv1/dbs/dpipe_property_ind_seg_001.dbf
      13      Full 1759422265 09-FEB-13 /esmsrv1/dbs/dpipe_property_seg_001.dbf
      14      Full 1759422265 09-FEB-13 /esmsrv1/dbs/dpipe_upload_ind_seg_001.dbf
      15      Full 1759422265 09-FEB-13 /esmsrv1/dbs/dpipe_upload_seg_001.dbf
      16      Full 1759422265 09-FEB-13 /esmsrv1/dbs/dpipe_rate_ind_seg_001.dbf
      17      Full 1759422265 09-FEB-13 /esmsrv1/dbs/dpipe_rate_seg_001.dbf
      18      Full 1759422265 09-FEB-13 /esmsrv1/dbs/dpipe_summary_ind_seg_001.dbf
      19      Full 1759422265 09-FEB-13 /esmsrv1/dbs/dpipe_summary_seg_001.dbf
      20      Full 1759422265 09-FEB-13 /esmsrv1/dbs/dpipe_overflow_seg_001.dbf
      21      Full 1759422265 09-FEB-13 /esmsrv1/dbs/dpipe_overflow_seg_002.dbf
      22      Full 1759422265 09-FEB-13 /esmsrv1/dbs/dpipe_summary_seg_002.dbf
      23      Full 1759422265 09-FEB-13 /esmsrv1/dbs/perfstat_001.dbf
      39      Full 1759422265 09-FEB-13 /esmsrv1/dbs/oem_repository.dbf
    BS Key  Type LV Size       Device Type Elapsed Time Completion Time
    3481    Full    4M         DISK        00:00:03     09-FEB-13
            BP Key: 3481   Status: AVAILABLE   Tag: TAG20130209T212205
            Piece Name: /oradatabkp/rman/esmsrv1/esmsrv1_controlfile_copy_Feb09
      Controlfile Included: Ckp SCN: 1759462488   Ckp time: 09-FEB-13
    BS Key  Type LV Size       Device Type Elapsed Time Completion Time
    3482    Full    0          DISK        00:00:01     09-FEB-13
            BP Key: 3482   Status: AVAILABLE   Tag: TAG20130209T212212
            Piece Name: /oradatabkp/rman/esmsrv1/esmsrv1_spfile_copy_Feb09
      SPFILE Included: Modification time: 08-FEB-13
    ls -l /oradatabkp
    root@drsrv1#ls -l /oradatabkp
    total 1108672
    drwxr-xr-x   2 ovsd       dba             96 Sep 27  2009 alert_bkp
    -rw-r--r--   1 oracle     dba            195 Mar 15  2007 create.sql
    drwxr-xr-x   2 oracle     dba           8192 Aug  7  2009 ctrl_bkp
    -rw-r--r--   1 root       sys        565114880 Apr 24  2007 drsrv1.tar
    drwxrwxrwx   2 root       sys             96 Jun 17  2011 drsrv2-ignitebkp
    drwxr-xr-x   4 root       sys             96 Apr 24  2007 esmsrv1
    -rw-r-----   1 root       sys        1613824 Feb 22  2007 esmsrv1stby.ctl
    -rw-r--r--   1 esmsrv1    dba           5120 Dec 31  2009 esmtables.dmp
    -rw-r--r--   1 esmsrv1    dba            538 Dec 31  2009 esmtables.log
    drwxrwxrwx   4 root       sys           8192 Mar 10  2009 export
    drwxr-xr-x   8 root       sys           8192 Apr 24  2007 finalbackup
    -rw-r--r--   1 oracle     dba           3820 Sep  5  2008 invalid.sql
    -rw-r--r--   1 esmsrv1    dba         303104 Dec 31  2009 kirdevports.dmp
    -rw-r--r--   1 esmsrv1    dba            591 Dec 31  2009 kirdevports.log
    drwxr-xr-x   2 root       root            96 Feb 12  2007 lost+found
    -rw-r--r--   1 oracle     dba          24954 Aug  9  2009 ovcontrol-090909.ctl
    drwxr-xr-x  22 root       sys           8192 Apr 24  2007 ovpi
    drwxr-xr-x   2 oracle     dba           8192 Aug  7  2009 pfile_bkp
    drwxrw-rw-   4 oracle     dba           8192 Feb 10 15:25 rman
    drwxr-xr-x  28 root       sys           8192 Feb  1 17:15 schedbkp
    drwxr-xr-x   2 oracle     dba           8192 Jul 11  2011 sdnnm
    -rw-r--r--   1 esmsrv1    dba           2196 Dec 31  2009 srirdevports.log
    drwxr-xr-x   2 oracle     dba             96 Mar 13  2009 statsreport
    -rw-r--r--   1 oracle     dba            966 Mar 15  2007 tbs.sql
    drwxr-xr-x   5 oracle     dba             96 Mar 16  2007 testov
    drwxr-xr-x   2 root       sys         442368 Mar 11  2009 trendadm_files
    root@drsrv1#ls -l /oradatabkp/rman
    total 37244448
    drwxr-xr-x   2 oracle     dba           8192 Feb 10 15:25 esmsrv1
    -rw-r-----   1 oracle     dba        19068198912 Feb  9 14:21 esmsrv1_full_db_09feb13
    drwxrw-rw-   2 oracle     dba           8192 Feb  9 21:36 openview
    -rw-r--r--   1 oracle     dba         920442 Feb  9 21:37 rmanbkp-all.log

  • How to eliminate inserting  Duplicate rows into database using JDBC Adapter

    File->Xi->JDBC
    In above Scenario if the file has two rows their values are identical, then how can we eliminated inserting  Duplicate rows into database using JDBC Adapter

    Database is a consumer of a SERVICE (SOA!!!!!!).
    Database plays a business system role here!!!!
    Mapping is part of an ESB service
    Adaptor is a technology adapted to ESB framework to support specific protocol.
    ESB accomplish ESB duties such as transformation, translation, routing. Routing use a protocol accepted by the consumer. In a JDBC consumer it is JDBC protocol and hence it a JDBC adaptor.
    There is clear separation on responsibilities among business system and ESB. ESB do not participate in business decision or try to get into business system data layer.
    So who ever are asking people to check duplicate check as part of mapping (an ESB service) may not understand integration practice.
    Please use an adaptor module which will execute the duplicate check with business system in a plug and play approach and separate that from ESB service so that people can build integration using AGILE approach.
    Thanks

  • How to access remote database using applet

    hi all,
    I want to know how to access remote database using applet,
    Please help me anybody.
    Regards
    Jesu

    If the database is on a public server, you probably can't access it directly (security wise). You can make your applet talk to a server-side application, which makes the database calls on behalf of the applet. But even in an intranet environment this setup is often preferable, because you don't need to distribute a JDBC driver to all your clients.

  • Inserting data in remote database with remote procedure

    Hi,
    I have a problem concerning inserting data in a remote database (10g) by using a remote procedure.
    I call the procedure from a 11g database just by doing:
    begin
    getlocalfilecontent@remoteserv(param)
    commit;
    end;
    And it wouldn't insert the data into the remote table.
    While when I execute the same procedure locally on that remote database (10g)
    It does insert the data I want.
    What could be causing the problem here, am I overseeing something?
    Edited by: user7634309 on 14-Aug-2009 02:14

    Already thanks for the fast replies
    The dblink works perfectly. I can select data etc with this dblink.
    The procedure on the remote database is the same.
    One other thing, when I execute the remote procedure on local database 2nd time I get the
    ORA-ERR: ORA-02041: client database did not begin a transaction.
    This could be fixed by doing a commit or rollback but still no inserting in remote table.
    So to sum it up:
    What doesn't work:(no inserting)
    On 11g server that calls remotely the procedure
    begin
    getlocalfilecontent@remoteserv(parameter);
    commit;
    end;
    What works(does insert)
    On 10g server calling the procedure locally
    begin
    getlocalfilecontent(param);
    commit;
    end;
    So everything is the same except on the 11g server I add the dblink spec behiind the procedurecall

  • Insert a blob in remote database using dblink

    i have a view (it has a BLOB column) from where i need to select the records. After selecting i need to insert it into a synonym in the remote database through a db link.
    if i execute the procedure i get error; ora-22992--cannot use LOB locators selected from remote table. My code is
    INSERT INTO [email protected]
    SELECT PID,RNO, PTYPE,blob_field
    FROM view;
    I dont wish to creat a temporary table and still wish to perform the above function.
    So is there any method to do this. I tried with DBMS_LOB.APPEND but it didnt work out. Any solution will be greatly appreciated.
    Thanks,
    -Nitin

    i have a view (it has a BLOB column) from where i need to select the records. After selecting i need to insert it into a synonym in the remote database through a db link.
    if i execute the procedure i get error; ora-22992--cannot use LOB locators selected from remote table. My code is
    INSERT INTO [email protected]
    SELECT PID,RNO, PTYPE,blob_field
    FROM view;
    I dont wish to creat a temporary table and still wish to perform the above function.
    So is there any method to do this. I tried with DBMS_LOB.APPEND but it didnt work out. Any solution will be greatly appreciated.
    Thanks,
    -Nitin

  • Error while inserting records in sqlLite database

    Hi all
    I am building a hybrid web app in SMP using phonegap and html.
    I am trying to insert records in sql database but i get an error with an undefined error code
    Please see below :
    function openDatabaseFoo() {
      db = window.openDatabase(clientDBName, clientDBVersion, clientDBDisplayName, clientDBMaxSize);
    function createDBTables() {
      db.transaction(function(tx) {
      // Create mine table
      var fooCreate = 'CREATE TABLE IF NOT EXISTS ' + fooTable+ ' (empNo, empName)';
      tx.executeSql(fooCreate , [],
      function (tx, resultSet) {
                //success
      var msg = 'Sucessfully created';
      alert(msg);
      logSuccessMessage(msg);
                function (err) {
                //error code
                var msg = "Error creating table = " + err.code;
                alert(msg);
                logErrorMessage(msg);
    the creation of tables is happening properly because i am getting a success message in the alerts.
    I am getting the error when i am trying to insert records in the above table
    function insertDataTable(){
    db.transaction(function(tx) {
    var insertSql = 'INSERT INTO ' + fooTable + ' (empNo, empName) VALUES ("1603","baker")';
    tx.executeSql(insertSql, [],
      function (tx, resultSet) {
                //success
      var msg = 'Sucessful insertingdata.';
      alert(msg);
      logSuccessMessage(msg);
                function (err) {
                //error code
                var msg = "Error inserting data sql = " + insertSql + " Error code = " + err.code;
                alert(msg);
                logErrorMessage(msg);
    can some one please help.Also guide me where can i check the sqlLite database logs to see more about the error.
    I would really appreciate the help.I have been onto this since past few days now
    Regards
    Shweta

    What is err.code, or the value of msg when the error occurs?
    Thanks,
    Andrew.

  • Getting error while calling procedure from remote database

    When I am trying to call child procedure from remote database I am getting below error:
    ORA-02064: distributed operation not supported
    ORA-06512: at "NMUSER.NEW_CUST_UPLOAD", line 740
    (P.S. on line no 740 I issued "commit;" )
    I checked rights,synonym on all the objects they are fine.

    Oracle Error: ORA-02064
    Error Description:
    Distributed operation
    not supported
    Error Cause:
    One of the following
    unsupported operations was attempted:
    1. array execute of a remote update with a subquery that references a dblink,
    or
    2. an update of a long column with bind variable and an update of a second
    column with a subquery that both references a dblink and a bind variable, or
    3. a commit is issued in a coordinated session from an RPC procedure call
    with OUT parameters or function call.
    Cheers,
    Manik.

  • Unable to create publication item for remote database using db link

    The mobile repository is in instance A.
    I have to access and sync data from a table in remote database instance B.
    I have run the consolidator_rmt.sql script in instance B under schema_B. I have created a private fixed user db link in instance A under schema_A to access schema_B's tables. I then created a synonym test_B for table test_B in schema_B using the DB link.
    While creating publication item for test_B using MDW, the column list for test_B appears blank. Has anyone encountered this problem and what is the solution.
    Thanks for your help.
    Rosa.

    Hello Pruthvi ,
    See these threads
    Uninstalling MaxDB
    Work process Ended.
    Thanks
    Chandran

  • Getting error while deleting rows from the database using the View Object

    Hi All,
    I am using jdev 11.1.1.4.0. I am removing the rows from the database using viewobject( quering the viewobject to find the records i want to delete).
    I am using vo.removeCurrentRow(0). Before this statement I am able to get the rows I want to delete.
    after that i am doing am.transaction.commit(). But I am getting the error..
    javax.faces.el.EvaluationException: oracle.jbo.DMLException: JBO-26080: Error while selecting entity for CriteriaEO
         at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:58)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1256)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
         at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:102)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:96)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:879)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:312)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:185)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:175)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
    Caused by: oracle.jbo.DMLException: JBO-26080: Error while selecting entity for CriteriaEO
         at oracle.jbo.server.OracleSQLBuilderImpl.doEntitySelectForAltKey(OracleSQLBuilderImpl.java:1117)
         at oracle.jbo.server.BaseSQLBuilderImpl.doEntitySelect(BaseSQLBuilderImpl.java:553)
         at oracle.jbo.server.EntityImpl.doSelect(EntityImpl.java:8134)
         at oracle.jbo.server.EntityImpl.lock(EntityImpl.java:5863)
         at oracle.jbo.server.EntityImpl.beforePost(EntityImpl.java:6369)
         at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:6551)
         at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3275)
         at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:3078)
         at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2088)
         at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2369)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.el.parser.AstValue.invoke(Unknown Source)
         at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
         at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
         ... 53 more
    Caused by: java.sql.SQLSyntaxErrorException: ORA-00972: identifier is too long
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:457)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
         at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:889)
         at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:476)
         at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:204)
         at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:540)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:217)
         at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:924)
         at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1261)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1419)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3752)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3806)
         at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1667)
         at oracle.jbo.server.OracleSQLBuilderImpl.doEntitySelectForAltKey(OracleSQLBuilderImpl.java:869)
    Please give suggestions...
    Thanks
    Kanika

    Hi,
    First Run Application module and confirm whether model project is OK,Cause for the Error is Caused by: java.sql.SQLSyntaxErrorException: ORA-00972: identifier is too long
    check:
    Issues with table/column name length
    identifier is too long
    I guess following error occurred because above issue
    JBO-26080: DMLException
    Cause: An unexpected exception occurred while executing the SQL to fetch data for an entity instance or lock it.
    Action: Fix the cause for the SQLException in the details of this exception.
    See:
    http://download.oracle.com/docs/cd/A97337_01/ias102_otn/buslog.102/bc4j/jboerrormessages.html#26080Hope you will helpful

Maybe you are looking for

  • Getting error while applying psu patch on 11.2.0.2.0

    Hi All, I am getting one error while applying psu july patch on top of 11.2.0.2.0 If anybody has the solution please answer: Below is the code sample: [oracle@host01 16619893]$ opatch prereq CheckConflictAgainstOHWithDetail -phBase                   

  • Spool recepient issue in ECC 6.0

    We have a scheduled background job ZD510_FILL_RATE_REPORT_ECC6.  This produces a reports and sends to a distribution group. When the group receives the report in their inbox they open it and it only shows 16 pages of the 33 pages. The user replied th

  • Is there a way to programmatically add datasources to multiple instance in a cluster?

    Hi, I am wondering whether it is possible to loop through the instances in a cluster and add the same datasource to each using the setMSSQL function from cfide.adminapi.datasource.cfc. We are running CF9.01 on Windows Server 2008 r2 (64 Bit). If you

  • SNC Configuration

    Hi Gurus, I am working on the Contract Manufacturing Scenario for SNC.  The system landscape is ECC-XI-APO-ICH. When Purchase Order is created idoc is sent out to XI already but having problems with sending XI to APO. Do you know if there are SNC Con

  • How to clean the duplicated photographs in Iphoto

    i pressed Duplicate command thinking it will clean all duplicates but now my photographs are in thousands; How do i delete the duplicate photographs in Iphoto.