Database startup without repeating group of newspapers online HELP

Hello

I need help

I lost a full group online Redo Log (1A and 1B), I have only two of the three who had (2 a, 2 b - 3A, 3B), how do I do the database without this group.

Thank you for your cooperation

Missed or corrupted file?

Corrupted: Add the parameter(ALLOW_RESETLOGS_CORRUPTION = TRUE) in PFile, start the DB using Pfile.

Tags: Database

Similar Questions

  • commandline of database startup without listening active

    Hello

    in the past, I started my database under UNIX with this: sqlplus sys/pwd@DATABASE @startup.sql startup.sql contains only "start";

    It worked well with databases that have been hard-coded in the listner.ora. But we changed our behavior to listener... now the listener waiting for the connection to the listener, so the command above does no more than databases. I tried:
    export ORACLE_SID = DATBASE | sqlplus sys / as sysdba @startup.sql
    but it fails with the syntax of sqlplus prompt. Can someone give me a tip or annother opportunity so that it starts the database with a sinlge code line? Maybe something like this is common sense... but I can't make it work:
    export ORACLE_SID = DATABASE | sqlplus < < EOF connect / as sysdba \n startup\n quit \n EOF

    Thank you

    user10650608 wrote:
    I thought that dbstart.sh begins all databases? It also tells the head of the file:

    This script will start all of the databases listed in the oratab file

    I want to just start and stop a single database. A startup on the dbhost Script would be OK, but I don't know how :-(

    perform the backup of this script change the script as you want.

    Osama...

  • Automatically fix problems of Windows Search, such as failures of corruption, crashes and database startup

    My system is not working too, before a return Wea? I try to fix it, through, Fixit online, got the massage (automatically repair Windows Search problems, such as corruption failures, crashes and database startup)

    I don't know what to do, please help me Salove problem, thank U, Best looks

    :):):)

    first run checkdisk

    If you have not installed recovery console, and then run from the start menu

    go to start, run, type cmd

    in cmd type chkdsk c:/r, and press enter

    type y for Yes and press enter

    Type exit, and press enter

    restart the pc, let checkdisk finish and run again.

    restart the pc and the error persists there?

    Please give an EXACT error message.

    also, make sure that your pc is clean

    !. What is your current antivirus?

    2 follow these steps:

     

    Download, install, update and scan with these full free malware detection programs:

    Malwarebytes (MMFA): http://www.malwarebytes.org/products/malwarebytes_free

    SUPERAntiSpyware: (SAS): http://www.superantispyware.com/

    Remove all found, restart, and run again until analyses race clean, these can be removed later if you wish. Perform analyses to one at a time, please.

  • Sub-group under the main do not repeat group

    Hi all

    I have the G2 where I DOCNUM_DESCRIPTION, and I've linked G3 where I can have one or more subgroup called REASON.

    Something like that

    G2 - DOCNUM_DESCRIPTION
    -A
    B
    -C
    G3 - REASON N ° 1
    X
    Y
    G3 - DESIGN 2
    X
    Y

    Native BI, I'm able to use the repeat of group function and detail but in rtf I repeating group, and it does not repeat itself. for each docnum_description, I only get the first reason coming out not all. How can I go about it?

    It is difficult for me to say logical without seeing the xml and rtf model.
    Can you please write me model and xml. I'm going to sed if I can help you or not.
    E-mail: [email protected]

  • iPhone without facetime is available on online stores, is it the real... ?

    iPhone without facetime is available on online stores, is it the real... ?

    If the phone was intended for a market where, FaceTime is forbidden, Yes.

  • At startup, I repeatedly wonder for the password

    At startup, I repeatedly wonder for the password. When I give him the mask does not consider and present the same question. It takes several minutes until the password is accepted and Fireworks opens.

    There are a few bug reports for multiple master passwords upon request. Until they are fixed, workaround is to use one of these modules:

  • At startup, I repeatedly see a pop-up saying failure of raid access: critical error disk WDC WD5000AAKS-75A7B0 (sata 1.1 port).

    At startup, I repeatedly see a pop-up saying failure of raid access: critical error disk WDC WD5000AAKS-75A7B0 (sata 1.1 port).

    Since it started my computer lag/stutters all the seconds: music/slider/graphics.

    At the same time, I received an error message saying windows host process for services (I forgot the exact name) and superfetch times failed, but this part of the problem has been RESOLVED by following the instructions of someone: raid error/stuttering are still not resolved.

    Edit: stuttering seems to vanish for periods of time, but it comes when I listen to music on youtube / possibly of other unknown triggers
    stuttering seems to be particularly bad in Diablo III, makes the game unplayable

    Edit2: I disabled and re-enabled my thingys to RAID SATA option in BIOS and no error message: until I opened diablo 3.

    Original title: raid error access + stutter

    Hello

    I suggest to go to Western Digital to see if they have a diagnosis and run on the disc to check bad sectors, etc.

    You can also check the article check your hard drive for errors, to see if that helps.

    Thank you!

  • How to get rid of repeat groups using the query? Its my sql script.

    Mr President.

    worm of Oracle's 10g express edition

    I want to get rid of repeating groups and wants to get result like

    1. 1 RAM null 200 222,0
    2. DVD Player 2 25 34.0
    3. 3 HDD 160 GB Satta 40 49.0
    4. 4 LCD 19\ monitor"20 28.0
    5. 5 color 10 18,0 HP printer
    6. 6 keyboard multimedia keyboard 50 69.0
    7. 7 custom mouse mouse 150 248,0

    If my table script is as below

    BEGIN
           
     -- drop tables 
      EXECUTE IMMEDIATE 'DROP TABLE CUSTOMER';   
      EXECUTE IMMEDIATE 'DROP TABLE PRODUCT';   
      EXECUTE IMMEDIATE 'DROP TABLE SUPPLIER';   
      EXECUTE IMMEDIATE 'DROP TABLE PURCHASE';   
      EXECUTE IMMEDIATE 'DROP TABLE PURCHASELINE';   
      EXECUTE IMMEDIATE 'DROP TABLE SALES';   
      EXECUTE IMMEDIATE 'DROP TABLE SALESLINE';
      EXECUTE IMMEDIATE 'DROP TABLE STOCK';
      
    EXCEPTION
      WHEN OTHERS THEN
        DBMS_OUTPUT.PUT_LINE('');
    END;
    /
    
    
    CREATE TABLE CUSTOMER 
    (
      cust_id NUMBER        NOT NULL
    , name VARCHAR2(50)  NOT NULL
    , address VARCHAR2(100) DEFAULT NULL
    , contactno VARCHAR2(20)  DEFAULT NULL
    , CONSTRAINT CUSTOMER_PK PRIMARY KEY 
      (
        cust_id
      )
      ENABLE 
    );  
    
    
    CREATE TABLE PRODUCT 
    (
      prod_id   NUMBER       NOT NULL
    , name   VARCHAR2(50) NOT NULL
    , description VARCHAR2(50) DEFAULT NULL
    , CONSTRAINT PRODUCT_PK PRIMARY KEY 
      (
        prod_id
      )
      ENABLE 
    );  
    CREATE TABLE SUPPLIER 
    (
      suplr_id   NUMBER        NOT NULL
    , name   VARCHAR2(50)  NOT NULL
    , address VARCHAR2(100) DEFAULT NULL
    , contactno VARCHAR2(20)  DEFAULT NULL
    , CONSTRAINT SUPPLIER_PK PRIMARY KEY 
      (
        suplr_id
      )
      ENABLE 
    );  
    
    
    CREATE TABLE PURCHASE (
      pur_id NUMBER NOT NULL
    , pur_date DATE   NOT NULL  
    , suplr_id NUMBER DEFAULT '0'
    , CONSTRAINT PUR_SUPLR_FK FOREIGN KEY 
      (
      suplr_id
      )
      REFERENCES SUPPLIER 
      (
      suplr_id
      )
    , CONSTRAINT PURCHASE_PK PRIMARY KEY 
      (
        pur_id
      )
      ENABLE 
    );  
    
    
    CREATE TABLE PURCHASELINE (
      pur_id NUMBER DEFAULT '0' NOT NULL
    , prod_id NUMBER DEFAULT '0' NOT NULL
    , pur_qty NUMBER DEFAULT '0' NOT NULL
    , unit_pur_price NUMBER DEFAULT '0' NOT NULL
    , CONSTRAINT PUR_LINE_PUR_FK FOREIGN KEY 
      (
      pur_id
      )
      REFERENCES PURCHASE
      (
      pur_id
      )
    , CONSTRAINT PUR_LINE_POD_FK FOREIGN KEY
      (
        prod_id
      )
      REFERENCES PRODUCT
      (
      prod_id
      )
    , CONSTRAINT PUR_LINE_PK PRIMARY KEY 
      (
        pur_id,prod_id
      )
      ENABLE 
    );  
    
    
    CREATE TABLE SALES (
      sal_id NUMBER NOT NULL
    , sal_date DATE   DEFAULT NULL  
    , cust_id NUMBER DEFAULT '0'
    , CONSTRAINT PUR_CUSTR_FK FOREIGN KEY 
      (
      cust_id
      )
      REFERENCES CUSTOMER
      (
      cust_id
      )
    , CONSTRAINT SALES_PK PRIMARY KEY 
      (
        sal_id
      )
      ENABLE 
    );  
    
    
    CREATE TABLE SALESLINE (
      sal_id NUMBER DEFAULT '0' NOT NULL
    , prod_id NUMBER DEFAULT '0' NOT NULL
    , sal_qty NUMBER DEFAULT '0' NOT NULL
    , unit_sal_price NUMBER DEFAULT '0' NOT NULL
    , CONSTRAINT SAL_LINE_SAL_FK FOREIGN KEY 
      (
      sal_id
      )
      REFERENCES SALES
      (
      sal_id
      )
    , CONSTRAINT SAL_LINE_POD_FK FOREIGN KEY
      (
        prod_id
      )
      REFERENCES PRODUCT
      (
      prod_id
      )
    , CONSTRAINT SAL_LINE_PK PRIMARY KEY 
      (
        sal_id,prod_id
      )
      ENABLE 
    ); 
    
    
    CREATE TABLE STOCK (
      prod_id NUMBER NOT NULL
    , prod_qty NUMBER DEFAULT '0' NOT NULL
    , re_ord_level NUMBER DEFAULT '0' NOT NULL
    , CONSTRAINT STOCK_POD_FK FOREIGN KEY
      (
        prod_id
      )
      REFERENCES PRODUCT
      (
      prod_id
      )
    , CONSTRAINT STOCK_PK PRIMARY KEY 
      (
        prod_id
      )
      ENABLE 
    );   
    
    
    
    
    SET DEFINE OFF;
    
    
    -- ***** Populate Tables *****
    
    
    
    
    --CUSTOMER table data
    
    
    INSERT INTO CUSTOMER VALUES(1,'Kamrul Hasan','Moghbazar, Dhaka','0456789123');
    INSERT INTO CUSTOMER VALUES(2,'Rabiul Alam','Motijheel, Dhaka','0567891234');
    INSERT INTO CUSTOMER VALUES(3,'Shahed Hasan','2-G/1,2-2,Mirpur, Dhaka','0678912345');
    
    
    --PRODUCT table data
    
    
    INSERT INTO PRODUCT VALUES(1,'RAM',NULL);
    INSERT INTO PRODUCT VALUES(2,'DVD Drive',NULL);
    INSERT INTO PRODUCT VALUES(3,'HDD','160 GB Satta');
    INSERT INTO PRODUCT VALUES(4,'Monitor','LCD 19\"');
    INSERT INTO PRODUCT VALUES(5,'Printer','HP Color');
    INSERT INTO PRODUCT VALUES(6,'Keyboard','Multimedia Keyborad (Customised)');
    INSERT INTO PRODUCT VALUES(7,'Mouse','Customised Mouse');
    
    
    -- SUPPLIER table data
    
    
    INSERT INTO SUPPLIER VALUES(1,'Salam Enterprise','2-H/1-10, Mirpur, Dhaka, Bangladesh','0123456789');
    INSERT INTO SUPPLIER VALUES(2,'ABC Supplies','Dhanmondi, Dhaka','0234567891');
    INSERT INTO SUPPLIER VALUES(3,'XYZ Company','52 Gabtali, Dhaka','0345678912');
    
    
    
    
    --PURCHASE table data
    
    
    INSERT INTO PURCHASE VALUES(1,TO_DATE('12-12-2007','dd-mm-yyyy'),1);
    INSERT INTO PURCHASE VALUES(2,TO_DATE('13-12-2007','dd-mm-yyyy'),2);
    INSERT INTO PURCHASE VALUES(3,TO_DATE('13-12-2007','dd-mm-yyyy'),1);
    INSERT INTO PURCHASE VALUES(4,TO_DATE('14-12-2007','dd-mm-yyyy'),1);
    INSERT INTO PURCHASE VALUES(5,TO_DATE('15-12-2007','dd-mm-yyyy'),2);
    INSERT INTO PURCHASE VALUES(6,TO_DATE('20-12-2007','dd-mm-yyyy'),3);
    INSERT INTO PURCHASE VALUES(7,TO_DATE('05-01-2007','dd-mm-yyyy'),2);
    INSERT INTO PURCHASE VALUES(8,TO_DATE('06-05-2007','dd-mm-yyyy'),3);
    INSERT INTO PURCHASE VALUES(9,TO_DATE('15-07-2008','dd-mm-yyyy'),1);
       
    
    
    --PURCHASELINE table data
    INSERT INTO PURCHASELINE VALUES(1,1,25,900);
    INSERT INTO PURCHASELINE VALUES(1,2,10,1700);
    INSERT INTO PURCHASELINE VALUES(1,3,10,5000);
    INSERT INTO PURCHASELINE VALUES(1,4,9,5500);
    INSERT INTO PURCHASELINE VALUES(1,7,100,250);
    INSERT INTO PURCHASELINE VALUES(2,3,15,5000);
    INSERT INTO PURCHASELINE VALUES(2,6,20,500);
    INSERT INTO PURCHASELINE VALUES(3,6,25,450);  
    INSERT INTO PURCHASELINE VALUES(4,7,100,200);  
    INSERT INTO PURCHASELINE VALUES(5,5,10,3450);  
    INSERT INTO PURCHASELINE VALUES(5,6,10,180);  
    INSERT INTO PURCHASELINE VALUES(6,1,15,900); 
    
    
    
    
    --SALES table data
    INSERT INTO SALES VALUES(1,TO_DATE('12-12-2007','dd-mm-yyyy'),2); 
    INSERT INTO SALES VALUES(2,TO_DATE('15-12-2007','dd-mm-yyyy'),3);
    INSERT INTO SALES VALUES(3,TO_DATE('20-12-2007','dd-mm-yyyy'),2);
    INSERT INTO SALES VALUES(4,TO_DATE('28-12-2007','dd-mm-yyyy'),3);
    INSERT INTO SALES VALUES(5,TO_DATE('05-01-2008','dd-mm-yyyy'),1);
    INSERT INTO SALES VALUES(6,TO_DATE('12-01-2008','dd-mm-yyyy'),3);
    INSERT INTO SALES VALUES(7,TO_DATE('12-02-2008','dd-mm-yyyy'),1);
    INSERT INTO SALES VALUES(8,TO_DATE('12-02-2008','dd-mm-yyyy'),2);
    INSERT INTO SALES VALUES(9,TO_DATE('12-02-2008','dd-mm-yyyy'),3); 
    
    
    --SALESLINE table data
    INSERT INTO SALESLINE VALUES(1,1,3,1000);
    INSERT INTO SALESLINE VALUES(1,3,1,5500);
    INSERT INTO SALESLINE VALUES(1,4,1,6000); 
    INSERT INTO SALESLINE VALUES(1,6,2,500);  
    INSERT INTO SALESLINE VALUES(1,7,2,200);   
    INSERT INTO SALESLINE VALUES(2,2,2,1900);    
    INSERT INTO SALESLINE VALUES(2,7,2,200);     
    INSERT INTO SALESLINE VALUES(3,4,1,5500);     
    INSERT INTO SALESLINE VALUES(4,2,1,2200);     
    INSERT INTO SALESLINE VALUES(5,6,1,300);      
    INSERT INTO SALESLINE VALUES(5,7,2,250);      
    INSERT INTO SALESLINE VALUES(6,6,1,300);       
    INSERT INTO SALESLINE VALUES(6,7,3,180);        
    INSERT INTO SALESLINE VALUES(7,1,2,1000);         
    INSERT INTO SALESLINE VALUES(7,2,1,1900);          
    INSERT INTO SALESLINE VALUES(7,3,2,5500);           
    INSERT INTO SALESLINE VALUES(8,4,1,5500);            
    INSERT INTO SALESLINE VALUES(8,6,2,300);             
    INSERT INTO SALESLINE VALUES(8,7,1,200);              
    INSERT INTO SALESLINE VALUES(9,1,3,1000);               
    INSERT INTO SALESLINE VALUES(9,3,2,5500);                
    INSERT INTO SALESLINE VALUES(9,5,2,1000);                 
    
    
    --STOCK table data
    INSERT INTO STOCK VALUES(1,200,15);
    INSERT INTO STOCK VALUES(2,25,10);
    INSERT INTO STOCK VALUES(3,40,10); 
    INSERT INTO STOCK VALUES(4,20,10); 
    INSERT INTO STOCK VALUES(5,10,10);  
    INSERT INTO STOCK VALUES(6,50,20);   
    INSERT INTO STOCK VALUES(7,150,20);    
    
    
    
    
    COMMIT;
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    

    Concerning

    I could not figure out how you pulled your expected results, especially the last column. I guess that your problem I have several prod_id table productline / salesline. If a group of prod_id in these table should solve your problem. Something like that

    SQL> select p.prod_id         as product_prod_id
      2       , p.name            as product_name
      3       , p.description     as product_description
      4       , s.prod_qty        as stock_prod_qty
      5       , s.re_ord_level    as stock_re_ord_level
      6       , pl.pur_qty        as purchaseline_pur_qty
      7       , pl.unit_pur_price as purchaseline_unit_pur_price
      8       , sl.sal_qty        as salesline_sal_qty
      9       , sl.unit_sal_price as salesline_unit_sal_price
     10    from product p
     11    join stock s
     12      on p.prod_id = s.prod_id
     13    join (
     14            select prod_id
     15                 , sum(pur_qty) pur_qty
     16                 , sum(unit_pur_price) unit_pur_price
     17              from purchaseline
     18             group
     19                by prod_id
     20         ) pl
     21      on p.prod_id = pl.prod_id
     22    join (
     23            select prod_id
     24                 , sum(sal_qty) sal_qty
     25                 , sum(unit_sal_price) unit_sal_price
     26              from salesline
     27             group
     28                by prod_id
     29         ) sl
     30      on p.prod_id = sl.prod_id
     31   order
     32      by p.prod_id;
    
    PRODUCT_PROD_ID PRODUCT_NAME         PRODUCT_DESCRIPTION                      STOCK_PROD_QTY STOCK_RE_ORD_LEVEL PURCHASELINE_PUR_QTY PURCHASELINE_UNIT_PUR_PRICE SALESLINE_SAL_QTY SALESLINE_UNIT_SAL_PRICE
    --------------- -------------------- ---------------------------------------- -------------- ------------------ -------------------- --------------------------- ----------------- ------------------------
                  1 RAM                                                                      200                 15                   40                        1800                 8                     3000
                  2 DVD Drive                                                                 25                 10                   10                        1700                 4                     6000
                  3 HDD                  160 GB Satta                                         40                 10                   25                       10000                 5                    16500
                  4 Monitor              LCD 19\"                                             20                 10                    9                        5500                 3                    17000
                  5 Printer              HP Color                                             10                 10                   10                        3450                 2                     1000
                  6 Keyboard             Multimedia Keyborad (Customised)                     50                 20                   55                        1130                 6                     1400
                  7 Mouse                Customised Mouse                                    150                 20                  200                         450                10                     1030
    
    7 rows selected.
    
  • Creation of numbers in the repeating groups

    I try to have serial numbers in the repeating groups. The situation is that there is no serial number field in this table (in DB) to manage such a request. Can someone guide me as I am a newbie to BI Publisher.

    The link to the image is [http://s833.beta.photobucket.com/user/fareed_xtreme/media/Capture-3.png.html]

    use

    
    
  • Force summary Sub totals on the same page as the repeating group

    Hello people,
    I have a group of left report where I show Patients and visits they have taken for each Department.
    I then did a Sub Total of the number of visits, the Patient took. I want to assure you that the subtotal shows
    upward on the same page as the data in the repeating group. I tried to use an anchor, but the report doesn't.
    It gives an error: REP 1213 - reference field column to a frequency lower than his group when I have the extendable chassis anchor foot sub total
    and 1814 REP report cannot be formatted. Object "Horizontal" can never fit into 'M_1' when I try to anchor the opposite effect.

    My goal is to show totals of Sub (Total) on the same page as the Patient and do not go to the next page. I have attached the dotted line and Total (label and field) in one frame.

    Release of the report:
    Patient ID     Patient Name              Department              Visit
    ======================================================================
    1001           Mary Poppins              Department 001              3
                                             Department 002              4
                                             Department 003              1
                                             -----------------------------
                                             Total                       8
                                             -----------------------------
    
    1002           Peter Pan                 Department 001              2
                                             Department 002              1
                                             Department 003              2
                                             -----------------------------
                                             Total                       5
                                             -----------------------------
    Thanks in advance!

    Pls set the property (page protect the patient details and framework that contains two sub total) to yes.

  • How to use a header column in a repeating group

    I am trying to create a BEEP (11.1.1.6.2) report with an XML file as the source. XML files begin with a few header, followed by the actual data fields. For example:

    < DATA >
    < PARAMETERS >
    Order of < P_ORDER > < / P_ORDER >
    Client < P_CUSTOMER > < / P_CUSTOMER >
    < / PARAMETER >
    < LIST_DETAILS >
    < DETAIL >
    < V_ORDER > 12345 < / V_ORDER >
    Oracle of < V_CUSTOMER > < / V_CUSTOMER >
    < / DETAILS >
    < DETAIL >
    < V_ORDER > 67890 < / V_ORDER >
    Microsoft < V_CUSTOMER > < / V_CUSTOMER >
    < / DETAILS >
    < / LIST_DETAILS >
    < / DATA >

    The desired output must combine a field in the Group < PARAMETERS > and < OPTION > field group in a single line. So, with the data for this example, it should look like this:

    Order: 12345
    Client: Oracle
    Order: 67890
    Client: Microsoft

    In my RTF template, I created a repeating group <?-foreach: DETAIL? > and put everything in the repetition of this group. Unfortunately BEEP leaves the values for the fields in the empty < PARAMETERS > Group.
    I also tried to nest two repeating groups. First: <? for each: SETTINGS? >, notes: <?-foreach: DETAIL? >. This does not solve the problem.

    How can I optimize my desired output?

    Paul

    Try

    
    
    
                                     |           
          |
    ----------------------------------------------------|-----------------------------------
       | 
    
  • without repeating ID

    Modified
    Hello everyone,

    We want to see without repeating ID and tried:
    SELECT ROWNUM, SEPARATE REGISTRATION R.CLASS_ID R
    ORDER BY ROWNUM
    > R ID
    > 1 8
    2 > 1
    3 > 1
    4 > 3
    > 5 3
    > 6 3
    > 7 3
    > 8 3
    > 9 3
    We founded repeating ID.
    Is it possible to get rid?
    If you have experiences in this issue, please share with us.

    Thanks in advance,

    NY

    To try:

    http://3.BP.blogspot.com/_jHOjXtHYkXM/TEhrXsWqHiI/AAAAAAAAADE/CimEBrOzDu4/S1600/rownum.bmp

  • UPDATE without repeating subquery

    Hello

    Is it possible to do this UPDATE without two copies of the same auxiliary request?

    I'm trying to update table_x.name when there is another line in the same table that has exactly the same name, but with apostrophes.
    For example, the table contains:
            ID NAME
    ---------- --------------------------------------------------
             1 Fisherman's Landing
            11 Fishermans Landing
    I want to update the row with id = 11 to have the name of id = 1, because they are identical (case-sensitive) except for the apostrophe.

    The script below does what I want, but I wonder if it is a good way to do it without repeating the scalar subquery in the EXISTS subquery.
    MERGER will trigger ORA-38104 if you attempt to update a column that is used in the condition WE.

    Test script:
    CREATE TABLE     table_x
    (      id     NUMBER
    ,      name     VARCHAR2 (50)
    );
    
    -- Rows below should be UPDATEd if and only if id > 10.
    
    -- One long name and one short name
    INSERT INTO table_x (id, name) VALUES (1,     'Fisherman''s Landing');
    INSERT INTO table_x (id, name) VALUES (11,     'Fishermans Landing');
    
    -- One long, two short
    INSERT INTO table_x (id, name) VALUES (2,     'M''Cormack');
    INSERT INTO table_x (id, name) VALUES (21,     'MCormack');
    INSERT INTO table_x (id, name) VALUES (22,     'MCormack');
    
    -- Two long; one short
    INSERT INTO table_x (id, name) VALUES (3,     'Tan''sur');
    INSERT INTO table_x (id, name) VALUES (4,     'Tan''sur');
    INSERT INTO table_x (id, name) VALUES (31,     'Tansur');
    
    INSERT INTO table_x (id, name) VALUES (5,     'Didn''t find a match');
    INSERT INTO table_x (id, name) VALUES (6,     'Did not find a match');
    
    -- Mulitple apostrophes
    INSERT INTO table_x (id, name) VALUES (7,     'L''Hopital''s Rule');
    INSERT INTO table_x (id, name) VALUES (71,     'LHopitals Rule');
    
    -- When the long version is not unique, take the MIN (81 <= 8)
    INSERT INTO table_x (id, name) VALUES (8,      'Can''t and Wont');
    INSERT INTO table_x (id, name) VALUES (9,      'Cant and Won''t');
    INSERT INTO table_x (id, name) VALUES (81,      'Cant and Wont');
    
    
    COMMIT;
    
    PROMPT     ==========  Before UPDATE  ==========
    
    SELECT     *
    FROM     table_x
    ORDER BY     name;
    
    
    PROMPT     ==========  UPDATE  ==========
    
    UPDATE     table_x     m
    SET     name = (
                SELECT     MIN (name)
                FROM     table_x
                WHERE     name     LIKE '%''%'
                AND     m.name     = REPLACE (name, '''')
                )
    WHERE   EXISTS (
                SELECT     null
                FROM     table_x
                WHERE     name     LIKE '%''%'
                AND     m.name     = REPLACE (name, '''')
                );
    
    SELECT     *
    FROM     table_x
    ORDER BY     name;
    The script above updates 6 ranks where id > 10, leaving this to thable_x:
            ID NAME
    ---------- --------------------------------------------------
            81 Can't and Wont
             8 Can't and Wont
             9 Cant and Won't
             6 Did not find a match
             5 Didn't find a match
             1 Fisherman's Landing
            11 Fisherman's Landing
             7 L'Hopital's Rule
            71 L'Hopital's Rule
            22 M'Cormack
            21 M'Cormack
             2 M'Cormack
            31 Tan'sur
             3 Tan'sur

    I don't know that I would implement the report to the original, but the question was 'you can' so I'll skip the rest for now ;)

    ME_XE?MERGE INTO table_x x
      2  USING
      3  (
      4     SELECT
      5        id,
      6        FIRST_VALUE(name) OVER (PARTITION BY REPLACE(name, '''', NULL) ORDER BY ID ASC) AS new_name
      7     FROM  table_x
      8  ) y
      9  ON (x.id = y.id)
     10  WHEN MATCHED THEN UPDATE
     11     SET x.name = y.new_name
     12     WHERE LENGTH(x.name) != LENGTH(y.new_name);
    
    6 rows merged.
    
    Elapsed: 00:00:00.01
    ME_XE?
    

    Published by: Tubby on May 14, 2009 13:27

    sad, the forum always eat my <> is not equal to...

  • Try to get help; message: not connected to online help

    It's weird, and I apologize in advance because I don't really know how to explain it.

    Very different things are happening with my computer - only in the last days.
    Try to check the things myself (without success). I was searching to find out why my Live Mail wasn't load of emails.
    There is a small globe (?) with a red x through it (lower-right, menu bar), with the message saying that I am working offline, and I would like to work online.
    I say yes, red x goes, and repeats the message! And then load it no email!
    I use the send/receive button on the bar at the top of the screen; message: too many errors and email cannot be loaded.
    Errors: pop or smtp not recognized! I'll check into that, and this isn't a problem.
    So back to the drawing board and try to download again the incoming emails.
    Nothing! I click the send/receive button again; It crashes.
    Finally, a box appears with a progress bar, and e-mail is downloaded.
    This whole process can last for 3 to 5 minutes.
    Another problem, but still part of the present above, is that I tried to do some research on my own (not always a good idea).
    In any case, at the top of several pages, it says (I paraphrase) that I was not hooked online help of the internet where the news updated. Check the internet connections, etc. If I couldn't connect, then MY problem (or words to that effect).
    I have an internet connection; otherwise I would not write you.
    I have no idea why I'm unable to access using the internet Microsoft online. I don't even know if it will help me. I hope so.
    And finally (and I think that I mentioned in a previous query), some of my outgoing e-mails are simply not sent.
    They sit in the Outbox for ever. These are sent to well-known receivers. These receptors have no problems receiving emails from me successfully in the past; It is erratic, capricious, arbitrary and makes no sense at all!
    Sometimes these receptors known to receive emails from me, and sometimes they are not.
    I know it's a lot, but I really need help.
    For some reason, I think that all of this is related.
    A big thank you in advance.
    Lynne

    Hello

    If you are having problems with Windows Live Mail, I suggest you post your question here:

    http://answers.Microsoft.com/en-us/windowslive

    It will be useful.

  • I can't connect to the service online help.

    * Original title: Microsodr online service

    I can't connect to the service online help. Nothing wrong with my internet connection. I can't connect eith helpdesk today even if I did yesterday. I have the reference code 13460435681 and spoke to Gagan Arora. Can you help me?

    You can get sponsored by Microsoft (but not necessarily free) support through the Office of response-online http://answerdesk.microsoftstore.com

    Phone: 877-696-7786 or 800-642-7676 (toll free US)

    ====================================================
    WARNING: Displayed AS IS without any warranty. MS MVPs represent or work for Microsoft.

Maybe you are looking for