Involved in the process

Hi Experts,

I wrote a dynamic SQL procedure, which shows an error:
CREATE OR REPLACE PROCEDURE Dwh_Production_Sum_Qtdytd_2401(V_TBL_NAME IN VARCHAR2,V_COL_NAM IN VARCHAR2,V_RPRT_DATE varchar2, V_FLTRCOL IN VARCHAR2, GRoup_COL in varchar2, GRoup_COL2 in varchar2 )
is
--DECLARE
V_REPORT_DATE DATE:=V_RPRT_DATE;
V_FILTERCOL VARCHAR2(30):=UPPER(V_FLTRCOL);
V_COL_NAME VARCHAR2(30):=UPPER(V_COL_NAM);
V_TAB_NAME VARCHAR2(30):=UPPER(V_TBL_NAME);
V_GRP_COL VARCHAR2(30):=UPPER(GRoup_COL);
V_GRP_COL2 VARCHAR2(30):=UPPER(GRoup_COL2);
--V_START_DATE VARCHAR2(20);
V_CURRMNTH_STRT VARCHAR2(11);
V_CURRMNTH_END VARCHAR2(11);
V_PRVMNTH_STRT VARCHAR2(11);
V_PRVMNTH_END VARCHAR2(11);
V_CURRMNTH VARCHAR2(1000);
V_PRVMNTH VARCHAR2(1000);
V_CURRMNTH_SUM NUMBER(14,3):=0;
V_PRBMNTH_SUM NUMBER(14,3):=0;
A_RET_VALUE NUMBER(14,3):=0;
TYPE NUMTAB IS TABLE OF DWH_PRODUCTION.ITEM_CODE%TYPE;
TYPE NUMSTAB IS TABLE OF DWH_PRODUCTION.ACTUAL_YIELD%TYPE;
TYPE NUMSTAB2 IS TABLE OF DWH_PRODUCTION.SITE_CODE__PARENT%TYPE;
ENUMS NUMTAB;
ENUMS1 NUMSTAB;
ENUMS2 NUMSTAB2;
ENUMS3 NUMSTAB;
BEGIN
EXECUTE IMMEDIATE('TRUNCATE TABLE TEST_X');
-------------------GETTING START_END DATE OF THE MONTH--------------------------------------------
SELECT TRUNC(TO_DATE(V_REPORT_DATE), 'MM') INTO V_CURRMNTH_STRT FROM DUAL;
SELECT LAST_DAY (TO_DATE (V_CURRMNTH_STRT)) INTO V_CURRMNTH_END FROM DUAL;
DBMS_OUTPUT.PUT_LINE (V_CURRMNTH_STRT||'          '||V_CURRMNTH_END);
-------------------START_END DATE OF PRV_MONTH----------------------------------------------------
SELECT TRUNC(trunc(to_date(V_REPORT_DATE, 'dd-mon-yyyy'),'MON')-1,'MON') V_PRVMNTH_STRT INTO  FROM DUAL;
SELECT trunc(to_date(V_REPORT_DATE, 'dd-mon-yyyy'),'MON')-1 INTO V_PRVMNTH_END from dual;
DBMS_OUTPUT.PUT_LINE (V_PRVMNTH_STRT||'          '||V_PRVMNTH_END);
--------------------CURRENT QUARTER VALUE-------------------------------------------------------------
-------------------CURRENT MONTH VALUE--------------------------------------------------------------
V_CURRMNTH:='SELECT '||V_GRP_COL||', '||V_GRP_COL2||', SUM('||V_COL_NAME||'),0 FROM  '||V_TAB_NAME|| ' WHERE '||V_FILTERCOL||' BETWEEN   TO_DATE('''||V_CURRMNTH_STRT||''') ' || '  AND  TO_DATE('''||V_CURRMNTH_END||''')
UNION
SELECT '||V_GRP_COL||', '||V_GRP_COL2||',0, SUM('||V_COL_NAME||')  FROM  '||V_TAB_NAME|| ' WHERE '||V_FILTERCOL||' BETWEEN   TO_DATE('''||V_PRVMNTH_STRT||''') ' || '  AND  TO_DATE('''||V_PRVMNTH_END||''')  GROUP BY  '||V_GRP_COL||','||V_GRP_COL2||'';
EXECUTE IMMEDIATE V_CURRMNTH BULK COLLECT INTO ENUMS,ENUMS2,ENUMS1,ENUMS3;
FOR I IN nvl(ENUMS.FIRST,1) .. nvl(ENUMS.LAST,0) LOOP
insert into test_x values (ENUMS(I),ENUMS2(I),ENUMS1(I),ENUMS3(I));
COMMIT;
END LOOP;
END;
/
ERROR
34/1     PL/SQL: SQL Statement ignored
34/95    PL/SQL: ORA-00936: missing expression
42/1     not group by function
Please help me...

Thnx in advance

Published by: 977490 on January 24, 2013 03:49

977490 wrote:
I have chkd all combinations... but could not resolve

Please help me...

Thnx in advance...

Looks like a data problem.

Started by, I wouldn't keep him accuse TO_DATE a Date format. So, who should be the first check. To check the Format in which you receive the date values.
If things look good, then I add a DBMS_OUTPUT (each with a single text) after each of the declarations and statements after 2-3. And then run the package.

If there is no exception, then will start investigation statements following the last value DBMS_OUTPUT printed on my stamp.

Also, can you post how your last Code looks like after all the suggestions you have received.

Aaaahhhhh!
You seem to have called the procedure with an incorrect order of parameters.

Your Procedure Signature:
PROCEDURE Dwh_Production_Sum_Qtdytd_2401(V_TBL_NAME IN VARCHAR2,V_COL_NAM IN VARCHAR2,V_RPRT_DATE varchar2, V_FLTRCOL IN VARCHAR2, GRoup_COL in varchar2, GRoup_COL2 in varchar2 )

Your Procedure call:
EXECUTE Dwh_Production_Sum_Qtdytd_2401 ('20-DEC-2012','WO_RELEASE_DATE', 'ACTUAL_YIELD', 'TEST_PRODUCTION', 'ITEM_CODE', 'SITE_CODE__PARENT');

As you can see, you pass a date into your Table name value, as value Date has passed where a string of characters. You must rectify and examine if each of the value you pass in your procedure call corresponds to the variable.

Published by: Jen K on January 24, 2013 19:29

Tags: Database

Similar Questions

  • I have Dreamweaver CS6.  Is it possible to upgrade to Dreamweaver CC?  If so, does it fee involved? And what is the process?

    I have Dreamweaver CS6.  Is it possible to upgrade to Dreamweaver CC?  If so, does it fee involved? And what is the process?

    Unfortunately, the CS6 is the latest version of that adobe made available for purchase on perpetual license.  So there is no available upgrade, except to join the creative cloud and pay every month.

    As a user of Creative Suite, you qualify for a substantial discount for the first year-$ 29, $95 / month for a comprehensive Plan that allows access to all software and other services.

    Pricing plans and creative Cloud membership | Adobe Creative Cloud

    Nancy O.

  • Role of PLSQL developer in the process of upgrading the EBS?

    Hello

    One client is currently in the process of upgrading of the EBS from V11 to V12. They are looking for a PL/SQL Developer, migrate their paintings of previous version again. What would be the role of a pl/sql developer in such situation? I want to ask that position and looking for documents related to the post but could not find one. If there is someone who had experience with this migration scenario please help me.

    Thank you

    Siva.

    PLSQL developer should be involved in the code changes between 11i and R12 - please see these links/docs.

    Changes to model data identification between 12.1.3 EBS and EBS prior releases

    https://blogs.Oracle.com/stevenChan/entry/ebs_data_model_1213

    Report of comparison data EBS model [ID 1290886.1]

    Comparison of EBS seed data reports now available

    https://blogs.Oracle.com/stevenChan/entry/ebs_seed_data_comparison_reports

    eTRM

    http://ETRM.Oracle.com

    Thank you

    Hussein

  • Full button not only call the process of

    I have a process I created in workbench that worked.  Now when I click on the done button in the work area that looks like it works... the form disappears and takes you back to the screen of the process map.  However the process does not actually work.  With record on in workbench its nothing similar happens, you can call the process workbench, and it works fine however.

    What is happening on all the processes I have in the workspace.  Any ideas on a fix?  I restarted the jboss service already.

    I'm reasonably sure that your events are not processed.  But I expect a lot of Quartz/Planner/JobManager errors in the paper.  Check that your Scheduler service is running (use view components in Workbench).  If this is the case, then you can check if the events fired by creating a long-term process that uses the service of waiting and waits a few minutes before you continue.  Use the record and playback to see if it never gets past the stage of waiting service.

    If this is not as simple as that to restart the Scheduler, you will need to involve management and present your newspapers and all they ask for.

    Jon

  • How high to set the process parameters (what constitutes a reasonable limit)

    I have a database which has hundreds of connections, reaching sometimes 1 700 dedicated connections... The setting process is about 2,500, so we should be fine for now. We are Linux, and I believe, that there is a limit of 16,000.

    For me the 2,500 seems excessive, and they want to know why we cannot put much higher (as the 10 000)... What is the cost of the very high the process configuration?

    How much memory an idle process take? I know semaphores need must be distributed, but is there an overpass at those too? I'm old-fasioned into thinking that anything above 1 000 / Server is one too many.

    I'd be interested in what other people think is a 'reasonable', or is - limit this really dependent on the hardware?

    My experience with 10.2.0.4 on 64-bit RHEL5 is 6100 in the process boundary. Sessions, transactions, and DML locks are derived arithmetically processes.
    I updated processes 6000 in many cases without apparent effect adversely on OS resources. There are many other factors involved in the present.
    I recommend watching the avg_val and max_val % of the limit of process and system measures % limit Session (v$ sysmetric_summary covers the most recent snapshot) to see if you really hit your ceiling process.

  • The process APPNOS and APPTS are devouring my RAM and make my computer very slow.

    Hello, I have an iMac (late 2012) 2.7 Ghz intel core i5 with 8 GB of RAM. Lately, my computer has been extremely slow and almost unusable for the last 4 days. After repeatedly to close the market and stop, I finally could open the activity monitor after about 25 minutes of loading. I was shocked to see that the process APPNOS and APPTS consumed 13 GB of RAM each, with a total of 27 GB of RAM used even if my computer has only 8 GB of RAM. I left the two processes of strength and my computer still worked once, normal, but these processes continue to pour every time my computer sleeps. I hope that someone knows what these processes are and how they arise or eat more RAM that I stop.

    For what it's worth, update macOS Sierra from El Capitan did nothing.

    Thank you

    NMitchem

    You have inadvertently installed adware. You don't need to download or install anything to fix.

    Navigate to the following folder and display its content in a screenshot.

    ~/Library/LaunchAgents

    To open this folder, copy the above line and Paste in the menu to go to the Finder > go to folder... field. It should look like this:

    Take a screenshot showing the contents of the folder and post in a reply. To take a screenshot read annex of the following user Tip: write an effective communities of Apple support question.

    There will be additional instructions to follow.

    For a description of how this can happen, how to avoid it in the future, and to the actions recommended Apple read How to install adware.

    Check your settings for call control: OS X: all-Gatekeeper - Apple Support. Gatekeeper is designed to prevent you from installing software of garbage inadvertently.

  • I'm currently developing the feature keys on my MacBook. In the process, he asked that I enter a code sent by message to a phone number (only the 2 last digits are revealed) that I do not have access to.   How can I fill the activation?

    I'm currently developing the feature keys on my MacBook. In the process, he asked that I enter a code sent by message to a phone number (only the 2 last digits are revealed) that I do not have access to.   How can I fill the activation?

    See "change how the new features can be approved" here:

    OS X Yosemite: Configure iCloud keychain

    As you can see, this allows you to change the phone number.

  • Firefox asked me to upgrade my sound system & in the process, I have installed a Zombie and I can't uninstall it in Windows 7 via my control panel. Prva Nice

    Firefox asked me to upgrade my sound system & in the process, I have installed a Zombie and I can't uninstall it in Windows 7 via my control panel. I expected more of Firefox as a privacy feature!

    Sorry to hear about this, you should always beware of the pop-ups - never open or install anything, unless it is on the official website. Firefox has built-in features (and extensions that you need to find and install) to protect your privacy and security, but all users must still be careful with their browsing habits. You can report malicious links to the FBI Internet Crime Complaint Center here: http://www.ic3.gov/complaint/default.aspx

    You can also report false web documents by clicking on:

    • Help > report false Web, or
    • >

      > Report false Web

    Regarding your malware, please follow this guide:

    After removing your malware, consider extensions such as Adblock Plus.

  • How to apply to market when the fact that the process?

    Yesterday my firefox worked fine, but now when I click on one of my shortcuts, nothing happens. When I opened my task manager, I see the firefox.exe process is turned on but not the actual application. I tried to make it work for two hours. I rebooted the computer 3 times but in vain. I also ran AVG PC Tune Up, which eliminated the recording errors, Defrag, junk files and broken shortcuts with no improvement. I also ran a cache and the cookie cleaner and still nothing.

    What happens when you click Ctrl + N, a new window opens when the process is running?

    If she runs, and it does not show a new window, kill the process in the taskbar and double click on the new icon to see if it opens. If this isn't the case, please try a clean reinstall.

    Some Firefox problems can be solved by performing a clean reinstall. This means that you remove Firefox program files, and then reinstall Firefox. Please follow these steps:

    Note: You can print these steps or consult them in another browser.

    1. Download the latest version of Firefox from http://www.mozilla.org office and save the installer to your computer.
    2. Once the download is complete, close all Firefox Windows (click on quit in the file menu or Firefox).
    3. Remove the Firefox installation folder, which is located in one of these locations, by default:
      • Windows:

        • C:\Program Files\Mozilla Firefox
        • C:\Program Files (x 86) \Mozilla Firefox
      • Mac: Delete Firefox in the Applications folder.
      • Linux: If you have installed Firefox with the distribution-based package manager, you must use the same way to uninstall: see Install Firefox on Linux. If you have downloaded and installed the binary package from the Firefox download page, simply remove the folder firefox in your home directory.
    4. Now, go ahead and reinstall Firefox:
      1. Double-click on the downloaded Setup file and go through the steps in the installation wizard.
      2. Once the wizard is completed, click to open Firefox directly after clicking the Finish button.

    More information on the resettlement of Firefox can be found here.

    WARNING: Uninstaller or the use of Firefox and not run a third remover as part of this process, because who could permanently delete your Firefox data, including but not limited to, extensions, cache, cookies, bookmarks, personal settings and passwords saved. These can be recovered, unless they have been backed up on an external device!

    Please report back to see if this helped you!

    Thank you.

  • All of a sudden does not load. don't have reinstall clean. in the process, not present in applications.

    tried in safe mode. deleted in safe mode. reinstalled. even deleted the folder under the name of proposed assistance. It still seems to load, but nothing comes. I can find it in the process, but it never shows in applications. has failed during a restoration and a saw, then a note "xpcom. Not understand. no update or changes in the config. just stopped working.

    Do a clean reinstall and delete the program folder before Firefox to (re) install a new copy of the current version of Firefox.

    Download a new copy of Firefox and save the file to the desktop.

    If possible to uninstall your current version of Firefox to clean the Windows registry and settings in the security software.

    • Do NOT remove the data personal when you uninstall your current version of Firefox, because all profile files will be deleted and you lose personal data such as bookmarks and passwords from other versions of Firefox profiles.

    Delete the program folder Firefox before installing newly downloaded copy of the Firefox installer.

    • (32-bit Windows) "C:\Program Files\Mozilla Firefox\"
    • (Windows 64 bit) "C:\Program Files (x 86) \Mozilla.

    Your bookmarks and other personal data are stored in the Firefox profile folder and will not be affected by a uninstall and (re) install, but make sure that 'delete personal data' is NOT selected when you uninstall Firefox.

    If you keep problems also create a new profile.

  • Firefox does not open, but the process remains in the Task Manager up until I finish it

    I tried everything that was suggested before you guys and I hope that you have found a solution now. I tried to re install, allowing Firefox through my firewall and running it as an administrator. I always double click on the icon and nothing happens except the process in the Task Manager.

    Create a new profile as a test to see if your profile is the source of the problems.
    See "create a profile":

    Profile backup and restore

  • my firefox closes when I close the window, but the process is not stopped since I got the update to firefox

    Since I upgraded to firefox 2 days ago, there a reboot problem. When I close the firefox window, it closes as it normally does, but whenever I try to restart firefox it shows the notification that firefox still works and I first need to stop the previous process before you can start a new one. Finally after I manually stop the firefox process it restarts again.

    What fixed it for me, but I am running v.15 because of other problems. I have to say I tried a hundred things and nothing works. I made the note never stop, even hours later, if I forgot to go to the Task Manager to end the process. It seems not important to know if I had extensions or modules running or not. I tried this before today. My graphics driver updated a couple of months. In any case, THANK YOU for this, finally something is going right.

  • Download install Flash, disappears in the process in the Task Manager despite

    Installed the latest Firefox on Windows 7 64-bit. Cannot complete installation of Flash Player of in Firefox as it may seem, it cannot connect to the Adobe server. After manual download from the Adobe site and after that the site correctly recognizes the operating system and other details, download successfully. Start the installation program only to see the downloaded file disappear from the download folder and nothing happens, no dialogue, etc. While they inspected the Task Manager, the process is here and running but seems to do nothing. I suspect that this is not a problem with Firefox, nor Flash, but rather w7, but thought I'd start here. Using the standard w7 firewall and AVG free for antivirus. Recently purchased from DELL.

    Try to download and run http://fpdownload.macromedia.com/pub/flashplayer/current/licensing/win/install_flash_player_11_plugin_32bit.exe. Adobe standard setup is horrible.

  • Firefox, or the Profile Manager will start. In my task manager, the process uses 50% of my cpu but does nothing. I like browsing with firefox, how do I fix?

    I tried to restart my computer, the I tried to uninstall and reinstall uninstall, delete all files of firefox and folders, then reboot and then reinstall. Also, I tried to open the Profile Manager to edit my profile. After you have reinstalled several times and try to open the Profile Manager before launching firef0x, I got the firefox crashed window and the process in the Task Manager always uses 50% of my cpu. The most recent strike and then re - download gives me an error "the file is corrupt" and will not even install the program.

    Kill the process that you see, including any plugincontainer.exe, only once firefox has stopped running don't try to update.

    Completely unexpected instances of firefox running can sometimes be the result of malware activity.

  • Recently FireFox often caused 100% CPU usage and locks until it finishes the process (the different). Clear the cookies/cache did not help. Any ideas?

    Windows 2000 SP4, 1 g RAM, Firefox version 9.0.1
    We keep IE6 and Firefox open simultaneously to 2 different email accounts. Firefox has always been much faster even with 3 or 4 tabs open, but for the past few weeks trying to update a screen suddenly CPU goes to 100% usage and of course nothing will move until the process is complete. Close one or more tabs does not help. If I close Firefox completely using the task processor Manager goes back down to zero. After restarting Firefox CPU use may or may not go back to the top as he tries to continue the previous task which has been lock him up.
    He did this with Firefox 3.6, but still it did not happen immediately after the 9.0.1 update either.

    Hi vbolton,

    Have you looked at the Knowledge Base article Firefox using too much memory (RAM) - how to fix the or Firefox using too many resources CPU - how to fix? There is a lot of information in there.

    Hope this helps!

Maybe you are looking for

  • Email receipt of more promising "big buildings." What is the scope of this question?

    Email Thunderbird running on 2 email from the pc and android running on droidx application program. Some use IMAP, some use POP/SMTPATT is source DSL wireless, Verizon is droidx source. Router WiFi is secure with PSK. None of these (10 MB or more) us

  • Previous

    I am impulsive and came out and got the new iPhone SE. I want my SE make the exact clone of my old 5 except with the new bells and whistles. Is it possible in itunes and will be my mail, notes, tones, apps, etc.be all intact?  THX

  • Consumer cellular? Forget the lollipop

    A representative of consumer cellular told me that their phones Moto G 2nd Gen would not receive the OTA update. So if you use CC, then you will have to resort to other ways to get the update. The rep may be wrong, but I suspect that they were probab

  • [Error number: 0x80072EFF]

    I'm unable to access windows update. When I try to open the windows update page, it goes to "Internet Explorer cannot display this webpage" microsoft security essentials, I downloaded and I can't use it even, b Arce that he used successfully updated.

  • Can't find the icon or the DVD/CD player

    Original title: Acer AX3400 cannot find the icon or DVD/CD player (used to be here) goes hunting it shows that it is a Hitachi and labour but I can't use it Cannot find the icon to open the door/eject etc. Can find that it works, but somewhere he dis