FUSION IN: ORA-30926: failed to get a stable set of rows in the source tables

Hi all

Database Oracle 12 c Enterprise Edition Release 12.1.0.1.0 - 64 bit Production 0

PL/SQL Release 12.1.0.1.0 - Production 0

CORE 12.1.0.1.0 Production 0

AMT for 64-bit Windows: Version 12.1.0.1.0 - Production 0

NLSRTL Version 12.1.0.1.0 - Production 0

When you use the MERGE clause, if executed more than once, I get the below error

ORA-30926: failed to get a stable set of rows in the source tables

create table CBC (nums number, sname varchar2 (10))

create tar (tnum number, tNom varchar2 (10)) table

Insert in src values (1, 'a')

Insert in src values (1, 'b')

Insert in src values (2, "c")

merge into tar

using the CBC

on (nums = tnum)

when matched

then

update the value tNom = sname

When not matched

then

Insert the values(snum,sname);

What expect, it's that first time itself (when inserted), he must raise the error. But it's not.

Select * from tar

TNUM TNOM

1 b

1 a

2 c

But if we run for the second time it shows the error.

I saw the document of the Oracle and he said

MERGEis a deterministic statement. You cannot update the same row in the target table multiple times in the same MERGE statement.

I've seen below cela son but failed to get the solution for this.

MERGE STATEMENT ORA-30926: failed to get a stable set of lines in the source

Nondeterministic fusion?

Someone at - it make a clarification?

I don't want to insert records into the first time itself. for example, to run the first time he must raise the error. can I do this using MERGE?

Thank you

Hello

O - O wrote:

Thanks knani, Frank.

One more doubt.

When you run the MERGE statement, the first time, there is no rows in the target table, so no rows in the target table is what it is.

So we cannot perform below sqls using MERGE when the target table is empty?

insert into tar values (1, 'a')

updated tar tNom = 'b' set where tnum = 1

insert into tar values (2, "c")

Is - that means that the MERGER will be only works with validated data?

Right; a MERGE statement will not update a line which has been previously inserted into the same MERGE statement.  All fact tables reference to the data in the tables by the time the MERGER began.

Tags: Database

Similar Questions

  • Using Merge in oracle 11g this error SQL Error: ORA-30926: failed to get a stable set of rows in the source tables

    whenever I run this code I get this error

    SQL Error: ORA-30926: failed to get a stable set of rows in the source tables

    30926 00000 - "impossible to get a stable set of rows in the source tables.

    * Cause: A stable set of rows could not be achieved due to the large dml

    activity or one not deterministic where clause.

    * Action: Remove any non deterministic of the clauses and reissue of the dml.

    Don't know wht goes wrong!


    SQL:

    MERGE IN VENDORS_ACTIVE_DATE s

    USING (nvl (d.VENDOR, s.VENDOR) selection of the SELLER,

    NVL (d.COMPANY_CODE, s.COMPANY_CODE) COMPANY_CODE.

    (case when ((d.VENDOR = s.VENDOR) and (d.COMPANY_CODE = s.COMPANY_CODE)))

    )

    then "MATCH".

    When d.COMPANY_CODE is null

    then 'DELETE '.

    When s.COMPANY_CODE is null

    then "INSERT."

    else 'UPDATE '.

    chck end)

    from (select * from VENDORS_ACTIVE_DATE where COMPANY_CODE = 2) s

    full outer join (select * provider where COMPANY_CODE = 2) d

    on (d.COMPANY_CODE = s.COMPANY_CODE AND s.COMPANY_CODE = 2)

    ) d

    WE (d.COMPANY_CODE = s.COMPANY_CODE AND d.chck in ('UPDATE', 'GAME', 'DELETE'))

    WHEN MATCHED THEN

    UPDATE SET s.VENDOR = d.VENDOR

    WHERE d.chck in ('UPDATE', 'DELETE')

    DELETE WHERE d.chck = 'DELETE '.

    WHEN NOT MATCHED THEN

    INSERT (SELLER, COMPANY_CODE)

    VALUES (d.VENDOR, d.COMPANY_CODE)

    Work request: (deleted the duplicate data in tables (source and target))

    MERGE IN VENDORS_ACTIVE_DATE s

    USING (nvl (d.VENDOR, s.VENDOR) selection of the SELLER,

    NVL (d.ACTIVEDATE, s.ACTIVEDATE) ACTIVEDATE.

    NVL (d.COMPANY_CODE, s.COMPANY_CODE) COMPANY_CODE.

    (case when ((d.VENDOR = s.VENDOR))

    - AND D.ACTIVEDATE = S.ACTIVEDATE

    and NVL (d.ACTIVEDATE, trunc (sysdate)) = NVL (s.ACTIVEDATE, trunc (sysdate))

    and (d.COMPANY_CODE = s.COMPANY_CODE)

    )

    then "MATCH".

    When d.COMPANY_CODE is null

    then 'DELETE '.

    When s.COMPANY_CODE is null

    then "INSERT."

    else 'UPDATE '.

    chck end)

    from (select * from suppliers where COMPANY_CODE = 2) d

    full outer join (select * from vendors_active_date where COMPANY_CODE = 2) s

    on (d.COMPANY_CODE = s.COMPANY_CODE and s.vendor = d.vendor)

    ) d

    WE (d.COMPANY_CODE = s.COMPANY_CODE AND d.VENDOR = s.VENDOR AND d.chck in ('UPDATE', 'GAME', 'DELETE'))

    WHEN MATCHED THEN

    S.ACTIVEDATE = UPDATE SET d.ACTIVEDATE

    WHERE d.chck in ('UPDATE', 'DELETE')

    DELETE WHERE d.chck = 'DELETE '.

    WHEN NOT MATCHED THEN

    INSERT (VENDOR, ACTIVEDATE, COMPANY_CODE)

    VALUES (d.VENDOR, d.ACTIVEDATE, d.COMPANY_CODE)

  • ORA-30926: failed to get a stable set of rows in the source table

    Dear all

    When I try to load my cube I get the error "ora-30926: failed to get a stable set of rows in the source table.
    Any idea? Googling for this error has not returned all the solutions.

    My env:

    Source: Oracle 10g (10.2.x)
    Target: Oracle 11g (11.1.0.7)

    I use the generator to warehouse 11.1.0.7 on Linux

    Thank you

    Hello

    Yes, I'm very sure. The error is revived by the MERGE statement.
    If the cube is empty, it is not a problem. All of the rows from the source Gets a surrogate key.
    If you run the cube for the second time, and you have two or more lines with exact in the attributes values as you use for correspondence, this error occurs.

    Kind regards
    Carsten.

  • MERGE or PL/SQL statement? (and ORA-30926: failed to get a stable set of rows in the source tables)

    Hi SQL & PL/SQL gurus...

    A bit of advice please...

    IM loading documents in the system... In this context, I have a routine that check the progress of loading (upload_records) against an existing table (supplier_records).  If the details differ so it updates, and if the folder does not exist, it inserts a new record...

    About 90% of the time, recording will be unchanged and the statement will do nothing...

    The challenge I have is that I get the error above fairly regularly, because (I think) there are simultaneous users, loading documents in the system... so, both tables change regularly...  The merge statement is below... but my question is: I would achieve anything by converting the merge statement into a PL/SQL loop that checks if the recordset contains a record that needs to either update or insertion? Would be the first simple quick check that reduction of 90% of the files works better, (with further processing if the folder must insert or update) and this would remove the error above, or the merge statement made the same thing anyway, and I should leave it as what? or is my incorrect merge statement and which contribute to the error?  The merge statement, if it finds a match, updates the record anyway, even if she didn't need to...  (which is not very effective)... However a pl/SQL loop will have to check if the record exists. check if it needs to be changed, change it if she does... Insert if the folder does not exist.

    MERGE statement is:

    MERGE INTO s suppliers

    USING (select distinct (sup_provision_id),

    provider,

    sup_acc_holder,

    sup_bank_acc,

    sup_bank_name,

    payments_upload sup_bank_branch

    where csv_id =: P20_CSV_ID) could

    WE (pu.sup_provision_id = s.supplier_id)

    WHEN MATCHED THEN

    GAME UPDATE

    s.SUPPLIER = pu.supplier,

    s.SUP_ACC_HOLDER = pu.sup_acc_holder,

    s.BANK_ACC_NO = pu.sup_bank_acc,

    s.BANK_NAME = pu.sup_bank_name,

    s.BRANCH_NO = pu.sup_bank_branch

    WHEN NOT MATCHED THEN

    INSERT (s.SUPPLIER_ID,

    s.SUPPLIER,

    s.SUP_ACC_HOLDER,

    s.BANK_ACC_NO,

    s.BANK_NAME,

    s.BRANCH_NO,

    s.CAT)

    VALUES (pu.sup_provision_id,

    able. Beg,

    Pu.sup_acc_holder,

    Pu.sup_bank_acc,

    Pu.sup_bank_name,

    Pu.sup_bank_branch,

    'S' );

    Thank you very much

    Richard

    Hi, Richard,.

    Richard Legge wrote:

    Hello.. Thanks for the reply...... The reason for the 'distinct' to ensure that the query retrieves only one line (based on the extraction of the full line, as you point out)... (so why he would never get more than one?) Well Yes... know that the media are not quite relevant...

    The reasoning is that out or 5000 records. 4000 will have the same provider... so want to retrieve a single record for what it (or other unique visitors who may be similar but have different criteria) and simply update the corresponding record, insert if there is no trace...

    Rgds

    Richard

    SELECT DISTINCT guarantees that no 2 rows will be exactly alike.  In other words, if you compare the 2 rows in the result set, either sup_provision_id supplier of GOLD supp_acc_holder for GOLD OR one of the other columns (or maybe 2 or more columns) will be different.  It does not guarantee that any 1 column will be unique.

    FUSION requires that, when a match is found, it should only be 1 line in the result set generated by the USING clause.  Given that the matching condition is

    WE (pu.sup_provision_id = s.supplier_id)

    This means that pu_sup_provision must be unique.  The ORA_30926 error occurs if it is not unique.  SELECT DISTINCT to ensure that complete lines in pu are unique, but it does not guarantee that any single column will be unique.

    Depending on your data and your needs, you may need to change the USING clause, so that sup_provision_id is unique.  You may need to add more conditions to the WHERE clause, or do a GROUP BY or use an analytic function such as ROW_NUMBER.

    If you need help, post a small example of data (that is, CREATE TABLE and INSERT statements for all the tables involved, as they are before the MERGER) and the exact results you want (that is, indicate which suppliers should contain after the MERGER).

    Check out the Forum FAQ: Re: 2. How can I ask a question on the forums?

  • ORA-30926: failed to get a stable set of rows in the source tables

    Hello

    Please suggest me I get the error message when running under code MERG. Please suggest

    Below the two tables are the same in the code not to structure no change that I just need to update the real table when data in the temporary table.

    MERGE WITH CEMLI_ASSESMENT CM

    USING (SELECT DISTINCT * FROM TEMP_CEMLI_ASSESMENT) TCM

    WE (CM.PRO_ID = TCM.PRO_ID AND)

    CM CEMLI_NAME THE GROUP TCM. CEMLI_NAME)

    WHEN MATCHED THEN

    GAME UPDATE

    CM CEMLI_TYPE THE GROUP TCM. CEMLI_TYPE,

    CM CEMLI_CODE_UNIT_EXEC THE GROUP TCM. CEMLI_CODE_UNIT_EXEC,

    CM LAST_USAGE_DT THE GROUP TCM. LAST_USAGE_DT,

    CM REQUIRED GROUP TCM. Mandatory

    CM.COMPLEXITY = TCM.COMPLEXITY,

    CM HIT THE GROUP TCM. AFFECTED,

    CM RE_DEVELOPMENT THE GROUP TCM. RE_DEVELOPMENT,

    CM IMPACT_DESC THE GROUP TCM. IMPACT_DESC,

    CM CEMLI_GROUP THE GROUP TCM. CEMLI_GROUP,

    CM REVISED_COMPLEXITY THE GROUP TCM. REVISED_COMPLEXITY,

    CM RETRO_PLANNED_START_DT THE GROUP TCM. RETRO_PLANNED_START_DT,

    CM RETRO_PLANNED_END_DT THE GROUP TCM. RETRO_PLANNED_END_DT,

    CM RETRO_ACTUAL_START_DT THE GROUP TCM. RETRO_ACTUAL_START_DT,

    CM RETRO_ACTUAL_END_DT THE GROUP TCM. RETRO_ACTUAL_END_DT,

    CM FUT_PLANNED_START_DT THE GROUP TCM. FUT_PLANNED_START_DT,

    CM FUT_PLANNED_END_DT THE GROUP TCM. FUT_PLANNED_END_DT,

    CM FUT_ACTUAL_START_DT THE GROUP TCM. FUT_ACTUAL_START_DT,

    CM FUT_ACTUAL_END_DT THE GROUP TCM. FUT_ACTUAL_END_DT,

    CM UPDATE_FLG THE GROUP TCM. UPDATE_FLG,

    CM.COMMENTS = TCM.COMMENTS

    WHEN NOT MATCHED THEN

    INSERT (CM.PRO_ID, CM. CEMLI_NAME, CM. CEMLI_TYPE, CM. CEMLI_CODE_UNIT_EXEC, CM. LAST_USAGE_DT, CM. IF NECESSARY, CM.COMPLEXITY, CM. HIT, CM. RE_DEVELOPMENT, CM. IMPACT_DESC, CM. CEMLI_GROUP, CM. REVISED_COMPLEXITY, CM. RETRO_PLANNED_START_DT, CM. RETRO_PLANNED_END_DT, CM. RETRO_ACTUAL_START_DT, CM. RETRO_ACTUAL_END_DT, CM. FUT_PLANNED_START_DT, CM. FUT_PLANNED_END_DT, CM. FUT_ACTUAL_START_DT, CM. FUT_ACTUAL_END_DT, CM. UPDATE_FLG, CM.COMMENTS)

    VALUES (TCM.PRO_ID, TCM. CEMLI_NAME, TCM. CEMLI_TYPE, TCM. CEMLI_CODE_UNIT_EXEC, TCM. LAST_USAGE_DT, TCM. IF NECESSARY, TCM.COMPLEXITY, TCM. HIT, TCM. RE_DEVELOPMENT, TCM. IMPACT_DESC, TCM. CEMLI_GROUP, TCM. REVISED_COMPLEXITY, TCM. RETRO_PLANNED_START_DT, TCM. RETRO_PLANNED_END_DT, TCM. RETRO_ACTUAL_START_DT, TCM. RETRO_ACTUAL_END_DT, TCM. FUT_PLANNED_START_DT, TCM. FUT_PLANNED_END_DT, TCM. FUT_ACTUAL_START_DT, TCM. FUT_ACTUAL_END_DT, TCM. UPDATE_FLG, TCM.COMMENTS);

    Thank you

    Shilpa

    This means that there are several lines in traditional Chinese with the same TCM.PRO_ID and TCM. CEMLI_NAME. And the MERGER cannot be updated same line several times. You must decide what to do in such cases. If you don't care which line of lines with the same TCM.PRO_ID and TCM. CEMLI_NAME to take, use:

    MERGE WITH CEMLI_ASSESMENT CM
    WITH THE HELP OF TCM (SELECT T.*, ROW_NUMER () OVER(PARTITION BY PRO_ID,CEMLI_NAME ORDER BY 1) RN TEMP_CEMLI_ASSESMENT T)
    WE (CM.PRO_ID = TCM.PRO_ID AND)
    CM CEMLI_NAME THE GROUP TCM. CEMLI_NAME AND
    TCM. RN = 1)
    WHEN MATCHED THEN
    GAME UPDATE
    CM CEMLI_TYPE THE GROUP TCM. CEMLI_TYPE,
    CM CEMLI_CODE_UNIT_EXEC THE GROUP TCM. CEMLI_CODE_UNIT_EXEC,
    CM LAST_USAGE_DT THE GROUP TCM. LAST_USAGE_DT,
    CM REQUIRED GROUP TCM. Mandatory
    CM.COMPLEXITY = TCM.COMPLEXITY,
    CM HIT THE GROUP TCM. AFFECTED,
    CM RE_DEVELOPMENT THE GROUP TCM. RE_DEVELOPMENT,
    CM IMPACT_DESC THE GROUP TCM. IMPACT_DESC,
    CM CEMLI_GROUP THE GROUP TCM. CEMLI_GROUP,
    CM REVISED_COMPLEXITY THE GROUP TCM. REVISED_COMPLEXITY,
    CM RETRO_PLANNED_START_DT THE GROUP TCM. RETRO_PLANNED_START_DT,
    CM RETRO_PLANNED_END_DT THE GROUP TCM. RETRO_PLANNED_END_DT,
    CM RETRO_ACTUAL_START_DT THE GROUP TCM. RETRO_ACTUAL_START_DT,
    CM RETRO_ACTUAL_END_DT THE GROUP TCM. RETRO_ACTUAL_END_DT,
    CM FUT_PLANNED_START_DT THE GROUP TCM. FUT_PLANNED_START_DT,
    CM FUT_PLANNED_END_DT THE GROUP TCM. FUT_PLANNED_END_DT,
    CM FUT_ACTUAL_START_DT THE GROUP TCM. FUT_ACTUAL_START_DT,
    CM FUT_ACTUAL_END_DT THE GROUP TCM. FUT_ACTUAL_END_DT,
    CM UPDATE_FLG THE GROUP TCM. UPDATE_FLG,
    CM.COMMENTS = TCM.COMMENTS

    SY.

  • Impossible to get a stable set of rows in the source tables

    Hi guys,.

    I use the following query to fusion in a stored procedure.
       MERGE INTO tt_OPEN_IN_TMP B
       Using (Select * From Tt_Sl_Fifo) A 
       ON ( A.Store_Code = B.Store_Code
         AND A.item_code = B.item_code
         And A.Packing = B.Packing
         And A.Serial_No = B.Serial_No )
       When Matched Then Update Set Opn_Fifo_Cost = A.Rate_Bc;
    The procedure raises error * "Unable to get a stable set of rows in the source tables" * as a result of the query. But if I run the query individually, it works very well. Please help me solve this problem.

    Thank you
    RAM.

    The error is due to what there is in double store_code, item_code, packaging, combination of serial_no in the Tt_Sl_Fifo table. If there are multiple records with the same store_code, item_code, packaging, serial_no Oracle has no way to determine which to use for the update. If you know that there is whenever duplicates they will all have the same column of rate_bc then instead of using

    (select * from tt_sl_fifo)
    

    use

    (select distinct store_code, item_code, packing, serial_no, rate_bc from tt_sl_fifo)
    

    Or if there is other criteria, like a date column, you can use to determine what is the one you want to use to day then you can use something like

    (select store_code, item_code, packing, serial_no, rate_bc from tt_sl_fifo
      where (store_code, item_code, packing, serial_no, add_date) in
           (select store_code, item_code, packing, serial_no, max(add_date)
              from tt_sl_fifo group by store_code, item_code, packing, serial_no))
    
  • Error: ORA-16757: failed to get the value of this property

    Hi all
    I have an error:
    DGMGRL > see the database dbname_stb LogXptStatus;
    Error: ORA-16757: failed to get the value of this property
    I check:
    DGMGRL > see the configuration;

    Configuration - dbname_dg

    Protection mode: MaxPerformance
    Databases:
    dbname_pr - primary database
    dbname_stb - physical of the standby database

    Fast-Start Failover: DISABLED

    The configuration status:
    SUCCESS

    drcdbname_stb.log:
    RSM0: Received the request the property Get: rid = 0 x 01010000, pid = 54
    2012-10-17 15:21:14.702 of database Resource: get the LogXptStatus property
    RSM 15:21:14.702 2012-10-17 error: trying to interview a 'LogXptStatus' primary type property on a standby database resource.
    2012 10-17 error 15:21:14.702 database resource GetProperty (16501,16757)

    I don't understand this error?
    Thank you all.

    Take a look on this

    Re: ORA-00254 | Trouble with dataguard

  • More about "ERROR: failed to create a snapshot of a volume of the source.

    I saw the previous posts on this and have tried to follow all the advice, but nothing helped.  I am running XP and you have two hard drives, NTFS and both have plenty of space.  My destination is an external hard drive, FAT32, with plenty of room.  I get the ERROR message: failed to create a snapshot of a volume of the source. Ppossible causes include not seen all NTFS volumes on Windows XP or Windows 2003 source systems with no is not enough of disk space.

    I installed the converter as an administrator, I rebooted several times, I ran / f checkdsk on both hard drives and external drives, I have disabled all the services that I am uncomfortable, turn off, but just, I get this message.  I have attached the log file.

    Thanks for any help.

    drbking wrote:

    I see that a small part of my answer was missing - the microsoft running thing, I found I was missing vssui.dll.  Downloaded, ran the microsoft thing and am now running the converter again.  Know in the morning, if it works (takes about 9 hours).

    How is the conversion?

    -Ryan

  • Try to load Quick time. All goes well until I get "administrator has set policies that prohibit the installation of this program.

    original title: rules of the administrator

    Try to load Quick time.  All goes well until I get "administrator has set policies that prohibit the installation of this program.

    I am the system administrator, logged as such, can't find a way to change these policies of 'administratoer' to allow me to download and install a program that I want to install!

    Hi J1walters,

    ·        The computer is connected to a domain network?

    ·        Which edition of Windows vista is installed on the computer?

    ·        You are able to install other programs outside of Quicktime?

    However, you can try the steps below and check if it helps to install Quick time.

    Method 1

    a. open the location of the downloaded program.

    b. right click on Setup.exe or install icon.

    c. click the run as Administrator option.

    Check if the program is installed.

    Method 2

    Try to temporarily disable control user account (UAC) on the computer and try to install the program and check if he moved very well. Subsequently re-enable the UAC settings after installing the program.

    Access the link below to see how to enable and disable the UAC settings.

    http://Windows.Microsoft.com/en-us/Windows7/turn-user-account-control-on-or-off

    I hope this helps. Let us know the results.

    Thank you and best regards,

    Srinivas R

    Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Get the number of rows in the oracle table

    Hi all
    I want to get the total number of rows in the sql to the appmodule table.
    After you apply the criteria to view some on the view object. If he try with getallrowsinrange the number of rows found within the viewobject was but I want a total number of rows in the sql table.

    How can I get that

    I use jdev 11.1.1.5

    Thanks in advance

    I threw something together, quick and dirty, don't hesitate to optimize.

    Assuming you want the County table, I put the code in a subclass of EntityDefImpl since it is representing a table in the middle tier.

    public class EmpDefImpl
          extends EntityDefImpl {
      /**
       * This is the default constructor (do not remove).
       */
      public EmpDefImpl( ) {}
    
      //~ Methods ****************************************************************************
    
      public long getTableRowCount( DBTransaction transaction ) {
        String query = getQuery( );
        String countQuery = String.format( "SELECT COUNT(*) FROM (%s)", query );
        long count = 0;
    
        ViewObject vo = transaction.createViewObjectFromQueryStmt( countQuery );
    
        try {
          vo.executeQuery( );
    
          Row row = vo.first( );
          Number number = (Number)row.getAttribute( 0 );
          count = number.longValue( );
        } finally {
          vo.remove( );
        }
    
        return count;
      }
    }
    

    Depending on your card type, you may not get an oracle.jbo.domain.Number, but something else, so the cast may need correction.

    Usage example:

    public class EmpEditViewImpl extends ViewObjectImpl {
      public EmpEditViewImpl() {
      }
    
      protected void executeQueryForCollection( Object object, Object[] object2, int i ) {
        super.executeQueryForCollection( object, object2, i );
    
        EmpDefImpl def = ( EmpDefImpl )getEntityDef( 0 );
        long tableRowCount = def.getTableRowCount( getDBTransaction() ) );
    
        // Do something with it
      }
    }
    

    As you can see, the code is fairly generic. Also, you might be able to put this in a base extension ADF class.

    Sascha

    Published by: Sascha Herrmann on June 7, 2012 14:39

  • ORA-19573: failed to get exclusive enqueue for datafile 4

    Hello

    I have the database to Oracle 10 g on AIX.
    I take a full backup since the database isn't that big.
    The users.dbf has been deleted accidentally at the OS level.
    I'm trying to restore and recover the users tablespace. I'm rman documentation and that's what I tried to do.
    RMAN > run {}
    SQL 'alter tablespace offline users;
    Restore tablespace users;
    recover tablespace users;
    SQL 'alter tablespace users online ';
    }

    but I get the error below:
    using the control file of the target instead of recovery catalog database
    SQL statement: alter tablespace users offline
    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03009: failure of the sql command to the default channel at 14/04/2010 18:04:38
    RMAN-11003: failure in parsing / execution of the SQL statement: alter tablespace users offline
    ORA-01116: error opening the database file 4
    ORA-01110: data file 4: ' / u01/app/oracle/oradata/BKUPDB/users01.dbf'
    ORA-27041: could not open the file
    IBM AIX RISC System/6000 error: 2: no such file or directory
    Additional information: 3


    I did some research and it looks like I need to close the database, bring it back to get State and then do the restore and recover.
    I thought since storage space is not SYSTEM, I should be able to make the tablespace recovery without putting the database in offline mode.

    Can someone help me understand.

    Thank you.

    "alter tablespace offline users" is a NORMAL offline trying to control point the data file.

    Make an "alter tablespace users offline immediate.

    Hemant K Collette

  • Failed to get tab layout html on DW of the trial?

    Trial of DW, I downloaded, but I can't even first Base.  I downloaded the files to get started. When I opened Dreamweaver menu panel at the top is empty when commissioning illustration show a tab page HTML layout.  How can I start even this test without this tab?

    You work with this tutorial?

    Set up your site files and project | Adobe Dreamweaver CC tutorials

    Go to Site > new Site and create a site folder for your project.

    The project ZIP file tutorial & files must be "decompressed" with WinZip, StuffIt or some other utility-compression and Saved in your file of Site Local DW.

    Nancy

  • Failed to get vCenter to keep in touch with the two servers virtual virtual ESXi 4.0.

    I have a laboratory setup where I have two servers virtual windows (Domian controller and vCenter) and two virtual servers ESXi 4.0, on a Dell sitting bare metal Server ESXi 4.0.  So basically four virtual servers on a server phyiscal.  I can't get the vCenter server to stay connected to the ESXi 4.0 servers.  We'll always stay connected, and the other will be disconnected.  When I try to reconnect to the disconnected from vCenter Server I get a connection failure.  If I go directly to the ESXi box (the one that I can't connect to vCenter well) I can connect correctly by using the identification information same accurate I use however vCenter.  I'm running while mode track except metal nu ESXi installation that has the free license installed on it.  This is a limitation of the performance of the software in trial mode.  I hope not that would be nice to do for study purposes and to show the customers in a sort of demo of the installation.  Can anyone help plese here?  It is a laboratory configuration I do to perform vMotion, so I practice for my VCP.  Thanks in advance.

    If you consider any comments as useful, please give points

    ---

    MCSA, MCTS, VCP, VMware vExpert 2009

    http://blog.vadmin.ru

  • get information from inside a trigger of the other tables in the schema even

    Addendum:

    ... Sorry I forgot: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64 bit

    *******************

    Hello

    I'm trying for a few hours to get information from inside a trigger to another table in the same pattern.

    My trigger is PSE_BKB. NUM_PHANTOM_BP

    I first tried a simple solution...


    CREATE OR REPLACE TRIGGER PSE_BKB. NUM_TR_PHANTOM_BP
    BEFORE DELETING, INSERTION OR UPDATE
    ON PSE_BKB. NUM_PHANTOM_BP
    REFERRING AGAIN AS NINE OLD AND OLD
    FOR EACH LINE
    DECLARE

    v_recht NUMBER (1): = 0;
    v_recht2 NUMBER (1): = 0;
    v_change_mitarbeiter NUMBER (1): = 0;
    v_recht_mitarbeiter NUMBER (1): = 0;
    v_typ varchar2 (20);
    v_obj_key varchar2 (11): = "gugus";
    v_ph_key varchar2 (11);
    -ph_key varchar2 (11);
    v_obj_keys varchar2 (4000): = ', ';

    anz_num NUMBER: = 0;
    anz_num_tmp NUMBER: = 0;
    anz_st_si NUMBER: = 0;


    BEGIN

    ...
    Select count (*)
    in anz_num
    of pse_bkb.num_objekt o
    where o.obj_key in
    (select distinct (ov.obj_key)
    of pse_bkb.num_objekt_verb ov
    where ov.phantom_key =: old.phantom_key
    )
    and o.typ = "NUM";

    ...

    Explanation: my trigger table is PSE_BKB. NUM_PHANTOM_BP.

    On the pse_bkb.num_objekt_verb of the table, I have a relationship 1: n to one or several object-key (field named obj_key!) on my referenced key: old.phantom_key. With this obj_key, I want to watch the weather, I have one or more lines in the table type num_objekt "NUM". So the internal selection gives me all the num_objekt_verb obj_key with my: old.phantom_key and with whom I count the number of lines I have on num_objekt with type "NUM".

    The problem is that the trigger does not see the table.

    I tried many variations.

    The latest version I tried was with a cursor inside the trigger definition as in the block of code below.

    For debugging purposes, I inserted a RAISE_APPLICATION_ERROR in the inner loop - see below. The v_obj_key variable is never defined, as in all the other variations, I tried-, I still see the predefined "gugus" in the declare section.

    It seems that oracle can not read other tables at this point. La: old.phantom_key is defined (in this simple example there would come a return obj_key).

    Thanks in advance for your help - and excuse my English.

    Trigger code:

    CREATE OR REPLACE TRIGGER PSE_BKB. NUM_TR_PHANTOM_BP
    BEFORE DELETING, INSERTION OR UPDATE
    ON PSE_BKB. NUM_PHANTOM_BP
    REFERRING AGAIN AS NINE OLD AND OLD
    FOR EACH LINE
    DECLARE

    v_recht NUMBER (1): = 0;
    v_recht2 NUMBER (1): = 0;
    v_change_mitarbeiter NUMBER (1): = 0;
    v_recht_mitarbeiter NUMBER (1): = 0;
    v_typ varchar2 (20);
    v_obj_key varchar2 (11): = "gugus";
    v_ph_key varchar2 (11);
    -ph_key varchar2 (11);
    v_obj_keys varchar2 (4000): = ', ';

    anz_num NUMBER: = 0;
    anz_num_tmp NUMBER: = 0;
    anz_st_si NUMBER: = 0;


    BEGIN


    Start
    declare

    cursor nums is

    Select obj_key
    of PSE_BKB.num_objekt_verb
    where phantom_key =: old.phantom_key;

    Start

    for the RC looping nums
    v_obj_key: = cr.obj_key;

    RAISE_APPLICATION_ERROR (-20099,' AGAIN 9 v_obj_key: ' | v_obj_key |) ': old.phantom_key ' | (: old.phantom_key);

    When the exit nums % NOTFOUND;

    Select count (*) in the pse_bkb.num_objekt anz_num_tmp where obj_key = v_obj_key and type = "NUM";
    anz_num: = anz_num + anz_num_tmp;
    end loop;

    end;
    end;

    Published by: user832075 on 14.01.2013 06:18

    The reason why you get count_n = 0 in tr_c is that there is no line in B with key_c = 17, to the moment you arrive at tr_c. The removal of B has already occurred, and since you're in a single transaction, the application for tr_c:

    select count(*)
      into   counter_n
      from   a aa
      where  aa.key_a in (select distinct(bb.key_a)
                          from   b bb
                          where  bb.key_c = v_ph_key
                         )
      and    aa.typ = 'n';
    

    'knows' that the row has been deleted then gets a number of 0.

    I added a set of instructions dbms_output to show the order in which triggers run, and that's what I get:

    SQL> delete from b_vw where key_a = 1 and key_c = 17 ;
    in trigger b_tr_vw
    In tr_b
    in tr_c
    delete from b_vw where key_a = 1 and key_c = 17
                *
    ERROR at line 1:
    ORA-20077: Remark: counter_n: 0 counter_s: 0 v_ph_key: 17 old.key_c: 17
    new.key_c:
    ORA-06512: at "OPS$ORACLE.TR_C", line 38
    ORA-04088: error during execution of trigger 'OPS$ORACLE.TR_C'
    ORA-06512: at "OPS$ORACLE.B_TR_VW", line 17
    ORA-04088: error during execution of trigger 'OPS$ORACLE.B_TR_VW'
    

    Thus b_tr_vw trigger is triggered first and deletes a B. trigger fires tr_b as part of this statement to remove and check against A, happening apparently so no error is triggered and succeeds the removal of B. Now tr_b_vw takes back control and deletes C. Since the B line which has key_c = 17 already deleted a control for counter_n > 0 and counter_s = 0 fails and raise you the-20002 error. Note that I'm assuming that the error of-20077 you lift is just to see the values and is not intended to be part of your actual code.

    Because I have really no idea what you're trying to accomplish here I can't offer a lot of advice that you might want to try entering two tr_c of the tr_b_vw trigger validation queries before deliver you the removal of b and put the counter_n > 0 and counter_s = 0 control under tr_b_vw to decide whether or not you want to remove.

    John

  • ORA-01031 after upgrade of 10gr 2-11 GR 2 on the application tables

    I have a strange problem after I upgraded from 10.2.0.4 to 11.2.0.2. I have now two databases: TEST10g and TEST11g

    I have a user on my TEST10g database (10g) and my TEST11g database (11g). We'll call it OPS$ BRAND. It is the same between the two databases. This user has no roles with rights and the following system privileges:

    Select * from dba_sys_privs where dealer = ' OPS$ MARK "order of privilege;

    MODIFY AN INDEX
    MODIFY A MATERIALIZED VIEW
    ALTER SESSION STATEMENT
    ANALYZE A
    CREATE AN INDEX
    CREATE A MATERIALIZED VIEW
    CREATE PUBLIC SYNONYM
    CREATE SESSION
    CREATE SYNONYM
    REMOVE ANY INDEX
    REMOVE ANY MATERIALIZED VIEW
    REMOVE ANY SYNONYM
    RUN A PROCEDURE
    UNLIMITED TABLESPACE

    It has the same privileges of object in the two databases.

    The user of our application, APP001, has a number of packages and tables. In the database TEST10g, PAHO$ BRAND is able to SELECT a tbl_awesome:

    SELECT * FROM APP001.tbl_awesome;
    < many lines >

    However, when I run this from TEST11g (again, the privileges of the user are all the same), I get the following:

    SELECT * FROM APP001.tbl_awesome;
    ERROR on line 1:
    ORA-01031: insufficient privileges

    End user claims this is part of an anonymous block. However, I do not think that it is just that I do not understand how the OPS$ BRAND is able to access the TEST10g dashboard. As far as I understand, the only explanation is that we use the appellant's rights by calling a package held by APP001 and obtaining these rights, etc, etc. When you run the package as long as the user to MARK OPS$.

    I see something similar with the end user through forms. Looks like they are trying to access a table in the APP001 schema and access a set belonged to APP001. They receive the error ORA-01031 too.

    I have an another OPS$ user called OPS$ MIKE. This can read the table:

    SELECT * FROM APP001.tbl_awesome;
    < many lines >

    It's because he has the role of DEVELOPER who can SELECT ANY TABLE.

    The rights of the applicant/define have changed in 11 GR 2? I must be missing something obvious...

    Really make sure user is not having password roles: these kind of roles when activated by default up to 10.2.0.4. From 10.2.0.5 these roles are not enabled by default.

Maybe you are looking for

  • FF3 used to have a save button I could jump back several pages. Is there a way to FF4 for this?

    There is a backup in FF4 button is higher than round of FF3. But the right of the front there was a drop down menu that formularies the last dozen pages. This feature can be enabled in FF4 or should I look for a plugin to do this. I can't believe the

  • BIOS update failed - get a new motherboard?

    Well what can I say... I downloaded the update of the BIOS such as advised by TEMPRO or what ever it is called... Guess what the lovley fire off actavaited that became boring and are more and now my phone does not turn on! Toshiba would send me a new

  • White screen for a few seconds in El Capitan

    Hello Since I updated to Yosemite to El Capitan (10.11.2), I get a white screen on a regular basis for a few seconds and the normal back. I use a MBP 2011 end. I read somewhere that it could be due to an incompatible application, but for the moment I

  • HP Envy 700-056: HELP, installed gpu but about 6 long beeps start and not starting

    My pc was initially integrated graphics which simply do not cut it for some games so I decided to buy a graphics card (Sapphire x R9 double 270 x 4 GB of ddr5 memory). After putting in my gpu, I go to restart it and get to the white screen and 6 long

  • Pressure sensor ground loop problem

    Hello I have an interesting problem, I hope someone can help me with. I'm measuring pressure with a pressure sensor.  We see a lot of noise with the measure, and I believe that we have a ground loop.  I have checked the noise is 60 Hz.  What is inter