What privs r required to run Alter table truncate partition update indexes?

I rebuilt the indexes on the table. Know my problem is that when I truncate a partition on the table the unique index whic consist of the primary key fields becomes unusable which causes my to have to rebuild it after each truncate. I tried to runm the following statement from the master schema on but get
an insufficient privs error when I use "update indexes":
Alter table schema_name.table_name truncate partition partition_name storage update indexes;
What priv does master need to perform statement successfully when there's data in it?
Does using 'update indexes' needs extra priveleges?
Thanks in Advance
Gagan

Hi Its Oracle 10.2.0.4 64 Bit on HP UX.
I dont have the exact error as I got this much information only from the end user....It will be couple of hours more then he will be available again
ok so for Truncate we need 'Drop any' privs but to use clause 'update indexes' alongwith do we need some extra privelege?
Thanks again
Gagan

Similar Messages

  • SAP HANA - How to run alter table statement in HANA procedure?

    I am trying to run alter table statement in a procedure. HANA gives error saying
    SAP DBTech JDBC: [257] (at 1338): sql syntax error: ALTER TABLE is not allowed in SQLScript: line 36 col 8 (at pos 1338)
    How to run alter table statements in procedure?
    Thanks,
    Suren.

    Hi Rich Heilman,
    Thanks for your response.  I have tried with dynamic SQL. I am trying to add partitions to a non portioned table.
    EXECUTE IMMEDIATE 'ALTER TABLE ' || :SCHEMA_NAME || '.TARGET_TABLE PARTITION BY RANGE (TARGET_TYPE_ID) (PARTITION VALUE = 1, PARTITION VALUE = 2, PARTITION VALUE = 3, PARTITION VALUE = 4, PARTITION OTHERS)';
    Execution fails with error
    Could not execute 'CALL PARTITION_TARGET_TABLE('SUREN_TEST')' in 1.160 seconds .
    [129]: transaction rolled back by an internal error:  [129] "SUREN_TEST"."PARTITION_TARGET_TABLE": line 53 col 3 (at pos 2173): [129] (range 3)
    Any reasons for this error?
    Thanks,
    Suren.

  • What roles are required to run the export import?

    Hi,
    I want some info on roles are required to run the export import.
    I have done the following in sys user:
    GRANT EXP_FULL_DATABASE TO IMP_TEST
    GRANT IMP_FULL_DATABASE TO IMP_TEST
    But Doing the above command the IMP_TEST will get all priviles (also the system tables)
    Is there any mechanism to restrict the user to export and import only the tables not anything?
    Thanks and Regadrs

    Hi!
    If you create a user like this
    CREATE USER imp_test identified by password;then the user will be able to import or export only its own schema. If you grant the exp_full_database and imp_full_database roles to this user like you did then the use will be able to export or import the hole database (with SYS schema). But as far as I know you can't set any more restrictions to the user.
    yours sincerely
    Florian W.

  • What software is required for running Flex?

    For flash to run on a webserver, we just need to place the .swf file on to the web server. No install required at the web server.
    How about Flex? do we need to install a specific webserver? is there a server side coding or to run a ISAPI filter for windows? Insights would be appreciated?
    Also for a developer what will be required to start of Flex development? Do we need to buy software from Adobe? or is it just a Scripting language that we can run on any windows pc?
    thanks,
    ninja-e
    Software Development Services
    Web Design
    Web Development

    There is no special server required. You simply drop the compiled swf file onto whatever server you are running.
    Think of Flex as the client-side UI. Generally you communicate with some sort of server-side code through standard services such as SOAP or REST. It can does this directly or you can route through JavaScript for another layer of maintainability (so you don't necessarily have to recompile if something on the server-side changes).
    The Flex SDK is a free, opensource project:
    http://opensource.adobe.com/wiki/display/flexsdk/Flex+SDK
    Adobe of course offers their own pay IDE for it which is Flash Builder 4 (formerly Flex Builder). It is an Eclipse-based standalone or plugin. However, it is of course not required and you can easily get by without it.You can use any text editor, but in terms of a free the strongest option is FlashDevelop which is opensource and runs on .NET. There are free plugins for Eclipse and NetBeans, but they are very weak.
    http://www.flashdevelop.org

  • What cast is required to run this code ?

    public class tempClass {
    public static void main(String[] args) {
    Object object = new Object();
    double goodBoy[] = new double[10];
    double badBoy[][] = new double[1][10];
    goodBoy[0] = 1.0;
    goodBoy[1] = 2.0;
    goodBoy[2] = 3.0;
    goodBoy[3] = 4.0;
    goodBoy[4] = 5.0;
    goodBoy[5] = 6.0;
    goodBoy[6] = 7.0;
    goodBoy[7] = 8.0;
    goodBoy[8] = 9.0;
    goodBoy[9] = 10.0;
    object = goodBoy;
    badBoy = object; //what cast is required here ?
    System.out.println(badBoy[0][1]);
    }

    you also might consider this, which seems like it might meet the original intent better:
      public static void main(String[] args) {
        double goodBoy[] = new double[10];
        double badBoy[][] = new double[1][10];
        goodBoy[0] = 1.0;
        goodBoy[1] = 2.0;
        goodBoy[2] = 3.0;
        goodBoy[3] = 4.0;
        goodBoy[4] = 5.0;
        goodBoy[5] = 6.0;
        goodBoy[6] = 7.0;
        goodBoy[7] = 8.0;
        goodBoy[8] = 9.0;
        goodBoy[9] = 10.0;
        badBoy[0] = goodBoy;
        System.out.println(badBoy[0][1]);
      }

  • What is the version of grant alter table, drop table to user in Oracle 10g?

    Hi,
    Oracle support "grant alter table and drop table" before, but I get the "invalid privilege" error in Oracle 10g. Oracle 10g have the "DROP ANY TABLE" and "Alter any table". Is these two means can drop and alter tables belonging to other users? How do I grant the total control (CRUD) of tables in the owner's schema to the owner in Oracle10g?
    Thanks,
    Jiang

    CREATE TABLE privilege grants complete control on owner's tables :
    SYS@db102 SQL> create user test01 identified by test01;
    User created.
    SYS@db102 SQL> grant create session, create table to test01;
    Grant succeeded.
    SYS@db102 SQL> alter user test01 quota unlimited on users;
    User altered.
    SYS@db102 SQL> conn test01/test01
    Connected.
    TEST01@db102 SQL> create table test(a number);
    Table created.
    TEST01@db102 SQL> alter table test add(b varchar2(100));
    Table altered.
    TEST01@db102 SQL> drop table test purge;
    Table dropped.
    TEST01@db102 SQL>                                                      

  • High wait on Library Cache Lock while doing ALTER TABLE EXCHANGE PARTITION

    We are observing a very high wait time on "Library cache lock" while performing Exchange partition.
    Here we go
    ALTER TABLE PSALESREG EXCHANGE PARTITION P123
    WITH TABLE PBKPSALESREF WITHOUT VALIDATION
    call count cpu elapsed disk query current rows
    Parse 1 0.00 0.00 0 0 0 0
    Execute 1 0.11 *6684.73* 2 9 2 0
    Fetch 0 0.00 0.00 0 0 0 0
    total 2 0.11 6684.73 2 9 2 0
    Misses in library cache during parse: 1
    Optimizer mode: ALL_ROWS
    Elapsed times include waiting on following events:
    Event waited on Times Max. Wait Total Waited
    ---------------------------------------- Waited ---------- ------------
    library cache lock 2274 3.12 *6681.32*
    Is it a bug? is anyone there who experienced the same issue?
    Rgds

    Maurice Muller wrote:
    Hi,
    As far as I remember a exchange partition can only be done when no other query is accessing the table.
    So you should check if any other queries are executed against the table PSALESREG while you do the exchange partition. Maurice,
    queries won't block the exchange operation but continue to read from the "original", exchanged segment; this "cross-DDL" read consistency is a feature that has been introduced a long time ago.
    But any kind of (long-running) DML should effectively prevent the exchange operation. Still I would assume that this shouldn't show up as "library cache lock", but you would get an "ORA-00054: resource busy" error.
    Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

  • What setup is require to run a consumption-based planning

    Dear all,
    I know there is a two way to run Consumption-Based Planning in standard SAP:
    1 - Forecast-based Planning, and
    2 - Re-order point Planning.
    My question is what is the configuration setup and material master value maintenance require for the above two procedures?
    Thanks
    Tuffy

    In Material Master
    MRP 1 view choose the
    MRP type
    VB - Manual reorder point or
    VM - automatic reorder point
    Reorder point
    Regards

  • Newbie: What UIcomponents are required to create my table and how?

    Hi,
    ** Not the CODE, I just want roughly what components need and how is the mechanism in JSF.**
    Sorry, I really have no idea.
    Meal Option: Beef, Chicken, Fish
    | Name | Morning | Lunch | Dinner |
    | Peter | | | |
    | Mary | | | |
    I want to write a table, if Peter login, he can select which one of meal option he want to eat in every meal. But he cannot select the options for Mary, and others rows/selections are fade. And other people can add themselves in the table.
    Using UISelectOne seems ugly. Do I have other option?
    How to fade the selection?
    Where can I get some calendar component? So that people can select specific date.

    I am not sure about the functional requirement, but I can at least tell that you can use either h:dataTable or h:panelGrid for a tabular display.
    About the calendar component, at least Tomahawk and RichFaces have one.

  • What are the requirements to run a Swing application?

    I'm trying to send a simple swing application to a friend that has Mac OSX, but the buttons don't show up.
    Do people actually need the Java SDK in order for swing apps to work? Or is plain java enough? (He has normal java, because we play minecraft sometimes)
    Anyway, my buttons are not showing up on his computer, not even when I use the cross platform look at feel

    Here is the code I'm using, it's an application that makes the user select a folder and stuff will happen to it.
    import java.awt.Font;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    import javax.swing.JButton;
    import javax.swing.JFileChooser;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.UIManager;
    import javax.swing.UnsupportedLookAndFeelException;
    public class SomeGUI extends JFrame implements ActionListener, Runnable
        public JButton exit;
        public JButton run;
        JPanel panel;
        JFileChooser chooser;
        String returnpath;
        JLabel progress;
      public SomeGUI()
         try
         UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());
         catch (ClassNotFoundException ex)
             Logger.getLogger(SomeGUI.class.getName()).log(Level.SEVERE, null, ex);
         catch (InstantiationException ex)
             Logger.getLogger(SomeGUI.class.getName()).log(Level.SEVERE, null, ex);
         catch (IllegalAccessException ex)
             Logger.getLogger(SomeGUI.class.getName()).log(Level.SEVERE, null, ex);
         catch (UnsupportedLookAndFeelException ex)
             Logger.getLogger(SomeGUI.class.getName()).log(Level.SEVERE, null, ex);
          setTitle("BenkyoAdd");
          setSize(206,100);
          setResizable(false);
          setDefaultCloseOperation(EXIT_ON_CLOSE);
          setLocationRelativeTo(null);
          setVisible(true);
          panel = new JPanel();
          getContentPane().add(panel);
          panel.setLayout(null);
          run = new JButton("Run");
          run.setFocusable(false);
          run.setBounds(0,0,100,30);
          panel.add(run);
          run.addActionListener(this);
          progress = new JLabel("Please click run");
          progress.setFont(new Font("lol",Font.PLAIN,14));
          progress.setBounds(10, 30, 200, 50);
          panel.add(progress);
          exit = new JButton("Exit");
          exit.setFocusable(true);
          exit.setBounds(100, 0, 100, 30);
          panel.add(exit);
          exit.addActionListener(this);
          chooser = new JFileChooser();
          chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
        public void actionPerformed(ActionEvent e)
         if(e.getSource().equals(exit))
             System.exit(0);
         if(e.getSource().equals(run))
             progress.setText("Select a folder...");
             chooser.showOpenDialog(panel);
             this.returnpath = chooser.getSelectedFile().getAbsolutePath();
             exit.setEnabled(false);
             run.setEnabled(false);
             progress.setText("Copying to output folder...");
             new Thread(this).start();
      public static void main(String args[])
          new SomeGUI();
        public void run()
         new Changer(this, this.returnpath);
         exit.setEnabled(true);
         exit.requestFocusInWindow();
         progress.setText("Done! You can now exit!");
    }

  • What ports are required to run facetime from iPad2 ?

    My iPad 2 works fine, but trying to use Facetime with an iPhone in or outside the house fails with no error message.
    This seems to do with ports of a firewall, but don't know the adequate details.

    Try it locally on the server itself.
    You just need to create a shared directory backup oon the server on C:\ drive.
    \\127.0.0.1\C$\backup
    This should work.
    Link to port utilization guide:
    http://www.cisco.com/en/US/docs/voice_ip_comm/cust_contact/contact_center/crs/express_7_0/configuration/guide/uccx70prtuti.pdf
    Regards,
    Chuck
    Please rate helpful posts and identify correct answers.

  • Possible to alter table with partitions to also have subpartitions online?

    The subject says it all....
    Is it possible to add hash sub-partitioning to an existing range partitioned table 'in-the-fly', or will it be necessary to create the new table structure first and reload the data?

    You have to create a new table first.

  • Is alter table shrink space a logged operation?

    Hello -
    I am running alter table xxxxxx shrink space. I have a few questions:
    1. Is this a logged operation? Oracle handles this interanally as insert/delete operations, but I am not seeing more arch logs being generated.
    2. If I stop in the middle of the shrink process, can Oracle resume where it left off?
    3. How can I monitor the progress of the shrink operation? I am not seeing the sid, serial# in v$session_longops.
    Any help is much appreciated!
    Thanks,
    mike

    I'm not sure that you will be able to "monitor" it.
    You could test using dbms_space to see if it shows any changes will the shrink is in progresss.
    One other way would be to watch V$TRANSACTION USED_UREC (which will reflect counts for rows and index entries) to see USED_UREC approaching the expected number of table+index entries being rebuilt.
    Hemant K Chitale
    http://hemantoracledba.blogspot.com

  • What locks are required on a table when Oracle is processing an UPDATE

    What locks are required on a table when Oracle is processing an
    UPDATE statement?

    Welcome to the forum!
    Whenever you post provide your 4 digit Oracle version.
    >
    What locks are required on a table when Oracle is processing an
    UPDATE statement?
    >
    Here is a relevant quote from the 'Lock Modes' section of the doc that Ed Stevens provided
    >
    Assume that a transaction uses a SELECT ... FOR UPDATE statement to select a single table row. The transaction acquires an exclusive row lock and a row share table lock. The row lock allows other sessions to modify any rows other than the locked row, while the table lock prevents sessions from altering the structure of the table. Thus, the database permits as many statements as possible to execute.
    >
    The above describes the locks when you, the user, tells Oracle to lock the row.

  • When I try to run iTunes I receive the following error message: "Apple Application Support was not found.  Apple Application Support is required to run iTunes helper.  Please unistall iTunes, then install iTunes again". I have done this twice.  What now?

    When I try to run iTunes I receive the following error message: "Apple Application Support was not found.  Apple Application Support is required to run iTunes helper.  Please unistall iTunes, then install iTunes again". I have done this twice and continue to get the error message.  What now?

    Hi texasslagle,
    It sounds like you are having issues installing iTunes on your Windows 7 PC, a frustrating situation I am sure.
    There is an article that you may want to use to try to complete your install here -
    iTunes 11.1.4 for Windows: Unable to install or open
    http://support.apple.com/kb/ts5376
    Thanks for using Apple Support Communities.
    Best,
    Brett L

Maybe you are looking for

  • Round up float number

    Hi, I have to manage floats with euro format . here's the code : <CODE> float first = 78.31; float second = 1.81; float tot = first + second; </CODE> the result of thi addition is tot = 80.11999...... sigh!! how can i round up this number with 2 digi

  • File Saving into different path

    Hi, How to save a file from presentation server ( Local File ) into a specified path ? If the path prompt for user id & password then how to goahead with that? Waiting for ur reply..... Regards, Srinath

  • Parameter Effectivity and BAPI_NETWORK_COMP_ADD

    Any suggestions on how to set/pass parameter effectivity data when adding a component using BAPI_NETWORK_COMP_ADD?

  • Adobe iFilter 6 with MS indexing service on asian language

    Hi All: I found the search hit for iFilter 6 on Win2003 (ENG) is much lower than on Win2000 (ENG) with indexing service. (I am testing on Tradition Chinese Characters search). In addition, iFilter is not bundle on Acrobat Reader 8.X, but it show no i

  • Oracle wireless seurity

    Dear All, I want to implement some oracle wireless securities but i donot have any ideas to do so so please help me to do this. Thanks Saqib