pl/sql delete online

CREATE TABLE T_TAB AS SELECT 1 NUM, 2 "ORDER" FROM DUAL UNION ALL
 SELECT 2 NUM, 3 "ORDER" FROM DUAL UNION ALL
 SELECT 5 NUM, 1 "ORDER" FROM DUAL UNION ALL
 select 8 num, 4 "ORDER" from dual;

CREATE TABLE T_REF AS SELECT 1 NUM, 5 DELETES FROM DUAL UNION ALL
SELECT 5 NUM, 1 DELETES FROM DUAL;

I have two tables above and need to delete records of T_TAB line-by-line basis, based on the data in the table T_REF. The code below shows, I need to order the data in T_TAB by ASC of the 'ORDER' and be checked against table T_REF and remove the corresponding record. The following code deletes two records, but how can I change it so that it treats the line by line? I need my code delete and query select it again in 'Element '. The reason is that once, it processes the first record delete NUM = 1, the second disc (NUM = 5) should never be deleted from the NUM = 1 no longer exists because it has been deleted. If anyone can help? Thank you.

BEGIN
  FOR item IN (
    SELECT NUM
    FROM T_TAB order by "ORDER" asc
  )
  LOOP
DELETE FROM T_TAB WHERE NUM IN (SELECT DELETES FROM T_REF WHERE T_REF.NUM = ITEM.NUM);
commit;
  END LOOP;
END;
/

Hello

wouldn't be better select the correct lines instead of the slow transformation of line by line

DROP TABLE t_tab;
DROP TABLE t_ref;
CREATE TABLE t_tab AS
 SELECT 1 num, 2 order_by FROM dual UNION ALL
 SELECT 2 num, 3 order_by FROM dual UNION ALL
 SELECT 5 num, 1 order_by FROM dual UNION ALL
 SELECT 8 num, 4 order_by FROM dual;

CREATE TABLE t_ref AS
 SELECT 1 num, 5 deletes FROM dual UNION ALL
 SELECT 5 num, 1 deletes FROM dual;

SELECT  *
FROM    t_tab;

DELETE
FROM    t_tab
WHERE   num IN (
    WITH to_delete AS (
        SELECT  deletes
               ,t_ref.num
               ,ROW_NUMBER() OVER (ORDER BY t_tab.order_by) r
        FROM    t_ref
                JOIN t_tab
                  ON (t_ref.num = t_tab.num)
        )
    SELECT  d1.deletes
    FROM    to_delete d1
    WHERE NOT EXISTS(
        SELECT  1
        FROM    to_delete d2
        WHERE   d2.deletes = d1.num
        AND     d2.r < d1.r
        )
    );

SELECT  *
FROM    t_tab;
   ORDER_BY NUM

---------- ----------

     1 2
     2 3
     5 1
     8 4

1 Zeilen Debby.

   ORDER_BY NUM

---------- ----------

     2 3
     5 1
     8 4

Marcus

Tags: Database

Similar Questions

  • SQL - delete block!

    DBA dear friends,

    DB - 11.1.0.7

    I have borrowed in line for deletion in bulk in a table PL/SQL procedure. I'm trying to figure this out before the implementation-

    My table has a 22 millions of files, I need to delete records more of 14 days (about 15 million), then confirm each record 500 K.


    Do the Execute procedure below actually achieve?

    SQL > EXEC DSB. ORDER_PURGE ("14").

    This is the syntax of PL/SQL successfully created in the database-

    CREATE OR REPLACE PROCEDURE DSB. ORDER_PURGE (p_retention IN PLS_INTEGER)

    IS

    -This set to the largest a number as will support your restore/cancel

    v_delete_limit PLS_INTEGER: = 500000;

    BEGIN

    IF p_retention > 0

    THEN

    LOOP

    DELETE from ord.order where cre_dttm < trunc (sysdate) - p_retention

    AND ROWNUM < = v_delete_limit;

    WHEN THE OUTPUT SQL % ROWCOUNT = 0;

    COMMIT;

    END LOOP;

    COMMIT;

    END IF;

    Ord.order END of purge.

    /

    Your method is one of the methods of REMOVING BULK. As others have commented it seems that COMMIT in a LOOP is always a terrible thing but I'm not on it. It is above all a bad idea, but not always.

    There could be several approaches:

    1. search Ask Tom remove the site for CATS and in bulk. He recommends Tom create a table with the required lines (to not not deleted rows). Then, slide / truncate the old table and use your intermediate table for recreation.

    2. use of ROWNUM, something like you did it

    BEGIN

    LOOP

    REMOVE the TABLE Table_name WHERE AND ROWNUM<=>

    -print the lines if you wish

    WHEN THE OUTPUT SQL % ROWCOUNT = 0;

    COMMIT;

    END LOOP;

    END;

    It has its own advantages and disadvantages. I saw the site of Laurent Schneider where Tom Kyte also commented on. Very interesting discussions. You can take a look.

    http://laurentschneider.com/wordpress/2013/04/delete-one-billion-row.html

    3. use of DBMS_PARALLEL_EXECUTE (and why the version of your database is important)

    4. the use of the cursor and PL/SQL bulk operation, I think the worst of all these.

  • How to delete online internet site?

    I have a site hosted by GoDaddy/cPanel in Muse. How to make the site down? Is the best way to do this through Muse or my host? Looks like this should be obvious, but I am currently developing a new version of the site using a completely new Muse file. I developed this new site design, and in the meantime I would like to remove the old site. Thanks in advance!

    Hello

    Download the new site of file > download to the FTP host, so there, you have to check for the drop down menu to choose (all files) instead of the modified files. like the image below.

    Which will delete the old site and replace it with a new one!

    Hope you find good,

    Concerning

  • Increase the performance of pl/sql delete

    version: 10g

    Hi all

    Help me please by increasing the performance of the code below,

    The code below takes about 10 min for deletion in 80 tables he recovered. Each table it does not remove more than 50,000 thousands

    Is there another way I can increase the performance of the below.

    I thought to delete forall, but I don't think its useful in this context.

    DECLARE

    v_num_2 PLS_INTEGER: = 50000;

    BEGIN

    THE C1

    (SELECT master: '.) '       || table_name table_name

    From all_tables owner WHERE = 'ARCHIVE' AND num_rows > 0 ORDER BY table_name

    )

    LOOP

    BEGIN

    EXECUTE IMMEDIATE 'remove'. C1.table_name |

    "where arch_ts < (sysdate-530) and rownum < =' | ' v_num_2;

    END LOOP;

    END;

    Thanks in advance

    Without asking what purpose your code is used:

    You can enable parallel DML and add a hint of parallel to your delete statement.

    Something like (not tested, but you'll get the idea):

    Start

    immediate 'alter session enable dml parallel. "

    --

    C1 in (select master: '.) ' || table_name table_name

    from all_tables

    where owner = "ARCHIVE".

    and num_rows > 0

    -order of table_name<-- not="" really="" needed,="" is="">

    )

    loop

    Start

    run immediately "remove / * + parallel (t 4) * / ' |"

    'from' | C1.table_name | |' t ' |

    "where arch_ts".< (sysdate-530)="">

    'and rownum '.<= 50000="">

    end loop;

    --

    immediate "alter session disable dml" parallel execution

    end;

    /

    You can test with different values for the declaration of principles (degree of parallelism), 4 in the index and find the optimal value.

  • recover the db when a redolog online is deleted

    Hi all

    I have backup rman 11g dB, someone file.now redolog deleted online I get the db via rman recovery but the problem is I dnt know the time and day this file online redolog is deleted.how I can find the time and the day where this file online redolog is deleted by the user? your help is appreciated.

    Thank you and best regards.

    XXXX.

    Unless the CURRENT log file is deleted, there is no need to use RMAN to RESTORE and RECOVER the database.

    You say that you do not know the time and day when the log file has been deleted.  This means that the CURRENT no logfile multiplexes has been removed.

    In all other cases, you need not to RMAN.

    Hemant K Collette

  • How to specify SQL custom querying the db with option to delete logical adapter

    Hi all

    I write a composite SOA application using JDeveloper SOA Suite 11.1.1.4 connection to a SQL Server database with the help of a Secretary of the poll the DB adapter with the logical delete option to send data to a BPEL process.

    I have requirements that go beyond what is supported in the UI JDeveloper for polling of the adaptor DB options, namely:
    * update several columns to mark each line read, and
    * specify different SQL to remove operation logic based on if bpel surveyed data processing was successful or not.
    A complicating factor is that the query contains two tables. Here is my complete use case:

    (1) mark will select data from two tables: for example 'headers' and 'details' simplified for this example:
    Table: headers
    HID - primary key
    name - plate
    status - "raw", "transformed" or "error".
    processedDate - null when the data is loaded, the DateTime current when the treatment of the line
    Table: Details
    HID - foreign key pointing header.hid
    attr - name attribute of data
    value - value of the attribute data

    2) there are a many relationship: 1 from detail lines to the header through the hidden columns. The adapter db SELECT the voting clerk must return results of an outer join consisting of line a header and the associated detail rows where header.status = 'no' and header.hid = details.hid. (This is supported by the UI Jdeveloper)

    (3) the survey data will be sent to be processed by a bpel process:
    (3.1) if the bpel treatment is successful, the logical delete operation (UPDATE) must set header.status = 'transformed' and header.processedDate = 'getdate() '.
    (3.2) if bpel treatment fails (for example hits a data error during the processing of the selected data) the logical delete operation (UPDATE) must be set to 'impossible' = header.status, header.processedDate = 'getdate()' and header.errorMsg = '{of the text returned by bpel}.

    Several parts of the #3 are not supported by the UI JDeveloper: update several columns to mark the addressed line, using getdate() to fill a value of one of these updates to the column, update of different operations based on the results of the BPEL, processing of the data (success or error) and using data from BPEL treating it as a value of these updates of column (error message).

    I found examples that describe the specification that is customized by using querying SQL Delete option to create a template and then modify the toplink files to specify custom select and update SQL to implement a logical deletion. (for example, http://dlimiter.wordpress.com/2009/11/05/advanced-logic-in-oracle-bpel-polling-database-adapter/ and http://myexperienceswithsoa.blogspot.com/2010/06/db-adapter-polling-tricks.html). But none of them match what I have in my project, in the first case because maybe because I use a newer version of JDeveloper and the second I think because in my case, two tables are involved.

    Any suggestion would be appreciated. Thank you, John

    Hi John,.

    You raised a good script.
    First of all, let me say that the purpose of the DB of the election operation, is to have an option to start the process of a DB table/view and not update several fields in a table (or have other complex manipulations on the table).
    Thus, when choose update a field in a record, after reading it, you "say" the engine not to question this record again. Of course, I guess you can find a solution/workaround for it, but I don't think that this is the way...

    The question now is what to do?
    You can have another DB adapter where you can update the data after you have completed the process. In this case, after reading the data (on the query operation) - updated the "transformed" for example = header.status and after processing the selected data update the rest fields.

    Hope it make sense for you.

    Arik

  • Delete the view online

    Hello members,


    No sorry, that is not on the preservation of the keys.


    Instead, I have two tables T1 and T2. I want to delete rows from T1 where the primary key is also in T2.

    I thought that if I select only from T1 then I would delete from the T1. But it turns out that it is the first table mentioned in the CLAUSE that is deleted since.
    SQL> create table t1 (x number primary key, c1 varchar2(1));
    
    Table created.
    
    SQL> create table t2 (x number primary key, c2 varchar2(1));
    
    Table created.
    
    SQL> 
    SQL> insert into t1 values (1,'a');
    
    1 row created.
    
    SQL> insert into t1 values (2,'b');
    
    1 row created.
    
    SQL> insert into t1 values (3,'c');
    
    1 row created.
    
    SQL> insert into t2 values (1,'X');
    
    1 row created.
    
    SQL> commit
      2  /
    
    Commit complete.
    
    SQL> 
    SQL> delete (select t1.x from T2, t1 where t2.x = t1.x);
    
    1 row deleted.
    
    SQL> select * from t1 union all select * from t2;
    
             X C
    ---------- -
             1 a
             2 b
             3 c
    
    SQL> rollback
      2  /
    
    Rollback complete.
    
    SQL> 
    SQL> delete (select t1.x from T1, t2 where t2.x = t1.x);
    
    1 row deleted.
    
    SQL> select * from t1 union all select * from t2;
    
             X C
    ---------- -
             2 b
             3 c
             1 X
    
    SQL> rollback
      2  /
    
    Rollback complete.
    
    SQL> 
    SQL> 
    SQL> select * from v$version where rownum = 1;
    
    BANNER
    ----------------------------------------------------------------
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bi
    
    SQL>
    Maybe I was sick home when Mrs teacher focused on this topic, maybe that I was not just pay attention.

    Or something else? -Are there a logic and/or the rules at issue here, that I've never heard of?

    Best regards
    Peter


    Edit:

    Seems that the selection list has nothing to do with it at all.
    This will remove T2
    delete (select null from T2, t1 where t2.x = t1.x);
    And this will remove T1:
    delete (select null from T1, t2 where t2.x = t1.x);
    Published by: Peter on 24 April 2012 06:01

    In fact this is on the preservation of the keys.

    9.2 documentation Oracle said...

    "You can delete a join view as in the join, there is a single table in the key."

    I don't remember if that was indeed the case in 9i but I think it's probably a bug of doc pending. The documentation was changed to 10g...

    "In a DELETE statement, if the join results in several key preserved tables, then Oracle database deletes the first table in the FROM clause"

    According to me, that it would be more complete to say.

    "In a DELETE statement, if the join results in a single table preserved key, then Oracle database removes from this table. If the join results in several key preserved tables, then Oracle base data removes it from the first table named in the FROM clause"

  • Online tutorial of SQL and PL/SQL

    Hello
    Anyone know any good SQL and PL/SQL tutorial online for free? I googled through and find some, I just want to know if I'm missing something.

    Much appreciated,
    Valerie

    Hello Valerie

    Maybe you can try this

    [http://www.w3schools.com/SQl/default.asp]

    or maybe this

    [http://www.sql-tutorial.net/]

  • Service SQL Server 2014 will not start start after the update sp1 (KB3058865, KB3075950, KB3094221)

    Hi, my SQL Server 2014 works very well in my server with WIndows 2012 until I installed the new day & service pack that was required for server hardening.

    I successfully installed SP1 KB 3058865 first, then discovered that the services do not start. After so much research to fix, I came with the 2 cu updates KB3075950, KB3094221 in knowing that it could solve my problem but unfortunately is not.

    I also tried to change the service account that many suggest, but his does not work.

    I tried to replace the master file & maslog but also failed.

    I tried to run etc and unique usermode and restore master db... also failed.

    Here is the log file:

    16/02/01 15:21:21.83 Server Microsoft SQL Server 2014 (SP1 - CU3) (KB3094221) - 12.0.4427.24 (X 64)
    October 10, 2015 17:18:26
    Copyright (c) Microsoft Corporation
    Standard Edition (64-bit) on Windows NT 6.2 (build 9200 :) (hypervisor)

    2016-02-01 15:21:21.84 setting the server UTC: 08:00
    2016-02-01 15:21:21.84 Server (c) Microsoft Corporation.
    2016-02-01 15:21:21.84 server all rights reserved.
    2016-02-01 15:21:21.84 server process ID is 5128.
    2016-02-01 15:21:21.86 Server system manufacturer: "Microsoft Corporation", model of system: 'Virtual Machine '.
    2016-02-01 15:21:21.86 the server's authentication mode is MIXED.
    2016-02-01 15:21:21.86 Server record SQL Server messages in file ' C:\Program Files\Microsoft SQL Server\MSSQL12. MSSQLSERVER\MSSQL\Log\ERRORLOG'.
    2016-02-01 15:21:21.86 Server service account is "NT Service\MSSQLSERVER". This is an informational message; no user action is required.
    2016-02-01 15:21:21.86 registry server startup parameters:
    -d C:\Program Files\Microsoft SQL Server\MSSQL12. MSSQLSERVER\MSSQL\DATA\master.mdf
    e C:\Program Files\Microsoft SQL Server\MSSQL12. MSSQLSERVER\MSSQL\Log\ERRORLOG
    l C:\Program Files\Microsoft SQL Server\MSSQL12. MSSQLSERVER\MSSQL\DATA\mastlog.ldf
    2016-02-01 15:21:21.86 Server startup command line parameters:
    s 'MSSQLSERVER '.
    2016-02-01 15:21:22.27 Server SQL Server has detected 1 struggling with 1 cores per socket and 1 logical processors per socket, 1 total logical processors; using 1 logical processors based on SQL Server licenses. This is an informational message; no user action is required.
    2016-02-01 15:21:22.27 Server SQL Server starts at the normal base priority (= 7). It is an informational message only. No user action is required.
    2016-02-01 15:21:22.28 Server has detected 7999 MB of RAM. This is an informational message; no user action is required.
    2016-02-01 15:21:22.28 Server using conventional memory in the memory manager.
    2016-02-01 15:21:22.33 default server collation: SQL_Latin1_General_CP1_CI_AS (us_english 1033)
    2016-02-01 15:21:22.37 Server this instance of SQL Server is a latest report by using a process ID of 1600 at 01/02/2016 15:13:12 (local) 01/02/2016 07:13:12 (UTC). This is an informational message only; no user action is required.
    2016-02-01 15:21:22.38 the maximum number of connections administrator dedicated to this server instance is '1 '.
    2016-02-01 15:21:22.38 configuration of server node: node 0: CPU mask: 0 x 0000000000000001:0 Active CPU mask: 0 x 0000000000000001:0. This message provides a description of the NUMA configuration for this computer. It is an informational message only. No user action is required.
    2016-02-01 15:21:22.40 allocation of dynamic locking using the server.  Initial allocation of blocks of lock of 2500 and 5000 per node lock owner.  It is an informational message only.  No user action is required.
    2016-02-01 15:21:22.43 spid8s start database 'master '.
    2016-02-01 15:21:22.49 Server CLR version loaded v4.0.30319.
    2016-02-01 15:21:22.51 spid8s d - 8 operations in the database 'master' (1:0). It is an informational message only. No user action is required.
    2016-02-01 15:21:22.61 Server common language features (CLR) runtime initialized using CLR version C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ v4.0.30319.
    2016-02-01 15:21:22.62 spid8s 0 operations cancelled in database 'master' (1:0). It is an informational message only. No user action is required.
    2016-02-01 15:21:22.62 spid8s Recovery is writing a checkpoint in database 'master ' (1). It is an informational message only. No user action is required.
    2016-02-01 15:21:22.79 spid8s SQL Server Audit begins audits. This is an informational message. No user action is required.
    2016-02-01 15:21:22.80 spid8s SQL Server Audit has begun audits. This is an informational message. No user action is required.
    2016-02-01 15:21:22.88 spid8s Trace SQL ID 1 was launched by the "sa" login
    2016-02-01 15:21:23.28 spid8s server name is "UATCASADB". It is an informational message only. No user action is required.
    2016-02-01 15:21:23.28 spid13s A self-generated certificate was loaded successfully for encryption.
    2016-02-01 15:21:23.33 spid13s Server listens on ['none' 1433].
    2016-02-01 15:21:23.40 spid13s Server listens on ['none' 1433].
    local connections provider 2016-02-01 15:21:23.44 spid13s server is ready to accept connection on [\\.\pipe\SQLLocal\MSSQLSERVER].
    local connections provider 2016-02-01 15:21:23.44 spid13s server is ready to accept connection on [\\.\pipe\sql\query].
    2016-02-01 15:21:23.48 Server Server listens on [: 1 1434].
    2016-02-01 15:21:23.49 Server Server listening on [127.0.0.1 1434 ].
    2016-02-01 15:21:23.49 connection admin support dedicated server was created for locally listening on port 1434.
    2016-02-01 15:21:23.49 Server SQL Server attempts to save an of Service Principal name (SPN, service principal name) for the SQL Server service. Kerberos authentication is not possible, until a name for the SQL Server service is SPN. This is an informational message. No user action is required.
    2016-02-01 15:21:23.60 spid14s A new instance of the full-text filter daemon host process has been started successfully.
    2016-02-01 15:21:23.71 Server SQL Server Network Interface library successfully registered the Service Principal Name (SPN) [MSSQLSvc/UATCASADB.onenetworkbank.com.ph] for the SQL Server service.
    2016-02-01 15:21:23.72 Server SQL Server Network Interface library successfully registered the Service Principal Name (SPN) [MSSQLSvc/UATCASADB.onenetworkbank.com.ph:1433] for the SQL Server service.
    2016-02-01 15:21:23.97 spid17s start database 'msdb '.
    2016-02-01 15:21:23.98 spid18s database startup "ReportServer".
    2016-02-01 15:21:23.98 spid19s database startup 'ReportServerTempDB '.
    2016-02-01 15:21:24.03 spid9s start database 'mssqlsystemresource '.
    2016-02-01 15:21:24.08 spid9s the base resource database build version is 12.00.4427. It is an informational message only. No user action is required.
    Error logon 2016-02-01 15:21:24.11: 18401, severity: 14, State: 1.
    2016-02-01 15:21:24.11 of logon login failed for user "NT SERVICE\ReportServer". Reason: The server is in script upgrade mode. Only one administrator can connect at this time. [CLIENT: ]
    2016-02-01 15:21:24.18 spid19s 1 transactions rolled forward in the 'ReportServerTempDB' (6:0) database. It is an informational message only. No user action is required.
    2016-02-01 15:21:24.28 spid19s 0 transactions cancelled in the database 'ReportServerTempDB' (6:0). It is an informational message only. No user action is required.
    2016-02-01 15:21:24.44 spid17s 133 transactions rolled forward in the database 'msdb' (4:0). It is an informational message only. No user action is required.
    2016-02-01 15:21:24.73 spid17s 0 transactions cancelled in the database 'msdb' (4:0). It is an informational message only. No user action is required.
    2016-02-01 15:21:24.74 spid17s Recovery is writing a checkpoint in database 'msdb' (4). It is an informational message only. No user action is required.
    2016-02-01 15:21:24.79 spid9s start database 'model '.
    2016-02-01 15:21:25.01 spid9s clearing tempdb database.

    2016-02-01 15:21:25.94 spid9s start database 'tempdb '.
    2016-02-01 15:21:26.12 spid20s The Service Broker endpoint is in a disabled or stopped state.
    2016-02-01 15:21:26.12 spid20s The Database Mirroring endpoint is disabled or stopped state.
    Manager of Service Broker 2016-02-01 15:21:26.15 spid20s began.
    2016-02-01 15:21:27.32 spid8s database 'master' is upgrading script 'msdb110_upgrade.sql' of level 201328592 level 201331019.
    2016-02-01 15:21:27.32 spid8s-
    2016-02-01 15:21:27.32 spid8s start PRE_MSDB execution. SQL
    2016-02-01 15:21:27.32 spid8s-
    2016-02-01 15:21:28.36 spid8s configuration database COMPATIBILITY_LEVEL option for 100 for database 'msdb '.
    2016-02-01 15:21:28.56 spid8s-
    2016-02-01 15:21:28.56 spid8s start PRE_SQLAGENT100 execution. SQL
    2016-02-01 15:21:28.56 spid8s-
    2016-02-01 15:21:28.60 spid8s configuration database option COMPATIBILITY_LEVEL of 120 for the database 'msdb '.
    2016-02-01 15:21:28.77 spid8s Configuration option 'allow updates' goes from 1 to 1. Run the RECONFIGURE statement to install.
    2016-02-01 15:21:28.77 spid8s Configuration option 'allow updates' goes from 1 to 1. Run the RECONFIGURE statement to install.
    Error logon 2016-02-01 15:21:29.18: 18401, severity: 14, State: 1.
    2016-02-01 15:21:29.18 of logon login failed for user "NT SERVICE\ReportServer". Reason: The server is in script upgrade mode. Only one administrator can connect at this time. [CLIENT: ]
    2016-02-01 15:21:31.84 spid8s attempting to load library 'xpstar.dll' in memory. It is an informational message only. No user action is required.
    "2016-02-01 by using spid8s 15:21:31.86"xpstar.dll' version ' 2014.120.4100 ' to run the extended stored procedure 'xp_instance_regread '. This is an informational message only; no user action is required.
    2016-02-01 15:21:31.89 spid8s DBCC TRACEOFF 1717, process server ID (SPID) 8. This is an informational message only; no user action is required.
    2016-02-01 15:21:31.89 spid8s DBCC execution completed. If DBCC printed in error messages, contact your system administrator.
    2016-02-01 15:21:31.90 spid8s
    2016-02-01 15:21:31.90 spid8s create table temp_sysjobschedules
    2016-02-01 15:21:32.20 spid8s
    2016-02-01 15:21:32.20 spid8s Alter table sysdownloadlist...
    2016-02-01 15:21:32.22 spid8s
    2016-02-01 15:21:32.22 spid8s Alter table sysjobhistory...
    2016-02-01 15:21:32.24 spid8s
    2016-02-01 15:21:32.24 spid8s Alter table systargetservers...
    2016-02-01 15:21:32.25 spid8s
    2016-02-01 15:21:32.25 spid8s Alter table sysjobsteps...
    2016-02-01 15:21:32.40 spid8s Configuration option 'allow updates' goes from 1 to 0. Run the RECONFIGURE statement to install.
    2016-02-01 15:21:32.40 spid8s Configuration option 'allow updates' goes from 1 to 0. Run the RECONFIGURE statement to install.
    2016-02-01 15:21:32.42 spid8s
    2016-02-01 15:21:32.42 spid8s-
    2016-02-01 15:21:32.42 spid8s PRE_SQLAGENT100 execution. Full SQL
    2016-02-01 15:21:32.42 spid8s-
    2016-02-01 15:21:32.46 spid8s DMF pre-shaping within walking distance...
    2016-02-01 15:21:32.83 spid8s DC pre-shaping within walking distance...
    2016-02-01 15:21:32.83 spid8s check if Data collector config table exists...
    2016-02-01 15:21:32.84 spid8s State of collector of data before the update: 0
    2016-02-01 15:21:32.84 spid8s pre_dc100::Check if syscollector_collection_sets_internal table exists...
    2016-02-01 15:21:32.84 spid8s pre_dc100::Capturing Collection to define the status of temporary table...
    2016-02-01 15:21:33.05 spid8s Deleting cached generated automatically collect T - SQL packages to msdb data...
    2016-02-01 15:21:33.05 spid8s end of the DC pre-staged to level as follows.
    2016-02-01 15:21:33.05 spid8s DAC pre-shaping within walking distance...
    2016-02-01 15:21:33.06 spid8s from CAD pre-shaping within walking distance...
    2016-02-01 15:21:33.06 spid8s end of the CAD pre-staged to level as follows.
    2016-02-01 15:21:33.06 spid8s-
    2016-02-01 15:21:33.06 spid8s start execution of MSDB. SQL
    2016-02-01 15:21:33.06 spid8s-
    2016-02-01 15:21:33.19 spid8s Configuration option 'allow updates' from 0 to 1. Run the RECONFIGURE statement to install.

    2016-02-01 15:21:33.19 spid8s Configuration option 'allow updates' from 0 to 1. Run the RECONFIGURE statement to install.
    2016-02-01 15:21:33.37 spid8s check the size of the MSDB.
    2016-02-01 15:21:33.63 spid8s error: 8966, severity: 16, State: 2.
    2016-02-01 15:21:33.63 spid8s can not read and lock the page (1:56616) with lock type SH. page no ID invalid. has failed.
    2016-02-01 15:21:33.63 spid8s error: 8946, severity: 16, State: 12.
    2016-02-01 15:21:33.63 spid8s Table error: Allocation page (1:56616) has invalid header values to the PFS_PAGE page. The type is 0. Check the type, unit ID of ID and the ID of the page on the page.
    2016-02-01 15:21:33.63 spid8s error: 912, severity: 21, State: 2.
    2016-02-01 15:21:33.63 spid8s Script level upgrade for database 'master' failed because upgrade step 'msdb110_upgrade.sql' has detected 3601, an error state 5, severity 25. It is a serious condition that could interfere with the normal operation and the database is taken offline. If the error occurred during the upgrade of the 'master' database, it will prevent the entirety of a SQL Server instance to start. Review the previous entries in the error log, take appropriate corrective action and restart the database so that the script upgrade steps run until the end.
    2016-02-01 15:21:33.64 spid8s error: 3417, severity: 21, State: 3.
    2016-02-01 15:21:33.64 spid8s cannot recover the master database. SQL Server cannot run. Master of restoring a full backup, repair or rebuild. For more information on how to rebuild the master database, see the SQL Server online documentation.
    2016-02-01 15:21:33.64 spid8s stop SQL Server launched
    2016-02-01 15:21:33.64 spid8s trace SQL stopped due to server shutdown. Trace ID = "1". This is an informational message only; no user action is required.
    2016-02-01 15:21:34.70 spid8s error: 25725, severity: 16, State: 1.
    2016-02-01 15:21:34.70 spid8s an error occurred trying to empty sessions extended all running events.  Some events may be lost.
    2016-02-01 15:21:34.71 spid13s the SQL Server Network Interface library could not deregister the Service Principal Name (SPN) [MSSQLSvc/servername.urldomain] for the SQL Server service. Error: 0x2af9, State: 61. Administrator should deregister this SPN manually to avoid client authentication errors.
    2016-02-01 15:21:34.71 spid13s the SQL Server Network Interface library could not deregister the Service Principal Name (SPN) [MSSQLSvc / servername.urldomain:1433] for the SQL Server service. Error: 0x2af9, State: 61. Administrator should deregister this SPN manually to avoid client authentication errors.

    -----------------------------------------------------------------------------------------------

    I would be grateful for all the help I can get. Thank you.

    Hello

    Your question is beyond the scope of this community.

    Please repost your question in the SQL Server TechNet Forums.

    https://social.technet.Microsoft.com/forums/SQLServer/en-us/home?category=SQLServer

    TechNet Server forums.

    http://social.technet.Microsoft.com/forums/WindowsServer/en-us/home?category=WindowsServer

    See you soon.

  • Basic SQL question

    CREATE TABLE test_table_1
    AS
       (    SELECT ROWNUM col
              FROM DUAL
        CONNECT BY ROWNUM <= 10);
    

    CREATE TABLE test_table_2
    AS
       (    SELECT ROWNUM col2
              FROM DUAL
        CONNECT BY ROWNUM <= 10);
    

    DELETE FROM test_table_1
          WHERE col IN (SELECT col                      ---------------------- There is no such column called col in test_table_2
                          FROM test_table_2);
    
    10 rows deleted!
    
    COMMIT;
    

    The column inside the subquery has never existed...

    SELECT col FROM test_table_2;                                ---  ORA-00904: "COL": invalid identifier
    

    How is it possible that a non-existent column is not followed while the application is being analyzed

    Can someone explain this if you please...

    Thanks for reading!

    Oracle version: 11.2.0.3.0

    See you soon,.

    Manik.

    1. DELETE FROM test_table_1
    2. WHERE col IN (SELECT col - there is no such column called col in test_table_2
    3. OF test_table_2);

    Quite expected behavior.  Cervical in your subquery refers to the same pass in your outer query.

    If you called your columns with a table alias (or the name of the entire table if you wish) the error would have been taken:

    SQL > DELETE FROM test_table_1 T1

    2. WHERE T1.col IN (SELECT T2.col

    3 test_table_2 T2);

    WHERE T1.col IN (SELECT T2.col

    *

    ERROR on line 2:

    ORA-00904: "T2." "" COL ": invalid identifier

  • ADF security with SQL authentication

    Hello

    I'm new in the adf and weblogic. I use weblogic built-in jdev 12 c 12.1.2.

    I set up the security in my weblogic using this blog.

    http://adfgouravtkiet.blogspot.com/2012/07/Configuring-ADF-security-using-database.html

    It is configured successfully. But after you configure when I restart my weblogic server, it will fail to start. This is stack strace.

    < 16 April 2014 17:46:33 hours CEST > < error > < security > < BEA-090870 > < the domain 'myrealm' could not be loaded: weblogic.security.service.SecurityServiceException: com.bea.common.engine.ServiceInitializationException: java.lang.NullPointerException.

    weblogic.security.service.SecurityServiceException: com.bea.common.engine.ServiceInitializationException: java.lang.NullPointerException

    at weblogic.security.service.CSSWLSDelegateImpl.initializeServiceEngine(CSSWLSDelegateImpl.java:341)

    at weblogic.security.service.CSSWLSDelegateImpl.initialize(CSSWLSDelegateImpl.java:220)

    at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.InitializeServiceEngine(CommonSecurityServiceManagerDelegateImpl.java:1812)

    at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initializeRealm(CommonSecurityServiceManagerDelegateImpl.java:447)

    at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.loadRealm(CommonSecurityServiceManagerDelegateImpl.java:845)

    Truncated. check the log file full stacktrace

    Caused by: com.bea.common.engine.ServiceInitializationException: java.lang.NullPointerException

    at com.bea.common.engine.internal.ServiceEngineImpl.findOrStartService(ServiceEngineImpl.java:365)

    at com.bea.common.engine.internal.ServiceEngineImpl.findOrStartService(ServiceEngineImpl.java:315)

    at com.bea.common.engine.internal.ServiceEngineImpl.lookupService(ServiceEngineImpl.java:257)

    at com.bea.common.engine.internal.ServicesImpl.getService(ServicesImpl.java:72)

    at weblogic.security.service.internal.WLSIdentityServiceImpl.initialize(WLSIdentityServiceImpl.java:46)

    Truncated. check the log file full stacktrace

    Caused by: java.lang.NullPointerException

    at weblogic.security.providers.authentication.shared.DBMSUtils.verifyHashAlgorithmUsable(DBMSUtils.java:43)

    at weblogic.security.providers.authentication.DBMSSQLAuthenticatorDelegateImpl.validateConfiguration(DBMSSQLAuthenticatorDelegateImpl.java:167)

    to weblogic.security.providers.authentication.DBMSSQLAuthenticatorDelegateImpl. < init > (DBMSSQLAuthenticatorDelegateImpl.java:77)

    at weblogic.security.providers.authentication.DBMSAuthenticatorDelegateImpl.getInstance(DBMSAuthenticatorDelegateImpl.java:459)

    at weblogic.security.providers.authentication.DBMSSQLAuthenticationProviderImpl.initialize(DBMSSQLAuthenticationProviderImpl.java:55)

    Truncated. check the log file full stacktrace

    >

    < 16 April 2014 17:46:33 hours CEST > < opinion > < security > < BEA-090082 > < security initialization using security realm myrealm. >

    < 16 April 2014 17:46:33 hours CEST > < critical > < WebLogicServer > < BEA-000362 > < server failed. Reason:

    There are 1 nested errors:

    weblogic.security.service.SecurityServiceRuntimeException: security services [Security: 090399] not available

    at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.doBootAuthorization(CommonSecurityServiceManagerDelegateImpl.java:921)

    at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initialize(CommonSecurityServiceManagerDelegateImpl.java:1058)

    at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:873)

    at weblogic.security.SecurityService.start(SecurityService.java:148)

    at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)

    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:295)

    at weblogic.work.ExecuteThread.run(ExecuteThread.java:254)

    >

    < 16 April 2014 17:46:33 hours CEST > < opinion > < WebLogicServer > < BEA-000365 > < Server state changed to FAILED. >

    < 16 April 2014 17:46:33 hours CEST > < error > < WebLogicServer > < BEA-000383 > < is not an essential service. The server shuts itself down. >

    < 16 April 2014 17:46:33 hours CEST > < opinion > < WebLogicServer > < BEA-000365 > < Server state has changed to FORCE_SHUTTING_DOWN. >

    Stopping Server Derby...

    Derby server stopped.

    Process is complete.

    [End of IntegratedWebLogicServer.]

    SQL authentication is configured using a data source. If I change the name of blind in weblogic in the config.xml file data source, he throws exception but able to start the server. can any body help to what he's trying to find the data source before inilizing it. Here is my file config.xml

    <? XML version = "1.0" encoding = "UTF - 8"? >

    "" "< domain xmlns ="http://xmlns.oracle.com/weblogic/domain"xmlns:sec ="http://xmlns.oracle.com/weblogic/security"xmlns:wls ="http://xmlns.oracle.com/weblogic/security/wls"" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi: schemaLocation = "http://xmlns.oracle.com/weblogic/security/xacml http://xmlns.oracle.com/weblogic/security/xacml/1.0/xacml.xsd http://xmlns.oracle.com/weblogic/security/providers/passwordvalidator http://xmlns.oracle.com/weblogic/security/providers/passwordvalidator/1.0/passwordvalidator.xsd http://xmlns.oracle.com/oracleas/schema/11/jps/weblogic/providers http://xmlns.oracle.com/weblogic/1.0/security.xsd http://xmlns.oracle.com/weblogic/domain http://xmlns.oracle.com/ WebLogic/1.0/Domain.xsd http://xmlns.oracle.com/weblogic/security http://xmlns.oracle.com/weblogic/1.0/security.xsd http://xmlns.oracle.com/weblogic/security/wls http://xmlns.oracle.com/weblogic/security/wls/1.0/wls.xsd' > '.

    < name > DefaultDomain < / name >

    field < version > 12.1.2.0.0 < / domain-version >

    > security configuration <

    < name > DefaultDomain < / name >

    < domain >

    < sec: authentication - provider xsi: type = "wls:sql - authenticatorType" >

    db_user < sec: name > < / sec: name >

    < sec: control - flag > SUFFICIENT < / sec: control - flag >

    < wls: data-source-name >workdayDS< / wls: data-source-name >

    < wls:plaintext - passwords-activated > true < / wls:plaintext - passwords-enabled >

    < wls:sql - get-users-Word of past > SELECT PASSWORD FROM WORKDAY_USERS WHERE username =? < / wls:sql - get-users-Word of past >

    < wls:sql - user - exists > SELECT name from USER OF WORKDAY_USERS WHERE username =? < / wls:sql - user - exists >

    < wls:sql - list-members-groups > short_name SELECT OF WORKDAY_user_role_grants g, workday_roles r, workday_users u WHERE g.usr_id = AND g.rle_id = r.id AND u.username u.id =? < / wls:sql - list-members-groups >

    < wls:sql - list-users > SELECT USER FROM WORKDAY_USERS WHERE name LIKE USER name? < / wls:sql - list-users >

    < wls:sql - get-user-description > SELECT DISPLAY_NAME FROM WORKDAY_USERS WHERE username =? < / wls:sql - get-user-description >

    < wls:sql - list-groups > SELECT SHORT_NAME FROM WORKDAY_ROLES WHERE SHORT_NAME AS? < / wls:sql - list-groups >

    < wls:sql - group - exists > SELECT SHORT_NAME WORKDAY_ROLES WHERE SHORT_NAME =? < / wls:sql - group - exists >

    < wls:sql - East-members > SELECT u.username OF WORKDAY_user_role_grants g, WORKDAY_users u WHERE u.id = g.usr_id AND rle_id = (SELECT id FROM WORKDAY_roles WHERE short_name =?) AND usr_id = (SELECT id FROM WORKDAY_users WHERE username =?) < / wls:sql - is-member >

    < wls:sql - get-group-description > SELECT name FROM workday_roles WHERE the short_name =? < / wls:sql - get-group-description >

    < wls:password - algorithm > < / wls:password - algorithm >

    < wls:password - style > PLAINTEXT < / wls:password - style >

    < wls:sql - create-user > INSERT INTO WORKDAY_USERS (USERNAME, PASSWORD, DISPLAY_NAME) VALUES (?,?,?) < / wls:sql - create-user >

    < wls:sql - user-delete > DELETE FROM WORKDAY_USERS WHERE username =? < / wls:sql - remove-user >

    < wls:sql - remove group memberships > DELETE FROM WORKDAY_user_role_grants WHERE rle_id = (SELECT id FROM workday_roles WHERE short_name =?) OR usr_id = (SELECT id FROM workday_users WHERE username =?) < / wls:sql - remove group memberships >

    < wls:sql - set-user-description > UPDATE WORKDAY_USERS SET DISPLAY_NAME =? WHERE USERNAME =? < / wls:sql - set-user-description >

    < wls:sql - set-user-word of past > UPDATE WORKDAY_USERS SET PASSWORD =? WHERE USERNAME =? < / wls:sql - set-user-word of past >

    < wls:sql - create group > VALUES INSERT INTO WORKDAY_ROLES (id, short_name, name) (ROLES_SEQ. NEXTVAL,?,?) < / wls:sql - create group >

    < wls:sql - set-group-description > UPDATE workday_roles SET name =? WHERE short_name =? < / wls:sql - set-group-description >

    < wls:sql - Add-Member-to-group > INSERT INTO workday_user_role_grants (id, rle_id, usr_id) VALUES (workday_user_role_grants_seq. NEXTVAL, (SELECT id FROM workday_roles WHERE short_name =?), (SELECT id FROM workday_users WHERE username =?)) < / wls:sql - Add-Member-to-group >

    < wls:sql - remove-member-of-group > DELETE FROM workday_user_role_grants WHERE rle_id = (SELECT id FROM workday_roles WHERE short_name =?) AND usr_id = (SELECT id FROM workday_users WHERE username =?) < / wls:sql - remove-member-of-group >

    < wls:sql - group-delete > DELETE FROM WORKDAY_ROLES WHERE short_name =? < / wls:sql - remove group >

    < wls:sql - delete-Group-members > DELETE FROM workday_user_role_grants WHERE rle_id = (SELECT id FROM workday_roles WHERE short_name =?) < / wls:sql - remove group member >

    < wls:sql - list-group-members > SELECT username FROM workday_user_role_grants g, workday_roles r, u workday_users WHERE g.usr_id = AND g.rle_id = r.id AND r.short_name u.id =? AND u.username AS? < / wls:sql - list-group-members >

    < / sec: authentication - provider >

    < sec: authentication - provider xsi: type = "wls:default - authenticatorType" >

    < sec: name > DefaultAuthenticator < / sec: name >

    < / sec: authentication - provider >

    "< sec: authentication - provider xmlns:prov ="http://xmlns.oracle.com/oracleas/schema/11/jps/weblogic/providers"xsi: type =" prov:trust - service-identity-asserterType ">"

    Trust Service identity Asserter < sec: name > < / sec: name >

    < / sec: authentication - provider >

    < sec: authentication - provider xsi: type = "wls:default - identity-asserterType" >

    < sec: name > DefaultIdentityAsserter < / sec: name >

    < dry: active-type > AuthenticatedUser < / dry: active-type >

    < / sec: authentication - provider >

    "< sec: role - Mapper xmlns:xac ="http://xmlns.oracle.com/weblogic/security/xacml"xsi: type =" xac:xacml - role-mapperType ">"

    < sec: name > XACMLRoleMapper < / sec: name >

    < / sec: role - Mapper >

    "< sec: authorizer xmlns:xac ="http://xmlns.oracle.com/weblogic/security/xacml"xsi: type =" xac:xacml - authorizerType ">"

    < sec: name > XACMLAuthorizer < / sec: name >

    < / sec: authorizer >

    < sec: adjudicator xsi: type = "wls:default - adjudicatorType" >

    < sec: name > DefaultAdjudicator < / sec: name >

    < / sec: adjudicator >

    < sec: credential - Mapper xsi: type = "wls:default - credential-mapperType" >

    < sec: name > DefaultCredentialMapper < / sec: name >

    < / sec: credential - Mapper >

    < sec: cert - path-provider xsi: type = "wls:web - logic-cert-path-providerType" >

    < sec: name > WebLogicCertPathProvider < / sec: name >

    < / sec: cert - path-supplier >

    < sec: cert - road-builder > WebLogicCertPathProvider < / sec: cert - road-builder >

    < sec: name > myrealm < / sec: name >

    "< sec: password - validator = xmlns:pas"http://xmlns.oracle.com/weblogic/security/providers/passwordvalidator"xsi: type =" not: System-Password - validatorType ">"

    < sec: name > SystemPasswordValidator < / sec: name >

    < not: min - password - > 8 length < / not: min - password - length >

    < not: min-digital - or - special-characters > 1 < / not: min-digital - or - special characters >

    < / sec: password - validator >

    < / domain >

    < domain >

    < sec: authentication - provider xsi: type = "wls:sql - authenticatorType" >

    db_user < sec: name > < / sec: name >

    < sec: control - flag > OPTIONAL < / sec: control - flag >

    < / sec: authentication - provider >

    < s: deploy-credential-mapping-ignored > true < / sec: deploy-credential-mapping-ignored >

    RDBMS < sec: name > < / sec: name >

    < / domain >

    field < default > myrealm < / default domain >

    < credentials encrypted > {ESA} oiXGiKafJRTHRLy3teTxciHGGJde23frXWjmnQAK2qQIuRYhySgd6oh/ZsnHQK1u99KboPN4Tjo5uS6tg37hufUPCJIdgDAhAOjBEZHVTXFc4YwQmZ6jdCpqlqEjUOkK < / encrypted credential >

    WebLogic < node-Manager-user name > < / node-Manager-user name >

    {ESA} < node-Manager-password - encrypted > dPzCkXm4Z8SaMVCroCwFXEIvbz/FTMroi8W/aDM7blA = < / node-Manager-password encrypted >

    < use-kss-for-demo > true < / use-kss-for-demo >

    < / security configuration >

    < Server >

    < name > DefaultServer < / name >

    < ssl >

    < name > DefaultServer < / name >

    < enabled > true < / enabled >

    < Listening port >

    8102

    < / Listen-port >

    < two - way ssl compatible > true < / two - way compatible ssl >

    < / ssl >

    < Listening port >

    8101

    < / Listen-port >

    > web server <

    < name > DefaultServer < / name >

    < log-server-web >

    < name > DefaultServer < / name >

    < elf fields > date time cs-method ctx-ctx - sc-status cs - uri DIN ecid < / elf fields >

    <-log file format > extended < / format of log file-->

    < / Web-server log >

    < / web server >

    BRP1LAP16 < listen-address > < / listen-address >

    < tunneling-enabled > true < / tunnel-enabled >

    <-diagnosis-server configuration >

    < name > DefaultServer < / name >

    < diagnosis-context-activated > true < / diagnosis-context-enabled >

    < / config-diagnosis-server >

    defaultCoherenceCluster < consistency cluster-system-resource > < / coherence-cluster-system-resources >

    < / Server >

    < incorporated-ldap >

    < name > DefaultDomain < / name >

    < credentials encrypted > {ESA} WRTXOv5WcAtcIZFA7g9azU4v/ogflkbFEN1TAdhhGbU6R7RiiSfLaouE6fgnkjRg < / encrypted credential >

    < / embedded-ldap >

    configuration < version > 12.1.2.0.0 < / configuration-version >

    < app deployment >

    State-management-provider-memory-rar < name > < / name >

    DefaultServer < target > < / target >

    RAR < module-type > < / module-type >

    C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/com.Oracle.State-management.State-management-provider-memory-RAR-impl_12.1.2.rar < source path > < / source-path >

    DDOnly <-security model dd > < / security-dd-model >

    > mode staged < nostage < / scene-mode implementation >

    < / app-deployment >

    < app deployment >

    DMS Application #11.1.1.1.0 < name > < / name >

    DefaultServer < target > < / target >

    war of < module-type > < / module-type >

    C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.dms_12.1.2/DMS.war < source path > < / source-path >

    < deployment-order > 5 < / order of deployment >

    DDOnly <-security model dd > < / security-dd-model >

    > mode staged < nostage < / scene-mode implementation >

    < / app-deployment >

    < app deployment >

    < name > wsil-wls #12.1.2.0.0 < / name >

    DefaultServer < target > < / target >

    ear of < module-type > < / module-type >

    C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/com.Oracle.WebServices.FMW.WSIL-WLS-impl_12.1.2.ear < source path > < / source-path >

    < deployment-order > 5 < / order of deployment >

    DDOnly <-security model dd > < / security-dd-model >

    > mode staged < nostage < / scene-mode implementation >

    < / app-deployment >

    < app deployment >

    < name > coherence-transaction-rar < / name >

    DefaultServer < target > < / target >

    RAR < module-type > < / module-type >

    < source path - > C:/Oracle12c/Middleware/Oracle_Home/oracle_common /... /Coherence/lib/Coherence-transaction.rar < / source-path >

    DDOnly <-security model dd > < / security-dd-model >

    > mode staged < nostage < / scene-mode implementation >

    < / app-deployment >

    < app deployment >

    < name > wsm - h < / name >

    DefaultServer < target > < / target >

    ear of < module-type > < / module-type >

    C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.WSM.pm_12.1.2/WSM-pm.ear < source path > < / source-path >

    < deployment-order > 5 < / order of deployment >

    DDOnly <-security model dd > < / security-dd-model >

    > mode staged < nostage < / scene-mode implementation >

    < / app-deployment >

    < Library >

    [email protected] oracle.sdp.client # < name > < / name >

    DefaultServer < target > < / target >

    C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.SDP.client_12.1.2/sdpclient.jar < source path > < / source-path >

    DDOnly <-security model dd > < / security-dd-model >

    > mode staged < nostage < / scene-mode implementation >

    < / Library >

    < Library >

    [email protected] oracle.pwdgen # < name > < / name >

    DefaultServer < target > < / target >

    C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.pwdgen_12.1.2/pwdgen.jar < source path > < / source-path >

    DDOnly <-security model dd > < / security-dd-model >

    > mode staged < nostage < / scene-mode implementation >

    < / Library >

    < Library >

    [email protected] owasp.esapi # < name > < / name >

    DefaultServer < target > < / target >

    C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.owasp_12.1.2/OWASP-esapi.jar < source path > < / source-path >

    DDOnly <-security model dd > < / security-dd-model >

    > mode staged < nostage < / scene-mode implementation >

    < / Library >

    < Library >

    [email protected] oracle.wsm.seedpolicies # < name > < / name >

    DefaultServer < target > < / target >

    C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.WSM.common_12.1.2/WSM-seed-policies.jar < source path > < / source-path >

    DDOnly <-security model dd > < / security-dd-model >

    > mode staged < nostage < / scene-mode implementation >

    < / Library >

    < Library >

    [email protected] odl.clickhistory # < name > < / name >

    DefaultServer < target > < / target >

    C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.odl_12.1.2/clickhistory.jar < source path > < / source-path >

    DDOnly <-security model dd > < / security-dd-model >

    > mode staged < nostage < / scene-mode implementation >

    < / Library >

    < Library >

    [email protected] odl.clickhistory.webapp # < name > < / name >

    DefaultServer < target > < / target >

    C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.odl_12.1.2/clickhistory.war < source path > < / source-path >

    DDOnly <-security model dd > < / security-dd-model >

    > mode staged < nostage < / scene-mode implementation >

    < / Library >

    < Library >

    < name > oracle.jrf.system.filter < / name >

    DefaultServer < target > < / target >

    C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.jrf_12.1.2/system-filters.war < source path > < / source-path >

    DDOnly <-security model dd > < / security-dd-model >

    > mode staged < nostage < / scene-mode implementation >

    < / Library >

    < Library >

    [email protected] oracle.jsp.next # < name > < / name >

    DefaultServer < target > < / target >

    C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.jsp_12.1.2/ojsp.jar < source path > < / source-path >

    DDOnly <-security model dd > < / security-dd-model >

    > mode staged < nostage < / scene-mode implementation >

    < / Library >

    < Library >

    < name > oracle.dconfig - infra #[email protected] < / name >

    DefaultServer < target > < / target >

    C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.dConfig-infra_12.1.2.jar < source path > < / source-path >

    DDOnly <-security model dd > < / security-dd-model >

    > mode staged < nostage < / scene-mode implementation >

    < / Library >

    < Library >

    < name > orai18n-adf #[email protected] < / name >

    DefaultServer < target > < / target >

    C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.nlsgdk_12.1.2/orai18n-ADF.jar < source path > < / source-path >

    DDOnly <-security model dd > < / security-dd-model >

    > mode staged < nostage < / scene-mode implementation >

    < / Library >

    < Library >

    [email protected] oracle.adf.dconfigbeans # < name > < / name >

    DefaultServer < target > < / target >

    jar of < module-type > < / module-type >

    C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.ADF.dconfigbeans_12.1.2.jar < source path > < / source-path >

    DDOnly <-security model dd > < / security-dd-model >

    > mode staged < nostage < / scene-mode implementation >

    < / Library >

    < Library >

    [email protected] adf.oracle.domain # < name > < / name >

    DefaultServer < target > < / target >

    ear of < module-type > < / module-type >

    C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.ADF.model_12.1.2/ADF.Oracle.domain.ear < source path > < / source-path >

    DDOnly <-security model dd > < / security-dd-model >

    > mode staged < nostage < / scene-mode implementation >

    < / Library >

    < Library >

    [email protected] adf.oracle.businesseditor # < name > < / name >

    DefaultServer < target > < / target >

    war of < module-type > < / module-type >

    C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.ADF.businesseditor_12.1.2/ADF.businesseditor.war < source path > < / source-path >

    DDOnly <-security model dd > < / security-dd-model >

    > mode staged < nostage < / scene-mode implementation >

    < / Library >

    < Library >

    [email protected] oracle.adf.management # < name > < / name >

    DefaultServer < target > < / target >

    war of < module-type > < / module-type >

    C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.ADF.management_12.1.2/ADF-management.war < source path > < / source-path >

    DDOnly <-security model dd > < / security-dd-model >

    > mode staged < nostage < / scene-mode implementation >

    < / Library >

    < Library >

    [email protected] adf.oracle.domain.webapp # < name > < / name >

    DefaultServer < target > < / target >

    war of < module-type > < / module-type >

    C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.ADF.view_12.1.2/ADF.Oracle.domain.webapp.war < source path > < / source-path >

    DDOnly <-security model dd > < / security-dd-model >

    > mode staged < nostage < / scene-mode implementation >

    < / Library >

    < Library >

    < name > jsf #[email protected]< / name >

    DefaultServer < target > < / target >

    war of < module-type > < / module-type >

    C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.jsf_2.1/JSF-RI-21.war < source path > < / source-path >

    DDOnly <-security model dd > < / security-dd-model >

    > mode staged < nostage < / scene-mode implementation >

    < / Library >

    < Library >

    < name > jstl #[email protected] < / name >

    DefaultServer < target > < / target >

    war of < module-type > < / module-type >

    C:\Oracle12c\Middleware\Oracle_Home\wlserver/common/deployable-libraries/JSTL-1.2.war < source path > < / source-path >

    DDOnly <-security model dd > < / security-dd-model >

    > mode staged < nostage < / scene-mode implementation >

    < / Library >

    < Library >

    < name > UIX #[email protected] < / name >

    DefaultServer < target > < / target >

    war of < module-type > < / module-type >

    C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.uix_12.1.2/uix11.war < source path > < / source-path >

    DDOnly <-security model dd > < / security-dd-model >

    > mode staged < nostage < / scene-mode implementation >

    < / Library >

    < Library >

    < name > ohw - FRC #[email protected] < / name >

    DefaultServer < target > < / target >

    war of < module-type > < / module-type >

    C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.help_5.0/OHW-RCF.war < source path > < / source-path >

    DDOnly <-security model dd > < / security-dd-model >

    > mode staged < nostage < / scene-mode implementation >

    < / Library >

    < Library >

    < name > ohw - uix #[email protected] < / name >

    DefaultServer < target > < / target >

    war of < module-type > < / module-type >

    C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.help_5.0/OHW-UIX.war < source path > < / source-path >

    DDOnly <-security model dd > < / security-dd-model >

    > mode staged < nostage < / scene-mode implementation >

    < / Library >

    < Library >

    [email protected] oracle.adf.desktopintegration.model # < name > < / name >

    DefaultServer < target > < / target >

    ear of < module-type > < / module-type >

    C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.ADF.desktopintegration.model_12.1.2/Oracle.ADF.desktopintegration.model.ear < source path > < / source-path >

    DDOnly <-security model dd > < / security-dd-model >

    > mode staged < nostage < / scene-mode implementation >

    < / Library >

    < Library >

    [email protected] oracle.adf.desktopintegration # < name > < / name >

    DefaultServer < target > < / target >

    war of < module-type > < / module-type >

    C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.ADF.desktopintegration_12.1.2/Oracle.ADF.desktopintegration.war < source path > < / source-path >

    DDOnly <-security model dd > < / security-dd-model >

    > mode staged < nostage < / scene-mode implementation >

    < / Library >

    < Library >

    [email protected] oracle.bi.jbips # < name > < / name >

    DefaultServer < target > < / target >

    ear of < module-type > < / module-type >

    C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.bi.presentation_12.1.2/bi-jbips-SLIB-stub.ear < source path > < / source-path >

    DDOnly <-security model dd > < / security-dd-model >

    > mode staged < nostage < / scene-mode implementation >

    < / Library >

    < Library >

    [email protected] oracle.bi.composer # < name > < / name >

    DefaultServer < target > < / target >

    war of < module-type > < / module-type >

    C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.bi.presentation_12.1.2/bi-composer-SLIB-stub.war < source path > < / source-path >

    DDOnly <-security model dd > < / security-dd-model >

    > mode staged < nostage < / scene-mode implementation >

    < / Library >

    < Library >

    [email protected] oracle.bi.adf.model.slib # < name > < / name >

    DefaultServer < target > < / target >

    ear of < module-type > < / module-type >

    C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.bi.presentation_12.1.2/bi-ADF-Model-SLIB.ear < source path > < / source-path >

    DDOnly <-security model dd > < / security-dd-model >

    > mode staged < nostage < / scene-mode implementation >

    < / Library >

    < Library >

    [email protected] oracle.bi.adf.view.slib # < name > < / name >

    DefaultServer < target > < / target >

    war of < module-type > < / module-type >

    C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.bi.presentation_12.1.2/bi-ADF-view-SLIB.war < source path > < / source-path >

    DDOnly <-security model dd > < / security-dd-model >

    > mode staged < nostage < / scene-mode implementation >

    < / Library >

    < Library >

    [email protected] oracle.bi.adf.webcenter.slib # < name > < / name >

    DefaultServer < target > < / target >

    war of < module-type > < / module-type >

    C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.bi.presentation_12.1.2/bi-ADF-WebCenter-SLIB.war < source path > < / source-path >

    DDOnly <-security model dd > < / security-dd-model >

    > mode staged < nostage < / scene-mode implementation >

    < / Library >

    <>shutdown-class

    < name > DMSShutdown < / name >

    DefaultServer < target > < / target >

    < deployment-order > 150 < / order of deployment >

    > class name < oracle.dms.wls.DMSShutdown < / class name >

    < / stop-class >

    <>start-class

    < name > class start JPS < / name >

    DefaultServer < target > < / target >

    < deployment > 115 order < / order of deployment >

    > class name < oracle.security.jps.wls.JpsWlsStartupClass < / class name >

    < failure-is-fatal > false < / failure-is-fatal >

    < charge-before-app-deployments > true < / load-front-app-deployments >

    < charge-before-app-activation > true < / load-front-app-activation >

    < / start class >

    <>start-class

    < name > JPS start after Activation class < / name >

    DefaultServer < target > < / target >

    < deployment-order > 160 < / order of deployment >

    > class name < oracle.security.jps.wls.JpsWlsPostServiceActivationStartup < / class name >

    < failure-is-fatal > false < / failure-is-fatal >

    < charge-before-app-deployments > false < / load-front-app-deployments >

    < charge-before-app-activation > true < / load-front-app-activation >

    < / start class >

    <>start-class

    < name > class start WSM < / name >

    DefaultServer < target > < / target >

    > class name < oracle.wsm.config.WSMServerStartupShutdownProvider < / class name >

    < / start class >

    <>start-class

    < name > class start JRF < / name >

    DefaultServer < target > < / target >

    < deployment > 110 order < / order of deployment >

    > class name < oracle.jrf.wls.JRFStartup < / class name >

    < failure-is-fatal > false < / failure-is-fatal >

    < charge-before-app-deployments > true < / load-front-app-deployments >

    < charge-before-app-activation > true < / load-front-app-activation >

    < / start class >

    <>start-class

    < name > ODL-start < / name >

    DefaultServer < target > < / target >

    < deployment > 145 order < / order of deployment >

    > class name < oracle.core.ojdl.weblogic.ODLConfiguration < / class name >

    < failure-is-fatal > false < / failure-is-fatal >

    < charge-before-app-deployments > true < / load-front-app-deployments >

    < charge-before-app-activation > true < / load-front-app-activation >

    < / start class >

    <>start-class

    < name > DMS-start < / name >

    DefaultServer < target > < / target >

    < deployment-order > 150 < / order of deployment >

    > class name < oracle.dms.wls.DMSStartup < / class name >

    < failure-is-fatal > false < / failure-is-fatal >

    < charge-before-app-deployments > true < / load-front-app-deployments >

    < charge-before-app-activation > true < / load-front-app-activation >

    < / start class >

    <>start-class

    < name > class start context AWT Application < / name >

    DefaultServer < target > < / target >

    < deployment-order > 150 < / order of deployment >

    > class name < oracle.jrf.AppContextStartup < / class name >

    < failure-is-fatal > false < / failure-is-fatal >

    < charge-before-app-deployments > true < / load-front-app-deployments >

    < charge-before-app-activation > true < / load-front-app-activation >

    < / start class >

    <>start-class

    < name > class start of Web Services < / name >

    DefaultServer < target > < / target >

    < deployment-order > 150 < / order of deployment >

    > class name < oracle.j2ee.ws.server.WebServiceServerStartup < / class name >

    < failure-is-fatal > false < / failure-is-fatal >

    < charge-before-app-deployments > true < / load-front-app-deployments >

    < charge-before-app-activation > true < / load-front-app-activation >

    < / start class >

    store < file >

    < name > mds-GOSA < / name >

    < Directory > store/gmds < / book >

    DefaultServer < target > < / target >

    < / file-store >

    < name-server-admin > DefaultServer < / name of the server-admin->

    < wldf-system-resources >

    Module FMWDFW < name > < / name >

    DefaultServer < target > < / target >

    < name-file-descriptor > diagnostics/Module-FMWDFW - 2818.xml < / file-descriptor-name >

    incident creates FMWDFW < description > from non-controlled Exceptions and critical errors < / description >

    < / wldf-system-resources >

    < jdbc-system-resources >

    < name > LocalSvcTblDataSource < / name >

    DefaultServer < target > < / target >

    < name-file-descriptor > jdbc/LocalSvcTblDataSource - jdbc.xml < / file-descriptor-name >

    < / jdbc-system-resources >

    < jdbc-system-resources >

    < name > opss-data-source < / name >

    DefaultServer < target > < / target >

    < name-file-descriptor > jdbc/opss-datasource - jdbc.xml < / file-descriptor-name >

    < / jdbc-system-resources >

    < jdbc-system-resources >

    < name > opss-audit-viewDS < / name >

    DefaultServer < target > < / target >

    < name-file-descriptor > jdbc/opss-auditview - jdbc.xml < / file-descriptor-name >

    < / jdbc-system-resources >

    < jdbc-system-resources >

    < name > opss-audit-DBDS < / name >

    DefaultServer < target > < / target >

    < name-file-descriptor > jdbc/opss-audit - jdbc.xml < / file-descriptor-name >

    < / jdbc-system-resources >

    < jdbc-system-resources >

    < name > mds-GOSA < / name >

    DefaultServer < target > < / target >

    < name-file-descriptor > jdbc/mds-GOSA - jdbc.xml < / file-descriptor-name >

    < / jdbc-system-resources >

    < jdbc-system-resources >

    < name > workdayDS < / name >

    DefaultServer < target > < / target >

    < name-file-descriptor > jdbc/workdayDS-6554 - jdbc.xml < / file-descriptor-name >

    < / jdbc-system-resources >

    < consistency cluster-system-resource >

    < name > defaultCoherenceCluster < / name >

    < name-file-descriptor > coherence/defaultCoherenceCluster - coherence.xml < / file-descriptor-name >

    < / coherence-cluster-system-resources >

    < / domain >

    Data source that I use it is wordayDS.

    I have deleted my domain name and create new ones yet to configure SQL authentication, and it works fine.

  • The analysis of SQL query

    Hi all

    In addition to the discussion of yesterday (https://community.oracle.com/message/11317343#11317343)

    For a list of the table used in the SQL query, there is another way.

    If we plan to explain for the query command, table plan we will be able to get all the table names.

    But in the query, if we used all the views, the tables used in the underlying views are also the list.

    I don't know how to do to get the name of view only, not the names of the underlying tables.

    Thank you

    Manon...

    Dint you pick me up I guess. If you see the plan for performance that I posted you will find oracle have not all table EMP scan. There is therefore no reference to the EMP table in the PLAN_TABLE.

    SQL > delete from plan_table;

    0 rows deleted.

    SQL > explain the plan for
    2. Select empno in emp;

    He explained.

    SQL > select * from plan_table where object_type = "TABLE";

    no selected line

  • Delete rows in double issue

    I have exactly same three lines in a table and I want to delete 1 and 3 rows... Can someone tell me how to write the query...?

    Date and table Desc

    NO NAME

    1 XXXX

    1 XXXX

    1 XXXX

    2 YYY

    SQL > drop table t3;

    Moved table

    SQL >

    SQL >

    SQL >

    SQL > create table t3 as

    2. Select 1A, b 'XXXX' Union double all the

    3. Select 1, 'XXXX' from dual union all

    4. Select 1, 'XXXX' from dual union all

    5. Select 2, 'YYYY' from dual

    6.

    Table created

    SQL >

    SQL >

    SQL > delete from the t3

    2 where rowid in)

    3. Select rd in)

    4 Select rowid rd, a, b, row_number() over (partition by order, b by rownum) t3 rn

    5)

    6 where rn > 1

    7)

    8.

    2 lines deleted

    SQL >

    SQL >

    SQL > select * T3;

    A AND B

    ---------- ----

    1 XXXX

    2 YYYY

    SQL >

    SQL > drop table t3 is serving;

    Moved table

    SQL >

    SQL >

    ----

    Ramin Hashimzade

  • Insensitivity to case and cache SQL space

    Hello

    I think that Oracle version 9i go supports case-sensitive hides SQL, i.e. the SQL statements in the cache can match independently of the case and the space. Please can anyone provide an authoritative answer confirming my assertion or makes me in the right direction, where I can verify these facts.

    I look forward to the answers.

    Best regards,

    Best answer is probably a simple demo:

    SQL> delete /*+ find this */ from t1 where owner = 'XXX';
    
    0 rows deleted.
    
    SQL> DELETE /*+ find this */ from t1 where owner = 'XXX';
    
    0 rows deleted.
    
    SQL> delete /*+ find this */ from    t1   where    owner = 'XXX';
    
    0 rows deleted.
    
    SQL> begin
      2  delete /*+ find this */ from t1 where owner = 'XXX';
      3  end;
      4  /
    
    PL/SQL procedure successfully completed.
    
    SQL> select sql_id, sql_text from v$sql where sql_text like '%find this%' and sql_text not like '%v$sql%';
    
    SQL_ID
    -------------
    SQL_TEXT
    ------------------------------------------------------------------
    7tc7jtr6jjd5r
    delete /*+ find this */ from t1 where owner = 'XXX'
    
    a4ud12x5fxmnw
    begin delete /*+ find this */ from t1 where owner = 'XXX'; end;
    
    bn65fyws830un
    delete /*+ find this */ from    t1   where    owner = 'XXX'
    
    9dumuwpg5b3ks
    DELETE /*+ find this */ from t1 where owner = 'XXX'
    
    9s7qm0xwcm7sc
    DELETE /*+ find this */ FROM T1 WHERE OWNER = 'XXX'
    
    5 rows selected.
    

    Notes that changes in the case, or the insertion of white space, produces a different SQL_ID, but when I set the static statement in pl/sql in SQL, it gets "normalized" by the PL/SQL engine uppercase without excess white space - may be what you think.

    Concerning

    Jonathan Lewis

    Now on twitter @jloracle

  • How to add the delete function to a report that is already created?

    Hey, guys:

    I'm not familiar with the form relative to the APEX. I have a lot of forms with the reports that has been created before, but they only create buttons. Now I need to add, edit and delete buttons. I wish I didn't have to recreate forms with reports. But when I tried to add the Remove feature by comparing a form with button Delete created by APEX, but it does not work. remove the button does not respond.

    parameter is as follows:

    style button: button model based
    model of button: button
    button type: normal

    Action: redirecting to a URL
    Run validation: No.
    Target URL: javascript:apex.confirm (htmldb_delete_message, 'DELETE');
    action of databases: SQL delete action

    condition type: point value / column in expression1 is not null
    expression1: P2172_ALIAS_ID

    I also activate the deletion in process: "SOR_ALIAS line process. '


    If I set the action of the button delete that submit the page, I can delete the line, but no standard popup alerts, could someone help me on this?

    Thank you.

    Sam

    Hello

    When you try to reproduce your problem, since all you posted was going well for me, I came across an error that htmldb_delete_message was not defined (you could check your browser console, usually by pressing F12 and select the console tab to see what happends when you press the button).
    Perhaps this is also the case in your configuration, simply replace the URL target with the text below to see if that's the problem.

    JavaScript:apex.confirm ("are you sure you want to delete this record?","REMOVE" ');

    Concerning
    Bottom

Maybe you are looking for

  • Cannot find my gmail

    The first entry in Firefox OSI, we have the gmail icon that I lost it. I just add my user name and my password and he agreed, but now I can't find my gmail webapp

  • Im having a problem with windows update.

    Im having a problem with windows update. I am running windows vista.seems as it downloads the updates, but when he tries to install I have three different error codes.  80200053 80070570 - FFFFFFFE.  Help.

  • BlackBerry smartphones cannot remove the BBM text

    Is it possible that I can delete a message that I sent the bbm without necessarily erase the whole cat?

  • HP Officejet Pro 8500 use on network home

    We just installed a HP 8500 at home, connected by ethernet to our router. My wife has an HP 8500 (also just installed) at his office.  His has been installed as a connected USB design. My wife's computer can access our local home network. Is it possi

  • Cancel my subscription to the month for creative cloud

    HelloI logged into my account and I tried to cancel my subscription, but 'Manage account' does not show the feature at all.In addition, customer care only led me on the same old page that tells me what to do to cancel but the cancel link at all.It is