About runtime sequence creation and view dare pre commmit.

Dear All,
My 2 New Question are:
1)Could Oracle suggest to create sequence(DDL) from run-time.That means I need(My client requirement) regenerate of sequence(I know it is possible by cycle but i don't know MAX value when it will cycle)as monthly or a specific time so I want to drop sequence and create sequence by a)Programmetically runtime
b) Oracle scheduler runtime .
Have any good and better Idea? Any risk factor?
Note that at a time possibly more than 100 users will data entry with our software.
2)My New query is Could I view table data which was not yet COMMITTED from other session-other user.
Regards and Thanking you,
ZAKIR
Analyst ,
SynesisIT,
www.Synesisit.com
=====

I tried that, but there are too many trouble.
For only references.
-- Usage
Procedures
 execute periodic_seq.seq_def   create sequence
 execute periodic_seq.seq_undef drop sequence
Functions
  periodic_seq.nextvalue
   get nextval of specified sequence
  periodic_seq.currvalue
   get currval of specified sequence
seq_def
 in_seq_name varchar2 (30)
    sequence name (current schema)
 in_trunc_unit varchar2
  'yyyy','mm','dd','hh24','mi' : format on trunc(date)
seq_def
 in_owner varchar2 (30)
  schema name
 in_seq_name varchar2 (30)
  sequence name
 in_trunc_unit varchar2
  'yyyy','mm','dd','hh24','mi' : format on trunc(date)
 incr_by integer (default:1)
  increment by
 start_with integer (default:1)
  start with
 maxvalue integer (default:to_number('1e27'))
  maxvalue
 minvalue integer (default:1)
  minvalue
 cycle varchar2 (default:'N')
  'Y':cycle/'N':nocycle
 cache integer (default:20)
  cache
 time_order varchar2 (default:'N')
  'Y':order/'N':noorder
seq_undef
 in_seq_name varchar2 (30)
    sequence name (current schema)
seq_undef
 in_owner varchar2 (30)
  schema name
 in_seq_name varchar2 (30)
  sequence name
nextvalue
 in_seq_name varchar2 (30)
    sequence name (current schema)
nextvalue
  in_owner varchar2 (30)
  schema name
 in_seq_name varchar2 (30)
  sequence name
currvalue
 in_seq_name varchar2 (30)
    sequence name (current schema)
currvalue
  in_owner varchar2 (30)
  schema name
 in_seq_name varchar2 (30)
  sequence name
-- Source --
-- Control table
create table cycle_seq_ctrl
(sequence_name varchar2(30) not null
,min_value integer
,max_value integer
,increment_by integer not null
,cycle_term varchar(10) default('dd') not null
,last_number integer not null
,reset_time date
,prev_nextval integer not null
,constraint pkey_cycle_seq_ctrl primary key (sequence_name)
organization index
create or replace
package cycle_seq
authid current_user
is
function nextvalue
(seq_name varchar2
,in_date date := sysdate
) return integer
function currvalue
(seq_name varchar2
) return integer
procedure seq_def
(seq_name varchar2
,cycleterm varchar2 := 'DD' /* Defaults : reset by a day */
,incr_by integer := 1
,start_with integer := 1
,maxvalue integer := to_number('1e27')
,minvalue integer := 1
procedure seq_undef
(seq_name varchar2
end; -- package cycle_seq
create or replace
package body cycle_seq
is
  type currval_tab_type is table of integer index by varchar2(30);
  currval_tab currval_tab_type;
function nextvalue
(seq_name varchar2
,in_date date := sysdate
) return integer
is
pragma autonomous_transaction;
  timeout_on_nowait exception;
  timeout_on_wait_sec exception;
  pragma exception_init(timeout_on_nowait, -54);
  pragma exception_init(timeout_on_wait_sec, -30006);
  p_seqname cycle_seq_ctrl.sequence_name%type;
  p_ctrl cycle_seq_ctrl%rowtype;
  p_currtime date;
  p_nextval integer;
begin
  p_currtime := in_date;
  p_seqname := upper(trim(seq_name));
  select *
    into p_ctrl
    from cycle_seq_ctrl
   where sequence_name = p_seqname
  for update wait 1
  if (p_ctrl.cycle_term<>'SS') then
    p_currtime := trunc(p_currtime,p_ctrl.cycle_term);
  end if;
  -- need to reset
  if (p_ctrl.reset_time < p_currtime) then
    if (p_ctrl.increment_by > 0) then
      p_nextval := p_ctrl.min_value;
    elsif (p_ctrl.increment_by < 0) then
      p_nextval := p_ctrl.max_value;
    else
      p_nextval := p_ctrl.last_number;
    end if;
    update cycle_seq_ctrl
      set last_number = p_nextval
         ,reset_time = p_currtime
         ,prev_nextval = last_number + increment_by
    where sequence_name = p_seqname
    currval_tab(p_seqname) := p_nextval;
    commit;
    return p_nextval;
  end if;
  -- already reseted (in a same second)
  if (p_ctrl.reset_time = p_currtime) then
    p_nextval := p_ctrl.last_number + p_ctrl.increment_by;
    update cycle_seq_ctrl
      set last_number = p_nextval
    where sequence_name = p_seqname
    currval_tab(p_seqname) := p_nextval;
    commit;
    return p_nextval;
  -- already reseted
  else
    p_nextval := p_ctrl.prev_nextval + p_ctrl.increment_by;
    update cycle_seq_ctrl
      set prev_nextval = p_nextval
    where sequence_name = p_seqname
    currval_tab(p_seqname) := p_nextval;
    commit;
    return p_nextval;
  end if;
exception
  when no_data_found then
    raise_application_error(-20800,
       'cycle_seq.seq_def('''||seq_name
       ||''') has not been called.');
  when timeout_on_nowait or timeout_on_wait_sec then
    raise_application_error(-20899,
       'cycle_seq.nextvalue('''||seq_name
       ||''') is time out.');
  when others then
    raise;
end
function currvalue
(seq_name varchar2
) return integer
is
  p_seqname cycle_seq_ctrl.sequence_name%type;
begin
  p_seqname := upper(trim(seq_name));
  return currval_tab(upper(seq_name));
exception
  when no_data_found then
    raise_application_error(-20802,
       'cycle_seq.nextvalue('''
       ||seq_name||''') has not been called in this session.');
  when others then
    raise;
end
procedure seq_def
(seq_name varchar2
,cycleterm varchar2 := 'DD'
,incr_by integer := 1
,start_with integer := 1
,maxvalue integer := to_number('1e27')
,minvalue integer := 1
is
  p_seqname cycle_seq_ctrl.sequence_name%type;
  p_currtime date;
  p_cycleterm cycle_seq_ctrl.cycle_term%type;
begin
  p_currtime := sysdate;
  p_seqname := upper(trim(seq_name));
  p_cycleterm := upper(trim(cycleterm));
  if (p_cycleterm<>'SS') then
    p_currtime := trunc(p_currtime,cycleterm);
  end if;
  insert into cycle_seq_ctrl
    (sequence_name
    ,min_value
    ,max_value
    ,increment_by
    ,cycle_term
    ,last_number
    ,reset_time
    ,prev_nextval
  values
    (p_seqname
    ,minvalue
    ,maxvalue
    ,incr_by
    ,p_cycleterm
    ,start_with - incr_by
    ,p_currtime
    ,start_with - incr_by
  commit; -- Because this is as like a DDL
exception
  when dup_val_on_index then
    raise_application_error(-20955,
       'already defined with '
      ||'cycle_seq.seq_def('''||seq_name||''')');
  when others then
    raise;
end
procedure seq_undef
(seq_name varchar2
is
  p_seqname cycle_seq_ctrl.sequence_name%type;
begin
  p_seqname := upper(trim(seq_name));
  delete from cycle_seq_ctrl
  where sequence_name = p_seqname
  commit; -- Because this is as like a DDL
end
end; -- package body cycle_seq
/

Similar Messages

  • Create sequence, function and view all at once -script or something similar

    Hi I would like to know in what way can I write a script or something like that which would define names for a sequence, function and a view in the beginning (for example TEST_SEQ, TEST_FJ, TEST_VIEW...) and after that create this sequence, function and view with definitions like
    CREATE SEQUENCE  TEST_SEQ
    MINVALUE 1 MAXVALUE 999999999999999999999999999
    INCREMENT BY 1 START WITH 1 NOCACHE  NOORDER  NOCYCLE;
    create or replace FUNCTION TEST_FJ RETURN NUMBER AS
    tmp number;
    BEGIN
    select TEST_SEQ.NEXTVAL  into tmp from dual
    RETURN tmp;
    END TEST_FJ;
    and so on...
    In the end I would also like to grant some rights on these objects I just created:
    grant select on TEST_SEQ to public;
    grant execute on TEST_FJ to public;
    So my question is how to package all these things together so I can execute them from a single file in SQL Developer, and if i need to change the names of these tables I want do it in one place in the beginning of this script (or something like a script, I'm not sure what)...
    Thanks in advance!

    hi,
    hope help you...
    this is my basic generic solution...
    create or replace procedure createSequence( psequenceName in varchar2 ) is
    begin
    execute immediate 'create sequence ' || psequenceName ;
    execute immediate 'grant select on ' || psequenceName || ' to public ';
    end ;
    create or replace function getNextVal( psequenceName in varchar2 ) return number is
    queryText varchar2(100) := 'select <sequence_name>.nextval into :next_value from DUAL' ;
    next_value number ;
    begin
    queryText := replace(queryText,'<sequence_name>',psequenceName);
    execute immediate queryText into next_value ;
    return( next_value ) ;
    end ;
    Edited by: edogt on Nov 27, 2008 5:33 AM
    Edited by: edogt on Nov 27, 2008 5:35 AM
    Edited by: edogt on Nov 27, 2008 5:35 AM

  • Documentation about Content Area APIs and Views

    Can somebody point me to the documentation about Content Area APIs and also the documentation about the views of the Content Areas ?
    I have not been able to find nothing else that what is available in the package specs.
    Thank you for your help.

    Hi,
    Please Refer to this thread.
    Re: eclipse designer not found in Beta 3
    --Sriram                                                                                                                                                                                                                                   

  • JTable Creation and Viewing

    I want to create a table and display it along with the column names on it?
    i.e
    if I have two columns Names, Properties
    When I run I want to see
    Names Properties
    row1 row1properties
    row2 row2properties
    ...etc
    I tried giving this
    DataModelClass newDataModelClass = new DataModelClass();
    public JTable jTable1 = new JTable(newDataModelClass.data);
    which is displaying only the data not the column names.
    How can I get the column names also when I run?
    Thanks.

    It seems you need to study more. Go here to learn.
    http://www2.gol.com/users/tame/swing/examples/SwingExamples.html

  • BC SETS creation and usage for sap mm  point of view

    Hi All,
    Need Information About  BC SETS  creation and usage from sap mm point of view.
    Thanks in advance for sap mm forum guys.
    Regards.
    Parameshwar.

    Hi,
    Customizing settings can be collected by processes into Business Configuration Sets (BC Sets). BC Sets make Customizing more transparent by documenting and analyzing the Customizing settings. They can also be used for a group rollout, where the customizing settings are bundled by the group headquarters and passed on in a structured way to its subsidiaries.
    BC Sets are provided by SAP for selected industry sectors, and customers can also create their own.
    When a BC Set is created, values and combinations of values are copied from the original Customizing tables into the BC Set and can be copied into in the tables, views and view clusters in the customer system. The BC Sets are always transported into the customer system in which Customizing is performed.
    Advantages of using BC Sets:
    1.     Efficient group rollout.
    2.     Industry sector systems are easier to create and maintain.
    3.     Customizing can be performed at a business level.
    4.     Change Management is quicker and safer.
    5.     Upgrade is simpler.
    To create BC sets follow the below step:
    Choose Tools ® Customizing ® Business Configuration Sets® Maintenance in the SAP
    menu, or enter the transaction code SCPR3 in the command field.
    Choose Bus.Conf.Set ® Create.

  • Hi, dragging jpeg files into i-movie - the selection of jpegs is repeating certain photos and not featuring others, making the entire sequence impossible to view. PLEASE HELP!

    Hi, I have been dragging jpeg files into i-movie all week without issue. Now all of a sudden, the selection of jpegs I'm dragging is repeating certain photos and not featuring others, making the entire sequence impossible to view.
    Please help, this is urgent for a funeral tomorrow! It didnt happen with any of the other family tributes, they all worked fine.
    Many thanks,
    Ruth

    It worked! Thank you! I finally just finished about 20 minutes ago! It took over 26 hours to complete the process you described, but I stuck with it and it worked. I am glad I didn't give up or "forget it" as some might have suggested. That would have set me back until tomorrow!
    Ultimately, it turned out there were 45,910 jpgs created. No wonder it took so many hours to render/display them all. It ended up being about 10 hours before it seemed they were all rendered but the process between them displaying and being able to start really deleting them took a few hours because partly I was asleep and also partly it took forever to do anything. Any action as simple as selecting and right-clicking to Get Info, or emptying the trash, would take 20-30 minutes, a couple times longer. The clock stopped many times for 20-30 minutes at a time, a few times over 30 minutes, before catching back up. My cursor never froze which is what really kept me going, although it was a spinning beach ball for most of the time. I was never so relieved to see my regular cursor as opposed to seeing a spinning beach ball as I was early this morning after about 10 hours!
    Once I was able to open a Finder window and select all 45,900 files (I had already deleted 10 in the previous couple hours during experimenting of trying to figure out what would work best), then right-click and select to move all the files to the trash, the process of moving them to the trash took 4.5 hours. Then deleting them from the trash took a couple minutes. There were 21.4 GB!!! No wonder the whole process took 26 hours!
    mende1, thank you so much!

  • Newbie question about entity and view objects

    Hi everyone,
    My first ADF application in JDeveloper is off to a difficult start. Having come from a forms background, I know that it is necessary avoid using post-query type lookups in order to have full filtering using F11/Ctrl+F11. This means creating an CRUDable view and getting as much of the lookup data as possible into the view without losing the ability to modify the data. In JDeveloper, I do not know how to build my data model to support that. My thought was to start with a robust updateable view as my main CRUD EO and then create a VO on top of that with additional EOs or VOs. But, I have found that I cannot add VOs to another VO. However, if I link the VOs then I have a master-detail which will not work for me.
    For example, I have two joins to CSI_INST_EXTEND_ATTRIB_V shown in the queries below and need to have that show in the table displaying the CRUD VO’s data. It seemed that the best way to do this is to create a CSI_INST_EXTEND_ATTRIB_V entity object and view object. The view object would have two parameters, P_INSTANCE_ID and P_ATTRIBUTE name. Both the building and the unit are needed on the same record, and this is not a master-detail even though it might look that way. (A master-detail data control will not work for me because I need all this data to appear on the same line in the table.) So, I need help figuring out the best way to link these to the main (CRUD) view; I want as much of this data as possible to be filterable.
    select
    cieav.attribute_value
    from
    csi_inst_extend_attrib_v cieav
    where cieav.instance_id = p_instance_id
    and cieav.attribute_code = 'BUILDING NAME'
    select
    cieav.attribute_value
    from
    csi_inst_extend_attrib_v cieav
    where cieav.instance_id = p_instance_id
    and cieav.attribute_code = 'UNIT NAME'
    Ultimately, I need to display a ton of data in each record displayed in the UI table, so a ton of joins will be needed. And, I need to be able to add records using the UI table also.
    James

    Hi Alejandro,
    Sorry if I caused confusion with my first post. What I had in mind assumed that I could have a single CSI_INST_EXTEND_ATTRIB_V EO with a BuildingVO and UnitVO on top of it. So, I wrote the queries individually to show how I would invoke each view. When I realized that confused the issue, I rewrote the query to explain things better.
    Now having seen your 2 queries. You need to create 2 EO. One for each table. Then create an association between the 2 aeO (this will be the join you are talking about). Then, you need to create a VO based on one of the EO and after you can modify and add the second EO (in here you select the join type).
    After your done with this, youll have 1 VO that supports CRUD in both tables.
    There were three tables in the query: CIEAV_BUILDING, CIEAV_UNIT, and T -- the main CRUD table. When you say that I should create two EOs, do you mean that they are to be for CIEAV_BUILDING and CIEAV_UNIT? Or, CIEAV and T? Assuming CIEAV and T, that sounds like it would allow me to show my building or unit on the record but not both.
    By the way, everything is a reference except for the main CRUD table.
    Look forward to hearing from you. Thanks for your help (and patience).

  • HT1923 I downloaded Itunes and keep getting a runtime error R6034 and was told to contact Itunes about problem/

    I downloaded Itunes and keep getting a runtime error R6034 and was told to contact Itunes about problem/

    First try updating to iTunes 11.1.5.5, using an installer downloaded from the Apple website:
    http://www.apple.com/itunes/download/
    If you still get the errors after that, try the following user tip:
    Troubleshooting issues with iTunes for Windows updates

  • BAM Error - during the creation of BAM Activity and View in EXCEL

    I'm getting an error "The Cube could not be created successfully. Please edit the view and validate the inputs" during the creation of BAM Activity and VIEW in MS Excel for BAM
    Error Details:
    Error Description:
    The following system error occurred:  Invalid class string .
    Error Source:
    Microsoft OLE DB Provider for Analysis Services 2008.
    Please help me in resolving the issue. Thanks in Advance!!

    Hi Ramesh,
    Below link has the information related to all the prerequisites for using BAM Add-In for Excel.
    Kindly ensure that you have all the files in place before creating BAM Activity and View.
    http://msdn.microsoft.com/en-us/library/aa560476.aspx
    Rachit
    Please mark it as Answer if this answers your question

  • I just downloaded the new Firefox 4, rebooted, and viewed you videos re the new look and new features. Problem is, my toolbars look no different than before. The new icons you talk about do not appear on my screen. Please advise. Thank you.

    I just downloaded the new Firefox 4, rebooted, and viewed your videos re the new look and new features. Problem is, my toolbars look no different than before. The new icons you talk about do not appear on my screen. Please advise. Thank you.

    The Firefox icon is the default feature for Windows Vista and 7 only, it does not apply to Windows XP users.
    To have the Firefox icon instead of the Menu Bar:
    View > Toolbars and UNCHECK the Menu Bar.
    After that, click on the Firefox icon and you'll have the Menu Bar appear again.
    http://support.mozilla.com/en-US/kb/Menu%20bar%20is%20missing

  • HT2128 I am on Mac Lion. I about 36 photos frodownloadedm a friends storage place online.? I usually select about 10 at a time and view in preview (default) to make my selections. But Lion is saying blahblah.jpg is an application downloaded from the inter

    I am on Mac Lion. I downloaded about 36 photos from a friends storage place online.?
    I usually select about 10 at a time and view in preview (default) to make my selections. But Lion is saying "blahblah.jpg is an application downloaded from the internet.  Are you sure you want to open it?" These are files not applications (jpg's)
    Is there no way to change this and not get the question every time? I will have to do it for every picture one at a time- what a pain. The older operating system did not do this.

    It's possible, but not recommended unless you're an advanced user who understands the risk. Install the free application "TinkerTool" (not "TinkerTool System"), select the Applications tab, and check the box labeled "Don't show quarantine warnings for downloaded files." Log out and log back in. This action will disable the built-in protection against malware. You've been warned.

  • Question about windows theme and viewing webpages

    I all, I am new here, I have had my laptop for about 8 mths, but it was packed away for about 6mths, so it has only really had 3 mths of use and that was 99% for watching movies as this was my backup laptop (my girlfriends, which was never used)...
    Okay I just got my laptop back out of storage and started using it again as I want to make this my main work computer now, it is a Satellite A100 Series. Running Win XP Pro SP2. Okay, now i have been using it for about 1 week now, and it is a fantastic computer, expecially the finger swipe feature, I am usually a XP Home Edition person, but i am making do with Pro, just have not had all the experience with it..
    Now here is the problem, and this has always been the problem since purchased, when we first bought this and connected to the internet with IE7 the fonts were massive, i figured how to fix this in the display settings after a few hours playing around, and also noticed the webpages if there was a background image it does not display... (this week I also found this is the same for any application on the PC that uses a webpage like set-up, or something, just sectain things... such as i open the Security Center in the control panel and the whole thing is white background, and any background images are not there (making it white), and even the round corners that are background images do not show up, and comparing to my other computer, there should be green and red background colours etc.
    Also with Windows Media Player the actual buttons should be purple and black in WMP11, and these have like a html style white background over the buttons with links on them at the top and the play, stop etc buttons have a back outer and the inside is white...
    basically what i am saying is it is not showing up CSS style WC3 content on some pages and apps on the laptop, and as for webpages they are exactly the same, I have tried IE7, FireFox, Avant Browser, and all the same, the only one that shows pages almost like it should is Opera 9.2, but I really need to fix this problem... it is obioussly something simple to do with display, or settings but i have literally tried every simgle different way of doing things in the last week, tried everything in the control panel, all the Toshiba toools, and no results.
    I am not a newbie or anything either, i just cant get this fixed, i cant even think of a setting that would make this occur let alone trying to fix it... I have all recent Windows Updates (though like i said, it has been doing this since the first day of purchase)...
    If i could post a screenhot here I would show you... what webpages look like in IE7 and FireFox and Avant (the only difference is Internet Explorer background of the pages is mainly grey and firefox is white, avant is grey also.)
    one more issue, when i was messing around with the settings in the control panel, Under Performace I changed it to something like "make display best for performace" rather than "Best for Display" , and this then made my control panel plain with a white background, and everything is not how i am used to it, even the categories are done for each section , they are just all grouped there, and my Windows Home on my other laptop is set to this, but it atleast has a sidebar on the left with a button to change back...
    now i am at a loss to find the Performace button, as it is there no longer, and I want to change it back to "display best for the display" not the persomance... so if anyone knows how to do this, please let me know... i took a screenshot of my Control Panel also.. and it is not bare, I am using the Windows Zune theme (the black buttons and backgrounds etc), so it used to be a dark grey background with a statusbar on the side with all links and details just like for folders etc... so yeah this is another thing i want to fix.
    Also i dont have the CD anymore to repair it, not that i think it needs it, but i do have a standard out of the box Win Xp Pro disc, i have been seriusosly doing a fresh install, but i know i will lose all the toshiba add-ons and extras it came with, so thats the only reason i have not, as it has Protector Suite QL which i would have to pay for if doing a clean install, and i really dont want to do that as there is obviously something i am missing, its as simple as that, there is nothing wrong with the system its just not configured correctly.
    Here are some screenshots of how I see webpages, my Security Center Page, and my Control Panel since i messed it up doing 'Make best for performace' and the display turned to basic white background and half the stuff in the Control Panel is now missing, it was setup in categories previous... ahhhhh, when i try and fix the original problem i made another..
    http://i203.photobucket.com/albums/aa134/phorumws/just%20stuff/ScreenHunter_01-1.jpg
    {This is the Security Center Screen when i click from the Control Panel, this was before i made it bland)
    http://i203.photobucket.com/albums/aa134/phorumws/just%20stuff/ScreenHunter_02Sep3021.54.jpg
    ( this is now my control panel once i went into 'Premformance and Display" (i think. it was definately performace in the category name though) .. and i changed a setting to do with performance and display making it use less resources.. now i cant change it back, as the performace button does not exist anymore :( )
    Thanks for reading, and I sure hope someone out there can help me cos i would hate to have to do a whole new install over something as small as this, there is not many add-on programs on my laptop, as i said, it has probably beeen used 20 times ever, and mostly to watch movies until 1 week ago where it was sitting in storage for 6mths,,
    Any help would be greatly appreciated... I have tried all Internet Options, all Display Options, all variations , i need something specific, it is not only effecting the internet, but overall programs with html style links, etc and definately CSS style sheets and the background image feature in html code.
    Thanks in advance.

    Hi Jay
    Very impressive posting! As I can see after 4 days nobody wrote anything to give you the solution for your problem. I have read your posting very carefully and must say that it was not easy to understand your problem exactly (maybe because English language is not my mother tongue).
    I know very well that new OS installation is latest and radical solution but I recommend you to check some Microsoft WXP forums because described issue is, in my opinion, more for OS forums than for Toshiba forum.
    If you will post the same in Microsoft forum please post the link and we can follow the discussion there.
    I wish you good luck and hopefully you will find answers soon.

  • New document about sequence presets and codecs missing from Premiere Pro

    If you're having problems with sequence presets and codecs missing from Premiere Pro, see this document for solutions for this activation issue.
    This document relates to the following problems:
    - missing sequence presets when creating a new sequence
    - Encore error: "Encore will not launch in non-royalty bearing mode. The application needs to be serialized with a royalty bearing serial number."
    - When opening a project in Premiere Pro: "Error Adobe Premiere Pro: This project contained a sequence that could not be opened. No sequence preview preset file or codec could be associated with this sequence type."
    - When importing footage, the footage is missing audio or video.
    These failures are all because Premiere Pro and Encore use some codecs that require activation before they can be used. If activation of these codecs has failed, these codecs will not be available to use.

    Well done.

  • Graphics render bug in FCP 6 and 7 - Dare to prove me wrong?

    I have an issue with an HD video that contains red and purple text and graphics in the edit. I've looked for an answer tirelessly online, with friends, and through trial and error for a good 7 hours before giving up. Here's the deal,
    Sequence settings: HD 1440x1080 16:9, 23.98, HDV 1080p24 for editing the canon7d footage that came in - this however doesn't matter because i tested with every setting imaginable including animation raw and ended up with the same results for the graphics problem I'm having (kind of unrelated to the actual footage).
    I need to output this 9 minute edit I have to an HD file 1280x720 for youtube upload. So, it has to be under 2gb (youtube's limit) but for client purposes, it needs to be crisp and great looking as you would imagine.
    I have a bunch of PSDs, each show a different line drawing of a brush. For each one, the line is a different color. For any of the colors that aren't red or purple, they render crisp and wonderful in final cut pro over top the video. However, the graphics that have the lines that are red or purple, come out pixelated and blurry no matter how i try to render them. The only solution that worked was to render and output them with the animation codec. ProRes HQ worked too but not as well. However, this makes a file way too big. Whenever I went from animation to h264 or from FCP to h264, or any other web friendly format, graphics come out way pixelated. It makes me frustrated as to why all the graphics that were exactly the same except not red or purple came out perfectly crisp. Also, why is animation codec the only codec out there (besides uncompressed obviously) that will create clean edges in these red/purple graphics?
    Conclusion: Found that reds and purples are the only colors that seem to be effected when rendering the graphics. Everything else comes out nicely. Animation and pro res codecs aside, any codec making the video small enough for the web (less than 2gb) resulted in the problem of pixelation with the red and purple graphics. Based on extensive research I did online, I was surprised not to find many people posting about the exact same problem. For the issues I did find that seemed related, people concurred that HD nor regular DV video do a good job rendering bright reds or variations of red. Because I found no solutions online or from all the things I tried in the list below
    -re-rendered the PSD's in Final cut pro with variation of sequence setting to see if that would make any difference - it didn't. Tried all kinds of different settings in export for h264, keyframes, max quality, etc. no luck.
    -tried rendering to "Animation/uncompressed" as far through the process as possible. For instance, I outputted a perfectly crisp "Animation" file that was perfect looking. As soon as I re-exported to h264, mpeg4, or sorenson, or any other codec dropping the file size down, all results returned pixelated results for the reds and purple graphics.
    -made sure photoshop settings were all good, even copied and pasted psd into new 1920x1080 project, played with DPI up to 300 to see if it did anything, saved as different formats TIFF, png, eps, layers, flattened, 8-bit, 24-bit, 36-bit, etc., none of the formats worked correctly.
    -outputted my own purple and red graphics and text and rendered in final cut to see if the file had anything to do with it. same problem with my red and purple graphics and text.
    -Tried adding slight moving grain to the graphic in Final cut to try and trick FCP to thinking it was a video instead of a graphic and therefore render it smoothly.
    -consulted with 2 other video editors/media experts, ended up frustrating them as well (and hurting their ego a little since they were sure they could figure it out)
    -Ran the shot and graphic through after effects and premiere pro separately (different video programs) to see if final cut pro was causing the problem, same problem with those programs.
    -tried rendering on a different mac, still the same.
    -Actually upgraded my final cut pro version to the new version (now Final cut studio 3). Ran tests on new version of final cut pro, same exact problem.
    -added black edge to purple graphics to see if that did anything different to the rendering. Didn't help
    -Changed the hue of the graphic to anything other than red or purple. Wouldn't you know...That fixed it.
    Here is a link to the Animation Output of a half second of the edit with a sample red graphic crisp as can be for you to test (12.7mb) -
    http://www.robinsonhope.com/downloads/makeup_animationtest.zip
    Here is a link to view screenshots before and after to show you what rendering does to the graphics.
    http://www.robinsonhope.com/downloads/makeup_ss.jpg
    In case you'd like to try and find a solution, please download the link to the HD animation half-second clip and output to h264 or any other web friendly codec that would show these red graphics clean and not blurry and pixelated. Other rule is after doing the math, a 9 minute video with the compression you choose would need to be under 2gb. This shouldn't be too much of a problem because even a 1280x720 h264 at max quality for a 9min video is still under 2gb.
    The first person to show me that you are truly a FCP guru and can solve this, post a link of your successful solution, I will praise you as genius all over this forum. I will also be eternally grateful. Live in LA? I'll also buy you dinner, Haha. But seriously...

    Welcome to this forum,
    Sorry to hear you so struggling with this issue.
    And I doubt whether I can solve this for you, but I can say a few things.
    The title of this thread is:
    Graphics render bug in FCP 6 and 7 - Dare to prove me wrong?
    I'll prove you are wrong. Or actually you've already proved yourself wrong in your post:
    -Ran the shot and graphic through after effects and premiere pro separately (different video programs) to see if final cut pro was causing the problem, same problem with those programs.
    Seams that I try to annoy you, but I'm not. It's not a joke. The fact that other applications can't handle it as well AND the fact that Animation Codec (Which is pretty lostless) does not have this problem, tells you that the problem is likely the low compression you want OR the footage itself. And I dare say it's BOTH.
    I downloaded your testfile and have opened it in FCP and I can see in the Vectorscope that your color Red is too hot.
    [Click here|http://i843.photobucket.com/albums/zz356/rienkL/Screenshot2010-04-02at1324 20.png] to see the vectorscope of your picture?
    You also see the small boxes (clockwise)
    Red, Magenta, Blue, Cyan, Green, Yellow. The signal of your picture should stay somewhere between those boxes. You should read [this article|http://www.larryjordan.biz/articles/lj_scopes.html] (two third on the page) about the vectorscope. Also has a picture with the range to be broadcast safe.
    So back to your picture and your vectorscope. You'll see that just along the right side of the R in the vectorscope there's a peak which goes way out of the range. And that's exactly the color of your graphic.
    I tried isolating that color, reducing the saturation, and then do an export, but that failed. You should adjust that within the PSD's first and then see how exporting goes.
    So now you are thinking: My client wants his own colors! Sure he does. But those colors were probably designed for print, which does have another colorrange. Simple technical story. You're bound to specific saturation. Going over that means troubles....
    And I'm not claiming that your problem will be solved when you adjust this. It is still possible that h264 just doesn't like red too much. Maybe that's on purpose. Our eyes are most less sensitive to red, so that gives the compressor some extra room to compress in the reds (Don't know if this is what compression developers do; just thinking out loud, just an idea...)
    Hope this helps at least a little.
    Rienk

  • Creation of Views

    Hai Experts,
                 I'm new to the ABAP development area. I am learning about tables, buffers etc. And now i want to know about Views and the creation of Views. So can anybody give me the steps involved in the creation of views?
    Regards,
    P.Shanthi

    Creating a Maintenance View
    http://help.sap.com/saphelp_40b/helpdata/en/cf/21ed2d446011d189700000e8322d00/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/5a/0c88924d5911d2a5fb0000e82deaaa/content.htm
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/abap+dictionary&focusedcommentid=39861
    Enter the name of the view in the initial screen of the ABAP Dictionary, select object class Views and choose Create. A dialog box appears, in which you must choose the type of the view. Select the type Maintenance view.
    The maintenance screen for maintenance views appears. You will see three input areas for tables, join conditions and view fields. Carry out the following actions in this screen:
    Enter a short explanatory text in the field Short text.
    In Tables, enter the primary tables of the view.
    If required, include more tables in the view. In a help view you can only include tables which are linked to one another with foreign keys.
    Position the cursor on the primary table and choose Relationships. All existing foreign key relationships of the primary table are displayed. Check the foreign keys you require and choose Copy. The secondary tables involved in such a foreign key are included in the view. The join conditions derived from the foreign keys ( Foreign Key Relationship and Join Condition) are displayed.
    You can also include tables which are linked to one of the previously included secondary tables with a foreign key. To do this, position the cursor on the secondary table and choose Relationships. Then proceed as described above.
    You can only select foreign keys in which the secondary table for the primary table or for the secondary table which transitively preceded it is in an n:1 relationship. This is the case if the secondary table is the check table of the base table and the foreign key was not defined generically. If the base table is the check table, the foreign key fields must be key fields of a text table or the foreign key must have cardinality of n:1 or n:C.
    The foreign keys violating these conditions are displayed at the end of the list under the header Relationships with unsuitable cardinality.
    Select the fields which you want to include in the view.
    You can enter the field names directly. If you do not know the field names, you can copy them from the tables. To do this, position the cursor on a table and choose TabFields. The fields of the table are now displayed in a dialog box. You can copy fields from here by marking the first column and choosing on Copy.
    Formulate the selection conditions. To do this choose Goto ® Selection condition. The input area for the selection conditions appears in place of the input areas for the fields. Maintain the selection condition as described in Maintaining the Selection Condition for a View. You can then switch back to the fields display with Goto ® View fields.
    Activate the view with View ® Activate. A log is written during activation. You can display it with Utilities ® Activation log. If errors or warnings occurred during the activation of the view, you branch directly to the activation log.
    Create the documentation for the view with Goto ® Documentation. This documentation is output for example when you print the view with View ® Print.
    Branch to transaction SE54 with Environment ® Tab.maint.generator. From the view definition you can generate maintenance modules and maintenance interfaces there which distribute the data entered with the view to the base tables. You can find more information about using this transaction in the documentation Generating the Table Maintenance Dialog.
    Optional Settings
    You can make the following optional settings:
    Change data element of a view field:
    Select the Mod column (modify) for the view field and choose Enter. The Data element field is now ready for input. Enter the new data element there. This data element must refer to the same domain as the original data element. With the F4 help key for the Data element field, you can display all the data elements which refer to the domain of the field. If you want to assign the original data element again, you only have to reset the Mod flag and choose Enter.
    Change maintenance status:
    The Maintenance Status defines how you can access the view data with the standard maintenance transaction (SM30). Choose Extras ® Maintenance status. A dialog box appears in which you can select the maintenance status of the view.
    Define the delivery class of the view:
    Choose Extras ® Delivery class. A dialog box appears in which you can enter the delivery class of the maintenance view.
    Define the maintenance attribute of a view field
    The maintenance attribute defines special access modes for the fields of the view. You can make the following entries in field F in the input area for the view fields:
    R : Only purely read accesses are permitted for fields with this flag. Maintenance with transaction SM30 is not possible for such fields.
    S : Fields with this flag are used to create subsets when maintaining view data. Only a subset of the data is displayed. This subset is defined by entering the corresponding value in this field.
    H : Fields with this flag are hidden from the user during online maintenance. They do not appear on the maintenance screen. You have to ensure in a separate procedure that each such field has the correct contents. Otherwise, they are left empty.
    : There are no restrictions on field maintenance.
    Check functions:
    With Extras ® Runtime object ® Check you can determine whether the definition of the view in the ABAP Dictionary maintenance is identical to the specifications in the runtime object of the view. With Extras ® Runtime object ® Display you can display the runtime object of the view.
    Display foreign key of a view field:
    If a foreign key which was automatically included in the view definition is defined for the field of the base table, you can display it. To do so, position the cursor on the view field and choose Extras ® Foreign keys.
    Display foreign key on which a join condition is based:
    If a join condition was derived from a foreign key, you can display its definition. To do so, position the cursor on the join condition and choose Extras ® Foreign keys.
    See also:
    Maintenance Views

Maybe you are looking for

  • Table to see log of price change from vk12

    Hi, I want to see pricing data which has been changed from t-code:vk12 in a specific period. I already try to use table CDHDR, CDPOS but I don't know what to insert an input data such as field OBJECTCLAS. Any suggestion or example on this case please

  • Windows Vista with no Itunes how do i put songs on my ipod?

    that pretty much is self explanitory...not alowed to download itunes my grandparents have a download blocker so i have to have the password to save anything... is there another way to put the songs onto my ipod?? please help i need my music device to

  • IBook G4 won't start up, can't find HD

    My iBook won't start up. It gets to the grey apple screen and nothing else happens. Sometimes when I try to start up I briefly get the icon with the question mark inside a folder. I tried reseting the PMU and nothing happened. I instaled the MacOS 10

  • Black Bounding box?

    I just upgraded from CS3 to CS6. I hate this big black bounding box I am now working inside of. Makes it much harder to Command-zero an image up to full screen size, and Also I haven't been able to figure out how to bring 2 images up together, so I c

  • Automatic composition of web services

    Hi, As we all know human involvement in composition of web services makes them time-consuming and error prone. So, do we have the concept of Automatic service composition in Netweaver Composite environment, where we could automatically or semi automa