Set logging to NO for all index in primary DB

Hi,
can i set the logging option to NO for all index in primary DB (versus standby DB).
Because the execute plan of queries changes with this option and the time it's very long for geats tables if the option logging it's YES.
Regards.

Hi,
personally I have never seen that execution plan changes if objects in nologging mode. Could you show sql statements that have changed execution plans due to nologging clause.
Thanks,
Andrey

Similar Messages

  • Gather_table_stats with a method opt of "for all indexed columns size 0"

    I have 9 databases I support that contain the same structure, and very similar data concentrations. We are seeing inconsistent performance in the different databases due to bind variable peeking.. I have tracked it down to the Min and Max values that are gathered during the analyze. I analyze from one cluster, and export/import those statistics into the other clusters.. I then go about locking down the stats gathered. Some of the statistics are on tables that contain transient data (the older data is purged, and new data gets a new PK sequence number).
    Since I am gathering statistics with a 'FOR ALL INDEXED COLUMNS SIZE 1', a min and max value are grabbed. This value is only appropriate for a short period of time, and only for a specific database. I do want oracle to know the density to help calculate, but I don't want cardinality based on whether the current bind values fall in this range..
    Example
    COLUMN PK
    When I analyze the min is 1 and max is 5. I then let the database run, and the new min is 100 and max is 105.. same number of rows, but different min/max. At first a select * from table where pk>=1 and pk <=5 would return a cardinality of 5.. Later, a seelct * from tables where pk>=100 and pk<=105 would return a cardinaility 1.
    Any ideas how to avoid this other than trying set min and max to something myself (like min =1 max = 99999999). ??

    MarkDPowell wrote:
    The Oracle documentation on bind variable peeking said it did not peek without histograms and I cannot remember ever seeing on 9.2 where the trace showed otherwise. Mark,
    see this simple test case run on 9.2.0.8. No histograms, but bind variable peeking, as you can see that the EXPLAIN PLAN output generated by AUTOTRACE differs from the estimated cardinality of the actual plan used at runtime.
    Which documentation do you refer to?
    SQL>
    SQL> alter session set nls_language = 'AMERICAN';
    Session altered.
    SQL>
    SQL> drop table bind_peek_test;
    Table dropped.
    SQL>
    SQL> create table bind_peek_test
      2  as
      3  select
      4             100 as n1
      5           , cast(dbms_random.string('a', 20) as varchar2(20)) as filler
      6  from
      7             dual
      8  connect by
      9             level <= 1000;
    Table created.
    SQL>
    SQL> exec dbms_stats.gather_table_stats(null, 'bind_peek_test', method_opt=>'FOR ALL COLUMNS SIZE 1')
    PL/SQL procedure successfully completed.
    SQL>
    SQL> variable n number
    SQL>
    SQL> variable n2 number
    SQL>
    SQL> alter system flush shared_pool;
    System altered.
    SQL>
    SQL> exec :n := 1; :n2 := 50;
    PL/SQL procedure successfully completed.
    SQL>
    SQL> set autotrace traceonly
    SQL>
    SQL> select * from bind_peek_test where n1 >= :n and n1 <= :n2;
    no rows selected
    Execution Plan
       0      SELECT STATEMENT Optimizer=CHOOSE (Cost=2 Card=1000 Bytes=24
              000)
       1    0   FILTER
       2    1     TABLE ACCESS (FULL) OF 'BIND_PEEK_TEST' (Cost=2 Card=100
              0 Bytes=24000)
    Statistics
            236  recursive calls
              0  db block gets
             35  consistent gets
              0  physical reads
              0  redo size
            299  bytes sent via SQL*Net to client
            372  bytes received via SQL*Net from client
              1  SQL*Net roundtrips to/from client
              4  sorts (memory)
              0  sorts (disk)
              0  rows processed
    SQL>
    SQL> set autotrace off
    SQL>
    SQL> select
      2             cardinality
      3  from
      4             v$sql_plan
      5  where
      6             cardinality is not null
      7  and      hash_value in (
      8    select
      9            hash_value
    10    from
    11            v$sql
    12    where
    13            sql_text like 'select * from bind_peek_test%'
    14    );
    CARDINALITY
              1
    SQL>
    SQL> alter system flush shared_pool;
    System altered.
    SQL>
    SQL> exec :n := 100; :n2 := 100;
    PL/SQL procedure successfully completed.
    SQL>
    SQL> set autotrace traceonly
    SQL>
    SQL> select * from bind_peek_test where n1 >= :n and n1 <= :n2;
    1000 rows selected.
    Execution Plan
       0      SELECT STATEMENT Optimizer=CHOOSE (Cost=2 Card=1000 Bytes=24
              000)
       1    0   FILTER
       2    1     TABLE ACCESS (FULL) OF 'BIND_PEEK_TEST' (Cost=2 Card=100
              0 Bytes=24000)
    Statistics
            236  recursive calls
              0  db block gets
            102  consistent gets
              0  physical reads
              0  redo size
          34435  bytes sent via SQL*Net to client
           1109  bytes received via SQL*Net from client
             68  SQL*Net roundtrips to/from client
              4  sorts (memory)
              0  sorts (disk)
           1000  rows processed
    SQL>
    SQL> set autotrace off
    SQL>
    SQL> select
      2             cardinality
      3  from
      4             v$sql_plan
      5  where
      6             cardinality is not null
      7  and      hash_value = (
      8    select
      9            hash_value
    10    from
    11            v$sql
    12    where
    13            sql_text like 'select * from bind_peek_test%'
    14    );
    CARDINALITY
           1000
    SQL>
    SQL> spool offRegards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

  • Excel 2010: I get the error message "This file can't be previewed because of an error in the Microsoft Excel previewer." even though Advanced Properties is set to Save Thumbnails for all Excel Documents.

    Excel 2010: I get the error message "This file can't be previewed because of an error in the Microsoft Excel previewer." even though Advanced Properties is set to Save Thumbnails for all Excel Documents and I've run Repair on Microsoft Office.
     I don't know what else to try.
    Any help would be appreciated. Thanks.

    A hotfix request has already been submitted for this issue and we have also documented it here
    http://support.microsoft.com/kb/983097
    Thanks.
    Tony Chen
    TechNet Community Support

  • Is there a way to allow setting of "Due Date for All Tasks" to current date in OOB Workflow

    Is there a way to allow setting of "Due Date for All Tasks" to current date in OOB Workflow
    I need to set it today because there are tasks that is needed to be completed on the same day.
    Is there a way without modifying the page/form. like a configuration or something?
    ----------------------- Sharepoint Newbie

    Hi ,
    As Ajeet said,  for implement your requirement, you can change the data validation on the Due data field.
    You can do as the following :
    Open the site with SharePoint Designer 2010
    Click on Workflows on the left launch, then find ‘Approval-SharePoint 2010’, click on it
    On the Forms section, click ‘ReviewApproval_***.xsn’
    Then you can find Due Data for All Tasks, and change the validation
    In addition, if you create an approval workflow with SharePoint Designer, you can use a specific date, it contains hour and minute.
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Set a default layout for all users via DIAPI

    Hello everyone,
    I am attempting to set a default report for all users/business partners using the DI-API. 
    I can accomplish this in the B1 application via Tools> Layout Designer...>Set as Default
    If there are entries in the RDFL table for this layout, I am prompted to delete these entries and set this layout as the default for all users/BP's
    Based on the SDK Documentation, the following code should accomplish the same thing via the DI-API
    (stripped down for clarity)
    Dim oDefaultReportParams As DefaultReportParams
    oDefaultReportParams = oLayoutService.GetDataInterface(ReportLayoutsServiceDataInterfaces.rlsdiDefaultReportParams)
    oDefaultReportParams.LayoutCode = sMyLayoutCode
    oDefaultReportParams.ReportCode = sMyReportCode
    Me.oLayoutService.SetDefaultReport(oDefaultReportParams)
    Code executes fine, but it doesn't have the expected impact on settings.  The above code adds an entry to the RDFL table rather than changing the DfltReport field in the RTYP table like I expected, so instead of setting the default report globally for all bps/users, its adding an entry to the RDFL table to set the value for a specific user/bp
    I experimented by including and setting the following properties to every combination I could think of with the same results
            oDefaultReportParams.UserID = 'tried 1, 0, -1
            oDefaultReportParams.CardCode = 'tried "", "0", "-1"
    Am I misunderstanding the API, or using the wrong objects/calls...? If all else fails I could accomplish this via the UI-API instead, but the application was intended to be a stand alone app that didn't rely on SAP B1 application running, so any help or suggestions would be much appreciated.
    Thanks!

    Hi,
    Please repost at SDK forum to get quick response. Close this thread here with helpful answer.
    Thanks.

  • Allow only one set of parameter values for all worksheets

    I would like to " Allow only one set of parameter values for all worksheets ", but prompt before executing the worksheet. This function is a great time saver, but the users on occasion would like to change at the least one of the parameters. Is this possible? What setting do I use? I've tried various combinations of the " After opening a workbook: " on the options page. " Run query automatically", " Don't run query (leave sheet empty) ", and " Ask for comformation ". I would have thought that "Ask for comformation " was the trick, but no. I'm considering putting a do nothing parameter that has the setting of " Allow different parameter values for each worksheet. " so that it will keep all the others, default this one, but prompt for a possible change.
    Any thoughts...
    Thanks,
    Jamie

    Hi Jamie
    Even though you have the same parameter for all worksheets a user can still choose what to use on a worksheet. Its just that if they click to another worksheet then that parameter will be applied.
    Which version of Discoverer are you using?
    Best wishes
    Michael

  • What value for DBMS_STATS method_opt= 'for all indexed columns ???'

    What value, one should use for method_opt , while collecting stats for database/schema/table.
    It is obseverd AUTO never give good result, in some case "for all indexed columns 1" work fine and some case "for all indexed columns 254".
    Please advise , what is right way to collect stats.
    OS : Linux AS 4
    DB : 9.2.0.8 , 10.2.0.3
    Thanks

    Gather AUTO. Gathers all necessary statistics automatically. Oracle implicitly determines which objects need new statistics, and determines how to gather those statistics. When GATHER AUTO is specified, the only additional valid parameters are stattab, statid, objlist and statown; all other parameter settings are ignored. Returns a list of processed objects.
    If you specify the for all indexed columns, or specify the column, it will gather histograms. Those are useful if you have an uneven data distribution, and are specially useful for DSS databases, where Oracle will determine if a column is suitable, on a given data rage, to perform full table scan or index scan. If uncertain about it I suggest you not to gather column statistics, as they are costly.
    ~ Madrid.

  • CMDLET commands regarding setting a default font for all users using OWA on an exchange 2010 platform

    HI,
    We are running Exchange 2010 and are migrating users from 2003 to 2010 with no problems.  The client has asked me to set OWA font to LuidaSans which I can do for individuals with no problems.  However, when I try and run the following command
    Get-Mailbox -Resultsize Unlimited | Set-MailboxMessageConfiguration -LucidaSans but then got a message to state
    "property composefontname can't be set on this object becuase it requires the object to have version 0.1 <8.0.535.0> or later.  The object's currant version is 0.0 <6.5.6500.0>"
    What object is this reffered to?  Can anyone help please?
    Thanks
    Paul

    Hi,
    To set a default font for all users, you can use this command: -
    Get-Mailbox | Set-MailboxMessageConfiguration -DefaultFontName "Trebuchet"
    You can use any font style in place of “Trebuchet”.
    I hope this information will be helpful for you.
    Thanks and regards
    Ashish@S 
    Ashish@V

  • How to set the default settings for all users in 11.1.1.3

    I have couple of questions
    1. How can I change the default setting for all the users so that whenever they log in the planning takes them to the Task lists mode. Or is this a one time thing which they need to do individually ?
    2. How can I set the defalut setting for all the users so that they can see the same page when they log into Workspace ?

    For workspace have a read of - http://docs.oracle.com/cd/E12825_01/epm.111/bpmui_admin/assigning_default_preferences.html
    For planning you can't really set it without hacking tables.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Setting default printing presets for all users, esp. guest user

    i want to set black/white, two sided printing as the default for all users (9 macs, 30 users on each).
    i set up and save this preset as admin, and copy the files
    com.apple.print.custompresets.plist
    com.apple.print.custompresets.forprinter.nameofprinter.plist
    from admin home/library/preferences to the other users preferences-folders.
    but logging on to any of the other users, i still dont even get the new preset listed.
    i tried entering cups, but there, only the printer setup is editable.
    especially i would like to set the custom preset as default for the guest account, without being wiped every log off.
    is there any alternative way to do this? i dont want to manually log in to the 300 accounts to change this.

    You can do that for new users via a file user.js in the default template folder for new profiles.
    C:\Program Files\Mozilla Firefox\defaults\profile\
    *http://kb.mozillazine.org/user.js_file

  • How could I set a fixed window for all resulution?

    because I design the website in MAC when I transfer to PC it
    change shape
    how could I set a fixed size window for all resulution?

    Using layers for page layout is just asking for trouble.
    Trouble with
    centering content, and trouble with expanding text.
    Use tables until you can manage a proper CSS layout scheme,
    i.e., NOT
    layers. Start here -
    http://www.projectseven.com/tutorials/css/qdmacfly/index.htm
    http://www.macromedia.com/devnet/mx/dreamweaver/css.html
    http://www.macromedia.com/devnet/dreamweaver/articles/tableless_layout_dw8.html
    http://www.macromedia.com/devnet/dreamweaver/articles/css_concepts.html
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Media Fusion" <[email protected]> wrote in
    message
    news:[email protected]...
    > What would you suggest then, and why not layers? I am
    just going off of
    > what I
    > know and I am completly open for correction or cretique
    on process,
    > thought
    > process etc...
    >
    >
    quote:
    Originally posted by:
    Newsgroup User
    > Ugh.
    >
    > Layers? Surely you jest?
    >
    > --
    > Murray --- ICQ 71997575
    > Adobe Community Expert
    > (If you *MUST* email me, don't LAUGH when you do so!)
    > ==================
    >
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    > ==================
    >
    >
    > "Media Fusion" <[email protected]>
    wrote in message
    > news:[email protected]...
    > > yes excatly, nothing should change when you bring
    the files from mac to
    > > pc, the
    > > only thing that may be a slight issue is how you
    coded the fonts for
    > > text.
    > > As
    > > long as you set it up with pretty universal fonts
    not much should
    > > change.
    > > I go
    > > cross platform all the time, code is code. If you
    want to really contain
    > > the
    > > positiong and location of your site design look in
    to using layers in
    > > combination with tables. That fixed my problem with
    how different
    > > browsers
    > >
    >
    >
    >
    >
    >
    >

  • Setting automatic update settings for all users

    Hello all,
    I'm trying to roll out Quicktime 7.6 to our corporate desktops with the automatic update feature within Quicktime disabled. In past installs we were able to make the setting change and then copy the quicktime.qtp file to the "C:\Documents and Settings\All Users\Application Data\Apple Computer\quicktime" directory on all the computers and all would be good. However with 7.6 is appears this file is now housed under the individual user's profile. Is there a way to make this a global setting for all users logging in to a pc?
    Thanks in advance!
    KC

    We have a similar problem in a High School, using Windows XP Pro, QT 7.x and Active Directory. While going to a Spanish Exam web page that uses QT, the students get locked into an auto update process. As restricted users, they can neither abort or accept the update, and are unable to complete the exam. We have found that unchecking the preference for auto update as an admin user does not uncheck it for anyone else. Under C:\Documents and Settings, there is no folder for Apple Software except for myself, once I have opened the QT preferences. I assume that Apple has hidden the location of the default preference to force updating, without regard to how that would work in a locked-down environment. It sure creates havoc when 30 students sit down for a timed and graded online exam!! Any answers out there?

  • How to set a common page for all users after loging on?

    hi all,
    Now "My Dashboard" is the default page after logon.
    i want to set a default home page for all users. users can see the home page after loging on.
    how to change the default dashboard from "My Dashboard" to "Home page" for all users?
    thanks,
    dan

    Hi,
    Steps:
    Tried to set default dashboard for all the users.
    1. Created a session init block
    2. Used data source as select '/shared/SH Test/_portal/Test1' from dual
    3. Assigned this value to PORTALPATH session variable
    4. In Presentation services > Administration > My account > Default dashboard should be set to 'default'. Then only the dashboard specified in init block will be displayed otherwise My account will override the init block.
    5. Save the changes made to rpd.
    5. Logout and relogin to see if it is working fine. it is working perfectly fine.
    For details please refer the GSC replication document. But it is for all the users.
    if customer would like to have user/group based home page.
    1. They may need to have 2 separate tables.
    i. Group_path_tab with 2 columns. Group_id, portal_path
    Have group wise portal path for all the groups
    ii. User-group map table
    Group_id, Group_name, user_id
    User should be part of some group.
    2. Then in the init block write the sql should be something like this
    select A.portal_path from Group_path_tab A, User_group_map B
    where B.user_id = :USER
    and B.Group_id = A.Group_id
    SO based on USER session variable, it will try to identify the group and then the portal_path.
    Finally assign this value to PORTALPATH session variable.
    ref:
    http://total-bi.com/2011/01/obiee-11g-change-default-dashboard/
    Thanks!

  • How do I set a Finder background for all users?

    I want to set a background in Finder for a folder hosted on a server, and I want all users who connect to that folder to see the background (and, necessarily, force them into Icon view for that folder). Is there a way to do this? Server is running 10.5.8, clients are running a mix from 10.6.7 to 10.7.1.

    But I dont know how to set a default website name that appears at the top of EVERY page.  Can you help?
    You cannot set a default name for your webpage.
    Each page is unique.
    But you can make a default page and duplicate it.

  • How can I set default toolbar layout for all users in my system?

    Hi everybody! I am running a local ubuntu server at my office. I can set some defaults preferences (about:config) for all new users in the system by defining those prefs in the /etc/firefox/syspref.js.
    Now, I want to define default toolbar layout in a similar way (maybe not needed but fun), to copy the toolbar layout for my user. Is there a general way to do that?
    thank you in advance!

    You can try to create a default template folder (defaults/profile) in the Firefox and place the file(s) in that folder for newly created profile.
    The only way to customize an existing profile is to copy files directly to it.

Maybe you are looking for