How to extract full list of Index Key from DB

Hi there,
Is anybody can tell me how to extract a full list of index key from my database and how to rebuild index for that full list.
Thanks alot.

Probably a bad idea, but in SQLPlus, you would do something like
SPOOL SHOOTMEINTHEFOOT.SQL
SET HEADING OFF
SET PAGESIZE 0
SELECT 'ALTER INDEX '||owner||'.'||object_name||' REBUILD;'
  FROM DBA_OBJECTS
WHERE object_type='INDEX'
   AND NOT owner IN ('SYS', 'SYSTEM', 'MDSYS', {list others that should not be messed with})
SPOOL OFF

Similar Messages

  • HT5517 How can have full picture using mirrored image from iPad

    How can have full picture using mirrored image from iPad on my Apple TV airplay

    Welcome to the Apple Community.
    Mirroring won't fill the TV screen. The iPad has an aspect ratio of 4:3 and the iPhone 4S or prior an aspect ratio of 3:2, neither of these will fit exactly into a TV screen which as an aspect ratio of 16:9. The Apple TV will not zoom the mirrored image, because it may well cut off information which is situated at the top or bottom of the screen.
    You may wish to try each of the settings in ‘Settings > Audio & Video > Adjust for AirPlay overscan’ for the best setting that suits you.

  • How to extract a folder (and its contents) from inside a zip file?

    There is a zip file which contains a folder inside it. The folder itself contains a few files. I would need to know how to extract the folder (with its contents) from inside a zip file.
    I have found a few unzipping code samples which show how to handle a folder inside a zip file. An example is shown below:
    public static void extract(String workingDirectory, byte[] zipFile)
    throws Exception {
    ByteArrayInputStream byteStream = new ByteArrayInputStream(zipFile);
    ByteArrayOutputStream out = new ByteArrayOutputStream();
    ZipInputStream zipStream = new ZipInputStream(byteStream);
    ZipEntry zipEntry = null;
    String nameZipEntry = null;
    byte[] contentZiphttp://forum.java.sun.com/post!default.jspa?forumID=31#
    Click for code tagsEntry = null;
    boolean isDirectory = false;
    int indexFileSeparator = -1;
    String directory = null;
    String fileName =  null;
    while ( (zipEntry = zipStream.getNextEntry()) != null )
                nameZipEntry = workingDirectory + File.separator + zipEntry.getName();
                isDirectory = zipEntry.isDirectory();
                if (isDirectory) {
    File file = new File(nameZipEntry);
    file.mkdirs();
                else
                    // read zipEntry
                    byte[] buf = new byte[1024];
                    int c = 0;
                    while ( (c = zipStream.read(buf)) != -1)
                        out.write(buf, 0, c);
                    indexFileSeparator = nameZipEntry.lastIndexOf(File.separator);
                    directory = nameZipEntry.substring(0, indexFileSeparator);
                    fileName =  nameZipEntry.substring(indexFileSeparator+1,nameZipEntry.length());
                    FileSystemTools.createFile(directory, fileName, out);
                    out.reset();
                    zipStream.closeEntry();
            zipStream.close();
            byteStream.close();
    }The code sample which deals with the part where the zipEntry is a directory creates a directory with the same path and name. (highlighted in bold)
    Another similar variation is:
    File file = new File(dirDestiny.getAbsolutePath() + File.separator + zipEntry.getName() );
    if(zipEntry.isDirectory())
          file.mkdirs();When the code creates a directory for the folder, does it unzip the contents inside the folder as well?
    If not, how do I extract the files inside the folder?

    Have you already tried to see if the sample code you downloaded works or not? Maybe if you try out the code yourself you can see if it extracts files from a directory within a zip file?
    I like to use pkzip. It is a command line compression/uncompression tool that can be used from a batch file. If you assignment involves unzipping large amount of zip files on a regular basis, I recommend taking a look at pkzip.

  • How do i change the Std. confirm key from 'AB' to 'Z1', receiving ACK IDOC.

    Hi,
    How do i change the Std. confirm key from 'AB' to 'Z1', when loading ACK IDOC.
    Thanks

    Hi Jorge,
    Thanks for your help.
    I change the output mode to "Collect IDocs" method, if I use SAP standard function POIM (RCCLMDAT), it will depend on change pointer to generate IDoc, and it includes function: RSEOUT00 ( and MASS_RSEOUT00 ) to collect and send IDoc.
    The collect table is BDCP.
    BR,

  • How do I recover vault 2 encryption key from apple

    Please show me how I can
    Recover vault2 encryption key
    from apple.

    how do I recover vault 2 encryption key from apple,
    read the “Retrieving your recovery key from Apple” section of this Apple page.

  • Using SQL stored procedures How to get the list of .rar files from e:\Tempbackup directories from the different remote desktop windows server and delete the .rar files which contains the current month and date

    Concept:
    Every month i need to find the list of .rar files from the
    E:/TempBackup directory from the different environments (remote desktop servers) and i need to delete the current month
    .rar files alone from the respective (E:/TempBackup) directory. below is example files structure inside the
    E:/TempBackup.
    example:
    zDROP_2014_08_31_Backups.rar
    zDROP_2014_09_31_Backups.rar
    zDROP_2014_10_31_Backups.rar
    from the above list i need to delete the zDROP_2014_08_31_Backups.rar(current month) file alone and also logs should be capture for this deletion.
    key words for this are zDROP and Current month and date.
    i need a stored procedure for this concept. could you please help on this.

    Hello,
    You can schedule an operating system task (Control Panel -> Schedule task) to either call a batch file or a PowerShell script.
    Please read the following resources for examples:
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/61373719-fffb-4d94-bdbe-7d8ed8620b44/delete-filesfolders-on-remote-servers-using-powershell?forum=winserverpowershell
    http://www.networknet.nl/apps/wp/archives/943
    http://jeffwouters.nl/index.php/2011/10/powershell-script-to-delete-files-older-that-a-week/
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • How to Restore Full Offiline Backup using BRTOOLS from a Tape

    Dear all,
    I want to recover PRD Full Offline Backup using BRTOOLS from a tape in a new machine.
    I have Install SAP in the new machine.
    Now I want to restore the PRD Full Offiline Backup taken through BRTOOLs in tape in the new machine.
    1. I have shutdown the SAP.
    2. I have shutdown the database Oracle 10g.
    3. I have inserted the backup tape
    4. Through user ORASID I have executed BRTOOLS
    I got the following options: -
    BRTools main menu
    1 = Instance management
    2 - Space management
    3 - Segment management
    4 - Backup and database copy
    5 - Restore and recovery
    6 - Check and verification
    7 - Database statistics
    8 - Additional functions
    9 - Exit program
    I selected Option 5 Restore and recovery
    And got the Following Options
    Restore and recovery
    1 = Complete database recovery
    2 - Database point-in-time recovery
    3 - Tablespace point-in-time recovery
    4 - Whole database reset
    5 - Restore of individual backup files
    6 - Restore and application of archivelog files
    7 - Disaster recovery
    8 - Reset program status
    1. Now which option do I need to select and then what all other options do I need to select.
    2. Whether the database should be a mount state or shutdown ?
    Kindly help.

    Dear Mark,
    Thanks.
    As suggested I tried both the options however face some difficulties please suggest
                                       brrestore -u / -c -b <backup_log.ext> -p init<SID>.sap -m full
    hinrnddev:oradev 1> brrestore -u / -c -b bedflluv.fft -p initDEV.sap -m full
    BR0401I BRRESTORE 7.00 (32)
    BR0405I Start of file restore: redhafeh.rsb 2010-05-22 11.55.55
    BR0484I BRRESTORE log file: /oracle/DEV/sapbackup/redhafeh.rsb
    BR0252E Function fopen() failed for '/oracle/DEV/sapbackup/bedflluv.fft' at location BrbLogRead-1
    BR0253E errno 2: No such file or directory
    BR0121E Processing of log file /oracle/DEV/sapbackup/bedflluv.fft failed
    BR0406I End of file restore: redhafeh.rsb 2010-05-22 11.55.55
    BR0280I BRRESTORE time stamp: 2010-05-22 11.55.55
    BR0404I BRRESTORE terminated with errors
    When I used the brrestore command I got the above error message.
    Then I tried the next option Complete database recover
    BRRECOVER options for restore and recovery
    1 * Recovery type (type) ............. [complete]
    2 - BRRECOVER profile (profile) ...... [initDEV.sap]
    3 ~ BACKINT/Mount profile (parfile) .. []
    4 - Database user/password (user) .... [/]
    5 - Recovery interval (interval) ..... [30]
    6 - Confirmation mode (confirm) ...... [yes]
    7 - Scrolling line count (scroll) .... [20]
    8 - Message language (language) ...... [E]
    9 - BRRECOVER command line (command) . [-p initDEV.sap -t complete -i 30 -s 20 -l E]
    Standard keys: c - cont, b - back, s - stop, r - refr, h - help
    BR0662I Enter your choice:
    C
    Complete database recovery main menu
    1 = Check the status of database files
    2 * Select database backup
    3 * Restore data files
    4 * Restore and apply incremental backup
    5 * Restore and apply archivelog files
    6 * Open database and post-processing
    7 * Exit program
    8 - Reset program status
    Standard keys: c - cont, b - back, s - stop, r - refr, h - help
    BR0662I Enter your choice:
    C
    Complete database recovery main menu
    1 + Check the status of database files
    2 # Select database backup
    3 # Restore data files
    4 # Restore and apply incremental backup
    5 # Restore and apply archivelog files
    6 + Open database and post-processing
    7 = Exit program
    8 - Reset program status
    Standard keys: c - cont, b - back, s - stop, r - refr, h - help
    BR0662I Enter your choice:
    the + sign got changed to +
    and the * got changed to #
    then it is getting in loop please suggest what do I do now.

  • How to extract tax amount in item level from a Purchase order

    Hi experts,
    How to extract the tax amount data for each item in a Purchase order.
    I am using the data sources 2lis_02_itm, 2lis_02_scl, 2lis_02_S012.
    Please provide me which data source brings this tax amount data in item level and also the technical
    field name of tax amount.
    <Removed by moderator - soliciting points for answers is frowned upon>
    Regards,
    Bhadri M.
    Edited by: Arun Varadarajan on Nov 14, 2008 3:55 PM

    Dear Bhadri
    Did you look 2LIS_13_VDKON data source whther it can throw or not for billing related. Here you should look some billing conditions relates to particular document like taxable or not.
    (KAWRT, KAWRT_K, BIWGEO)
    Those informations will be maintained each with billing conditions.
    May not sure. Please look.
    Raju Saravanan

  • How to extract one of several audio tracks from a .vob file?

    Hi guys,
    hope you can help me, i'm looking for a solution for hours now but can't find one.
    I would like to know how to extract one audio track from a .vob file when there are different tracks/languages on the dvd? Media encoder does it very well, but i can't find the option for choosing the right audio track/language for extraction. Please help
    Kind regards
    Alex

    This is because the OMF specification requires mono audio files
    It really depends on what you are trying to do with the two tracks as to the best answer as far as 'grouping'
    You could select all the clips on both tracks and right mouse click and select 'group'
    You could send both tracks to a bus
    You could export the two tracks to a stereo file and bring that back into the session
    Lots more things I'm sure but a little more detail as to what you are trying to do would help

  • How to extract the data into Excel / PDF from SAP

    Hi,
    We have spool number of a report output.
    We want to extract the data into Excel / PDF from SAP directly...
    Plz guide...

    Hi ,
    Please check this [Thread|HOW TO DOWNLOAD SAP OUTPUT TO EXCEL FILE;. Hope your problem will be solved.
    You can check [this also.|http://wiki.sdn.sap.com/wiki/display/sandbox/ToConvertSpoolDataintoPDFandExcelFormatandSenditinto+Mail]
    Thanks,
    Abhijit

  • How do i stop my dell media keys from playing media in itunes

    i have a dell inspiron 1545 laptop, it has keys at the top of the keyboard that can be used to play/pause etc media, i have itunes up constantly so i can listen to my music on my computer, but sometimes i want to watch a video using windows media player or realplayer etc, but i can't get them to play a video on there without the video or song i was listening/watching on itunes from starting up again, it's really starting to **** me off
    can you please tell me how i can stop the media keys from playing things in itunes so i can just use my other media devices
    if you all don't know how i understand, after all steve jobs wanted to be the next bill gates and pretty soon the feds will be on apples *** for trying to create a monopoly too (touch screens have been around since reagan was prez)
    fix it or else!!!!!!

    Can you repair your QuickTime?
    START > CONTROL PANEL > PROGRAMS N FEATURES > highlight QuickTime and click REPAIR button.

  • How to extract extension of  file like (jpeg from c:\prashant.jpeg)

    hi
    please tel me that howa to extract file type  from path of file
    like  c:\prashant.jpeg
    thanks

    use this code....
    PARAMETERS: infile LIKE rlgrap-filename OBLIGATORY.
    DATA: txt1 TYPE char200,
          txt2 TYPE char4.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR infile.
      PERFORM file_browse.
    START-OF-SELECTION.
      SPLIT infile AT '.' INTO txt1 txt2.
      WRITE: txt2.
    *&      Form  FILE_BROWSE
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM file_browse .
      CALL FUNCTION 'F4_FILENAME'
         EXPORTING
           program_name        = syst-cprog
           dynpro_number       = syst-dynnr
    *   FIELD_NAME          = ' '
         IMPORTING
           file_name           = infile.
    ENDFORM.                    " FILE_BROWSE

  • How can we retrieve list and library data from rest services

    Hi Everybody,
    How can we get the list or library data from sharepoint 2010 rest services.
    Here is the URL I am trying: https://siteurl/_vti_bin/listdata.svc
    Can anybody please provide sample c# code to pull the info.
    Thanks in advance,
    Krishna
    Krishnasandeep

    Here is reference material:
    http://msdn.microsoft.com/en-us/library/ff798339.aspx
    And an example:
    http://www.c-sharpcorner.com/uploadfile/anavijai/rest-api-in-sharepoint-2010-for-listdata-svc-part-2/
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • How to extract full 20 bytes messageDigest from authenticated attributes

    I�m having problems with message digest calculation.
    Why in authenticated attributes the message digest field shows only the first 5 octets?
    messageDigest = OCTET STRING = 20 bytes: E3:8A:22:3D:7C...
    How I can extract the whole 20 bytes of message digest from authenticated attributes?
    Please, help.

    Thanks Nico,
    I think it will results data like this:
    100 10 Ten 11
    200 20 Twenty 12
    300 30 Thirty 13
    etc
    and not the expected:
    100 10 Ten 11
    100 10 Ten 12
    100 20 Twenty 21
    etc
    But it inspired me to solve this by adding key expression in each source table (B & C) to be joined to table A with this formula:
    100+TRUNC(INGRP1.COLB1,-2)
    Regards
    Prat

  • How to extract the list of BOM materials through ABAP query?

    Hello Experts
    I want to extract a report from SAP which should contains the following,
    1). Main Material with description
    2). Sub material with description and quantity
    I have tried with the tables MAST, STKO AND STPO but i couldn't able to create the correct ABAP query.
    Could you please advise what are the table i should take to get this report.
    Thanks in advance.
    Regards,
    Raghu

    Hi Raghu
    Check this below link
    how to get  BOM Components using ABAP Code?
    FM to get all Parent material/BOM of the given material
    Let me know if your problem is solved
    Regards
    Pradeep

Maybe you are looking for

  • Correlating on Directory problem

    Dear All, I have some strange problem with correlation. In BPM there is a fork with 2 recieve steps which are recieving filea. If I correlate on Directory every time a new instance of BP is created (even is the files where form the same directory(in

  • Entity OnPropertyChanged don't refresh UI binding

    Using RIA Services Entity Framework through Silverlight I surprised when the UI not being updated: I have a simple Entity created through webservices edmx which contains on generated code all the stuff to notify that property of the entity changed; s

  • Need Adobe on my Kindle Fire

    How can I download Adobe Flash on a Kindle Fire?

  • Can't handle high bitrates??

    Hey all. I've noticed that when I play songs that are 192kbps or 320kbps or higher bitrate, that the music tends to sound distorted a little. It's not very bad but it does get irritating sometimes. Is it just me or does it seem that the nano can't ha

  • Cell Editor Problem in JTable

    I have a problem using JTable. I have a requirement like each specified cell will have different editors like JtextField or Jcombobox as per some condition. I am building the rows at run time. Number of rows may vary as per condition. can anyone guid