How to create index not unique at the time of the CREATE TABLE

Hi,
I am trying to find out how in Oracle create secondary indexes that can accept duplicated into the CREATE TABLE statement, without have to execute a CREATE INDEX separately.
As far I can see the only syntax accepted by Oracle 9i to create more than one index at the time of the table creation is:
CREATE TABLE test_tab (x INTEGER, y INTEGER, z INTEGER PRIMARY KEY(x,y), UNIQUE(z))
But, in my case I need to have the unicity only for the primary key, but not for the second index, that I would like to have not unique.
How to do that inside of the CREATE TABLE statement?
Any help?
Thanks a lot in advance.

To create an index automatically (not constraint related) , you will need to have an 'event' trigger on the schema that will (IE: detecting a table create/drop matching ARCHIVE_%) , generate the appropriate SQL required (create index sql) and pass THAT to a DBMS_JOB.
Make sure you have job queue's enabled.
This was the ONLY way that I could re-create a view automatically as new tables were created that matched a criteria IE ARCHIVE_JAN06, ARCHIVE_FEB06 etc.
The application's "archiving" method created and was thus aware of these tables and permitted searching within 'archived' data, but 3rd party reporting applications needed to see a view encompassing all data, regardless of the tables involved. The view automatically created was a 'union_all' of all tables concerned.

Similar Messages

  • The memory on my MAC is full. It holds 4GB of RAM of which 79GB are photos. I would like to back up my photos to an external drive but just don not know how. I do not wish to use time machine. How do I back up my photo library, then delete the them t

    The memory on my MAC is full. It holds 4GB of RAM of which 79GB are photos. I would like to back up my photos to an external drive but just do not know how. I do not wish to use time machine. How do I back up my photo library, then delete them from my MAC to free up that 79GB? Thank you.

    Hi
    Just to clarify a couple of points in your post.
    RAM (memory) is different from hard drive space. You have 4GB of RAM, but that has no bearing on the amount of drive space you have, of which we know that 79GB are photos.
    If those photos are in iPhoto, you should be able to move the entire iPhoto Library, from the Pictures folder, to your external hard drive. You can just drag and drop. Do not have iPhoto open while you're doing this. Once it's done, you can double-click on the moved iPhoto Library file to associate it with iPhoto, so that the app remembers where the library is for next time.
    One more thing. When you move a file to a different location, and then delete the original, you don't have a backup. You still only have one copy. So if that external drive dies, you will lose all your photos. Time Machine is a very good way to prevent this from happening. You should dedicate a different drive for Time Machine backups.
    Matt

  • Can u give clear steps how to load 3 data target at a time by the help of p

    can u give clear steps how to load 3 data target at a time by the help of parllalesim

    hi,
    create the load infopackage type and give the infopack you need to load.
    create 3 similar process types.
    chain should have this flow
    start -> delet index(if cube is the target) -> load target(connect the load process to start process) parallel -> and process -> create index(if cube)/actiavtion of ods(if ods)
    Ramesh

  • I use floating time zone with all of my iCal entries.  But then the times of the entries do not print when printing month view.  Is there a fix for this?

    I use floating time zone with all of my iCal entries.  But then the times of the entries do not print when printing month view.  Is there a fix for this?

    Sorry to have repeated this question as if I were answering it.  Just a mistake.  I'm just now learning how to use this site.

  • For the iphone4, my light is on all the time! the light is supposed to turn off after a few seconds of use. how can i fix this?

    for the iphone4, my light is on all the time! the light is supposed to turn off after a few seconds of use. how can i fix this?

    If what Allen says does not fix the issue I have seen this as a Hardware issue and I would get into an Apple Store if it is close by
    http://concierge.apple.com/reservation/us/en/

  • How can I determine the time zone the computer it set to?

    How can I determine the time zone the computer it set to?
    I am using Lab View 5.1.1

    Hi,
    in the G-tools (http://www.geocities.com/gzou999/index.html ) you find two
    time functions, "Get local time" and "get sys time". The difference between
    them is the time zone.
    Niko

  • When I'm on an app, on iso7.1 it will now show the "iPad/iphone" sign the time and the battery whilst running in an app. does anyone know how to get rid of that as its effecting the games i play.

    when I'm on an app, on iso7.1 it will now show the "iPad/iphone" sign - the time - and the battery whilst running in an app. does anyone know how to get rid of that as its effecting the games i play.

    If you can hide the status bar, it would be an option inside the app. I have one or two apps where that is an option but in most apps it is not.

  • How can I save my data and the date,the time into the same file when I run this VI at different times?

    I use a translation stage for the experiment.For each user in the lab the stage position (to start an experiment) is different.I defined one end of the stage as zero. I want to save the position , date and time of the stage with respect to zero.I want all these in one file, nd everytime I run it it should save to the same file, like this:
    2/12/03 16:04 13567
    2/13/03 10:15 35678
    So I will track the position from day to day.If naybody helps, I appreciate it.Thanks.

    evolution wrote in message news:<[email protected]>...
    > How can I save my data and the date,the time into the same file when
    > I run this VI at different times?
    >
    > I use a translation stage for the experiment.For each user in the lab
    > the stage position (to start an experiment) is different.I defined one
    > end of the stage as zero. I want to save the position , date and time
    > of the stage with respect to zero.I want all these in one file, nd
    > everytime I run it it should save to the same file, like this:
    > 2/12/03 16:04 13567
    > 2/13/03 10:15 35678
    >
    > So I will track the position from day to day.If naybody helps, I
    > appreciate it.Thanks.
    Hi,
    I know the function "write to spreadsheet file.vi"
    can append the data
    to file. You can use the "concatenate strings" to display the date,
    time as well as data... Hope this help.
    Regards,
    celery

  • Having problems with ipad mini and Siri. Works sporadically, will work once and then the second time not. Worked all the time with the original Mailbox app. Then started doing the same thing when I installed the new update so wondering if it is software?

    Having problems with ipad mini and Siri. Works sporadically, will work once and then the second time not. Worked all the time with the original Mailbox app. Then started doing the same thing when I installed the new update so wondering if it is software?

    Hi,
    I have the check box on a second Partition  but not on the Time Machine one
    I forget what I did now to get this called "Recovery HD"
    For the rest try https://discussions.apple.com/docs/DOC-4055  User Tip that links to Pondini's work on Time Machine.
    10:17 pm      Friday; May 2, 2014
    ​  iMac 2.5Ghz i5 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • After a recover database, how can I find the time of the last transaction?

    After doing a restore and recovery. Is there something in the data dictionary that I can query to find the time of the last applied transaction that took place during the recover process?
    restore database ;
    recover database ;
    For example, if I restored from a full backup on 8/3/2008 with archive redologs, I know my last restored transaction is from sometime on that day, but I'd like a way to know the hour:minute:second of the last transaction included in the backup and redologs that was applied to my restore. Is that possible?
    The recover database applies all available redo logs for that day, but I want to know if that includes transaction up to 6PM, or 11:50PM, etc?
    Thanks,
    Jason

    If you did only a "recover database" that would have been a Complete Recovery to the last transaction -- ie the point when the database was shutdown.
    For an Incomplete Recovery, you would have to note the Sequence#, SCN or Timestamp of the recovery point.

  • How can I hide the time of the day in calendar events in OS 10.9?

    How can I hide the time of the day in calendar events in OS 10.9?

    Currently, the order in which the phone numbers appear (in a contact) is dependent on the sequence to which you enter them. There is no way to change that order other than re-entering them in the desired order.

  • I have itune on my first computer, but i cant download it for my other one,how can i do that, i tryed many time with the link it says you download it but nothing follows  thank you

    I have itune on my first computer, but i cant download it for my other one, how can i do that, i tryed many time with the link it says you download it but nothing follows  thank you

    I'd first try downloading an installer from the Apple website using a different web browser:
    http://www.apple.com/itunes/download/
    If you use Firefox instead of IE for the download (or vice versa), do you get a working installer?

  • How to Stop the timer in the TimedTrigger UI element when an event occurs

    Hi all
    I have a webdynpro View where i have many UI elements(which supports an event)  along with TimedTrigger UI element.
    Now my requirement , i want to check at single line if any event happens in the View then i want to stop the timer in the TimedTrigger UI element.
    can you please provide any peace of code related to this??
    Thanks
    Bindu

    Hi Bindu,
    From help.sap.com:
    http://help.sap.com/saphelp_nw70/helpdata/EN/03/7c6b40dde0980ae10000000a155106/frameset.htm
    To prevent events being triggered by UI element TimedTrigger, proceed as follows:
    1. Disable the action that is bound to the UI elementu2019s onAction property.
    Can be done as:
    wdThis.wdGet<Your_TimedTrigger_action>Action().setEnabled(false);
    2. Set the value of the delay to 0 seconds
    As suggested in previous post to this thread.
    3. Disable UI element TimedTrigger
    Create a boolean type of context attribute and bind it to the "enabled" property of the Timed Trigger. Set its value to false to disable the timed trigger.
    Regards,
    Alka.

  • My macbook pro keeps going to screensaver after about 3 mins while watching a movie, i tried changing the time on the "Energy saver" menu in system preferences but it keeps doing it, how do i stop this?

    my macbook pro keeps going to screensaver after about 3 mins while watching a movie, i tried changing the time on the "Energy saver" menu in system preferences but it keeps doing it, how do i stop this?

    Deleting the System Preference or other .plist file
    Install Caffine.
    http://lightheadsw.com/caffeine/

  • How to get only the date without the time in the footer of a printout?

    Is there a way to get only the date without the time in the footer of a printout?

    As far as I can tell, there's no built-in option to get the date printed without the time. It's hardcoded in a C++ file.
    As a workaround, you can enter custom text for the footer, but it would need to be updated every time the date changed. I can think of a couple ways to automate that:
    * An add-on (but I'm not aware of any add-on for this)
    * External process to push a new date into prefs.js, a settings file that stores your header/footer preferences, among others (but Firefox should be closed when you update this file, and it will be read when you restart)
    Not easy enough, I know.

Maybe you are looking for

  • Iphone running 2.1 does not check for new email in the background

    hi my iphone does not get new email unless i open the mail app. it worked perfectly previous to now. this has been the case for a few weeks. i have asked several friends, who tell me that they have the same issue after upgrading. any solution? i use

  • Transition has picked up a sound clip from elsewhere!

    I'm having a right mare with these I have still not managed to fix the problem of only being able to use fade or wash (see previous post on this) So has anyone got any more suggestions? And now, to top it off, there are five clips I want a transition

  • Here's a strange one...I have 16.0.0.305, but not always?

    I suddenly started getting notes flash up telling me I needed Flash Player to access a particular function on my PC. Strange, I thought, I always keep it up to date. Long story short, I have endlessly updated, checked it's getting past my anti-virus

  • IPad 4 with iOS 6.0.1 can't connect to wifi/upgrade/iCloud

    Hi, Co-worker has iPad (4th gen) with iOS 6.0.1 and would like to upgrade to iOS 8 BUT the iPad  does not connect to wifi or 3G to make that upgrade. Also when connected to a computer (tried MacBook) the iTunes does not recognize the iPad thus making

  • 2 Iphone's one One computer, how to erase sync'd contacts

    I let a friedn use my computer to sync her Iphone and now all of her numbers and info is on my Iphone (after my last sync) how can i take just her stuff off without manually going through my phone and eraseing them one by one????