How to use bind veraibles

Hi all

I want to disable a foreign key to a table of database.so constraint I made the statement in this way

Select 'ALTER TABLE ' | table_name | "DISABLE THE CONSTRAINT ' | constraint_name | ';' from user_constraints where constraint_type = 'R '.

but it gives me huge changes the table statement which can cause performance problem, so I need to use bind variables. but I did not have success if you can help me please




Thanks in advance

When I had to run a few thousand ALTER TABLE... SPLIT PARTITION... command, I added a BREAK with the message "Please issue an ALTER SYSTEM FLUSH SHARED_POOL of another session" all statements of 500 or greater. The ALTERs were all generated (using a PLSQL loop to generate instructions) and placed in a SQL script file.
The ADMINISTRATOR should run the script a session SQL file and published periodically FLUSH statements from another session.

Hemant K Collette

PS: Bind Variables is not the solution to your problem. Management of the ALTAR of the commands to run an activity 'low' or 'scheduled interruption"window is what you need to do.

Published by: Hemant K grapple November 6, 2011 22:53

Tags: Database

Similar Questions

  • How to use bind variable to update the DB 11 GR 2 access data

    Hello Experts,

    By DB version 11 GR 2

    Operating system Windows Server 2012 - 64 bit

    I want to update some data base record Access to oracle with database link. Here is my SQL, which works.

    UPDATE Transaction@DB_LINK
    SET "WorkCode"=1
    WHERE "WorkCode"=0; 
    

    But, I need to change that to

    UPDATE Transaction@DB_LINK
    SET "WorkCode"=1
    WHERE "DateTime"=:VARIABLE_DATE_TIME; 
    

    and a 2nd does not.

    Any code help or example?

    Ask2Learn

    Hello

    Use DBMS_HS_PASSTHROUGH

    try something of

    DECLARE
      c       BINARY_INTEGER;
      nr      NUMBER;
    BEGIN
    
      c := DBMS_HS_PASSTHROUGH.OPEN_CURSOR@DB_LINK;
    
      DBMS_HS_PASSTHROUGH.PARSE@ATTD_ENVOYF(c,'UPDATE Transaction@ATTD_ENVOYF SET "WorkCode"=1
      where "DateTime" = '||''||VARIABLE_DATE_TIME||'');
      nr:=DBMS_HS_PASSTHROUGH.EXECUTE_NON_QUERY@DB_LINK(c);
      DBMS_HS_PASSTHROUGH.CLOSE_CURSOR@DB_LINK(c);
    
    END;
    

    Hope this helps

    Hamid

  • Correct way to use Bind variables when you use an interface to MS SQL Server

    Hey,.
    I have some difficulty to find how to use bind variables in a view, when you use an interface to MS SQL Server. For some reason when I use an ApplicationModule who has a library of MS SQL Server JDBC loaded and I try to click on OK when you change the following query:

    SELECT kit_status, component_id
    OF numbered_inv
    WHERE trialname =: 1

    I get an error stating that ' SQL Query Error Message incorrect syntax near ':'. JDeveloper is compatible with SQL server for bind variable as this query works fine if I replace the: 1 with a Word to say "Test test".

    Thanks in advance

    Edited by: NullCheck December 15, 2010 14:06

    Use positional JDBC Style Binding to bind variables
    Try to use? Instead of:
    As shown here:
    http://www.Oracle.com/technetwork/developer-tools/jdev/multidatabaseapp-085183.html

  • How to use multitouch in Webworks app?

    Hello!

    After my first problems in the development of the app for BB in Webworks I still made my app. I have to use multitouch now, but I have no idea how. I did find samples with multitouch. I found only this: http://developer.blackberry.com/html5/apis/touchevent.html#targetTouches but I don't know how to use this function. Can you help me?

    PS. Sorry for my bad English

    And that's that

    The following example is an implementation of filling of touch

    I decided to leave the bind to the mouse in that it is probably useful to others

    It is a living example of an ePub with blow gettures reader and touch

    The code is a little complex, so I will answer any other than Gregs Qs

    Basically what this did that target an iFrame and control

    Anywhere you see a reference to my target frame - ignore it and replace with what you want to do

    The hardest things to understand for the novice, here are the angle and the time (both are included)

    Without much explain this sets @ high tell the manager what to do

    A call to bindtouch (target) does what it says but is native, you must pass the name of the div tag

    A binding triggers all important events

    Angles and timing are still developing

    Timing is crucial if you need one no doubt

    Angle is optional and depends on how the finger is moved, but requires a JS call very expensive Math.atan2 (point1, point2)

    Basically Angle you indicate where you moved your finger after the first touch so you can probably kill such things

    The County touch gets the correct contact and doing what it takes with it based on defines it

    Look - I told you it was very complicated

    Oh - bind it to the mouse allows you to transfer the call to a mouse event - I thought it might be useful for other readers

    The target an iFrmae is also very convenient as it is scrolling

    I leave you for that suit your needs

    function bindtouch (target) {}
    var TOUCH_TAP_DIST = 30;
    var TOUCH_TAP_TIME = 150;
    var TOUCH_DRAG_DIST = 50;
    var TOUCH_DRAG_TIME = 500;
    var TOUCH_DRAG_VELOCITY = 50;
    var TOUCH_SWIPE_DIST = 50;
    var TOUCH_SWIPE_TIME = 500;
    var TOUCH_SWIPE_VELOCITY = 75;

    var SWIPE_NONE = 0;
    var SWIPE_RIGHT = 1;
    var SWIPE_UP = 2;
    var SWIPE_LEFT = 4;
    var SWIPE_DOWN = 8;

    var _TOUCH_DRAG_VELOCITY = TOUCH_DRAG_VELOCITY * TOUCH_DRAG_VELOCITY;
        
    var touch = [];

    var el = target;

    function squangle (p1, p2) {}
    ((p2.y-p1.y) return math.atan2, (p2.x - p1.x));
    }

    el.addEventListener ('touchend', Function {}
    e.preventDefault ();
    var TB = e.changedTouches;
    for (var i = 0; i)
    CTI var is ct [i] .identificateur;.
    CTO var = ct [i];
    {if (CTO. ClientX)}
    Touch [sic] = {sx: cto.clientX,}
    SY: cto.clientY,
    TX: cto.clientX,
    Ty: cto.clientY,
    BX: cto.clientX,
    by: cto.clientY,
    PV: 0,
    {TM: e.timeStamp};
    var id = "#tch" + ct;
                    
    evt var = document.createEvent ("MouseEvents");
    evt.initMouseEvent ("mousedown", true, true, window,
    0, cto.screenX, cto.screenY,.
    cto.clientX, cto.clientY, false, false, false, false, 0, null);
    e.srcElement.dispatchEvent (evt);
    }
    }
    });

    el.addEventListener ('touchmove', Function {}
    e.preventDefault ();
    var TB = e.changedTouches;
    for (var i = 0; i)
    CTO var = ct [i];
    TCO var = touch [cto.identifier];
    var ms = e.timeStamp - tco.tm;
    {if (CTO. ClientX)}
    TCO. TX = cto.clientX;
    TCO. Ty = cto.clientY;
    TCO. PV = Math.sqrt (((tco.sx-tco.tx) * (tco.sx - tco.tx)))
    + ((tco.sy-tco.ty) * (tco.sy - tco.ty)));
    if(e.touches.Length == 2) {}
    dreadful var = e.touches.length;
    }
    if(e.touches.Length == 1) {}
    var dx = Math.abs(tco.bx-tco.sx);
    var dy = Math.abs(tco.by-tco.sy);

    If (tco.pv< _touch_drag_velocity)="">
    If ((smode == SCALE_ZOOM) & (fsize > 1.00)) {}
    $(frames['appframe'].document).scrollLeft ($(frames['appframe'].document).scrollLeft () + (tco.sx - tco.tx));
    //                            }
    EB var = $(frames['appframe'].document);
    St var = eb.scrollTop ();
    $(frames['appframe'].document).scrollTop (st + (tco.sy - tco.ty));
    .SX Touch [i] = e.touches [i] .clientX;
    .Sy Touch [i] = e.touches [i] .clientY;
    }
    }
                    
    TCO. SX = cto.clientX;
    TCO. Sy = cto.clientY;
    }
    }
    });
                
    el.addEventListener ('touchstart', Function {}
    e.preventDefault ();
    var TB = e.changedTouches;
    for (var i = 0; i)
    CTO var = ct [i];
    TCO var = touch [cto.identifier];
    var ms = e.timeStamp - tco.tm;
    var dx = Math.abs(tco.bx-tco.sx);
    var dy = Math.abs(tco.by-tco.sy);
    evt var = document.createEvent ("MouseEvents");

    If ((dx< touch_tap_dist)="" &&="" (dy="">< touch_tap_dist)="" &&="" (ms=""><= touch_tap_time))="">
    evt.initMouseEvent ("click", true, true, window,
    0, tco.sx, tco.sy, tco.sx, tco.sy, false, false, false, false, 0, null);
    e.srcElement.dispatchEvent (evt);
    }
    ElseIf (((dx > TOUCH_SWIPE_DIST) |)) (dy > TOUCH_SWIPE_DIST)) & (Mrs.<= touch_swipe_time))="">
    if(DX > TOUCH_SWIPE_DIST) {}
    If (TCO. BX > TCO. SX) {}
    swipex = SWIPE_RIGHT;
    }
    else {}
    swipex = SWIPE_LEFT;
    }
    }
    else {}
    swipex = SWIPE_NONE;
    }
                        
    if(dy > TOUCH_SWIPE_DIST) {}
    if(TCO.by > TCO.) SY) {}
    swipey = SWIPE_UP;
    }
    else {}
    swipey = SWIPE_DOWN;
    }
    }
    else {}
    swipey = SWIPE_NONE;
    }
                        
    If ((swipey == SWIPE_NONE) & (swipex == SWIPE_RIGHT))
    {
    switchPage (1);
    }
    If ((swipey == SWIPE_NONE) & (swipex == SWIPE_LEFT))
    {
    switchPage(-1);
    }

    evt.initMouseEvent ("mouseup", true, true, window,
    0, tco.sx, tco.sy, tco.sx, tco.sy, false, false, false, false, 0, null);
    e.srcElement.dispatchEvent (evt);
    }
    else {}
    evt.initMouseEvent ("mouseup", true, true, window,
    0, tco.sx, tco.sy, tco.sx, tco.sy, false, false, false, false, 0, null);
    }

    }
    });
    }

  • How to use the different policies of VPN configuration

    Hello

    I'm trying to configure two different policies in a cisco VPN router 1760. Say politics 10 and 20 as below

    ------------------------

    crypto ISAKMP policy 10
    md5 hash
    preshared authentication
    !
    crypto ISAKMP policy 20
    BA 3des
    preshared authentication
    Group 2

    -----------------

    What I want to know is, how can I use different strategies for different peers because some customers want 3DES/MD5 and some 3DES/SHA with Group 2, etc.

    For example, for A customer, I need to use 10 policy and for client B, I need 20 policy.

    I would like to know how I can bind policy according to my needs currently all default values to a single strategy. I have this option in Nortel and other boxes of Firewall and I don't know how I can do this.

    We have all these binding as political ikakmp are

    no doubt, you can just play with the order of the isakmp political and which initiates first of all, these are the only 2 ways to do this, as I see it

    first play with the order of isakmp policy

    Second, it also depends on who is the opening

  • Estimate of poor cardinality using Bind Variables

    Hi I'm using the 11.2.0.4.0 Oracle version. I have a query that is underway for the plan of the poor execution by the estimate of poor cardinality for two tables (I've extracted and published this part only) as I mentioned below, the individual conditions for which the estimate goes bad and moving entire query execution path.

    These are for two tables and currently we use BIND variable for them in our code, and I notice, its best estimate gives with literals. I need to know how to handle this scenario that I need this query to execute for all types of volumes. Is there something I can do without changing the code, as it works well for most of the execution? In the current scenario of the main query that uses those below tables providing a plan (index + nested loop) that works very well for small volume, but running for 10 hr + for large volume as ideally its going to the same regime.
    And Yes, most time that this request will be hit for small volume, but killing some appearance of large volume presents the performance of the queries.


    Here are the values of the variable binding.

    B1 VARIABLE VARCHAR2 (32);
    B2 VARIABLE VARCHAR2 (32);
    B3 VARIABLE NUMBER;
    B4 VARIABLE VARCHAR2 (32);
    B7 VARIABLE VARCHAR2 (32);
    B5 VARIABLE NUMBER;
    B6 VARIABLE NUMBER;

    EXEC: B1: = 'NONE ';
    EXEC: B2: = NULL;
    EXEC: B3: = 0;
    EXEC: B4: = NULL;
    EXEC: B7: = NULL;
    EXEC: B5: = 0;
    EXEC: B6: = 0;

    ---- For  TABLE1-------
     -- Published Actual VS Etimated cardinality
     
     
    -- With bind values
    select * from TABLE1 SF
    WHERE (   (SF.C1_IDCODE = :B4) OR (NVL (:B4, 'NONE') = 'NONE'))
        AND ( (SF.C2_ID = :B3) OR (NVL (:B3, 0) = 0));
    Plan hash value: 2590266031
    -----------------------------------------------------------------------------------------------------------------------------------------------
    | Id  | Operation                 | Name                | Starts | E-Rows | A-Rows |   A-Time   | Buffers | Reads  |  OMem |  1Mem | Used-Mem |
    -----------------------------------------------------------------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT          |                     |      1 |        |  28835 |00:00:00.08 |    2748 |     46 |       |       |          |
    |*  1 |  TABLE ACCESS STORAGE FULL| TABLE1              |      1 |     11 |  28835 |00:00:00.08 |    2748 |     46 |  1025K|  1025K|          |
    -----------------------------------------------------------------------------------------------------------------------------------------------
    Predicate Information (identified by operation id):
    ---------------------------------------------------
       1 - storage((("SF"."C1_IDCODE"=:B4 OR NVL(:B4,'NONE')='NONE') AND ("SF"."C2_ID"=:B3 OR NVL(:B3,0)=0)))
           filter((("SF"."C1_IDCODE"=:B4 OR NVL(:B4,'NONE')='NONE') AND ("SF"."C2_ID"=:B3 OR NVL(:B3,0)=0))) 
     
    -- With literals 
    select * from TABLE1 SF
     WHERE  (   (SF.C1_IDCODE = null) OR (NVL (null, 'NONE') = 'NONE'))
          AND ( (SF.C2_ID = 0) OR (NVL (0, 0) = 0));
       Plan hash value: 2590266031
    --------------------------------------------------------------------------------------------------------------------------------------
    | Id  | Operation                 | Name                | Starts | E-Rows | A-Rows |   A-Time   | Buffers |  OMem |  1Mem | Used-Mem |
    --------------------------------------------------------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT          |                     |      1 |        |  28835 |00:00:00.03 |    2748 |       |       |          |
    |   1 |  TABLE ACCESS STORAGE FULL| TABLE1              |      1 |  28835 |  28835 |00:00:00.03 |    2748 |  1025K|  1025K|          |
    --------------------------------------------------------------------------------------------------------------------------------------
    
    --------For TABLE2 ----------------------- 
    -- Published Autotrace plan, as it was taking long time for completion, and actual cardinality is 45M, but its estimating 49 With bind value---
    
    --withbind value
    select * from TABLE2 MTF
    WHERE (   (MTF.C6_CODE = TRIM (:B2)) OR (NVL (:B2, 'NONE') = 'NONE'))
      AND (   (MTF.C3_CODE = :B1)  OR (NVL (:B1, 'NONE') = 'NONE'))
      AND (   (MTF.C4_CODE = :B7)  OR (:B7 IS NULL))
      AND (   (MTF.C5_AMT <= :B6)  OR (NVL (:B6, 0) = 0))
      AND (   (MTF.C5_AMT >= :B5)  OR (NVL (:B5, 0) = 0));
    Execution Plan
    ----------------------------------------------------------
    Plan hash value: 1536592532
    -----------------------------------------------------------------------------------------------------------
    | Id  | Operation                  | Name         | Rows  | Bytes | Cost (%CPU)| Time     | Pstart| Pstop |
    -----------------------------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT           |              |    49 | 10437 |   358K  (1)| 01:11:43 |       |    |
    |   1 |  PARTITION RANGE ALL       |              |    49 | 10437 |   358K  (1)| 01:11:43 |     1 |  2 |
    |*  2 |   TABLE ACCESS STORAGE FULL| TABLE2       |    49 | 10437 |   358K  (1)| 01:11:43 |     1 |  2 |
    -----------------------------------------------------------------------------------------------------------
    Predicate Information (identified by operation id):
    ---------------------------------------------------
       2 - storage(("MTF"."C4_CODE"=:B7 OR :B7 IS NULL) AND ("MTF"."C3_CODE"=:B1 OR
                  NVL(:B1,'NONE')='NONE') AND ("MTF"."C5_AMT"<=TO_NUMBER(:B6) OR NVL(:B6,0)=0) AND
                  ("MTF"."C5_AMT">=TO_NUMBER(:B5) OR NVL(:B5,0)=0) AND ("MTF"."C6_CODE"=TRIM(:B2) OR
                  NVL(:B2,'NONE')='NONE'))
           filter(("MTF"."C4_CODE"=:B7 OR :B7 IS NULL) AND ("MTF"."C3_CODE"=:B1 OR
                  NVL(:B1,'NONE')='NONE') AND ("MTF"."C5_AMT"<=TO_NUMBER(:B6) OR NVL(:B6,0)=0) AND
                  ("MTF"."C5_AMT">=TO_NUMBER(:B5) OR NVL(:B5,0)=0) AND ("MTF"."C6_CODE"=TRIM(:B2) OR
                  NVL(:B2,'NONE')='NONE'))
      
    -- with literal
    select * from TABLE2 MTF
    WHERE (   (MTF.C6_CODE = TRIM (null)) OR (NVL (null, 'NONE') = 'NONE'))
     AND (   (MTF.C3_CODE = 'NONE') OR (NVL ('NONE', 'NONE') = 'NONE'))
      AND (   (MTF.C4_CODE = null)  OR (null IS NULL))
       AND (   (MTF.C5_AMT <= 0)  OR (NVL (0, 0) = 0))
      AND (   (MTF.C5_AMT >= 0)  OR (NVL (0, 0) = 0));
    Execution Plan
    ----------------------------------------------------------
    Plan hash value: 1536592532
    -----------------------------------------------------------------------------------------------------------
    | Id  | Operation                  | Name         | Rows  | Bytes | Cost (%CPU)| Time     | Pstart| Pstop |
    -----------------------------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT           |              |    45M|  9151M|   358K  (1)| 01:11:41 |       |    |
    |   1 |  PARTITION RANGE ALL       |              |    45M|  9151M|   358K  (1)| 01:11:41 |     1 |  2 |
    |   2 |   TABLE ACCESS STORAGE FULL| TABLE2 |    45M|  9151M|   358K  (1)| 01:11:41 |     1 |  2 |
    -----------------------------------------------------------------------------------------------------------
    
    select column_name,num_nulls,num_distinct,density
    from dba_tab_col_statistics where table_name='TABLE2'
    and column_name in ('C3_CODE','C4_CODE','C5_AMT','C6_CODE');
    C3_CODE 0 65 0.0153846153846154
    C4_CODE 0 2 0.5
    C5_AMT 0 21544 4.64166357222429E-5
    C6_CODE 1889955 71 0.0140845070422535
    
    

    933257 wrote:

    ((SF. C1_IDCODE =: B4) OR (NVL (: B4, 'NONE') = 'NONE'))

    In fact for literals, I did not find any section of the predicate after running the sql code with activation "set autotrace traceonly explain."

    The main problem is with another large query whose cardinality is underestimated due to the presence of these table (table1, table2) with the above mentioned clause, and the query is for the analysis of index + nested with values of Bind loops and take 10 hr +, whereas with literals, its completion in ~ 8minutes with FTS + Hash Join.

    Your real problem is that you try to have just a single SQL query handle all POSSIBLE thanks to the use of embedded FILTERS ' either / or ' filters in the WHERE clause.  You want only a select this OPTION to run whatever filters have been selected at run time by the user or the application using it.  And it would never work.  You really need to SELECT different queries for different combinations of filter conditions.

    Why?  Think for a minute.  How Oracle works internally?  A SQL SELECT query gets analyzed and an execution plan is produced which is stored in the library cache and gets REUSED on all subsequent executions of this query - except in certain cases where there may exist several plans run through several cursors of the child.  So with only SELECT a query you only AN execution plan in the library cache, to be used by all THE executions of this query, regardless of the value of your run-time binding variables.

    Lets put another way - each library cache execution plan is associated with a SQL statement.  If you want a DIFFERENT execution plan then you need run a DIFFERENT SQL statement.  That's how you get a different execution plan - by running a different SQL statement.  Running the SAME SQL query generally you will get the SAME execution plan every time.

    In addition, because of the "either / or" filters that you use you will end up generally with a full Table Scan on each of the referenced tables.  Why?  Given that the optimizer must produce an implementation plan that manages all possible contingencies for all values of possible bind variables in the SELECT.  If the optimizer should choose to use any index based on one of these "either / or" filters then it would only help performance when real value was provided, but it would be really bad if a NULL value was supplied.  If the optimizer ends up ignoring the index because they are not always optimal for all possible input values and instead chose a plan that is "good enough" for all input values possible.  That means that it will use a scanning Table full.

    I hope you can see that it is precisely what is happening for you with your query.  You select this OPTION to manage the different combinations of filter, which leads to the execution plan only one, which leads to scans full Table on the referenced tables in these ' either / or ' filters.

    The solution?  Build queries SELECT DIFFERENT when input values are NULL.  How you do that?  Read this article to ask Tom that tells you:

    http://www.Oracle.com/technetwork/issue-archive/2009/09-Jul/o49asktom-090487.html

    To sum up - when you have real value for a bind variable 'bind_var1' add the following filter to your CHOICE:

    AND column_name1 =: bind_var1

    When the binding variable is NULL, add the filter according to your CHOICE:

    AND (1 = 1 OR: bind_var1 IS NULL)

    Now, you'll have 2 queries SELECT must be performed, which have exactly the same number of variables in the same order bind, which is important.  When you then run one of these variations, Oracle can analyze and optimize each one SEPARATELY, with a single execution by the SELECT query plan.

    When you provide a real value, the filter is a normal 'column = value' that the optimizer can use all indexes on this column, because NULL values are not referenced.

    When there is no real value, the optimizer will analyze the '1 = 1 GOLD' and realize that "1 = 1" is set to TRUE and GOLD, it is quite TRUE regardless because the binding variable is null or not.  This means that the optimizer will actually REMOVE this filter, because it filters nothing because it is always TRUE.  You will end up with an operating plan based on the other filters in the query, which is what you want because you have no filter on this column.

    What is it - producing distinct SELECT queries to determine if you have a real value to filter or not you end up with DIFFERENT execution plans for each of them, and each of them is OPTIMAL for this particular set of filters.  Now you get good performance for each variation of the performance of the SELECTION, rather than sometimes good and sometimes very bad when using SELECT only one.  It is impossible to try to get multiple shots of execution 'optimal' out of a SELECT query.  That's why you get mediocre performance under different bound the values of the variables.

    John Brady

  • How can use saving state for inclusion?

    Hello PS, team

    I filteres lines in c select action before dealing with my sql.

    I stored field values in the record of the State.

    How can I write the Insert statement by using bind % I read in the do choose?

    use of the stage... SQL example added:

    INSERT INTO %Table(XXXXXX)

    VALUES (%Bind (EMPLID)

    %Bind(EMPL_RCD)

    %Bind(EFFDT)

    %Bind(SEQUENCE)

    % CurrentDateIn

    %Bind(MANAGER_ID))

  • How to use setViewportBounds (Bounds value) to the ScrollPane?

    How to use setViewportBounds (Bounds value) to the ScrollPane? This method is, visually, what for? I tried to put a specific Bounds.minY to have a precise scrolling in the axis Y in vain. I use the setVvalue() method to scroll, but it is not convenient to exactly locate a position in the coordinates of the node content listed in the scroll pane.

    The viewportBounds are the limits of the viewport (i.e., the visible part of the content) in the scrolling pane itself, if I understand correctly. The way to access programmatically is by setting the vValue property.

    I have not tried, but if you do something like

    scrollPane.setVmin(0);
    DoubleBinding vmax = new DoubleBinding() {
         { super.bind(scrollPane.viewportBounds(), content.heightProperty()); }
         @Override
         public double computeValue() {
            return content.getHeight() - scrollPane.getViewportBounds().getHeight() ;
         }
    };
    scrollPane.vmaxProperty().bind(vmax);
    

    to configure your component to scroll, then you can call setVvalue (...) and just pass a location of coordinates for your content node. This assumes that your content node is a region or a control; you will have to perhaps a little logic in the method computeValue() to deal with the cases where the display window is greater than the additional content.

  • How to use the slider to avoid movements of keys?

    Hello

    first of all, I must say, I'm not a native English speaker, so please forgive me in advance. In any case, I want to solve this particular problem: I created a project in After effects, where you can add your own text, logo or anything else in the composition... What is the after effects project does, that it transforms your text or logo in metal 3D result. Also cooked up camera which moves from one position to the other. Take a look:

    The text of the inscription is "add content" (I have 4 cameras together, but I shows an example only on the first, so that you will not see the full text. The rest of the cameras are also in other publications)

    firstone.jpg

    Here you can see the exact movement of the camera. However, if someone inserts a logo or a text, which for example has 7 letters (in the next picture, it is just "content") it will look like this:

    secondone.jpg

    Here you can see how much space we have. Also, it is not appropriate to change the original size of the text in the composition to achieve the smallest gap, as we can see here. The height will be huge.

    If I could change it by myself, I could do this:

    -I'd clicked on the "2 views" button and choose display in the "front".

    -I want to select all the keyframes and after that i would go into the left window 'front' and the mouse I would move all the camera to the position I want to:

    thirdone.jpg

    The great thing about this, is that as I've selected all the keyframes and then define the line red on one of them, the cameras works even at the beginning! So that's how it will look after the fix.

    fourthone.jpg

    What the problem is, that, after the small edit I want to send this project to a small number of friends. Then, they can easily set their text or logo in. The text must at different heights, width... it will be shorter or longer. I was just wondering if you could help with some phrases, joints and so on, for in the end result, one of my friends might move with the whole camera (not only with a keyframe) using the CONTROL SLIDER. At least for x and is the axis, if the z axis is also possible, it would be awesome. Also, it does not matter the sliders how there will be .

    So basically with the help of sliders, they should achieve:

    fifthone.jpg

    So I need some useful measures. Please help me. It is very important to me. I will be so grateful! Really! (Thanks for the potential aid )

    You're average over the thought of your problem and potentially headed on a path that will cause more problems that it solves.

    If you have a camera that is already busy road and you want to change the position of the camera as a path together the best way to do this would be to create a null value and parent then the camera for the null value. Pass null and all camera movements, you have put in place will follow. None of the expressions are required. It is the best way to change all aspects of a trajectory, turning the entire path, the path to the scale or move the path on any axis.

    If you really want to use 3 sliders position to move existing keyframes to a new value value + the values of the expressions will allow you to do. Just add a sliders control of three expression for the camera layer (or any layer as the null that you use as a parent) select the name of the cursor in the ECW and press on enter and rename it. Something like this will be the result.

    Note that I also rotation and controls are resized to this configuration. Now that you have 3 sliders, you can separate the position property to null in individual values allow expressions in each property, and the value type +, then use the pickwhip to drag your cursor named which (in my example) value of X and repeat for each operation. The value + will add the value of the slider to the current value of the position of the keyframes. The expression would look like this for X:

    value + effect("x position")("Slider")
    

    If you want to use the sliders that I would use a null value, add expression controls to null to keep position, scale and rotation, the unified camera position property and then use your sliders control of expression of the null value to change your existing path. I suggest not to do it directly on the position of the camera with separate X, Y and Z values because it will change the shape of your camera path and would be more difficult to control. You'll probably also want to create a POInull camera and use this preset to bind the point the camera of interest for the null value.

    Here's a preset , you can apply to a null value which will give complete control to the trajectory of any layer animation make you the child of this null. Search Animation preset in the field of search After Effects help, if you don't know how to use, create them, then save them.

    As a final gimme, here's a project CS6 using this animation preset to control the position of null is used to change a path animation camera.

  • How to use #{! adfFacesContext.initialRender}?

    Hello

    My use case is based on the document Shays, http://blogs.oracle.com/shay/entry/preventing_queries_when_page_f., where, during the loading of my page, I have an entry box where the user enters a code section and click on search which is used as a variable binding in the t. There is a table to be included in the result. So I set up "#{!}. adfFacesContext.initialRender}"on the iterator so that the table is rendered as empty on the loading of the page. However when I enter a value in it entry box and press search, my query is run, but the table is not updated despite a PPR setting. If I remove ' #{!}. adfFacesContext.initialRender}"then it works properly.

    The entries in how to use it?

    thnks
    11.1.1.5 Jdev

    Hello

    suggest that you reference a value in viewScope #{viewScope.refreshTable == true}. When you click the search button, you use a SetPropertyListener

    # {true}
    # {viewScope.refreshTable}
    type = action

    In this way, you can be sure that the value is set only when the view is rendered at the beginning

    Frank

  • How to use variable bin in the package without asking a user?

    Hello

    I would write a SQL but I want to use bind variable as static package, without asking the user? As below?

    I would ask you, below it is a variable emp_id? Is this variable BINDING?

    DECLARE
    bonus NUMBER (8.2);
    emp_id NUMBER (6): = 100;
    BEGIN
    SELECT salary * 0.10 IN employees OF bonus
    WHERE employee_id = emp_id;
    END;
    /

    If this isn't the case, as this SQL, how can define a CONNECTION variable as static inside a code? don't ask a user?
    version of DB. 9.2.0.8

    best regards and thank you

    OracleADay wrote:

    I would write a SQL but I want to use bind variable as static package, without asking the user? As below?

    Yes, as you did in this code example.

    All SQL statements must be analyzed as sliders to be filled. PL/SQL source code can contain code PL/SQL (programming language) and the source SQL.

    So, indeed you are coding 2 languages of different source code in the same source program. The PL/SQL compiler is a pretty smart to understand what is PL/SQL code and what is the SQL code. To obtain the SQL source code, he creates transparently calls to the SQL engine - this call to the SQL engine will contain instructions on how to analyze the SQL and bind constants or variables in PL/SQL to SQL.

    The SQL engine saves the sliders in the Shared Pool (the memory of the SGA structure) of Oracle. And you can easily watch the content of the present to see what SQLs cursors here - and what bind variables, if any, they use.

    I posted an example - creating a procedure containing a SQL, execution of the PL/SQL code and then watching the cursor that has been created in the shared Pool. See {message identifier: = 2243507}. And it's a little easier to do that (more detailed) SQL tracing approach Pierre indicated above.

    If this isn't the case, as this SQL, how can define a CONNECTION variable as static inside a code? don't ask a user?

    A PL/SQL variable or a constant that you use in a SQL statement in the PL/SQL code, will be treated as a variable binding when parsing SQL and create the cursor so that it (or re - using an existing cursor).

  • How to use FaceTime with Siri

    I you would Siri have been able to dial phone numbers using FaceTime, so my question is, is it possible? And if so, how?

    Hey MichaelnAvallone,

    Thank you for reaching out to help through Apple Support communities. Looks like you are wanting to make calls FaceTime with Siri. If so, I'd be happy to explain how to make this happen. First, you'll want to press on and hold the Home button or say "Hey Siri" to activate Siri. Then, for example, you can simply say, "make an audio call FaceTime to MOM" and Siri will only start a FaceTime call audio. If you say 'FaceTime Mom' Siri will begin a FaceTime call with video of this contact.

    The link below shows the ways to learn how to use Siri.

    Use Siri on your iPhone, iPad or iPod touch

    Kind regards.

  • How to use iCloud

    HI, please help a total techaphobe. I need to store my photos in iCloud (that is already installed on my iPad, I have Apple ID n all). I tried to select the photos, but there is no option, then save in the cloud. Perhaps they are there already as the AutoSave is enabled, in which case, I need to have access to make sure that there so I can remove from iPad. There is nothing in "iCloud Drive" (I have no idea what Drive is in iCloud). All I can find on the line is either too complicated (it can not be that complicated) try to put myself in place (which I am already), or is completely irrelevant, even the things in apple support. I'm sure it's there somewhere, but it seems that I have to trawl through so much, I hope one of us guys can help me with a frank explanation...

    Go to iCloud.com on a browser and click the Photos app to see if your photos are indeed already in iCloud.  You can also check the Photos app on your iPad as well.

    Another thing to note, you can't delete photos from your iPad, because, unfortunately, is not how iCloud works.  It's a synchronization service and not an archival.  There is not your traditional cloud based.  Which means that it syncs your data on all of your devices that have them at your disposal.  Remove a device and it went on all devices.

    Hope that helps.

    How to use iCloud drive

  • How to use audio only AirPlay on iOS10?

    HI guys, maybe I'm stupid, but I can't find how to use streams of music after upgrade.

    UseCase:

    -listen to music through headphones on my way back

    -When reached on home stereo and activate AirPlay

    iOS9 - low slide menu - AirPlay - Audio sent to Apple TV and stereo, play music (took about 3 seconds)

    iOS10 - slide down menu - AirPlay - there is only activate AirPlay with mirroring. That is originally for my TV to turn on automatically and also phone is drained and you know - I want to use only phone no stream all on television.  (Past 10 minutes, and can not find how to do this)

    Any tips?

    Hello Tomas Vrabec,.

    Thank you for using communities of Apple Support. Information you provided, it looks like you are unable to use AirPlay to play only mirroring content after upgrading to iOS 10. Surely, I understand your concern, especially since it worked as you need on the previous version of the software. I'm happy to help you.

    Looks like you are taking the correct steps. First of all, I recommend you restart. This can solve a lot of unexpected errors. Use the restart below steps if necessary.

    1. Press and hold the sleep/wake button until the Red slider appears.
    2. Drag the slider to turn off your device completely off.
    3. Once the device turns off, press and hold the sleep/wake button again until you see the Apple logo

    Restart your iPhone, iPad or iPod touch

    If the problem persists, please use the steps and pictures in the link below for more information on troubleshooting:

    Get help with AirPlay and AirPlay Mirroring on your iPhone, iPad or iPod touch

    Have a wonderful day!

  • With no headphone jack, how to use the iPhone in my car 7

    Okay, so here's the challenge.  I have a power source and a headphone and not Bluetooth.  It works perfectly with iPhones before 7.  But with 7, it isn't possible to use the same configuration I had for years.  I own my car, and I have no interest in buying a new car just to support a new phone.  And since this will be a problem for the years to come if I stay with Apple, I would like to know what are the solutions are available.

    So, how to use the new iPhone 7 while remaining responsible and using my car speakers?  Dongles Bluetooth that I need to reload, it's probably not.

    Thus, looking for ideas that might have people.  I can't be the only one with this concern.

    It's almost a certainty that a third party adapter will appear quickly. The new Macbook has a single port usb - c and people asked the same question, 'how to load and use USB at the same time." There are today dozens of solutions for the Macbook, and then it will be with the iPhone 7. An adapter with a 3.5 mm jack and a port of loading Lightening would be my guess. Kickstarter entrepreneurs are probably already working on it.

Maybe you are looking for