using pivot with dynamic?

Hello
I have a procedure and I use pivot.
create or replace
PROCEDURE YILARALIKLI_HARFDAGILIMI (aranilan_yil in number, birimno in number, sinif number) IS 

a_yil number :=aranilan_yil;   

cursor c_basari is
  WITH PIVOT_DATA AS (
SELECT   OA.OGRENCI_NO, DK.HARF_KODU,DA.ACILDIGI_YIL

FROM ders_aktif da,ders_tanim dt,ogrenci_akademik oa,ders_kayit dk
WHERE --da.acildigi_yil='2005'  and
      --oa.ders_baslama_yil=2005 and
      oa.birim like birimno ||'%' and
      (da.acildigi_donem='1'or
      da.acildigi_donem='2')and
      da.ders_kodu like birimno ||'%' and
      (dt.normal_yariyili=sinif or
      dt.normal_yariyili=sinif+1)and
      dt.ders_kodu=da.ders_kodu and
      da.acilan_ders_no=dk.acilan_ders_no and
      oa.ogrenci_no=dk.ogrenci_no and
      dk.harf_kodu is not null
      --GROUP BY DK.HARF_KODU 
      )
      
      SELECT * FROM PIVOT_DATA
     PIVOT(count(distinct ogrenci_no ) SAYI  FOR ACILDIGI_YIL IN(2007,2006,2005,2004,2003));     
      
BEGIN 
      if sinif=1 then
      a_yil :=aranilan_yil ;
      elsif sinif=3 then
      a_yil :=aranilan_yil -1;
      elsif sinif=5 then
      a_yil:=aranilan_yil-2;
       elsif sinif=7 then  
      a_yil:=aranilan_yil-3;
       end if;



FOR I IN  c_basari    LOOP 


   DBMS_OUTPUT.PUT_LINE( I."2007_SAYI" );
   DBMS_OUTPUT.PUT_LINE( I."2006_SAYI" );
   DBMS_OUTPUT.PUT_LINE( I."2005_SAYI" );
   DBMS_OUTPUT.PUT_LINE( I."2004_SAYI" );
   DBMS_OUTPUT.PUT_LINE( I."2003_SAYI" );            
END LOOP;


END YILARALIKLI_HARFDAGILIMI;
It's ok but I want are 2007,2006,2005,2004,2003 is not static. I use dynamically. How can I do this?

parameter of the procedure (aranilan_yil) = > 2007 = aranilan_yil
2006 = aranilan_yil-1
2005 = aranilan_yil-2
2004 = aranilan_yil-3
2003 = aranilan_yil-4

Published by: esra aktas on 09.Haz.2011 10:07

Examples:

CREATE OR REPLACE PROCEDURE DYNAMIC_PIVOT( STARTING_YEAR NUMBER, COLS NUMBER )
IS
    SQLCOMMAND VARCHAR2(1000);
    I NUMBER;
BEGIN
SQLCOMMAND := 'BEGIN FOR c1_rec IN (WITH PIVOT_DATA AS ( ' ||
'SELECT 1 OGRENCI_NO, 2004 ACILDIGI_YIL FROM DUAL ' ||
'UNION ALL ' ||
'SELECT 2, 2005 FROM DUAL ' ||
'UNION ALL ' ||
'SELECT 3, 2006 FROM DUAL ' ||
'UNION ALL ' ||
'SELECT 4, 2007 FROM DUAL ' ||
'UNION ALL ' ||
'SELECT 5, 2008 FROM DUAL ' ||
'UNION ALL ' ||
'SELECT 6, 2005 FROM DUAL ' ||
'UNION ALL ' ||
'SELECT 7, 2006 FROM DUAL ' ||
'UNION ALL ' ||
'SELECT 8, 2006 FROM DUAL ' ||
'UNION ALL ' ||
'SELECT 9, 2007 FROM DUAL ' ||
'UNION ALL ' ||
'SELECT 10, 2007 FROM DUAL ' ||
') ' ||
'SELECT * FROM PIVOT_DATA ' ||
'PIVOT(COUNT (DISTINCT OGRENCI_NO) SAYI FOR ACILDIGI_YIL IN(';
FOR I IN 1..COLS LOOP
    SQLCOMMAND := SQLCOMMAND || (STARTING_YEAR +1-I);
    IF I < COLS THEN
    SQLCOMMAND := SQLCOMMAND || ',';
    END IF;
END LOOP;
SQLCOMMAND := SQLCOMMAND || '))) LOOP ';
FOR I IN 1..COLS LOOP
    SQLCOMMAND := SQLCOMMAND || ' DBMS_OUTPUT.PUT_LINE( ''' || (STARTING_YEAR+1-I) || ':'' || c1_rec."' || (STARTING_YEAR+1-I) || '_SAYI" );  ';
END LOOP;
SQLCOMMAND := SQLCOMMAND || 'END LOOP; END;';
-- DBMS_OUTPUT.PUT_LINE( SQLCOMMAND ); -- for debug
EXECUTE IMMEDIATE SQLCOMMAND ;
END;

out of DYNAMIC_PIVOT EXEC (2008, 5):

2008:1
2007:3
2006:3
2005:2
2004: 1

out of DYNAMIC_PIVOT (2006, 3):

2006:3
2005:2
2004: 1

I don't know your code, you can adopt this procedure.

Concerning

Grosbois

Tags: Database

Similar Questions

  • with using pivot a query need

    Hello

    I have the table that has 7 columns
    data in table:
    ID,Region,area, year-month,  sales_target, actual_sales,
    1, abc,    xyz,   200907,       1000,          500
    2, abc,    pqr,   200908,       2000,         1500
    3, mnr,   xyz,   200907,       3000,          2000
    
    I need the data in year and  month with out using pivot funtion
    intial
    region, area,    jul,   aug, sep, oct .......jun
    abc,     xyz,    1000,0,     0,    0...         0
    
    actual
    region, area,    jul,   aug, sep, oct .......jun
    abc,     xyz,    500,   0,     0,    0...         0
    Thank you

    It's here

    with d as ( select 1 ID, 'abc' Region, 'xyz' area, 200907 yearmonth,  1000 sales_target, 500 actual_sales from dual
    union all   select 2, 'abc',    'pqr',   200908,       2000,         1500 from dual
    union all   select 3, 'mnr',   'xyz',   200907,       3000,          2000 from dual
    )
    select  region, area,
    max(case extract(month from to_date(yearmonth,'yyyymm')) when 7 then sales_target
    else 0 end ) TGT_JUL
    ,
    max(case extract(month from to_date(yearmonth,'yyyymm')) WHEN 8 then sales_target
    else 0 end ) TGT_AUG
    ,
    max(case extract(month from to_date(yearmonth,'yyyymm')) WHEN 9 then sales_target
    else 0 end ) TGT_SEP
    from d
    group by  region, area
    /
    
    REG ARE    TGT_JUL    TGT_AUG    TGT_SEP
    --- --- ---------- ---------- ----------
    abc pqr          0       2000          0
    mnr xyz       3000          0          0
    abc xyz       1000          0          0
    

    You can copy and reproduce the results of an another one - actual_sales.

  • Tables created in a stored procedure cannot be used with dynamic SQL? The impact?

    There is a thread on the forum which explains how to create tables within a stored procedure (How to create a table in a stored procedure , however, it does create a table as such, but not how to use it (insert, select, update, etc.) the table in the stored procedure.) Looking around and in the light of the tests, it seems that you need to use dynamic SQL statements to execute ddl in a stored procedure in Oracle DB. In addition, it also seems that you cannot use dynamic SQL statements for reuse (insert, select, update, etc.) the table that was created in the stored procedure? Is this really the case?

    If this is the case, I am afraid that if tables cannot be 'created and used"in a stored procedure using the dynamic SQL, as is the case with most of the servers of DB dynamic SQL is not a part of the implementation plan and, therefore, is quite expensive (slow). This is the case with Oracle, and if yes what is the performance impact? (Apparently, with Informix, yield loss is about 3 - 4 times, MS SQL - 4 - 5 times and so on).

    In summary, tables created within a stored procedure cannot be 'used' with dynamic SQL, and if so, what is the impact of performance as such?

    Thank you and best regards,
    Amedeo.

    Published by: AGF on March 17, 2009 10:51

    AGF says:
    Hi, Frank.

    Thank you for your response. I understand that the dynamic SQL is required in this context.

    Unfortunately, I am yet to discover "that seeks to" using temporary tables inside stored procedures. I'm helping a migration from MySQL to Oracle DB, and this was one of the dilemmas encountered. I'll post what is the attempt, when more.

    In Oracle, we use [global temporary Tables | http://www.psoug.org/reference/OLD/gtt.html?PHPSESSID=67b3adaeaf970906c5e037b23ed380c2] aka TWG these tables need only be created once everything like a normal table, but they act differently when they are used. The data inserted in TWG will be visible at the session that inserted data, allowing you to use the table for their own temporary needs while not collide with them of all sessions. The data of the TWG will be automatically deleted (if not deleted programmatically) when a) a commit is issued or b) the session ends according to the parameter that is used during the creation of the TWG. There is no real need in Oracle to create tables dynamically in code.

    I noticed that many people say that the "Creation of the tables within a stored procedure" is not a good idea, but nobody seems necessarily explain why? Think you could elaborate a little bit? Would be appreciated.

    The main reason is that when you come to compile PL/SQL code on the database, all explicit references to tables in the code must correspond to an existing table, otherwise a djab error will occur. This is necessary so that Oracle can validate the columns that are referenced, the data types of those columns etc.. These compilation controls are an important element to ensure that the compiled code is as error free as possible (there is no accounting for the logic of programmers though ;)).

    If you start to create tables dynamically in your PL/SQL code, so any time you want to reference this table you must ensure that you write your SQL queries dynamically too. Once you start doing this, then Oracle will not be able to validate your SQL syntax, check the types of data or SQL logic. This makes your code more difficult to write and harder to debug, because inevitably it contains errors. It also means that for example if you want to write a simple query to get that one out in a variable value (which would take a single line of SQL with static tables), you end up writing a dynamic slider all for her. Very heavy and very messy. You also get the situation in which, if you create tables dynamically in the code, you are also likely to drop tables dynamically in code. If it is a fixed table name, then in an environment multi-user, you get in a mess well when different user sessions are trying to determine if the table exists already or is the last one to use so they can drop etc. What headache! If you create tables with table names, then variable Dynamics not only make you a lot end up creating (and falling) of objects on the database, which can cause an overload on the update of the data dictionary, but how can ensure you that you clean the tables, if your code has an exception any. Indeed, you'll find yourself with redundant tables lying around on your database, may contain sensitive data that should be removed.

    With the TWG, you have none of these issues.

    Also, what is the impact on the performance of the dynamic SQL statements in Oracle? I read some contrasting opinions, some indicating that it is not a lot of difference between static SQL and SQL dynamic in more recent versions of Oracle DB (Re: why dynamic sql is slower than static sql is this true?)

    When the query runs on the database, there will be no difference in performance because it is just a request for enforcement in the SQL engine. Performance problems may occur if your dynamic query is not binding variable in the query correctly (because this would cause difficult analysis of the query rather than sweet), and also the extra time, to dynamically write the query running.

    Another risk of dynamic query is SQL injection which may result in a security risk on the database.

    Good programming will have little need for the tables of dynamically created dynamically or SQL.

  • Pivot table dynamic table - chart axis of the show as "percent".

    Hi all

    I have a pivot table is generated, with the lines as year/month and columns like web browser. However I only watch 5 albums used, browsers so that used columns are dynamic.

    I would like to show the graph as a 'percentage of line. I know that I can turn this on the data in the table, but it does not filter although in the graph. Does anyone know how to get there? Can you add the total of a line and use it in a formula?

    Thanks in advance

    Hello
    Not sure how the PivotTable, however we have may be able to pull this back as a separate column in the criteria tab which you can then use.
    What is your metric name?

    Lets say you have Time.YearMonth, browser, count

    Add another column, change the fx for this column and use sum (time.yearmonth County) - this will give you the total amount for the year regardless of browser.
    Add another column and simply count / sum (time.yearmonth County) * 100 to get the percentage of the total for the year - plays about with using them in the pivot or you might get away with a straight table view?

    Hope this helps, another solution would be to implement a shaved basic measure to the RPD.

    Published by: Alastair_PeakIndicators on March 31, 2010 08:26

  • Use Schedule Auto dynamic locking

    Hello

    The configuration is the following:

    My client wants to run 4 devices of individual test on the same PC. Each test set-up will take place at least 4 parallel trials at the same time by using the parallel model. For now, let's assume it's the same sequence is performed in all the plugs and fixtures. That might change, but the same conditions of blocking will be present on the different sequences.

    What I need to do, it is in the stages of locking and resources, both internally in a fixture and through all meetings. This is where my problem lies.

    If I use an ordinary lock, then I can do this, all I do is keep track of this fixture is actually running the steps. I can lock on a parameter, say Parameter.Fixture. Or lock simply ignoring what is actually being run around the world.

    But if I try to use Auto planning then this won't work. IM know not everything as automatic functionality of calendar but it seems that if I use the same parameter, it hangs on the real parameter rather than the value of the parameter contains the. What I tried was to use a chart such as locking, the expression typically would be Locals.Locks [Parameter.Fixture]. But it does very well with performance that threw me an error-17502. I can't use the words double locking as which can allow a simple mounting to acquire both.

    The customer wants to use auto MRP to reduce test times. In general, there is a unique instrument used on all fixtures that would be considered as a unique resource, while some test steps can be run at the same time within a luminaire (radio tests that intereferes through taken).

    Anyone has an idea on how to create a dynamic locking expression that can accept step or I missed something fundamental to automatic planning stage?

    / Nimgaard

    Note that you can get an effect similar to autoscheduling using locks with multiple threads (sequence calls have an option to run in a new thread). If each thread locks the resources he needs, he will be executed when the resource is available. Operations (threads) for a device can run in a different order than those of other share, based on the availability of resources, thus optimizing the flow. If you want to force operations can not overlap, for example for a specific device, you can have each thread locks the resources that it uses both the device he uses.

  • VPN ASA ASA with dynamic IP of the branch

    Hello

    I would like to connect a private network Virtual Office HQ to a branch using two ASAs.

    I have a 5520 in the HQ and 5505 in the branch.

    My problem is in the office where I have a dynamic IP (ADSL).

    I couldn't find an example of this type of configuration.

    Can you help me?

    Kind regards

    Sergio Santos

    Hi Sergio,

    Well, you have two options:

    • Dynamic to static L2L tunnel:

    On the 5520, you must configure a dynamic encryption card because you don't know the IP address the 5505 will have and even if you IP address may vary. So:

    Crypto ipsec transform-set esp - esp-md5-hmac RIGHT

    Crypto-map dynamic dynmap 1 transform-set RIGHT
    Crypto-map dynamic dynmap 1 the value reverse-road
    map mymap 10-isakmp IPSec crypto dynamic mymap
    mymap outside crypto map interface

    If you already have other tunnels already configured them just change the name of the crypto map that I used above with one you already have, in the example I used a sequence of 10 number because I have more tunnels in place but you need without ensuring that the card encryption where you attach the dynamic crypto map has the highest value! ID recommend using a value of 65535, which is the highest, you can use, this will allow you to configure static tunnels in the future without having need to reconfigure one you linked to the dynamics.

    Besides that you must configure the tunnel-group... but as you know for tunnels L2L with PSK in MainMode tunnel-group name MUST be the IP address peer, and in this case, we do not know, do not worry, we can configure the PSK under the DefaultL2LGroup

    IPSec-attributes tunnel-group DefaultL2LGroup
    pre-shared-key *.

    That's all you need on the 5520, in addition to the basic configuration PH1 for the construction of a tunnel.

    On 5505 all you need to do is to set up a regular tunnel because from the point of view 5505, we know the IP address of the 5520 and it will not change:

    map MYMAP 1 IPSec-isakmp crypto
    defined peer X.X.X.X
    Set transform-set RIGHT
    match address MYCRYPTOACL

    Group of tunnel X.X.X.X IPSec-attributes
    pre-shared-key *.

    • The other option will be to configure EzVPN you use a 5505

    http://www.Cisco.com/en/us/products/HW/vpndevc/ps2030/products_configuration_example09186a00808a61f4.shtml

    http://www.Cisco.com/en/us/docs/security/ASA/asa72/configuration/guide/ezvpn505.html

    HTH!

  • DMVPN with dynamic failover HSRP/IPSEC

    "DMVPN with dynamic failover HSRP/IPSEC."

    Hi all. Is this possible? When you use a direct IPSEC LAN to LAN, you have a card encryption and when you secure the card encryption at the source of the tunnel interface, you configure "' crypto map redundancy with State '."

    The DMVPN does not use encryption card, sound by using an IPSEC profile with protection of tunnel. How you configure stateful with HSRP IPSEC in this situation?

    We're heading for a double cloud dmvpn topology with 2 heads dmvpn geographically separate. I want that every network head to have a redundancy HSRP, which can be done fairly easily. But I also want State IPSEC to be replicated for all security associations IPSEC do not fall in the case of a failover. Is it possible in this scenario and how?

    Thanks a lot as always.

    Hello again ;-)

    There are currently no plan at the moment (that I know) to mix with State redundancy and anythign with protection of tunnel.

    Frankly it is best to create redundancy in DMVPN termination on both turntable and relying on routing protocols - which I am sure you aware of so I won't bore you with details.

    That said, my personal observation is - if you want a failover go to ASA, when you have routers, you have all these wonderful tools like VTI/GRE for IPsec that mix well with routing protocols, and MUCH MUCH more. It is very often to change some timers for routing protocol driven "failover" happen very quickly.

    Marcin

  • VPN IPSEC ASA with counterpart with dynamic IP and certificates

    Hello!

    Someone please give me config the work of the ASA for ASA Site to Site IPSEC VPN with counterpart with dynamic IP and authentication certificates.

    He works with PSK authentication. But the connection landed at DefaultRAGroup instead of DefaultL2LGroup with certificate

    authentication.

    Should what special config I ask a DefaultRAGroup to activate the connection?

    Thank you!

    The ASA uses parts of the client cert DN to perform a tunnel-group  lookup to place the user in a group.  When "peer-id-validate req" is  defined the ASA also tries to compare the IKE ID (cert DN) with the  actual cert DN (also received in IKE negotiation), if the comparison  fails the connection fails. know you could set "peer-id-validate cert"  for the time being and the ASA will try to compare the values but allow  the connection if it cannot. 

    In general I would suggest using option "cert."

    With nocheck, we are simply not strict on IKE ID matchin the certificate, which is normally not a problem of security :-)

  • Materialized with dynamic input possible view?

    Hello

    We have some end users have a very complex query of SQL reports (~ 2500 lines) they came with.  We are trying to tune and to create additional indexes as needed.  He has made more than one aggregation of xml and the chain in select statements.  in any case while I'm looking for other methods deal with the problem regardless of a potentially inefficient SQL query.

    In my opinion, they said that the query taking ~ 6000 sec to finish and basically http sessions expire of their web application after 4000 seconds of inactivity.  They have a few dynamic user input from the web page which is fed in the request for multiple WHERE clauses.  So I think we want to have this query that is run in offline mode (after the user input is collected) as well as the results stored in a table, then the wep app can do a simple select query to retrieve data from the table of results later.

    Is there a way to create a materialized view and replace user with some variables bind input and update the values of the variables bind with the participation of the user whenever they want the data, and then refresh the materialized view?  Or if there is a better mechanism for Oracle to run asynchronously this query offline with dynamic input and then store the results in a table?  My problem is that I don't know if they can call a sp and feed the bind values as parameters, but maybe I need to force them to.  I really don't want to process SQL statements dynamic that their request is so great andt hey asked me on GTT, but I was under the impression that the data is lost after each session and probably wouldn't really solve anything.  Thoughts?


    Oracle Database 11 g Enterprise Edition Release 11.2.0.4.0 - 64 bit Production

    Web pages should return something in<5s or="" the="" end-user="" will="" hit="" the="" refresh="" button="" again="" and="" again="" and="" again="" and="">

    Do something like this:

    • store the query to run the sql in a table with the values for the variables bind (parent table)
    • run the SQL in the background via DBMS_SCHEDULER
    • store the results in a partitioned table. (child table) (I assume a large amount of data)
      • for example, use a partition of range interval by sequence ID 1. of the parent
    • update the parent with the status table "Hey, I'm made.
    • Maybe the applicant send an email.
    • Web page queries only the parent table.
    • a scheduled task removes the no-more-required data through DROP PARTITION.

    MK

  • TableView with dynamic and updatable columns

    Hello!!

    Im trying to encode a TableView with dynamic columns and I saw a lot of examples like this: create columns dynamically

    But none who would work for my needs.

    Its very simple:

    I got a list of customers, and each has a list of purchases.

    A purchase has a string "buyDetail" and a Date for the ship.

    My TableView need the first column with the name of the client, and a column more for each day of existing ships.

    We do not know previously days that will be used.

    If the sum is greater than 100, for example, I need to be able to apply different styles.

    Example:

    Customer 02/01/2015 03/01/2015 09/01/2015
    Morgan$400 (buyDetail)0$100
    Luis00$20
    Steven$1000
    Hulk0$5$32

    I can't use the properties because I don't know how to buy will have to each customer.

    My best test (only for the first column) was next, but I can't buy it updated if I change the value in the cell:

    I did not try to write other code columns because I feel that I don't hurt really...

    This shows the names of Customer´s, but I can't manage if data modification.

    table = new TableView<Customer>();
    ObservableList<Customer> lista = FXCollections.observableList(registros);
    
    table.setItems(lista);
    
    TableColumn<Customer, Customer> customerNameColumn = new TableColumn<Customer, Customer>("");
      customerNameColumn.setCellValueFactory(new Callback<CellDataFeatures<Customer, Customer>, ObservableValue<Customer>>() {
      public ObservableValue<Customer> call(CellDataFeatures<Customer, Customer> p) {
      return new SimpleObjectProperty(p.getValue());
      }
      });
    
      customerNameColumn.setCellFactory(column -> {return new TableCell<Customer, Customer>() {
      @Override
      protected void updateItem(Customer item, boolean empty) {
      super.updateItem(item, empty);
    
      if (item == null || empty) {
      } else {
      setText(item.getName());
      //APPLY STYLE
      }
      }
      };
      });
    
      table.getColumns().addAll(customerNameColumn);
    

    Post edited by: user13425433

    The columns are available already update default... If you happen to use JavaFX properties for the value of the source.

    The core of you're your question lies in your cellValueFactory.

    Here we have only the cellValueFactory for the name, not for the other columns. So I'll take the name for example, and you have to adapt to the other columns.

    But if you do something like this to your cellValueFactory:

    new SimpleObjectProperty(p.getValue().getName());
    

    Then the name can never be updated if it modifies the client instance: there is no "link" between the name and the property used by the table.

    We have therefore 3 test case:

    • If the name is a property of JavaFX and you do something like:
    TableColumn customerNameColumn = new TableColumn("Customer");
    customerNameColumn .setCellValueFactory(new PropertyValueFactory<>("name"));
    

    Then, if the name change pending Customer-> value in the table automatically changes.

    It also works the other way around: If the table is editable, and the name property is not unalterable-> the value of the changes of names in the Customer instance follows the table has been changed.

    • Now, if your name is not a property of JavaFX but a Java Bean observable property instead (this means that you can register and unregister an instance of Java Bean PropertyChangeListener to this property), you can do:
    TableColumn customerNameColumn = new TableColumn("Customer");
    customerNameColumn.setCellValueFactory(new Callback, ObservableValue>() {
        @Override
        public ObservableValue call(TableColumn.CellDataFeatures p) {
            final Customer t = p.getValue();
            try {
                return JavaBeanStringPropertyBuilder.create().bean(t).name("name").build();
            } catch (NoSuchMethodException ex) {
                // Log that.
                return null;
            }
        }
    });
    

    In this way, you have created a JavaFX property that is bound to an observable property Java Bean.

    Same as above, it works both ways when possible.

    • The latter case is that your name is neither a JavaFX property or a Java Bean-> you can not update unless you happen to create a kind of observer/listener that can update the property with the most recent value.

    Something like that:

    TableColumn customerNameColumn = new TableColumn("Customer");
    customerNameColumn.setCellValueFactory(new Callback ObservableValue>() {
      public ObservableValue call(CellDataFeatures p) {
        final Customer t = p.getValue();
        final SimpleStringProperty result = new SimpleStringProperty ();
        result.setvalue(t.getName());
        t.addNameChangeListener(new NameChangeListener() {
          @Override
          public void nameChanged() {
            result.setvalue(t.getName());
          }
        });
        return result;
      }
    });
    

    If you don't do something like that, the value of the table will never change when the name changes in the instance because the table does not change.

    Now, you will need to apply this theory to your price columns. I hope that I was clear enough to help you.

  • Rough Cut created as a prelude with transitions, sent to first Pro works then, using 'replace with After Effects comp', loses the transitions. Why?

    With the help of Creative Cloud 2015 apps exclusively on a 64-bit win 8.1 Pro Gigabyte MB 8 core AMD pcu with 16 GB of ram and nVidia GeForce 8800 GTX graphics card. I deleted all the cache and restarted.

    Created a simple Rough Cut in prelude routinely using H.264 in mp4 video and still photos from format of (via Media Encoder) components ingested in prelude ~

    Rough Cut, composed of a sequence of 1 always followed by 4 x 3 second mp4 followed by another still followed by 4 more 3 second MP4, total length of 30 seconds.

    Together, then the default prelude "Cross dissolve" transition between each item in the first edit.

    Successfully sent this first edit in Premiere Pro using the menu option integrated prelude - send to first.

    Works like a charm in Premiere Pro, including cross-fade transitions.

    HOWEVER, now, in Premiere Pro, have not been able to use then 'Replace with After Effects' option under ' Dynamic Link ~ option is grayed out, regardless of how I select the element/sequence to replace. "

    The only way I have found to use all the options 'Replace with After Effects' is the one that appears when you right-click on a sequence in the timeline window, but when open in After Effects, crossfade effect has disappeared; Only the elements of the scene still show when parsing through the sequence in the timeline.

    After investigation, it turns out that the order of the individual elements that contribute, in the after effects project Panel, has been auto-réarrangés as assets to dissolve cross is now distributed among the other elements of the sequence and therefore cannot perform the intended function. It also destroys the fade in Premiere Pro effect that worked very well before attempting this 'Replace with After Effects' option.

    I need to find a way to keep this intact sequence in Premiere Pro and after Effecys and be able to use After Effects to add additional effects to this rough cut sequence...

    I have run the available tutorials in Adobe and Lynda.com and searched the forum for an explanation, but so far, nothing, I found has solved this problem. :

    1. How can I get the Adobe Dynamic Link to function when it is grayed out in the choice of Menu file?
    2. How to make the right click option 'replace with After Effects' to send the sequence in After Effects without changing its infrastructure, as described above?

    I await with confidence to find someone here who knows what I'm doing well wrung out! and who can show me the error of my ways. TIA. /PSB

    First transitions don't come in After Effects. They never have. Your workflow is not compatible with dynamic link. You should use AE to create shots and then change these shots in Premiere Pro. Trying to bring in a sequence which was finalized with effects and transitions is a losing proposition and not recommended.

  • SpeedGrade does not not with dynamic or stand-alone links.

    SpeedGrade does not not with dynamic or stand-alone links. Projevt cannot be bound, nor a project can be opened from scratch. Opening or creating a file isn't even an option, and I have a huge project to turn in tomorrow! WTH Adobe. I've updated the first CC 9.0.2 and still nothing

    Sorry for the correction, but Adobe (sometimes confusing) nomenclature, it's "Dynamic Link" to AfterEffects and 'Direct link' with SpeedGrade. I explained by engineers that they are two very different processes where the difference in name. My answer... If the processes are so very different, why are the names that could be confusing? "Because they are the more precise terminology of what happens." I think they are the most accurate to spoil the spirit of people, but I'm sure the engineers are smarter about this than me!

    The Direct link process ONLY works when he 'sees' appropriate corresponded builds... for the current coupled:

    CC2015.0.2/build 9.0.2(4) for first Pro;

    CC2015.0.1/build 9.0.1x21 for SpeedGrade

    Then... check your SpeedGrade (wrench, top tab of the 'About' page), making sure it is the correct version.

    Also... If there is a problem with is functional Sg (sometimes these programs need the Cleaner CC Adobe app to uninstall, then a new re - install) you can use the color workspace editing in Premiere Pro... He has a considerable amount of the capacity of the Sg, but not (for an experienced user of Sg) treat the whole meal. When even... you can make a good amount and quite quickly. And this gives you the expanses of SpeedGrade, that are better than the crappy things 'Fast' of this eons PrPro and '3 - Way' color Correctors use... yuck.

    Neil

  • Performance issues with dynamic action (PL/SQL)

    Hello!


    I have problems of perfomance with dynamic action that is triggered on click of a button.

    I have 5 drop-down lists to select the columns that users want filter, 5 drop-down lists to select an operation and 5 boxes of input values.

    After that, it has a filter button that submits just the page based on the selected filters.

    This part works fine, the data are filtered almost instantly.

    After that, I have 3 selectors 3 boxes where users put the values they wish to update the filtered rows and column

    There is a update button that calls the dynamic action (a procedure which is written below).

    It should be in a straight line, the issue of performance might be the decoding section, because I need to cover the case when the user wants to set a null (@), and when it won't update the 3 columns, but less (he leaves ").

    That's why P99_X_UC1 | ' = decode(' ||) P99_X_UV1 |', "«,» | P99_X_UC1 ||',''@'',null,'|| P99_X_UV1 |')

    However, when I click finally on the button update, my browser freezes and nothing happens on the table.

    Can anyone help me solve this problem and improve the speed of the update?

    Kind regards

    Ivan

    PS The procedure code is below:

    create or replace

    DWP PROCEDURE. PROC_UPD

    (P99_X_UC1 in VARCHAR2,

    P99_X_UV1 in VARCHAR2,

    P99_X_UC2 in VARCHAR2,

    P99_X_UV2 in VARCHAR2,

    P99_X_UC3 in VARCHAR2,

    P99_X_UV3 in VARCHAR2,

    P99_X_COL in VARCHAR2,

    P99_X_O in VARCHAR2,

    P99_X_V in VARCHAR2,

    P99_X_COL2 in VARCHAR2,

    P99_X_O2 in VARCHAR2,

    P99_X_V2 in VARCHAR2,

    P99_X_COL3 in VARCHAR2,

    P99_X_O3 in VARCHAR2,

    P99_X_V3 in VARCHAR2,

    P99_X_COL4 in VARCHAR2,

    P99_X_O4 in VARCHAR2,

    P99_X_V4 in VARCHAR2,

    P99_X_COL5 in VARCHAR2,

    P99_X_O5 in VARCHAR2,

    P99_X_V5 in VARCHAR2,

    P99_X_CD in VARCHAR2,

    P99_X_VD in VARCHAR2

    ) IS

    l_sql_stmt varchar2 (32600);

    nom_table_p varchar2 (30): = ' DWP. IZV_SLOG_DET';

    BEGIN

    l_sql_stmt: = "update". nom_table_p | 'set '.

    || P99_X_UC1 | ' = decode(' ||) P99_X_UV1 |', "«,» | P99_X_UC1 ||',''@'',null,'|| P99_X_UV1 |'),'

    || P99_X_UC2 | ' = decode(' ||) P99_X_UV2 |', "«,» | P99_X_UC2 ||',''@'',null,'|| P99_X_UV2 |'),'

    || P99_X_UC3 | ' = decode(' ||) P99_X_UV3 |', "«,» | P99_X_UC3 ||',''@'',null,'|| P99_X_UV3 |') where ' |

    P99_X_COL | » '|| P99_X_O | » ' || P99_X_V | «and» |

    P99_X_COL2 | » '|| P99_X_O2 | » ' || P99_X_V2 | «and» |

    P99_X_COL3 | » '|| P99_X_O3 | » ' || P99_X_V3 | «and» |

    P99_X_COL4 | » '|| P99_X_O4 | » ' || P99_X_V4 | «and» |

    P99_X_COL5 | » '|| P99_X_O5 | » ' || P99_X_V5 | «and» |

    P99_X_CD |       ' = '         || P99_X_VD;

    -dbms_output.put_line (l_sql_stmt);

    EXECUTE IMMEDIATE l_sql_stmt;

    END;

    Hello Ivan,.

    I don't think that the decoding is relevant performance. Perhaps the update is suspended because another transaction has changes that are uncommitted to any of the affected rows or where clause is not quite selective and has a huge amount of documents to update.

    In addition - and I may be wrong, because I only have a portion of your app - the code here looks like you've got a guy here huge sql injection vulnerability. Perhaps you should consider re - write your logic in the static sql. If this is not possible, you must make sure that the entered user contains only allowed values, for example by P99_X_On white list (i.e. to ensure that they contain only values known as 'is', ')<', ...),="" and="" by="" using="" dbms_assert.enquote_name/enquote_literal="" on="" the="" other="" p99_x_nnn="">

    Kind regards

    Christian

  • Help with dynamic Action with pl/sql and Javascript

    Hi all
    I'm a little hard with the following and I was wondering if someone can help me.
    My test app is here:
    http://apex.oracle.com/pls/apex/f?p=32581
    
    workspace: Leppard
    Login: guest
    pw: app_1000
    
    Tab: DB Link (page 19)
    I have a list of unique selection on the page that queries a table in my diagram.

    This is the flow that works, but not the user experience I want:
    User clicks on the button Create Page 19 > the next page, page 20, appears as a popup window > user enters the name of the link = "MyLink" (or other) and one unit number, i.e. 1234 (or other) > user clicks 'Create using process' button > success message > user closed the window to return to the page 19 > user clicks LOV refresh to refresh the list of selection so that the new value is displayed.

    That's what I'm aiming for: user clicks on the button Create Page 19 > the next page, page 20, appears as a popup window > user enters the name of the link = "MyLink" (or other) and one unit number, i.e. 1234 (or other) > user clicks button "create using the DA ' > dynamic action is called running pl/sql closes the popup window and refreshes the list of selection on page 19.

    I know that I have some problems with my dynamic action. First of all, the pl/sql is not yet recognize the values that I enter the fields in item on page 20. I created a first pl/sql "null;" to force these items in session state, but it does not work for me and the pl/sql just inserts a null value into my table. Secondly, I can't get javascript to fire code to refresh the list of selection on page 19. The code I use in the DA is the same thing as what is behind the button refresh LOV, so I am confident that the code works, I just can't get this fire click the button "create using the DA" on page 20.

    Sorry if this is confusing - I can clarify if necessary, let me know. Thanks in advance. Of course I'm still learning...

    John

    Published by: John K. on May 30, 2013 19:28

    I modified your DA as follows.

    In real Action of DA,.

    1 Seq 10, I added the element page 20 Page points to submit and return Pagenames. You forgot to add items here
    2 Seq 20, I changed your simple code to insert. Simple code just insert
    3 Seq 30, I added the new code to close the window and reload the window open.

    Thank you
    Lacombe

  • join using pivot tables

    Hello. I have still some difficulties using pivot. =(
    I have the following tables:
    USER - THE LIST OF ALL USERS
    USERROLE - LIST DESIGNATED FOR EACH USER ROLE
    ROLEENTITY - WHOLE ENTITY BY THE ROLE OF THE LIST
    ENTITY - ENTITY LIST
    AUDITUSER - TABLE AUDIT FOR EACH USER MAINTAINED/UPDATED

    goal is to get a list of all users maintained the previous day. and I want the entities be converted into columns (using the pivot).
    so if a user has been kept twice yesterday, there will be 2 separate newspapers.


    TABLE: USER
    LOGINID FIRSTNAME LASTNAME
    ALVIN JOSEPH 1
    ERWIN 2 CO

    TABLE: USERROLE
    ID LOGINID ROLEID
    1 1 45
    2 2 33

    TABLE: ROLEENTTITY
    ID ROLEID ENTITYID
    1 45 1
    2 45 3
    3-33-1
    4 33 4

    TABLE: ENTITY
    ID ENTITYNAME
    1. CREATE USER
    2 REMOVE USER
    RESET 3 USER
    4 EMAIL
    5 REPORTS

    TABLE: AUDITUSER
    ID PERFORMEDBY ACTIONPERFORMED DATE LOGINID
    1 ADMIN1 CREATE 04/07/13 ALVIN
    UPDATED 04/07/13 ALVIN ADMIN2 2
    3 ADMIN1 UPDATE 04/07/13 ALVIN
    4 ADMIN1 CREATE 04/07/13 ERWIN
    ADMIN1 5 UPDATE 04/07/13 ERWIN

    EXPECTED RESULT
    LOGINID CREATE USER DELETE USER RESET USER EMAIL REPORTS MAINTAINED BY ACTION
    ALVIN YES NO YES CREATE NO ADMIN1 NO.
    ALVIN NO YES NO YES NO NO. UPDATE ADMIN2
    ALVIN NO YES NO YES NO NO. UPDATE ADMIN1
    ERWIN YES NO NO YES CREATE NO ADMIN1
    ERWIN YES NO NO YES NO ADMIN1 UPDATE

    (1) correction:
    Instead of

    WHEN TRUNC (a.date) = TO_DATE (TO_CHAR (SYSDATE - 1, 'DD-MM-YYYY'), "DD-MM-YYYY")

    use

    WHEN TRUNC (a.date) = trunc (sysdate)-1

    (2) on the question: I have just check the own query and it works correctly, show your selection

    WITH usr(ID,USERNAME) AS
    (
    SELECT 1, 'ALVIN' FROM dual UNION ALL
    SELECT 2, 'ERWIN' FROM dual
    
    ),
    USERROLE(ID, LOGINID, ROLEID) AS
    (
    SELECT 1, 1, 45 FROM dual UNION ALL
    SELECT 2, 2, 33 FROM dual
    ),
    ROLEENTITY(ID, ROLEID, ENTITYID) AS
    (
    SELECT 1, 45, 1 FROM dual UNION ALL
    SELECT 2, 45, 3 FROM dual UNION ALL
    SELECT 3, 33, 1 FROM dual  UNION ALL
    SELECT 4, 33, 4 FROM dual
    ),
    ENTITY(ID, ENTITYNAME) AS
    (
    SELECT 1, 'CREATE USER' FROM dual UNION ALL
    SELECT 2, 'DELETE USER' FROM dual UNION ALL
    SELECT 3, 'RESET USER' FROM dual UNION ALL
    SELECT 4, 'Email' FROM dual dual UNION ALL
    SELECT 3, 'REPORTS' FROM dual
    ),
    AUDITUSER  (ID,  PERFORMEDBY,  ACTIONPERFORMED,  DAT,  LOGINID) AS
    (SELECT 1,  'ADMIN1',  'CREATE',  TRUNC(SYSDATE)-3,  'ALVIN' FROM dual UNION ALL
    SELECT 2,  'ADMIN2',  'UPDATE',  TRUNC(SYSDATE)-1,  'ALVIN'  FROM dual UNION ALL
    SELECT 3,  'ADMIN1',  'UPDATE',  TRUNC(SYSDATE)-2,  'ALVIN'  FROM dual UNION ALL
    SELECT 4,  'ADMIN1',  'CREATE',  TRUNC(SYSDATE)-3,  'ERWIN'  FROM dual UNION ALL
    SELECT 5,  'ADMIN1',  'UPDATE',  TRUNC(SYSDATE)-3,  'ERWIN'  FROM dual )
    
    SELECT     username,
               NVL2(EMAIL,'YES','NO') email,
               NVL2(CREATEUSER,'YES','NO') CREATEUSER,
               NVL2(delete_user,'YES','NO') delete_user,
               NVL2(reset_user,'YES','NO') reset_user,
               NVL2(REPORTS,'YES','NO') REPORTS,
               a.ACTIONPERFORMED,
               a.dat
      FROM (SELECT U.*, E.ENTITYNAME
              FROM ENTITY E
    
              JOIN ROLEENTITY RE
                ON RE.ENTITYID = E.ID
    
              JOIN USERROLE UR
                ON UR.ROLEID = RE.ROLEID
    
              JOIN USR U
                ON U.ID = UR.LOGINID) PIVOT(MIN(ID) FOR ENTITYNAME IN('Email' EMAIL,
                                                                      'CREATE USER' CREATEUSER,
                                                                      'DELETE USER' delete_user,
                                                                      'RESET USER' reset_user,
                                                                      'REPORTS' REPORTS))
     JOIN AUDITUSER a
     ON a.LOGINID = username
     AND A.DAT = TRUNC(SYSDATE)-3
    
     ORDER BY 1
    
    ALVIN     NO     YES     NO     YES     YES     CREATE     05.04.2013
    ERWIN     YES     YES     NO     NO     NO     UPDATE     05.04.2013
    ERWIN     YES     YES     NO     NO     NO     CREATE     05.04.2013
    

Maybe you are looking for

  • My phone is in settings regional ca / OTHER apps appear in catalan, but not Firefox :-(

    Hello world! So, I put my phone in ca (from catalan) locale (of Spain) and if other applications have changed in Catalan (whatsapp, wikipedia, gmail...), Firefox doesn't have it, but it appears in English. If I change my phone for, for example, the F

  • What's the last compatible with Roboform Version 7.01?

    I need to know if your last Version 7.01 will work with Roboform FRONT toolbar that I update my Firefox browser!

  • The Vista is better than Windows XP Home edition?

    Hello I installed vista, but is not supported & is unlikely to be the main programs I want to use with it! Is it because Vista is new, or Windows XP Home edition (which he runs under) is a better OS. I read on the forum that WXP can be used in anothe

  • Hard Drive replacemsnt and number of shared folder

    I share a folder with several subfolders between 2 computers, both running Windows XP - Pro I set up sharing so that changes in the files would be reflected on two computers - the drive on one of the computers failed although the data was recoverable

  • HP Pavilion 15 - n055TX

    hi............... I'm geslin form sri lanka, I want to install Windows XP Professional SP3 (32 bit) to my laptop (hp Pavilion 15 - n055TX). When I boot on the CD, system the error occurred and see the blue screen. pls advice me...