How to exclude a table when doing dbcc checkdb

when running dbcc checkdb(mydb). it will go through all tables. Is it possible to exclude a table from dbcc checkdb?

Thanks, Mark. When I run dbcc checkdb(mydb), it across a table and take over 18 hours and still waiting.
the message is:
Checking mytable: Logical pagesize is 2048 bytes
The total number of data pages in this table is 1365692.
The total number of pages which could be garbage collected to free up some space is 2923.
then I stop it manually.
Possibly something wrong with the table. When I run dbcc checktable on this table, it' also keep me waiting and never end. then I can't finish dbcc checkdb because of this table. the size of this table is about 3G. How to resolve this problem?

Similar Messages

  • How to Exclude a directory when doing the JAR

    Suppose I have directory x, x/y, ....
    I want to jar only x and not the subdirectory y.
    By default it will be jar all the subdirectories, how
    to over-ride that or exclude some of the sub-directories.

    You can use the -C option to temporarily change directories, but otherwise there is no option for exclusion. You could use a utility like WinZip to prune excess files/directories if need be.
    -Ron

  • How to add multiple table when creating add on using b1de

    Hi all,
    Plz help me
    How to add multiple table when creating add on using b1de.
    Thanks

    Hi dns_sap,
    Can you explain a little better what you are trying to accomplish? Is it to create UserTables and UserFields in the database, when the addon runs the first time?
    If so, you can use the following code
    Add User Table
            Try
                Dim lRetCode As Long
                Dim oUDT As SAPbobsCOM.UserTablesMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserTables)
                oUDT.TableName = TableName
                oUDT.TableDescription = TableDescription
                oUDT.TableType = TableType
                lRetCode = oUDT.Add
                '// Check for error when adding the Table: if lRetCode = 0 the table was created; if lRetCode = -2035 the table already exisits
                If lRetCode <> 0 Then
                    oApplication.MessageBox("Error: " & lRetCode.ToString & ", " & oCompany.GetLastErrorDescription)
                End If
            Catch ex As Exception
                oApplication.MessageBox(oCompany.GetLastErrorDescription)
            Finally
                System.Runtime.InteropServices.Marshal.ReleaseComObject(oUDT)
                oUDT = Nothing
                lRetCode = Nothing
                GC.Collect()
            End Try
    Add User Field
    Try
                Dim lRetCode As Long
                Dim oUDF As SAPbobsCOM.UserFieldsMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields)
                oUDF.TableName = TableName
                oUDF.Name = FieldName
                oUDF.Description = FieldDescription
                oUDF.Type = FieldType
                lRetCode = oUDF.Add
                '// Check for error when adding the field: if lRetCode = 0 the field was created; if lRetCode = -2035, the field already exists
                If lRetCode <> 0 Then
                    oApplication.MessageBox("Error: " & oCompany.GetLastErrorCode & ", " & oCompany.GetLastErrorDescription)
                End If
            Catch ex As Exception
                oApplication.MessageBox(oCompany.GetLastErrorDescription)
            Finally
                System.Runtime.InteropServices.Marshal.ReleaseComObject(oUDF)
                oUDF = Nothing
                lRetCode = Nothing
                GC.Collect()
            End Try
    Regards,
    Vítor Vieira

  • How to hide system tables when using the Oracle SQL Developer?

    Hi,
    I would like to know how can I show only the tables that I created under the Tables tree? I didnt find a way to create a separate database using the Oracle Sql Developer. I see all the tables together, and would like to differentiate between different databases.
    Can anyone explain to me how to do these things?
    Thanks,

    Hi,
    I would like to know how can I show only the tables that I created under the Tables tree? Your posting is not clear,again tell something more on tables tree,what u want to achieve with it.
    How to hide system tables when using the Oracle SQL Developer? if u connected with sys, system or user with dba role then u have a privilege to see these tables,so revoke the privilege/role from ur user to view this tables if ur connected other then sys,system,
    I didnt find a way to create a separate database using the Oracle Sql Developer. DBCA is a tool for creating the new database.
    Kuljeet

  • How to lock a table when i insert a row

    hi, friends,
    how to lock a table when i insert a row, then unlock the table

    If you want to lock the whole table so that no-one else can do DML then you go LOCK TABLE <table> IN EXCLUSIVE MODE. This lock remains in force until you commit or rollback.
    There are less powerful locking modes available, but you can look those up in the OTN online documentation.
    APC

  • How to exclude some tables from schema level replicatio????

    Hi,
    I am working on oracle10g stream replication.
    My replication type is "Schema Based".
    So can anyone assist me to undersatnd, how to exclude some tables from schema based replication.
    Thanks,
    Faziarain

    You can use rules and include them in the rule set, lets say you dont want LCR to be queued for table_1 in schema SALES, write two rules one for DDL and another for DML with NOT logical condition.
    DBMS_RULE_ADM.CREATE_RULE(
    rule_name => 'admin.SALES_not_TALBE_1_dml', condition => ' (:dml.get_object_owner() = ''SALES'' AND NOT ' ||
    ' :dml.get_object_name() = ''REGIONS'') AND ' ||
    ' :dml.is_null_tag() = ''Y'' ');
    DBMS_RULE_ADM.CREATE_RULE(
    rule_name => 'admin.hr_not_regions_dlll',
    condition => ' (:dml.get_object_owner() = ''SALES'' AND NOT ' ||
    ' :ddl.get_object_name() = ''table_!'') AND ' ||
    ' :dsl.is_null_tag() = ''Y'' ');
    just go through this document once, http://download.oracle.com/docs/cd/B28359_01/server.111/b28321/strms_rules.htm#i1017376
    Edited by: user8710159 on Sep 16, 2009 5:21 PM

  • How to exclude some tables in inoort

    Hi all,
    how to exclude some tables . For example, I have Oracle
    export file which contains a hundred tables, but I want to import all the tables except one, i.e. its (some table name) . Can I achieve this goal?
    thanks in advance.

    Hello,
    It depends on your Oracle Release.
    Up to Oracle *9.2* you have just the classical export/import utility.
    So, you'll have to list the Tables you want to Import with the following parameter:
    TABLES=(
    <table_1>,
    <table_n>
    )Starting with *10.1* you have the Datapump (expdp / impdp). With this new utility you have the very useful parameter EXCLUDE. It works like that:
    EXCLUDE=TABLE:"='<table>'"Please find a link about this topic:
    http://www.oraclefaq.net/2007/03/09/expdp-datapump-excludeinclude-parameters/
    Hope this help.
    Best regards,
    Jean-Valentin

  • How to update the table when change list item in classic report

    hi ,
    i worked with apex 4.2 and i create normal classic report with one select list(named loved)Column ,now i want to update table when user change the list with new value ,i can't create dynamic action to do this,i create check box with primary key and loop for check item to update the table but i can't get the value of list item. and for more speed the user want to do this when change the list value.
    my question
    1- how to do this by javascript and get the value from list item and update the table with new value
    2- is i must use API to create list item so i can get the value of item in report or what.
    Thanks
    Ahmed

    I coded the following to give you direction:
    1. In the "Element Attributes" section of the DEPTNO column, I call a javascript function as:
    onchange = "javascript:updateTable(this);"2. I wrote a simple javascript function that shows an alert when the user changes the select list as:
    <script language="JavaScript" type="text/javascript">
    function updateTable(pThis)
        var vRow = pThis.id.substr(pThis.id.indexOf('_')+1);
        alert('Row# - '+ vRow + ' has the value - ' + pThis.value);
    </script>Now, you can call a AJAX on-demand process inside the javascript function to update the database value.

  • How to insert into table when ID auto increment?

    I have a table Employee with EmloyeeID, EmployeeName, Email...
    When i design table in database, i created a Sequence and then Trigger for EmployeeID to auto increment.
    Now in ADF, actually in my web form: I don't want enter values for EmployeeID to insert into table,
    but still error : required for EmployeeID...
    how can i do it? Thanks

    User,
    Always mention your JDev version every time you start a new thread.
    Check this out : Andrejus Baranovskis Blog: How To Implement Gapless Sequence in ADF BC
    -Arun

  • How to update a table when exception?

    The form contains only 1 block, a control block, which will trigger a oracle report when user save it.
    It will insert a record into a table. If report generate successfully, it will update the status to completed and vice versa.
    How can I do so? Because in the exception block, it will rollback the record inserted and cannot update the status anymore.
    {color:#000000}Begin
    INSERT ..........
    Some Processing......
    Call Report.......
    UPDATE the status .......
    Exception
    When OTHERS THEN
    UPDATE the status .......
    End{color}
    Thanks.

    If there is only a control block, forms will not do any commit, so you have to put a commit; at the end of your procedure, both in the main and in exception blocks.
    You can then suppress the 'No changes to commit' message.
    Best practice approach would be to have a stored procedure coded as autonomous transaction.

  • How to solve crash problem when doing "package" with Indesign CS 5.5?

    Hello everyone,
    I've been having trouble with Indesign CS 5.5 when I use the package tool.
    I work with indesign for a long time, create my document files, and when everything is done, finished, i go and do the Package.
    But at a certain point it crashes and the file becomes demaged... even the original one i've worked initially!!
    This happens everytime...
    Does anyone ever had this problem?
    Need your help guys?
    Thanks

    This is not normal behavior. I wonder what is different for you.
    If you deselect "Check Links Before Opening Document," you should not be prompted to "Do not Update Links." This suggest you have corrupt preferences. So try:
    Trash, Replace, Reset, or Restore the application Preferences: http://forums.adobe.com/thread/526990

  • How to exclude exisiting objects when combining ArrayLists?

    Hi there, I'm new to Java and im trying to find a way to combine 2 ArrayLists and exclude any objects that may already exist in the customer ArrayList. I have a program that loads/saves data from a text file into a class object and I want the function to load the data 1 time and check if it already exisits.
    I have tried using if(!customers.contains(obj)), but I think this only references the ArrayList Key and not the actual data.
    Below is a test class I have been using to debug. Any help would be great!!!
    public class test {
         public static void main(String[] args){
              ArrayList<Customer> temp  = new ArrayList<Customer>();
              ArrayList<Customer> customers  = new ArrayList<Customer>();
              Customer cs1 = new Customer(1,"sophie",'m',23,"asdasd");
              Customer cs2 = new Customer(1,"sophie",'m',23,"asdasd");
              Customer cs3 = new Customer(2,"asd",'m',23,"sdfghh");
              Customer cs4 = new Customer(3,"sdfff",'m',23,"hhhrrr");
              temp.add(cs1); temp.add(cs3); temp.add(cs4);
              customers.add(cs2);
              for(Customer c : temp){
                   if(!customers.contains(c))
                   customers.add(c);
              Collections.sort(customers, new CustomerComparator());
              System.out.println(customers);
              System.out.println(customers.contains(cs2));
    }Edited by: newToJavaPro on May 21, 2010 10:18 PM

    paulcw wrote:
    newToJavaPro wrote:
    Thanks for your reply I tried using a HashSet, which works for removing objects from the same origin, but it doesn't seem to remove the same data when added to the ArrayList from different objects. For example, id like to use cs1 to remove an instance of cs2 as they contain the same data but are assigned using different objects.No, that doesn't make any sense. More likely, you didn't properly override .equals() and hashcode(), so the set can't compare them properly. It seems to happen when they come "from different objects" because you're creating different instances of Customer each time, so the default implementations of .equals() and .hashcode() identify them as non-equivalent.Thanks, I I didn't realize HashSet and Equals compared object instance by default. Overridden methods and works a treat.

  • How to exclude deleted objects when merging CRs?

    Dear gurus,
    we are using se03 to merge several CRs into a big one, but the problem is
    the deleted objects are merged too, which cause alot of error message when trying to save .
    could you pls tell me how to solve this ?
    br
    zj

    Please be clear what do mean by deleted objects Also if you merge the CRs into one you can easliy remove the objects you donot want from respective CR.

  • How to exclude VIP email when sent to a specific email

    I would like to make a rule for a VIP contact who I communicate with personally and for work. I have all of her emails all mixed in my VIP box. I do have a work email address set up to check in mail. I would like to exclude emails sent to that address only, from showing up in the VIP folder. Is there a way to do that? I did not see anything in the message rules that looked like you could make a rule about the VIP folder.

    I am not aware of any such e-mail notification. You can configure a machine with one of the older JRE versions to receive a notification when a new JRE version is made available for download. Use the Java Control Panel for this.

  • How to audit the table when updated. The table has 100 Columns.

    Hi,
    I have a requirement to keep the log information of a table whenever there is an update happening on any of the columns available in a table, which has roughly 100 columns. I know we can use :NEW and :OLD specifier using trigger, but the no of columns are 100 + , here shall we fulfill the requirement. Kindly suggest if you have any better way to handle it.
    Regards
    Suresh

    You can use XMLTYPE for this. See an example below:
    First creating some test data:
    SQL> create table test_06302011
      2  (
      3    a1 number(10)
      4  , a2 number(10)
      5  , a3 number(10)
      6  , a4 number(10)
      7  , a5 number(10)
      8  , a6 number(10)
      9  )
    10  /
    Table created.
    SQL> insert into test_06302011
      2  values(1,1,1,1,1,1)
      3  /
    1 row created.
    SQL> insert into test_06302011
      2  values(2,2,2,2,2,2)
      3  /
    1 row created.
    SQL> insert into test_06302011
      2  values(3,3,3,3,3,3)
      3  /
    1 row created.
    SQL> insert into test_06302011
      2  values(4,4,4,4,4,4)
      3  /
    1 row created.
    SQL> insert into test_06302011
      2  values(5,5,5,5,5,5)
      3  /
    1 row created.
    SQL> insert into test_06302011
      2  values(6,6,6,6,6,6)
      3  /
    1 row created.
    SQL> commit
      2  /
    Commit complete.
    SQL> create table log_06302011
      2  (
      3    log_id     number(10) primary key
      4  , log_date   date
      5  , log_action varchar2(1)
      6  , log_old    xmltype
      7  , log_new    xmltype
      8  )
      9  /
    Table created.Then creating the logging trigger:
    SQL> CREATE OR REPLACE TRIGGER trigger_log_06302011
      2     AFTER UPDATE OR INSERT OR DELETE ON test_06302011
      3     FOR EACH ROW
      4  DECLARE
      5      vlog_event VARCHAR2(1);
      6      v_log_new  XMLTYPE;
      7      v_log_old  XMLTYPE;
      8  BEGIN
      9
    10    IF INSERTING THEN
    11        vlog_event := 'I';
    12        select XMLELEMENT("test_06302011",
    13                        XMLFOREST(
    14                            :new.a1 as "a1"
    15                          , :new.a2 as "a2"
    16                          , :new.a3 as "a3"
    17                          , :new.a4 as "a4"
    18                          , :new.a5 as "a5"
    19                          , :new.a6 as "a6")
    20                   )
    21           into v_log_new
    22           from dual;
    23
    24         v_log_old := NULL;
    25
    26    END IF;
    27
    28    IF UPDATING THEN
    29        vlog_event := 'U';
    30        select XMLELEMENT("test_06302011",
    31                        XMLFOREST(
    32                            :new.a1 as "a1"
    33                          , :new.a2 as "a2"
    34                          , :new.a3 as "a3"
    35                          , :new.a4 as "a4"
    36                          , :new.a5 as "a5"
    37                          , :new.a6 as "a6")
    38                   )
    39           into v_log_new
    40           from dual;
    41
    42         select XMLELEMENT("test_06302011",
    43                        XMLFOREST(
    44                                                           :old.a1 as "a1"
    45                                                         , :old.a2 as "a2"
    46                                                         , :old.a3 as "a3"
    47                                                         , :old.a4 as "a4"
    48                                                         , :old.a5 as "a5"
    49                                                         , :old.a6 as "a6")
    50                   )
    51          into v_log_old
    52          from dual;
    53
    54    END IF;
    55
    56    IF DELETING THEN
    57        vlog_event := 'D';
    58        v_log_new := NULL;
    59
    60         select XMLELEMENT("test_06302011",
    61                        XMLFOREST(
    62                                                           :old.a1 as "a1"
    63                                                         , :old.a2 as "a2"
    64                                                         , :old.a3 as "a3"
    65                                                         , :old.a4 as "a4"
    66                                                         , :old.a5 as "a5"
    67                                                         , :old.a6 as "a6")
    68                   )
    69          into v_log_old
    70          from dual;
    71
    72    END IF;
    73
    74     INSERT INTO log_06302011 (log_id, log_date, log_action, log_old, log_new
    75     VALUES ((SELECT NVL(MAX(log_06302011.log_id), 0) + 1 FROM log_06302011)
    76          , SYSDATE
    77          , vlog_event
    78          , v_log_old
    79          , v_log_new
    80           );
    81
    82  END trigger_log_06302011;
    83  /
    Trigger created.Now test:
    SQL> update test_06302011
      2     set a2 = 99
      3   where a1 = 1
      4  /
    1 row updated.
    SQL> commit
      2  /
    Commit complete.
    SQL> column log_old format a30
    SQL> column log_new format a30
    SQL> set linesize 300
    SQL> select log_old, log_new from log_06302011;
    LOG_OLD                        LOG_NEW
    <test_06302011><a1>1</a1><a2>1 <test_06302011><a1>1</a1><a2>9
    </a2><a3>1</a3><a4>1</a4><a5>1 9</a2><a3>1</a3><a4>1</a4><a5>
    </a5><a6>1</a6></tes           1</a5><a6>1</a6></te
    SQL>

Maybe you are looking for

  • Dunning letter (email) PDF attachment or body of email

    Hi experts, What is the industry practice for dunning letters when sent via email? Attach them as a pdf to the email, or add all the content of the dunning letter to the body of the email to make it easier for the customer to receive the message? Tha

  • Can't create boot camp partition on new macbook pro

    Hi all. Having an odd issue installing boot camp on my 2011 Macbook Pro. When I try and create a partition it gives me the following error message: "The disk cannot be partitioned because some files cannot be moved." It goes on to tell me that I need

  • Creating PDF from PowerPoint results in lines around images

    I've researched this topic on the forums and have seen some related posts but none that directly hit the issue I'm having. Have a PP file with some images and when I create PDF, the resulting file shows random "outline" lines partially around some of

  • Animation with .png files - from Maya 3D

    I need to import an 3-second animated sequence (created in Maya 3D by someone else) into FCP Studio sequence. I have been given a folder with 90 .png files. Is there quick/easy way to do it? The individual .png files open up fine. They only have expe

  • Idea for new app!!!

    ok.. so if your like me you have 8 pages of apps!!! but if your like me, it takes 5 minutes to find the one your looking for.. does anyone know if there is an app to organize your apps and games?? is anyone interested in helping me try to make one??