create or replace trigger triggtest after insert on "long" for each row
begin
  insert into "clob" (f2) values(:new.f1);
end;

解决方案 »

  1.   

    不行啊,试了之后,状态还是invalid,long型数据到clob怎么转换
      

  2.   

    触发器中不能对long,long raw字段进行操作,更不能用:new和:old属性。
      

  3.   

    pl/sql_block
    Specify the PL/SQL block that Oracle executes to fire the trigger.The PL/SQL block of a database trigger can contain one of a series of built-in functions in the SYS schema designed solely to extract system event attributes. These functions can be used only in the PL/SQL block of a database trigger.Restrictions on Trigger Implementation
    The PL/SQL block of a trigger cannot contain transaction control SQL statements (COMMIT, ROLLBACK, SAVEPOINT, and SET CONSTRAINT) if the block is executed within the same transaction. 
    You can reference and use LOB columns in the trigger action inside the PL/SQL block. You can modify the :NEW values but not the :OLD values of LOB columns within the trigger action.
      

  4.   

    应该可以的,你用to_lob函数进行转换,试试。