Urgent help please.  Inner join caused the error ora-00933

I ran it, works great:
SELECT DIFFERENT EXP. EXP_ID,
EXP. DATU_EXP_WIRE_CENTER_CLLI,
EXP. DATU_EXP_IP,
EXP. DATU_EXP_CLLI,
EXP. DATU_EXP_PORT,
EXP. DATU_EXP_NAME,
EXP. DATU_EXP_CITY,
EXP. DATU_EXP_STATE,
EXP. DATU_EXP_SW_VERSION,
DECODE (LAST_ALARM. LAST_ALARM_DATE, NULL, TO_CHAR (SYSDATE, ' YYYY/MM/DD HH24:MI:SS'),
TO_CHAR (LAST_ALARM. LAST_ALARM_DATE, "YYYY/MM/DD HH24:MI:SS")) AS STATUS_DATE,
DECODE (LAST_ALARM. ALARM_NAME, NULL, "disconnected", LAST_ALARM. ALARM_NAME) AS DATU_STATUS,
DECODE (LAST_ALARM. ALARM_CLASS, NULL, 'OTHER', LAST_ALARM. ALARM_CLASS) AS IS_ERROR_STATUS,

DECODE (LAST_RESOURCE. LAST_ALARM_DATE, NULL, ", TO_CHAR (LAST_RESOURCE. LAST_ALARM_DATE, "YYYY/MM/DD HH24:MI:SS")) AS RESOURCE_STATUS_DATE,
DECODE (LAST_RESOURCE. RESOURCE_CODE_NAME, NULL, ", LAST_RESOURCE. RESOURCE_CODE_NAME) AS RESOURCE_STATUS,
DECODE (LAST_RESOURCE. RESOURCE_CODE_CLASS, NULL, ", LAST_RESOURCE. RESOURCE_CODE_CLASS) AS IS_RESOURCE_ERROR_STATUS,
DECODE (LAST_OPER. LAST_ALARM_DATE, NULL, ", TO_CHAR (LAST_OPER. LAST_ALARM_DATE, "YYYY/MM/DD HH24:MI:SS")) AS OPER_STATUS_DATE,
DECODE (LAST_OPER. OPER_CODE_NAME, NULL, ", LAST_OPER. OPER_CODE_NAME) AS OPER_STATUS,
DECODE (LAST_OPER. OPER_CODE_CLASS, NULL, ", LAST_OPER. OPER_CODE_CLASS) AS IS_OPER_ERROR_STATUS,

EXP BEGIN_MAINT_WINDOW, RTU. RTU_NAME
OF TT_DATU_EXP_UNIT_INFO EXP
left outer join
(SELECT distinct alarmed_datus. EXP_ID, c.ALARM_NAME, c.ALARM_TYPE, c.ALARM_CLASS and alarmed_datus. LAST_ALARM_DATE
Of alarmed_datus (SELECT EXP_ID, MAX (ALARM_TIME) AS LAST_ALARM_DATE FROM TT_DATU_EXP_ALARM_INFO GROUP BY EXP_ID)
inner join TT_DATU_EXP_ALARM_INFO b on b.EXP_ID = alarmed_datus. EXP_ID AND b.ALARM_TIME = alarmed_datus. LAST_ALARM_DATE
inner join TT_DATU_EXP_ALARM_TYPES c on b.ALARM_TYPE = c.ALARM_TYPE
) LAST_ALARM on EXP.. EXP_ID = LAST_ALARM. EXP_ID
left outer join
(SELECT distinct a.EXP_ID, c.RESOURCE_CODE_NAME, c.RESOURCE_CODE_TYPE, c.RESOURCE_CODE_CLASS, a.LAST_ALARM_DATE
FROM (SELECT EXP_ID, MAX (RESOURCE_CODE_TIME) AS LAST_ALARM_DATE
OF TT_DATU_EXP_RESOURCE_CODE_INFO GROUP BY EXP_ID) a
inner join TT_DATU_EXP_RESOURCE_CODE_INFO b on b.EXP_ID = a.EXP_ID AND b.RESOURCE_CODE_TIME = a.LAST_ALARM_DATE
inner join TT_DATU_EXP_RESOURCECODE_TYPES c on b.RESOURCE_CODE_TYPE = c.RESOURCE_CODE_TYPE
) LAST_RESOURCE on EXP.. EXP_ID = LAST_RESOURCE. EXP_ID
left outer join
(SELECT distinct a.EXP_ID, c.OPER_CODE_NAME, c.OPER_CODE_TYPE, c.OPER_CODE_CLASS, a.LAST_ALARM_DATE
FROM (SELECT EXP_ID, MAX (OPER_CODE_TIME) AS LAST_ALARM_DATE
OF TT_DATU_EXP_OPER_CODE_INFO GROUP BY EXP_ID) a
inner join TT_DATU_EXP_OPER_CODE_INFO b on b.EXP_ID = a.EXP_ID AND b.OPER_CODE_TIME = a.LAST_ALARM_DATE
inner join TT_DATU_EXP_OPER_CODE_TYPES c on b.OPER_CODE_TYPE = c.OPER_CODE_TYPE) LAST_OPER on EXP.. EXP_ID = LAST_OPER. EXP_ID
inner join TT_DATU_LRN_MAP on exp. EXP_ID = NAB NAB. EXP_ID AND TRIM (NAB. LRN) AS p_LRN
inner join TT_RTU_TYPES on exp. RTU_TYPE_ID = RTU RTU. RTU_TYPE_ID
WHERE THERE IS NOT (SOME SATELLITE_EXP_ID OF TT_HOST_SATELLITE WHERE EXP. EXP_ID = SATELLITE_EXP_ID)
AND EXP.IS_PRIMARY_ADDRESS LIKE p_isPrimary;
ON THE OTHER
OPEN FOR V_cursor
SELECT EXP. EXP_ID,
EXP. DATU_EXP_WIRE_CENTER_CLLI,
EXP. DATU_EXP_IP,
EXP. DATU_EXP_CLLI,
EXP. DATU_EXP_PORT,
EXP. DATU_EXP_NAME,
EXP. DATU_EXP_CITY,
EXP. DATU_EXP_STATE,
EXP. DATU_EXP_SW_VERSION,
DECODE (LAST_ALARM. LAST_ALARM_DATE, NULL, TO_CHAR (SYSDATE, ' YYYY/MM/DD HH24:MI:SS'), TO_CHAR (LAST_ALARM. LAST_ALARM_DATE, "YYYY/MM/DD HH24:MI:SS")) AS STATUS_DATE,
DECODE (LAST_ALARM. ALARM_NAME, NULL, "disconnected", LAST_ALARM. ALARM_NAME) AS DATU_STATUS,
DECODE (LAST_ALARM. ALARM_CLASS, NULL, 'OTHER', LAST_ALARM. ALARM_CLASS) AS IS_ERROR_STATUS,

DECODE (LAST_RESOURCE. LAST_ALARM_DATE, NULL, ", TO_CHAR (LAST_RESOURCE. LAST_ALARM_DATE, "YYYY/MM/DD HH24:MI:SS")) AS RESOURCE_STATUS_DATE,
DECODE (LAST_RESOURCE. RESOURCE_CODE_NAME, NULL, ", LAST_RESOURCE. RESOURCE_CODE_NAME) AS RESOURCE_STATUS,
DECODE (LAST_RESOURCE. RESOURCE_CODE_CLASS, NULL, ", LAST_RESOURCE. RESOURCE_CODE_CLASS) AS IS_RESOURCE_ERROR_STATUS,
DECODE (LAST_OPER. LAST_ALARM_DATE, NULL, ", TO_CHAR (LAST_OPER. LAST_ALARM_DATE, "YYYY/MM/DD HH24:MI:SS")) AS OPER_STATUS_DATE,
DECODE (LAST_OPER. OPER_CODE_NAME, NULL, ", LAST_OPER. OPER_CODE_NAME) AS OPER_STATUS,
DECODE (LAST_OPER. OPER_CODE_CLASS, NULL, ", LAST_OPER. OPER_CODE_CLASS) AS IS_OPER_ERROR_STATUS,

EXP BEGIN_MAINT_WINDOW, RTU. RTU_NAME
OF TT_DATU_EXP_UNIT_INFO EXP
(in left outer join
SELECT distinct alarmed_datus. EXP_ID, c.ALARM_NAME, c.ALARM_TYPE, c.ALARM_CLASS and alarmed_datus. LAST_ALARM_DATE
Of alarmed_datus (SELECT EXP_ID, MAX (ALARM_TIME) AS LAST_ALARM_DATE FROM TT_DATU_EXP_ALARM_INFO GROUP BY EXP_ID)
inner join TT_DATU_EXP_ALARM_INFO b on b.EXP_ID = alarmed_datus. EXP_ID AND b.ALARM_TIME = alarmed_datus. LAST_ALARM_DATE
inner join TT_DATU_EXP_ALARM_TYPES c on b.ALARM_TYPE = c.ALARM_TYPE)
LAST_ALARM on EXP.. EXP_ID = LAST_ALARM. EXP_ID
left outer join
(SELECT distinct a.EXP_ID, c.RESOURCE_CODE_NAME, c.RESOURCE_CODE_TYPE, c.RESOURCE_CODE_CLASS, a.LAST_ALARM_DATE
FROM (SELECT EXP_ID, MAX (RESOURCE_CODE_TIME) AS LAST_ALARM_DATE
OF TT_DATU_EXP_RESOURCE_CODE_INFO GROUP BY EXP_ID) a
inner join TT_DATU_EXP_RESOURCE_CODE_INFO b on b.EXP_ID = a.EXP_ID AND b.RESOURCE_CODE_TIME = a.LAST_ALARM_DATE
inner join TT_DATU_EXP_RESOURCECODE_TYPES c on b.RESOURCE_CODE_TYPE = c.RESOURCE_CODE_TYPE) LAST_RESOURCE on EXP.. EXP_ID = LAST_RESOURCE. EXP_ID
left outer join
(SELECT distinct a.EXP_ID, c.OPER_CODE_NAME, c.OPER_CODE_TYPE, c.OPER_CODE_CLASS, a.LAST_ALARM_DATE
FROM (SELECT EXP_ID, MAX (OPER_CODE_TIME) AS LAST_ALARM_DATE
OF TT_DATU_EXP_OPER_CODE_INFO GROUP BY EXP_ID) a
inner join TT_DATU_EXP_OPER_CODE_INFO b on b.EXP_ID = a.EXP_ID AND b.OPER_CODE_TIME = a.LAST_ALARM_DATE
inner join TT_DATU_EXP_OPER_CODE_TYPES c on b.OPER_CODE_TYPE = c.OPER_CODE_TYPE
) LAST_OPER on EXP.. EXP_ID = LAST_OPER. EXP_ID ORDER BY EXP. DATU_EXP_CLLI
inner join TT_RTU_TYPES on exp. RTU_TYPE_ID = RTU RTU. RTU_TYPE_ID
WHERE THERE is NOT (SOME SATELLITE_EXP_ID OF TT_HOST_SATELLITE WHERE EXP.. EXP_ID = SATELLITE_EXP_ID) AND EXP.IS_PRIMARY_ADDRESS love
p_isPrimary;


However this one:

SELECT EXP. EXP_ID,
EXP. DATU_EXP_WIRE_CENTER_CLLI,
EXP. DATU_EXP_IP,
EXP. DATU_EXP_CLLI,
EXP. DATU_EXP_PORT,
EXP. DATU_EXP_NAME,
EXP. DATU_EXP_CITY,
EXP. DATU_EXP_STATE,
EXP. DATU_EXP_SW_VERSION,
DECODE (LAST_ALARM. LAST_ALARM_DATE, NULL, TO_CHAR (SYSDATE, ' YYYY/MM/DD HH24:MI:SS'),
TO_CHAR (LAST_ALARM. LAST_ALARM_DATE, "YYYY/MM/DD HH24:MI:SS")) AS STATUS_DATE,
DECODE (LAST_ALARM. ALARM_NAME, NULL, "disconnected", LAST_ALARM. ALARM_NAME) AS DATU_STATUS,
DECODE (LAST_ALARM. ALARM_CLASS, NULL, 'OTHER', LAST_ALARM. ALARM_CLASS) AS IS_ERROR_STATUS,


DECODE (LAST_RESOURCE. LAST_ALARM_DATE, NULL, ", TO_CHAR (LAST_RESOURCE. LAST_ALARM_DATE, "YYYY/MM/DD HH24:MI:SS")) AS RESOURCE_STATUS_DATE,
DECODE (LAST_RESOURCE. RESOURCE_CODE_NAME, NULL, ", LAST_RESOURCE. RESOURCE_CODE_NAME) AS RESOURCE_STATUS,
DECODE (LAST_RESOURCE. RESOURCE_CODE_CLASS, NULL, ", LAST_RESOURCE. RESOURCE_CODE_CLASS) AS IS_RESOURCE_ERROR_STATUS,
DECODE (LAST_OPER. LAST_ALARM_DATE, NULL, ", TO_CHAR (LAST_OPER. LAST_ALARM_DATE, "YYYY/MM/DD HH24:MI:SS")) AS OPER_STATUS_DATE,
DECODE (LAST_OPER. OPER_CODE_NAME, NULL, ", LAST_OPER. OPER_CODE_NAME) AS OPER_STATUS,
DECODE (LAST_OPER. OPER_CODE_CLASS, NULL, ", LAST_OPER. OPER_CODE_CLASS) AS IS_OPER_ERROR_STATUS,


EXP BEGIN_MAINT_WINDOW, RTU. RTU_NAME
OF TT_DATU_EXP_UNIT_INFO EXP
left outer join
(
SELECT distinct alarmed_datus. EXP_ID, c.ALARM_NAME, c.ALARM_TYPE, c.ALARM_CLASS and alarmed_datus. LAST_ALARM_DATE
Of alarmed_datus (SELECT EXP_ID, MAX (ALARM_TIME) AS LAST_ALARM_DATE FROM TT_DATU_EXP_ALARM_INFO GROUP BY EXP_ID)
inner join TT_DATU_EXP_ALARM_INFO b on b.EXP_ID = alarmed_datus. EXP_ID AND b.ALARM_TIME = alarmed_datus. LAST_ALARM_DATE
inner join TT_DATU_EXP_ALARM_TYPES c on b.ALARM_TYPE = c.ALARM_TYPE) LAST_ALARM on EXP.. EXP_ID = LAST_ALARM. EXP_ID

left outer join
(SELECT distinct a.EXP_ID, c.RESOURCE_CODE_NAME, c.RESOURCE_CODE_TYPE, c.RESOURCE_CODE_CLASS, a.LAST_ALARM_DATE
FROM (SELECT EXP_ID, MAX (RESOURCE_CODE_TIME) AS LAST_ALARM_DATE
OF TT_DATU_EXP_RESOURCE_CODE_INFO GROUP BY EXP_ID) a
inner join TT_DATU_EXP_RESOURCE_CODE_INFO b on b.EXP_ID = a.EXP_ID AND b.RESOURCE_CODE_TIME = a.LAST_ALARM_DATE
inner join TT_DATU_EXP_RESOURCECODE_TYPES c on b.RESOURCE_CODE_TYPE = c.RESOURCE_CODE_TYPE) LAST_RESOURCE on EXP.. EXP_ID = LAST_RESOURCE. EXP_ID
left outer join
(SELECT distinct a.EXP_ID, c.OPER_CODE_NAME, c.OPER_CODE_TYPE, c.OPER_CODE_CLASS, a.LAST_ALARM_DATE
FROM (SELECT EXP_ID, MAX (OPER_CODE_TIME) AS LAST_ALARM_DATE
OF TT_DATU_EXP_OPER_CODE_INFO GROUP BY EXP_ID) a
inner join TT_DATU_EXP_OPER_CODE_INFO b on b.EXP_ID = a.EXP_ID AND b.OPER_CODE_TIME = a.LAST_ALARM_DATE
inner join TT_DATU_EXP_OPER_CODE_TYPES c on b.OPER_CODE_TYPE = c.OPER_CODE_TYPE
) LAST_OPER on EXP.. EXP_ID = LAST_OPER. EXP_ID ORDER BY EXP. DATU_EXP_CLLI
inner join TT_RTU_TYPES on exp. RTU_TYPE_ID = RTU RTU. RTU_TYPE_ID
WHERE the EXP.IS_PRIMARY_ADDRESS as p_isPrimary;

It does not work kept send me errors:
[ORA-00933: SQL not correctly completed command]


Any guru can help? I need to have this resolved effect today.
Thanks in advance.

Tags: Database

Similar Questions

  • Help, please! to resolve the error code 646 on window 2007

    I use 2007 window, when I click on the window update, it keeps failing, please show me how to fix error code 646 for the following updates:
    filter junk e-mail in Microsoft office outlook 2007 (KB981726)
    and the microsoft office system (KB97632)

    Sorry, you have problems getting your patches installed. I have a number of things for you to look at.  First of all, your Background Intelligent Transfer Services set to Automaticand started and Windows Update ? They both should be started. You can check these settings by typing services.msc in the search box of the start menu.

    Sometimes in order to get patches to install correctly, you must perform these tasks manually.

    (1) Download Center to visit Microsoft: http://www.microsoft.com/downloads/en/default.aspx.
    (2) search for each update code that begins with the letters "KB" and followed by a set of numbers (i.e. KB979309).
    3) click on the link for the download and then click on download and run.  You must accept the agreement and then click on continue.
    (4) repeat this process for each download of updates Windows could not install.
    (5) to rerun the update from Microsoft, click find updates.  If all goes well, it will show that you are completely patched.

    If this does not work, try to run the Microsoft OneCare safety scanner.  Sometimes it will solve problems of hidden registry, or can clear the virus that can prevent the installation of the patches: http://onecare.live.com/site/en-us/center/whatsnew.htm. Click full service scan, and then Quick scan (full scan takes a long time to complete). Try the patches.

    Barbara

  • Urgent help please. Fill in the fields with a single user click

    Hey guys,.

    I'm creating a time sheet every two weeks for my work using LiveCycle... It's basically a form that the employee fills for their time that they have worked in a couple of weeks...

    I must be able to let the user choose the first day of the fortnight (may be different depending on the individual) and the rest of the column in the column of day can fill the rest of the day until the end of the 14 days...

    any ideas?

    Thanks in advance...

    Thank you. I sent your update form.

    Steve

  • What is causing the error event ' BCM42RLY service failed to start due to the following error: the system cannot find the file specified "Event Id 7000

    What is causing the error event ' BCM42RLY service failed to start due to the following error: the system cannot find the file specified "Event Id 7000

    Hello

    1. Since when are you facing this problem?

    2. What is the number of brand and model of the computer?

    3. have you made changes on the computer recently?

    BCM42RLY is a Broadcom network card driver. I suggest that you uninstall and reinstall the drivers and check if it helps.
    Uninstall or reinstall a device: http://technet.microsoft.com/en-us/library/cc725782.aspx

    Hope the information is useful.

  • Windows Live Photo Gallery causes the error Code: 0 x 80010108

    I have a desktop XPS 8500 running Windows 7.  Love it except for one thing: Windows Live Photo Gallery causes the error Code: 0 x 80010108.  Yes, I x it down and go ahead and use my computer but like it to stop.  I have google code and there are a number of fixes called there for him - even though they claim.  But I was reluctant to download anything on sites I don't necessarily trust OR conform to change my registry to fix it.  Can someone recommend a cure to my problem?  I have confidence in this forum for more than 12 years and feel that you will not recommend something that might get me in trouble.

    Thank you

    Bessie

    Hi Bessie,

    Thanks for the reply. I suggest you to uninstall Windows Live Essentials from the computer and update to the latest version. You can download it from the link http://bit.ly/GQ9tPI . Please disconnect all the external devices connected to the computer (printers, external hard drives, flash drives) and do not have any CD/DVD in the drive while following the steps.

    Answer please if you have any questions.

  • I would like some clarification on what is causing the error code 80040154

    It seems to crop in Live Essentials update on a regular basis, but I can't find all the details on the causes

    Additional information.
    I managed to get the Messenger to sign. Here's info on how although I \have no idea why this worked. I tried a new install with the same old results but happened to see a link to messenger and connect to web services. It took me to a page of Microsoft, and the best I can see is that he installed connections on social, utube, facebook and twitter sites, etc.. I make no use of these sites once he installed my Messenger came, I signed the as if nothing had ever been wrong. I have now idea why, but be it - it works.
    I would like to really know what causes the error code 80040154 for possible future needs.

    Please see the thread below for a possible answer:

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-windows_programs/Windows-7-and-Windows-Live-Messenger-error-code/93f4d2e5-24ed-40c3-957d-a0ab9f53dac6

  • Hi someone help please I am signing the apple tv correctly and it says the password for itunes that is incorrect. However, I am now connected from my computer and it is OK

    Hi someone help please I am signing the apple tv correctly and it says the password for itunes that is incorrect. However, I am now connected from my computer and it is OK

    Have you tried to reboot your router, correct your location settings, you use audit stage 2.

  • How do I know what software is causing the error to Windows Installer: lack of program

    original title: How do I know what software is causing the error to Windows Installer

    Windows XP

    When you get this message that keeps popping up every two hours-

    The upgrade patch cannot be installed by the Windows Installer service because the program to be upgraded

    may be missing or the upgrade patch may update a different bersion of the program.   Make sure that the program

    to be upgraded exists on your computer and that you have the good patch upgrade. ."

    How do find you the application or software, or the program is causing the problem.  ?

    It is a simple solution.

    Go in run, type: msiexec /Unregister 'press the ok button.

    Back to run, enter: msiexec/regserver "press ok.

    Youre thru. Restart the pc

  • I'm having a LOT of trouble to update photoshop elements 14! Help, please. I entered the serial number, but do not click NEXT!

    I'm having a LOT of trouble to update photoshop elements 14! Help, please. I entered the serial number, but do not click NEXT!

    You can use the appropriate link below for your installation files

    Available downloadable Setup files:

    Download and installation help links Adobe

    Help download and installation to Prodesigntools links can be found on the most linked pages.  They are essential; especially steps 1, 2 and 3.  If you click on a link that does not have these listed steps, open a second window by using the link to Lightroom 3 to see these "important Instructions".

  • What deletion XMLSchema received the error ORA-04022 no waiting asked, but had to wait to lock the dictionary objects

    I recorded a XMLschem in the Oracle XDB repository to load the XML file into the oracle tables using storage relational object. In this process, I'm trying to remove the xmlschema to sign up again with a few changes in the XSD file, but I'm not able to remove it and I get the error ORA 04022 no waiting asked, but had to wait to lock the dictionary objects... Before that, I deleted the xmlschem 2 - 3 times and it worked fine. But now I have this error.

    I tried to remove it with "DELETE_CASCADE" and also tried "DELETE_CASCADE_FORCE" and in both cases, I get the same error.

    I've waited 2-3 days and then retried still had the same error.

    Could you please help me to solve this problem.

    Here is the screenshot of the error

    Delete Schema No wait error.JPG

    I also tried to purge the schema, as shown below, but I get the error access denied. I'm stuck here, could not move before working on it.

    Select * from dba_xml_schemas, where qual_schema_url like '% HPO484% '; -1B01B74F95BE1C91E0540021287E70DC

    BEGIN

    DBMS_XMLSCHEMA. PURGESCHEMA (schema_id = > '1B01B74F95BE1C91E0540021287E70DC');

    END;

    It throws below error

    ORA-31050: access denied

    ORA-06512: at "XDB". DBMS_XMLSCHEMA", line 109

    ORA-06512: at line 1

    Could you please help me with this.

    Thank you

    Reva

    Is it possible to reproduce the problem?

    You have a table that references the schema?

    Check with your DBA if there is no locking assets library.

  • get the error ORA-04088

    Hello

    I created a trigger to trigger the error if a trial off to enter data in a column that is attached to a number sequence.
    This trigger works, but with errors, these errors become after trying to insert values into the table.

    The errors are:

    Insert into test2 values(24,'horse','hyderabad',30); - 30 here is worth attempting to enter the column use
    Error report:
    SQL error: ORA-20101: insertion of the value to enter the not allowed... It will take the auto-numbering
    ORA-06512: at "SCOTT. TRI_UNQID', line 11
    ORA-04088: error during execution of trigger ' SCOTT. TRI_UNQID'


    My trigger is
    create or replace
    trigger tri_unqid
    before insert on test2 
    for each row
    declare
    v_number number(2);
    ins_exp exception;
    begin
    if :new.regid is not null  then
    raise ins_exp;
    else 
    select unqid.nextval into v_number from dual;
    :new.regid:=v_number;
    end if;
    exception
    when ins_exp then
    raise_application_error(-20101,'inserting the regid value not allowed.. it will take auto number');
    end tri_unqid;
    Output:
    It's the execution and throw my exception and other... I am not able to solve...
    and another point is if it is inserted successfully with errors, then it's values are inserted into the table at the front not the end of the records... How is it going...

    can any body explain

    Thank you
    Baba

    Published by: BluShadow on April 11, 2013 10:26
    fixed {noformat}
    {noformat} tags.  The "code" in the tag is enclose in "{" and "}", not "<" and ">"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        

    It's the execution and throw my exception and other... I am not able to solve...

    This is because there is no problem.

    Check your error message

    
    SQL Error: ORA-20101: inserting the regid value not allowed.. it will take auto number
    ORA-06512: at "SCOTT.TRI_UNQID";, line 11
    ORA-04088: error during execution of trigger 'SCOTT.TRI_UNQID' 
    

    Read from the bottom up. Oracle means

    1. a SCOTT trigger. TRI_UNQID caused an error
    2. the error occurred on line number 11
    3. the error message is ' insertion of the value to enter the not allowed... " It will take auto number.

    Why oracle has to say what trigger or procedure caused the error? Because there might be several trigger or procedure that may generate the same error if a user just need to know what is causing the error. And a line number is always helpful for debugging.

    So everything is good here. There is no problem to solve.

    and another point is if it is inserted successfully with errors, then it's values are inserted into the table at the front not the end of the records... How is it going...

    In a HEAP organized table this is SO forward or back (order of the lines is not relevant). If you want to display the records in an orderly manner use the ORDER BY Clause in the SELECT statement.

    So all is good here as well.

  • Get the error ORA-01422 in stored procedure

    ORA-01422: exact fetch returns more than number of lines
    This page explains the error:
    http://www.techonthenet.com/Oracle/errors/ora01422.php

    This is my procedure:
    In the clause select is causing the error. I understand the nature of the error, but the strange thing is that when I run the sql code, remove the "in."
    part of my test settings, I just receive a single line. Always when I execute my procedure with the same settings I get the error. What could be wrong?

    create or replace
    PROCEDURE COUNTER_GETACTIVE
    (
    METERPOINTID IN MeterPointCounters.MeterPointId%Type,
    METERPOINTCOUNTERNR IN METERPOINTCOUNTERS. Type of METERPOINTCOUNTERNR %,
    p_cursor on REFCURSOR_PKG.counter_cursor
    )
    IS
    l_counterNr CounterBridgeTable.CounterNr%type;
    l_meterId CounterBridgeTable.MeterId%type;
    BEGIN
    Select counternr, meterid in l_counterNr, l_meterId from CounterBridgeTable where meterpointid = METERPOINTID and meterpointcounternr = METERPOINTCOUNTERNR and datetom is null;

    Open p_cursor for select * from counters where counternr = l_counterNr and meterId = l_meterId;

    END COUNTER_GETACTIVE;

    You actually run this query

    select counternr, meterid from CounterBridgeTable where meterpointid = METERPOINTID and meterpointcounternr = METERPOINTCOUNTERNR and datetom is null;
    

    param name is identical to the column, he's ignoring your param and pretty much do a self-join

    Try this:

    create or replace
    PROCEDURE COUNTER_GETACTIVE
    (
    p_METERPOINTID IN MeterPointCounters.MeterPointId%Type,
    p_METERPOINTCOUNTERNR IN METERPOINTCOUNTERS.METERPOINTCOUNTERNR%type,
    p_cursor out REFCURSOR_PKG.counter_cursor
    )
    IS
    l_counterNr CounterBridgeTable.CounterNr%type;
    l_meterId CounterBridgeTable.MeterId%type;
    BEGIN
    select counternr, meterid into l_counterNr, l_meterId from CounterBridgeTable where meterpointid = p_METERPOINTID and meterpointcounternr = p_METERPOINTCOUNTERNR and datetom is null;
    
    open p_cursor for select * from counters where counternr = l_counterNr and meterId = l_meterId;
    
    END COUNTER_GETACTIVE;
    

    Published by: tanging on June 8, 2010 10:37

  • Get the error ora-02021

    I'm trying to truncate a table but oracle throws the error ORA-02021: DDL operations are not allowed on a remote database.

    02021, 00000, "DDL operations are not allowed on a remote database"
    * Cause: An attempt was made to use a DDL operation on a remote database.
    For example, "CREATE TABLE tablename@remotedbname... ».
    * Action: To change the remote database structure, you must connect to the
    remote database with the appropriate privileges.


    I'm pretty sure you have the appropriate privileges.

    You can even call a procedure:
    dbms_utility.exec_ddl_statement@DB_LINK exec ('your stmt');

  • How to solve the error ORA-00001 in SQL Insert?

    Hi all, I need your help appreciated.

    I do a plsql procedure that inserts a line according to the value of the slider, I have error oracle ORA-00001: unique constraint (constraint_name) violated.

    This message may appear if a duplicate entry exists at a different level: in the RDBMS MySQL, I have the syntax IGNORES to solve this error of duplication... and in Oracle?

    Thanks for your time and your advice.
    Miguelito

    user6317803 wrote:
    How to solve the error ORA-00001 in SQL Insert?

    ORA-00001 means table a unique/primary key / index and you attempt to insert a row with the key value already exists in the table. I'll assume table has a primary key on COUNTRY_ID. Then modify SQL for:

    SQL = "INSERT INTO COUNTRIES (COUNTRY_ID, COUNTRY_NAME, REGION_ID) SELECT"BZ","BLZ", 3 DOUBLE WHERE DOES NOT EXIST (SELECT 1 FROM COUNTRIES WHERE COUNTRY_ID ="BZ").

    There is a good chance COUNTRY table also has unique key/index on COUNTRY_NAME. If so use:

    SQL = "INSERT INTO COUNTRIES (COUNTRY_ID, COUNTRY_NAME, REGION_ID) SELECT"BZ","BLZ", 3 DOUBLE WHERE DOES NOT EXIST (SELECT 1 FROM COUNTRIES WHERE COUNTRY_ID = 'BZ' OR 'BLZ' = COUNTRY_NAME).

    SY.

  • EMCA fails with the error "ORA-01034: ORACLE is not available.

    Hello
    10g R2 on AIX I have the following error:
    emca -config dbcontrol db -repos create
    ......................................................
    .....................................................
    Password for DBSNMP user:
    Invalid username/password. [ORA-01034: ORACLE not available]
    And that's because all oracle processes are runing with:
    ORACLE_HOME=/U00/Oracle/product/10.2.0/Db_1/

    EMCA fails with the error "ORA-01034: ORACLE is not available" and "Name of user and password invalid." For DBSNMP user [ID 550484.1]
    It is said:
    +<moderator edit - removed MOS content>+
    Can I do the reverse and in the script of the emca, add "/" at the end of ORACLE_HOME=/u00/oracle/product/10.2.0/db_1
    ??
    Thank you.

    Edited by moderator - content removed from MOS

    Hi user;

    First of all please do not post details here, its against to oracle interoperability metalink, ID is sufficient for us. Secondly, yes you can, first to save $ORACLE_HOME/bin/emca script like

    CP $ORACLE_HOME/bin/emca $ORACLE_HOME/bin/emca_org

    to change the file number and test

    Respect of
    HELIOS

Maybe you are looking for