Cast Documented Behaviour?

Take a look at the following sample. In the last statement, I use a CAST and understand why it only shows the first letter. But why does it do the same for the other column in which I don't use the CAST?
SQL> select *
  2    from v$version
  3  /
BANNER
Personal Oracle Database 10g Release 10.2.0.1.0 - Production
PL/SQL Release 10.2.0.1.0 - Production
CORE    10.2.0.1.0      Production
TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
SQL>
SQL> drop table t purge
  2  /
Table dropped.
SQL>
SQL> create table t
  2  as
  3  select object_name
  4    from all_objects
  5   where rownum <= 5
  6  /
Table created.
SQL> select object_name
  2    from t
  3  /
OBJECT_NAME
ICOL$
I_USER1
CON$
UNDO$
C_COBJ#
SQL>
SQL> select object_name
  2       , cast (object_name as varchar2(1))
  3    from t
  4  /
OBJECT_NAME                    C
I                              I
I                              I
C                              C
U                              U
C                              C
SQL>
SQL> Is this documented behaviour? I couldn't find anything using Tahiti.oracle.com or the forums...

It's trying to cast to x%type, which is DATE. But even if you replace it with DATE you get the same error.
  1  DECLARE
  2     i   DATE;
  3     x   DATE;
  4  BEGIN
  5     i := CAST (SYSDATE AS date);
  6* END;
cmsgpro_user@XOPDEV> /
   i := CAST (SYSDATE AS date);
ERROR at line 5:
ORA-06550: line 5, column 15:
PLS-00382: expression is of wrong type
ORA-06550: line 5, column 4:
PL/SQL: Statement ignored
cmsgpro_user@XOPDEV> ED
Wrote file afiedt.buf
  1  DECLARE
  2     i   DATE;
  3     x   DATE;
  4  BEGIN
  5     i := CAST (SYSDATE AS VARCHAR2);
  6* END;
cmsgpro_user@XOPDEV> /
PL/SQL procedure successfully completed.

Similar Messages

  • Problems with convertNumber and Double values

    I've serious troubles using convertNumber with Double data in input fields.
    While output formatting works fine, the outputted string fails to be converted back - I get conversion errors.
    So the value that is written to the input field generates a conversion error being submitted! This is not good practice!
    I've found out the following: (I use german locale, so following examples containing ',' means decimal point)
    <f:convertNumber pattern="##0.00" />generates the right output, eg. for Double(20.50) - "20,50", but this value ("20,50") will not be parsed using the above pattern! Only values with non zero last minimum fractional digit (eg "20,51", "20,59", ... ) will be parsed!
    In addition, the above pattern doesn't parse numberstrings that don't contain all significant digits.
    For example an input of "20" will not be parsed to "20.00"!
    Maybe this is not the right forum for that problem, since i think this is a general java formatting problem (?).
    But as the problem arised by using the convertNumber tag and acting like this on numeric input fields is not very comfortable, I liked to post this here. Maybe someone can give me some advice?

    I also have found this problem, except that in my experience it is the decimal part that must be non-zero, not just the last digit of the decimal part. So with a pattern of "0.00" the string "1.50" (one and a half) will be accepted whereas the string "1.00" will not.
    My guess (just a guess) is that it is related to the documented behaviour of the DecimalFormat object when it parses a number. According to the documentation:
    The most economical subclass that can represent the number given by the string is chosen. Most integer values are returned as Long objects, no matter how they are written: "17" and "17.000" both parse to Long(17). Values that cannot fit into a Long are returned as Doubles. This includes values with a fractional part, infinite values, NaN, and the value -0.0. DecimalFormat does not decide whether to return a Double or a Long based on the presence of a decimal separator in the source string. Doing so would prevent integers that overflow the mantissa of a double, such as "10,000,000,000,000,000.00", from being parsed accurately. Currently, the only classes that parse returns are Long and Double, but callers should not rely on this. Callers may use the Number methods doubleValue, longValue, etc., to obtain the type they want.
    Which means that "1.50" will be returned as a Double while "1.00" will be returned as a Long. Perhaps there is then a class-cast exception whie trying to use this value?
    If this is indeed the problem, the solution is to use the getDouble() method of the parsed Number to create the Double to be returned, but this is for the implementer to do - not the user!

  • How to test for existence of AcroXFA test objects?

    Hi -
    I'm writing scripts to test an XFA form with dynamic subforms.  For example, at the end of Part 4, the user hits a Validate button, and if their data is correct, then the Validate button disappears and a Part 5 subform appears.
    So my script looks something like this:
    Function GetButtonPart4Validate()
       Set GetButtonPart4Validate = PDFDoc("TestForm").AcroXFAForm("form").AcroXFAForm("form1")
    .AcroXFAForm("sfPart4").AcroXFAButton("sfValidate")
    End Function
    Function GetPart5()
       Set GetPart5 = PDFDoc("TestForm").AcroXFAForm("form").AcroXFAForm("form1").AcroXFAForm("sfPart5")
    End Function
    GetButtonPart4Validate().Click
    PDFDoc( "TestForm" ).WaitProperty "ready", true, 60000  ' Wait for event processing complete
    If DataTable("boolValidates", dtLocalSheet) = "TRUE"  Then
         If( GetPart5().Exist ) Then
              ' A: Checkpoint Succeeds: Validation was successful
         Else
              ' B: Checkpoint fails: Validation failed
         Endif
    Else
         If(  GetPart5().Exist ) Then
              ' C: Checkpoint Fails:  Validation was unexpected
         Else
               ' D: Checkpoint Succeeds:  Validation failed as expected
         Endif
    Endif
    Unfortunately it appears that XfaSubForm.Exist always returns TRUE.  In other QTP testing domains (eg "Exist Property (WinObject)" in QTP Help), the documented behaviour of the Exist property is to be true if the desired test object can be found in the application-under-test. Typically this means that when the script tries to access an XFA widget which doesn't exist (even something like GetPart5().getROProperty("visible") ), the script stops and thinks for a minute or so, and eventually produces a test error that the object doesn't exist then muddles onward. It is the "stops and thinks for a minute or so" which frustrates me, since these are delays which I am trying to avoid.
    Another possible angle I looked into was counting the subforms under Part 5's parent.
    PDFDoc("TestForm").AcroXFAForm("form").AcroXFAForm("form1").RefreshObject
    PDFDoc("TestForm").AcroXFAForm("form").AcroXFAForm("form1").AcroXFAForm("sfPart5").Refresh Object
    ' check to see if there is a 'sfPart5'
    Dim MyChildren, i
    Set MyChildren = PDFDoc("TestForm").AcroXFAForm("form").AcroXFAForm("form1").ChildObjects
    For i=0 to MyChildren.Count - 1
        print i & " name=" & MyChildren(i).GetROProperty("name")
    Next
    This also seems to fail:  Part5 doesn't appear among its parent's children (at least before QTP actually tries to use it).
    The PDF Test Toolkit User Guide doesn't specifically mention that Exist or RefreshObject or ChildObjects are implemented, so I can't say AcroQTP isn't working as designed, but if you're looking for suggestions for improvement, I'll vote for fulfilling these parts to the QTP.  Please confirm my conclusions that these are not properly implemented, or whether I'm missing something.
    In the meantime, do you have any recommendation on how to proceed?  My present workaround is to look for a "validation error" windows dialog that indicates Part 5 won't exist, but this won't work in future test scripts.
    Cheers,
    Brent

    Hi,
    816387 wrote:
    ... QUERY:-  Find all customers who have at most one account at the Perryridge branch.
    SOLUTION *1* :-
    select customer_name
    from depositor,account
    where account.account_number=depositor.account_number and
    branch_name='Perryridge'
    group by customer_name
    having count(account.account_number) <=1
    ok running correctly
    That finds customers who have exactly one account at Perryridge.
    The assignment is to find customers who have at most one account at Perryridge. You need to include customers with 0 accounts at Perryridge, as well. You could use an outer join, or MINUS, or a NOT IN subquery, or a NOT EXISTS sub-query (as mentioned above) to do that.
    Can there be customers who have no accounts at all, at any branch? If so, you'll need to use the customer table in this problem, as well as depositor and account.
    >
    SOLUTION *2* :-
    select D1.customer_name
    from depositor D1
    where unique
    (select customer_name
         from depositor D2,account A1
         where D1.customer_name=D2.customer_name
              D2.account_number=A1.account_number and
              branch_name='Perryridge'
    gives error:-
    where unique
    ..........*^*
    ERROR at line 3:
    ORA-00936: missing expression
    Logic of both solution are correct . But Solution 2 gives error in oracle. I want unique construct to work.Sorry, it doesn't in Oracle. I don't know of anything like that in Oracle.
    Does "WHERE UNIQUE (SELECT ...)" work in some other database system? Which?
    How to do it. Or How can i test for the absence of duplicate tuples ??????
    Your Solution 1 is the best way to find customers with exatly 1 account (rather than 0 or 1 accounts) at Perryridge. Is there any reason why you wouldn't want to use it, if you ever needed to find customers with exactly one account there?

  • CURSOR_ALREADY_OPEN and SYS_REFCURSOR

    Hi,
    I have noticed that you can open a sys_refcursor without closing it. A co-worker did it in a function and I complained it was not good practice and it would raise an error, but he told me I was wrong. I have tested it and it has worked, so I have lost the argument.
    And then I found nothing on Oracle literature about it. Did I miss something? Is it common knowledge?
    Thanks, Roger

    And then I found nothing on Oracle literature about it. Did I miss something? Is it common knowledge? It is documented behaviour: Opening a Cursor Variable:
    You need not close a cursor variable before reopening it. Note that consecutive OPENs of a static cursor raise the predefined exception CURSOR_ALREADY_OPEN. When you reopen a cursor variable for a different query, the previous query is lost.
    «

  • Explicitly server trusting needed to connect to enterprise WLAN

    My iOS 6.1.3 devices always asks to trust the server certificate, when connecting for the first time to an enterprise WLAN with PEAP-MS-CHAPv2 authentication. Even when the server certificate is issued by a trusted publisher.
    Is this a documented behaviour?

    Dear Neni,
    SAP Note 984876 has all instructions on how to proceed. See below:
    If you have purchased ARIS via SAP, proceed as described in note
    1114046.
    If you have purchased ARIS via IDS, proceed as follows:
    The synchronization functionality completely depends on an Add-on
    developed by IDS Scheer. Therefore, problems related to this
    functionality are not handled by SAP support. Please contact IDS Scheer
    support for help.
    Best regards,
    Guilherme Balbinot

  • Connect by prior return unnecessary rows

    Hello,
    I am using oracle 9.2
    my query looks like this:
    SELECT *
    FROM book_items t
    where cust_id = 2305240
    and sort_key is not null
    CONNECT BY PRIOR item_id = parent_id
    START WITH t.item_id = 193
    ORDER SIBLINGS BY sort_key
    the problem is, when I have a father that has no sort_key (null) then it doesn't come up in the result, BUT his child does! they have a sort key, but why do I see them if the father is not exist in the result, it makes no sense to me...?
    How can I fix this, if the father doesn't comes up, I don't need his child's?
    Thanks.

    It's documented behaviour that:
    Oracle processes hierarchical queries as follows:
    A join, if present, is evaluated first, whether the join is specified in the FROM clause or with WHERE clause predicates.
    The CONNECT BY condition is evaluated.
    Any remaining WHERE clause predicates are evaluated.The predicates "cust_id = 2305240 and sort_key is not null" are applied last.

  • Using css on form buttons to make them pretty

    Hello,
    I usually use the below css (bottom page) on a page for my
    form buttons, it
    works nicely in ff and IE, but with regards to the W3C CSS
    Validator I get
    the following errors.
    input.btn attempt to find a semi-colon before the property
    name. add it
    input.btn Property progid doesn't exist : DXImageTransform
    input.btn Parse Error DXImageTransform.Microsoft.Gradient
    (GradientType=0,
    StartColorStr='#ffffffff', EndColorStr='#ffeeddaa');
    input.btn Parse Error }
    If any one knows how to make this errorless I would be
    grateful, it does
    appear as a nice botton etc lol
    any way if any one has input I am grateful
    regards
    k
    -~-~-~-~-~-~ the page with botton is below -~-~-~-~-~-~
    <%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
    Transitional//EN"
    http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8">
    <title>Testing css form button</title>
    <style type="text/css">
    <!--
    input.btn {
    color:#050;
    font-family: Tahoma, Arial, Verdana, Monaco, sans-serif;
    font-size:10px;
    font-weight:bold;
    background-color:#fed;
    cursor:pointer;
    border:1px solid;
    border-top-color:#B2876A;
    border-left-color:#B2876A;
    border-right-color:#B2876A;
    border-bottom-color:#B2876A;
    filter:progid:DXImageTransform.Microsoft.Gradient
    (GradientType=0,
    StartColorStr='#ffffffff', EndColorStr='#ffeeddaa');
    -->
    </style>
    </head>
    <body><form action="" method="post">
    <p>
    <input name="ahithere" type="submit" class="btn"
    id="ahithere"
    value="Submit">
    </form>
    </body>
    </html>

    .oO(Thierry)
    >"Michael Fesser" <[email protected]> wrote in message
    >news:[email protected]...
    >> .oO(Thierry)
    >>
    >>>Following Micha's advice will make your document
    validate, but... this
    >>>will
    >>>also add a HTTP request.
    >>
    >> Correct, but only in IE 6. And who really cares
    about that?
    >>
    >> Additionally many modern and sophisticaded layouts
    usually need some
    >> more workarounds for IE 6 than just a filter here
    and an alpha loader
    >> there. It makes sense to use a separate stylesheet
    for them, because
    >> IE-specific hacks in the main stylesheet may cause
    even more problems
    >> and also affect other browsers.
    >
    >I used to think that way [1], but I changed my mind...
    >imho:
    >- keeping rules together facilitate maintenance.
    Sure, but some rules are only required for IE. They don't
    make sense for
    all other browsers and would just clutter up the real CSS,
    particularly
    if you have to use hacks to apply them to IE only.
    >- using CCs for IE may create extra HTTP requests for
    that browser only, but
    >it adds extra markup for *all* browsers.
    Indeed. But how much does it take on each page usually? 50
    bytes? 100?
    A real example from my own sites with CCs for both IE 6 (CSS
    and JS) and
    IE 7 (only CSS) is exactly 363 bytes - peanuts.
    I also use a lot of 'link' elements for example (next page,
    previous,
    home, search, etc.) All users have to download them, even
    though most
    won't recognize them, because only very few browsers support
    these meta
    navigation links natively. But for those whose browsers
    interpret them,
    they're a useful addition. And the rest has to download 1KB
    more -
    doesn't matter.
    >- you say who cares about IE6
    Hmm, it was not properly worded ... what I meant was more
    like this: I
    _do_ care about IE 6 (I have to, like most of us), but I
    don't really
    care if it has to download one or even ten additional files.
    In fact on my sites there are some more files for IE 6 only:
    a CSS, a
    JS, a behaviour file for fixing its PNG issue and maybe some
    JPEGs as
    replacements where the PNG fix doesn't work. So there are at
    least 4
    additional files for IE 6 only, but since they're necessary I
    don't
    worry about these additional HTTP requests.
    >but when IE6 is gone for good, you end up
    >with unecessary comments in all your documents rather
    than useless CSS
    >filters in a (few) styles sheets
    When IE 6 is dead, it's no problem to remove this single line
    from my
    page templates. One little change on each site - won't take
    long.
    And as said, usually there's a bit more than just filters. An
    example:
    http://static.andreas-pauli.de/css/ie6.css
    There's not even a PNG fix in this case. All these rules are
    related to
    IE's float problems, to give some elements "layout" or to
    overcome other
    little ugly glitches. Having all these in the main CSS would
    make things
    much more complicated and almost impossible to remove when IE
    6 becomes
    obsolete one day.
    >- afaik, wellknown IE specific hacks as such as the
    *property or _property
    >hack are totally safe to use (as long as they are always
    followed by a ";")
    This is my main problem. No hack is totally safe. If I have
    the choice
    between a rather ugly, but documented behaviour and a hack, I
    definitely
    prefer the first one. Even though the common IE hacks are
    well-tested
    these days and I don't expect real side effects, there's
    always a kind
    of a negative connotation. I simply don't like them.
    Additionally there's the problem that in my case IE 7
    requires some
    fixes as well, and then things would become really
    complicated if you
    only want to use hacks. CCs are ugly and pollute the markup a
    bit, but
    at least they are a reliable way to give each IE the medicine
    it needs.
    Personally I consider them the only useful & working
    feature in IE. ;-)
    >fwiw, I'm a strong advocate for markup validation
    Me too.
    >but I don't care when CSS
    >files fail validation (actually I don't expect them to
    validate).
    Well, I prefer valid CSS too, but don't care too much about
    warnings.
    For example I usually get tons of warnings when I declare a
    foreground
    color without a background or the other way round. But this
    is by
    intention, and since I know what I'm doing (at least in most
    cases), I
    think I can safely ignore these warnings. But I don't like
    errors. And
    as said - my main problem are the hacks, which I try to
    avoid.
    So there's not only technical issues in these cases, but also
    a lot of
    personal preferences I think. For me CCs are the cleaner way
    and much
    easier to handle. YMMV, of course.
    Micha

  • ADF:Popup contentDelivery=immediate vs popupFetchListener

    Hello everybody
    I am having a problem using a popup which can be explained as followed:
    When I use contentDelivery=immediate the popupFetchListener is not triggered
    When I use contentDelivery=lazy the popupFetchListener is trigger.
    Due to the advantage of showing the content when the popup opens, and so displaying the information that I need I have to use contentDelivery=immediate, but I also want to use a popupFetchListener.
    Can anybody tell me where is the problem and what can I do to bypass it?
    Thank you
    Angel

    Angel,
    There is no problem - the [url http://download.oracle.com/docs/cd/E17904_01/apirefs.1111/e12419/tagdoc/af_popup.html]documentation will tell you that what you describe is the documented behaviour:
    The PopupFetchEvent is one of two server-side popup events but doesn't have a corresponding client event. The popup fetch event is invoked during content delivery. This means that the event will only queue for popups that have a contentDelivery type of lazy or lazyUncached. Another caveat is that the event will only work when the launch id is set. This is automatically handled by the af:showPopupBehavior but must be provided as a popup hint if programmatically shown.Since the PopupFetchEvent is specifically defined as an event that is fired during content delivery, it's not going to fire if there is no deferred content delivery.
    John

  • Triggers not retrieving expected data

    Hi,
    Need some help with triggers here.
    In Table A, for example, it has columns Col1(Varchar2), Col2(Date).
    And there are these triggers on table A:
    1. trigger 1: insert or update, before each row
    - to set :NEW.COL2 := SYSDATE
    2. trigger 2: update on col1, before each row
    - insert into table B with one of the values :NEW.COL2
    3. trigger 3: update on col1, before each row
    - insert into table C with one of the values :NEW.COL2
    This is the behaviour I see for table A in my system:
    Col1 Col2
    data1 14/3 12:00 => Record inserted
    data2 17/3 14:00 => Record get updated to data2
    trigger 1, updates the date from 14/3 to 17/3.
    trigger 2, the value of :NEW.COL2 is 17/3.
    trigger 3, the value of :NEW.COL2 is still 14/3.
    Can someone help to explain why this is happening? Or is there any workaround? In the trigger 3 i need to see the new value 17/3. I cannot amend trigger 1 or 2 either.
    Thanks in advance!

    Note that the order of execution or more than one trigger of same type on the same table is not guranteed.
    Same type triggers on the table will execute in some order that cannot be specified. What you are seeing is the expected and documented behaviour.
    You would need to consolidate these different triggers of same type into one to avoid any such issues.

  • Database Link Password Security

    When using sqldeveloper it is possible to view passwords associated with database links. This is not possible to view when querying db_links or using Toad. How to view database link passwords do the following.
    connections>your-connection>database links> click on a defined db_link > view the "sql tab" to see the source that creates the db_link
    The database user can only view the database links that user owns. This is an issue if a production database is cloned to a test/dev instance and the db_links are not dropped or changed.
    Listed below is an example of a user named 'APPS' and a db_link that user owns.
    REM APPS APPS_TO_APPS.SOMEWHERE.COM
    CREATE DATABASE LINK "APPS_TO_APPS.SOMEWHERE.COM"
    CONNECT TO "APPS" IDENTIFIED BY "SOMEPASSWORD"
    USING 'SOMEDATABASE';
    ------------

    While it is a security hole, it doesn't mean it is a bug. It is documented behaviour that existed in prior versions. It also goes down to the data files, so it isn't a matter of just patching the server software but changing (upgrading) the database (and in such a way that an unpatched set of software -maybe- couldn't work with a patched database).
    This change is definately in the realms of UPGRADE rather than PATCH. While it probably could have been done as part of a dot release (eg 9.2.0.7 to 9.2.0.8) I think 9.2.0.8 is the terminal release for 9iR2 so if you want this, you're going to have to go a full version upgrade.

  • Dependencies on view (how to get it invalid )

    hi guys,
    was reading the concept guide and came upon this
    its on page 157 chapter 6-5
    under
    <Data Warehousing Considerations>
    <i>
    Some data warehouses drop indexes on tables at night to facilitate faster loads.
    However, all views dependent on the table whose index is dropped get invalidated.
    This means that subsequently running any package that reference these dropped
    views will invalidate the package.
    Remember that whenever you create a table, index, and view, and then drop the index,
    all objects dependent on that table are invalidated, including views, packages, package
    bodies, functions, and procedures. This protects updatable join views. </i>
    done a test but doesnt seems to be what is describe above.
    SCOTT@orcl> create index testidx on dept(dname);
    Index created.
    SCOTT@orcl> create view testview as SELECT * FROM DEPT;
    View created.
    SCOTT@orcl> DROP INDEX testidx;
    Index dropped.
    SCOTT@orcl> select status from useR_objects where object_name = 'TESTVIEW';
    STATUS
    VALID
    Well it did not get invalid
    q1) did i miss up anything
    q2) what is updatable join views. ?
    Please advice
    Regards,
    Noob
    Edited by: OracleWannabe on Jun 24, 2009 10:50 AM

    A simple test case with 10.2.0.1 cannot reproduce the documented behaviour:
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    CORE     10.2.0.1.0     Production
    TNS for Linux: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    SQL> drop table t;
    Table supprimee.
    SQL> drop view v;
    Vue supprimee.
    SQL> whenever sqlerror exit failure;
    SQL> create table t as select * from all_objects;
    Table creee.
    SQL> create index i on t(object_name);
    Index cree.
    SQL> create view v as select * from t;
    Vue creee.
    SQL> exec dbms_stats.gather_table_stats(ownname => user, tabname  => 'T', cascade => true);
    Procedure PL/SQL terminee avec succes.
    SQL> select count(*) from v where object_name = 'T';
      COUNT(*)
          6
    SQL> explain plan for select count(*) from v where object_name = 'T';
    Explicite.
    SQL> select * from table(dbms_xplan.display);
    PLAN_TABLE_OUTPUT
    Plan hash value: 2079104444
    | Id  | Operation       | Name | Rows  | Bytes | Cost (%CPU)| Time      |
    |   0 | SELECT STATEMENT  |      |     1 |    25 |     1   (0)| 00:00:01 |
    |   1 |  SORT AGGREGATE   |      |     1 |    25 |           |       |
    |*  2 |   INDEX RANGE SCAN| I      |     2 |    50 |     1   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
    PLAN_TABLE_OUTPUT
       2 - access("OBJECT_NAME"='T')
    14 ligne(s) selectionnee(s).
    SQL> select status from user_objects where object_name = 'V';
    STATUS
    VALID
    SQL> drop index i;
    Index supprime.
    SQL> select status from user_objects where object_name = 'V';
    STATUS
    VALID

  • Continiously log switching, one node unavailable

    We run 4-node RAC 9.2.0.4 on Solaris 9. Recently, one of nodes crashed due to hardware failure. After some time since this crash, i executed the command forcing log switching within the cluster: 'Alter system archive log current'. After this command, our redo logs started switching continuously - every 5-6 seconds. Generated archived logs where almost empty - they contained only a few blocks, often only one - header, i suppose. The problem was resolved only after the thread of the died node was disabled with command 'Alter database disable thread 4;'.
    I made a few experiments to investigate this problem. It seems that every command forcing redo log switch in a RAC leads to such excessive log switching, when one of nodes in cluster is unavailable. I tested 'Alter system archive log current', ARCHIVE_LAG_TARGET parameter, and the command 'Alter system switch logfile', executing from an Oracle job. In all these cases redo logs began switching continuously when the commands had beed executed or it was time to switch logs by ARCHIVE_LAG_TARGET parameter. Is there any possibility to force redo logs switch in all threads in a cluster without any problems, when one node is unavailable? We would like to switch logs every 10 minutes - to limit the amount of data that can be lost in case of whole cluster failure...
    Thanks in advance
    Alexey Sergeyev
    [email protected]

    Joel, thank you for replay. I tested forcing log switch with one node down on different ways - within a job or without one. The command 'Alter system archive log current' was executed without any job from SQL*Plus command line. This triggered continuously log switching on working nodes. The parameter ARCHIVE_LAG_TARGET does'nt produce any job - at least this job is'nt shown in DBA_JOBS. This parameter leads to continuously log switching on survived nodes, when one node goes down.
    I tried make a job, one per instance, with 'Execute immediate ''Alter system switch logfile''' command inside. Executing of such a job also triggered continuously log switching on working nodes...
    It seems that forcing log switching in a cluster works only when all is fine - all nodes are running. Is it Oracle bug? Or is it expected, but not documented behaviour?
    Alexey Sergeyev
    [email protected]

  • Item Region: 'Group/Sort by' issues

    I've got some serious issues organizing and sorting items on a page.
    If I select 'Group by Item Type' and 'display the Group by banner', items are grouped by Simple File, Simple Text, Simple URL.
    I am unable to change this sorting order and unable to change which itemstype should be displayed in the 'group by' banner ?!?
    I have hidden these 'Simple' itemtypes, but they are still displayed. I changed order of Item Types in the Pagegroup configuration but the sorting order does not change.
    Is this documented behaviour or a bug?
    Furthermore, I cannot sort Items by date from most recent to olders. ('Group by Date' orders from oldest to most recent. 'Sort by' has no option for 'Date') How can I workaround and sort items from most recent to oldest???
    NOTE: Pages are based on templates. Portal version 9.0.4.99

    hi paul,
    one workaround to sort items by date is to use an auto-query search portlet to render the items on your page. to do that you have to add a custom search portlet and configure it to be an auto-query portlet. in the results display tab you can specify the order by option. for the end-user the auto-query portlet looks exactly the same as if he was viewing an item region.
    regards,
    christian

  • Problm with 'Connect By Level'

    If I issue a query like :
    select level x from dual connect by level < 30;
    Then I only get a maximum of ten rows back.
    If I wrap the query like this:
    select * from (select level x from dual connect by level < 30);
    Then I get the full rowset back.
    Version Details:
    select * from v$version;
    Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
    PL/SQL Release 9.2.0.4.0 - Production
    CORE     9.2.0.3.0     Production
    TNS for Linux: Version 9.2.0.4.0 - Production
    NLSRTL Version 9.2.0.4.0 - Production
    Sql Developer Version 1.0.0.15.27
    Build MAIN-15.27

    This got raised on AskTom sometime,
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:40476301944675
    The behaviour changed depending on the client, and there was a lot of debate where the fault lay (SQL*Plus, OCI, DB server)
    Don't know whether it ever got resolved in a patchset.
    Maybe Note 185438.1 is relevant (don't have metalink access so can't check).
    "The first statement only works correctly in 10g. "
    There's nothing in the documentation supporting this construct, and the documentation indicates that any hierachial query (ie one with a CONNECT BY) should have a PRIOR operator.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/queries003.htm#i2053935
    As such, I'd argue that the 'correct' (or at least documented) behaviour would be an error.
    Message was edited by:
    g.myers

  • Rendering More than what in the Time line

    i just sent a seq to color and turned broadcast safe off before i did the corrections. This SEQ was sent via the send to color option.
    i only did i primary cc on the clip. Now i hit render and it seems to be rendering more than whats in the Color TL. In fact, i would say that it is rendering from shot marker to shot marker.
    SHOT MARK = when i first capture clip into fcp the first thing i do is mark all of the clip to know where certain action is. Some time i set the in/outs and pull the shots to a bin for latter use.

    As Zeb is referring to, Hmmm... this is the first time (today) that I have seen a query about this extremely well known and exhaustively documented behaviour.
    There are about a half a dozen of these, that catch out users of the product in its current form who make a dangerous set of assumptions about how media is treated between the editing software and the grading application. COLOR is not the only offender in this category, though -- there are serious problems associated with speed-remapped clips in many external VFX packages.
    Among AVID users, time remaps are one of the biggest complaints about the Final Cut workflow, notwithstanding FC's "goldfish memory" when it comes to media paths and file names.
    jPo

Maybe you are looking for

  • Why is Windows 8.1 causing my Verizon Mobile Broadband USB Pantech modem to auto connect/

    Why is Windows 8.1 causing my Verizon Mobile Broadband USB Pantech modem to auto connect? If I turn it off in Windows Settings I can not get service. As I am on a 5 GB plan I do not want my internet running at all times nor do I want o have to discon

  • Bonded Warehouse- concept

    Hi all, In so many forums, i had read about Bonded Warehouse. Can anyone tell me, what is the concept of bonded warehouse. thanx and regards, Sheo Anand Singh

  • Why won't my HP Touch Smart 310 X64 Windows 7 Desk Top- Security Update Problem

    I am trying to run update from 6/14/2011 for my 64 bit Windows 7, update says "Security Update For NETFramwork 3.5.1 on Windows 7 and Windows Server 2008 R2 SP1 for x64-based Systems (KB2518869) and I also keep getting this following error after I tr

  • Why won't my premiere pro cs3 launch?

    I had a project timeline open and was rendering when my hard drive told me that I was low on disc space. I wasn't able to render all of it but I did save the project file before it shut down on me. Since then I have made more space on the drive but t

  • Viewing both RAW and JPEG files in iPhoto

    If I use the new Apple SD card reader to download image files from my camera, it is my understanding that by default it brings over both the RAW and JPEG versions of the same images to the iPad Mini (since my camera is taking both types with each ima