Issue with minor substitution in sql

I have spend a lot of time trying to get this to work but no joy.
I am using sql developer and the db version is 10.2.0.5
Your help and contribution will be greatly appreciated.
It is a long sql and I am just pasting the FROM statement as that seems the problems is coming from there... It was working before I change the bold from scj_moac to crs.crs_moac. The problems seem to be the left join which I dont really understand
select ..........
FROM SRS_SCJ scj
INNER JOIN srs_cqa cqa
ON cqa.cqa_crsc = scj.scj_crsc
INNER JOIN( INS_STU
LEFT JOIN srs_nat
ON nat_code = stu_natc)
ON stu_code = scj_stuc
LEFT JOIN ( ins_spr spr
LEFT JOIN ( CAM_SAW saw
LEFT JOIN ins_awd awd
ON awd.awd_code = saw.awd_code)
ON saw.spr_code = spr.spr_code
AND saw.aws_code = 'CONF')
LEFT JOIN ins_awd awd2
ON awd2.awd_code = spr.awd_code
ON spr.spr_code = scj_sprc
LEFT JOIN ins_moa moa
ON moa.moa_code = crs.crs_moac
LEFT JOIN srs_crs crs
LEFT JOIN ins_dpt dpt
ON dpt.dpt_code = crs.crs_dptc
ON crs.crs_code = scj.scj_crsc
INNER JOIN srs_sta sta
ON sta.sta_code = scj.scj_stac
The error is:
ORA-00904: "CRS"."CRS_MOAC": invalid identifier
00904. 00000 - "%s: invalid identifier"
*Cause:   
*Action:
Error at Line: 44 Column: 20

Hi,
The join criteria is referencing table alias "prior to its " definition which is CRS.
Example...
with t
(select 'A' x from dual)
, t1 as
(select 'B' x from dual)
, t2 as
(select 'C' x from dual)
select * from a
left outer join b
on a.x = c.x
left outer join c
on b.x = c.x
Error at Command Line:2 Column:1
Error report:
SQL Error: ORA-00904: : invalid identifier
00904. 00000 -  "%s: invalid identifier"However, if you rearrange the "order of tables and join predicates" such that definition of alias is prior to its reference, it'll work fine.
vr

Similar Messages

  • Performance issues with dynamic action (PL/SQL)

    Hi!
    I'm having perfomance issues with a dynamic action that is triggered on a button click.
    I have 5 drop down lists to select columns which the users want to filter, 5 drop down lists to select an operation and 5 boxes to input values.
    After that, there is a filter button that just submits the page based on the selected filters.
    This part works fine, the data is filtered almost instantaneously.
    After this, I have 3 column selectors and 3 boxes where users put values they wish to update the filtered rows to,
    There is an update button that calls the dynamic action (procedure that is written below).
    It should be straight out, the only performance issue could be the decode section, because I need to cover cases when user wants to set a value to null (@) and when he doesn't want update 3 columns, but less (he leaves '').
    Hence P99_X_UC1 || ' = decode('  || P99_X_UV1 ||','''','|| P99_X_UC1  ||',''@'',null,'|| P99_X_UV1  ||')
    However when I finally click the update button, my browser freezes and nothing happens on the table.
    Can anyone help me solve this and improve the speed of the update?
    Regards,
    Ivan
    P.S. The code for the procedure is below:
    create or replace
    PROCEDURE DWP.PROC_UPD
    (P99_X_UC1 in VARCHAR2,
    P99_X_UV1 in VARCHAR2,
    P99_X_UC2 in VARCHAR2,
    P99_X_UV2 in VARCHAR2,
    P99_X_UC3 in VARCHAR2,
    P99_X_UV3 in VARCHAR2,
    P99_X_COL in VARCHAR2,
    P99_X_O in VARCHAR2,
    P99_X_V in VARCHAR2,
    P99_X_COL2 in VARCHAR2,
    P99_X_O2 in VARCHAR2,
    P99_X_V2 in VARCHAR2,
    P99_X_COL3 in VARCHAR2,
    P99_X_O3 in VARCHAR2,
    P99_X_V3 in VARCHAR2,
    P99_X_COL4 in VARCHAR2,
    P99_X_O4 in VARCHAR2,
    P99_X_V4 in VARCHAR2,
    P99_X_COL5 in VARCHAR2,
    P99_X_O5 in VARCHAR2,
    P99_X_V5 in VARCHAR2,
    P99_X_CD in VARCHAR2,
    P99_X_VD in VARCHAR2
    ) IS
    l_sql_stmt varchar2(32600);
    p_table_name varchar2(30) := 'DWP.IZV_SLOG_DET'; 
    BEGIN
    l_sql_stmt := 'update ' || p_table_name || ' set '
    || P99_X_UC1 || ' = decode('  || P99_X_UV1 ||','''','|| P99_X_UC1  ||',''@'',null,'|| P99_X_UV1  ||'),'
    || P99_X_UC2 || ' = decode('  || P99_X_UV2 ||','''','|| P99_X_UC2  ||',''@'',null,'|| P99_X_UV2  ||'),'
    || P99_X_UC3 || ' = decode('  || P99_X_UV3 ||','''','|| P99_X_UC3  ||',''@'',null,'|| P99_X_UV3  ||') where '||
    P99_X_COL  ||' '|| P99_X_O  ||' ' || P99_X_V  || ' and ' ||
    P99_X_COL2 ||' '|| P99_X_O2 ||' ' || P99_X_V2 || ' and ' ||
    P99_X_COL3 ||' '|| P99_X_O3 ||' ' || P99_X_V3 || ' and ' ||
    P99_X_COL4 ||' '|| P99_X_O4 ||' ' || P99_X_V4 || ' and ' ||
    P99_X_COL5 ||' '|| P99_X_O5 ||' ' || P99_X_V5 || ' and ' ||
    P99_X_CD   ||       ' = '         || P99_X_VD ;
    --dbms_output.put_line(l_sql_stmt); 
    EXECUTE IMMEDIATE l_sql_stmt;
    END;

    Hi Ivan,
    I do not think that the decode is performance relevant. Maybe the update hangs because some other transaction has uncommitted changes to one of the affected rows or the where clause is not selective enough and needs to update a huge amount of records.
    Besides that - and I might be wrong, because I only know some part of your app - the code here looks like you have a huge sql injection vulnerability here. Maybe you should consider re-writing your logic in static sql. If that is not possible, you should make sure that the user input only contains allowed values, e.g. by white-listing P99_X_On (i.e. make sure they only contain known values like '=', '<', ...), and by using dbms_assert.enquote_name/enquote_literal on the other P99_X_nnn parameters.
    Regards,
    Christian

  • Memory leak issue with link server between SQL Server 2012 and Oracle

    Hi,
    We are trying to use the linked server feature with SQL Server 2012 to connect SQL server and Oracle database. We are concerned about the existing memory leak issue.  For more context please refer to the link.
    http://blogs.msdn.com/b/psssql/archive/2009/09/22/if-you-use-linked-server-queries-you-need-to-read-this.aspx
    The above link talks about the issues with SQL Server versions 2005 and 2008, not sure if this is still the case in 2012.  I could not find any article that talks about if this issue was fixed by Microsoft in later version.
    We know that SQL Server process crashes because of the third-party linked server provider which is loaded inside SQL Server process. If the third-party linked server provider is enabled together with the
    Allow inprocess option, the SQL Server process crashes when this third-party linked server experiences internal problems.
    We wanted to know if this fixed in SQL Server 2012 ?

    So your question is more of a information type or are you really facing OOM issue.
    There can be two things for OOM
    1. There is bug in SQL Server which is causing the issue which might be fixed in 2012
    2. The Linked server provider used to connect to Oracle is not upto date and some patch is missing or more recent version is to be used.  Did you made sure that you are using latest version.
    What is Oracle version you are trying to connect(9i,10g, R2...)
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Wiki Article
    MVP

  • Issue with activated substitution role disappearing

    Hello,
    We have an example of a user that is experiencing problems accessing her substitution role. Her approver is off on long term sick, hence, her substitution role has been activated in 'Maintain Substitutions' in the ERP portal to enable her to authorise purchase orders on behalf of her approver. However, the drop down menu that usually appears when the substitutor is activated does not appear in the universal worklist. Therefore, this means that the user cannot access/view any purchase orders for approval delaying payment to vendors.
    The delegator has deleted and re-installed the substitute in 'Maintain Substitutes' but has failed to do anything. I have checked the users roles and they are all up to date.
    The only inconsistancy I can see is in the users universal worklist connection status. Comparing this to another users universal worklist connection status (that is not experiencing any problems with their substitutions) highlights a difference in message. There is an error message stating AdHocSystem/AdHocWorkflowConnector/Failure/ActionFailed. Any suggestions?

    Hi Sarah
    Most probably the issue is occuring due to an inconsistency or problem with the user which is receiving this error. As you mentioned, other users are perfectly able to access the popup to maintain substitutes without any error in the "Display Connection Status" popup and the same are able to see the combo to select a possible user to substitute.
    So the reason for the portal not to show the combo to select the user is that from substitution perspective, the connection to all the systems registered within UWL need to be working. As for this affected user the AdHocWorkflowConnector is failing, the combo is not showing.
    Maybe you could try checking the latest trace messages (from the default trace file) which are written right after the user entered the UWL application and check whether this would help on finding what the problem with this user would be.
    Also other thing which you could try checking is regarding how this problematic user is maintained in Identity Management. Another prerequisite for substitution is that the users should have both a first name and last name in the respective fields. Check about the possibility of this user being set in disagreement with this.
    Hope this helps
    Best regards
    Armando Zaro

  • Issues with using Embedded PL SQL Gateway with Apex 4.2

    Hi,
    I have installed Oracle 11g R2 and want to develop an application using Apex 4.2 (needs upgrade from 3.2 version which has come bundled).
    For the server, I would like to use the Oracle HTTP server, but it seems to require a separate license as against the same in Oracle10g.
    I would like to know what are the performance related issues b/w using the embedded PL/SQL Gateway (Oracle XML DB HTTP Server) that comes with Oracle 11g R2 as against the HTTP Server found as a part of the fusion middleware bundle. Is it wise to procure the license for HTTP Server?
    Details:
    DB OS: Windows 7 (64 bit) (DB and Apex are on the same machine)
    Number Of Users of application: 10-20
    Application is mainly used more for keeping track of details as against heavy processing or the like
    Thanks

    For the server, I would like to use the Oracle HTTP server, but it seems to require a separate license as against the same in Oracle10g.What gives you this impression? The licensing position remains the same: OHS is covered by the DB license if OHS is run on the same server. See Joel's post and the document he links to: +{message:id=9256804}+.

  • Issue with migration DB from SQL Server 2005 to Oracle 11.2 using SQL Developer Migration workbench

    Hi,
    We face an issue while migrating an SQL Server 2005 DB to Oracle 11.2.  It fails during the process.  I hope someone on the forum has seen this before and can give us some advice.
    I use the latest version of SQL Developer with JRE included (3.2.20.09).  The JDBC driver to connect to SQL Server 2005 is 1.2.0
    Here are the steps we take in the Migration Workbench wizard:
    I made an online extract of the SQL Server database.
    Using the workbench in SQL Developer I created a migration repository in schema PDM_MIGRATION.
    Next I start the migration, it captures the tables fine, but immediately after the start of the conversion I get a failed message without further explanations.
    This is the content of the error xml:
    <?xml version="1.0" encoding="windows-1252" standalone="no"?>
    <log>
    <record>
      <date>2013-08-14T16:23:32</date>
      <logger>oracle.dbtools.migration.workbench.core.MigrationLogResourceBundle</logger>
      <level>SEVERE</level>
      <class>oracle.dbtools.migration.workbench.core.logging.MigrationLogUtil</class>
      <message>Ongeldig naampatroon.: PDM_MIGRATION .MIGR_FILTER</message>
      <param>oracle.dbtools.migration.workbench.core.logging.LogInfo@4c12ab</param>
      <exception>
        <message>oracle.dbtools.migration.convert.ConvertException: Ongeldig naampatroon.: PDM_MIGRATION .MIGR_FILTER</message>
        <frame>
          <class>oracle.dbtools.migration.convert.ConverterWorker</class>
          <line>1078</line>
        </frame>
        <frame>
          <class>oracle.dbtools.migration.convert.ConverterWorker</class>
          <line>316</line>
        </frame>
        <frame>
          <class>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask</class>
          <line>1002</line>
        </frame>
        <frame>
          <class>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask</class>
          <line>303</line>
        </frame>
        <frame>
          <class>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask</class>
          <line>205</line>
        </frame>
        <frame>
          <class>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask</class>
          <line>159</line>
        </frame>
        <frame>
          <class>oracle.dbtools.raptor.backgroundTask.RaptorTask</class>
          <line>193</line>
        </frame>
        <frame>
          <class>java.util.concurrent.FutureTask$Sync</class>
          <line>303</line>
        </frame>
        <frame>
          <class>java.util.concurrent.FutureTask</class>
          <line>138</line>
        </frame>
        <frame>
          <class>oracle.dbtools.raptor.backgroundTask.RaptorTaskManager$RaptorFutureTask</class>
          <line>515</line>
        </frame>
        <frame>
          <class>java.util.concurrent.Executors$RunnableAdapter</class>
          <line>441</line>
        </frame>
        <frame>
          <class>java.util.concurrent.FutureTask$Sync</class>
          <line>303</line>
        </frame>
        <frame>
          <class>java.util.concurrent.FutureTask</class>
          <line>138</line>
        </frame>
        <frame>
          <class>java.util.concurrent.ThreadPoolExecutor$Worker</class>
          <line>886</line>
        </frame>
        <frame>
          <class>java.util.concurrent.ThreadPoolExecutor$Worker</class>
          <line>908</line>
        </frame>
        <frame>
          <class>java.lang.Thread</class>
          <line>662</line>
        </frame>
      </exception>
    </record>
    <record>
      <date>2013-08-14T16:23:32</date>
      <logger>oracle.dbtools.migration.workbench.core.MigrationLogResourceBundle</logger>
      <level>SEVERE</level>
      <class>oracle.dbtools.migration.workbench.core.logging.MigrationLogUtil</class>
      <message>Ongeldig naampatroon.: PDM_MIGRATION .MIGR_FILTER</message>
      <param>oracle.dbtools.migration.convert.ConverterWorker.copyModel(ConverterWorker.java:1078)</param>
      <param>oracle.dbtools.migration.convert.ConverterWorker.runConvert(ConverterWorker.java:316)</param>
      <param>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask.doConvert(FullMigrateTask.java:1002)</param>
      <param>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask.doMaskBasedActions(FullMigrateTask.java:303)</param>
      <param>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask.doWork(FullMigrateTask.java:205)</param>
      <param>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask.doWork(FullMigrateTask.java:159)</param>
      <param>oracle.dbtools.raptor.backgroundTask.RaptorTask.call(RaptorTask.java:193)</param>
      <param>java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)</param>
      <param>java.util.concurrent.FutureTask.run(FutureTask.java:138)</param>
      <param>oracle.dbtools.raptor.backgroundTask.RaptorTaskManager$RaptorFutureTask.run(RaptorTaskManager.java:515)</param>
      <param>java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)</param>
      <param>java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)</param>
      <param>java.util.concurrent.FutureTask.run(FutureTask.java:138)</param>
      <param>java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)</param>
      <param>java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)</param>
      <param>java.lang.Thread.run(Thread.java:662)</param>
      <param>oracle.dbtools.migration.workbench.core.logging.LogInfo@5dc1bc</param>
      <exception>
        <message>oracle.dbtools.migration.convert.ConvertException: Ongeldig naampatroon.: PDM_MIGRATION .MIGR_FILTER</message>
        <frame>
          <class>oracle.dbtools.migration.convert.ConverterWorker</class>
          <line>1078</line>
        </frame>
        <frame>
          <class>oracle.dbtools.migration.convert.ConverterWorker</class>
          <line>316</line>
        </frame>
        <frame>
          <class>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask</class>
          <line>1002</line>
        </frame>
        <frame>
          <class>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask</class>
          <line>303</line>
        </frame>
        <frame>
          <class>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask</class>
          <line>205</line>
        </frame>
        <frame>
          <class>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask</class>
          <line>159</line>
        </frame>
        <frame>
          <class>oracle.dbtools.raptor.backgroundTask.RaptorTask</class>
          <line>193</line>
        </frame>
        <frame>
          <class>java.util.concurrent.FutureTask$Sync</class>
          <line>303</line>
        </frame>
        <frame>
          <class>java.util.concurrent.FutureTask</class>
          <line>138</line>
        </frame>
        <frame>
          <class>oracle.dbtools.raptor.backgroundTask.RaptorTaskManager$RaptorFutureTask</class>
          <line>515</line>
        </frame>
        <frame>
          <class>java.util.concurrent.Executors$RunnableAdapter</class>
          <line>441</line>
        </frame>
        <frame>
          <class>java.util.concurrent.FutureTask$Sync</class>
          <line>303</line>
        </frame>
        <frame>
          <class>java.util.concurrent.FutureTask</class>
          <line>138</line>
        </frame>
        <frame>
          <class>java.util.concurrent.ThreadPoolExecutor$Worker</class>
          <line>886</line>
        </frame>
        <frame>
          <class>java.util.concurrent.ThreadPoolExecutor$Worker</class>
          <line>908</line>
        </frame>
        <frame>
          <class>java.lang.Thread</class>
          <line>662</line>
        </frame>
      </exception>
    </record>
    <record>
      <date>2013-08-14T16:23:32</date>
      <logger>oracle.dbtools.migration.workbench.core.MigrationLogResourceBundle</logger>
      <level>WARNING</level>
      <class>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask</class>
      <message>Building converted model: FAILED : Database Migration : FAILED</message>
      <param>oracle.dbtools.migration.workbench.core.logging.LogInfo@15a3779</param>
    </record>
    Does anybody know what this error means and what steps we should take to continue the migration?
    I see the PDM_MIGRATION.MIGR_FILTER is a type.
    Many thanks in advance,
    Kris

    Hi Wolfgang,
    Thanks for your reply.
    This is how the type MIGR_FILTER looks like:
    create or replace
    TYPE MIGR_FILTER IS OBJECT (
      FILTER_TYPE INTEGER, -- Filter Types are 0-> ALL, 1->NAMELIST, 2->WHERE CLAUSE, 3->OBJECTID LIST
      OBJTYPE VARCHAR2(40),
      OBJECTIDS OBJECTIDLIST,
      NAMES NAMELIST,
      WHERECLAUSE VARCHAR2(1000));
    I think the repository user has the correct privileges.  This is the overview of privileges it has:
    SQL> select * from dba_sys_privs where GRANTEE in ('PDM_MIGRATION') order by GRANTEE;
    GRANTEE PRIVILEGE ADM
    PDM_MIGRATION ALTER SESSION NO
    PDM_MIGRATION CREATE CLUSTER NO
    PDM_MIGRATION CREATE DATABASE LINK NO
    PDM_MIGRATION CREATE PROCEDURE NO
    PDM_MIGRATION CREATE SEQUENCE NO
    PDM_MIGRATION CREATE SESSION NO
    PDM_MIGRATION CREATE SYNONYM NO
    PDM_MIGRATION CREATE TABLE NO
    PDM_MIGRATION CREATE TRIGGER NO
    PDM_MIGRATION CREATE VIEW NO
    PDM_MIGRATION UNLIMITED TABLESPACE NO
    SQL> select * from dba_role_privs where GRANTEE in ('PDM_MIGRATION') order by GRANTEE;
    GRANTEE GRANTED_ROLE ADM DEF
    PDM_MIGRATION CONNECT NO  YES
    PDM_MIGRATION RESOURCE NO  YES
    Best regards,
    Kris

  • Connectivity issue with local instance of sql server

    hi everbody,
    well for the last couple of days i have almost taken my head out to get this issue resolved.
    but still i am no where. i have already referred to so many tips available online but still can't fix the prob.
    i am trying to connect a C# ( .net 2005) program to connect to the  integrated sql server 2005 instance on my local computer.
    i have got windows 7 home basic on my pc with .net frame work 2.0 sp2 and have also upgraded to sql server 2005 sp3 as per some online study.
    i have also tried all these steps but still getting the error 40.
    1. Check Whether the SQL Server is running or not.
    Because the trial to connect to the stopped server may also cause this problem.
    2. Check the name of the SQl Server.
    For example, if we try to connect to SQL server using .NET application, for some SQL Server, the name of the server "localhost" works, but for some server, we may need to mention "(local)".
    3. Check Whether the SQL Browser Service is running
    4. Check Whether the TCP/IP is enabled for SQL Server Configuration
    * Expand SQL Server Configuration Manager
    * Enable TCP/IP
    5. Firewall Settings
    You may need to add the port of Sql server to the Firewall if it is other than the default port(1433).
    Go to Control Panel | Windows Firewall | Change Settings | Exceptions | Add Port
    6. Enable the Remote Connection
    Goto SQL Server Management Studio.
    Right Click on Server node
    Click On Properties
    Check the Allow Remote connections to Server Check Box
    7. Enable Named Pipes
    - Open the "SQL Server Configuration Manager" (under Configuration Tools)
    - Expand the "SQL Server 2005 Network Configuration"
    - Select the "Protocols for "
    - Set the Named Pipes To Enabled
    8. Create Exception of Sqlbrowser.exe
    kindly provide me some help with your valuable suggestions.

    Hi Mukesh Devrani,
    Thank you for posting.
    Your question is more like SQL. I suggest that you can ask your question in SQL forum.
    http://social.msdn.microsoft.com/Forums/en/category/sqlserver/
    Best Regards,
    Larcolais
    MSDN Subscriber Support in Forum
    If you have any feedback of our support, please contact [email protected]
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.

  • SQL Developer 1.1.0.21: Issues with Data Grid and SQL syntax checking

    In this new release of SQL Dev, when I execute a SQL in the SQL Worksheet and click in the Data Grid in the Results tab and try to navigate within a record using arrow keys, the grid cell enters into edit mode by default and so I cannot use the Left or Right arrow keys to navigate the grid. I am forced to use tab key to navigate. This is counter intuitive in my opinion.
    Is there any option to change this behavior?
    Another issue that I have come across is with SQL syntax checking. In some cases, when I press F9 to execute a SQL, it shows the SQL as executed i.e. shows something like 0.0134 seconds in the toolbar and no results displayed. In reality, the SQL had some syntax error which were NOT reported. This can be frustrating since now I have to fall back to SQL*Plus or TOAD just for syntax check.
    I like the fact that SQLDev highlights the current SQL but it would be more useful if it just indicated the first line of the current sql instead of highlighting the whole sql.
    Manish

    "In this new release of SQL Dev, when I execute a SQL in the SQL Worksheet and click in the Data Grid in the Results tab and try to navigate within a record using arrow keys, the grid cell enters into edit mode by default and so I cannot use the Left or Right arrow keys to navigate the grid. I am forced to use tab key to navigate. This is counter intuitive in my opinion."
    In the "Results" tab, Click Ctrl & Tab keys (at the same time) or with mouse click on any cell other than the first column (a sequence or rownum), you will be able to navigate using the arrow keys.
    "Another issue that I have come across is with SQL syntax checking. In some cases, when I press F9 to execute a SQL, it shows the SQL as executed i.e. shows something like 0.0134 seconds in the toolbar and no results displayed. In reality, the SQL had some syntax error which were NOT reported. This can be frustrating since now I have to fall back to SQL*Plus or TOAD just for syntax check."
    The 0.0134 seconds could be the result of the most recently executed successful statement. Check the Script Output tab for errors. Use F5 (Run Script option) instead of F9.
    "I like the fact that SQLDev highlights the current SQL but it would be more useful if it just indicated the first line of the current sql instead of highlighting the whole sql."
    On the SQL statement (or code), Right Click -> Format SQL (or press Ctrl & B), proper formatting would help.
    I use version 1.0.0.15.57 and seems to be working allright.
    - Babu Rangasamy

  • Re: issue with VO substitution

    Hi All,
    I ve downloaded the right patch. I successfully ran the tutorial pages and also ran the HRMS self service pages from jdeveloper. I am trying to do the VO substitution and check it from jdeveloper. So i added the following "–Djbo.project=OAProject3" to the java option in the project settings. But when i run the page I am getting the following error.
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    C:\Jdeveloper\jdevbin\jdk\bin\javaw.exe -client -classpath C:\Jdeveloper\jdevbin\j2ee\home\oc4j.jar;C:\Jdeveloper\jdevbin\jdev\lib\jdev-oc4j.jar -Xbootclasspath/p:C:\Jdeveloper\jdevbin\jdev\appslibrt\ojdbc14.jar;C:\Jdeveloper\jdevbin\jdev\appslibrt\nls_charset12.zip -DFND_JDBC_STMT_CACHE_SIZE=200 -DCACHENODBINIT=true -DRUN_FROM_JDEV=true -mx256m –Djbo.project=OAProject3 -Xverify:none -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 com.evermind.server.OC4JServer -config C:\Jdeveloper\jdevhome\jdev\system9.0.3.5.1453\oc4j-config\server.xml
    [waiting for the server to complete its initialization...]
    java.lang.NoClassDefFoundError: –Djbo/project=OAProject3
    Exception in thread "main"
    Process exited with exit code 1.
    Can anybody plz look into this and let me know if any thing is wrong here. I checked it in the forum for similar issues but could not find solutions.
    Thanks,
    Sree.

    Hi Sudhakar,
    Thanks for the reply..
    Yes. I get 0 errors when i rebuild my project. and also i ve done the substitution. Below are the steps i followed.
    1. Got all relevant files from unix box.
    2. created a custom package fro my bc4j's.
    3. created a VO with Extends property set ti the seed VO i wish to extend.
    4. Created the substitution.
    Also I could see the substitution in the .jpx file.
    <?xml version="1.0" encoding='windows-1252'?>
    <!DOCTYPE JboProject SYSTEM "jbo_03_01.dtd">
    <JboProject
    Name="OAProject3"
    SeparateXMLFiles="true"
    PackageName="" >
    <DesignTime>
    <Attr Name="_version" Value="9.0.3.14.00" />
    <Attr Name="_jprName" Value="OAProject3.jpr" />
    <Attr Name="_ejbPackage" Value="false" />
    <Attr Name="_NamedConnection" Value="VOND" />
    </DesignTime>
    <Containee
    Name="server"
    FullName="oracle.apps.ap.oie.history.server.server"
    ObjectType="JboPackage" >
    </Containee>
    <Containee
    Name="server"
    FullName="xxvon.oracle.apps.ap.oie.history.server.server"
    ObjectType="JboPackage" >
    </Containee>
    <Substitutes>
    <Substitute OldName ="oracle.apps.ap.oie.history.server.HistoryReportsVO" NewName ="xxvon.oracle.apps.ap.oie.history.server.xxvonHistoryReportsVO" />
    </Substitutes>
    </JboProject>
    Thanks,
    Sree

  • Issue with FI substitution in Miro

    Hi Friends,
    I have a substitution created in FI. According to substitution, if cost center entered in document is 'xyz', then it will substitute tax code from x1 to x2. It is working fine for any FI document posted in FI (like FB01 and so on)
    I am expecting this should work fine with MIRO postings also.
    (X1 is input tax and X2 is irrecoverable tax)
    But when I try to post a transaction MIRO with this cost center and tax code X1, it is not substitute to X2 and it is giving error as follows:
    Tax statement item missing for tax code X2
    Message no. FF805
    Diagnosis
    No tax item exists for tax code X2 in a G/L account item. A possible cause is an incorrect transfer of parameters by the application to the Accounting interface.
    Procedure
    Enter an OSS message.
    Please could any one help me?
    Thanks and Regards,
    Krishna.

    Hi,
    If it is working fine for FB01 document type XYZ,then it should work for MIRO also.
    Please check the FI document type which is generating from MIRO.
    I guess the document type from MIRO is not XYZ.
    Thats why it is not substituting the Tax value.
    Regards
    jabeen

  • Issue with union all in sql

    Hi All,
    I have a requirement as below.
    SELECT 'A' AS 'XXX' FROM DUAL
    UNION ALL
    SELECT 'B' AS 'XXX' FROM DUAL
    I need to check in such a way in my second sql query if 'B'='A' then i need to print 'A' else 'B' , means in my second query i need to compare the value of XXX with the first query value of XXX if it is same then i need to print first query's value of XXX or else need to print second queries XXX value.
    Please help me on this

    user13424229 wrote:
    Hi All,
    I have a requirement as below.
    SELECT 'A' AS 'XXX' FROM DUAL
    UNION ALL
    SELECT 'B' AS 'XXX' FROM DUAL
    I need to check in such a way in my second sql query if 'B'='A' then i need to print 'A' else 'B' , means in my second query i need to compare the value of XXX with the first query value of XXX if it is same then i need to print first query's value of XXX or else need to print second queries XXX value.
    Please help me on thisYour quesiton is not very clear, I would suggest you read {message:id=9360002}.
    If you are looking at a way to see the next or previous row from your current row then you can use LEAD or LAG analytical function. They are well documented. You can read all about it there.

  • Issue with Variable Substitution

    Hi,
    We have a scenario where we need to use the data from Payload for further processcing of the messeges.The payload looks like the one given below.
    <?xml version="1.0" encoding="utf-8" ?>
    - <ns1:MT_NOTIFICATION xmlns:ns1="http://WM_ERRHAND"   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    - <PROXYRESPONSE>
      <STATUS>YES</STATUS>
      <NAMESPACE>WM_INVOICE</NAMESPACE>
      <INTERFACENAME>MI_INVOICE_MOORE_ACK_IN</INTERFACENAME>
      <PROXYNAME>ZXIII_MI_INVOICE_MOORE_ACK_IN</PROXYNAME>
      </PROXYRESPONSE>
      </ns1:MT_NOTIFICATION>
    In adapter, for variable substitution we have specified as below:
    payload:MT_NOTIFICATION,1,PROXYRESPONSE,1,NAMESPACE,1
    but getting an error "Message processing failed: Error during variable substitution: java.text.ParseException: Variable 'namespace' not found in variable substitution table"
    Is the variable that we have declared is right or is there anything we have missed out. Any helpful answers will be rewarded
    Thanks and regards,
    Ram.

    Hi Ram,
    The substitution looks fine.
    Did you read this,
    <i>To disable the check the adapter performs for the element data, set the Disable Security Checks indicator.
    Otherwise, the adapter checks whether the element data contains characters that could lead to security risks in the file system environment. The check includes the characters “/“, “\“, and “..“.</i>
    Try seleting this option and checking the same.
    Regards,
    Bhavesh

  • Issue with viewing packages in SQL Developer EA2

    I posted a message when EA1 came out asking why I couldn't see the package's body in EA1.
    Now I couldn't see the any thing under '$schema/packages' in EA2.
    Does anybody know why?
    My OS: Windows XP Pro SP2
    Oracle: 9i
    SQL Developer version: EA2

    In version 9 a very simple sql is supposed to be executed:
    SELECT OBJECT_NAME, OBJECT_ID,
    DECODE(STATUS, 'INVALID', 'TRUE', 'FALSE') INVALID,
    'TRUE' runnable
    FROM SYS.ALL_OBJECTS a
    WHERE OWNER = :SCHEMA
    AND OBJECT_TYPE = 'PACKAGE'
    AND SUBOBJECT_NAME IS NULL
    -- for packages
    SELECT OBJECT_NAME, OBJECT_ID,
         DECODE(STATUS, 'INVALID', 'TRUE', 'FALSE') INVALID,
    'TRUE' runnable
    FROM SYS.ALL_OBJECTS o
    WHERE OWNER =:SCHEMA
    AND OBJECT_NAME = :PARENT_NAME
    AND OBJECT_TYPE = 'PACKAGE BODY'
    -- for package bodies
    If either of these doesn't return anything in worksheet, then the problem is right there. However, this part hasn't been changed since EA1 (The only change was adding SYS.DBA_PLSQL_OBJECT_SETTINGS requirement for version >=10). I can't reproduce the problem: in 9i scott sees any procedure/package I create.

  • Line Chart query...having issues with finding the right SQL...tough query

    This initaial entry was much longer and confusing.
    I'm looking to make ar running total based using time periods...see the link in the last post to get to the demo.apex.com area.
    Rob
    Edited by: bostonmacosx on Feb 14, 2013 1:33 PM

    bostonmacosx wrote:
    Hello there. So I hope I can explain this sufficiently:
    OUT OF THE WAY: 11g 4.1.1
    I'm going to simplify my data so that it is clear what I'm looking to do.
    I want to have a line chart grouped by date. Let's say monthly...this is easy to do if you are dealing with one specific date and some value you can build the series against with case statements. I've done that a million times.
    The columns of data I'm dealing with are as follows:
    CREATE_DT(create date)
    RETIRE_DT(retire date)
    MACHINE_TYPE(type of machine)
    So lets say I want to see a line chart where each line(data point) is a MACHINE_TYPE and each bin is a month. That month should be any machine with a CREATE_DT below then end of the month and a RETIRE_DT which is either Greater then the end of the month or is NULL(ala hasn't been retired yet).
    In the query for a chart which is
    SELECT LINK,LABEL,CASE()"",CASE()"",CASE()"" from TABLE GROUP BY ROLLUP(VALUE)I guess I'm not seeing how to be able to put these values together so that it walks month by month and figures out the values and puts them in the correct "bin" of time along the X axis of the chart.
    I hope I'm being semi clear as it is hard to explain this scenario. Nope. Clear as mud.
    If time is plotted against the X axis, what measure is plotted on the Y?
    =============
    on another note I built this table from the data:
    01-JAN-12     01-FEB-12     01-MAR-12     01-APR-12     01-MAY-12     01-JUN-12     01-JUL-12     01-AUG-12     01-SEP-12     01-OCT-12     01-NOV-12     01-DEC-12     01-JAN-13     ENVOS
    59     59     59     59     59     59     59     59     59     59     59     60     60      Alias
    12     26     26     26     26     26     26     26     26     26     26     26     26      Blade
    9     9     9     9     9     9     9     9     9     9     9     9     9      DataMvrUsing the function:
    create or replace FUNCTION ACTIVE_SYSTEMS
    RETURN VARCHAR2
    is
    var1 VARCHAR2(4000):= '';
    start_date DATE:= to_Date('05-JAN-2012','DD-MON-YYYY');
    end_date DATE:= to_Date('08-JAN-2013','DD-MON-YYYY');
    new_start_date DATE;
    BEGIN
    new_start_date:=trunc(start_date,'MONTH');
    var1 := q'!SELECT !';
    while(new_start_date<end_date)
    LOOP
    var1 := var1 || q'! count(case when create_dt<'!'||to_char(new_start_date,'DD-MON-YY')||q'!' and (retire_dt IS NULL or retire_dt>'!'||to_char(new_start_date,'DD-MON-YY')||q'!') then 1 end) "!' ||to_char(new_start_date,'DD-MON-YY')||q'!",!';
    new_start_date:= add_months(new_start_date,1);
    END LOOP;
    var1 := var1 || q'! CMS_NODE_OS.OS_TYPE||' '||node_env as envos from CMS.CMS_NODE LEFT join CMS.CMS_NODE_OS on CMS.CMS_NODE.NODE_NAME=CMS.CMS_NODE_OS.NODE_NAME where retire_dt is NULL group by rollup(CMS_NODE_OS.OS_TYPE||' '||node_env)!';
    RETURN var1;
    END;
    Instead of inadequate attempts to explain this here with fragments of code that we can't do anything with because we don't possess the objects and data they're based on, show us something. Create the objects and some sample data in a workspace on apex.oracle.com and post guest developer credentials. Sketch the required chart or mock it up in a spreadsheet and upload it as an image or PDF so we can see what you're aiming for.

  • Issues with substitution

    Hi Gurus,
    Our substitution does not work even though all necessary pre-steps were done, such as importing the substitutions, bounce. But the original VO is still being used.
    Are there any issues with the substitution mechanism.
    Thanks for your advise in advance.

    Hi Gurus,
    Our substitution does not work even though all necessary pre-steps were done, such as importing the substitutions, bounce. But the original VO is still being used.
    Are there any issues with the substitution mechanism.
    Thanks for your advise in advance.

Maybe you are looking for

  • Question? Can you safely delete huge media cache files?

    Dear Experts: In working with PRE7 I found that almost all of my disc space was contained in my media cache folder and it was clogging up all my work. What is that file and can it be deleted without causing harm or losing work? Tom

  • Ipadconnect directly toipod

    Is there a connector that will hardwire my iPod to iPad

  • Podcast Search results not showing all episodes

    I'm new to podcasting & our podcast isn't showing up properly. When you look at our podcast in the search results, only one episode shows up. There are three episodes total, but they show up only if you subscribe to the podcast. Is there a way for th

  • Linux Error: 111: Connection refused

    Hio all, icouldn't able to start the listener.... ia mgetting an error LSNRCTL> status Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=test.com)(PORT=1522))) TNS-12541: TNS:no listener TNS-12560: TNS:protocol adapter error   TNS-00511: No lis

  • Cannot connect to iTunes on new iPad2

    My new iPad cannot connect to iTunes. PC iTunes has latest software.  Sync but still cannot connect to iTunes. Frustrated;--(