Executing a DDL command without committing

Hi!
I have a PLSQL procedure that uses EXECUTE IMMEDIATE CREATE OR REPLACE DIRECTORY 'FROM_DIR' AS 'path' to obtain access to directories on the server. Before and after the statement is run, I have a list of inserts and updates into tables.
When the statment is run, the database automatically issues a commit.
I want to avoid the commit. Does anyone have a suggestion to how I can accomplish this. Is it perhaps possible to run the DDL statement in a separate session, thus avoiding the commit in my main session?

This example should help you.
  1  DECLARE
  2  PROCEDURE MYTEST IS
  3  pragma autonomous_transaction;
  4  BEGIN
  5  EXECUTE IMMEDIATE 'CREATE TABLE TEST2(COL1 VARCHAR2(2))';
  6  END;
  7  BEGIN
  8  INSERT INTO test1(col1,col2) values(1,2);
  9  MYTEST;
10  ROLLBACK;
11* END;
SQL> /
PL/SQL procedure successfully completed.
SQL>  select count(*) from test1;
  COUNT(*)
         0
1 row selected.
SQL> DESC TEST2
Name                                      Null?    Type
COL1                                               VARCHAR2(2)
SQL> DROP TABLE TEST2;
Table dropped.
SQL> DECLARE
  2  PROCEDURE MYTEST IS
  3  pragma autonomous_transaction;
  4  BEGIN
  5  EXECUTE IMMEDIATE 'CREATE TABLE TEST2(COL1 VARCHAR2(2))';
  6  END;
  7  BEGIN
  8  INSERT INTO test1(col1,col2) values(1,2);
  9  MYTEST;
10  COMMIT;
11  END;
12  /
PL/SQL procedure successfully completed.
SQL> select count(*) from test1;
  COUNT(*)
         1
1 row selected.
SQL>  DESC TEST2
Name                                      Null?    Type
COL1                                               VARCHAR2(2)

Similar Messages

  • PL/SQL: how to execute host-/system command without ext. procedure call

    Hello,
    I would like to execute a systemcall out of a PL/SQL-package (e.g. execute a shell script). Seems like that this is just possible with a external procedure call.
    Are there any other solutions available?
    Rgds
    JH

    With 10g you can use DBMS_SCHEDULER: see Re: Guide to External Jobs on 10g with dbms_scheduler e.g. scripts,batch fi

  • Getting an error while executing ddl commands using dblink

    Hi,
    i am using Oracle9iR2 Version.
    i have created a procedure like below to execute ddl commands on remote database through dblink using dbms_sql.
    CREATE OR REPLACE PROCEDURE run_remote_ddl (p_dblink VARCHAR2, qry VARCHAR2)
    AS
    c_handle NUMBER;
    feedback INTEGER;
    stat VARCHAR2 (2000);
    BEGIN
    stat := 'select DBMS_SQL.open_cursor' || p_dblink || ' from dual';
    EXECUTE IMMEDIATE stat
    INTO c_handle;
    stat :=
    'begin DBMS_SQL.parse'
    || p_dblink
    || ' ('
    || c_handle
    || ','''
    || qry
    || ''', DBMS_SQL.v7); end;';
    EXECUTE IMMEDIATE stat;
    stat :=
    ' select DBMS_SQL.EXECUTE' || p_dblink || '(' || c_handle
    || ') from dual';
    EXECUTE IMMEDIATE stat
    INTO feedback;
    stat :=
    'declare x integer; begin x:= :1; DBMS_SQL.close_cursor'
    || p_dblink
    || '(x); end;';
    EXECUTE IMMEDIATE stat
    USING c_handle;
    END;
    when i run this procedure like below
    begin
    run_remote_ddl ('@dblink', 'create table scott.ttt(num number)');
    end;
    got an error:
    ORA-06553: PLS-103: Encountered the symbol ".2" when expecting one of the following:
    . ( * @ & = - + ; < / > at in is mod not rem
    <an exponent (**)> <> or != or ~= >= <= <> and or like
    between ||
    The symbol ". was inserted before ".2" to continue.
    ORA-06512: at RUN_REMOTE_DDL", line 9
    ORA-06512: at line 2
    Please tell me how to resolve this.
    Thanks in advance.

    Hi,
    >
    ORA-06553: PLS-103: Encountered the symbol ".2" when expecting one of the following:
    . ( * @ & = - + ; < / > at in is mod not rem
    <an exponent (**)> or != or ~= >= <= <> and or like
    between
    >
    Hope you are not typing 2 instead of @ as both are on the same key
    Can you run the following and see what is happening
    CREATE OR REPLACE PROCEDURE run_remote_ddl (p_dblink VARCHAR2, qry VARCHAR2)
    AS
    c_handle NUMBER;
    feedback INTEGER;
    stat VARCHAR2 (2000);
    BEGIN
    dbms_output.put_line(p_dblink);
    stat := 'select DBMS_SQL.open_cursor@dblink from dual';
    --stat := 'select DBMS_SQL.open_cursor from dual';
    EXECUTE IMMEDIATE stat
    INTO c_handle;
    END;
    exec run_remote_ddl('@dblink', 'create table scott.ttt(num number)');Regards
    Edited by: yoonus on Feb 20, 2013 3:47 AM

  • Execute a command without thread

    Hi....i have to execute a command in DOS and i'm using runtime java class with its method exec(). The process works perfectly but in my code i have to execute that command without a thread because the successive operations will work only if the command terminated correctly. What can i do to resolve it?

    String cmd = input.getTxtDb2Cmd();
    Process p = Runtime.getRuntime().exec(cmd);
    int r = p.waitFor();
    if (r != 0)
    throw new RuntimeException("db2 command failed");
    i've to invoke a db2 command that import a txt file in a db table. After this code i've some operations that works with this table so i've to terminate this import before execute other functions.

  • Executing client commands without using webutil

    Hi,
    Overview: Our dba is busy enough to be disturbed for configuring webutil for me to execute client commands like client_host, client_text_io, etc.
    The forms resides on unix server, then I want to implement a feature that writes data to a file then to be saved in the client's
    local directory.
    Question: I was just wondering if I can or is it possible to execute client commands specifically windows commands without using client_host?
    Any help would be much appreciated.

    I think i found a way on how to do it, using Runtime.getRuntime().exec

  • Execute DDL Commands inside a transactionScope

    Hi,
    I know that in Oracle all DDL commands include an implicit COMMIT so when you use one of them inside a transactionScope an exception is thrown due to this internal COMMIT. I’m receiving following exception ORA-02089: COMMIT is not allowed in a subordinate session. Is there any way to avoid this limitation?
    Thanks in advance,
    Francesc

    Hi,
    There's no way to get DDL to not autocommit.
    What you could do though is use a stored procedure to do the ddl, and declare the procedure with PRAGMA AUTONOMOUS_TRANSACTION.
    I'm not sure what the advisability of that is since anything that that occurs in the procedure wont be rolled back as part of the transaction, but it works anyway.
    Cheers,
    Greg
    create or replace procedure ExecOutsideTxn(strsql in varchar2) as
    pragma autonomous_transaction;
    begin
    execute immediate strsql;
    end;
    using System;
    using Oracle.DataAccess.Client;
    using System.Transactions;
    using System.Data;
    class Program
    static void Main(string[] args)
    using (TransactionScope ts = new TransactionScope(TransactionScopeOption.RequiresNew))
    using (OracleConnection con = new OracleConnection())
    con.ConnectionString = "user id=scott;password=tiger;data source=orcl";
    con.Open();
    using (OracleCommand cmd = new OracleCommand())
    cmd.CommandText = "begin ExecOutsideTxn('create table foo (col1 varchar2(10))');end;";
    cmd.Connection = con;
    cmd.ExecuteNonQuery();
    // do some other stuff
    ts.Complete();
    }

  • See the detalis of DDL commands executing on oracle 10g

    Hi,
    how can i see the detail of DDL command executed on oracle 10g on ECC 6.0
    ECC 6.0
    HPUX
    Regards,

    Did you activated the auditing mechanish on the Oracle? If it is active, you can query the audit table;
    select * from sys.aud$;
    Another way is using Oracle Log Miner. You can find the related information, on the link below;
    http://docs.oracle.com/cd/B10501_01/server.920/a96521/logminer.htm
    Best regards,
    Orkun Gedik

  • Executing multiple DDL statements with OracleCommand

    hi..
    im having trouble executing multiple ddl statements with the the oracle command object. i have tried to enclose them within Begin.. End; block but with no use.
    this problem seems to occur only with DDL statements,.. as my DML like update, delete and Inserts seem to work fine when enclosed within the PL /SQL block.
    single DDL statements also seem to work fine. so im guessing this has nothing to do with priviledges. any ideas?
    my code as follows
    OracleCommand command = new OracleCommand();
    command.CommandType = CommandType.Text;
    command.CommandText = string.Format(@"{0}",script);
    conn.Open();
    command.Connection = conn;
    command.ExecuteNonQuery();
    the script is read from a file, and looks like this. (note : i have removed any line breaks or any other characters)
    BEGIN ALTER TABLE SYSTEMUSER DISABLE CONSTRAINT FK_USER_CLIENT; ALTER TRIGGER SET_SUBSCRIPTION_SUB_I DISABLE; END;
    this is the error i get.
    Oracle.DataAccess.Client.OracleException: ORA-06550: line 1, column 7:
    PLS-00103: Encountered the symbol "ALTER" when expecting one of the following:
    begin case declare exit for goto if loop mod null pragma
    raise return select update while with <an identifier>
    <a double-quoted delimited-identifier> <a bind variable> <<
    close current delete fetch lock insert open rollback
    savepoint set sql execute commit forall merge pipe.

    If I'm not mistaken, we're not allowed to issue DDL inside anonymoue block (or stored procedure) since DDL has implicit commit in it. But you still can execute DDL using EXECUTE IMMEDIATE or using DBMS_SQL package. Try changing your CommandText like this,
    BEGIN
       EXECUTE IMMEDIATE 'ALTER TABLE SYSTEMUSER DISABLE CONSTRAINT FK_USER_CLIENT';
       EXECUTE IMMEDIATE 'ALTER TRIGGER SET_SUBSCRIPTION_SUB_I DISABLE';
    END;Hope this helps,
    [Nur Hidayat|http://nur-hidayat.net/]

  • Executing a DDL statement from java code

    Hi all,
    this is code from jdev11.1.1.3 version. I am trying to execute a DDL statement in oracle db from java code, but "ORA-00900: invalid SQL statement" error is coming.
    I am trying to create a table in same schema in same db by using 'Copy' command.
    Same DDL command is executing from sql command prompt & table is being created. Plz help me , as how to do from java?
            public String cmb_action() {
            // Add event code here...
            try {
                //getting source db connection
                InitialContext initialContext = new InitialContext();
                DataSource ds = (DataSource) initialContext.lookup("java:comp/env/jdbc/SourceConnDS");
                Connection sourceconn = ds.getConnection();
                sourceconn.setAutoCommit(false);
                String sql = "Copy from myschema/mypass@DB insert t_dept using select * from dept;"                       
                Statement stat = sourceconn.createStatement();
                stat.executeUpdate(sql);
                sourceconn.commit();
                System.out.println("done");
              catch (Exception ne) {
                // TODO: Add catch code
                ne.printStackTrace();
            return null;
        }

    I have a requirement to transfer data from one db to another db from Java Application Layer.Maybe, maye not. We get all sorts of weird "requirements" - which are nothing but thoughts or proposed solutions.
    But,
    Did the "requirement" mention whether the table existed already or not in the target database? - If not, did it tell you to create it - drop/create it?
    Did the "requirement" deliver some explanation to why this copying was neeeded? - Are we talking replication? - Or a one time cloning?
    Etc, etc,
    Personally I would always argue against a "reuirement" like that. - It just isn't the way to do it. Period.
    Regards
    Peter
    P.S: If you are satisfied with what COPY does, then you could let Java make an OS call and do it from there?

  • How do i get a output in CSV of a SQL query executed via SQL Command prompt

    Hi All,
    I have a question with reference to SQL command prompt. I have a sql query which runs properly and gives proper execution in SQL Management console in GUI.
    This report is used to pull the free disk space report of our servers
    As i want to schedule it as a report so i want to script it to run via SQL command prompt. I made the script and it works fine if i enter it in SQL command prompt. When i try to extract the output to a CSV File it fails. Below is the details of the command
    i am using to query to pull the data. Can anyone help me in getting the output of this query in SQL command prompt.
    sqlcmd -W -s , -S Servers FQDN
    use operationsmanager
    Go
    Query:"select Path, InstanceName, SampleValue 
    from PerformanceDataAllView pdv with (NOLOCK)
    inner join PerformanceCounterView pcv on pdv.performancesourceinternalid = pcv.performancesourceinternalid
    inner join BaseManagedEntity bme on pcv.ManagedEntityId = bme.BaseManagedEntityId
    where SampleValue < '20' and CounterName='% Free Space' and TimeSampled > '2014-08-06 11:00:00.00'
    order by countername, timesampled" -s "," -o "C:\DataSqlCmd.csv"
    Go
    When i enter the command without the quotes when the query is starting and ending and also without the output command (-s "," -o "C:\DataSqlCmd.csv") it is working and shows the output in the command prompt. Below is the screen shot for
    your reference.
    Due to security reasons i have to erase the server names:
    But when i add the line to extract the output ( -s "," -o "C:\DataSqlCmd.csv") It gives me this error:
    The exact command would be:
    sqlcmd -W -s , -S CINMLVSCOM01.e2klab.ge.com
    use operationsmanager
    Go
    "select Path, InstanceName, SampleValue 
    from PerformanceDataAllView pdv with (NOLOCK)
    inner join PerformanceCounterView pcv on pdv.performancesourceinternalid = pcv.performancesourceinternalid
    inner join BaseManagedEntity bme on pcv.ManagedEntityId = bme.BaseManagedEntityId
    where SampleValue < '20' and CounterName='% Free Space' and TimeSampled > '2014-08-06 11:00:00.00'
    order by countername, timesampled" -s "," -o "C:\DataSqlCmd.csv" -h-1
    Go
    saying the syntax is not correct or some thing as per the below screenshot.
    Can any one please help. Below is just the query whi i use to get the output in SQL management studio.
    Can any one make a command for the below quer so i can directly execute and test for getting the output.
    select Path, InstanceName, SampleValue 
    from PerformanceDataAllView pdv with (NOLOCK)
    inner join PerformanceCounterView pcv on pdv.performancesourceinternalid = pcv.performancesourceinternalid
    inner join BaseManagedEntity bme on pcv.ManagedEntityId = bme.BaseManagedEntityId
    where SampleValue < '20' and CounterName='% Free Space' and TimeSampled > '2014-08-06 11:00:00.00'
    order by countername, timesampled
    Gautam.75801

    Can you try the below query?
    select Path, InstanceName, SampleValue
    from PerformanceDataAllView pdv with (NOLOCK)
    inner join PerformanceCounterView pcv on pdv.performancesourceinternalid = pcv.performancesourceinternalid
    inner join BaseManagedEntity bme on pcv.ManagedEntityId = bme.BaseManagedEntityId
    where SampleValue < 20 and CounterName like '% Free Space' and TimeSampled > '2014-08-06 11:00:00.00'
    order by countername, timesampled
    -- replace the below query part in the below SQLCMD C:\>SQLCMD -S SERVERNAME -E -d operationsmanager -Q "select * from sys.databases ds with (nolock) where name='master'" -s "," -o "F:\PowerSQL\MyData.csv" -h -1
    SQLCMD -S SERVERNAME -E -d OperationsManager -Q "select Path, InstanceName, SampleValue
    from PerformanceDataAllView pdv with (NOLOCK)
    inner join PerformanceCounterView pcv on pdv.performancesourceinternalid = pcv.performancesourceinternalid
    inner join BaseManagedEntity bme on pcv.ManagedEntityId = bme.BaseManagedEntityId
    where SampleValue < '20' and CounterName='% Free Space' and TimeSampled > '2014-08-06 11:00:00.00'
    order by countername, timesampled" -s "," -o "c:\MyData.csv" -h -1
    Refer for the other ways 
    http://dba.stackexchange.com/questions/23566/writing-select-result-to-a-csv-file
    --Prashanth

  • Failed to execute the insert command

    I have a sign up training calendar that runs on sharepoint 2010, over the weekend i went to install the latest cumulative update http://support.microsoft.com/kb/2817552 and it seems to have broken the signup process. Whenever some goes to sign up for an
    event they see the following error what can i do to fix this?
    Error
    The data source control failed to execute the insert command. d8b915be-5355-4d63-97bb-c9cf3aacad75
    Web Parts Maintenance Page: If you have permission, you can use this page to temporarily close Web Parts or remove personal settings. For more information, contact your site administrator.
    Troubleshoot issues with Microsoft SharePoint Foundation.
    Correlation ID: d8b915be-5355-4d63-97bb-c9cf3aacad75
    the error occurs when someone tries to add an event in the calendar & this issues seems to be across the entire sharepoint 2010 foundation farm. How can i resolve this without rebuilding the farm?

    Hi, We are having the same issue. Did anyone get a solution for this? I tried following solution. 
    open
    the page with SPD and update this value.
    OLD: <SharePoint:SPDataSource
    runat="server" DataSourceMode="List"
    NEW: <SharePoint:SPDataSource
    runat="server" DataSourceMode="ListItem"
    That gives me "Access Denied" error.
    User has contribute permission
    for the list. 
    Any solution???

  • Stop session from commit whenever DDL command takes place

    After DDL command the session is commited, we know.
    But I don't want to let the session to commit.
    Pls reply immediately.

    You can move your ddl off to a procedure/function that has its own (autonomous) transaction. For example, I've hidden TRUNCATE commands from the calling transaction this way.
    Of course this should be a rare exception. In general you really don't want to be performing ddl in your code.
    Cheers,
    Scott

  • 특정 USER에서 DDL 등의 COMMAND 실행을 제한하는 방법 - DDL EVENT TRIGGER

    제품 : ORACLE SERVER
    작성날짜 :
    특정 USER에서 DDL 등의 COMMAND 실행을 제한하는 방법 - DDL EVENT TRIGGER
    =======================================================================
    Purpose
    User에 있는 table등에 DDL 문장이 실행되지 않도록 막고 싶은 경우가 있다.
    Oracle8.1.6 부터 사용가능한 system trigger에 의해 이런 기능을 구현해 보자.
    Explanation
    Oracle8.1.6 의 new feature인 DDL event trigger를 이용하여 특정 user에서
    특정 DDL(예를 들어 create, drop, truncate 등)이나 모든 DDL이 실행할 때
    에러를 발생시킨다거나 특정한 action을 하도록 설정할 수 있다.
    DML 의 경우는 기존의 trigger 대로 각 object에 대해 각각 생성하여야 한다.
    이 자료에서는 주로 DDL 이나 DML 이 실행될 때 에러를 발생하도록 하여 해당
    문장이 실행되지 않도록 하는 방법을 기술하였다.
    (system or ddl event trigger에 대한 다른 자료로 Bulletin 11903,11848 참고)
    DDL event trigger 를 이용하기 위해서는 $ORACLE_HOME/dbs/initSID.ora
    file에서 COMPATIBLE parameter의 값이 "8.1.6" 이상으로 설정되어 있어야 한다.
    DDL event trigger 는 각 DDL이 발생할 때에 실행되는 trigger로
    다음과 같은 시점에서 실행되도록 만들 수 있다.
    BEFORE ALTER, AFTER ALTER, BEFORE DROP, AFTER DROP,
    BEFORE ANALYZE, AFTER ANALYZE, BEFORE ASSOCIATE STATISTICS,
    AFTER ASSOCIATE STATISTICS, BEFORE AUDIT, AFTER AUDIT,
    BEFORE NOAUDIT, AFTER NOAUDIT, BEFORE COMMENT, AFTER COMMENT,
    BEFORE CREATE, AFTER CREATE, BEFORE DDL, AFTER DDL,
    BEFORE DISASSOCIATE STATISTICS, AFTER DISASSOCIATE STATISTICS,
    BEFORE GRANT, AFTER GRANT, BEFORE RENAME, AFTER RENAME,
    BEFORE REVOKE, AFTER REVOKE, BEFORE TRUNCATE, AFTER TRUNCATE
    Example
    * 아래의 trigger 를 system 등의 별도로 관리하는 dba user에서 생성한다.
    [예제1] EJ user에서 table과 index에 해당하는 DDL의 실행을 막는 경우
    $ sqlplus system/manager
    CREATE OR REPLACE TRIGGER ej_no_ddl
    before DDL ON ej.schema
    WHEN (ora_dict_obj_type = 'TABLE' or
    ora_dict_obj_type = 'INDEX')
    begin
    raise_application_error (-20101, 'Cannot execute any DDL !!');
    end;
    -> 위의 trigger는 ej user의 schema 에서 Table과 Index 에 대한 DDL이
    실행될 때 user-defined error ora-20101 이 발생하도록 한 것이다.
    [예제2] EJ user에서 실행되는 모든 DDL을 막는 경우
    $ sqlplus system/manager
    CREATE OR REPLACE TRIGGER ej_no_ddl
    before DDL ON ej.schema
    begin
    raise_application_error (-20101, 'Cannot execute any DDL !!');
    end;
    -> 위의 예제는 모든 DDL 이 실행될 때 에러를 발생시키게 된다.
    예제1과 2의 경우 EJ user에서 DDL 실행시 아래와 같은 에러가 발생한다.
    $ sqlplus ej/ej
    SQL> create table test ( a number );
    create table test ( a number )
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-20101: Cannot execute any DDL !!
    ORA-06512: at line 2
    SQL> drop table dept;
    drop table dept
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-20101: Cannot execute any DDL !!
    ORA-06512: at line 2
    [예제3] EJ user에서 실행되는 drop과 truncate 문장을 막는 경우
    $ sqlplus system/manager
    CREATE OR REPLACE TRIGGER ej_no_ddl
    before drop or truncate ON ej.schema
    begin
    raise_application_error (-20102, 'Cannot execute DROP or TRUNCATE !!');
    end;
    위와 같이 trigger를 생성한 경우 EJ user에서 table의 생성은 되지만 drop은 할 수
    없다.
    $ sqlplus ej/ej
    SQL> create table test2 ( a number );
    Table created.
    SQL> drop table test2;
    drop table test2
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-20102: Cannot execute DROP or TRUNCATE !!
    ORA-06512: at line 2
    [예제4] EJ user의 docu2 table에 대한 dml을 막는 경우
    $ sqlplus system/manager
    CREATE OR REPLACE TRIGGER ej_no_dml_docu2
    before insert or update or delete on ej.docu2
    begin
    raise_application_error (-20103, 'Cannot execute DML');
    end;
    $ sqlplus ej/ej
    SQL> delete from docu2 where docu_id=2;
    delete from docu2 where docu_id=2
    ERROR at line 1:
    ORA-20103: Cannot execute DML
    ORA-06512: at "SYSTEM.EJ_NO_DML_DOCU2", line 2
    ORA-04088: error during execution of trigger 'SYSTEM.EJ_NO_DML_DOCU2'
    * table의 작업을 위해 일시적으로 trigger의 기능을
    disable 또는 enable시킬 수 있다.
    $ sqlplus system/manager
    SQL> alter trigger ej_no_ddl disable;
    or
    SQL> alter trigger ej_no_ddl enable;

  • Executing a shell command within vi using aliases

    The behavior of the ksh ENV environment variable has been changed in Solaris 10 and I assume it is related to the reason why I can no longer use aliases when using the "bang" (!) command execution in vi. For a very simple example, if ll were an alias for ls -lFbo entering this in vi:
       :!llwould produce the expected "ls -l" listing of the current directory in previous Solaris versions. Why does this not work in Solaris 10 and is there an alternate way to accomplish the same thing?

    I don't know exactly but the code written below is working fine try the same with your code .Even with your code instead running the code with
    " ./<filename> ",if you execute it with "sh <filename>" command without changing the mode of the file it is executing properly.
    import java.io.*;
    import java.util.*;
    public class ScriptBuilder
    public ScriptBuilder()
    public void writeScript() throws java.io.IOException
    FileWriter writer = new FileWriter(new File("test_script"));
    writer.write("#! /bin/sh\n");
    writer.write("ll>/home/faiyaz/javaprac/checkll");
    writer.flush();
    writer.close();
    Runtime rt= Runtime.getRuntime();
    rt.exec("chmod 777 test_script");
    rt.exec("./test_script");
    } public static void main (String[] args)throws java.io.IOException
    ScriptBuilder sb = new ScriptBuilder();
    sb.writeScript();
    }

  • No DDL commands found for activation of YCO_REPALVCOLOR

    Hi Gurus,
    we had a problem with one transport request which got successfully in Dev but failed in QUA environment.
    Transport needs to create a table in Qua env, but it is comleted successfully with RC=0. but error found in "Import steps not specific to transport request".
    Activate inactive runtime objects        12.07.2011 17:35:38    (8) Ended with errors
    ABAP Dictionary Distribution             12.07.2011 17:42:04    (0) Successfully Completed
    17:35:26: Retcode 1: error in DDL statement for YCO_REPALVCOLOR                - repeat
    Error 604-ORA-00604: error occurred at recursive SQL lev when executing ADD-FIELD of
    Error  in DDL statem when executing ADD-FIELD of
    Error YCO_REPALVCOLOR when executing ADD-FIELD of
            (dummy, do not translate)
    No DDL commands found for activation of YCO_REPALVCOLOR
    Could you please help me.
    Regards
    Sudhar

    Hi
    here is Import log
    Main import
    Transport request   : D<SID>K907261
    System              : Q<SID>
    tp path             : tp
    Version and release: 340.16.63 640
    R3trans version 6.13 (release 640 - 17.02.10 - 13:07:00).
    unicode enabled version
    ===============================================
    date&time   : 12.07.2011 - 17:35:41
    control file: /usr/sap/trans/tmp/D<SID>KK907261.Q<SID>
    > #pid 2461838 on parva1102546 (Q<SID>adm)
    > import
    > buffersync=yes
    > file='/usr/sap/trans/data/R907261.D<SID>'
    > continuation='/usr/sap/trans/data/R907261_#.D<SID>'
    > client=510
    > csi=yes
    > setunicodeflag yes
    >
    > excluding 'R3TRDDDD','R3TRDOMA','R3TRDTEL','R3TRENQU','R3TRMACO','R3TRMCID','R3TRMCOB','R3TRSHLP','R3TRSQLT','R3TRTABL','R3TRTTYP
    R3trans was called as follows: R3trans -w /usr/sap/trans/tmp/D<SID>I907261.Q<SID> /usr/sap/trans/tmp/D<SID>KK907261.Q<SID>
    Connected to DBMS = ORACLE     dbs_ora_tnsname = 'Q<SID>'     SYSTEM = 'Q<SID>'.
    0 0
    COMMIT (0).
    trace at level 1 opened for a given file pointer
    ================== STEP 1 =====================
    date&time   : 12.07.2011 - 17:35:41
    function    : IMPORT
    data file   : /usr/sap/trans/data/R907261.D<SID>
    Continuation: /usr/sap/trans/data/R907261_#.D<SID>
    buffersync  : YES
    client      : 510
    repeatimport: NO
    repeatclimp.: NO
    c.s.i.      : YES
    setunicdflg: YES
    l.s.m.      : VECTOR
    charsetadapt: YES
    def. charset: WEUROPEAN
    commit      : 100000
    table cache : 32000000
    EXCLUDING   : 'R3TRVIEW','R3TRUENO','R3TRTTYP','R3TRTABL','R3TRSQLT','R3TRSHLP','R3TRMCOB','R3TRMCID','R3TRMACO','R3TRENQU','R3TRDT
    Data file is compressed with algorithm 'L'.
    Export was executed on 12.07.2011 at 17:14:59 by D<SID>adm
    640
      with R3trans version: 17.02.10 - 13:07:00
    Source System = IBM RS/6000 with AIX on DBMS = ORACLE     dbs_ora_tnsname = 'D<SID>'     SYSTEM = 'D<SID>'.
    language vector during export: ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdi(),./:;
    language vector during export: ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdi(),./:;& (ISO-ARHECSDEENFRELHUITJADAPLZFNLNOPTSKRUESTRFISVB
    lsm during export: VECTOR
    trfunction = K (transport to consolidation system)
    Used Commandfile D<SID>K907261           (535646/3)
    2 E071C entries created
    Target client in E070C updated (510)
      0 entries for E070 imported (D<SID>K907261).
      0 entries for E071 imported (D<SID>K907261          *).
    R3TRDTELYY_LINEID was not imported in this step
    R3TRTABLYCO_REPALVCOLOR was not imported in this step
    D<SID>K907261           touched.
    636 636
    COMMIT (6559).
    6559 bytes read.
    Transport overhead 40.1 %.
    Data compressed to 9.8 %.
    Duration: 0 sec (6559 bytes/sec).
    0 0
    Summary:
    636 bytes modified in database.
    [dev trc     ,00000]  Disconnecting from ALL connections:                26787  0.026787
    [dev trc     ,00000]  Disconnecting from connection 0 ...                   70  0.026857
    [dev trc     ,00000]  Close user session (con_hdl=0,svchp=0x111415838,usrhp=0x111475f40)
                                                                                501  0.027358
    [dev trc     ,00000]  Detaching from DB Server (con_hdl=0,svchp=0x111415838,srvhp=0x111416718)
                                                                                623  0.027981
    [dev trc     ,00000]  Now connection 0 is disconnected                     264  0.028245
    [dev trc     ,00000]  Disconnected from connection 0                        58  0.028303
    [dev trc     ,00000]  statistics db_con_commit (com_total=2, com_tx=2)
                                                                                  67  0.028370
      [dev trc     ,00000]  statistics db_con_rollback (roll_total=0, roll_tx=0)
                                                                                 144  0.028514
    Disconnected from database.
    End of Transport (0000).
    date&time: 12.07.2011 - 17:35:41
    Main import
    End date and time : 20110712173541
    Ended with return code:  ===> 0 <===

Maybe you are looking for

  • Goods Receipt Report With 101 movement type using bapi_goodsmvt_create

    Dear Abapers,         i am getting some problem, i got requirement like Goods Receipt Report with 101 movement type using bapi_goodsmvt_create and data should upload through excel sheet. still facing problems, i have searched sdn forum n sdn code als

  • Closing sales orders

    hello, friends. what are the ways that we can prevent changes or additions to the sales order once this has been completed? regards and thanks.

  • On button rollover Dynamic text and Movieclip appear

    Hi guys, I've got an issue - When one of my buttons is rolled over, I want text and a movieclip to appear. When the button is no longer rolled over, I want the text and movieclip to disappear. The way that I was going to do this was to have anchor_mc

  • Documentation Template for WD project

    Hi Experts, Do someone has template for documenting a Dynpro project. We have to document our WD application. Please provide some templates with example you use for documenting your project. Regards, Vishal.

  • Infomration About SAP Netweawer CE 7.1

    I am going to install SAP Netweawer CE 7.1,But this requirement is to intall SAP Netweawer CE 7.1 with SP 8. I have checked in Service market place there we can find only CE 7.1 with SP 5 guides not CE 7.1 with SP8. My question is that do i need to i