Dynamically read the table name in the query update

Hi all

I am trying to run the updated sql query where the name of the table should be read dynamically from another table below.

Please let me what wrong with my request.

setting a day (select CONCAT('T',schemaid) from outline, which the name = 'Analyzer') set c7 = 99;

"outline" is a table that contains two columns name and schemaid.

all the table created in our database with the prefix 't' T4345 for example.

I did as suggested by you

No, you didn't.  I did not any package creation code in my example, in order to better that you you point the finger.

Your syntax is invalid for creating a package with the code like this, please read on creating packages and procedures within them if that's what you want to do.

In addition, your package creation statement is to create a package specification, but you put in the code which must be in a package body, not a notebook loads.

It should be something like (untested since I don't have your tables)...

create or replace package my_packg as
procedure dowhatever.
end;
/

create or replace package body my_packg as
dowhatever procedure is
TBL varchar2 (30);
Start
Select 't' | SchemaId
in tbl
of outline
where name = 'Analyzer ';
run immediately 'Update'. "TBL |' set c7 = 99;
end;
end my_packg;
/

and then call this procedure by calling my_packg.dowhatever ();

Tags: Database

Similar Questions

  • procedure that will dynamically build the query data and table Medallion

    Hi people,

    I write a procedure that dynamically build the query data and insert in the table "dq_summary".
    enforcement procedure with success and data not inserted into the table 'dq_summary '.

    I have thin problem in code attached below
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    FOR rep IN cur_di_attr
          LOOP
            dbms_output.put_line ('d: ');   
            
            BEGIN
              EXECUTE IMMEDIATE 'SELECT table_name FROM ' || sum_tab || ' WHERE id = ' || rep.attribute_id INTO rep_tab;
              dbms_output.put_line ('rep_tab: '||rep_tab);
              run_query := run_query || ' ' || rep_tab || ' WHERE ' || nvl(wh_cond, '1 = 1');
              EXECUTE IMMEDIATE run_query INTO end_rslt;
            
              EXECUTE IMMEDIATE 'UPDATE dq_summary SET ' || prop || '_' || p_code || ' = ' || end_rslt || ' WHERE attribute_id = ' || rep.attribute_id;
              dbms_output.put_line ('e: ');      
              dbms_output.put_line ('rep_tab: '||rep_tab);
              dbms_output.put_line ('end_rslt: '||end_rslt);
              dbms_output.put_line ('f: '); 
            EXCEPTION
              WHEN no_data_found THEN
                rep_tab := '';
                sum_tab := '';
            END;  
          
          END LOOP;    
    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    but in the procedure below must be run several times
    create or replace
    PROCEDURE DQ_REPORT_PROC
    AS
      prop                              di_proposition.pro_name%type;
      col_var                           VARCHAR2(100);
      p_code                            dq_parameter.para_code%type;
      sum_tab                           di_proposition.summary_table%type;
      run_query                         dq_parameter.run_query%type;
      wh_cond                           dq_parameter.where_cond%type;
      end_rslt                          VARCHAR2(20);
      rep_tab                           VARCHAR2(50);
      v_error_msg                       VARCHAR2(200);   
      v_error_code                      VARCHAR2(200);  
      v_object_name                     VARCHAR2(50)                          DEFAULT 'DQ_REPORT_PROC';
      v_iss_no                          VARCHAR2(20)                          DEFAULT NULL;
      CURSOR cur_di_prop IS 
        SELECT upper(replace(replace(pro_name, ' '),'-')) pro_name
          FROM di_proposition;
      
      CURSOR cur_di_para IS
        SELECT upper(para_code) para_code, run_query, where_cond
          FROM dq_parameter;
      
      CURSOR cur_di_attr IS 
        SELECT attribute_id
          FROM dq_summary;
    BEGIN
      
      DELETE FROM dq_summary;
    
      INSERT INTO dq_summary (attribute_id, entity_name, attribute_name, data_champ) 
        SELECT a.attribute_id, b.entity_name, a.attribute_name, a.data_champ
          FROM di_attribute_master a, di_entity_master b
         WHERE a.entity_id = b.entity_id;
    
      FOR c_prop IN cur_di_prop
      LOOP
        prop := c_prop.pro_name;
        
        BEGIN
          SELECT distinct SUBSTR(column_name, 1, INSTR(column_name, '_')-1), summary_table
            INTO col_var, sum_tab
            FROM user_tab_cols a, di_proposition b
           WHERE a.table_name = 'DQ_SUMMARY'
             AND upper(replace(replace(b.pro_name, ' '),'-')) = prop
             AND SUBSTR(a.column_name, 1, INSTR(a.column_name, '_')-1) = upper(replace(replace(b.pro_name, ' '),'-'))
             AND upper(b.status) = 'Y';
             
             dbms_output.put_line ('col_var: '||col_var);
             dbms_output.put_line ('sum_tab: '||sum_tab);
             
        EXCEPTION
          WHEN no_data_found THEN
            col_var := '';
            sum_tab := '';
        END;
    
        dbms_output.put_line ('a: ');
    
        FOR para IN cur_di_para
        LOOP
         dbms_output.put_line ('b: ');
          p_code := para.para_code;
          run_query := para.run_query;
          wh_cond := para.where_cond;
          dbms_output.put_line ('c: ');
          FOR rep IN cur_di_attr
          LOOP
            dbms_output.put_line ('d: ');   
            
            BEGIN
              EXECUTE IMMEDIATE 'SELECT table_name FROM ' || sum_tab || ' WHERE id = ' || rep.attribute_id INTO rep_tab;
              dbms_output.put_line ('rep_tab: '||rep_tab);
              run_query := run_query || ' ' || rep_tab || ' WHERE ' || nvl(wh_cond, '1 = 1');
              EXECUTE IMMEDIATE run_query INTO end_rslt;
            
              EXECUTE IMMEDIATE 'UPDATE dq_summary SET ' || prop || '_' || p_code || ' = ' || end_rslt || ' WHERE attribute_id = ' || rep.attribute_id;
              dbms_output.put_line ('e: ');      
              dbms_output.put_line ('rep_tab: '||rep_tab);
              dbms_output.put_line ('end_rslt: '||end_rslt);
              dbms_output.put_line ('f: '); 
            EXCEPTION
              WHEN no_data_found THEN
                rep_tab := '';
                sum_tab := '';
            END;  
          
          END LOOP;    
        END LOOP;
      END LOOP; 
      COMMIT;   
    EXCEPTION
          WHEN OTHERS THEN
             v_error_msg   := SQLERRM;
             v_error_code  := SQLCODE;  
             TRACKER_LOG_EXECEPTION(v_iss_no, v_object_name, CURRENT_TIMESTAMP, v_error_msg, v_error_code);
          COMMIT;        
      
    END DQ_REPORT_PROC;
    Published by: BluShadow on February 7, 2012 12:04
    addition of {noformat}
    {noformat} tags.  Please read {message:id=9360002} and learn to do this yourself in future.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            

    903830 wrote:

    I write a procedure that dynamically build the query data and insert in the table "dq_summary".
    enforcement procedure with success and data not inserted into the table 'dq_summary '.

    I'm sorry. But there is no kind of say that way. The code is undesirable. The approach is wrong. This will not happen. This will cause the fragmentation of memory in the shared Pool. This will lead to another session being impossible to analyze the sliders because of the fragmented memory.

    Not only that. The underlying data model is questionable.

    All this seems a candidate perfect as an example of how NOT to design and code and use Oracle.

  • How do I dynamically change the query VO

    Hello

    IAM trying to change the VO query dynamically. My forced, it is that I have 6 columns in a page header 3 columns (single default) for objective sort and another 3 columns (the default one) for querying data.

    Al, are in a single view so I created a VO.

    Sort of research
    AN A
    B B
    C C

    When I give all sort values and hit the query of VO submit button should change dynamically.
    I searched old post in this regard.

    My query is something like that

    SELECT * from cust_table where a = NVL (: 1, a)
    UNION
    SELECT * from cust_table where a <>NVL (: 1, a)
    order by one

    IAM not trying the Sub part dynamicaly in my AM method
    vo.setWherecaluse ("where a = NVL (: 1, a)")
    UNION
    SELECT * from cust_table where a <>NVL (: 1, a)
    order by one ").
    and trying to pass parameters to the query. But it does not work. In error "variable binding is not found.

    The one you suggest how to solve the problem.


    Thank you
    Mahesh

    Mahesh

    Please let me know the logic behind the union of the same query with it. What is the problem you are having with
    vo.setWhereClause

    Thank you
    AJ

  • Y at - it an easy way to get the sql code that is sent in the query UPDATE

    I have a request to UPDATE abbreviated for readability. Is there an easy way to get the sql code that is sent? I use get this info for sql select in the display of debugging in cfeclipse but not for the UPDATE.

    < cfquery debug = "" name = "q" datasource = "#datasource #" > "



    UPDATE [BookingSystem]. [dbo]. [tbTrades]
    SET
    [Status] = #MATCHED_STATUS #.
    WHERE

    clientID = < cfqueryparam value = "" #arguments.clientID # "cfsqltype ="cf_sql_integer"> AND"

    < / cfquery >

    It might pay to read the docs for - http://livedocs.adobe.com/coldfusion/8/htmldocs/Tags_p-q_17.html#1102316 - focusing on the RESULT parameter.

    Read also about debugging in CF: http://livedocs.adobe.com/coldfusion/8/htmldocs/Debug_01.html

    --

    Adam

  • changing the query update

    Hello

    In the following update query
    update C2C_BK_RATING_23112011 f
    set f.bk_rating_id = 'HDB'
    where f.bk_rating_id like 'HDFC';
    I want to update all the records in the column of bk_rating_id when the value of bk_rating_id is to HDB HDFC, the bk_rating_id column is to have values as shown below:
    HDFC 10
    HDFC 2
    HDFC 3
    HDFC 4
    HDFC 5
    HDFC 6
    HDFC 7
    HDFC 8
    HDFC 9
    HDFC 1
    How can I change the update query to make the output voltage:
    HDB 10
    HDB 2
    HDB 3
    HDB 4
    HDB 5
    HDB 6
    HDB 7
    HDB 8
    HDB 9
    HDB 1

    Hello
    Like this:

    update C2C_BK_RATING_23112011 f
      set f.bk_rating_id = REPLACE(bk_rating_id,'HDFC','HDB')
    where f.bk_rating_id like 'HDFC%';
    
  • Dynamic read the global variable (cluster)

    Hello!

    I would like to lika to read each control (label and value) in my global variable that contains a cluster. The problem is that I am doing it on a cDAQ and insofar as I undestand and has seen property th node do not have good worl on a real-time target. The code that I've tested so far is as follows:

    It's the main/fornpanel on my cDAQ. The Subvi in the main code contains the following:

    The phenonomen I've seen against hepatitis a is that it works very well maybe the first and second time when I run cod drank for the third time that the labels are empty. I read something that the dose of propertynode does not correctly for real-time target, but it is a way to come to the same solution using only not not the propertynode or you could use the different propertynode?

    Best regards

    Anton

    I solved it by using a library (Cluster Toolkit of Autotestware) to the GE in variant tables and depending on the type, I converted the variant accordingly and saved.  I guess that CVT would be able to do, but since I already use the cluster and they are "already here" it was more convinient for me to use this solution.

  • How to use a value in a variable as a table name in a query?

    I fetch a value in a variable like:

    < select application_short_name in the fnd_application l_appl_nm where application_id =: p_appl_id >

    Now, I need to use the value retrieved in the variable "l_appl_nm" as a name of partition table in the following query.

    Anyone can guide me please on this concept.

    Expected answers as soon as possible!

    Create dynamic SQL statements with your variable, and then run this SQL with the "EXECUTE IMMEDIATE" command.

    Thank you

    Lokesh

  • Bind the Variable Table name in the query of VO

    I have a VO that must have its clause defined dynamically at run time.  I have a string bind variable defined with a default value that is referenced in the query of the VO.  However, JDeveloper allow me to leave the definition of the query of the view object when the from clause is a variable binding, even if the binding variable has the default value.

    For example.

    Select

    « X »

    Of

    : TABLE

    where

    1 = 1

    The variable binding TABLE is defined as a string with a default value of the 'double '.  Did I miss something in the definition of the VO?

    Thank you

    Hello

    I suggest you to dynamically set the query of the view object.  This does not meet your requirements.

    xxVo.setQuery ();

  • Help in the optimization of a query update

    Hi gurus,

    I'm trying to optimize the query update on a large TT_TERM_HIST table below (table size is 13 GB).

    The update statement is supposed to update the lines ~ 7 M. Total number of lines are ~ 9 M.

    The TT_TERM table is also large (table size is 9.5 GB) and PK on column DEAL_NUM.

    UPDATE  tt_term_hist hist
       SET LOCAL_BANKING_SYSTEM19 =
              (SELECT LOCAL_BANKING_SYSTEM19
                 FROM tt_term tt
                WHERE tt.deal_num = hist.deal_num)
    WHERE hist.deal_num IN
              (SELECT deal_num
                 FROM tt_term
                WHERE SUBSTR (LOCAL_BANKING_SYSTEM19, 1, 5) IN
                         ('FT7FC', 'FT7MC', 'FT7TM')) ;
    

    Performance plan is as follows:

    
    -----------------------------------------------------------------------------------------------
    | Id  | Operation                    | Name           | Rows  | Bytes | Cost (%CPU)| Time     |
    -----------------------------------------------------------------------------------------------
    |   0 | UPDATE STATEMENT             |                |   266K|  6763K|  1756K (16)| 05:51:23 |
    |   1 |  UPDATE                      | TT_TERM_HIST   |       |       |            |          |
    |   2 |   NESTED LOOPS               |                |   266K|  6763K|   691K  (1)| 02:18:16 |
    |*  3 |    TABLE ACCESS FULL         | TT_TERM        | 44729 |   742K|   333K  (1)| 01:06:41 |
    |*  4 |    INDEX RANGE SCAN          | IRTERM_HIST_PK |     6 |    54 |     2   (0)| 00:00:01 |
    |   5 |   TABLE ACCESS BY INDEX ROWID| TT_TERM        |     1 |    17 |     3   (0)| 00:00:01 |
    |*  6 |    INDEX UNIQUE SCAN         | IRTERM_PK      |     1 |       |     2   (0)| 00:00:01 |
    -----------------------------------------------------------------------------------------------
    
    
    Predicate Information (identified by operation id):
    ---------------------------------------------------
    
    
       3 - filter(SUBSTR("LOCAL_BANKING_SYSTEM19",1,5)='FT7FC' OR
                  SUBSTR("LOCAL_BANKING_SYSTEM19",1,5)='FT7MC' OR
                  SUBSTR("LOCAL_BANKING_SYSTEM19",1,5)='FT7TM')
       4 - access("HIST"."DEAL_NUM"="DEAL_NUM")
       6 - access("TT"."DEAL_NUM"=:B1)
    

    Then, I created a function-based index table TT_TERM using the function 'SUBSTR (LOCAL_BANKING_SYSTEM19, 1, 5)' and the plan amended as follows:

    -------------------------------------------------------------------------------------------------
    | Id  | Operation                      | Name           | Rows  | Bytes | Cost (%CPU)| Time     |
    -------------------------------------------------------------------------------------------------
    |   0 | UPDATE STATEMENT               |                | 89688 |  2364K|   480K (19)| 01:36:06 |
    |   1 |  UPDATE                        | TT_TERM_HIST   |       |       |            |          |
    |   2 |   NESTED LOOPS                 |                | 89688 |  2364K|   121K  (1)| 00:24:21 |
    |   3 |    INLIST ITERATOR             |                |       |       |            |          |
    |   4 |     TABLE ACCESS BY INDEX ROWID| TT_TERM        | 15060 |   264K|  1225   (0)| 00:00:15 |
    |*  5 |      INDEX RANGE SCAN          | CS_TERM_LBS19  |  6024 |       |    17   (0)| 00:00:01 |
    |*  6 |    INDEX RANGE SCAN            | IRTERM_HIST_PK |     6 |    54 |     2   (0)| 00:00:01 |
    |   7 |   TABLE ACCESS BY INDEX ROWID  | TT_TERM        |     1 |    17 |     3   (0)| 00:00:01 |
    |*  8 |    INDEX UNIQUE SCAN           | IRTERM_PK      |     1 |       |     2   (0)| 00:00:01 |
    -------------------------------------------------------------------------------------------------
    
    
    Predicate Information (identified by operation id):
    ---------------------------------------------------
    
    
       5 - access(SUBSTR("LOCAL_BANKING_SYSTEM19",1,5)='FT7FC' OR
                  SUBSTR("LOCAL_BANKING_SYSTEM19",1,5)='FT7MC' OR
                  SUBSTR("LOCAL_BANKING_SYSTEM19",1,5)='FT7TM')
       6 - access("HIST"."DEAL_NUM"="DEAL_NUM")
       8 - access("TT"."DEAL_NUM"=:B1)
    

    Try to use the index PARALLEL is shooting to the high cost in Millions.

    UPDATE /*+ PARALLEL */ tt_term_hist hist
       SET LOCAL_BANKING_SYSTEM19 =
              (SELECT LOCAL_BANKING_SYSTEM19
                 FROM tt_term tt
                WHERE tt.deal_num = hist.deal_num)
    WHERE hist.deal_num IN
              (SELECT deal_num
                 FROM tt_term
                WHERE SUBSTR (LOCAL_BANKING_SYSTEM19, 1, 5) IN
                         ('FT7FC', 'FT7MC', 'FT7TM')) ;
    

    ----------------------------------------------------------------------------------------------------------------------------------
    | Id  | Operation                           | Name          | Rows  | Bytes | Cost (%CPU)| Time     |    TQ  |IN-OUT| PQ Distrib |
    ----------------------------------------------------------------------------------------------------------------------------------
    |   0 | UPDATE STATEMENT                    |               |  6096K|   156M|    24M (25)| 81:18:18 |        |      |            |
    |   1 |  UPDATE                             | TT_TERM_HIST  |       |       |            |          |        |      |            |
    |   2 |   PX COORDINATOR                    |               |       |       |            |          |        |      |            |
    |   3 |    PX SEND QC (RANDOM)              | :TQ10002      |  6096K|   156M|  4482   (1)| 00:00:54 |  Q1,02 | P->S | QC (RAND)  |
    |*  4 |     HASH JOIN BUFFERED              |               |  6096K|   156M|  4482   (1)| 00:00:54 |  Q1,02 | PCWP |            |
    |   5 |      BUFFER SORT                    |               |       |       |            |          |  Q1,02 | PCWC |            |
    |   6 |       PX RECEIVE                    |               |  1023K|    17M|  1225   (0)| 00:00:15 |  Q1,02 | PCWP |            |
    |   7 |        PX SEND HASH                 | :TQ10000      |  1023K|    17M|  1225   (0)| 00:00:15 |        | S->P | HASH       |
    |   8 |         INLIST ITERATOR             |               |       |       |            |          |        |      |            |
    |   9 |          TABLE ACCESS BY INDEX ROWID| TT_TERM       |  1023K|    17M|  1225   (0)| 00:00:15 |        |      |            |
    |* 10 |           INDEX RANGE SCAN          | CS_TERM_LBS19 |  6024 |       |    17   (0)| 00:00:01 |        |      |            |
    |  11 |      PX RECEIVE                     |               |  9007K|    77M|  3257   (1)| 00:00:40 |  Q1,02 | PCWP |            |
    |  12 |       PX SEND HASH                  | :TQ10001      |  9007K|    77M|  3257   (1)| 00:00:40 |  Q1,01 | P->P | HASH       |
    |  13 |        PX BLOCK ITERATOR            |               |  9007K|    77M|  3257   (1)| 00:00:40 |  Q1,01 | PCWC |            |
    |  14 |         TABLE ACCESS FULL           | TT_TERM_HIST  |  9007K|    77M|  3257   (1)| 00:00:40 |  Q1,01 | PCWP |            |
    |  15 |   TABLE ACCESS BY INDEX ROWID       | TT_TERM       |     1 |    17 |     3   (0)| 00:00:01 |        |      |            |
    |* 16 |    INDEX UNIQUE SCAN                | IRTERM_PK     |     1 |       |     2   (0)| 00:00:01 |        |      |            |
    ----------------------------------------------------------------------------------------------------------------------------------
    
    
    Predicate Information (identified by operation id):
    ---------------------------------------------------
    
    
       4 - access("HIST"."DEAL_NUM"="DEAL_NUM")
      10 - access(SUBSTR("LOCAL_BANKING_SYSTEM19",1,5)='FT7FC' OR SUBSTR("LOCAL_BANKING_SYSTEM19",1,5)='FT7MC' OR
                  SUBSTR("LOCAL_BANKING_SYSTEM19",1,5)='FT7TM')
      16 - access("TT"."DEAL_NUM"=:B1)
    

    The Pb, I train of CARS with 2 nodes. DB version details are as follows:

    SQL> select banner from v$version;
    Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
    PL/SQL Release 11.2.0.4.0 - Production
    CORE    11.2.0.4.0      Production
    TNS for Linux: Version 11.2.0.4.0 - Production
    NLSRTL Version 11.2.0.4.0 - Production
    

    Please let know us your opinion on how to optimize the query. Please let me know in case you need other inputs.

    Hello

    "The update statement is supposed to update the lines ~ 7 M." "Total number of lines are ~ 9 M."
    Could specify total number by each table? It makes sense to use "hash join" to join table?
    Try to replace 'in' also exists.

    You can try to update the join, it might help to exclude a single step to join as:

    UPDATE ( SELECT HIST.LOCAL_BANKING_SYSTEM19 OLD_VAL , TT.LOCAL_BANKING_SYSTEM19 NEW_VAL
               FROM TT_TERM_HIST HIST, TT_TERM TT
              WHERE TT.DEAL_NUM = HIST.DEAL_NUM
                AND SUBSTR (LOCAL_BANKING_SYSTEM19, 1, 5) IN ('FT7FC', 'FT7MC', 'FT7TM')
           )
    SET OLD_VAL = NEW_VAL
    ;
    

    ! WARNING! It is just not tested sample.

    WBR,

  • Deleted lines flashback: unable to read data - table definition has changed

    Hi all

    Its really Important.

    I unfortunately truncated a table using
    Trancate table mytable;

    and made an alter table to reduce the length of the pricision data.

    But I need back data of tabla

    I used the command to get the deleted lines, below, it shows error.

    query: select * from pol_tot versions between timestamp systimestamp-1 and systimestamp;
    error: ORA-01466: unable to read data - table definition has changed

    query: flashback table pol_tot to timestamp systimestamp - interval '45' minutes;
    error: ORA-01466: unable to read data - table definition has changed

    Well want to share your ideas how can I deleted thoose Records.

    Edited by: 887268 July 8, 2012 12:26

    This

    and Made a alter table to decrease data pricision length.
    

    is the cause of your error.

    Now please do what is obvious.

    -------------
    Sybrand Bakker
    Senior Oracle DBA

  • CHOOSE THE INSTALLED UPDATES

    HOW CAN I CHOOSE THE UPDATES (SENT BY ASSISTANCE FROM HP SUPPORT) TO INSTALL ON MY LAPTOP? I'M A LITTLE CAUTIOUS BECAUSE I HAD PROBLEMS TO BE CREATED ONCE THE UPDATES ARE INSTALLED.

    IN ADDITION, BECAUSE I CHOSE THE OPTION "INSTALL ALL UPDATES AUTOMATICALLY" ON THE WIZARD WHY HE LET ME KNOW TO AUTOMATICALLY INSTALL UPDATES INSTEAD?

    Thank you

    Anthi,

    Welcome to the HP Forum!

    If you're careful, you can set the HPSA to "Notify" instead of "automatic".

    Why prevent?  Most of the time, HPSA will give you good advice; It is important that you have a choice as to what is happening on your computer before that happens.  If you know beforehand that the system will be updated, you can (optionally) take the time to make sure that you have your completed backups, perhaps a new Image made, and whatever other precautions you want to take.

    ===========================================================================================

    Comment

    It is the opinion of the Expert that you should never allow the HPSA update your BIOS for you.  The update can backfire and you could find yourself with a brick system.  Yes.  The disaster is not necessarily because of the BIOS updated by the HPSA, although there is a risk to such a significant task in a program; the results can be the result of the system is not ready for the update when it is suddenly thrown on the computer, it could be due to a bad image of the BIOS, it might be simply to cause you to have external devices attached during the update conflict with the update of the BIOS.

    1. Set updates the HPSA BIOS to "ignore".
    2. Open your Web page of the computer and check to see if there is indeed a BIOS update for your computer
    3. READ the BIOS update information and decide whether or not you need the update on your computer

    If you decide to update your BIOS

    • Make sure that ALL backups are up-to-date and complete - this means that everything you need to restore the system in case something goes wrong.
    • Unplug the USB drives and other useless material.  Keyboard and mouse can stay connected.
    • Always run power cable to update the BIOS, never on the battery
    • Touch the system during the update is underway
    • Optional: leave wireless touch YOU, but turn off the router (make sure that there is no interruption)

    ===========================================================================================

    I don't know the answer to why the HPSA does not update automatically.  The program is capricious.  You could, if you want to always updates automatic, uninstall your existing HP Support Assistant to programs and features program, restart the computer and install a new copy of the program HPSA.

    HP Support Assistant

    See: use and troubleshooting of HP Update

    HP Software Update, also called HP update, is HP tool to help keep your computer up-to-date. The HP Update program research updates for HP software, drivers, firmware, BIOS, tools and utilities installed on your computer and you give the choice to install. It also updates the technical innovations such as troubleshooting tips.

  • * Dynamic * Table name in the From Clause, with the help of the cursor

    Hello
    I said a slider...
    Select the table table_name from dba_tables where < blah >
    The result is
    Row1: emp
    rwo2: emp_1-> tables have the same structure and quite different data... Please don't ask why it's like that, and we can not change...

    Now, we need to run an Insert...

    Insert into tableX (col1, col2,...) select a, b,... from < o/p of the cursor > where < blah >...
    Note: The table changes name and it the cursor can o/p emp, emp_a and emp_b.

    Trying to do at the same time instead of do series and with the best performance... .no sql injection issues.
    In parallel, I mean
    Insert into tableX (col1, col2,...) select a, b,... from emp where < blah >
    and insert tableX (col1, col2,...) select a, b,... from emp_1 where of < blah > statements at the fire parallel / at the same time to the database. If you can share the procedure if you guys already have with you... is really appreciated

    Thank you very much for your time...

    Published by: user007009 on April 27, 2013 20:33

    >
    because suppose each request took 10 minutes and we have 5 tables, then 50 minutes so executed in series and 5 minutes, if each of them both right... I'm saving this time
    >
    And that's what I'm talking about when I said that
    >
    what you're doing wrong is trying to implement solutions more possible complex for a problem that does not exist yet.
    >
    You do not HAVE a problem. You are just "assuming"; "Suppose that each query took 10 minutes... ».

    Well suppose that the time it takes to "chunk" the query, run it in parallel is longer than the time it takes to simply run the query. Oh, wait, that OF what you have discovered.

    Well, let's assume that each query took 2 seconds. Assume that all this takes that half a second. Suppose you waited until you actually have a problem.

    The solutions are to solve real problems, not imaginary and non-existent problems.

    If all you are doing is "assume that" you will never find a 'solution' because you could always 'suppose' another problem that prevents this 'solution' of work.

  • selection of a query as a table name in the reports

    Greedings,

    an example to explain what im trying to do

    allows said
    Query1: = table1. Name | | ' _Nom ';
    This result will be for example "citizen_code".

    what im trying to do is to select the specific query to obtain the required data

    Select code in: Code_P of query1@seconddatabase where...

    is it possible to do something like that?

    Thanks for your time,
    dem

    Hello

    Try to create a query such as this

    SELECT &P_COLUMN_1 COLUMN_1,
    &P_COLUMN_2 COLUMN_2,
    &P_COLUMN_3 COLUMN_3,
    &P_COLUMN_4 COLUMN_4
    FROM &table_name
    

    Note You must create the user settings before you create the query, and also all the column setting and the name of the table must have the valid default value.

    Best regards

    Arif Khadas

  • How to get a list of the names of a query table?

    Hello

    I use Oracle 10 g. I have about 100 SQL queries stored in a table. I would like to know if there is an easy way to retrieve the source tables in each query.
    For example:
    I have a query "SELECT * FROM Table1 t1 INNER JOIN Table2 t2 ON t1.col1 = t2.col1.
    This query, I would automatically get a list of tables:
    Table1:
    Table2

    Thanks in advance for your collaboration.

    Best regards
    Beroetz

    This query, I would automatically get a list of tables:

    Make a plan to explain on the query.

    The name of the object will be in the OBJECT_NAME column in your PLAN_TABLE.

    But the name of the object can be a table or an index so you'll need to join the user_objects this name to see if it is a table or index name.

    You will also need to take into account those moments where a query can be satisfied by only using the index. You can always get the name of the table glancing user_indexes.

  • How to optimize the update statement so that the query is reading the same table?

    Hi all

    I have a process with the following UPDATE statement:

    Sales_val update

    SET ship_date =)
    Select max (hist.ship_date)

    FROM sales_hist hist

    WHERE hist. X_ID = A.X_ID

    AND hist. X_VAL = A.X_VAL)

    ) WHERE EXISTS (select * from sales_hist hist where )

    WHERE hist. X_ID = A.X_ID

    AND hist. X_VAL = A.X_VAL

    )

    sales_val - 50 lines mln (unique index)

    sales_hist - 20 mln ranks (unique index)

    I met many problems with waits and locks - how to optimize to avoid locks using the parameters of tables or changes of the declaration? or maybe is there another way to do optimization ?

    Kind regards

    Bolo

    Thank you for that. Collect in bulk Unfortunatelly + FORALL does not work with the types in 10g - solution is to use the FOR loop and is not as effective as FORALL in many cases. I do still some tests to solve this problem - I'll put you once it's done.

    EDIT: hash partitioning + fusion - 3-5 minutes (time), so for now it's the solution to the problem. Thank you all for the great discussion!

Maybe you are looking for