SSIS Sql Execute task

I have two variables say @[User::X] and @[User::Y]. Both are of String data type.  I found the value of X dynamically using some expression in Expression Task and Y is default path.
Now how to add these two variables and store the result in another variable so that the third variable can be passed to a script task for further checking.
Anyone help me please.
Thanks in advance.

Create a new variable of type String, set EValuateAsExpression as True for it and set expression as
@[User::X] + @[User::Y]
In case X and Y holds numerical value and you want to perform integer arithmetic then it should be this
(DT_I4) @[User::A] + (DT_I4)@[User::B]
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

Similar Messages

  • How do I Pass a parameter to a SQL Component Task where the source SQL statement is also a variable

    Hi,
    I have been tasked with making a complex package more generic.
    To achieve this I need to pass a parameter to a SQL Component Task where the source SQL statement is also a variable.
    So to help articulate my question further I have create a package and database as follows; -
    USE [KWPlay]
    GO
    /****** Object: Table [dbo].[tblTest] Script Date: 05/14/2014 17:08:02 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE TABLE [dbo].[tblTest](
    [ID] [bigint] IDENTITY(1,1) NOT NULL,
    [Description] [nvarchar](50) NULL,
    CONSTRAINT [PK_tblTest] PRIMARY KEY CLUSTERED
    [ID] ASC
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
    ) ON [PRIMARY]
    GO
    I populated this table with a single record.
    I unit tested the SQL within SSMS as follows;
    SELECT * FROM dbo.tblTest
    Result; -
    ID           
    Description
    1             
    Happy
    DECLARE @myParam NVARCHAR(100)
    SET @myParam = 'Sad'
    UPDATE dbo.tblTest SET [Description] = @myParam FROM dbo.tblTest WHERE ID = 1
    SELECT * FROM dbo.tblTest
    Result; -
    ID   
    Description
    1    
    Sad
    Within the package I created two variables as follows; -
    Name: strSQL
    Scope: Package
    Data Type: String
    Value: UPDATE dbo.tblTest SET [Description] = @myParam FROM dbo.tblTest WHERE ID = 1
    Name: strStatus
    Scope: Package
    Data Type: String
    Value: Happy
    I then created a single ‘Execute SQL Task’ component within the control flow as follows; -
    However when I run the above package I get the following error; -
    SSIS package "Package.dtsx" starting.
    Error: 0xC002F210 at Execute SQL Task, Execute SQL Task: Executing the query "UPDATE dbo.tblTest SET [Description] = @myParam FR..." failed with the following error:
    "Parameter name is unrecognized.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
    Task failed: Execute SQL Task
    Warning: 0x80019002 at Package: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED. 
    The Execution method succeeded, but the number of errors raised (1) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the
    errors.
    SSIS package "Package.dtsx" finished: Failure.
    I also tried; - 
    Name: strSQL
    Scope: Package
    Data Type: String
    Value: UPDATE dbo.tblTest SET [Description] = ? FROM dbo.tblTest WHERE ID = 1
    However I received the error; - 
    SSIS package "Package.dtsx" starting.
    Error: 0xC002F210 at Execute SQL Task, Execute SQL Task: Executing the query "UPDATE dbo.tblTest SET [Description] = ? FROM dbo...." failed with the following error: "Parameter name is unrecognized.". Possible failure reasons: Problems with
    the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
    Task failed: Execute SQL Task
    Warning: 0x80019002 at Package: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED.  The Execution method succeeded, but the number of errors raised (1) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches
    the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors.
    SSIS package "Package.dtsx" finished: Failure.
    Kind Regards,
    Kieran.
    Kieran Patrick Wood http://www.innovativebusinessintelligence.com http://uk.linkedin.com/in/kieranpatrickwood http://kieranwood.wordpress.com/

    Tried; - 
    Name: strSQL
    Scope: Package
    Data Type: String
    Value: UPDATE dbo.tblTest SET [Description] = ? FROM dbo.tblTest WHERE ID = 1
    and; - 
    Result; - 
    SSIS package "Package.dtsx" starting.
    SSIS package "Package.dtsx" finished: Success.
    Therefore the answer was to put the parameter number rather than the parameter name under the parameter mapping tab-> parameter name column. 
    Kieran Patrick Wood http://www.innovativebusinessintelligence.com http://uk.linkedin.com/in/kieranpatrickwood http://kieranwood.wordpress.com/

  • DWLoader works in SSIS Execution Process Task?

    Does anyone knows if PDW's DWLoader works in SSIS Execution Process Task? Is there a sample?
    I struggle to find documentation on using DWLoader.exe in Execution Process Task (EPT) of SSIS. There are articles in PDW BOL about DWLoader.exe or SSIS to load data, however, there is no article I
    can find about using DWLoader.exe in Execution Process Task SSIS. I'd expect SSIS to behave the same way as we execute it in Command Prompt.
    A working (dwloader.exe) command string when putting to run in [Execution Process Task] in SSIS failed and it is hard to trap the errors. Tried writing the error out in my command string, as well as setting the StandardErrorVariable of the task, neither
    one caught the details about the error. I also put the same command string in a bat file and then ran it, it worked. I then used EPT to run my bat, that actually succeeded. (That indicated to me Execution Process Task might have interpreted my string differently).

    Hi there,
    I am trying to use the dwloader utility to load data into a PDW database. I have created a batch file with the following syntax:
    dwloader.exe  -M fastappend -m -i "D:\SS\DATA_LOAD.txt" -T BATCH_V0.dbo.ATC_LOAD_TBL -R "D:\SS\LoadErrors_ATC.bad" -t "|" -r "\r\n"  "yyyy-MM-dd HH:mm:ss.fff" -E -S 10.11.12.13 -U ATC_Login -P Password > "D:\SS\Error.log"
    But the execution fails everytime. The error log gets generated but its empty. Can someone help me with the syntax? Am I missing something here?
    Thanks in advance, 

  • Execute Task works in one area but not the other

    I have two Execute SQL Tasks.  Each executes the same stored procedure from the SQL Statement property with a different parameter and they insert into the same table.  One is at the end of the package and only runs if a Rollback
    is done and it works fine.  The other runs when a script is performed and returns Failure.  When I run the other package and the Script fails the Execute SQL Task gets a green check mark but the table is not updated.
    I've messed with the properties and still no luck. 
    I can right-click on the SQL Task choose "Execute Task" and it works.
    I've run out of ideas.

    uspGenerateTasksForFailedSSISPackage is a stored procedure that inserts into a table. 
    ALTER PROCEDURE [dbo].[uspGenerateTasksForForFailedSSISPackage] 
     @strTaskDescription varchar(max) = NULL
     WITH RECOMPILE
    AS
    BEGIN
    SET NOCOUNT ON;
     Declare
      @dtEnteredDateAndDueDate date = GetDate(),
      @intTodoCategoryCode int = 13,
      @strEnteredBy varchar(20) = 'AUTO'
       INSERT INTO ToDos (UserID, EnteredBy, EnteredDate, DueDate, Description, CategoryCode)
       Values (@strEnteredBy, @dtEnteredDateAndDueDate, @dtEnteredDateAndDueDate, @strTaskDescription, @intTodoCategoryCode)

  • Mass SQL executing from standalone app to sever  - Suggestion only.

    Which way can be the best way to execute the SQL to server in mass form.
    I 'm trying to make a program which executes the mass SQL to server from the local SQL server.I even need to show the progress of excuted SQL in percentage form (multi-threading via SwingWorker) and futher more it must be recoverable when there is interrupt / crash during SQL executing process.
    According to my idea I'm suceeded to execute the mass SQL from local SQL via these steps (Algorithm).
    1.Query for the SQL which are not being updated in server e.g "SELECT 'SQL' FROM 'PENDING' WHERE UPLOADED=0"
    2.Getting SQL one by one via Loop.
    3.Creating TEMP FILE in client and write "1"
    4.Execute the SQL to Server
    5.Change the value of '1' to '2' in TEMP FILE
    6.Update the value of UPLOADED=0 to 1 in PENDING Table
    7.Finally delete the TEMP FILE from client computer .
    8.Goes to next SQL until the Loop ends
    I'm using TEMP_FILE so that i can know whether the SQL executing process was completed sucessfully or not. And to correct the interrupted/crashed SQL process i've used 1,2 in TEMP FILE as the step of executing process.
    But somehow I think there is good way to handle this problem.So I posted here to get better solution for my problem . I 've even thought about SQL Batch Processing but I don't think it's good idea for recovering SQL from crashes and interrupt

    Hello DynamicBasics
    I've followed the tutorial but not working for me!
    public boolean uploadData(){
            boolean isUploaded = true;
            Statement s = null;
            ResultSet rs = null;     
            connectServer();
            try{
              //disabling autocommit = false
                    getServerConnection().setAutoCommit(false);
                    String sql = ("INSERT INTO transaction VALUES(?,?)");               
                    PreparedStatement stmt = getServerConnection().prepareStatement(sql);
                    stmt.setString(1,"SALES");
                    stmt.setInt(2,0);
                    stmt.executeUpdate();   //does it update as seperately
                    PreparedStatement stmt2 = getServerConnection().prepareStatement(sql);
                    stmt2.setString(1, "PURCHASE");
                    stmt2.setInt(2, 1);
                    stmt2.executeUpdate();  //does it update as seperately    
              //i've not done commit() but even it's being executed                    
            catch(SQLException se){
                se.printStackTrace();
             isUploaded = false;
            return isUploaded;
    }As I read using Transaction is meant to execute many sql as a single unit but it's being executed seperately even i've not done commit().
    I think executeUpdate() already executes the sql . Or do i need to used batch for it ??
    Please help

  • Error in PL/SQL - execute immediate

    Hi ,
    I am getting this error when executing the procedure.Could you help me what wrong in it?
    SQL >create or replace procedure delete_emp_copy (tname in varchar2) is
    sql_stmt varchar2(200);
    begin
    sql_stmt :='delete from :1';
    execute immediate sql_stmt using tname;
    end;
    Procedure created
    .SQL> execute delete_emp_copy('EMPLOYEES_COPY');
    BEGIN delete_emp_copy('EMPLOYEES_COPY'); END;
    ERROR at line 1:
    ORA-00903: invalid table name
    ORA-06512: at "HR.DELETE_EMP_COPY", line 5
    ORA-06512: at line 1
    EMPLOYEES_COPY exists in my schema? what could be wrong?

    You can't bind in a table name. You would have to concatenate the table name. Youd can use bind variables for values in the where clause, for example, but not for object names.
    create or replace procedure delete_emp_copy (tname in varchar2) is
    sql_stmt varchar2(200);
    begin
    sql_stmt :='delete from ' || tname;
    execute immediate sql_stmt;
    end;I'd recommend you to validate the table name, using a select from all_tables to check if it exists, or using the DBMS_ASSERT if your Oracle version supports it.

  • How to find all the sql executed in the database

    Hi
    We want to be able to collect all the sql statements executed in the database and be able to dump them in a file or a table. Can anyone tell me how we can get that done?
    Regards,

    if you are using oracle 10g, you can use one of the
    option of datapump tool to do thisthat's new to me, can you show us how ?
    For OP, you can check v$sqlarea view to find out all the sql statement still in shared_pool, however, there's no guarantee you will have all sql executed since database started.
    Like other poster mentioned, enable auditing if you want to collect that information.

  • BUG?? Exeption handling brakes a Loop?! (PL/SQL executed by C) Anybody know this ????

    (OS - SCO, Oracle 817, Pro*C/C++: Release 2.2.4.0.0)
    In C program I have a PL/SQL block with WHILE LOOP. Inside the loop I have SELECT statement with a begin..end arroung it and with EXCEPTION WHEN NO_DATA_FOUND for internal block. In this exception I have no RAISE statement. So, I expect the loop will be not broken by NO_DATA_FOUND error.
    After control comes to the EXCEPTION NO_DATA_FOUND the loop is not continue anymore (but error is not populated out of this begin..end.) If EXCEPTION NO_DATA_FOUND is commented by -- the loop runs completely.
    Is it known bug? Does anybody get something like this?
    To be more specific, my EXEC SQL EXECUTE .. END EXECUTE block looks like this:
    DECLARE
    BEGIN
    WHILE .. LOOP
    begin SELECT ...
    exception when NO_DATA_FOUND then NULL;
    when others then ... RAISE;
    end;
    END LOOP;
    END;
    Would appreciate any response on this matter.
    Thanks!
    Alex.

    Call the procedure from another "wrapper" procedure. In the wrapper, place the call within to your existing procedure in a
    for i in 1..3 loop
      call procedure;
      if <successful condition> then
        exit loop;
      end if;
    end loop;I think that'd be easier than trying to work on controlling everything from within a single procedure. You could even set up a PACKAGE where the wrapper was the only public procedure, where your current procedure is private, and thus, can't be called outside of the wrapper, by accident. --=cf

  • Sql - execute statement problems

    I have a "try" with a "catch" that contains an sql execute statement, and some statements after that, but it doesn't execute any of the following statements. It successfully compiles and has no errors when I run it. It just doesn't insert the information and it stops every command that follows. When I remove the execute state (the one with the asterist next to it), the following statements execute fine. Any information on what I might be missing would be greatly appreciated. Thanks.
    try{
    new JdbcOdbcDriver();
    String url = "jdbc:odbc:javadb";
    String user = "";
    String password = "";
    Connection con =
    DriverManager.getConnection(url, user, password);
    Statement stmt = con.createStatement();
    System.out.println("Made the Connection");
    *stmt.executeUpdate("INSERT INTO tbl VALUES ('bradley')");
    System.out.println("Made the Connection");
    JOptionPane.showMessageDialog(this, "Data Inserted");
    }catch(Exception e)
    e.printStackTrace();
    }

    Look in your log file. When you perform "e.printStackTrace()" the stack is sent to the System.out, which JSP has already redirected to the log.
    If you're having trouble finding the log (it depends on what webserver you're using), try changing that to:
    out.println("<h3>We have an error: " + e + "</h3>");
    (Notice the absense of "System." here. We're using the pre-defined JSP "out" object that's going to the client browser.)
    That will print the error message, plus the reason for the error, on your client as 2nd level header.
    Personally, I always print out my error messages in this manner. I find that having a full, complete, extensive stack trace is next to useless. It's like asking for the definition of the word "Java", and having the Oxford Unabridged Dictionary dropped in your lap.

  • How to find out all SQLs executed by a procedure

    I need to find out all SQLs executed by a procedure. I can trace and check but in my case the issue happened 4 hours back and i know what procedure was causing it. There are multiple dynamic queries fired from this procedure. I need to track down all SQLs fired by this procedure constructed dynamically during the time issue was happening.
    I have the sql_id of the statement which was executing the procedure. How do I track down all "child" SQLs using this sql_id?
    Will appreciate any pointers.
    -ravi

    Thanks for your suggestion and looking into this.
    We already have that functionality built in. Version is 10.2.0.3...But the issue is the proc is called thousands of time in a day and we can not keep the tracking of sqls and parameters passed on all the time. When the issue happened we were not tracking. The bind variables are not captured as the SQL is constructed within the proc by looking up the values dynamically from secondary tables dynamically based on the parameters passed to the procedure. Now the SQLs which are generated from the proc will have the bind variables captured as they will come as predicates and will have no clob types (condition for the binds to be captured).
    I need a query to track down all "child" SQLs by using the sql_id of the parent process which is the procedure's sql_id.

  • Exec sql Execute in Pro*C

    Hi,
    My ProC code works fine when I have Exec sql in it but when I include plsql block in it using EXEC SQL EXECUTE, it throws the following error:
    /tmp/cc88UGZa.o(.text+0x2c0): In function `main':
    : undefined reference to `ECPGget_sqlca'
    I have included all these below header files:
    #include <stdio.h>
    #include <string.h>
    #include <stdlib.h>
    #include <sqlca.h>
    #include <sqlda.h>
    #include <sqlcpr.h>
    and the path have been mentioned in pcscfg.cfg as well.
    what can be the reason and the solution to this please? Help is appreciated.
    Thanks in advance!
    Ash

    You have to use 'BEGIN procedure_name END' in the execute statement while calling PL/SQL Procedures
    EXEC SQL EXECUTE
    DECLARE
    BEGIN
    END;
    END-EXEC;

  • Can I issue this command in PL/SQL: EXECUTE IMMEDIATE '@filename.sql';

    can I issue this command in PL/SQL: EXECUTE IMMEDIATE '@filename.sql';

    Hi,
    Rather the opening a new process (sqlplus), a new connection (need password) etc... I would rather read and execute the file in pl/sql.
    I do not know if someone wrote it already, but here is a quick and dirty code for doing that with UTL_FILE.GET_LINE
    Here, I am only processing some DML statements and no SELECT statements. Correct it as you like !
    CREATE OR REPLACE PROCEDURE run_script ( dir_name IN VARCHAR2,file_name IN VARCHAR2)
    IS
    vSFile UTL_FILE.FILE_TYPE;
    vCmd VARCHAR2(200);
    vNewLine VARCHAR2(200);
    BEGIN
        vSFile := UTL_FILE.FOPEN(dir_name, file_name,'r');
        vCmd := NULL;
        IF UTL_FILE.IS_OPEN(vSFile) THEN
        LOOP
            BEGIN
                UTL_FILE.GET_LINE(vSFile, vNewLine);
                if (vCmd is null) THEN
                    if (upper(vNewLine) like 'INSERT%' or upper(vNewLine) like 'UPDATE%' or upper(vNewLine) like 'DELETE%') THEN
                        if (vNewLine like '%;') THEN
                            /* we have a single line command, execute it now */
                            dbms_output.put_line(substr(vNewLine,1, length(vNewLine)-1));
                            execute immediate substr(vNewLine,1, length(vNewLine)-1);
                        else
                            /* we have a command over multiple line, set vCmd */
                            vCmd := vNewLine;
                        end if;
                    else
                        /* ignore the rest like spool, prompt, accept, errors, host, @, ... */
                        null;
                    end if;
                else
                    if (vNewLine like '%;') THEN
                        /* we have a the last line of the command, execute it now */
                        vCmd := vCmd || ' ' || substr(vNewLine,1, length(vNewLine)-1);
                        dbms_output.put_line(vCmd);
                        execute immediate vCmd;
                        vCmd := null;
                    else
                        /* keep concatenating to vCmd */
                        vCmd := vCmd ||' '|| vNewLine;
                    end if;
                end if;
            EXCEPTION
                WHEN NO_DATA_FOUND THEN
                    EXIT;
                END;
        END LOOP;
        COMMIT;
        END IF;
        UTL_FILE.FCLOSE(vSFile);
    EXCEPTION
        WHEN utl_file.invalid_path THEN
            RAISE_APPLICATION_ERROR (-20052, 'Invalid File Location');
        WHEN utl_file.read_error THEN
            RAISE_APPLICATION_ERROR (-20055, 'Read Error');
        WHEN others THEN
            RAISE_APPLICATION_ERROR (-20099, 'Unknown Error');
    END run_script;
    set serverout on
    create directory scriptdir as '/home/oracle';
    grant read,write on directory to scott;
    exec run_script('SCRIPTDIR', 'test.sql')

  • High "CPU + Wait for CPU" event on pl/sql execute operation

    I am executing a pl/sql in 256 parallel sessions, on 11G r2 DB (RAC 2 nodes), on a 42core IBM P7 Machine.
    PL/sql function opens a cursor on a huge table with around 20M rows and does further processing.
    Work-load is equally divided into 256 parallel sessions. 256 parallel sessions are opened by a middle-ware application and each session processes data based on an identifier (there are 256 distinct identifier values).
    PL/sql function is comprised of some SQL operations, on which i am experiencing some cluster waits. But CPU + wait for CPU event on pl/sql execute operation is close to 80% of the total execution time.
    Top user events:
    Event Event Class % Event Avg Active Sessions
    CPU + Wait for CPU CPU 80.88 98.15
    gc current block 2-way Cluster 3.33 4.05
    gc cr block busy Cluster 2.01 2.44
    gc cr block 2-way Cluster 1.97 2.39
    db file sequential read User I/O 1.81 2.20
    Top SQL command type:
    SQL Command Type Distinct SQLIDs % Activity Avg Active Sessions
    PL/SQL EXECUTE 3 60.99 74.02
    SELECT 66 12.90 15.65
    INSERT 24 9.89 12.01
    UPDATE 9 6.00 7.28
    DELETE 2 1.33 1.61Rest of the SQL queries seem to be very optimum, but waits on pl/sql execute operation are causing very low tps.
    Can anybody give me some heads-up about where to and what to look for to resolve?
    Please let me know if any extra information is required.

    AWR report :
    Header
    DB      Name      DB Id           Instance      Inst num      Startup Time           Release RAC
    FCR           1304316316      fcrypp1      1                01-12ÔÂ-12 04:12      11.2.0.2.0 YES
    Host           Name Platform                     CPUs      Cores      Sockets Memory (GB)
    z4ci2011      AIX-Based Systems (64-bit)      168      42        320.00
                   Snap Id      Snap Time                     Sessions      Cursors/Session
    Begin Snap: 40650           01-12ÔÂ-12 06:40:03      1203           5.8
    End Snap:      40669           01-12ÔÂ-12 09:50:01      1122           5.3
    Elapsed:        189.96 (mins)    
    DB Time:        22,251.65 (mins)
    Load profile
    Per Second           Per Transaction      Per Exec      Per Call
    DB Time(s):           117.1                19.5                     0.00           3.89
    DB CPU(s):                16.1                2.7                     0.00           0.53
    Redo size:                12,759,186.3      2,126,361.0    
    Logical reads:           181,875.9           30,310.2    
    Block changes:           54,515.5           9,085.2    
    Physical reads:      1,340.3           223.4    
    Physical writes:      8,788.9           1,464.7    
    User calls:           30.1                5.0    
    Parses:                26.5                4.4    
    Hard parses:           0.4                0.1    
    W/A MB processed:      8.5                1.4    
    Logons:                0.1                0.0    
    Executes:                41,176.0           6,862.1    
    Rollbacks:                1.9                0.3    
    Transactions:           6.0      
    Time model statistics
    Statistic Name                                             Time (s)          % of DB Time
    sql execute elapsed time                              1,334,935.55     99.99
    PL/SQL execution elapsed time                         1,180,376.60     88.41
    DB CPU                                                       182,904.44          13.7
    repeated bind elapsed time                              292.83               0.02
    sequence load elapsed time                              279.75               0.02
    parse time elapsed                                        87.4               0.01
    hard parse elapsed time                                   22.52               0
    failed parse elapsed time                              5.12               0
    connection management call elapsed time               4.61               0
    PL/SQL compilation elapsed time                         1.91               0
    hard parse (sharing criteria) elapsed time          0.49               0
    hard parse (bind mismatch) elapsed time               0.39               0
    inbound PL/SQL rpc elapsed time                         0.1     0
    DB time                                                       1,335,099.30     
    background elapsed time                                   33,298.67     
    background cpu time                                        11,692.76     
    Operating System Statistics
    Statistic Value End Value
    AVG_BUSY_TIME 202,428  
    AVG_IDLE_TIME 936,397  
    AVG_IOWAIT_TIME 4,124  
    AVG_SYS_TIME 84,480  
    AVG_USER_TIME 117,573  
    BUSY_TIME 34,074,303  
    IDLE_TIME 157,378,825  
    IOWAIT_TIME 755,368  
    SYS_TIME 14,256,010  
    USER_TIME 19,818,293  
    LOAD 21 10
    OS_CPU_WAIT_TIME 23,770,800  
    VM_IN_BYTES 20,496  
    VM_OUT_BYTES 2,086,940,520  
    PHYSICAL_MEMORY_BYTES 343,597,383,680  
    NUM_CPUS 168  
    NUM_CPU_CORES 42  
    NUM_LCPUS 168  
    NUM_VCPUS 42  
    GLOBAL_RECEIVE_SIZE_MAX 41,943,040  
    GLOBAL_SEND_SIZE_MAX 41,943,040  
    TCP_RECEIVE_SIZE_DEFAULT 16,384  
    TCP_RECEIVE_SIZE_MAX 9,223,372,036,854,775,807  
    TCP_RECEIVE_SIZE_MIN 4,096  
    TCP_SEND_SIZE_DEFAULT 16,384  
    TCP_SEND_SIZE_MAX 9,223,372,036,854,775,807  
    TCP_SEND_SIZE_MIN 4,096
    SQL ordered by CPU Time
    CPU Time (s)      Executions       CPU per Exec (s) %Total      Elapsed Time (s)      %CPU      %IO      SQL Id SQL Module SQL Text
    180,330.13           127                1,419.92                98.59      1,326,401.03           13.60      1.08      04kt8u64udphu    BEGIN :1 := ap_ch_eod_shell_en...
    8,025.48           9,868,469           0.00                     4.39      10,809.88                74.24      9.21      arnkbsnzhha77 ch_txn_shell_115  SELECT * FROM CH_ACCT_MAST WHE...
    6,117.64           9,873,495           0.00                     3.34      8,557.64                71.49      7.14      8qcryvj294s79 ch_eod_shell_138  UPDATE CH_ACCT_MAST_PAR SET DA...
    4,614.71           3,185,313           0.00                     2.52      11,130.77                41.46      11.88      b75wwkxw34x2k ch_eod_shell_228  INSERT INTO CH_TMP_XF_GL_TXNS ...
    4,374.29           9,866,217           0.00                     2.39      5,876.00                74.44      37.88      g22p493ra2zr5 ch_eod_shell_248  UPDATE CH_ACCT_MAST SET BAL_LA...
    3,514.57           14,026,451           0.00                     1.92      6,274.60                56.01      29.55      7bwhphfnnuqpr ch_eod_shell_59  INSERT INTO CH_ACCT_INT_BREAKU...
    3,253.36           3,185,706           0.00                     1.78      3,875.42                83.95      9.20      9dq134q9btxq8 ch_eod_shell_74  INSERT INTO CH_ST_CAP_INPUT_TX...
    3,131.64           9,875,603           0.00                     1.71      5,338.43                58.66      15.55      6xhwk1b37rh1t ch_txn_shell_143  UPDATE CH_ACCT_ATTRIBUTES SET ...
    2,954.15           9,878,718           0.00                     1.62      5,692.88                51.89      13.22      b4at7uq2hw6r7 ch_sweepin_shell  SELECT TRIM(A.COD_PKG) FROM RP...
    2,572.01           9,867,277           0.00                     1.41      4,605.88                55.84      12.58      54ud0a8tuwwbc ch_txn_shell_17  SELECT * FROM CH_ACCT_ATTRIBUT...
    1,941.29           19,730,455           0.00                     1.06      5,580.38                34.79      7.02      dx5kng8qu560t ch_txn_shell_59  UPDATE CH_ACTIONS_DUE SET COD_...
    1,846.01           9,875,239           0.00                     1.01      4,737.66                38.96      12.55      af7f92f13rmy4 ch_txn_shell_85  INSERT INTO CH_ACTIONS_DUE (CO...

  • Questions on SQL executed by Answers about Row_number

    While debugging from the log file of sql executed by OBIEE Answers, I found the following sql statements:
    -------------------- Sending query to database named DW_TESTING (id: <<10886>>):
    select D1.c2 as c1,
    D1.c3 as c2,
    D1.c1 as c3
    from
    (select D1.c1 as c1,
    D1.c2 as c2,
    D1.c3 as c3
    from
    (select sum(T1113.PRODUCT_SALES) as c1,
    T1141.YEAR as c2,
    T1141.QUARTER as c3,
    ROW_NUMBER() OVER (PARTITION BY T1141.QUARTER ORDER BY T1141.QUARTER ASC) as c4
    from
    DWADMIN.DATE_MASTER T1141,
    DWADMIN.DAILY_SALES T1113
    where ( T1113.SALES_DATE = T1141.CALENDAR_DATE )
    group by T1141.YEAR, T1141.QUARTER
    ) D1
    where ( D1.c4 = 1 )
    ) D1
    order by c2
    +++Administrator:2e0000:2e0005:----2009/06/10 15:37:11
    -------------------- Sending query to database named DW_TESTING (id: <<10931>>):
    select D2.c2 as c1,
    D2.c3 as c2,
    D2.c1 as c3
    from
    (select D1.c1 as c1,
    D1.c2 as c2,
    D1.c3 as c3
    from
    (select sum(T620.PRODUCT_SALES) as c1,
    T1141.YEAR as c2,
    T1141.QUARTER as c3,
    ROW_NUMBER() OVER (PARTITION BY T1141.QUARTER ORDER BY T1141.QUARTER ASC) as c4
    from
    DWADMIN.DATE_MASTER T1141,
    BEADMIN.BE_DAILY_SALES T620
    where ( T620.SALES_DATE = T1141.CALENDAR_DATE )
    group by T1141.YEAR, T1141.QUARTER
    ) D1
    where ( D1.c4 = 1 )
    ) D2
    order by c2
    Does anyone know why the Answers will filter the ROW_NUMBER = 1? I wonder how come the Answers run 2 different SQL statement instead of one.
    My environment:
    2 Fact tables
    3 common dimensions + 1 dimension which can only join with one of the fact table
    2 fact tables does not directly join together.
    This problem is found whenever I choose any columns from both 2 fact tables. If columns are only from either one fact table, the results are correct.
    Thx all ~

    Wildmight,
    May I ask what should I check for 'content tab' you mentioned?
    Also for the time dimension, I did not check "time dimension" box in the timeDimension hierarchy property. Infact is that we MUST set the time dimension as "Time Dimension" in the property? What is the difference? I remembered I have tried to set it and assign the "Year" as the chronical key, but the problem remains.
    Finally, I do not set any filters. That's why I wonder when I saw the Answers Engine has filtered the Row_number by c1 = 1.
    Thanks a lot ~

  • ADO function error:SQL execute.vi is not executable​.

    Thanks for everyone who is willing to help me out of this problem that puzzled me several days,I can't find a similar one from Google or other forum..
    Problem:
    When I was using LabSQL,it come an error:
    Subvi "SQL execute":subvi isnot executable. and then I searched the source of the error,it was finally found to be the 
    "ADO Recordset GetString.vi":
    "invoke node:invalid method"
    "invoke node:invalid refnum class". 
    What I used is Windows 7 and LabVIEW7.1.
    Attached is the detail of this problem that includes the vi and some error pictures,and the ADO functions I used.
    ute.vi" is
    Attachments:
    Error.zip ‏1865 KB

    Duplicate - http://forums.ni.com/t5/LabVIEW/ADO-function-error​-SQL-execute-vi-is-not-executable/m-p/2397360#M742​...
    Try to take over the world!

Maybe you are looking for

  • NTSC monitor as second monitor??

    INTEL Tower, dual. I'm running a Cinema display, and another 16:9 LCD display. Is there any way I can use a SONY NTSC monitor as my second display coming out of the DVI? Replacing the 2nd LCD of course. And without having to reduce my Cinema display

  • Window Audio error (someone please help)

    my old computer broke down. So I got one of the ENVY dv4 notebook for win8, and the audio system is beats of course. but I found out that the audio system of the computer is mess up, or it's "auto fill sound" should i say. basicly this is what happen

  • How do I get past the empty blue screen?

    I keep getting the empty blue screen. I have tried starting up in Safe Mode only to wind up with the same blue screen. Tried starting up with iMac install disc only to wind up with the same blue screen. Additionally it has decided to keep the disc. T

  • Deploying war Tomcat sun one

    Our developers gave us war file they tested on tomcat and when we deloyed it on sun one it gave us this error. failure (12525): ContextConfig[test4] WEB3524: Parse error in application web.xml org.xml.sax.SAXParseException: Element type "web-app" is

  • Problem in POPUP_WITH_TABLE_DISPLAY_OK

    Hi all, i am using POPUP_WITH_TABLE_DISPLAY_OK this function module to display internal table data. i am getting it all data. but main problem is that when i click in Ok  and Cancel tick importing parameter CHOISE returns value 0. i want when user cl