Automate command to index in 11G

Hi,
We're going through manual migration of our 5.2 instances over to 11g, and have a big list of indexed attributes. It is really a tough jobs to run multiple commands per suffix across various environment. I was wondering if someone has a better way to help me out.
Thanks, John.

For initial system configuration, I usually put my index configurations in an LDIF and then replace all the non-system indexes with mine. As long as you do this before an LDIF import that's about all there is to it. Of course there are dsconf commands to do it too if you want to go that way. If you are initializing data from a binary backup, you just need to make sure the backup comes from a system with the same indexes. IIRC the restore will fail if that's not the case.
If what you are talking about is a multi-system reindex utility intended to change existing indexes on multiple systems that are currently in service, you need to be very careful with that. Since reindexing puts the backend into readonly, that kind of tool will have the potential to put an entire topology into readonly, with an associated topology-wide write outage. We had a thread about that a while back. If this forum's search tools worked better, I'd probably be able to fish that out for you.

Similar Messages

  • How to search the indexes in 11g Enterprise Manager Console

    Hi,
    After setting the Indexes using Java Embedding for a process, can you please tell me how to search the indexes in 11g Enterprise Manager Console for the particular process.In 10g BPEL Console we have the option of searching the Instances based on Indexes we already set at process level which is inbuilt in 10g. I need the same in 11g .
    Thanks,
    Sagar.

    Hi Sagar,
    You can define composite sensors in your composite.
    Then you will get fields in enterprise manager of that composite instance.(the sensors you have defined will be displayed here)
    You can enter the values based on what you want to search the instance. :)
    Regards
    PavanKumar.M

  • Automatic table partitioning in Oracle 11g

    Hi All,
    I need to implement automatic table partitioning in Oracle 11g version, but partitioning interval should be on daily basis(For every day).
    I was able to perform this for Monthly and Yearly but not on daily basis.
    create table part
    (a date)PARTITION BY RANGE (a)
    INTERVAL (NUMTOYMINTERVAL(1,'*MONTH*'))
    (partition p1 values less than (TO_DATE('01-NOV-2007','DD-MON-YYYY'))
    Table created
    create table part
    (a date)PARTITION BY RANGE (a)
    INTERVAL (NUMTOYMINTERVAL(1,'*YEAR*'))
    (partition p1 values less than (TO_DATE('01-NOV-2007','DD-MON-YYYY'))
    Table createdBut if i use DD or DAY instead of YEAR or MONTH it fails......Please suggest me how to perform this on daily basis.
    SQL>
      1  create table part
      2  (a date)PARTITION BY RANGE (a)
      3  INTERVAL (NUMTOYMINTERVAL(1,'*DAY*'))
      4  (partition p1 values less than (TO_DATE('01-NOV-2007','DD-MON-YYYY'))
      5* )
    SQL> /
    INTERVAL (NUMTOYMINTERVAL(1,'DAY'))
    ERROR at line 3:
    ORA-14752: Interval expression is not a constant of the correct type
    SQL> create table part
    (a date)PARTITION BY RANGE (a)
    INTERVAL (NUMTOYMINTERVAL(1,'*DD*'))
    (partition p1 values less than (TO_DATE('01-NOV-2007','DD-MON-YYYY'))
    );  2    3    4    5
    INTERVAL (NUMTOYMINTERVAL(1,'DD'))
    ERROR at line 3:
    ORA-14752: Interval expression is not a constant of the correct typePlease suggest me to resolve this ORA-14752 error for using DAY or DD or HH24
    -Yasser

    Yes, for differenct partitions for different months.
    interval (numtoyminterval(1,'MONTH'))
    store in (TS1,TS2,TS3)
    This code will store data in partitions in tablespaces TS1, TS2, and TS3 in a round robin manner.
    for Day wise day yes you can store
    INTERVAL (NUMTODSINTERVAL(1,'day')) or
    INTERVAL (NUMTODSINTERVAL(2,'day')) or
    INTERVAL (NUMTODSINTERVAL(3,'day')) or
    INTERVAL (NUMTODSINTERVAL(4,'day')) or
    INTERVAL (NUMTODSINTERVAL(5,'day')) or
    INTERVAL (NUMTODSINTERVAL(n,'day'))

  • Oracle SQL Developer 1.2 – Automatic -  is compatible with Oracle 11g?

    Oracle SQL Developer 1.2 – Automatic - is compatible with Oracle 11g?
    Thanks in advance!
    -Babu

    So I'm taking it the question is -
    Is 1.2 Sql Developer compatible with 11g DB?
    The short answer is Yes. We are constantly adding new functionality and better support for the newer Databases. For Example to use the real time Sql monitoring that became available in 11g you will have to be on at least 2.1 Sql Dev. Is there some reason you don't want to upgrade to the latest Sql Dev? If not the current EA version then at least the current production version?
    Thanks,
    Syme

  • Photomerge not working at all in CC - Dialogue box wont even pop up - ALL automate commands freeze PS CC

    I really have no idea what I am doing wrong.
    My computer specs are very up to par with handling photo merging. I have done so in the past but now I cannot at all.
    Literally when i try to open the photo merge dialogue box nothing happens and photoshop sits idle.
    ANY automate commands do the same.
    Any help would be appreciated.

    Please post your Photoshop System information here use Photoshop menu Help>System Info... use its copy button and post info here.   Third party plug-ins like Nik tools are known to interfere with Photoshop scripting. Many Automate thing are Photoshop scripts like Fit Image, Photomerge, Lens correction etc.  Make sure you see Adobe ScriptingSupport plug-in is installed on your system information in the required plug-ins setion.

  • Automatically incrementing an index

    There is a way to automatically increment a index in Oracle when a insert is carried out without calling a trigger. But I cannot remember how to do it.
    So if I have emp_id as the primary key for the table emp, the last one is set to 105, when I do an insert on emp oracle will automatically set it to 105
    Thanks for any help Tony

    Are you talking about using a sequence ?

  • Using the "buffers tune automatic" command.

    Network traffic at mylocation is fairly stable, but bursts of very high acctivity can occure at random intervals causing "misses."  It is probably not worth investing the time and effort to do manual buffer tuning.  Using the "buffers tune automatic" command could be an option.  It doesn't lppk like it adds any overhead, since the parameter computing is being done anyway.
    My question is has anyone implemented this command on their systems?  If so, has performance improved or degraded?
    Thanks for any help.
    Manny

    "Carl" <[email protected]> wrote:
    I'll let you know if I make any progress. I tried the build file from buildapp.zip
    floating around, but I didn't have any luck. I don't think that the build file
    is intended for a portlet application. I've search for documentation on WebAppBuildTask
    which seems to be the key task in the exported ant build file, but I've found
    nothing. It seems that the build file tries to compile controller (jcx) files
    that reference inner classes in page flow files (jpf). However, the jpfs are not
    compiled yet, so I get ClassNotFoundExceptions. Again this is frustrating since
    this same build file works from with in Workshop. I can't find the magic property/value
    that's passed to the build script to make it work.
    Anway, I'll keep you posted.
    Byron
    I believe you have the following options:
    o Consider usage of wlwBuild
    o Get the script from this message for ant to work:
    http://newsgroups.bea.com/cgi-bin/dnewsweb?utag=&group=weblogic.developer.in
    terest.workshop&xrelated=1826&cmd_thread_next.x=26&cmd_thread_next.y=12
    I plan to try these options myself:) I would be curious to know your
    experience...

  • How clusterware restarts on automatically after server reboot in 11g R2

    Hi,
    I would like to know how the cluster restarts on automatically after the server reboot in 11g R2 RAC . The oracle restart feature in 11g R2 help to restart the components like databases, ASM in case of abnormal failure. But how the clusterware starts on own after the server reboot? can you share any documents or notes is really appreciated.
    Thanks,
    Robin.

    At Grid Infrastructure installation time system configuration is modified so that UNIX init daemon restarts OHASD: http://docs.oracle.com/cd/E11882_01/rac.112/e16794/intro.htm#BABIDEFI. For example with Oracle Linux 5 and Oracle RAC 11.2.0.1 you have following line in /etc/inittab:
    h1:35:respawn:/etc/init.d/init.ohasd run >/dev/null 2>&1 </dev/nulland:
    [root@rac1 ~]# head /etc/init.d/init.ohasd
    #!/bin/sh
    # Copyright (c) 2001, 2009, Oracle and/or its affiliates. All rights reserved.
    # init.ohasd - Control script for the Oracle HA services daemon
    # This script is invoked by the init system
    ORA_CRS_HOME=/u01/app/11.2.0/grid
    export ORA_CRS_HOMEEdited by: P. Forstmann on 11 févr. 2013 18:45

  • Xml indexes in 11g

    i am using the oracle 11g.
    i need some examples how to use path index ie creating the table and creating the path index .
    i need examples on order index ,value index

    {forum:id=34} forum
    [Marco&apos;s Blog|http://www.liberidu.com/blog/] (An Ace of the above forum)
    Any future questions would best be addressed in the above forum as well.

  • Can Acrobat Pro X (win) merge pdf documents automatically (command line, watched folders, etc.) ?

    Greetings,
    I would like to know if there is a way to automatically merge PDF documents so that a script (vbscript, not AutoIT) can be relied upon to merge documents.
    Ideally, a command line approach or hot folder is what I am after.
    Thank you,
    Antoine

    You can with vbscript using IAC (InterApplication Communications) if you have Acrobat installed, and you're not using it on a server. More information is in the Acrobat SDK documentation. If you set it up to use a hot folder, only the licensee can be the one dumping the files into it.

  • Automatic commands when upgrading packages

    [I'm not sure where my question should be posted so I've just droppped it here. Also sorry the bad english =/]
    Whenever I upgrade some packages (as linux, man-db etc) pacman runs some post-installation commants (as mkinitcpio, man-db update etc). Does it use some configuration files for that? I searched pacman's wiki page and pacman.conf man's page but couldn't find anything about it.
    The point is: I'd like to change these commands a little bit. Is there any clean and automatized way to do it? (basically I want to move my kernel etc files to a /boot/Arch folder instead of /boot for tidiness purposes )
    Thanks for your help!

    @falconindy: I see. Thanks for the reference. I've seen this already regarding ABS etc but I guess this doesn't suit what I wanted.
    @WorMzy I've already changed /etc/mkinitcpio.d/linux.preset to suit my needs (it already creates my initrd files directly on /boot/Arch/). Now I just want to get the kernel to the other folder since pacman defaults exctracting it to /boot as you just said. I know perfectlky how to do this manually whithout any problems, but I was wondering if there was any way of automatizing this task as I upgrade linux package (and I wondered should it have some capability of pacman that I could benefit from to accomplish this task). However, as you said, the .install scripts are just bundled in as part of the package, so I guess it won't be a simple quest
    About the bootloader possibility: hm, I really don't know if it will be nice to try it as I'm using UEFI and I'm a bit afraid of messing up xD (and I have others boot entries - as UEFI Shell - on Gummiboot)

  • Statistics automatically gathered on indexes?

    I haven't paid much attention to this in the past, but I notice in XE that user_indexes
    is automatically populated when you create an index - num_rows, last_analyzed,
    etc. I suppose the simple act of creating the index collects enough data to
    provide those statistics, and Oracle uses them instead of throwing them away.
    Below is output from a simple script run in XE creating a table and four indexes.
    user_indexes.last_analyzed is not null even without any explicit
    gathering of statistics. num_rows, etc. are all populated...
    This does NOT happen in Enterprise 9.2.0.4...
    SQL> drop table pkt2;
    Table dropped.
    SQL> create table pkt2 as
    2 select rownum row_num, rownum / object_id not_row_num, 2 * rownum / object_id not_row_num2
    3 from all_objects
    4 /
    Table created.
    SQL>
    SQL> select table_name, last_analyzed from user_tables where table_name = 'PKT2';
    TABLE_NAME LAST_ANAL
    PKT2
    SQL> create unique index pkt2_1_udx on pkt2(row_num);
    Index created.
    SQL> create index pkt2_2_idx on pkt2(not_row_num);
    Index created.
    SQL> create index pkt2_3_idx on pkt2(row_num, not_row_num);
    Index created.
    SQL> create index pkt2_4_idx on pkt2(row_num, not_row_num, not_row_num2);
    Index created.
    SQL> select index_name, last_analyzed, num_rows, leaf_blocks, clustering_factor
    2 from user_indexes where table_name = 'PKT2';
    INDEX_NAME LAST_ANAL NUM_ROWS LEAF_BLOCKS CLUSTERING_FACTOR
    PKT2_3_IDX 27-NOV-05 4794 25 36
    PKT2_4_IDX 27-NOV-05 4794 40 36
    PKT2_1_UDX 27-NOV-05 4794 10 36
    PKT2_2_IDX 27-NOV-05 4794 23 2322

    that is normal behaviour in 10g

  • Oracle Automatically creates some indexes.

    Hi,
    In my database on several table on some non indexed columns , oracle automatically creates indexes which start with naming convention 'XIF'.
    what are this indexes? and what is benefit with it? is there any way to stop this?
    Thanks

    HI,
    thanks for reply,
    its actually non oracle user,
    see the below output
    select index_name,table_name,owner from dba_indexes where index_name like 'XIF%';
    INDEX_NAME TABLE_NAME OWNER
    XIF582TBLMGROUP TBLMGROUP JISPBILCORBILLINGSQA510
    XIF439TBLMACCOUNT TBLMACCOUNT JISPBILCORBILLINGSQA510
    XIF440TBLMACCOUNT TBLMACCOUNT JISPBILCORBILLINGSQA510
    XIF1006TBLMACCOUNT TBLMACCOUNT JISPBILCORBILLINGSQA510
    XIF1070TBLMACCOUNT TBLMACCOUNT JISPBILCORBILLINGSQA510
    XIF140TBLMACCOUNT TBLMACCOUNT JISPBILCORBILLINGSQA510
    XIF141TBLMACCOUNT TBLMACCOUNT JISPBILCORBILLINGSQA510
    XIF228TBLMACCOUNT TBLMACCOUNT JISPBILCORBILLINGSQA510
    XIF210TBLMACCOUNT     TBLMACCOUNT JISPBILCORBILLINGSQA510
    above indexes are automatically created, for application server we are using Oracle Application Server as well as JBOSS.

  • How tostart dbconsole from command prompt on Oracle 11g release  11.1.0.7.0

    Have been trying to start my dbconsole from Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation. All rights reserved.
    C:\Users\rosina>emctl start dbconsole
    Environment variable ORACLE_SID not defined. Please define it.
    C:\Users\rosina>set ORACLE_SID=orcl
    C:\Users\rosina>emctl start dbconsole
    Oracle Enterprise Manager 11g Database Control Release 11.1.0.7.0
    Copyright (c) 1996, 2008 Oracle Corporation. All rights reserved.
    https://rosina-PC:1158/em/console/aboutApplication
    Starting Oracle Enterprise Manager 11g Database Control ...System error 5 has occurred.
    Access is denied.
    how do i detect the problem?
    and how do i start my dbconsole

    875131 wrote:
    Have been trying to start my dbconsole from Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation. All rights reserved.
    C:\Users\rosina>emctl start dbconsole
    Environment variable ORACLE_SID not defined. Please define it.
    C:\Users\rosina>set ORACLE_SID=orcl
    C:\Users\rosina>emctl start dbconsole
    Oracle Enterprise Manager 11g Database Control Release 11.1.0.7.0
    Copyright (c) 1996, 2008 Oracle Corporation. All rights reserved.
    https://rosina-PC:1158/em/console/aboutApplication
    Starting Oracle Enterprise Manager 11g Database Control ...System error 5 has occurred.
    OS configuration/setup error
    what clues exist within EM log file
    When was last time EM worked OK?
    What changed since then?

  • Data automatically become null in Oracle 11g DB

    We setup an Oracle 11g database for our application. Yesterday I have noted that in a table Contract_Owner the effective date for the owner FQYX1 is 30-Oct-12. But all of a sudden it has become NULL today. Im not sure how it has changed from 30-Oct-12 to NULL.
    Any ideas/thoughts will be appreciated greatly ....
    Edited by: 959598 on Apr 18, 2013 2:03 AM

    Oracle wouldn't change a value to a NULL unless it is told to do so.
    It could have been a user , a developer, a power user / super user.
    It could have been application code.
    It could have been a trigger.
    It could have been a mistakenly-written update.
    It could have been a scheduled job or a one-off job.
    Hemant K Chitale

Maybe you are looking for