Accelerate the selection * of a table

Hi all

OS: RHEL

DB: 11 gR 2

Is it possible that we can accelerate the selection * of a table?

Kind regards

$phinx19 wrote:

Hi all

OS: RHEL

DB: 11 gR 2

Is it possible that we can accelerate the selection * of a table?

Kind regards

# If it is everything you write, you get a full table scan independently of all the indexes that exist on this table:

SQL > create table (yazflutt)

snorm number 2.

3 gleezle varchar2 (40),

date of Halloween 4,

Number 5 art);

Table created.

SQL >

SQL > start

2 for i in 1.10000 loop

3. insert into yazflutt

4 values (i, 'pourles yinko' |) I |'! (', sysdate - I, i);

5 end of loop;

6

7 validation;

8 end;

9.

PL/SQL procedure successfully completed.

SQL >

SQL > set autotrace on

SQL >

SQL > select * from yazflutt;

SNORM GLEEZLE HALLOWEEN ART

---------- ---------------------------------------- --------- ----------

yinko 567 567 pourles!                        15 APRIL 14 567

yinko 568 568 pourles!                        14 APRIL 14 568

...

9982 yinko 9982 pourles!                       5 JULY 88 9982

9983 pourles yinko 9983!                       4 JULY 88 9983

9984 yinko 9984 pourles!                       3 JULY 88 9984

9985 pourles yinko 9985!                       2 JULY 88 9985

9986 yinko 9986 pourles!                       1 JULY 88 9986

9987 yinko 9987 pourles!                       30 JUNE 88 9987

9988 yinko 9988 pourles!                       29 JUNE 88 9988

SNORM GLEEZLE HALLOWEEN ART

---------- ---------------------------------------- --------- ----------

9989 yinko 9989 pourles!                       9989 JUNE 28, 88

yinko 9990 9990 pourles!                       JUNE 27 88 9990

9991 yinko 9991 pourles!                       9991 26 JUNE 88

9992 yinko 9992 pourles!                       25 JUNE 88 9992

9993 yinko 9993 pourles!                       9993 JUNE 24, 88

9994 yinko 9994 pourles!                       23 JUNE 88 9994

9995 pourles yinko 9995!                       9995 22 JUNE 88

yinko 9996 9996 pourles!                       JUNE 21 88 9996

9997 yinko 9997 pourles!                       20 JUNE 88 9997

9998 pourles yinko 9998!                       9998 19 JUNE 88

yinko 9999 9999 pourles!                       18 JUNE 88 9999

SNORM GLEEZLE HALLOWEEN ART

---------- ---------------------------------------- --------- ----------

10000 pourles 10000 yinko!                      JUNE 17, 88 10000

10000 selected lines.

Execution plan

----------------------------------------------------------

Hash value of plan: 2573332187

------------------------------------------------------------------------------

| ID | Operation | Name | Lines | Bytes | Cost (% CPU). Time |

------------------------------------------------------------------------------

|   0 | SELECT STATEMENT |          | 10000 |   556K |    10 (10) | 00:00:01 |

|   1.  TABLE ACCESS FULL | YAZFLUTT | 10000 |   556K |    10 (10) | 00:00:01 |

------------------------------------------------------------------------------

Note

-----

-the dynamic statistics used: dynamic sampling (level = 2)

Statistics

----------------------------------------------------------

9 recursive calls

0 db block Gets

795 consistent gets

0 physical reads

0 redo size

488545 bytes sent via SQL * Net to client

7877 bytes received via SQL * Net from client

668 SQL * Net back and forth to and from the client

0 sorts (memory)

0 sorts (disk)

10000 rows processed

SQL >

SQL > set autotrace off

SQL >

SQL > create index yazflutt_idx1 on yazflutt (snorm);

The index is created.

SQL >

SQL > create index yazflutt_idx2 on yazflutt (gleezle);

The index is created.

SQL >

SQL > create index yazflutt_idx3 on yazflutt (hopple);

The index is created.

SQL >

SQL > create index yazflutt_idx4 on yazflutt (art);

The index is created.

SQL >

SQL > exec dbms_stats.gather_table_stats (user, 'YAZFLUTT',-online true waterfall, estimate_percent-online null)

PL/SQL procedure successfully completed.

SQL >

SQL > set autotrace on

SQL >

SQL > select * from yazflutt;

SNORM GLEEZLE HALLOWEEN ART

---------- ---------------------------------------- --------- ----------

yinko 567 567 pourles!                        15 APRIL 14 567

yinko 568 568 pourles!                        14 APRIL 14 568

yinko 569 569 pourles!                        APRIL 13, 14 569

...

9983 pourles yinko 9983!                       4 JULY 88 9983

9984 yinko 9984 pourles!                       3 JULY 88 9984

9985 pourles yinko 9985!                       2 JULY 88 9985

9986 yinko 9986 pourles!                       1 JULY 88 9986

9987 yinko 9987 pourles!                       30 JUNE 88 9987

9988 yinko 9988 pourles!                       29 JUNE 88 9988

SNORM GLEEZLE HALLOWEEN ART

---------- ---------------------------------------- --------- ----------

9989 yinko 9989 pourles!                       9989 JUNE 28, 88

yinko 9990 9990 pourles!                       JUNE 27 88 9990

9991 yinko 9991 pourles!                       9991 26 JUNE 88

9992 yinko 9992 pourles!                       25 JUNE 88 9992

9993 yinko 9993 pourles!                       9993 JUNE 24, 88

9994 yinko 9994 pourles!                       23 JUNE 88 9994

9995 pourles yinko 9995!                       9995 22 JUNE 88

yinko 9996 9996 pourles!                       JUNE 21 88 9996

9997 yinko 9997 pourles!                       20 JUNE 88 9997

9998 pourles yinko 9998!                       9998 19 JUNE 88

yinko 9999 9999 pourles!                       18 JUNE 88 9999

SNORM GLEEZLE HALLOWEEN ART

---------- ---------------------------------------- --------- ----------

10000 pourles 10000 yinko!                      JUNE 17, 88 10000

10000 selected lines.

Execution plan

----------------------------------------------------------

Hash value of plan: 2573332187

------------------------------------------------------------------------------

| ID | Operation | Name | Lines | Bytes | Cost (% CPU). Time |

------------------------------------------------------------------------------

|   0 | SELECT STATEMENT |          | 10000 |   341K |    10 (10) | 00:00:01 |

|   1.  TABLE ACCESS FULL | YAZFLUTT | 10000 |   341K |    10 (10) | 00:00:01 |

------------------------------------------------------------------------------

Statistics

----------------------------------------------------------

1 recursive calls

0 db block Gets

725 consistent gets

0 physical reads

0 redo size

488545 bytes sent via SQL * Net to client

7877 bytes received via SQL * Net from client

668 SQL * Net back and forth to and from the client

0 sorts (memory)

0 sorts (disk)

10000 rows processed

SQL >

SQL > set autotrace off

SQL >

Whatever the index in place a ' select * ' makes a full table scan, period.  Unless you can optimize your storage space, memory, or even use version 11.2 laters results cache and there is not a lot you can do.

David Fitzjarrell

Tags: Database

Similar Questions

  • How to revoke the SELECT on a table for a specific user?

    Environment:

    SQL * 3.1 on Windows XP Pro SP3 Developer to connect to Oracle 11.2.0.3 EE on Solaris 10.5.

    I have table T with SELECTION privilege granted on this issue both a role and a specific user.

    I am using SQL * Developer to revoke the privilege SELECT on this table of the individual user and leave the role.

    I can see how to revoke the role by right-clicking on the table and goes to the privileges-> revoke but I can't find where to choose a specific user to revoke of.

    Any help is greatly appreciated!

    -gary

    Hi Gary,.

    You are probably aware of the SQL syntax of base to make grant and revoke of SQL * more or the SQL Developer Worksheet:

    grant select on .T to ;
    revoke select on .T from ;
    

    To reach the equivalent to revoking of SQL Developer Connection Navigator...
    1. open the connection for
    2 expand the Tables node, and then open the object for table T browser.
    3. click on the grants tab and then, in its toolbar, select Actions->-> Revoke privileges
    4. Select in the drop-down list of the dialog box to remove user Action.
    5 shuttle privilege SELECT from the right back to the left, and then click apply.

    One would expect to be able to do the same thing from say the node under the node for the use of the SYSTEM for other users, but this isn't the case.

    Hope this helps,
    Gary Graham
    SQL development team

  • Is to select a view that is more effective than the selection of multiple tables

    Hi here is the problem

    Lets say I created a view of 2 tables (person and information). both have an ID column
    create view table_view (age,name,status,id) as
    select a.age, a.name, b.status, b.id
    from person a, info.b
    where a.id=b.id
    If I want to select a range of values of these 2 tables including the following queries would be more effective.
    select a.age, a.name, b.status, b.id
    from person a, info.b
    where a.id=b.id
    and a.id <1000
    select age, name, status, id
    from table_view
    where  id <1000

    No, this is not true.

    A view is just a request. As any issue, you must run from the SQLPlus command line or any client application. The only difference is that the text of the query is saved in the database so that you do not have to re - enter type this in your query.

    Once the request is submitted the optimizer doesn't bother if it comes from a view or a user by entering the text of the entire query again on the SQLPlus command line.

    See "Mechanics views" to http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/schema.htm#sthref804

    Published by: Hemant K grapple on November 3, 2008 14:40

  • How to disable the datepicker based on the selection in a table list

    I created an example on

    https://Apex.Oracle.com/pls/Apex/f?p=85310:23:9121532652163:

    follow-up

    https://community.Oracle.com/thread/1119800

    but no luck

    My needs: -.

    with selection N dymanic action datepicker should be disabled

    and now, I think I need help.

    anyone if possible have a look what I'm doing wrong

    Hi ReemaPuri,

    Check your application on apex.oracle.com. The problem is resolved.

    Here are the steps:

    • Page-> section JavaScript attributes-> function and Global Variable declaration drafted according to the javascript function:
    function f_disableDtPicker (pThis) {
        var row_val = pThis.value;
        var row_id = pThis.id.substr(4);
        if (row_val == 'N') {
            // disable datepicker input
            $('#f04_'+row_id).attr("readonly", true).addClass('apex_disabled');
            // disable datepicker icon
            $('#f04_'+row_id).next('button.ui-datepicker-trigger').addClass('apex_disabled').unbind('click');
        } else {
            // disable datepicker input
            $('#f04_'+row_id).attr("readonly", false).removeClass('apex_disabled');
            // disable datepicker icon
            $('#f04_'+row_id).next('button.ui-datepicker-trigger').removeClass('apex_disabled').unbind('click');
        }
    }
    
    • Changed your SQL query from:
    select APEX_ITEM.SELECT_LIST(1,'Y','Yes;Y,No;N','class=myclass" onchange="f_disableDtPicker(this);"')yn ,
    APEX_ITEM.DATE_POPUP2 (
               P_IDX                   => 4,
               P_VALUE                 => NULL,
               P_DATE_FORMAT           => 'DD-MON-RR',
               P_SIZE                  => 10,
               P_MAXLENGTH             => 256,
               P_ATTRIBUTES            => NULL,
               P_ITEM_ID               => 'f04_'||ROWNUM,
               P_ITEM_LABEL            => 'Label for f04_'||ROWNUM,
               P_DEFAULT_VALUE         => NULL,
               P_MAX_VALUE             => NULL,
               P_MIN_VALUE             => NULL,
               P_SHOW_ON               => 'both',
               P_NUMBER_OF_MONTHS      => NULL,
               P_NAVIGATION_LIST_FOR   => 'MONTH_AND_YEAR',
               P_YEAR_RANGE            => '-5:+5',
               P_VALIDATION_DATE       => NULL ) "date "
    from dual;
    

    to do this:

    select APEX_ITEM.SELECT_LIST(
            p_idx           =>   1,
            p_value         =>   'Y',
            p_list_values   =>   'Yes;Y,No;N',
            p_attributes    =>   'class=myclass" onchange="f_disableDtPicker(this);"',
            p_show_null     =>   'NO',
            p_null_value    =>   NULL,
            p_null_text     =>   NULL,
            p_item_id       =>   'f01_'||ROWNUM,
            p_item_label    =>   'Label for f01_'||ROWNUM,
            p_show_extra    =>   'YES') yn ,
    APEX_ITEM.DATE_POPUP2 (
               P_IDX                   => 4,
               P_VALUE                 => NULL,
               P_DATE_FORMAT           => 'DD-MON-RR',
               P_SIZE                  => 10,
               P_MAXLENGTH             => 256,
               P_ATTRIBUTES            => NULL,
               P_ITEM_ID               => 'f04_'||ROWNUM,
               P_ITEM_LABEL            => 'Label for f04_'||ROWNUM,
               P_DEFAULT_VALUE         => NULL,
               P_MAX_VALUE             => NULL,
               P_MIN_VALUE             => NULL,
               P_SHOW_ON               => 'both',
               P_NUMBER_OF_MONTHS      => NULL,
               P_NAVIGATION_LIST_FOR   => 'MONTH_AND_YEAR',
               P_YEAR_RANGE            => '-5:+5',
               P_VALIDATION_DATE       => NULL ) "date "
    from dual;
    

    Kind regards

    Kiran

  • Writing table to the selected line in the table table

    Hello

    im stuck on trying to display a line of data that I took from an excel file.

    display just the data on an array of table has no problem, BUT when I use the Index table and Replace the function subset of table, no data out.

    so, Table3 has the data I want but Table2 have no data at all.

    IM using the Index table and the function Replace subset of table to allow me to SELECT the LINE I want to be shown on

    any idea?

    Hey!

    Try this...

    I use the array function to remodel to change the extracted Excel from 2D to 1 d. Then you can replace all right in your table.

    -Rkll

  • Returns the selected table column header

    I don't know there is probably a way to do this.  But I have not yet found.

    I am building an application that will act as a sort of "universal" reports generator for a MySQL database tables.

    At startup, a drop-down list box is filled with the names of tables in the database.  When the user selects one of these tables, the column names are taken from the base and used to fill the column headers for the table of LabVIEW.

    The idea is that the user can select this column and enter the constraints of filter in a text box.  These constraints will then be added to the WHERE statement for this column.

    So far I've been able to find a way to return the Active cell or a selection of cells, when the user clicks on the actual data of the table.

    Is there a direct way to retrun a selected in LabVIEW column header value?

    I am dreaming that there may be some sort of workaround using transparent controls over the headers.  But because different tables will have a different number of columns that the user defines the width, I'm not really sure that it will work more.

    If you the editable headers, this allows Active cells specify that your column is - 1 column selected active line is the selected column. You may need to use the mouse down? to filter the possibility for the user to change the right column headings.

  • Windows cannot be installed to this disk. The selected disk is a MBR patition table.

    I recently bought a desktop computer with Windows 7 Home Premium x 64 preinstalled (OEM). I tried to install Windows 7 Ultimate x 64 on this computer, but I received the following error message:

    Windows cannot be installed to this disk. The selected disk is a MBR partition table. On EFI systems, Windows cannot be installed to GPT disks.

    The 1 TB of HARD drive on this computer has three partitions:

    NTFS SYSTEM 100 - healthy (System, the Active Primary Partition)

    OPERATING SYSTEM (C :)) 9148.04 GB NTFS - healthy (start, page file, crash dump, primary Partition))

    HP_RECOVERY (D :)) 13.37 GB NTFS - healthy (Primary Partition))

    Please advice. Thanks in advance.

    I'm trying to install a new copy of Windows.

    Disconnect your 2nd monitor temporarily, then go to your computer manufacturer's support web site and search for Windows 7 drivers for your specific model number.

    If there are Windows 7 drivers, then to download to a folder on your hard drive and install all of them, starting with the card drivers mother/chipset, SATA, LAN, Audio, USB, graphics, Webcam, Etc., and so on.

    List of computer manufacturer support sites:
    http://Windows.Microsoft.com/en-us/Windows/help/contact-support/computer-manufacturers

    If you have an Intel motherboard, you can try the Intel driver update utility: http://www.intel.com/support/detect.htm?iid=dc_iduu

    Tips for solving common driver problems
    http://Windows.Microsoft.com/en-us/Windows7/tips-for-fixing-common-driver-problems
    Vista: http://windows.microsoft.com/en-US/windows-vista/Tips-for-fixing-common-driver-problems

    Graphics/video drivers:
    Check the download site of the manufacture of the graphics card for the latest Windows 7 drivers for your card.
    ATI: http://support.amd.com/us/gpudownload/Pages/index.aspx
    NVIDIA: http://www.nvidia.com/Download/index5.aspx?lang=en-us

    J W Stuart: http://www.pagestart.com

  • ADF table selected displayRow does not display the selected line

    Hello

    JDev 11.1.2.4

    I have a table with selection enabled and displayRow property the value selected. In the workflow, I have an ExecuteWithParams activity, and then a method activity that restores the current iterator of the line. Finally the activity view that displays the table.

    Restore the current line with key

    Iterator DCIteratorBinding = ADFUtils.findIterator ("MyIterator");

    iterator.setCurrentRowWithKey (currentKey); currentKey is a string

    The question I have is that the current line is properly restored, but the table does not display the page of "range" of the current line while the displayRow is the selected value. My table has 500 rows, the table displays the top 25 while the current line is the 500th line. I expect the table to display the line 475 to 500 line.

    What I am doing wrong?

    Thank you

    You can save the index lines before executing your method and then set the iterator to this index.

    The technique is described in this blog https://tompeez.wordpress.com/2016/02/12/naviagting-an-aftable-in-pagination-mode-from-a-bean/

    Timo

  • How to manage the selection with the box in a table

    Hello


    JDev 11.1.2.4

    I have a table with an attribute of EO/VO, transitional to manage the selection. This attribute is displayed as a check box. The user makes a selection by clicking on the checkbox. Then, the user clicks on a button that displays a pop-up window. Inside of this pop-up window, that user can create, insert, delete, or update values in a table based on an other EO/VO.

    When the user clicks OK, the pop-up window is closed, then the data is committed.

    When the user clicks Cancel, the popup is closed and the changed data are ignored. To remove the data, I call a Rollback. It works fine, but all the transitory values are lost which is correct because of the discount after the cancellation.

    It's a problem because the user must be able to open the pop-up window several times with the same selection. This means that the restoration is not appropriate in this case.

    How to ignore data edited inside the pop-up window and keep the selection?

    Thank you

    You can try to put the popup in his own taskflow and define a backup point before entering the taskflow. When the user cancel the editing restore you to previous backup. This should dispel the changes.

    Or you save the selected rowkeys, call rollback and backward selection later.

    Timo

  • Windows cannot be installed to this disk. the selected disk is a MBR partition table. The EFI system, Windows cannot be installed on GPT disks

    Server 8 installation error "Windows cannot be installed to this disk. the selected disk is a MBR partition table. The EFI system, Windows cannot be installed to GPT disks.

    How do I resolve this problem and install windows 8 as usual? I have several partitions with data... I don't want to delete all partitions and create partitions from scratch and install the os...

    How to get there?

    Windows cannot be installed to this disk. the selected disk is a MBR partition table. The EFI system, Windows cannot be installed to GPT disks.

    This could happen not only windows 8, but also windows 7, windows Server 2008, or 8 server 2008 R2... Troubleshooting steps will be similar for all windows to get this problem...

    I had this problem when installing server 2008 r2 on a dell... T110 server without remove the other partitions or lose all the data on the other drivers, you can solve this problem...

    simply, I have followed these steps using gparted and solved my problem... These measures will be useful for anyone with similar problem... . All the steps that I've documented here... All the steps I've documented here...

    https://www.pcandtablet.com/Windows-8-errors-and-crashes/846/Windows-cannot-be-installed-to-this-disk-the-selected-disk-has-an-MBR-partition-tabl.html

  • "missing the SELECT keyword" error during an insert into the temporary table using the blob value

    I'm trying to insert into an oracle temp table using select that retrieves data from a blob field but I get the error: "lack the SELECT keyword.

    How we store temporary in oracle result when we make this type of operation (extraction of data in fields and try to load them into a separate table on the fly.?)

    with cte as)

    Select user_id, utl_raw.cast_to_varchar2 (dbms_lob.substr (PREFERENCES)) as USER my_blob

    )

    create table new_table as

    SELECT user_id,EXTRACTvalue(xmltype(e.my_blob),'/preferences/locale') regional settings

    E ETC

    ----------------------------------------------------------------------------------

    BLOB data - value - which is

    <? XML version = "1.0" encoding = "ISO-8859-1" ?>

    - < Preferences >

    < time zone > America/New_York < / > zone

    < displayscheduleinusertimezone > Y < / displayscheduleinusertimezone >

    < local > Spanish < /locale >

    < DateFormat > JJ/mm/aaaa < / DateFormat >

    < timeFormat > hh: mm aaa < / timeFormat >

    < longformat > Long_01 < / longformat >

    < doubleformat > Double_01 < / doubleformat >

    < percentformat > Percentage_01 < / percentformat >

    < currencyformat > Currency_01 < / currencyformat >

    < / Preferences >

    A WITH clause that must immediately precede the SELECT keyword:

    SQL > create table t:

    2 with the o as (select double dummy)

    3 select * West longitude;

    Table created.

  • Is it possible to create a shuttle component in Oracle ADF, where the available and selected lists are tables of the adf?

    Hi all


    We use JDeveloper Studio Edition Version 12.1.3.0.0 and deployed on GlassFish Server Open Source Edition 3.1.2.2 (build 5) and connect to the SQLServer database.


    Is it possible to create a shuttle component in Oracle ADF, where the available and selected lists are tables of the adf?



    I did a POC sample on it. I can share with you. I can't put in my dropbox because dropbox is blocked in my network. Share your email. I'll send the POC through

  • Enter the selected line only an editable af:table ADF

    Hello

    We have an obligation to engage only the selected lines in a table. All lines in the table must be modifiable. There should be a 'Save' button in a column that has to save the selected line when you click it.

    Could you please share your comments/suggestions.

    Environment:

    JDeveloper and ADF 11.1.1.7

    Thank you

    Srikanth

    Maybe you can add the attribute transitional to EO as an indicator whether the line should be validated in db or not, override EOImpl.doDML () and skip super.doDML () If this attribute is not set.

    Dario

  • How to get the selected row in a programmatic table of the ADF (table generated from a bean)

    Hi all


    We use JDeveloper Studio Edition Version 12.1.3.0.0 and deployed on GlassFish Server Open Source Edition 3.1.2.2 (build 5) and connect to the SQLServer database.


    How to get the selected line in a programmatic (using a SortableModel custom not a display object) ADF table (generated from a bean)?


    We are trying to get the selected row in a bean of a programmatic ADF table to retrieve data based on the selected line.


    Any idea?

    Well, you can use selectionListener to set the selected line to a variable of bean (but this bean must be in extended view or some superiors)

    Something like this: http://www.awasthiashish.com/2015/07/get-selected-row-singlemultiple-from.html

    Dario

  • Select the data in a table and update in another table

    Dear experts,

    create the table TB_ENCRYPT

    (

    Identification number,

    Varchar2 (200) KEY

    );

    INSERT INTO TB_ENCRYPT VALUES(1,'HJUVHDUIFBSDGVU');

    SELECT * FROM TB_ENCRYPT;

    1 HJUVHDUIFBSDGVU

    create TABLE users)

    username, NUMBER of

    password VARCHAR2 (200)

    );

    Insert users

    values (1, 123 # "")

    Insert users

    values (2, 456 #')

    Select * from users;

    1 123 #.

    # 2 456

    I want to select the data KEY for table TB_ENCRYPT column and update in the column of tables for the respective key user password

    TB_ENCRYPT table contains only a single key value. Comparing this key, I want to update the old value of the key to the new value.

    For encryption and decryption I followed the java class method.no is worried about that.

    create or replace

    PACKAGE PCK_ENC AUTHID CURRENT_USER AS

    FUNCTION DECRYPT (VARCHAR arg0, arg1 VARCHAR) AS VARCHAR BACK LANGUAGE JAVA NAME 'Encrclass.decrypt (java.lang.String, java.lang.String) return java.lang.String ';

    FUNCTION ENCRYPT (VARCHAR arg0, arg1 VARCHAR) AS VARCHAR BACK LANGUAGE JAVA NAME 'Encrclass.encrypt (java.lang.String, java.lang.String) return java.lang.String ';

    END;

    SELECT PCK_ENC. ENCRYPT('1234','HJUVHDUIFBSDGVU') FROM DUAL;

    HERE,

    1234 - is the password of the users table column data

    HJUVHDUIFBSDGVU - represents the key of table TB_ENCRYPT column data.

    Comparing this key, I want to update the old value of the key to the new value.

    I tried with this method

    declare

    cursor c1 is

    Select the key

    of TB_ENCRYPT

    where id = 1

    update the id;

    Start

    for c1_rec looping c1

    update users

    password is PCK_ENC. Encrypt (Password, Key)

    the location being c1;

    commit;

    end loop;

    end;

    /

    Help, please

    You can use the MERGE statement.

    merge into users
    using tb_encrypt
       on (id = userid)
      when matched then
          update set password = PCK_ENC.ENCRYPT(password,key);
    

    And why you encrypt your password. This isn't a good idea. Just password hash.

Maybe you are looking for

  • Satellite X 200-21 k: Vista display driver need to play games

    Is there a driver for the display that will work with Vista?Is there any game or 3d application that works fine? I tried about 30 different versions, I tried official (failures even in vista will not work correctly it gives a driver error every minut

  • Presario CQ57: Forget the password theBios

    I have set up a Bios password now, I entered the wrong password more than 3 times. Disable System [94198624] How can I reset it, or a workaround? Thank you.

  • Iconia W1-801 does not illuminate

    Hello everyone. Yesterday, I bought a W1-801 Iconia. Everything was fine, I started the unit, I 'played' with her a little, and then I went to sleep and put the tablet to reload when he was installing Visual Studio. This morning, I've unlocked the Ta

  • Vista won't start does not correctly

    I just reinstalled Vista OS because my computer just kept a loop saying a recent hardware or software installation may cause a problem but I haven't installed hardware or software. After the reinstallation of Vista, I still get the same loop, but it

  • Xoom without WIFI or 3G (loading software, help, etc.)

    I am in Afghanistan. I bought a Xoom us and you want to use this thing here. There is no WIFI here where I am, which is also not a PPPoE client to authenticate to the provider that offers Internet here. I am unable to make a WIRELESS connection on my