Adding datafile automatically when tablespace is 90% full

Hi,
I have a tablesspace having a name user01.dbf(Auto extensible to 4 GB) user02.dbf(Auto extensible to 4GB) ..........
I am just thinking about automatically creating datafile(alter tablespace add datafile).
1. (total number of datafiel in tablespace) *4 - space used by dba_segments belonging to user tablespace. if it returns less then 1 GB space, then add a datafile.
And I will put it on CRONTAB. and it will run every 24/7.
Does not this look weired?
Advice:
1. Don't we have any option like the database server will trigger an event when it is 90% and I can trap this event and run a command to add a datafile. I know internally it will do the same but still I feel if you have a feature then why not use it.
Any information will be helpful in this regards. And the same question is for OS level do I have to check it every second, space on the file system?

Do one thing ,write a script which will check free space of your tablespaces like..
SELECT NAME FROM V$DATABASE;
select to_char(sysdate,'dd-MON-yyyy hh:mi:ss')Snap_ShotTime from dual;
SELECT Total.name "Tablespace Name",
nvl(free_space, 0) free_space,
nvl(total_space-free_space, 0) Used_space,
total_space
FROM
(select tablespace_name, sum(bytes/1024/1024) free_Space
from sys.dba_free_space
group by tablespace_name
) free,
(select b.name, sum(bytes/1024/1024) TOTAL_SPACE
from sys.v_$datafile a, sys.v_$tablespace B
where a.ts# = b.ts#
group by b.name
) Total
WHERE free.Tablespace_name(+) = Total.name
AND Tablespace_name <> 'PERFSTAT'
ORDER BY Total.name;
and find the %age of used space Vs free space.Enable your mail server which will send you the alerts.
Put in crotab file and set them accordingly..
Pratap

Similar Messages

  • Dialog hidden automatically when browser is in full screen mode

    Hello all,
    I have an applet which shows a modal dialog automatically. It works fine when the applet is shown in the IE browser in normal mode. The window disappears automatically within few seconds when the browser is in Full Screen Mode.
    Does any one has faced this peculiar problem ?
    I am using Internet Explorer version 6.0
    Java plugin 1.4.2_05
    Thanks,
    Surya.

    maybe cuz only one window can be on top in full screen mode?

  • Set alert for tablespace in grid control when tablespace get 85% full.

    Hi,
    I want to set a tablespace alert in grid control when the tablespace in database get 85% full.
    We should get a alert through a grid control.
    Could you please let me know how to set a alert in grid control for tablsepace usage?
    Thanks,

    HI
    Thanks for the reply.
    I have set the alert the way you asked me do.
    However i am not getting an alert when the tablespace get full by 85%.
    I am not getting alert to our mail.
    Could you please let me know do we need to do anything else.
    I tried using through user defined sql metrics.
    The query which i am using is
    DECLARE
    Type v_filenames is table of dba_data_files.FILE_NAME%type
    index by pls_integer;
    filename v_filenames;
    type v_currsize is table of dba_data_files.BYTES%type
    index by pls_integer;
    currsize v_currsize;
    type v_maxsize is table of dba_data_files.MAXBYTES%type
    index by pls_integer;
    maxsize v_maxsize;
    mark75 number;
    mark500 number;
    n_maxsize number;
    i pls_integer default 1;
    total_files sys.dba_data_files.BYTES%type;
    SUM_BYTES sys.dba_data_files.BYTES%type;
    SUM_MAXBYTES sys.dba_data_files.MAXBYTES%type;
    BEGIN
    SELECT SUM(BYTES)/(1024*1024),SUM(MAXBYTES)/(1024*1024) INTO sum_bytes,SUM_MAXBYTES FROM DBA_DATA_FILES WHERE TABLESPACE_NAME='&&1';
    select SUM(bytes*4/3-maxbytes)/(1024*1024),500-SUM(MAXBYTES)/(1024*1024) into mark75,mark500 FROM DBA_DATA_FILES WHERE TABLESPACE_NAME='&&1';
    if mark75>=mark500 then
    n_maxsize:=mark75;
    else
    n_maxsize:=mark500;
    END IF;
    will the above query will work.
    I dont what condition to put in my case.
    I want to put this condition
    if mark75>=mark500 then
    n_maxsize:=mark75;
    however i am not using it in where clause.
    Thanks.

  • How do you "pause" an open application, like Mac automatically does when the memory is full?

    How do you "pause" an open application, like Mac automatically does when the memory is full?
    I would like to do so proactively when I am not using a certain program but need to keep it open, and I want to free up computer resources.
    In other words, I want to keep a given program open, but stop it from "thinking".

    There is an application that I can only open a set number of times before it expires.  Every time the program closes, you get one less use out of it.  I want to use it as long as possible, so I thought I would just keep it open all the time.  However, it consistently turns on the fan on the computer, so I imagine it uses a lot of resources.  I got the idea after the Force Quit program "paused" it once after getting overloaded with all the apps I had open.  It stopped the fan, and I was able to open it and run it again later with no problems.  The tricky thing with trying to intentionally overload the system is that it's a hit or miss on which open program the OS will pause (to my knowledge).

  • Query in adding a datafile to the tablespace ?

    Hi All,
    A small qry? Suppose i am having a datafile .DBF of Size 26 GB , and now i want to add another Datafile to the tablespace. Then how to stop insertion of data into that 26 GB file , while the 2nd Datafile should start accepting the data. Is it an automatic process or we have to issuse some commands ??. Kindly provide some document links.
    Regards

    Thanks for the reply sir
    But if we declare 3 datafiles at the time of DB
    Creation then how is three datafiles handled.
    Insertion of data is simultaneous in all of the three
    files or in a single file?????The Insertion of data in the datafile can't be handled be you. Oracle manages automatically. To elaborate further the freelist in the segments are response the data insertion. Better solution for your scenario is create tablespace with ample no. of datafiles and then export and import utility.
    with regards
    kccrga

  • Adding a datafile  to a tablespace?

    hi all,
    what are the prequisites of adding a datafile  to a tablespace
    & how is it performed? pls help?
    regards,
    vivek.

    Hi,
    prequisites of adding a datafile to a tablespace
    1. check for Tablespace Threshold level should be more than 90%(in db02 tcode).
    2. There shd be no backup running while adding datafile to Tablespace.
    3. check for the size of datafile should be added to Tablespace.
    Goto Brtools--->login as sidadm
    BR*Tools 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
    select option 2 - Space management.> Then select  1 = Extend tablespace>  3 ~ Tablespace name (tablespace) ... []-->
    5 - Size of the new file in MB (size) ..... [3500] then continuosly select  c-continue
    With this steps your datafile will be added to Tablespace.
    Thanks,
    Ramakrishna.

  • Printing JE automatically when it is added!

    Hi All,
    Is it possible to print JE automatically when it is added by one user but not by another user.
    Is this settings are user specific?
    SV REddy

    Hi SV.......
    Go to Administration> Setup> General> User Default> Print--> Select Journal Entry and tick on while add document.
    Then open the user window for which you want to set this and link this User defaults there in user. Once you do this the momet you add the document it will print JE automatically......
    Regards,
    Rahul

  • Actions to take when tablespace full.

    Hello,
    I ran the following script against my database in order to know what tablespace is 80% full:
    select     tsu.tablespace_name "Tablespace"
    *, ceil(tsu.used_mb) "Size MB"*
    *, 100 - floor(tsf.free_mb/tsu.used_mb*100) "%Used"*
    *, ceil((tsu.used_mb - tsf.free_mb) / .8) - tsu.used_mb "Add (80%)"*
    from       (select tablespace_name, sum(bytes)/1024/1024 used_mb
    from    dba_data_files group by tablespace_name) tsu
    *, (select ts.tablespace_name*
    *, nvl(sum(bytes)/1024/1024, 0) free_mb*
    from    dba_tablespaces ts, dba_free_space fs
    where   ts.tablespace_name = fs.tablespace_name (+)
    group by ts.tablespace_name) tsf
    where      tsu.tablespace_name = tsf.tablespace_name (+)
    and        100 - floor(tsf.free_mb/tsu.used_mb100) >= 80*
    order      by 3,4
    The result was the following:
    Tablespace                        Size MB      %Used  Add (80%)
    SYSAUX                                410         96         80
    SYSTEM                                600         99        137
    M4PROD                               6900        100       1699
    SQL>
    What actions should I take in order to avoidtroubles ahead, particularly with the SYSAUX and the SYSTEM tablespaces?
    Thanks in advance.

    Hello,
    You can set threshold for warning and critical alerts and add additional datafile if needed to grow this tablespaces. Use following query to determine how much free space you got in SYSTEM tablespace or any other tablespace
    SELECT ddf.tablespace_name,
           ddf.file_name,
           ROUND (SUM (ddf.bytes / (1024 * 1024 * 1024)), 2) "Used (GB)",
           ROUND (SUM (dfs.bytes / (1024 * 1024 * 1024)), 2) "Free (GB)"
    FROM dba_free_space dfs, dba_data_files ddf
    WHERE ddf.file_id = dfs.file_id AND ddf.tablespace_name = 'SYSTEM'
    GROUP BY ddf.file_name, ddf.tablespace_name;Regards

  • How does oracle write to datafiles in a tablespace?

    hi all
    Suppose I have a tablespace consisting of two datafiles. When I need to wirte data onto it,how does ORACLE
    write ? Does it initially write to the first datafile and then write to the second datafile when the first datafile getting full or write to two datafiles in an random manner?
    Thanks for your reply.

    hi all
    I have read reply in reponse to thread "tablespaces or datafile " and testcase in that thread shows that ORACLE will write to datafiles in round-robin manner.
    But my test show totally different result:
    SQL>
    SQL> create tablespace ts_maoxl
    2 datafile '/crash/oradata/TESTDB/datafile/1.bdf' size 5m,
    3 '/crash/oradata/TESTDB/datafile/2.bdf' size 5m
    4 EXTENT MANAGEMENT LOCAL;
    Tablespace created
    SQL>
    SQL> create table maoxl(id char(2000),id3 char(2000),id2 char(2000)) tablespace ts_maoxl;
    Table created
    SQL>
    SQL> declare
    2 begin
    3 for i in 0..99 loop
    4 insert into maoxl values('x','y','z');
    5 end loop;
    6 commit;
    7 end;
    8 /
    PL/SQL procedure successfully completed
    SQL> select count(*) from maoxl;
    COUNT(*)
    100
    SQL> select t.file_id,t.extent_id,bytes from dba_extents t where tablespace_name='TS_MAOXL';
    FILE_ID EXTENT_ID BYTES
    5 0 65536
    5 1 65536
    5 2 65536
    5 3 65536
    5 4 65536
    5 5 65536
    5 6 65536
    5 7 65536
    5 8 65536
    5 9 65536
    5 10 65536
    5 11 65536
    5 12 65536
    5 13 65536
    14 rows selectedAll extents are allocated from datafile 5,none from datafile 6. My result is different from yours.
    BTW,The result of my testcase was from a 10.2.0.4 database running on HP-UNIX
    What could be the problem?
    thanks

  • DBIF_REPO_SQL_ERROR after SGEN: Tablespace is possibly full

    Dear SAP gurus,
    This is an a SAP ERP60 EHP3 system with Oracle we  are in the process of patching it. First, We have download all sw components patches (EHP3 SPS6) we patched java stack and then the sw components -SAP_ABA and SAP_BASIS from SP17 to SP22.
    We ran SGEN for SAP_ABA and SAP_BASIS and it is when the issues start coming out.
    "2.043 generation error(s): Tablespace is possibly full (with load tables)"
    Then we tried to access any SAP Transaction related to ORacle:
    "DBIF_REPO_SQL_ERROR".
    From work process logs:
    C Wed Feb 15 11:02:26 2012
    C OCIStmtExecute() failed with -1=OCI_ERROR
    C SQL error 600:
    C *** ERROR => Error 600 in stmt_execute() from oci_execute_stmt(),
    orpc=119
    [dbsloci.c 12981]
    C *** ERROR => ORA-600 occurred when executing SQL stmt (parse error
    offset=0)
    [dbsloci.c 12983]
    C
    sc_p=0x5901b30,no=182,idc_p=0x5917a88,con=0,astyle='font-family:courier'
    ct=1,slen=67,smax=256,#vars=
    2,stmt=0x5dcaa30,table=D010INC
    C INSERT INTO "D010INC" ( "MASTER" , "INCLUDE" ) VALUES ( :A0 , :A1 );
    C
    sc_p=0x5901b30,no=182,idc_p=0x5917a88,con=0,astyle='font-family:courier'
    ct=1,slen=67,smax=256,#vars=
    2,stmt=0x5dcaa30,table=D010INC
    C Dumping DBSL stmt. cache:
    C prep=0,lit=0,nsql=0,lobret=0,xop=1,dbcnt=119,upsh=
    (nil),stmtp=0x5bcc0f8,rtc=0
    C IN :
    cols=2,rmax=387,xcnt=232,rpc=0,rowi=232,rtot=232,upto=4294967295,rsize=16
    0,vmax=32,bound=1,iobuf_p=0x5a2a7b0,vda_p=0x5db8470
    C lobs=0,lmax=0,lpcnt=0,larr=(nil),lcurr_p=(nil),rret=0
    C INSERT INTO "D010INC" ( "MASTER" , "INCLUDE" ) VALUES ( :A0 , :A1 );
    B ***LOG BYL=> DBQ action required because of database error
    [dbsh#3 @ 1104] [dbsh 1104 ]
    B SQL code: 600, SQL text: ORA-00600: internal error code, arguments:
    [4553], [2], [0], [], [], [], [], []
    B ***LOG BY4=> sql error 600 performing CLC on table D010INC
    [dbrepo#5 @ 6034] [dbrepo 6034 ]
    B ***LOG BY0=> ORA-00600: internal error code, arguments: [4553], [2],
    [0], [], [], [], [], [] [dbrepo#5 @ 6034] [dbrepo 6034 ]
    B DBREPO: new rc return for insert_inc_difference
    A TH VERBOSE LEVEL FULL
    We tried to extend the tablespace PSAPSR700 (which is related to table
    D010INC) but we are still getting dumps like "DBIF_REPO_SQL_ERROR".
    Can you please guide us how to proceed?This query is very urgent since we
    prefer that our developers do not work until we resolve the issue.
    Thanks in advance, Marc

    Thanks for your reply Venky,
    RMAN> connect target /
    connected to target database: SHD (DBID=1683093070)
    using target database control file instead of recovery catalog
    RMAN> backup check logical validate (datafile 2);
    Starting backup at 16-FEB-12
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=193 devtype=DISK
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of backup command on ORA_DISK_1 channel at 02/16/2012 12:22:36
    ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
    alert_SID.log
    Thu Feb 16 09:43:42 2012
    Errors in file /oracle/SHD/saptrace/usertrace/shd_ora_3380.trc:
    ORA-00600: internal error code, arguments: [4553], [2], [0], [], [], [], [], []
    Thu Feb 16 09:43:47 2012
    Doing block recovery for file 2 block 3455
    Block recovery from logseq 19230, block 22155 to scn 1338742588
    Thu Feb 16 09:43:47 2012
    Recovery of Online Redo Log: Thread 1 Group 2 Seq 19230 Reading mem 0
      Mem# 0: /oracle/SHD/origlogB/log_g12m1.dbf
      Mem# 1: /oracle/SHD/mirrlogB/log_g12m2.dbf
    Block recovery completed at rba 19230.22329.16, scn 0.1338742589
    Doing block recovery for file 2 block 297161
    Block recovery from logseq 19230, block 12545 to scn 1338742588
    Thu Feb 16 09:43:47 2012
    Recovery of Online Redo Log: Thread 1 Group 2 Seq 19230 Reading mem 0
      Mem# 0: /oracle/SHD/origlogB/log_g12m1.dbf
      Mem# 1: /oracle/SHD/mirrlogB/log_g12m2.dbf
    Block recovery completed at rba 19230.22329.16, scn 0.1338742589
    Doing block recovery for file 35 block 352889
    Block recovery from logseq 19230, block 22155 to scn 1338742590
    Thu Feb 16 09:43:48 2012
    Recovery of Online Redo Log: Thread 1 Group 2 Seq 19230 Reading mem 0
      Mem# 0: /oracle/SHD/origlogB/log_g12m1.dbf
      Mem# 1: /oracle/SHD/mirrlogB/log_g12m2.dbf
    Block recovery stopped at EOT rba 19230.22329.16
    Block recovery completed at rba 19230.22329.16, scn 0.1338742589
    Thu Feb 16 09:43:49 2012
    Errors in file /oracle/SHD/saptrace/usertrace/shd_ora_30410.trc:
    ORA-00600: internal error code, arguments: [4553], [2], [0], [], [], [], [], []
    Thu Feb 16 09:43:54 2012
    dev_server0
    Wed Feb 15 10:55:06 2012
    A  GENER request remote generation: CL_SRT_WSP_HELPER_METHODS=====CP.
    A
    A Wed Feb 15 10:55:19 2012
    A  GENER request remote generation: RSDSOSCCM.
    A
    A Wed Feb 15 10:55:23 2012
    A  GENER starting inline generation: RSDSOSCCM (reason: compile error during remote generation).
    C
    C Wed Feb 15 10:55:26 2012
    C     OCIStmtExecute() failed with -1=OCI_ERROR
    C     SQL error 600:
    C  *** ERROR => Error 600 in stmt_execute() from oci_execute_stmt(), orpc=9
    [dbsloci.c    12981]
    C  *** ERROR => ORA-600 occurred when executing SQL stmt (parse error offset=0)
    [dbsloci.c    12983]
    C  sc_p=0x58fd3f0,no=62,idc_p=0x5916100,con=0,act=1,slen=67,smax=256,#vars=2,stmt=0x5cecfb0,table=D010INC
    C  INSERT INTO "D010INC" ( "MASTER" , "INCLUDE" ) VALUES ( :A0 , :A1 );
    C  sc_p=0x58fd3f0,no=62,idc_p=0x5916100,con=0,act=1,slen=67,smax=256,#vars=2,stmt=0x5cecfb0,table=D010INC
    C  Dumping DBSL stmt. cache:
    C  prep=0,lit=0,nsql=0,lobret=0,xop=1,dbcnt=9,upsh=(nil),stmtp=0x5cedc58,rtc=0
    C  IN : cols=2,rmax=387,xcnt=9,rpc=0,rowi=9,rtot=9,upto=4294967295,rsize=160,vmax=32,bound=1,iobuf_p=0x5da5400,vda_p=0x5cee310
    C       lobs=0,lmax=0,lpcnt=0,larr=(nil),lcurr_p=(nil),rret=0
    C  INSERT INTO "D010INC" ( "MASTER" , "INCLUDE" ) VALUES ( :A0 , :A1 );
    B  ***LOG BYL=> DBQ action required because of database error            [dbsh#3 @ 1104] [dbsh    1104 ]
    B  SQL code: 600, SQL text: ORA-00600: internal error code, arguments: [4553], [2], [0], [], [], [], [], []
    B  ***LOG BY4=> sql error 600    performing CLC on table D010INC    [dbrepo#5 @ 6034] [dbrepo  6034 ]
    B  ***LOG BY0=> ORA-00600: internal error code, arguments: [4553], [2], [0], [], [], [], [], [] [dbrepo#5 @ 6034] [dbrepo  6034 ]
    B  DBREPO: new rc return for insert_inc_difference
    A  TH VERBOSE LEVEL FULL
    A  ** RABAX: level LEV_RX_PXA_RELEASE_MTX entered.
    A  ** RABAX: level LEV_RX_PXA_RELEASE_MTX completed.
    A  ** RABAX: level LEV_RX_COVERAGE_ANALYSER entered.
    A  ** RABAX: level LEV_RX_COVERAGE_ANALYSER completed.
    A  ** RABAX: level LEV_RX_SAVE_SHMLOCKS entered.
    A  ** RABAX: level LEV_RX_SAVE_SHMLOCKS completed.
    A  ** RABAX: level LEV_RX_RESET_SHMLOCKS entered.
    Regards, Marc

  • Tablespaces are 100% full

    Hi All,
    In our SAP ECC 6.0 system 3 tablespaces are full. ( 100% used ) but file settings for these tablespaces is AUTO Extend ON .( oracle version is 10.2.0 )
    We have sufficient space at file system level.
    Please suggest:
    1. Should I have to add files to those tablespaces or no need ?
    2. Shall I change file settings from Auto Extend On to Off at any time with SQL or BRtools?
    Thanks & Regards,
    Veera

    >>1. One of my BASIS colleague suggested to add 4gb space to existing datafile ? How can I extend 4GB space to a data file which is autoextend ON?
    Autoextend on / off has advantage and disadvantages.
    You datafile automatically extended as the data grow. But you need to make sure the disk has sufficient freespace. Also make sure your tablespaces not growing fastly.
    What's you monthly DB growth. If below 10 GB then I suggest you can swith off autoextend and add 32 GB datafile and add more space as you need in future. This way you will have control on your DB growth and also filesystem (disk)
    Both option requires monitoring of your DB and filesystems.
    >>2. If tablespace are 100% ( file settings are auto extend on ) full will it effect on performance.
    There is no performance impact but depends how much size you are extending you datafile by. If you extened you db by less than 1GB or so you may have some performance issue.

  • When tablespace next extend happen

    9i/10g AIX/Sun
    when tablespace next extend happen?
    what thresshold is another extent acquired, or does it just get another when it runs out of space?

    According to the
    Oracle® Database Concepts
    10g Release 2 (10.2)
    Part Number B14220-02
    "When you create a table, Oracle allocates to the table's data segment an initial
    extent of a specified number of data blocks. Although no rows have been inserted
    yet, the Oracle data blocks that correspond to the initial extent are reserved for
    that table's rows.
    If the data blocks of a segment's initial extent become full and more space is
    required to hold new data, Oracle automatically allocates an incremental extent
    for that segment. An incremental extent is a subsequent extent of the same or
    greater size than the previously allocated extent in that segment."
    Sim

  • When I go into full screen mode in Safari 5.1 on LION it switches to a new Space, making my other displays useless. Anyone else annoyed that Apple has completely left out those with multiple displays?

    I had a fear that this was going to be the case, but you can't have two full screen apps open in two different displays. At least that's how Safari fullscreen works. When switching over to full screen mode in safari, it automatically creats a new space, turns on four finger gesture to swipe through full screen apps which I had turned off in place of App Switcher.
    I don't use spaces because of the lack of support for using spaces with multiple displays. I would use spaces and mission control if I had control of each display's mission control separately.
    The fix would be to unlink the displays so they can scroll through full screen apps by themselves. I want this feature so I can mix and match the full screen apps on my three different displays. I see this beneficial for more people with multiple displays. in the future when thunderbolt display links, people will want better support too.
    I know I would use spaces and mission control more if I could have this ability. I'd be interested to know people's opinion.

    No no, if you read what I said, it would be that each individual display would be customizable to the user. The way you have it, it sounds like your second display will be dedicated to scrolling through fullscreen apps not allowing you to do it on the home screen. This is silly because with my concept, you could do that, by dragging apps to fullscreen in your second display, but if you want you could tell another display to scroll through fullscreen apps (independently) if you wanted. Each display will have it's own mission control with it's own set of desktops. I also can see how some people would still want them linked together, so this could just be a little check box made in mission control prefs to "link" or "unlink" desktops with link checked by default.
    With your solution you're limited to your setup. but what if the person has three or four displays? Well then your solution would limit them to one dedicated display that scrolls through fullscreen apps where mine lets a person customize their desktops depending on their preference and setup.
    further example: if you have safari, address book and mail in one display, you could still have ichat, PS and Illustrator in your second, and a text editor, FTP Client and iTunes in your third. Then you would mix and match these apps but it would promote the use of mulitple displays as well as benefit people with three or more, which thunderbolt, Cinema Display and Pro computers support.

  • How do you shuffle the image order when creating a new slideshow in apterture 3?  i would like to do this automatically when creating a new slideshow.  i see how you do it when you just play a slideshow.

    how do you shuffle the image order when creating a new slideshow in apterture 3?  i would like to do this automatically when creating a new slideshow.  i see how you do it with presets when you just play a slideshow, but i don't see an option to randomly shuffle the slide order when you create a new slideshow.  i know you can sort it by different fields, but i want it to be random.  thanks.

    If you want to rearrange images in random order you can try an AppleScript:
    retrieve a list of selected images from Aperture
    shuffe the list properly
    create an album in Aperture and add the images from the list to the album (make sure that the album set to be orederd manually)
    Here  is a sample script that shuffles the selected images and displays them in random order in Full Screen Mode:
    on removeItem(ims, i)
      -- remove the item at position "i" from a list ims
              if ims is {} then return {}
              if (length of ims is 1) then return {}
              if i < 2 then return rest of ims
              if (i = length of ims) then return (items 1 thru (i - 1) of ims)
              if i > (length of ims) then return ims -- should be error?
              return (items 1 thru (i - 1) of ims) & (items (i + 1) thru (length of ims) of ims)
    end removeItem
    on shuffle_items(ims)
      -- shuffle the items of the list "ims" randomly
              local numitems, ims_shuffled, nextrest, nextpick, i
              set numitems to length of ims
              if length of ims < 2 then return ims
              set ims_shuffled to {}
              set nextrest to ims
              repeat until nextrest is {}
                        set i to (random number (numitems - 1)) + 1
                        set nextpick to item i of nextrest
                        set beginning of ims_shuffled to nextpick
                        set numitems to numitems - 1
                        set nextrest to removeItem(nextrest, i)
              end repeat
              return ims_shuffled
    end shuffle_items
    on shuffleIms()
      -- retrieve the selected images from Aperture
      -- and display them in random order in full screen mode
              local imageSel, shuffled, i
              tell application "Aperture"
      activate
                        set imageSel to (get selection)
                        set shuffled to my shuffle_items(imageSel)
                        set fullscreen to true
                        if imageSel is {} then error "Please select some images."
                        repeat with i from 1 to count of shuffled
                                  reveal {item i of shuffled}
      delay 3 -- chnage that to the time you want
                        end repeat
                        set fullscreen to false
                        return shuffled
              end tell
    end shuffleIms
    shuffleIms()
    Some more code snippets to go from here:
    To create an album:
                        tell library 1
                                  if not (exists album "shuffledAlbum") then
      make new album with properties {name:"shuffledAlbum", image version:shuffled}
                                  end if
                        end tell
    And to add the images from the shuffled list to the album:
                        repeat with i from 1 to count of shuffled
                                  duplicate item i of shuffled to album "shuffledAlbum"
                        end repeat
    Regards
    Léonie

  • In AP invoice i need to make "Terms date " field to calculate the date automatically when i select the payment terms

    In AP invoice i need to make "Terms date " field to calculate the date automatically when i select the payment terms.
    How can i do this?

    Hi,
    You can select the Payment Term at PO Header Level.
    When you book an invoice, that Payment Term will automatically defaulted to Invoice.
    You can define Payment Term in AP.
    Payment terms have one or more payment terms lines, each of which creates one scheduled payment. Each payment terms line and each corresponding scheduled  payment has a due date or a discount date based on either a specific day of a month, such as the 15th of the month, or a number of days added to your terms date, such as 14 days after the terms date.
    Payment Terms (Oracle Payables Help)

Maybe you are looking for

  • Help: Can't Start Oracle 9i

    I downloaded Oracle 9i, but when I go to open the folder I get a dialog box that says---Open with... What am I missing that I can open?

  • Issue with Generic PnP monitor on G505s

    Hi there, I'm running Windows 8.1 on a G505s. My brightness settings can no longer be adjusted either by hotkeys or in settings. The solution centre informed me that the Generic PnP monitor on my machine is disabled because windows couldn't read it p

  • Bought Aperture 3 Upgrade. Won't accept my Serial Number from Aperture 2...

    I have Aperture 2 and my Aperture 3 Upgrade will not accept the serial number no matter how many times I try it. Please help. Why the he11 doesn't Apple have easy contact numbers for situations like this? Thanks.

  • Generating uncompressed AVI - will Compressor 4 work?

    Before I purchase Compressor 4, will it allow me to export to (after creating and sharing from Motion 5) to an uncompressed AVI?  I have previously shared to and exported from FCP 7, but since I switched to Mountain Lion 10.8 the "no compression" opt

  • How to change a blade of chassis in safe mode

    Hi there guys! I'm triying to change a blade of chassis, but everytime that we make the change the OS into the blade its deleted; this is hapenning with all the blades that are trying to move. We don't have any Scrub policy applied. Anyone has idea o