My sql is massively leaves to be desired... (Remove the statement)

Hello world.

After skimming the forum, I started to think that me to come here with my sql noobie problem, might be overkill... but here goes.

It's simple. I need to delete all the records in the table 2, which is not used as a FK in table 1. I * in 'fat' * records I want to remove.

My current sql:

remove from Table2
If Table2.StatId not in
(select from Table1 StatId)


The two tables have approximately 1.2 million records each, which makes my SQL course takes forever (stopped after 1:30).


Table1:
ID (PK) StatId (FK) ReqId (FK)
1 10 100
2-11-110
3-11-120
4 14 130
5-15-135
6 17 150
7 18 155
8 18 160
9 19 165



Table2
StatId (PK) name
10 John
11 Malcor
* 12 Jeff *.
* Sara 13 *.
Melissa 14
Camilla 15
* Jessie 16 *.
17 Martin
18 Peter
Frank 19
* Bret 20 *.

Is there a better way to do this?

I am quite new to sql, and the large amount of data makes my flawed sql stand out even more.

Thanks in advance.

Hello

a DML statement like delete or update consists of two parts: the part 'selection', which identifies the lines to operate on and the part 'Edit' that performs the desired action. The first step in setting up a hanging LMD stated must determine which of the two phases is responsible. You can do that by looking at explain plan or check wait events incurred during the session. Or, you can run a SELECT similar to your update statement and see how long it takes (if you are not familiar with SQL execution plans, it'll be easier):

select *
 from Table2
where Table2.StatId not in
(select StatId from Table1)

If the problem is with the part 'selection', then you must tune or add some index - display the plan and the DDL to your tables and indexes, and we will help you with that. If the problem is with the section "Edit", then solution depends on the exact nature of the problem (the simplest scenario is that another session is keeps a lock - then you must simply kill another session or complete the transaction).

Best regards
Nikolai

Tags: Database

Similar Questions

  • SQL Server Express of 2014 will not remove registry entries when uninstalling

    Hello

    I am responsible for the routine installation of our products in our society. We used to install SQL Server 2008 Express with our facility. We also checked the registry entries to detect if the SQL Server 2008 Express to a specific instance has been installed. When we run the uninstall for our program, we have also uninstalled auf instance. If it was the only forum wihtin SQL Server SQL Server hole has been uninstalled. This works as expected.

    Now, we want to implement the 2014 of SQL Server Express. The installation is successful and everything is working properly. But when we uninstall SQL Server 2014 leaves a large number of entries in the registry. In particular, the entry for the version number:

    HKEY_LOCAL_MACHINE\SOFTWARE\\Wow6432Node\\Microsoft\\Microsoft SQL Server\\120\\SQLServer2014\\CurrentVersion\Version

    This makes it difficult to detect if SQL Server 2014 is installed on the system, because SQL Server 2008 uninstall these entries when deleted as expected. OK I can check some folders and files, if they are available, but this does not seem the right way.

    Is this a bug, or are there reasons why the registry entries are not removed after uninstalling?

    Kind regards

    Christian

    This issue is beyond the scope of this site (for consumers) and to be sure, you get the best (and fastest) reply, we have to ask either on Technet (for IT Pro) or MSDN (for developers)

    *
  • How can I remove the text in the bookmarks bar and just leave the icons of bookmarks in the bookmark bar?

    I would like to make room for more sites on my bookmark bar so I would remove the text in the bookmarks bar and just leave the site of icon... what else there will be a lot more space to add on several sites in my bookmarks bar.

    SImple, open the bookmark properties and erase the name, to open the properties of the bookmark:

    • Go to bookmarks > > show all bookmarks > > or press Ctrl + Shift + B click on the bookmark to see properties.
    • Go to page bookmark, click on the Blue Star to see the properties or press Ctrl + D
  • Can I leave all my pictures from the iPhone where I imported on my Mac?

    It is easy and a stupid question, I know, but I want to be sure that doing the right thing!

    Please tell me: can I leave all my pictures from the iPhone where I imported prior to my MacBook?

    Is that what your iPhone sync in any way with your Mac? My photo stream? iCloud photo library?

    You import photos in iPhoto on your Mac? Or perhaps the Photos for Mac application?

  • HP 15-f337 laptop: is it OK to leave it plugged in all the time or do I have to remove battery?

    I use my laptop almost exclusively to my office with plugged into the wall. Should I unplug it when it gets to full load or do I remove the battery and stay connected or what?

    I have read different answers and want only the best for my laptop. I run Photoshop and Lightroom, in addition to other programs so it gets a good wookout of every day.

    Any advice would be helpful.

    Also, Im getting another EXACT memory stick (corresponds to the sticker with all the numbers, etc.), do I have to just jump in, or is there something else I need to do? Currently have 4 GB and adding another stick of 4 GB.

    Thanks again!

    Hello:

    This is a HP support document that provides useful information on how to maximize the battery life...

    It answers your question if it is OK to leave the charger plugged all the time... No, it's not.

    http://support.HP.com/us-en/document/c00596784

  • 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.

  • How can I remove the desired or invalid email addresses in automatic drop-down list when I start typing an e-mail address in Outlook?

    How can I remove the desired or invalid email addresses in automatic drop-down list that appears when I start typing an e-mail address in a new message (Outlook)?

    If you wish, you can also stop Outlook of suggesting e-mail addresses as you type.

    Tools > Options.
    Tab "Preferences".
    Click e-mail Options.
    Click Advanced e-mail Options.
    Do not forget to uncheck "suggest names while completing to, Cc, and BCC fields."
    And OK your way out.

  • Can BlackBerry Q10 I remove the gmail email account, but leave the contacts gmail and calendar?

    Hi all

    I want to remove the e-mail my HUB gmail account, but I don't want to delete gmail account entirely as I still want to synchronize calendar and contacts - most important. Is anyway to do this? To meet your quriosity I have configured domain with my google account, so I have e-mail account secondary which is the right domain address and rather, I use google address in my messages.

    OR at least:

    Is there a way to completely disable synchronization of email account? I put update in settings on "manual" but it is always up to date when I activate the wifi or data which is crazy because bb10 ate my data plan all when I wanted to check the bus because I get a lot of emails.

    Should be no problem. You may need to re-add the account from scratch and leave email calendar and contacts sync, but it should work as long as your GMail account is still valid.

  • Error occurs when you use SQL Server 2012 assessment vs window detail of the object in window 7 - KERNELBASE.dll exception 0xe0434352

    Hello

    Error occurs when you use SQL Server 2012 assessment vs window detail of the object in window 7.  I use the window of the object but the detail of the objects window arrives and immediately SQL Server stops with the error below and then opens again.  I didn't find any help with this specific error is but suspect there is a problem between SLQ Server 2012 et.NET Framework 4.  Unfortunately, I do not know what it takes in this regard.

    Thanks, Deb

    Event ID: 1000
    Task category: (100)
    Level: error
    Keywords: Classic
    User: n/a
    Computer: Deb - HP
    Description:
    Name of the failing application: Ssms.exe, version: 2011.110.3000.0, time stamp: 0x5081c1cd
    Name of the failed module: KERNELBASE.dll, version: 6.1.7601.18015, time stamp: 0x50b83c8a
    Exception code: 0xe0434352
    Offset: 0x0000c41f
    ID of the process failed: 0x13a8
    Start time of application vulnerabilities: 0x01ce609a6d3db991
    The failing application path: C:\tempSQLWOW\110\Tools\Binn\ManagementStudio\Ssms.exe
    Path of the failing module: C:\Windows\syswow64\KERNELBASE.dll
    Report ID: 1fb1cbfb-cc8e-11e2-b436-abd2bebb3f17

    Hi Claude,.

    The question you posted would be better suited in the TechNet Forums. I would recommend posting your query in the link below.

    http://social.technet.Microsoft.com/forums/en-us/category/SQLServer

    Good day!

    Answer please if you face concerns.

  • Question to load data using sql loader in staging table, and then in the main tables!

    Hello

    I'm trying to load data into our main database table using SQL LOADER. data will be provided in separate pipes csv files.

    I have develop a shell script to load the data and it works fine except one thing.

    Here are the details of a data to re-create the problem.

    Staging of the structure of the table in which data will be filled using sql loader

    create table stg_cmts_data (cmts_token varchar2 (30), CMTS_IP varchar2 (20));

    create table stg_link_data (dhcp_token varchar2 (30), cmts_to_add varchar2 (200));

    create table stg_dhcp_data (dhcp_token varchar2 (30), DHCP_IP varchar2 (20));

    DATA in the csv file-

    for stg_cmts_data-

    cmts_map_03092015_1.csv

    WNLB-CMTS-01-1. 10.15.0.1

    WNLB-CMTS-02-2 | 10.15.16.1

    WNLB-CMTS-03-3. 10.15.48.1

    WNLB-CMTS-04-4. 10.15.80.1

    WNLB-CMTS-05-5. 10.15.96.1

    for stg_dhcp_data-

    dhcp_map_03092015_1.csv

    DHCP-1-1-1. 10.25.23.10, 25.26.14.01

    DHCP-1-1-2. 56.25.111.25, 100.25.2.01

    DHCP-1-1-3. 25.255.3.01, 89.20.147.258

    DHCP-1-1-4. 10.25.26.36, 200.32.58.69

    DHCP-1-1-5 | 80.25.47.369, 60.258.14.10

    for stg_link_data

    cmts_dhcp_link_map_0309151623_1.csv

    DHCP-1-1-1. WNLB-CMTS-01-1,WNLB-CMTS-02-2

    DHCP-1-1-2. WNLB-CMTS-03-3,WNLB-CMTS-04-4,WNLB-CMTS-05-5

    DHCP-1-1-3. WNLB-CMTS-01-1

    DHCP-1-1-4. WNLB-CMTS-05-8,WNLB-CMTS-05-6,WNLB-CMTS-05-0,WNLB-CMTS-03-3

    DHCP-1-1-5 | WNLB-CMTS-02-2,WNLB-CMTS-04-4,WNLB-CMTS-05-7

    WNLB-DHCP-1-13 | WNLB-CMTS-02-2

    Now, after loading these data in the staging of table I have to fill the main database table

    create table subntwk (subntwk_nm varchar2 (20), subntwk_ip varchar2 (30));

    create table link (link_nm varchar2 (50));

    SQL scripts that I created to load data is like.

    coil load_cmts.log

    Set serveroutput on

    DECLARE

    CURSOR c_stg_cmts IS SELECT *.

    OF stg_cmts_data;

    TYPE t_stg_cmts IS TABLE OF stg_cmts_data % ROWTYPE INDEX BY pls_integer;

    l_stg_cmts t_stg_cmts;

    l_cmts_cnt NUMBER;

    l_cnt NUMBER;

    NUMBER of l_cnt_1;

    BEGIN

    OPEN c_stg_cmts.

    Get the c_stg_cmts COLLECT in BULK IN l_stg_cmts;

    BECAUSE me IN l_stg_cmts. FIRST... l_stg_cmts. LAST

    LOOP

    SELECT COUNT (1)

    IN l_cmts_cnt

    OF subntwk

    WHERE subntwk_nm = l_stg_cmts (i) .cmts_token;

    IF l_cmts_cnt < 1 THEN

    INSERT

    IN SUBNTWK

    (

    subntwk_nm

    )

    VALUES

    (

    l_stg_cmts (i) .cmts_token

    );

    DBMS_OUTPUT. Put_line ("token has been added: ' |") l_stg_cmts (i) .cmts_token);

    ON THE OTHER

    DBMS_OUTPUT. Put_line ("token is already present'");

    END IF;

    WHEN l_stg_cmts EXIT. COUNT = 0;

    END LOOP;

    commit;

    EXCEPTION

    WHILE OTHERS THEN

    Dbms_output.put_line ('ERROR' |) SQLERRM);

    END;

    /

    output

    for dhcp


    coil load_dhcp.log

    Set serveroutput on

    DECLARE

    CURSOR c_stg_dhcp IS SELECT *.

    OF stg_dhcp_data;

    TYPE t_stg_dhcp IS TABLE OF stg_dhcp_data % ROWTYPE INDEX BY pls_integer;

    l_stg_dhcp t_stg_dhcp;

    l_dhcp_cnt NUMBER;

    l_cnt NUMBER;

    NUMBER of l_cnt_1;

    BEGIN

    OPEN c_stg_dhcp.

    Get the c_stg_dhcp COLLECT in BULK IN l_stg_dhcp;

    BECAUSE me IN l_stg_dhcp. FIRST... l_stg_dhcp. LAST

    LOOP

    SELECT COUNT (1)

    IN l_dhcp_cnt

    OF subntwk

    WHERE subntwk_nm = l_stg_dhcp (i) .dhcp_token;

    IF l_dhcp_cnt < 1 THEN

    INSERT

    IN SUBNTWK

    (

    subntwk_nm

    )

    VALUES

    (

    l_stg_dhcp (i) .dhcp_token

    );

    DBMS_OUTPUT. Put_line ("token has been added: ' |") l_stg_dhcp (i) .dhcp_token);

    ON THE OTHER

    DBMS_OUTPUT. Put_line ("token is already present'");

    END IF;

    WHEN l_stg_dhcp EXIT. COUNT = 0;

    END LOOP;

    commit;

    EXCEPTION

    WHILE OTHERS THEN

    Dbms_output.put_line ('ERROR' |) SQLERRM);

    END;

    /

    output

    for link -.

    coil load_link.log

    Set serveroutput on

    DECLARE

    l_cmts_1 VARCHAR2 (4000 CHAR);

    l_cmts_add VARCHAR2 (200 CHAR);

    l_dhcp_cnt NUMBER;

    l_cmts_cnt NUMBER;

    l_link_cnt NUMBER;

    l_add_link_nm VARCHAR2 (200 CHAR);

    BEGIN

    FOR (IN) r

    SELECT dhcp_token, cmts_to_add | ',' cmts_add

    OF stg_link_data

    )

    LOOP

    l_cmts_1: = r.cmts_add;

    l_cmts_add: = TRIM (SUBSTR (l_cmts_1, 1, INSTR (l_cmts_1, ',') - 1));

    SELECT COUNT (1)

    IN l_dhcp_cnt

    OF subntwk

    WHERE subntwk_nm = r.dhcp_token;

    IF l_dhcp_cnt = 0 THEN

    DBMS_OUTPUT. Put_line ("device not found: ' |") r.dhcp_token);

    ON THE OTHER

    While l_cmts_add IS NOT NULL

    LOOP

    l_add_link_nm: = r.dhcp_token |' _TO_' | l_cmts_add;

    SELECT COUNT (1)

    IN l_cmts_cnt

    OF subntwk

    WHERE subntwk_nm = TRIM (l_cmts_add);

    SELECT COUNT (1)

    IN l_link_cnt

    LINK

    WHERE link_nm = l_add_link_nm;

    IF l_cmts_cnt > 0 AND l_link_cnt = 0 THEN

    INSERT INTO link (link_nm)

    VALUES (l_add_link_nm);

    DBMS_OUTPUT. Put_line (l_add_link_nm |) » '||' Has been added. ") ;

    ELSIF l_link_cnt > 0 THEN

    DBMS_OUTPUT. Put_line (' link is already present: ' | l_add_link_nm);

    ELSIF l_cmts_cnt = 0 then

    DBMS_OUTPUT. Put_line (' no. CMTS FOUND for device to create the link: ' | l_cmts_add);

    END IF;

    l_cmts_1: = TRIM (SUBSTR (l_cmts_1, INSTR (l_cmts_1, ',') + 1));

    l_cmts_add: = TRIM (SUBSTR (l_cmts_1, 1, INSTR (l_cmts_1, ',') - 1));

    END LOOP;

    END IF;

    END LOOP;

    COMMIT;

    EXCEPTION

    WHILE OTHERS THEN

    Dbms_output.put_line ('ERROR' |) SQLERRM);

    END;

    /

    output

    control files -

    DOWNLOAD THE DATA

    INFILE 'cmts_data.csv '.

    ADD

    IN THE STG_CMTS_DATA TABLE

    When (cmts_token! = ") AND (cmts_token! = 'NULL') AND (cmts_token! = 'null')

    and (cmts_ip! = ") AND (cmts_ip! = 'NULL') AND (cmts_ip! = 'null')

    FIELDS TERMINATED BY ' |' SURROUNDED OF POSSIBLY "" "

    TRAILING NULLCOLS

    ('RTRIM (LTRIM (:cmts_token))' cmts_token,

    cmts_ip ' RTRIM (LTRIM(:cmts_ip)) ")". "

    for dhcp.


    DOWNLOAD THE DATA

    INFILE 'dhcp_data.csv '.

    ADD

    IN THE STG_DHCP_DATA TABLE

    When (dhcp_token! = ") AND (dhcp_token! = 'NULL') AND (dhcp_token! = 'null')

    and (dhcp_ip! = ") AND (dhcp_ip! = 'NULL') AND (dhcp_ip! = 'null')

    FIELDS TERMINATED BY ' |' SURROUNDED OF POSSIBLY "" "

    TRAILING NULLCOLS

    ('RTRIM (LTRIM (:dhcp_token))' dhcp_token,

    dhcp_ip ' RTRIM (LTRIM(:dhcp_ip)) ")". "

    for link -.

    DOWNLOAD THE DATA

    INFILE 'link_data.csv '.

    ADD

    IN THE STG_LINK_DATA TABLE

    When (dhcp_token! = ") AND (dhcp_token! = 'NULL') AND (dhcp_token! = 'null')

    and (cmts_to_add! = ") AND (cmts_to_add! = 'NULL') AND (cmts_to_add! = 'null')

    FIELDS TERMINATED BY ' |' SURROUNDED OF POSSIBLY "" "

    TRAILING NULLCOLS

    ('RTRIM (LTRIM (:dhcp_token))' dhcp_token,

    cmts_to_add TANK (4000) RTRIM (LTRIM(:cmts_to_add)) ")" ""

    SHELL SCRIPT-

    If [!-d / log]

    then

    Mkdir log

    FI

    If [!-d / finished]

    then

    mkdir makes

    FI

    If [!-d / bad]

    then

    bad mkdir

    FI

    nohup time sqlldr username/password@SID CONTROL = load_cmts_data.ctl LOG = log/ldr_cmts_data.log = log/ldr_cmts_data.bad DISCARD log/ldr_cmts_data.reject ERRORS = BAD = 100000 LIVE = TRUE PARALLEL = TRUE &

    nohup time username/password@SID @load_cmts.sql

    nohup time sqlldr username/password@SID CONTROL = load_dhcp_data.ctl LOG = log/ldr_dhcp_data.log = log/ldr_dhcp_data.bad DISCARD log/ldr_dhcp_data.reject ERRORS = BAD = 100000 LIVE = TRUE PARALLEL = TRUE &

    time nohup sqlplus username/password@SID @load_dhcp.sql

    nohup time sqlldr username/password@SID CONTROL = load_link_data.ctl LOG = log/ldr_link_data.log = log/ldr_link_data.bad DISCARD log/ldr_link_data.reject ERRORS = BAD = 100000 LIVE = TRUE PARALLEL = TRUE &

    time nohup sqlplus username/password@SID @load_link.sql

    MV *.log. / log

    If the problem I encounter is here for loading data in the link table that I check if DHCP is present in the subntwk table, then continue to another mistake of the newspaper. If CMTS then left create link to another error in the newspaper.

    Now that we can here multiple CMTS are associated with unique DHCP.

    So here in the table links to create the link, but for the last iteration of the loop, where I get separated by commas separate CMTS table stg_link_data it gives me log as not found CMTS.

    for example

    DHCP-1-1-1. WNLB-CMTS-01-1,WNLB-CMTS-02-2

    Here, I guess to link the dhcp-1-1-1 with balancing-CMTS-01-1 and wnlb-CMTS-02-2

    Theses all the data present in the subntwk table, but still it gives me journal wnlb-CMTS-02-2 could not be FOUND, but we have already loaded into the subntwk table.

    same thing is happening with all the CMTS table stg_link_data who are in the last (I think here you got what I'm trying to explain).

    But when I run the SQL scripts in the SQL Developer separately then it inserts all valid links in the table of links.

    Here, she should create 9 lines in the table of links, whereas now he creates only 5 rows.

    I use COMMIT in my script also but it only does not help me.

    Run these scripts in your machine let me know if you also get the same behavior I get.

    and please give me a solution I tried many thing from yesterday, but it's always the same.

    It is the table of link log

    link is already present: dhcp-1-1-1_TO_wnlb-cmts-01-1

    NOT FOUND CMTS for device to create the link: wnlb-CMTS-02-2

    link is already present: dhcp-1-1-2_TO_wnlb-cmts-03-3
    link is already present: dhcp-1-1-2_TO_wnlb-cmts-04-4

    NOT FOUND CMTS for device to create the link: wnlb-CMTS-05-5

    NOT FOUND CMTS for device to create the link: wnlb-CMTS-01-1

    NOT FOUND CMTS for device to create the link: wnlb-CMTS-05-8
    NOT FOUND CMTS for device to create the link: wnlb-CMTS-05-6
    NOT FOUND CMTS for device to create the link: wnlb-CMTS-05-0

    NOT FOUND CMTS for device to create the link: wnlb-CMTS-03-3

    link is already present: dhcp-1-1-5_TO_wnlb-cmts-02-2
    link is already present: dhcp-1-1-5_TO_wnlb-cmts-04-4

    NOT FOUND CMTS for device to create the link: wnlb-CMTS-05-7

    Device not found: wnlb-dhcp-1-13

    IF NEED MORE INFORMATION PLEASE LET ME KNOW

    Thank you

    I felt later in the night that during the loading in the staging table using UNIX machine he created the new line for each line. That is why the last CMTS is not found, for this I use the UNIX 2 BACK conversion and it starts to work perfectly.

    It was the dos2unix error!

    Thank you all for your interest and I may learn new things, as I have almost 10 months of experience in (PLSQL, SQL)

  • How to remove the label of xml data in sql

    with a as
    (select '<?xml version="1.0"?>
    <ROWSET>
      <DEPT>
        <DEPTNO>10</DEPTNO>
        <DNAME>ACCOUNTING</DNAME>
        <LOC>NEW YORK</LOC>
        <EMP_LIST>
          <EMP_ROW>
            <EMPNO>7782</EMPNO>
            <ENAME>CLARK</ENAME>
            <JOB>MANAGER</JOB>
            <MGR>7839</MGR>
            <HIREDATE>09-JUN-1981 00:00:00</HIREDATE>
            <SAL>2450</SAL>
          </EMP_ROW>
        </EMP_LIST>
      </DEPT>
    </ROWSET>' from dual)
    select * from a;
    


    I want the output after removing the same < HIREDATE > tag

    <?xml version="1.0"?>
    <ROWSET>
      <DEPT>
        <DEPTNO>10</DEPTNO>
        <DNAME>ACCOUNTING</DNAME>
        <LOC>NEW YORK</LOC>
        <EMP_LIST>
          <EMP_ROW>
            <EMPNO>7782</EMPNO>
            <ENAME>CLARK</ENAME>
            <JOB>MANAGER</JOB>
            <MGR>7839</MGR>       
            <SAL>2450</SAL>
          </EMP_ROW>
        </EMP_LIST>
      </DEPT>
    </ROWSET>
    

    Please help me

    SQL> with a as (
      2  select '
      3  
      4    
      5      10
      6      ACCOUNTING
      7      NEW YORK
      8      
      9        
     10          7782
     11          CLARK
     12          MANAGER
     13          7839
     14          09-JUN-1981 00:00:00
     15          2450
     16        
     17      
     18    
     19  ' xmlcontent
     20  from dual
     21  )
     22  select xmlserialize(document
     23           xmlquery(
     24             'copy $d := .
     25              modify delete node $d/ROWSET/DEPT/EMP_LIST/EMP_ROW/HIREDATE
     26              return $d'
     27             passing xmlparse(document a.xmlcontent)
     28             returning content
     29           )
     30           indent
     31         ) as xmlcontent
     32  from a ;
    
    XMLCONTENT
    --------------------------------------------------------------------------------
    
    
      
        10
        ACCOUNTING
        NEW YORK
        
          
            7782
            CLARK
            MANAGER
            7839
            2450
          
        
      
    
    
  • Invalid column index: Houston-27122: SQL error in the preparation of the statement

    Hello

    I get under the exception in my extended OAF page:

    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: 27122 Houston: SQL error in the preparation of the statement.  Instruction: SELECT OpportunityEO.lead_id, OpportunityEO.last_update_date as LastUpdateDate, OpportunityEO.creation_date, OpportunityEO.lead_number, OpportunityEO.customer_id, NVL(OpportunityEO.TOTAL_AMOUNT,0) as value TotalAmount, OpportunityEO.Decision_Date, OpportunityEO.win_probability, OpportunityEO.description as the Description, OpportunityEO.Currency_Code, OpportunityEO.Source_Promotion_Id, OpportunityEO.OWNER_SALESFORCE_ID, OpportunityEO.TOTAL_REVENUE_OPP_FORECAST_AMT, null as VehicleResponseCode, ast.meaning as OpptyStatusName, null as CurrencyName, null as SalesStageName, hp.party_name as Nom_tiers, null as CustomerCategory , null as null as ContactName, null as PersonFirstName, null as PersonLastName, null as PersonMiddleName, null as salutation, null as EmailAddress, JobTitle as null, null as PhoneCountryCode, null as PhoneAreaCode, null as PhoneNumber PersonId, null as PhoneExtension, null as PhoneLineType, to_number (null) ContactPointId, null as FormattedPhone OpportunityEO.attribute1, hp.attribute4 city, (case WHEN (OpportunityEO.attribute13) length! = 19 THEN null ELSE fnd_date.canonical_to_date (OpportunityEO.attribute13) END) as a country , (case WHEN (OpportunityEO.attribute14) length! = 19 THEN null ELSE fnd_date.canonical_to_date (OpportunityEO.attribute14) END) as Province, null as PostalCode, to_number (null) ContactLocationId, null as address, null as SourceName, jrt.resource_name as ResourceName, null as SalesChannel, null as RelationShipId, null as PrimaryContactPartyId, null as CustState, null as CustCity, null as CustCountry, null as CustProvince, null as CustPostalCode, to_number (null) as CustomerLocationId , null as CustAddress, null, OpptyUpdatedBy, null, OpptyCreatedBy, null as MethodologyNm, null as CloseReason, null as AssignmentStatusNm, OpportunityEO.PRM_Referral_Code as ReferralCode, null as PrimaryPhoneCountryCode, null as PrimaryPhoneAreaCode, null as PrimaryPhoneNumber, null as PrimaryPhoneExtension, null as PrimaryPhoneLineType, to_number (null) CustomerContactPointId, null as CustFormattedPhone, null as CustEmailAddress, null as ConvAmt, null as ConvFrcstAmt, null in the source code of as_leads_all OpportunityEO  , (SELECT / * + no_merge * / separate FROM as_accesses_all aaa aaa.lead_id WHERE the aaa.sales_lead_id of the aaa.lead_id IS NULL AND IS NOT NULL AND aaa.open_flag = 'Y' AND aaa.salesforce_id =: 0) social security, ast as_statuses_tl, as_lead_contacts_all alca, hz_parties HC, fnd_territories_tl ftt, hp hz_parties, jrt from jtf_rs_resource_extns_tl WHERE OpportunityEO.lead_id = secu.lead_id AND OpportunityEO.status = ast.status_code AND ast.language = USERENV('LANG') AND OpportunityEO.lead_id = alca.lead_id AND OpportunityEO.customer_ ID = alca.customer_id AND ALCA.primary_contact_flag = 'Y' AND alca.contact_party_id = hcp.party_id (+) AND hcp.country = ftt.territory_code AND ftt.language = USERENV ('LANG') AND OpportunityEO.customer_id = hp.party_id AND OpportunityEO.owner_salesforce_id = jrt.resource_id AND jrt.language = USERENV ('LANG') ORDER BY LastUpdateDate DESC

    at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:912)

    at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:886)

    at oracle.apps.fnd.framework.OAException.wrapperInvocationTargetException(OAException.java:1009)

    at oracle.apps.fnd.framework.server.OAUtility.invokeMethod (unknown Source)

    at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:733)

    at oracle.apps.asn.opportunity.webui.ASNOpptyLstCO.executeOpptyQuery (unknown Source)

    at oracle.apps.xxfe.f486.asn.opportunity.webui.ASNOpptyLstCOEx.executeOpptyQuery(ASNOpptyLstCOEx.java:335)

    at oracle.apps.asn.opportunity.webui.ASNOpptyLstCO.processFormRequest (unknown Source)

    at oracle.apps.xxfe.f486.asn.opportunity.webui.ASNOpptyLstCOEx.processFormRequest(ASNOpptyLstCOEx.java:134)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:854)

    at oracle.apps.fnd.framework.webui.OATableHelper.processFormRequest(OATableHelper.java:460)

    at oracle.apps.fnd.framework.webui.beans.table.OATableBean.processFormRequest(OATableBean.java:1058)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1066)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1032)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:887)

    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:407)

    at oracle.apps.fnd.framework.webui.beans.layout.OAHeaderBean.processFormRequest(OAHeaderBean.java:410)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1066)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1032)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:887)

    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:407)

    at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormRequest (unknown Source)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1066)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1032)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:887)

    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:407)

    at oracle.apps.fnd.framework.webui.OAQueryHelper.processFormRequest(OAQueryHelper.java:1035)

    at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormRequest (unknown Source)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1066)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1032)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:887)

    at oracle.apps.fnd.framework.webui.beans.OAFlexibleContentBean.processFormRequest(OAFlexibleContentBean.java:372)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1066)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1032)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:887)

    at oracle.apps.fnd.framework.webui.beans.layout.OAFlexibleLayoutBean.processFormRequest(OAFlexibleLayoutBean.java:376)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1066)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1032)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:887)

    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:407)

    at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormRequest (unknown Source)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1066)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1032)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:887)

    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:407)

    at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1319)

    at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1066)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1032)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:887)

    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:407)

    at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest (unknown Source)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1066)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1032)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:887)

    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:407)

    at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)

    at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:3172)

    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1927)

    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:567)

    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:455)

    at _pages.__oa._jspService(__oa.java:233)

    at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)

    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:227)

    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)

    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)

    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)

    at oracle.apps.fnd.security.WLFilter.doFilter(WLFilter.java:213)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)

    at oracle.apps.jtf.cabo.interceptor.JTFWrapperFilter.doFilter(JTFWrapperFilter.java:141)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)

    at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter (unknown Source)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)

    at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:432)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)

    to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:119)

    at java.security.AccessController.doPrivileged (Native Method)

    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:324)

    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)

    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)

    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)

    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)

    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:163)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3748)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3714)

    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2283)

    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2182)

    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1491)

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

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

    # # 0 in detail

    java.sql.SQLException: invalid column index

    at oracle.jdbc.driver.OraclePreparedStatement.setNUMBERInternal(OraclePreparedStatement.java:8141)

    at oracle.jdbc.driver.OraclePreparedStatement.setObjectCritical(OraclePreparedStatement.java:10791)

    at oracle.jdbc.driver.OraclePreparedStatement.setCustomDatumInternal(OraclePreparedStatement.java:10401)

    at oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:11655)

    at oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedStatement.java:11631)

    at oracle.jdbc.driver.OraclePreparedStatementWrapper.setObject(OraclePreparedStatementWrapper.java:253)

    at weblogic.jdbc.wrapper.PreparedStatement.setObject(PreparedStatement.java:357)

    at oracle.jbo.server.BaseSQLBuilderImpl.bindParamValue(BaseSQLBuilderImpl.java:1847)

    at oracle.jbo.server.OracleSQLBuilderImpl.bindParamValue(OracleSQLBuilderImpl.java:3940)

    at oracle.jbo.server.BaseSQLBuilderImpl.bindParametersForStmt(BaseSQLBuilderImpl.java:3335)

    at oracle.jbo.server.ViewObjectImpl.bindParametersForCollection(ViewObjectImpl.java:14008)

    at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:804)

    at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:669)

    at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3754)

    at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection (unknown Source)

    at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4591)

    at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:751)

    at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:900)

    at oracle.jbo.server.ViewRowSetImpl.executeQueryForMode(ViewRowSetImpl.java:814)

    at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:808)

    at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3674)

    at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQuery(OAViewObjectImpl.java:439)

    at oracle.apps.xxfe.f486.asn.opportunity.server.ASNOpptyQryAMExImpl.initOpptyQuery(ASNOpptyQryAMExImpl.java:514)

    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:606)

    at oracle.apps.fnd.framework.server.OAUtility.invokeMethod (unknown Source)

    at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:733)

    at oracle.apps.asn.opportunity.webui.ASNOpptyLstCO.executeOpptyQuery (unknown Source)

    at oracle.apps.xxfe.f486.asn.opportunity.webui.ASNOpptyLstCOEx.executeOpptyQuery(ASNOpptyLstCOEx.java:335)

    at oracle.apps.asn.opportunity.webui.ASNOpptyLstCO.processFormRequest (unknown Source)

    at oracle.apps.xxfe.f486.asn.opportunity.webui.ASNOpptyLstCOEx.processFormRequest(ASNOpptyLstCOEx.java:134)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:854)

    at oracle.apps.fnd.framework.webui.OATableHelper.processFormRequest(OATableHelper.java:460)

    at oracle.apps.fnd.framework.webui.beans.table.OATableBean.processFormRequest(OATableBean.java:1058)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1066)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1032)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:887)

    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:407)

    at oracle.apps.fnd.framework.webui.beans.layout.OAHeaderBean.processFormRequest(OAHeaderBean.java:410)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1066)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1032)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:887)

    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:407)

    at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormRequest (unknown Source)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1066)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1032)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:887)

    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:407)

    at oracle.apps.fnd.framework.webui.OAQueryHelper.processFormRequest(OAQueryHelper.java:1035)

    at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormRequest (unknown Source)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1066)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1032)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:887)

    at oracle.apps.fnd.framework.webui.beans.OAFlexibleContentBean.processFormRequest(OAFlexibleContentBean.java:372)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1066)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1032)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:887)

    at oracle.apps.fnd.framework.webui.beans.layout.OAFlexibleLayoutBean.processFormRequest(OAFlexibleLayoutBean.java:376)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1066)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1032)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:887)

    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:407)

    at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormRequest (unknown Source)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1066)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1032)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:887)

    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:407)

    at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1319)

    at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1066)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1032)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:887)

    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:407)

    at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest (unknown Source)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1066)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1032)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:887)

    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:407)

    at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)

    at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:3172)

    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1927)

    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:567)

    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:455)

    at _pages.__oa._jspService(__oa.java:233)

    at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)

    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:227)

    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)

    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)

    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)

    at oracle.apps.fnd.security.WLFilter.doFilter(WLFilter.java:213)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)

    at oracle.apps.jtf.cabo.interceptor.JTFWrapperFilter.doFilter(JTFWrapperFilter.java:141)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)

    at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter (unknown Source)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)

    at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:432)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)

    to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:119)

    at java.security.AccessController.doPrivileged (Native Method)

    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:324)

    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)

    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)

    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)

    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)

    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:163)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3748)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3714)

    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2283)

    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2182)

    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1491)

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

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

    java.sql.SQLException: invalid column index

    at oracle.jdbc.driver.OraclePreparedStatement.setNUMBERInternal(OraclePreparedStatement.java:8141)

    at oracle.jdbc.driver.OraclePreparedStatement.setObjectCritical(OraclePreparedStatement.java:10791)

    at oracle.jdbc.driver.OraclePreparedStatement.setCustomDatumInternal(OraclePreparedStatement.java:10401)

    at oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:11655)

    at oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedStatement.java:11631)

    at oracle.jdbc.driver.OraclePreparedStatementWrapper.setObject(OraclePreparedStatementWrapper.java:253)

    at weblogic.jdbc.wrapper.PreparedStatement.setObject(PreparedStatement.java:357)

    at oracle.jbo.server.BaseSQLBuilderImpl.bindParamValue(BaseSQLBuilderImpl.java:1847)

    at oracle.jbo.server.OracleSQLBuilderImpl.bindParamValue(OracleSQLBuilderImpl.java:3940)

    at oracle.jbo.server.BaseSQLBuilderImpl.bindParametersForStmt(BaseSQLBuilderImpl.java:3335)

    at oracle.jbo.server.ViewObjectImpl.bindParametersForCollection(ViewObjectImpl.java:14008)

    at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:804)

    at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:669)

    at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3754)

    at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection (unknown Source)

    at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4591)

    at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:751)

    at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:900)

    at oracle.jbo.server.ViewRowSetImpl.executeQueryForMode(ViewRowSetImpl.java:814)

    at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:808)

    at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3674)

    at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQuery(OAViewObjectImpl.java:439)

    at oracle.apps.xxfe.f486.asn.opportunity.server.ASNOpptyQryAMExImpl.initOpptyQuery(ASNOpptyQryAMExImpl.java:514)

    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:606)

    at oracle.apps.fnd.framework.server.OAUtility.invokeMethod (unknown Source)

    at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:733)

    at oracle.apps.asn.opportunity.webui.ASNOpptyLstCO.executeOpptyQuery (unknown Source)

    at oracle.apps.xxfe.f486.asn.opportunity.webui.ASNOpptyLstCOEx.executeOpptyQuery(ASNOpptyLstCOEx.java:335)

    at oracle.apps.asn.opportunity.webui.ASNOpptyLstCO.processFormRequest (unknown Source)

    at oracle.apps.xxfe.f486.asn.opportunity.webui.ASNOpptyLstCOEx.processFormRequest(ASNOpptyLstCOEx.java:134)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:854)

    at oracle.apps.fnd.framework.webui.OATableHelper.processFormRequest(OATableHelper.java:460)

    at oracle.apps.fnd.framework.webui.beans.table.OATableBean.processFormRequest(OATableBean.java:1058)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1066)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1032)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:887)

    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:407)

    at oracle.apps.fnd.framework.webui.beans.layout.OAHeaderBean.processFormRequest(OAHeaderBean.java:410)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1066)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1032)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:887)

    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:407)

    at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormRequest (unknown Source)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1066)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1032)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:887)

    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:407)

    at oracle.apps.fnd.framework.webui.OAQueryHelper.processFormRequest(OAQueryHelper.java:1035)

    at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormRequest (unknown Source)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1066)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1032)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:887)

    at oracle.apps.fnd.framework.webui.beans.OAFlexibleContentBean.processFormRequest(OAFlexibleContentBean.java:372)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1066)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1032)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:887)

    at oracle.apps.fnd.framework.webui.beans.layout.OAFlexibleLayoutBean.processFormRequest(OAFlexibleLayoutBean.java:376)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1066)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1032)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:887)

    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:407)

    at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormRequest (unknown Source)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1066)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1032)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:887)

    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:407)

    at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1319)

    at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1066)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1032)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:887)

    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:407)

    at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest (unknown Source)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1066)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1032)

    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:887)

    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:407)

    at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)

    at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:3172)

    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1927)

    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:567)

    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:455)

    at _pages.__oa._jspService(__oa.java:233)

    at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)

    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:227)

    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)

    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)

    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)

    at oracle.apps.fnd.security.WLFilter.doFilter(WLFilter.java:213)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)

    at oracle.apps.jtf.cabo.interceptor.JTFWrapperFilter.doFilter(JTFWrapperFilter.java:141)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)

    at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter (unknown Source)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)

    at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:432)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)

    to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:119)

    at java.security.AccessController.doPrivileged (Native Method)

    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:324)

    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)

    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)

    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)

    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)

    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:163)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3748)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3714)

    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2283)

    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2182)

    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1491)

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

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

    Could someone please help me to set up this bug?

    Thank you

    Anupam

    Anupam,

    It is difficult to understand the code as there are many alternatives to the query that happens. Not really sure why it is written a lot of code.

    Since the code of the AOS, that all extensions have been made on this page?

    The error is coming in the method executeQuery viewObject. The executeQuery() method is replaced? If so, can you provide this code?

    If this is not the case, try to print the query, the dynamic whereclause, the whereclause parameters, just before calling the executeQuery() and see what are the upcoming values. This will help you to debug more far.

    The query in the error message it is only a bind variable, is there anywhere in the code, it tries to set multiple connection parameters?

    See you soon

    AJ

  • How to remove the project using sql with the proper sequence

    Hello

    Tried to delete the project failed with query according to the sequence shown below. But get error when running below final sql script (delete from epub_process where of the project = '?')

    SQL error: ORA-02292: integrity constraint (PUB.) PROC_HIST_ID_FK) violated - book of the foundling

    02292 00000 - 'constraint integrity (s.%s) violated - child notebook found. '

    * Cause: attempted to remove a parent key value that was a stranger

    dependence.

    * Action: remove dependencies first then the parent or disable the constraint.

    delete from avm_asset_lock where workspace_id in

    (select avm_devline id, whose name in)

    (select Workspace from epub_project where project = 'prj49024')) ;

    delete from EPUB_PR_HISTORY where project in

    (select project in epub_project where project = "prj49024");

    delete from epub_project where project = "prj49024";

    delete from EPUB_PROC_HISTORY where ID_processus in

    (select ID_processus from epub_process where of the project = "prj49024");

    delete from EPUB_PROC_TASKINFO where id in

    (select ID_processus from epub_process where of the project = "prj49024");

    delete from epub_taskinfo where ID_processus in

    (select ID_processus from epub_process where of the project = "prj49024");

    delete from EPUB_WORKFLOW_STRS where id in

    (select ID from EPUB_IND_WORKFLOW where ID_processus in)

    (select ID_processus from epub_process where of the project = 'prj49024')) ;

    delete from EPUB_IND_WORKFLOW where ID_processus in

    (select ID_processus from epub_process where of the project = "prj49024");

    Get the error when running this script

    remove the epub_process of the project where = "prj49024";

    Please let me know good sequence or how to avoid this mistake

    Thank you

    Sri

    Here are the steps:

    delete from EPUB_PR_HISTORY where project in ('prj213002', 'prj200001');

    delete from EPUB_PROC_HISTORY where ID_processus in

    (select ID_processus from the epub_process of the project where in ('prj213002', 'prj200001'));

    delete from EPUB_PROC_TASKINFO where id in

    (select ID_processus from the epub_process of the project where in ('prj213002', 'prj200001'));

    delete from EPUB_IND_WORKFLOW where ID_processus in

    (select ID_processus from the epub_process of the project where in ('prj213002', 'prj200001'));

    remove the epub_process of the project where in ('prj202001', 'prj213002');

    delete from avm_asset_lock where workspace_id in

    (select avm_devline id, whose name in)

    (sélectionnez project_id dans epub_project où project_id dans ('prj213002', 'prj213002'))) ;

    delete from epub_project where project in ('prj202001', 'prj213002');

    commit;

    Peace

    Shaik

  • I have a text field. I need to remove the first 8 characters of the field, leaving the remaining characters. Help?

    I have a text field. I need to remove the first 8 characters of the field, leaving the remaining characters. Help?

    Example:

    Text Example.JPG

    I need to remove these numbers PXXXXXX. Leaving the other characters.

    Thank you

    Bob

    A normal 'substring' is what you're looking for.

    For a formula of the column in the response criteria tab:

    SUBSTRING ("YourPresTable". "YourPresColumn" OF 9)

    To make the RPD and the workload of shipping off the coast to the database rather than forcing the work on the server of the OBI or presentation:

    Substring ("01 - Sample App Data (ORCL)" ".." ") "" "BISAMPLE '." " D10 product (dynamic table)". ("' Prod_Dsc ' 9)

  • SQL JOIN. We'RE after or before the keyword JOIN later

    Hi guys,.

    I spotted a very unusual behavior that I can't explain.

    I've isolated the problem to the following joints.

    Why the second join returns no less line? Why the first JOIN causes more lines?

    LEFT OUTER JOIN DWH.SA_BEZ_SAS_GRUPPE_V stellwerkg
    INNER JOIN DWH.SA_STELL_V stellwerk
    WE (stellwerkg.owner_fid = stellwerk.fid)
    WE (stellwerkg.member_fid = vorsignal.fid)
    -5413 lines

    LEFT OUTER JOIN DWH.SA_BEZ_SAS_GRUPPE_V stellwerkg
    WE (stellwerkg.member_fid = vorsignal.fid)
    INNER JOIN DWH.SA_STELL_V stellwerk
    WE (stellwerkg.owner_fid = stellwerk.fid)

    -5411 lines

    Thanks for any clarification.

    very strange indeed - so we have:

    SQL > select / * normal ANSI syntax * /.

    2 count (*)

    3 from t1

    left outer join 4 t3

    5 we (t3.id = t1.id)

    inner join 6 t2

    7 on (t3.id = t2.id);

    COUNT (*)

    ----------

    10

    SQL > select / * strange ANSI syntax: predicate of order 1, 2 * /.

    2 count (*)

    3 from t1

    left outer join 4 t3

    inner join t2 5

    6 we (t3.id = t1.id)

    7 on (t3.id = t2.id);

    on (t3.id = t1.id)

    *

    FEHLER in line 6:

    ORA-00904: "T1". "" Id ": ungultiger Bezeichner

    SQL > select / * strange ANSI syntax: predicate of order 2, 1 * /.

    2 count (*)

    3 from t1

    left outer join 4 t3

    inner join t2 5

    6 we (t3.id = t2.id)

    7 on (t3.id = t1.id);

    COUNT (*)

    ----------

    15

    We get:

    • a result of 10 lines with the 'normal' ANSI syntax
    • an error with the predicates separate from the FROM clause and predicate order t3 - t1, t3 - t2
    • a result of 15 lines with separated from the FROM clause predicates and predicate t3 - t2, t1 - t3 reverse order

    A look at the CBO (event 10053) trace we see for queries returning a result the following 'final request after transformations"(reformatted):

    / * the normal ANSI syntax * /.

    SELECT COUNT (*) 'COUNT (*).

    OF "C ##TEST". " T1""T1 ".

    "C ##TEST". " T3""T3 ".

    "C ##TEST". " T2""T2 ".

    WHERE "T3". ' ' ID ' = 'T2 '. "" IDENTITY CARD ".

    (AND "T3". ' ' ID ' = 'T1 '. "" IDENTITY CARD ".

    / * the strange ANSI syntax: predicate of order 2, 1 * /.

    SELECT COUNT (*) 'COUNT (*).

    OF "C ##TEST". " T1""T1 ".

    (SELECT "T3". ' ' 'ID' ID. '

    OF "C ##TEST". " T3""T3 ".

    "C ##TEST". " T2""T2 ".

    WHERE "T3". ' ' ID ' = 'T2 '. (' ' ID ') "from $_subquery$ _004.

    WHERE "from $_subquery$ _004. "ID"(+) = "T1". "" IDENTITY CARD ".

    So we see that the 'normal' ANSI version indeed remove the outer join, while the version of working with separate predicates is still an outer join - and I think that explains the different results of your initial query. Track also shows some 'ANSI architecture' (with a small I) information (since the ANSI syntax is internally converted into traditional Oracle join syntax) and the (Ouattara) on the elimination of the outer join (for the 'normal' ANSI query: "Ouattara: outer join of T3 and T1 to join inner conversion.") considered Ouattara: given the predicate "T3". ' ID '= 'T1'. » ID » »). The result of the architecture 'ANSI' is different in the two cases is not a surprise that the heuristic transformations finally also return different results.

    Basically, I think that the question is indeed the order of operations:

    • If inner join t2 t3 and then the outer join T1 with the resulting 10 lines of the first step we get 15 ranks accordingly (since t1 contains 15 lines)
    • If we join outer t1 to t3 (15 lines) and then do the inner join T2 on t3.id (i.e. NON NULL only for 10 T3 lines) we get only 10 lines in the final result

    Personally, I would try to separate these operations in subqueries (as in the final transformation for the query "strange ANSI syntax: predicate of order 2, 1") to make sure that I still understand the logic of my combinations.

Maybe you are looking for