EXECUTE IMMEDUATE giving error

i have following query
declare
CURSOR C2 IS SELECT * FROM DEBA_TABLE WHERE OPERATION_TYEP='D'
order by TABLE_ORDER;
begin
FOR TREC IN C2 LOOP
query_del := 'CREATE TABLE '||trec.backup_table||' as select * from '||trec.t_name||' where 1=2';
     execute immediate query_del;
end;
this procedure compiled OK
but when I try to execute this procedure then then following error has come.
table creation privilage is there with this user
SQL> exec county_id_data_DELETION
BEGIN county_id_data_DELETION; END;
ERROR at line 1:
ORA-01031: insufficient privileges
ORA-06512: at "NTCINTERNALSYS.COUNTY_ID_DATA_DELETION", line 17
ORA-06512: at line 1
please help in advance

Then why not
Create table TABLE_NAME as select * from EXISTING_TABLE where CONDITIONS;
One step instead of creating the table and then populating it....

Similar Messages

  • When we execute Package it is giving Error..!

    Hi,
    I want to know how to email through SQL*Plus in Oracle 10g. I found some packages from oracle site, but it is for only 8i. Then also i tryed to executed that package, but it is giving error as follows:
    SQL> Execute demo_mail.mail('[email protected]','[email protected]','test subject','
    test message');
    BEGIN demo_mail.mail('[email protected]','[email protected]','test subject','test me
    ERROR at line 1:
    ORA-29278: SMTP transient error: 421 Service not available
    ORA-06512: at "SYS.UTL_SMTP", line 21
    ORA-06512: at "SYS.UTL_SMTP", line 97
    ORA-06512: at "SYS.UTL_SMTP", line 139
    ORA-06512: at "RAVI.DEMO_MAIL", line 240
    ORA-06512: at "RAVI.DEMO_MAIL", line 118
    ORA-06512: at "RAVI.DEMO_MAIL", line 104
    ORA-06512: at line 1
    Is there any way to solve this error. Why this error is coming. Through this site i got this:
    http://www.oracle.com/technology/sample_code/tech/pl_sql/htdocs/Utl_Smtp_Sample.html
    For oracle 10g, we can use this package or any other packages to run this in Oracle 10g.
    Can any one suggest me...!
    Thank u..!
    Ravi

    Hi,
    Thank u for u r reply. In my system IIS is already installed
    In Add or Remove Programs->Add/Remove Wndows Components
    Checked the IIS check box.
    In Internet Information Service (IIS) option and clicked on Details button
    The SMTP Service is checked.
    And i am executing this package in client machine. I am using Oracle 10g. What more required for this to run this.
    Thank u..!
    Ravi

  • Top N query giving error for oracle 8.0.6

    Dear All,
    We are executing this query SELECT XBLNR, WERKS, MATNR, MDV01, BACKFLQUANT, STATUS, SAPTIMESTAMP, PITSTIMESTAMP, PMTIMESTAMP, BATCH FROM (SELECT XBLNR, WERKS, MATNR, MDV01, BACKFLQUANT, STATUS, SAPTIMESTAMP, PITSTIMESTAMP, PMTIMESTAMP, BATCH FROM PMBPITS.PITS_UNITY WHERE STATUS = '01' ORDER BY PMTIMESTAMP) WHERE ROWNUM < 20
    on oracle 8.0.6 but this is giving the following error
    ora - 00907 missing right parenthesis error
    1. Is it that in the inner select we cannot use order by and where clause together.
    2. We also found that if we remove order by from inner select then the query is not giving error
    pls help . points will be awarded

    Hi,
    what ever the Aman said is correct. You check this is supported in 8.1.5, SQL allows you to embed the ORDER BY clause in a subquery and place the ROWNUM condition in the top-level query;
    'Top-N query' is a ORACLE 8i feature which is supported in SQL. However,
    Bug:855720 states the following:
    "PL/SQL does not support top-N queries (ORDER BY in SUBSELECT/SUBQUERY
    or VIEW. Since this feature is available in SQL, but not in PL/SQL,
    it has been logged as a Bug that will be fixed in 8.1.6."
    - Pavan Kumar N

  • Giving error message when saving the Query

    Hello,
    I have added a new calculated key figure to the structure in a Query but when I try to save the Query it is giving error message is below.
    Error Message:
    u201CThis internal error is an intended termination resulting from a program state that is not permitted.
    Procedure
    Analyze the situation and inform SAP.
    If the termination occurred when you executed a query or Web template, or during interaction in the planning modeler, and if you can reproduce this termination, record a trace (transaction RSTT).
    For more information about recording a trace, see the documentation for the trace tool environment as well as SAP Note 899572u201D.
    Could any one please suggest me how can I over come with this problem.
    Thanks
    Prathap.

    Hi Prathap,
    There is some problem in the definition of the Query.
    Please click on the check button before saving the query, it gives where the problem exists in it.
    Hope it helps.
    Veeerendra.

  • StartJAVA was executed with status ERROR

    Hi People.
    I am installing SAP Netweaver 7.0 SR3 AS JAVA, in Linux RH5 with Oracle 10 and JAVA 1.4.2 IBM.
    The problem in the installation is when I tried to install the CI. The installation fail when tried to start de JAVA VM.
    The LOG DEV_DISPATCHER is:
    [Thr 1123465536] Wed Nov 11 12:08:32 2009
    [Thr 1123465536] JLaunchISetState: change state from [Starting (2)] to [Stopped (6)]
    </verbosegc>
    [Thr 1111980352] JLaunchIExitJava: exit hook is called (rc = 0)
    [Thr 1111980352] SigISetIgnoreAction : SIG_IGN for signal 17
    [Thr 1111980352] JLaunchCloseProgram: good bye (exitcode = 0)
    DEV_SERVER0:
    JHVM_BuildArgumentList: main method arguments of node [server0]
    [Thr 1081338176] Wed Nov 11 12:08:30 2009
    [Thr 1081338176] JLaunchRequestFunc: receive command:17, argument:0 from pid:30225
    [Thr 1081338176] JLaunchIShutdownInvoke: set shutdown interval (stop:1257952110/end:1257952230/TO:120)
    [Thr 1081338176] JLaunchProcessCommand: Invoke VM Shutdown
    [Thr 1081338176] JHVM_FrameworkShutdownDirect: invoke direct shutdown
    </verbosegc>
    [Thr 1108367680] JLaunchIExitJava: exit hook is called (rc = 999)
    [Thr 1108367680] **********************************************************************
    ERROR => The Java VM terminated with a non-zero exit code.
    Please see SAP Note 943602 , section 'J2EE Engine exit codes'
    for additional information and trouble shooting.
    [Thr 1108367680] SigISetIgnoreAction : SIG_IGN for signal 17
    [Thr 1108367680] JLaunchCloseProgram: good bye (exitcode = 999)
    And the log of Installation is:
    TRACE      2009-11-11 12:08:12.823 [syuxctask.cpp:1382]
               CSyTaskImpl::start(bool)
    A child process has been started. Pid = 4037
    ERROR      2009-11-11 12:08:13.873 [sixxcstepexecute.cpp:951]
    FCO-00011  The step startJava with step key |NW_Java_CI|ind|ind|ind|ind|0|0|NW_CI_Instance|ind|ind|ind|ind|12|0|NW_CI_Instance_StartJava|ind|ind|ind|ind|5|0|startJava was executed with status ERROR .
    Somebody Help me?
    Thanks...

    Hi.
    The sapinst.log is:
    INFO 2009-11-11 17:29:49.025
    State of instance EPP/JC01 changed from Java: (dispatcher: STARTING, server0: STARTING) to Java: (dispatcher: STARTING, server0: STARTING).
    ERROR 2009-11-11 17:29:49.027
    CJS-30153  Java process dispatcher of instance EPP/JC01 reached state UNKNOWN after having state STARTING. Giving up.
    ERROR 2009-11-11 17:29:49.755
    FCO-00011  The step startJava with step key |NW_Java_CI|ind|ind|ind|ind|0|0|NW_CI_Instance|ind|ind|ind|ind|12|0|NW_CI_Instance_StartJava|ind|ind|ind|ind|5|0|startJava was executed with status ERROR ( Last error reported by the step :Java process dispatcher of instance EPP/JC01 reached state UNKNOWN after having state STARTING. Giving up.).
    Tha sapinst_dev.log is:
    TRACE      2009-11-11 17:29:49.027
    Function setMessageIdOfExceptionMessage: nw.progress.startupProcessFailed
    ERROR      2009-11-11 17:29:49.027
               CJSlibModule::writeError_impl()
    CJS-30153  Java process dispatcher of instance EPP/JC01 reached state UNKNOWN after having state STARTING. Giving up.
    TRACE      2009-11-11 17:29:49.28 [iaxxejsbas.hpp:483]
               EJS_Base::dispatchFunctionCall()
    JS Callback has thrown unknown exception. Rethrowing.
    TRACE      2009-11-11 17:29:49.142 [syuxctask.cpp:1382]
               CSyTaskImpl::start(bool)
    A child process has been started. Pid = 25736
    TRACE      2009-11-11 17:29:49.265 [syuxctask.cpp:1382]
               CSyTaskImpl::start(bool)
    A child process has been started. Pid = 25737
    ERROR      2009-11-11 17:29:49.755 [sixxcstepexecute.cpp:951]
    FCO-00011  The step startJava with step key |NW_Java_CI|ind|ind|ind|ind|0|0|NW_CI_Instance|ind|ind|ind|ind|12|0|NW_CI_Instance_StartJava|ind|ind|ind|ind|5|0|startJava was executed with status ERROR ( Last error reported by the step :Java process dispatcher of instance EPP/JC01 reached state UNKNOWN after having state STARTING. Giving up.).
    TRACE      2009-11-11 17:29:49.767 [iaxxgenimp.cpp:752]
                CGuiEngineImp::showMessageBox
    TRACE      2009-11-11 17:29:49.767 [iaxxgenimp.cpp:1255]
               CGuiEngineImp::acceptAnswerForBlockingRequest
    Waiting for an answer from GUI
    The others logs are attached in the first Post.
    The phase of the error is in StartUP Java VM, before of the installation of Java Components.
    Thanks a lot.
    Edited by: Esteban Gutierrez E. on Nov 12, 2009 1:38 PM

  • Procedure giving error with collections

    H, i wrote a procedure in which i am using collections to out a some data.Its giving error. Below is format of procedure:
    Create or replace procabc(a in type_a, b in number, c out type_b)
    begin
    for i in 1....a.count loop
    for j in (select num from abc) loop
    if (num = 'condition1') then
    c(i) := num;
    elsif (num = 'condition2') then
    c(i) := num;
    elsif (num = 'condition3') then
    c(i) := num;
    else
    dbms_output.put_line('not matching');
    end if;
    end loop;
    end loop;
    end;
    In above code input a and output c are type which i had created.
    how to out my values in out parameter c...its executing ..i am getting print but its not storing in out parameter c which is type. what i need to do..even i had initialised the collection also tried c.event before storing..still wont work..can anyone help me???

    Megha Verma wrote:
    version is oracle 10g...i dont want to use cursors....You already are.
    for j in (select num from abc) loop
    1 loop is there because i am passing a array as input and i need all values from query whose output depends on that.You're passing an array, but you aren't using it anywhere!!!
    for i in 1....a.count loopa is not referenced in any subsequent code.
    second loop is to execute the query and get the data and store it in a collection. and return it to ut parameter...what i need to add values to my collection....Yes, and it's extremely inefficient (if it's even correct, seeing my previous comment about not using the collection you pass in anywhere).
    >
    c is out parameter and is a type(i had created).
    simply i want to know how to add values to it while i get my data when loop executes....it prints my valus...just tell how to add it to collections and return it as out parameter.Sadly it's not that simple. Simple to correct technically yes, but your entire process seems to be flawed so i really think you should revisit that. Or post sufficient information to have us help you in an actually helpful manner.

  • Query Saving takes long time and giving error

    Hi Gurus,
    I am creating one query that have lot of calculations (CKF & RKF).
    When I am trying to save this query it is taking long time and it is giving error like RFC_ERROR_SYSTEM_FAILURE, Query Designer must be restarted, further work not possible.
    Please give me the solution for this.
    Thanks,
    RChowdary

    Hi Chowdary,
    Check the following note: 316470.
    https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=316470
    The note details are:
    Symptom
    There are no authorizations to change roles. Consequently, the system displays no roles when you save workbooks in the BEx Analyzer. In the BEx browser, you cannot move or change workbooks, documents, folders and so on.
    Other terms
    BW 2.0B, 2.0A, 20A, 20B, frontend, error 172, Business Explorer,
    RFC_ERROR_SYSTEM_FAILURE, NOT_AUTHORIZED, S_USER_TCD, RAISE_EXCEPTION,
    LPRGN_STRUCTUREU04, SAPLPRGN_STRUCTURE, PRGN_STRU_SAVE_NODES
    Reason and Prerequisites
    The authorizations below are not assigned to the user.
    Solution
    Assign authorization for roles
    To assign authorizations for a role, execute the following steps:
    1. Start Transaction Role maintenance (PFCG)
    2. Select a role
    3. Choose the "Change" switch
    4. Choose tab title "Authorizations"
    5. Choose the "Change authorization data" switch
    6. Choose "+ Manually" switch
    7. Enter "S_USER_AGR" as "Authorization object"
    8. Expand "Basis: Administration"/"Authorization: Role check""
    9. From "Activity" select "Create or generate" and others like "Display" or "Change"
    10. Under "Role Name", enter all roles that are supposed to be shown or changed. Enter "*" for all roles.
    11. You can re-enter authorization object "S_USER_AGR" for other activities.
    Assign authorization for transactions
    If a user is granted the authorization for changing a role, he/she should also be granted the authorization for all transactions contained in the role. Add these transaction codes to authorization object S_USER_TCD.
    1. Start the role maintenance transaction (PFCG).
    2. Select a role.
    3. Click on "Change".
    4. Choose the "Authorizations" tab.
    5. Click on "Change authorization data".
    6. Click on "+ manually".
    7. Specify "S_USER_TCD" as "Authorization object".
    8. Expand "Basis - Administration"/"Authorizations: Transactions in Roles".
    9. Under "Transaction", choose at least "RRMX" (for BW reports), "SAP_BW_TEMPLATE" (for BW Web Templates), "SAP_BW_QUERY" (for BW Queries and/or "SAP_BW_CRYSTAL" (for Crystal reports) or "*". Values with "SAP_BW_..." are not transactions, they are special node types (see transaction code NODE_TYPE_DEFINITION).
    Using the SAP System Trace (Transaction ST01), you can identify the transaction that causes NOT_AUTHORIZED.
    Prevent user assignment
    Having the authorization for changing roles, the user is not only able to change the menu but also to assign users. If you want to prevent the latter, the user must loose the authorization for Transactions User Maintenance (SU01) and Role maintenance (PFCG).
    Z1>Note
    Refer to Note 197601, which provides information on the different display of BEx Browser, BEx Analyzer and Easy Access menu.
    Please refer to Note 373979 about authorizations to save workbooks.
    Check in the transaction ST22 for more details on the Query designer failure or query log file.
    With Regards,
    Ravi Kanth.
    Edited by: Ravi kanth on Apr 9, 2009 6:02 PM

  • 75% of overhead to be loaded on WIP. System giving error: Msg No. KJ333

    Hello Experts,
    We are executing WIP (TCode: KKAX). We have load only 75% of the overhead. Hence for this, we have maintained 3 things ReqToCap - OVH,
    OptToCap - OVH and % OvhToCap as 75%.
    However, system is giving error. Refer Screenshot KKAX Error - 1. Refer my setting Screenshot - KKAX Config1
    Since it was multiple assignment error, I tried removing "ReqToCap" It gave me other error. Refer Screenshot KKAX Config2
    Please help me, how to achieve this requirement.
    Deepak

    Dear Deepak
    Your OKGB screen should look like this:
    Kindly update, after changes did it wok or not.
    Regards
    Rajneesh Saxena

  • PL/SQL Block working fine but same code procedure is giving error.

    Hi Experts,
    I am executing  procedure getting error ORA-27486: insufficient privileges
    If It's PL/SQL block it's creating job classes.
    Both the cases same user.
    CREATE OR REPLACE PROCEDURE JOB_CLASS_PROC
    AS
       V_SQL   VARCHAR2 (4000);
       V_JOB_STEP VARCHAR2 (50);
    BEGIN
    -- Create Job Class if not exist
       BEGIN
       FOR i
          IN (SELECT SNS.OWNER_NAME OWNER_NAME,
                     VDB.NAME
                        SNAME
                FROM SCHEMA_NAMES SNS,
                     V$DATABASE VDB
               WHERE OWNER_NAME NOT IN ('')
                AND (OWNER_NAME || '_JOB_CLASS')
                     NOT IN
                    (SELECT JOB_CLASS_NAME FROM DBA_SCHEDULER_JOB_CLASSES))
       LOOP
          V_SQL :=
                'BEGIN
                  DBMS_SCHEDULER.CREATE_JOB_CLASS
                   job_class_name => ''' || i.owner_name || '_JOB_CLASS'',
                   service           => ''' || i.SNAME || ''',
                   comments       => ''Job class for ' || i.owner_name || '''
                EXCEPTION
                 WHEN OTHERS THEN
                  RAISE;                 
                END;';
          EXECUTE IMMEDIATE V_SQL;
       END LOOP;
    END;
    EXCEPTION
       WHEN OTHERS
       THEN
       RAISE_APPLICATION_ERROR(-20001, V_JOB_STEP||' SQLERRM: ' || SQLERRM || ' SQLCODE: '|| SQLCODE);
    END JOB_CLASS_PROC;
    DECLARE
       V_SQL   VARCHAR2 (4000);
       V_JOB_STEP VARCHAR2 (50);
    BEGIN
    -- Create Job Class if not exist
       BEGIN
       FOR i
          IN (SELECT SNS.OWNER_NAME OWNER_NAME,
                     VDB.NAME
                        SNAME
                FROM SCHEMA_NAMES SNS,
                     V$DATABASE VDB
               WHERE OWNER_NAME NOT IN ('')
                AND (OWNER_NAME || '_JOB_CLASS')
                     NOT IN
                    (SELECT JOB_CLASS_NAME FROM DBA_SCHEDULER_JOB_CLASSES))
       LOOP
          V_SQL :=
                'BEGIN
                  DBMS_SCHEDULER.CREATE_JOB_CLASS
                   job_class_name => ''' || i.owner_name || '_JOB_CLASS'',
                   service           => ''' || i.SNAME || ''',
                   comments       => ''Job class for ' || i.owner_name || '''
                EXCEPTION
                 WHEN OTHERS THEN
                  RAISE;                 
                END;';
          EXECUTE IMMEDIATE V_SQL;
       END LOOP;
    END;
    EXCEPTION
       WHEN OTHERS
       THEN
       RAISE_APPLICATION_ERROR(-20001, V_JOB_STEP||' SQLERRM: ' || SQLERRM || ' SQLCODE: '|| SQLCODE);
    END;
    Why for same code procedure is giving error.
    Please help me.
    Thanks.

    Hi,
    Then with the same grants how the below script is working.
    If I put the below same script in Procedure it's not working.
    DECLARE
       V_SQL   VARCHAR2 (4000);
       V_JOB_STEP VARCHAR2 (50);
    BEGIN
    -- Create Job Class if not exist
       BEGIN
       FOR i
          IN (SELECT SNS.OWNER_NAME OWNER_NAME,
                     VDB.NAME
                        SNAME
                FROM SCHEMA_NAMES SNS,
                     V$DATABASE VDB
               WHERE OWNER_NAME NOT IN ('')
                AND (OWNER_NAME || '_JOB_CLASS')
                     NOT IN
                    (SELECT JOB_CLASS_NAME FROM DBA_SCHEDULER_JOB_CLASSES))
       LOOP
          V_SQL :=
                'BEGIN
                  DBMS_SCHEDULER.CREATE_JOB_CLASS
                   job_class_name => ''' || i.owner_name || '_JOB_CLASS'',
                   service           => ''' || i.SNAME || ''',
                   comments       => ''Job class for ' || i.owner_name || '''
                EXCEPTION
                 WHEN OTHERS THEN
                  RAISE;               
                END;';
          EXECUTE IMMEDIATE V_SQL;
       END LOOP;
    END;
    EXCEPTION
       WHEN OTHERS
       THEN
       RAISE_APPLICATION_ERROR(-20001, V_JOB_STEP||' SQLERRM: ' || SQLERRM || ' SQLCODE: '|| SQLCODE);
    END;
    Please help me.
    Thanks.

  • Giving error

    GO
    SET
    ANSI_NULLS
    ON
    GO
    SET
    QUOTED_IDENTIFIER
    ON
    GO
    ALTER
      PROCEDURE [dbo].[SearchSubsubCategory]
    @Category1
    nvarchar(50),
    @SubCategory1
    nvarchar(50),
    @SubSubCategory1
    nvarchar(50),
    @Sort
    nvarchar(100),
    @SortDirection
    nvarchar(100)
    AS
    BEGIN
    SET
    NOCOUNT
    ON;
    DECLARE
    @strSQL nvarchar(3000)
    set
    @strSQL =
    'SELECT a.Id,dbo.GetCategoryName(a.Category) as Category,dbo.GetSubCategoryName(a.SubCategory) as SubCategory,dbo.GetSubSubCategoryName(a.SubSubCategory) as SubSubCategory,a.Product,a.Description,a.Thumbnail,a.Image1,a.Image2,a.Image3,a.Image4,a.Image5,a.Image6,a.Image7,a.Image8,a.Publish,a.New 
    from tbl_product a inner join tbl_category b on a.Category=b.id inner join tbl_subcategory c on a.SubCategory=c.id inner join tbl_sub_subcategory d on a.SubSubCategory=d.id WHERE a.Publish = 1 and b.CategoryName like '%'
    + @Category1 + '%' and c.SubCategoryName
    like '%' + @SubCategory1 + '%'
    and d.SubSubCategory like '%' + @SubSubCategory1
    + '%'  ORDER BY ' 
    + @Sort
    +
    + @SortDirection
    EXECUTE
    sp_executesql 
    @strSQL
    END
    giving error
    The data types varchar and varchar are incompatible in the modulo operator.
    Sms

    You're just missing few single quotes
    make it like below and it will work
    set
    @strSQL = 'SELECT a.Id,dbo.GetCategoryName(a.Category) as Category,dbo.GetSubCategoryName(a.SubCategory) as SubCategory,dbo.GetSubSubCategoryName(a.SubSubCategory) as SubSubCategory,a.Product,a.Description,a.Thumbnail,a.Image1,a.Image2,a.Image3,a.Image4,a.Image5,a.Image6,a.Image7,a.Image8,a.Publish,a.New from tbl_product a inner join tbl_category b on a.Category=b.id inner join tbl_subcategory c on a.SubCategory=c.id inner join tbl_sub_subcategory d on a.SubSubCategory=d.id WHERE a.Publish = 1 and b.CategoryName like ''%'' + @Category1 + ''%'' and c.SubCategoryName like ''%'' + @SubCategory1 + ''%'' and d.SubSubCategory like ''%'' + @SubSubCategory1 + ''%'' ORDER BY ' + @Sort + ' ' + @SortDirection
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • CRX operations giving error when invoking from Form

    Hi All,
    I am facing a weird problem while invoking CRX operations from the form.
    I have a submit button on the form where on clicking that button I am calling a LiveCycle process. The LiveCycle process which I am calling contains CRX opeartions like CreateFolder and StoreContent. I have a string variable that is the input to this process and the issue is that when I am calling this process from the form I am getting a error saying "Unable to locate [/]". But if i call the process by giving the input string within the workbench then the process is getting executed without any error.
    I am not able to figure the reason behind this since I am giving the same input to the process from the form and within the workbench.
    Could anyone please let me know if you have any inputs on this?
    Thanks,
    Balaji

    Hi Wasil,
    Thanks for your response.
    I have checked in the form and the URL that is pointing to is correct. I am able to call the process from the form, only when executing the CRX operation I am getting the error. I have other few operations in the same process which are getting executed without any issues. Let me know your inputs on this.
    Thanks,
    Balaji

  • ODISqlUnload giving Error

    I am using ODISqlUnload for unloading data to text file using following command.
    OdiSqlUnload -FILE=D:\SAP\Filename.txt -DRIVER=<%=odiRef.getInfo("SRC_JAVA_DRIVER")%> "-URL=<%=odiRef.getInfo("SRC_JAVA_URL")%>" "-USER=<%=odiRef.getInfo("SRC_USER_NAME")%>" "-PASS=<%=odiRef.getInfo("SRC_ENCODED_PASS")%>" "-FILE_FORMAT=FIXED" "-ROW_SEP=\r\n" "-DATE_FORMAT=yyyy/MM/dd HH:mm:ss" "-CHARSET_ENCODING=ISO8859_1" "-XML_CHARSET_ENCODING=ISO-8859-1"
    "-QUERY=select 'FAILURE',nvl(substr(substr( PACKAGE_NAME||',', 1, instr(PACKAGE_NAME,',')-1 ),7),'Error Due to missing scenario or Any other unlogged error') ,to_char(sysdate,'DD-mm-yyyy HH24:MI:SS') from error_messages"
    But it is giving strange error. as
    java.lang.IllegalArgumentException: Could not load JDBC driver class []
         at oracle.odi.jdbc.datasource.DriverManagerDataSource.setDriverClassName(DriverManagerDataSource.java:159)
         at oracle.odi.jdbc.datasource.DriverManagerDataSource.<init>(DriverManagerDataSource.java:92)
         at com.sunopsis.dwg.tools.SqlUnload.actionExecute(SqlUnload.java:298)
         at com.sunopsis.dwg.function.SnpsFunctionBase.execute(SnpsFunctionBase.java:273)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execIntegratedFunction(SnpSessTaskSql.java:3185)
    But at the same time i am using same command in another procedure as
    OdiSqlUnload -FILE=D:\SAP\RBSIT_#SAP_Filename.txt -DRIVER=<%=odiRef.getInfo("SRC_JAVA_DRIVER")%> "-URL=<%=odiRef.getInfo("SRC_JAVA_URL")%>" "-USER=<%=odiRef.getInfo("SRC_USER_NAME")%>" "-PASS=<%=odiRef.getInfo("SRC_ENCODED_PASS")%>" "-FILE_FORMAT=FIXED" "-ROW_SEP=\r\n" "-DATE_FORMAT=yyyy/MM/dd HH:mm:ss" "-CHARSET_ENCODING=ISO8859_1" "-XML_CHARSET_ENCODING=ISO-8859-1"
    SELECT * FROM ompodi.start_record
    which is running fine.
    Why this would be occurring??
    Help appreciated.
    Edited by: MaheshGx on Feb 23, 2012 1:51 PM

    IT WAS GIVING ERROR BECAUSE IN SOURCE COMMAND I HAVENT SPECIFIED SOURCE TECNHOLOGY AND LOGICAL SCHEMA.
    ALSO IN ABOVE COMMAND THERE IS NO NEED TO WRITE QUERY WORD EXPLICITELY.
    SO IT SHOULD BE AS
    OdiSqlUnload -FILE=D:\Patrol\kaname2alert.txt -DRIVER=<%=odiRef.getInfo("SRC_JAVA_DRIVER")%> "-URL=<%=odiRef.getInfo("SRC_JAVA_URL")%>" "-USER=<%=odiRef.getInfo("SRC_USER_NAME")%>" "-PASS=<%=odiRef.getInfo("SRC_ENCODED_PASS")%>" "-FILE_FORMAT=FIXED" "-ROW_SEP=\r\n" "-DATE_FORMAT=yyyy/MM/dd HH:mm:ss" "-CHARSET_ENCODING=ISO8859_1" "-XML_CHARSET_ENCODING=ISO-8859-1"
    select 'FAILURE ',trim(nvl(substr(substr( PACKAGE_NAME||',', 1, instr(PACKAGE_NAME,',')-1 ),7),'Error Due to missing scenario or Any other unlogged error')) Package_Name,to_char(FAILURE_TIMESTAMP,'DD-mm-yyyy HH24:MI:SS') Execution_Time from <%=odiRef.getSchemaName("OMP","W")%>.ERROR_MESSAGES order by failure_timestamp desc
    HOPE IT WOULD HELP SOMEONE.
    SO POSTING IT.

  • Import logo using RSTXLDMC prg giving error msg like

    Hi All
    I am importing logo(tif format)
    by using RSTXLDMC program, it's giving error mesage "TIFF format error: No baseline TIFF 6.0 file"
    can anyone explain me this issue.
    Regards
    Chinna

    program: RSTXLDMC , upload .tiff file from C drive . ( type = BMON/ BCOL , text id = ST ..., text = name..so10) INCLUDE name OBJECT ID STANDARD in layout set window .
    Save a Logo using Paintshop Pro or Corel Draw as Tiff file. Use RSTXLDMC to convert the logo to standard text in SapScript. When the program is executed, the path and file name have to be correctly specified.
    Process could be like the following:
    Run RSTXLDMC
    Enter file name C:\MAIL\COMPLOGO.TIF
    Resolution for Tiff file
    Absolute X-position
    Absolute Y-position
    Absolute positioning
    Reserved height
    Shift to right
    UOM = CM
    Text title
    Line width for text = 132
    Text name ZHEX-MACRO-COMPLOGO
    Text ID ST
    Text language = E
    Postscript scaling
    Width & Height according to PS scaling
    Number of Tiff gray levels (2,4,9) 2
    Then Create a new window 'COMP' with attributes;
    Window COMP description Company Logo
    Window type CONST
    Left margin 7.00 CH window width 10.00 CH
    Upper margin LN window height 8.00 LN
    Finally in the text element , mention
    /: INCLUDE 'ZHEX-MACRO-COMPLOGO' OBJECT TEXT ID ST LANGUAGE 'E'.
    Please note that if object name is not indicated as 'ZHEX...', the logo may not be printed!
    You will not be able to see the logo in a test print. The same will be printed in actual printout.
    If you are using two logos in the same layout, the names of the logos should be unique. Say 'ZHEX-MACRO-LOGO1' and 'ZHEX-MACRO-LOGO2'. Else all the information will be overwritten.
    If the logo is not EXACTLY TIFF 6.0 , the same will not be printed.
    See OSS notes 5995, 18045, 39031 for some inputs.
    regards
    vinod

  • Xmldom.getNodeVaule giving error........

    Hi ,
    i have a procedure that have a statement xmldom.getNodeVaule(valueNode).
    While executing its giving the error user buffer too small
    The value that will come in the parameter valuenode is about 60k.
    I am doing something like this
    lv_check_clob clob;
    lv_check_lob := xmldom.getNodeValue(valueNode);
    inspite of assigning to clob i am getting the error user buffer too small
    Any suggestions how to go about it
    Thanks

    Hi ,
    i have a procedure that have a statement xmldom.getNodeVaule(valueNode).
    While executing its giving the error user buffer too small
    The value that will come in the parameter valuenode is about 60k.
    I am doing something like this
    lv_check_clob clob;
    lv_check_lob := xmldom.getNodeValue(valueNode);
    inspite of assigning to clob i am getting the error user buffer too small
    Any suggestions how to go about it
    Thanks

  • Item Open Interface giving error for Org Assignment

    We ran the MTL_SYSTEMS_ITEMS_INTERFACE & loaded all the items at master level.
    We are having issues in setting at Org level. Cant figure out what the issue as only few records gets assigned & then garbage sets in for remaining records. An SR has been raised & the tech support representative was saying that UOM's are different at master & org levels. Never heard of this issue earlier. I have worked with UOM's different at Master/Org levels.
    The UOM's are different at Master & Org Level and in some cases the UOM are different for different Orgs. Attribute Control for Primary/Sec UOM is at Org level. The UOM's belong to the same UOM Class. There are standard conversions defined for all these UOMs.
    Any pointers for quick resolution ?

    Pl do not post duplicates - Item Open Interface giving error for Org Assignment

Maybe you are looking for

  • Different between Reader and Acrobat - Forcing URL's to load PDF's into IE

    I implemented an action button links in PDF form to connect to server. When open PDF form by Reader: Links is opened and processed by IE. When open PDF form by Acrobat: Links is auto opened and processed by Acrobat. I want to keep actions opened link

  • Adding RSS feeds in Wiki's web snippet

    My specific goal is to add a Google News feed onto a Wiki page. More generally I think it would be great to have other RSS feeds as pages within my company's wiki to educate and track industry trends. I would think this is done through a web snippet.

  • App not appearing in search result in Windows Phone Store

    Hi everyone, Our app has been published to Windows Phone Store. We can find the app by following the direct link to the app (http://bit.ly/Te6itF), but cannot find it by searching on Windows Phone Store. The app is published to Public Store and is no

  • Reopened Period Closed with MMPV

    Hi, experts Is there a way to completely reverse the period closed with MMPV? Here is the scenario: the cost estimate is marked in period 7, after that the MMPV is done to open the period 8. Now, the standard cost estimate can't be released in period

  • FCE 4 or FCE HD 3.5?

    I am a new Mac user and I like the ease of use of iMovie, but frankly it has too many limitations for my liking (can't easily do random transitions between all clips, can't fade audio in/out, ...). I was thinking of upgrading to one of the subject ve