HELP!!! Cannot get to execute in PL/SQL Developer against Oracel 9i

SELECT "Request Id", "Customer", "Profile Id", "Period", "Planned External", "Actual External", "Planned Total", "Actual Total", "Planned Internal", "Actual Internal"
FROM (SELECT ppl.request_id, ppl.mdpr_bds_ext_customer, cells.staff_prof_id, period.period_short_name, planned_fte/100 "Planned External", actual_fte/100 "Actual Internal", /*skills.skill_name,*/ total.plan_total_fte/100, total.actual_total_fte/100
FROM RML.MREQ_MDPR_PROJ PPL, knta.krsc_staff_prof_line_cells_v CELLS, knta.krsc_staff_prof_lines_v LINES, knta.knta_periods PERIOD, knta.krsc_skills_v SKILLS, knta.krsc_staff_prof_period_sum TOTAL
where PPL.MDPR_BDS_SUB_PROJ IS NOT NULL AND PPL.KNTA_STAFFING_PROFILE = CELLS.STAFF_PROF_ID(+) AND cells.staff_prof_line_id = lines.staff_prof_line_id AND ppl.knta_staffing_profile = total.staff_prof_id
AND cells.period_id = period.period_id AND lines.skill_id = skills.skill_id AND skills.skill_name like '%External%' AND total.period_id = period.period_id
--GROUP BY ppl.request_id, ppl.mdpr_bds_ext_customer, cells.staff_prof_id, period.period_short_name, planned_fte, actual_fte, skills.skill_name
UNION
SELECT ppl.request_id, ppl.mdpr_bds_ext_customer, cells.staff_prof_id, period.period_short_name, planned_fte/100 "Planned Internal", actual_fte/100 "Actual Internal", /*skills.skill_name,*/ total.plan_total_fte/100, total.actual_total_fte/100
FROM RML.MREQ_MDPR_PROJ PPL, knta.krsc_staff_prof_line_cells_v CELLS, knta.krsc_staff_prof_lines_v LINES, knta.knta_periods PERIOD, knta.krsc_skills_v SKILLS, knta.krsc_staff_prof_period_sum TOTAL
where PPL.MDPR_BDS_SUB_PROJ IS NOT NULL AND PPL.KNTA_STAFFING_PROFILE = CELLS.STAFF_PROF_ID(+) AND cells.staff_prof_line_id = lines.staff_prof_line_id AND ppl.knta_staffing_profile = total.staff_prof_id
AND cells.period_id = period.period_id AND lines.skill_id = skills.skill_id AND skills.skill_name not like '%External%' AND total.period_id = period.period_id)
--GROUP BY ppl.request_id, ppl.mdpr_bds_ext_customer, cells.staff_prof_id, period.period_short_name, planned_fte, actual_fte, skills.skill_name
ORDER BY REQUEST_ID--, SKILL_NAME

SELECT "Request Id", "Customer", "Profile Id", "Period", "Planned External", "Actual External", "Planned Total", "Actual Total", "Planned Internal", "Actual Internal"
FROM (SELECT ppl.request_id, ppl.mdpr_bds_ext_customer, cells.staff_prof_id, period.period_short_name, planned_fte/100 "Planned External", actual_fte/100 "Actual Internal", /*skills.skill_name,*/ total.plan_total_fte/100, total.actual_total_fte/100
FROM RML.MREQ_MDPR_PROJ PPL, knta.krsc_staff_prof_line_cells_v CELLS, knta.krsc_staff_prof_lines_v LINES, knta.knta_periods PERIOD, knta.krsc_skills_v SKILLS, knta.krsc_staff_prof_period_sum TOTAL
where PPL.MDPR_BDS_SUB_PROJ IS NOT NULL AND PPL.KNTA_STAFFING_PROFILE = CELLS.STAFF_PROF_ID(+) AND cells.staff_prof_line_id = lines.staff_prof_line_id AND ppl.knta_staffing_profile = total.staff_prof_id
AND cells.period_id = period.period_id AND lines.skill_id = skills.skill_id AND skills.skill_name like '%External%' AND total.period_id = period.period_id
UNION
SELECT ppl.request_id, ppl.mdpr_bds_ext_customer, cells.staff_prof_id, period.period_short_name, planned_fte/100 "Planned Internal", actual_fte/100 "Actual Internal", /*skills.skill_name,*/ total.plan_total_fte/100, total.actual_total_fte/100
FROM RML.MREQ_MDPR_PROJ PPL, knta.krsc_staff_prof_line_cells_v CELLS, knta.krsc_staff_prof_lines_v LINES, knta.knta_periods PERIOD, knta.krsc_skills_v SKILLS, knta.krsc_staff_prof_period_sum TOTAL
where PPL.MDPR_BDS_SUB_PROJ IS NOT NULL AND PPL.KNTA_STAFFING_PROFILE = CELLS.STAFF_PROF_ID(+) AND cells.staff_prof_line_id = lines.staff_prof_line_id AND ppl.knta_staffing_profile = total.staff_prof_id
AND cells.period_id = period.period_id AND lines.skill_id = skills.skill_id AND skills.skill_name not like '%External%' AND total.period_id = period.period_id)
ORDER BY REQUEST_ID
My error is that for some reason my Planned Internal is an invalid identifier. However if I just comment out in different places the error just moves around.

Similar Messages

  • How do I get my money refunded?  I am not getting what I want from this, cannot email anyone for help, cannot get someone on the phone I can understand, and keep getting disconnected.  I just want my money back.

    How do I get my money refunded?  I am not getting what I want from this, cannot email anyone for help, cannot get someone on the phone I can understand, and keep getting disconnected.  I just want my money back.

    "this" being what?  You posted in the Workspaces.acrobat.com forum, which is a free service.
    If you subscribed to any of the paid services see Cancel your membership or subscription | Acrobat.com online services

  • Cannot get Universe column in the sql server ?

    Hi,
    I able to get some of columns using below query , but I cannot get some of the columns from universe to SQL Server.
    If I try through SSIS also the columns are missing which are unable to get using openquery.
    If I add "Microsoft ODBC Data Source (ODBC)" for Universe U2 also then some of the columns are missing .
    For Example : Unable to get "Description" Column.
    How can I check what is the problem  ? Please help me on this..
    select * FROM OPENQUERY(ulive, 'select Description
    FROM TABLENAME WHERE Z_ID=''020324.doc''')
    Msg 7321, Level 16, State 2, Line 1
    An error occurred while preparing the query for execution against OLE DB provider "MSDASQL" for linked server "ulive".
    Thank you..

    What is Universe U2  server? Is it SQL Server or Oracle or perhaps MySQL?
    select Description FROM ULIVE.DBNAME.DBO.TABLENAME WHERE Z_ID='020324.doc'
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • I need help, cannot get any apps, needs serial number

    I have a creative cloud membership and cannot get any new apps because it keeps asking me for a serial number when I try to liscence the software. I have tried everything on the forums including uninstalling and reinstalling, putting in my details again when asked to liscence the software. I have tried adding another app to see if that will work and it does not. I am so unbelieveably frustrated that I will have to terminate my subscription because it is ridiculous I keep paying for something I am not able to access.

    simone-23, Follow some these steps, this should help.
    Next confirm that this site comes up okay and you don't get an object error
    https://lm.licenses.adobe.com/
    I dont know which operating system you are working on so i am giving you some steps windows and MAC OS:
    Windows:
    In windows 7 navigate to following location:
    /windows/system32/drivers/etc
    1. look out for "Hosts" file
    2. Open it with notepad
    3. Check if you have any entry for Adobe
    4. Remove the entries and try again launching any product from CS6
          On Windows XP navigate to following location:
    \windows\system32\drivers\etc
    1. look out for "Hosts" file
    2. Open it with notepad
    3. Check if you have any entry for Adobe
    4. Remove the entries and try again launching any product from CS6
    Mac:
    1. Please click on "Go" and navigate to /private/etc
    2. Open "hosts" file and check out for any entries for Adobe.com
    3. Remove the entries and save the file
    4.  try again launching any product from CS6
    Thanks
    - Nitin

  • Error while executing query in SQL Developer

    I am getting the following error whenever I login to sql developer.
    SEVERE 56 0 oracle.jdbc Error while registering Oracle JDBC Diagnosability MBean.
    I get below error whenever I execute any query.
    SEVERE 70 53918 oracle.dbtools.worksheet.sqlhistory.SqlHistoryTask oracle.dbtools.worksheet.sqlhistory.db.HistoryDB.readHistory(HistoryDB.java:99)
    I use following versions
    Java(TM) Platform 1.6.0_35
    Oracle IDE 3.2.20.09.87
    Versioning Support 3.2.20.09.87
    I am working on Oracle11gR2.
    Please help me to resolve this and let me know if you need more information.

    Got same issue with :
    Component
    Version
    =========
    =======
    Java(TM) Platform
    1.6.0_41
    Oracle IDE
    3.2.20.09.87
    Versioning Support
    3.2.20.09.87
    Alternate path for SqlHistory directory :
    C:\Users\USER_NAME\AppData\Roaming\SQL Developer
    Best Regards,
    F.L.

  • Cannot login to XE using PL/SQL Developer Tool

    Hi,
    I have problem using PL/SQL Developer with XE. Whenever I try to use PL/SQL Developer to connect to the XE, I am getting this error message from PL/SQL Developer:
    Initialization error: SQL*Net not properly installed.
    OracleHomeKey: SOFTWARE\ORACLE
    OracleHomeDir:
    Both the PL/SQL Developer and XE are installed on a same laptop which is having XP with SP2 and its firewall disabled.
    My "sqlnet.ora" reads the following:
    # This file is actually generated by netca. But if customers choose to
    # install "Software Only", this file wont exist and without the native
    # authentication, they will not be able to connect to the database on NT.
    SQLNET.AUTHENTICATION_SERVICES = (NTS).
    Any help would be much appreciated.
    Regards,
    Abdiqadir.

    Had the same problem myself. I tried this and it worked. Mind you, BOTH Oracle XE and PL/SQL Developer have to be on same machines. I have WinXPSP2. Change the installation paths as per your settings in the examples below.
    In PL/SQL Developer:
    - Tools-->Preferences-->Options Tab-->
    ---- Oracle Home (empty is autodected): enter this value: C:\oraclexe\app\oracle\product\10.2.0\server
    ---- OCI Library (empty is autodected): enter this value:
    C:\oraclexe\app\oracle\product\10.2.0\server\BIN\ociw32.dll
    That's it. It worked for me.

  • Getting the schema using Oracle SQL Developer 1.5.1

    I need to generate a report in CSV/XLS format using Oracle SQL Developer 1.5.1 to get the schema details
    in the below format.
    Table Name: XXXXXXXXX
    Table Space Name: XXXXXXXXXXXXXXX
    Structure :
    Field Name Data Type Size
    Xxxxxxxx xxxxxx xxxxx
    Xxxxxxxx xxxxxx xxxxx
    Xxxxxxxx xxxxxx xxxxx
    Xxxxxxxx xxxxxx xxxxx
    Field level constraint:
    Xxxxxxxxxxxxxxxxxx
    Table Level Constraint:
    Xxxxxxxxxxxxxxxxxx
    Indexes:
    Index Name Column Name(s) Table space name
    Xxxxxxxx xxxxxxxxx xxxxxxxxxxxx
    Xxxxxxxx xxxxxxxxx xxxxxxxxxxxx
    Xxxxxxxx xxxxxxxxx xxxxxxxxxxxx
    Sequence Number:
    Xxxxxxxxxxxxxxxx
    Triggers:
    Xxxxxxxxxxxxxxxxxx
    I am using a query to do that, but I cannot run more than one queries in the Create Report Dialog.
    I went to the Menu->View->Reports. In that, I chose User Defined Reports, created a new folder called Schema Detail and in that a report named Schema Detail. I right click on that report, choose Edit option, Create Report Dialog opens.
    In the Create Report Dialog, I chose the option Script for Value of Style.
    In the SQL column I enter a query "select * from table_names". But, if I enter another query after that, it does not run and reports an error "SQL Error: ORA-00933: SQL command not properly ended
    00933. 00000 - SQL command not properly ended" Cause:    Action: "
    I end the first query with a semi colon, but it does not work.
    The queries run fine in a SQL Worksheet. There, I can terminate the first query with a semi colon and enter the second query. Then, I run both of them together so that result-set of second query appears after the second.
    Am I doing something wrong? Can someone please advise on how to get the information I need?
    Thanks a lot.

    You can do it in SQL Worksheet because you are running a script. You could run the script in SQL*Plus, and even start it from a bat/cmd file.
    Or if you want this as a User Defined Report, you might make it a PL/SQL style report. Here, all output is done through DBMS_OUTPUT.PUT or DBMS_OUTPUT.PUT_LINE. You can output HTML tags or plain text. I have an example in my paper for ODTUG Kaleidoscope 2009.

  • Get Column sum, count in sql developer

    Dear All seniors,
    I need help in oracle sql developer that after select statement when we got our result in below rows and coloums,
    then how to get its sum, count, etc.
    as in pl sql developer we simply right click at a column and then click on the desired function.
    is this facility also have in sql developer?

    We've kicked around the idea of doing this for awhile. I believe there's already an item in the Exchange if you want to up vote it. The challenge being if it's a result set which hasn't been fully fetched, doing an aggregate would require one - and that could be costly. Of course folks live in the grids so I see the value in this type of feature as well.
    As a workaround, you could of course export your data to CSV or XLS and do the calculations in your favorite spreadsheet software.

  • How to get all tables in oracle sql developer with MS SQLServer

    Hi All,
    I am using microsoft SQL server 2000. For displaying the tables and other stuff i am using oracle SQL developer tool. The problem is when i connect to sql developer with oracle database i can see all the tables in that database. But when i connect to MS SQL server database it is not showing all the tables in that database. I don't know why?.
    i tried doing the samething using another tool called Aqua Data Studio , there i can able to see all the tables in microsoft SQL server 2000.
    do you have any knowledge regarding this, why i am not getting all the tables in oracle sql developer when i connect to microsoft SQL server 2000.

    Same issue here. Haven't found the answer yet..

  • I cant get Fourth Elephant (Insider for SQL Developer)

    hi,guys
    please, help me.
    I want to user insider for sql developer of fourth elephant.
    but I cant access
    http://fourthelephant.com/sqldeveloper/download/
    who used it?
    thanks.

    yes, I see
    I want to know someone downloaded it.
    can anyone share it?

  • Executing Procedures in sql Developer

    Hi ,
    I'm new to SQL Developer and trying to explore the tool . I have written a procedure as
    create or replace PROCEDURE SAMPLE2 AS
    studName Varchar2(8) ;
    BEGIN
    SELECT Stud1.NAME INTO studName
    FROM Stud1
    WHERE Stud1.NAME = 'SOM';
    END ;
    It has compiled perfectly .
    Now when I run by right clicking it works
    But when I'm running it using
    BEGIN
    exec SAMPLE2()
    END;
    or
    BEGIN
    SAMPLE2()
    END;
    it is giving error .
    Morover can you tell me how I can view the data after running the procedure .

    See Executing Anonymous Blocks in SQL Developer
    Remember statements always need to end with ;
    Regards,
    K.

  • Why am I getting this error message in SQL Developer-ORA-01735: invalid ALTER TABLE OPTION?

    To Whom it may Concern,
    I am attempting to add two columns Comm_id and Ben_id to a table in SQL Developer (Oracle).
    Here is the syntax I am using:
    ALTER TABLE ACCTMANAGER
    ADD (Comm_id NUMBER(10)),
    Ben_id VARCHAR(2);
    The spool file I'm getting as a result of the script above:
    Error starting at line 1 in command:
    ALTER TABLE ACCTMANAGER
    ADD (Comm_id NUMBER(10)),
    Ben_id VARCHAR(2)
    Error report:
    SQL Error: ORA-01735: invalid ALTER TABLE option
    01735. 00000 -  "invalid ALTER TABLE option"
    *Cause:   
    *Action:
    DESC acctmanager
    Thank you in advance.

    4b60e01f-2ea5-40fe-a161-fc12d38d09e5 wrote:
    To Whom it may Concern,
    I am attempting to add two columns Comm_id and Ben_id to a table in SQL Developer (Oracle).
    Here is the syntax I am using:
    ALTER TABLE ACCTMANAGER
    ADD (Comm_id NUMBER(10)),
    Ben_id VARCHAR(2);
    The spool file I'm getting as a result of the script above:
    Error starting at line 1 in command:
    ALTER TABLE ACCTMANAGER
    ADD (Comm_id NUMBER(10)),
    Ben_id VARCHAR(2)
    Error report:
    SQL Error: ORA-01735: invalid ALTER TABLE option
    01735. 00000 -  "invalid ALTER TABLE option"
    *Cause:  
    *Action:
    DESC acctmanager
    Thank you in advance.
    try as below instead
    ALTER TABLE ACCTMANAGER
    ADD (Comm_id NUMBER(10), Ben_id VARCHAR(2));

  • Help using test in alround automations PL/SQL Developer

    hi sory if this is a bit of a beginer question, Im trying to test the folowing package using the test window in pl/sql developer.
    I was expecting to give the test a value for var_detail_id which it askes for so is good :) , and the test to return the value of v_Media_Object_Name. which it dosent.
    and i dont know enough to know if there is a fault in the code or a fault in the way i am using the test utility. ive put the select on to a sql worksheet, and it returns a sensable name for the detail_id i give it.
    any thoughts on why the test utility dosent return the value of v_Media_Object_Name?
    thanks
    james
    ------------spec-------------------------
    create or replace package Enhanced_Pharos_Report
    AS
    TYPE result_set_type IS REF CURSOR;
    PROCEDURE run_report
    (var_detail_id NUMBER);
    end;
    -------------body----------------------------
    create or replace package body Enhanced_Pharos_Report as
    v_Media_Object_Name varchar2(300);
    function Media_Object_Name(var_Detail_id Number) return varchar2 as
    Result varchar2(300);
    begin
    SELECT promo_name
    INTO Result
    FROM promo
    WHERE promo_id = (SELECT promo_id
    FROM promo_plan
    WHERE promo_plan_id = (SELECT promo_plan_id
    FROM event_promotion
    WHERE detail_id = var_Detail_id));
    return(Result);
    end Media_Object_Name;
    PROCEDURE run_report
    (var_detail_id NUMBER)
    is
    begin
    v_Media_Object_Name := Media_Object_Name (var_detail_id);
    end;
    end;

    Your run_report procedure returns nothing to the caller. You must either have an out parameter return the value selected or make it a function that returns the value expected by the caller.
    As it is, there is nothing that is returned. So, no client, including PL/SQL Developer, will be able to display any results.

  • Can you use SQL Developer against non Oracle data bases?

    If so, then how do you define the connection for non Oracle data bases?

    Look, SQL Developer has got to be a 'gateway' into Oracle DBs from other databases. JDBC allows simple introspection and execution of SQL commands. So the 'explain' button won't be available, or some of the DDL stuff, big deal! Let them get a taste of what they are missing by not having an Oracle database.
    If we can get non-Oracle developers (especially MS SQL Server) to use SQL Developer it will expose them to the superiority of the Oracle DB server.
    If they have heterogenous services installed they are already an Oracle customer -- we have little additional DB server sale opportunity there. SQL Developer is a really sweet tool and it could be a real draw into the DB server sales.
    SQL Developer must be easily usable by non-Oracle customers in order to help us sell the DB server to them!

  • Help, Cannot connect to ODBC database using SQL Toolkit!

    Hello All,
    I am toying around with the SQL Toolkit evaluation (2.2 + the patch) and I am having difficulty.
    I ran the example program "connect" and it seems to work fine.
    However, I try to write my own program and I keep getting the same message:
    "Function DBConnect: (return value == -10 [0xFFFFFFF6]).
    Native error code - 2147467259 0x80004005
    The message differs from time to time, but the return value is constant.
    I am using both Microsoft SQL Server 2012 and MySQL.
    For MySQL I have installed the latest ODBC connector, 5.3.4. Inside the Control Panel/Data Sources(ODBC), I have a DSN named test_mysql in both User DSN and System DSN.
    I ran a test on the connection and the test passes. I am not sure if I should use the ansi or unicode driver, I have tried both with the same success.
    I am not sure I had configured the SQL Server connection properly, and will attempt that again.
    My CVI Code is simple enough:
    hdbc = DBConnect ("DSN=test_mysql"); 
    Every time I get a -10 from DBConnect. Either I have something configured wrong or I am missing something.
    Does anyone have any suggestions?
    Veni Vidi Duci
    Solved!
    Go to Solution.

    Update 2:
    After getting off the phone with Tech Support the problem has been identified!
    LabWindows SQL toolkit requires 32 bit DNS. My PC is a 64 bit, so my DNS manager defaulted to 64 bit.
    I needed to use the 32 bit DNS manager when working with the toolkit.
    Once I created my DNS connections using the 32-bit version of the ODBC Datga Source manager, everything worked fine.
    See this tech note:
    http://digital.ni.com/public.nsf/allkb/E7984C0DA0F0E65086257694005B4CB7
    Veni Vidi Duci

Maybe you are looking for

  • Is there any documentation for Digital Editions?

    I have several questions. 1) Is there any searchable local documentation for Digital Editions? The only thing I can find is at http://www.adobe.com/products/digitaleditions/help/ and that is of no help because it is not available when there is no Int

  • What happens if you restart your ipod

    Well I want to restart my ipod 5g but my friends are like "No it's gonna get slower and it's gonna freeze" I don't know what to do. Is it bad if you restart your ipod 5g?

  • How do I group together songs on a compilation album 10.5

    How do i group together songs that are off a single compilation album? I get a different album for every artist and i want them togther in the order they should be.

  • E-mail Id's not Correct Against Customer No...

    Hi, In my report, i have a problem that when i selecting E-Mail against Customer no...it is displaying only those, which customer have the E-mail id...otherwise not showing... Plz. check my code... REPORT  zcust_master NO STANDARD PAGE HEADING LINE-S

  • Folder Access Denied when trying to delete folder

    I am using Windows 2008 server.  I have a folder that I had setup as a share but now I want to delete it.  I am logged in with a domain account that is a member of the local Administrators group.  When I try to delete the folder I get a "Folder Acces