Problems creating a view that's a union of two other views
Hello all you Oracle folks,
I'm pretty new to this Oracle thing, coming over from SQL Server where life was simple. Here's my issue;
I am trying to create a view that is a union of two other views.
I can run the top SELECT of this view (before the UNION) and it works no problem, and I can run the bottom SELECT (after the UNION) and it also works with no problem. I can run a DESC on both views involved, and those also work without any problem.
When I try to run the SQL all together though, I get this;
SQL> CREATE materialized view trkmaster.cmp_pmr_union refresh force ON demand AS SELECT 'CMR'
2 "Ticket_System", "Id_col" "Ticket", "Submitter", "Submit_Date", "Submit_To",
3 "Actual_Activity_Start_Date" "Start_Date", "Actual_Activity_Start_Time" "Start_Time",
4 "Actual_Activity_End_Date" "End_Date", "Actual_Activity_End_Time" "End_Time",
5 "Close_Date", "Risk_Level" "Level", "Activity_Type" "Type", "Activity_Category"
6 "Category", "Hardware_Name" "Hardware", "Platform", "Application_Name" "Application",
7 "Completion_Status" "Status", "Area_CMPO" "Owner", "Outage_Minutes" "Total_Outage_Mins",
8 "Acorde_Downtime__in_minutes_" "Acorde", "Atlas", "Corporate_Email_Downtime"
9 "Corporate_Email", "Data_Warehouse_Downtime__In_M6" "Data_Warehouse",
10 "E__Commerce_Downtime__In_Mins_" "ECommerce", "FMDS__FIVR_" "FMDS_FIVR",
11 "FMDS_Hotels_Downtime" "FMDS_Hotels", "FMDS_Internet_Downtime" "FMDS_Internet",
12 "FMDS_Resv__Ctr_Downtime" "FMDS_Resv_Ctr", "GDS_Downtime__In_Mins_" "GDS",
13 "HI_Online_Downtime__In_Mins_" "HI_Online", "Holidex__CRO____In_Mins_" "Holidex_CRO",
14 "Holidex__Hotels____In_Mins_" "Holidex_Hotels", "Hyperion_Essbase",
15 "IHGMail_Downtime__In_Mins_" "IHG_Mail", "Kofax_Downtime__in_minutes_" "Kofax",
16 "PeopleSoft_Fin_Downtime_In_Mi1" "Peoplesoft", "PERFORM__HIRO____In_Mins_" "Perform_HIRO"
17 FROM CMP.CHRQVCHANGE_MANAGEMENT_REQUEST UNION SELECT 'PMR' "Ticket_System", "Id_col"
18 "Ticket", "Submitter", "Submit_Date", "Submit_To", "Problem_Start_Date" "Start_Date",
19 "Problem_Start_Time" "Start_Time", "Problem_End_Date" "End_Date", "Problem_End_Time"
20 "End_Time", "Close_Date", "Severity_Level" "Level", "Problem_Type" "Type",
21 "Occurrence_Type" "Category", "Hardware_Name" "Hardware", "Platform", "Application_Name"
22 "Application", "Close_Code" "Status", "Problem_Owner" "Owner",
23 "TOTAL_Outage_Time__If_Any_" "Total_Outage_Time", "Acorde_Downtime__in_minutes_" "Acorde",
24 "Atlas", "Corporate_Email_Downtime" "Corporate_Email", "Data_Warehouse_Downtime__In_M6"
25 "Data_Warehouse", "E__Commerce_Outage_Time__Mins_" "ECommerce", "FMDS__FIVR_" "FMDS_FIVR",
26 "FMDS_Hotels_Outage_Time__In_M5" "FMDS_Hotels", "FMDS_Internet_Outage_Time__Mi4"
27 "FMDS_Internet", "FMDS_Resv__Ctr_Outage_Time__M3" "FMDS_Resv_Ctr",
28 "GDS_Outage_Time__Mins_" "GDS", "HI_Online_Outage_Time__In_Min2" "HI_Online",
29 "Holidex__CRO____In_Mins_" "Holidex_CRO", "Holidex__Hotels____In_Mins_" "Holidex_Hotels",
30 "Hyperion_Essbase", "IHG_Mail_Outage_Time__In_Mins_" "IHG_Mail",
31 "Kofax_Downtime__in_minutes_" "Kofax", "PeopleSoft_Fin_Downtime_In_Mi1" "Peoplesoft",
32 "PERFORM__HIRO____In_Mins_" "Perform_HIRO" FROM PMR.CHRQVPROBLEM_MANAGEMENT;
"PERFORM__HIRO____In_Mins_" "Perform_HIRO" FROM PMR.CHRQVPROBLEM_MANAGEMENT
ERROR at line 32:
ORA-00942: table or view does not exist
The 'CMR' and 'PMR' as Ticket_System is me trying to assign a literal as a newly created column.
All the data types match from one view to the other.
If I switch around the SQL so the 'CMR' view is at the bottom and the 'PMR' view is at the top, it still errors out on the 'PMR' view as not existing, even though I can DESC it and run the SELECT using that view. A coworker thinks it could be some kind of view alias issue (?).
I know the view exists, and I can access it no problem. Any ideas why this isn't working? It seems so simple, I could do this in a heartbeat in SQL Server. I have very few hairs left to rip out, so any help would be appreciated.
SELECT 'CMR' "Ticket_System",
"Id_col" "Ticket",
....you have wrapped up your columns with a double quotes and use an alias. i tried the same thing
but using a different table and it does not work.
SQL> desc emp;
Name Null? Type
EMPNO NOT NULL NUMBER(4)
ENAME VARCHAR2(10)
JOB VARCHAR2(9)
MGR NUMBER(4)
HIREDATE DATE
SAL NUMBER(7,2)
COMM NUMBER(7,2)
DEPTNO NOT NULL NUMBER(2)
SQL> select "empno" "employee_number"
2 from emp;
select "empno" "employee_number"
ERROR at line 1:
ORA-00904: "empno": invalid identifier
SQL> how were you able to run the top level of your SQL before the UNION clause? did you run it thru some tools
other than SQL*Plus?
Similar Messages
-
I need some help with a query that I need to use in order to create a view.
It's fairly complicated, at least for me.
Here is a short summary of the problem:
There is a table involved called salesperson.
This table has a four digit salespersonid, lastname, firstname, hiredate, and supervisor columns.
The supervisor column holds the four digit salespersonid of the supervisor of that particular sales person.
This column is null if that salesperson is the supervisor.
Now I need to generate a view that summarizes book sales by salesperson and shipping state.
7 columns are required.
Salespersonid
Sales person Name
State (based on shipstate)
Total number of orders
total amount of sales
Total profit
Last name of person's supervisor.
It is that last one that is giving me fits.
I don't know how to get the supervisor last name in the output.
Also, if the salesperson is the supervisor (i.e. supervisor column is null) I need to display (none) there. It can't be blank.
Here is what I have so far:
SELECT s.salespersonid AS ID, s.lastname || ', ' || s.firstname AS salesperson, shipstate,
COUNT(DISTINCT order#) AS "TOTAL ORDERS", SUM(retail * quantity) AS "GROSS SALES",
SUM((retail - cost) * quantity) AS "PROFIT"
FROM salesperson s LEFT JOIN orders o ON s.salespersonid = o.salespersonid
LEFT JOIN orderitems oi ON o.order# = oi.order#
LEFT JOIN books b ON oi.isbn = b.isbn
GROUP BY s.salespersonid, s.lastname || ', ' || s.firstname, shipstateIt seems to me that I have to use a self join but my brain is cooked, and I can't seem to figure this out.
I have scripts here that would generate the tables and data I am using.
It's a small database. (If anyone is familiar with Oracle 10g SQL by Joan Casteel it is the JustLeeBooks database used throughout that book)
I don't really want to post these scripts here. It would make for quite a long post.
There are seven of them to get the data consistent with what I am using here.
If someone is willing to spend some time helping me, I could e-mail them the scripts.
They are the script that sets up the initial database and then 6 more scripts I have written to get to this point.
They kind of build on one another.
Send me a private message if you are willing to do that.
We could then bring the discussion back here if that is to your liking.
Any takers?
Maybe someone can help without those scripts?Hi..
If i understood you need this query can help you..
SELECT s.salespersonid AS ID, s.lastname || ', ' || s.firstname AS salesperson, shipstate,
COUNT(DISTINCT order#) AS "TOTAL ORDERS", SUM(retail * quantity) AS "GROSS SALES",
SUM((retail - cost) * quantity) AS "PROFIT",
nvl(sup.lastname || ', ' || sup.firstname,'none') AS supervisor
FROM salesperson s LEFT JOIN orders o ON s.salespersonid = o.salespersonid
LEFT JOIN orderitems oi ON o.order# = oi.order#
LEFT JOIN books b ON oi.isbn = b.isbn
LEFT JOIN salesperson sup ON s.supervisorid = sup.salespersonid
GROUP BY s.salespersonid, s.lastname || ', ' || s.firstname, shipstate, nvl(sup.lastname || ', ' || sup.firstname,'none') Not Tested.
Tell me if there is that you need !!! -
Problem creating Database view
Hi ABAP experts,
I have created an ABAP database view with tables /SAPAPO/MATLOC, /SAPAPO/MATKEY and /SAPAPO/LOC.
I am taking snp planner (PLANNER_SNP) and ppds planner (PLANNER_PPS) from table /SAPAPO/MATLOC. I want their descriptions also in the same view which is there in an another database table /SAPAPO/PLANNER. but when i use this table in the join number of entries in the view appears to be zero. I dont know why..
Can anybody suggest me how can I put descriptions of SNP planner and PPDS planner also in the same view.
Also view is getting created with all the fields as key fields by default but I want only three feilds to be the key feilds.
Can anybody help in this matter.
Thanks a lot
Best Regards,
Chandan DubeyI can't see the structure of these tables but apparently your join condition is not well done. Ensure foreing keys for /SAPAPO/MATLOC exist in /SAPAPO/PLANNER (or vice versa dependig on which table has primary key) . Try doing a view first only with these two tables, then if this works expand it to the two other tables. This will give you an overview were is the logic (relationship) problem.
As for your second question system will suggest key relationship, of which you can delete some relations. In this case you don't need to use all of them but only part of the key fields to be compared. Just select relationship you don't want and delete it. when using this view only these fields will be used to formluate join condition.
I hope this helps you
Marcin -
Problem creating materialized view
OK, I'm totally new in using materialized views.
I'm trying to create one and to make it refreshed on commit
CREATE MATERIALIZED VIEW VK_CLIENT build immediate refresh fast on commit AS
select c1.code,
c1.fiche fiche_1,
decode( c1.sfam, '04',
decode( c7.sfam, '04', 'M. et Mme', c1.lnte ), c1.lnte ) lnte_1,
decode( c1.sfam, '04',
decode( c7.sfam, '04',
decode( c1.lnte, 'M.', c1.libe, c7.libe ), c1.libe ), c1.libe ) libe_1,
decode( c1.sfam, '04',
decode( c7.sfam, '04',
decode( c1.lnte, 'M.', substr( c1.libe, 1, c1.lgnom ), substr( c7.libe, 1, c7.lgnom ) ), substr( c1.libe, 1, c1.lgnom ) ), substr( c1.libe, 1, c1.lgnom ) ) nom_1,
decode( c1.sfam, '04',
decode( c7.sfam, '04',
decode( c1.lnte, 'M.', initcap( substr( c1.libe, c1.lgnom + 2 ) ), initcap( substr( c7.libe, c7.lgnom + 2 ) ) ), initcap( substr( c1.libe, c1.lgnom + 2 ) ) ), initcap( substr( c1.libe, c1.lgnom + 2 ) ) ) prenom_1,
decode( c1.sfam, '04', decode( c7.sfam, '04', decode( c1.lnte, 'Mlle', 'Mme', c1.lnte ), c1.lnte ), c1.lnte ) lnte_1_bis,
c1.libe libe_1_bis,
substr( c1.libe, 1, c1.lgnom ) nom_1_bis,
initcap( substr( c1.libe, c1.lgnom + 2 ) ) prenom_1_bis,
c1.sfam sfam_1,
c1.dnai dnai_1,
decode( to_char( c1.dnai, 'dd' ), '01', '1er',
decode( substr( to_char( c1.dnai, 'dd' ), 1, 1 ), 0, substr( to_char( c1.dnai, 'dd' ), 2 ), to_char( c1.dnai, 'dd' ) ) ) || ' ' ||
rtrim( to_char( c1.dnai, 'month', 'nls_date_language = french' ) ) || to_char( c1.dnai, ' yyyy' ) dnai_fr_1,
c1.horsfoyer horsfoyer_1,
decode( c1.lnte, 'Mlle', 'f', 'Mme', 'f', 'M.', 'm' ) accord_1,
c7.fiche fiche_7,
decode( c1.sfam, '04',
decode( c7.sfam, '04', null, c7.lnte ), c7.lnte ) lnte_7,
decode( c1.sfam, '04',
decode( c7.sfam, '04', null, c7.libe ), c7.libe ) libe_7,
decode( c1.sfam, '04',
decode( c7.sfam, '04', null, substr( c7.libe, 1, c7.lgnom ) ), substr( c7.libe, 1, c7.lgnom ) ) nom_7,
decode( c1.sfam, '04',
decode( c7.sfam, '04', null, initcap( substr( c7.libe, c7.lgnom + 2 ) ) ), initcap( substr( c7.libe, c7.lgnom + 2 ) ) ) prenom_7,
decode( c7.sfam, '04', decode( c1.sfam, '04', decode( c7.lnte, 'Mlle', 'Mme', c7.lnte ), c7.lnte ), c7.lnte ) lnte_7_bis,
c7.libe libe_7_bis,
substr( c7.libe, 1, c7.lgnom ) nom_7_bis,
initcap( substr( c7.libe, c7.lgnom + 2 ) ) prenom_7_bis,
c7.sfam sfam_7,
c7.dnai dnai_7,
decode( to_char( c7.dnai, 'dd' ), '01', '1er',
decode( substr( to_char( c7.dnai, 'dd' ), 1, 1 ), 0, substr( to_char( c7.dnai, 'dd' ), 2 ), to_char( c7.dnai, 'dd' ) ) ) || ' ' ||
rtrim( to_char( c7.dnai, 'month', 'nls_date_language = french' ) ) || to_char( c7.dnai, ' yyyy' ) dnai_fr_7,
decode( c7.lnte, 'Mlle', 'f', 'Mme', 'f', 'M.', 'm' ) accord_7,
initcap( decode( instr( lower( c1.adr1 ), 'log' ), '1', c1.adr2, decode( instr( lower( c1.adr1 ), 'bât' ), '1', c1.adr2, c1.adr1 ) ) ) adr1,
initcap( decode( decode( instr( lower( c1.adr1 ), 'log' ), '1', c1.adr2, decode( instr( lower( c1.adr1 ), 'bât' ), '1', c1.adr2, c1.adr1 ) ), c1.adr2, null,
decode( instr( lower( c1.adr2 ), 'log' ), '1', c1.adr3, decode( instr( lower( c1.adr2 ), 'bât' ), '1', c1.adr3, c1.adr2 ) ) ) ) adr2,
initcap( decode( instr( lower( c1.adr3 ), 'log' ), '1', null, decode( instr( lower( c1.adr3 ), 'bât' ), '1', null, c1.adr3 ) ) ) adr3,
c1.ptt,
c1.lcom,
decode( c7.fiche, null, decode( c1.lnte, 'Mme', 'Madame', 'Mlle', 'Mademoiselle', 'M.', 'Monsieur', 'Monsieur' ),
decode( nvl( c1.sfam, '07' ), '04',
decode( nvl( c7.sfam, '07' ), '04', 'Madame, Monsieur',
decode( c1.lnte,
'Mme', decode( c7.lnte, 'Mme', 'Mesdames', 'Mlle', 'Madame, Mademoiselle', 'M.', 'Madame, Monsieur', 'Madame, Monsieur' ),
'Mlle', decode( c7.lnte, 'Mme', 'Madame, Mademoiselle', 'Mlle', 'Mesdemoiselles', 'M.', 'Mademoiselle, Monsieur', 'Mademoiselle, Monsieur' ),
'M.', decode( c7.lnte, 'Mme', 'Madame, Monsieur', 'Mlle', 'Mademoiselle, Monsieur', 'M.', 'Mesieurs', 'Mesieurs' ),
'. ', decode( c7.lnte, 'Mme', 'Madame, Monsieur', 'Mlle', 'Mademoiselle, Monsieur', 'M.', 'Mesieurs', 'Mesieurs' ),
decode( c1.lnte,
'Mme', decode( c7.lnte, 'Mme', 'Mesdames', 'Mlle', 'Madame, Mademoiselle', 'M.', 'Madame, Monsieur', 'Madame, Monsieur' ),
'Mlle', decode( c7.lnte, 'Mme', 'Madame, Mademoiselle', 'Mlle', 'Mesdemoiselles', 'M.', 'Mademoiselle, Monsieur', 'Mademoiselle, Monsieur' ),
'M.', decode( c7.lnte, 'Mme', 'Madame, Monsieur', 'Mlle', 'Mademoiselle, Monsieur', 'M.', 'Mesieurs', 'Mesieurs' ),
'. ', decode( c7.lnte, 'Mme', 'Madame, Monsieur', 'Mlle', 'Mademoiselle, Monsieur', 'M.', 'Mesieurs', 'Mesieurs' ),
'-' ) ) ) lnte_long,
decode( c1.cfam, null, c7.cfam, c1.cfam ) cfam,
decode( c1.cfam, null, c7.allo, c1.allo ) allo,
decode( c1.sexe, 'm', decode( c7.sexe, null, 'ms', 'm', 'mp', 'f', 'mp' ), 'f', decode( c7.sexe, null, 'fs', 'm', 'mp', 'f', 'fp' ), '-' ) accord,
c9.fiche fiche_9,
c9.lnte lnte_9,
c9.libe libe_9,
substr( c9.libe, 1, c9.lgnom ) nom_9,
initcap( substr( c9.libe, c9.lgnom + 2 ) ) prenom_9,
initcap( decode( instr( lower( c9.adr1 ), 'log' ), '1', c9.adr2, decode( instr( lower( c9.adr1 ), 'bât' ), '1', c9.adr2, c9.adr1 ) ) ) adr1_9,
initcap( decode( decode( instr( lower( c9.adr1 ), 'log' ), '1', c9.adr2, decode( instr( lower( c9.adr1 ), 'bât' ), '1', c9.adr2, c9.adr1 ) ), c9.adr2, null,
decode( instr( lower( c9.adr2 ), 'log' ), '1', c9.adr3, decode( instr( lower( c9.adr2 ), 'bât' ), '1', c9.adr3, c9.adr2 ) ) ) ) adr2_9,
initcap( decode( instr( lower( c9.adr3 ), 'log' ), '1', null, decode( instr( lower( c9.adr3 ), 'bât' ), '1', null, c9.adr3 ) ) ) adr3_9,
c9.ptt ptt_9,
c9.lcom lcom_9,
decode( c9.lnte, 'Mlle' , 'Mademoiselle', 'Mme', 'Madame', 'M.', 'Monsieur', 'M. et Mme', 'Madame, Monsieur', null ) lnte_long_9,
decode( c9.sexe, 'm', 'ms', 'f', 'fs', null, null, '-' ) accord_9,
no.nbocc
from client c1,
client c7,
client c9,
select z.code code,
count(*) nbocc
from client z
where to_char( sysdate, 'yyyymmdd' ) between to_char( z.cdeb, 'yyyymmdd' ) and to_char( nvl( z.cfin, sysdate ), 'yyyymmdd' )
group by z.code
) no
where c1.code = c7.code (+)
and c1.role = '1'
and c7.role (+) ='7'
and nvl( c7.horsfoyer (+), 0 ) = '0'
and to_char( nvl( c7.cfin (+), sysdate ), 'yyyymmdd' ) >= to_char( sysdate, 'yyyymmdd' )
and c1.code = c9.code (+)
and c9.role (+) = '9'
and to_char( nvl( c9.cfin (+), sysdate ), 'yyyymmdd' ) >= to_char( sysdate, 'yyyymmdd' )
and c9.lnte (+) not in ( '. ', 'Assoc.', 'Ste' )
and c9.lcom (+) is not null
and c1.code = no.code (+);when doing so, I'm getting a ORA-12054:
ORA-12054: cannot set the ON COMMIT refresh attribute for the materialized view
12054. 00000 - "cannot set the ON COMMIT refresh attribute for the materialized view"
*Cause: The materialized view did not satisfy conditions for refresh at
commit time.
*Action: Specify only valid options.
When I create the materialized view with just CREATE MATERIALIZED VIEW "H6801_GL_00"."VK_CLIENT" AS
it works but the refresh is only "ON DEMAND"...
Can't find how and why it won't work...
Edited by: MacFizz on Dec 17, 2009 3:22 PMYou could try the DBMS_MVIEW.TUNE_MVIEW and check if you can modify you materialized view or "refactor" it in a smaller, fast refreshable part that you could combine later to the sysdate/rownum part of it.
http://download.oracle.com/docs/cd/E11882_01/server.112/e10821/advisor.htm
Explanation on restrictions of fast refresh:
http://download.oracle.com/docs/cd/E11882_01/server.112/e10706/repmview.htm
Below there's an example of a fast refreshable mview, on creating the materialized view log and so on:
http://download.oracle.com/docs/cd/E11882_01/server.112/e10592/statements_6002.htm#i2080820 -
Problem creating a view in Administrator: 942: table or view does not exist
Hi and thank you for reading,
I am working with the Administration tool and would like to create a view in the physical layer. However I am getting the following error messages when I try to view the Date in the view:
[NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occured.
[nQSError: 43093] An error occured while processing the EXECUTE PHYSICAL satement.
*[nQSError: 17001] Oracle Error code: 942, message: ORA-00942: table or view does not exist at OCI call OCIStmtExecute.*
[nQSError: 17010] SQL statement preparation failed.
[NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occured.
[nQSError: 43093] An error occured while processing the EXECUTE PHYSICAL satement.
*[nQSError: 17001] Oracle Error code: 936, message: ORA-00936: missing expression at OCI call OCIStmtExecute.*
[nQSError: 17010] SQL statement preparation failed.
I proceed as following:
Right click on a physical schema (this schema is already created and works in Answers) -> new Physical Schema ->Table Type: Select -> Select * from Table_A where name='name' (Table_A is in the physical schema) -> OK -> Save -> Deploy -> Update Row count (works) -> View Data -> Error
Any Idea what I am doing wrong. I have started with an easy select statement to test how to create a view in Oracle Administrator.
Thanks a lot for any help
EvgenyDo you see Table_A, and in which database schema?
Try to put alias (database user) before table name.
Select * from user.Table_A where name='name'
Where user is database user.
If you have Table_A in another user and connection pool is set to different user, then grant select from Table_A owner to connection pool user (make synonym for Table_A):
Example (I'm using connection pool from userB and have tables from userA and userB).
create or replace public synonym xx for userA.xx
and
grant select on xx to userB
Hope this helps.
Regards,
Goran
http://108obiee.blogspot.com -
Problems creating Materialized View
Hello,
i have Problems with the creation of a materialized view with the following sql-statement:
SELECT Tag_ID, ROWNUM AS RowNr
FROM L_tag
ORDER BY tag_id ASC
in the table L_tag is only one column (tag_id) that contains all dates (1895.01.01 - 2020.01.01) as numbers (format like: 20020508)
if i create the materialized view, no errors occures. if i check later the sql-statement of this materialized view, there is no ORDER BY!!:
SELECT Tag_ID, ROWNUM AS RowNr
FROM L_tag
has anyone an idea, why oracle don't accept the order by clause?
thanks,
Domehas anyone an idea, why oracle don't accept the order by clause?Yes, because Oracle stores data in an unorderred fashion (except for IOT, but that's different matter). So your ORDER BY clause makes no sense for stored data.
You must use ORDER BY when doing the final select from the MV (...).
Regards,
Yoann. -
Problem creating basic views while creating materials using idocs?
hello,
I am facing an issue while creating materials using idocs. The problem is that the basic view does not get created whereas other views are present. The function module used is idoc_input_matma01 and the basic idoc type is MATMAS03.
Looking for help. Thank youHi Madhu,
Actually i recieve an idoc from PI containing data required for cretion of the material via an idoc. This idoc is then processed to create the required material.
The material gets created with appropiate data in various tables(mara, makt) but when we view material in mm03 we cant see the basic data views. -
Problems creating extension (View Object) in JDeveloper 9.0.3.5
Note: I originally posted this on the JDeveloper forum - but I was told to post it in this forum.
This is on Windows XP Pro SP2 with JDeveloper 9.0.3.5 - patch 6469392 (appropriate for 11.5.10.6).
I'm trying to create an extension for a view object for the Oracle Applications Framework. I've exported the appropriate MDS repo contents to my system using export. One of the first issues I've seen is the step where I import the the business components XML file (server.xml) and I get the following warning:
Warning: This Business Components Package was built with an earlier version of Oracle Business Components for Java. Unable to upgrade since it is readonly. oracle.apps.pos.isp.server
I've encountered these strange "readonly" errors all along the way. When I try to create the VO itself, I notice the wizard is in readonly mode, preventing me from associating query columns with view attributes (I cannot change a view attribute for a query column for many of the query columns). Why are things in readonly mode?I've seen is the step where I import the the business components XML file (server.xml) and I get the following warning:
Warning: This Business Components Package was built with an earlier version of Oracle Business Components for Java. Unable to upgrade since it is readonly. oracle.apps.pos.isp.server
Ans : VO , EM and AM related xml files not need to import to MDS, only PG and Region related xml file need to import to MDS. -
I've loaded about 100 photos into a slideshow that I would like to burn into a DVD to share with friends at a 50th birthday celebration. It keeps going black at a certain point but I can see the pictures in the cue. Any ideas on how to correct this and how to burn it to disc easily? Thanks! This is my first time trying to do this.
With the amount of information you've provided it's impossible to offer a potential solution. We can't see your computer so we need to know the details of your problem and setup, i.e.:
what version of iPhoto are you using?
what system version are you running?
how are you trying to export the slideshow?
Here's how I recommend one get a slideshnow to iDVD: export the slideshow out of iPhoto as a QT movie file via the Export button in the lower toolbar. Select Size = Medium or Large.
Open iDVD, select a theme and drag the exported QT movie file into the open iDVD window being careful to avoid any drop zones.
Follow this workflow to help assure the best quality video DVD:
Once you have the project as you want it save it as a disk image via the File ➙ Save as Disk Image menu option. This will separate the encoding process from the burn process.
To check the encoding mount the disk image, launch DVD Player and play it. If it plays OK with DVD Player the encoding is good.
Then burn to disk with Disk Utility or Toast at the slowest speed available (2x-4x) to assure the best burn quality. Always use top quality media: Verbatim, Maxell or Taiyo Yuden DVD-R are the most recommended in these forums.
OT -
I don't want to "jailbreak" my iTouch but I do want to be able to hide and/or restrict the use of some of my apps. I have spent several hours looking for a way to do this but no luck. It seems like a logical thing to me to have this option. Any suggestions on how to encourage Apple to create a 'hide an app' app?
So enable the Settings -> General -> Passcode lock
Also in Passcode lock set the "Require Passcode After..." to a value that allows you to unlock again within 'n' minutes of the most recent lock/sleep without needing a passcode.
Then to make life easy for you, set the Settings -> General -> Auto-Lock to a time peroid that re-locks soon enough for you without being annoying
So if someone goes into your purse, they will not get access to anything.
NOTE: 10 failed passcode entries will lock up your iPod Touch such that you will be forced to restore your iPod Touch from you most recent sync/backup with iTunes on your personal computer. So if you go this route, make sure you frequently sync with iTunes on your personal computer or you will loose most of the information on your touch. If you are using iCloud to backup stuff on your touch, then that is another route, assuming what you backup does not exceed the free 5GB iCloud or you have purchased extra iCloud space. Personally, I make sure I have a regular iTunes backup, so if anything happens to my touch, I can just restore from my most recent backup.
After that you use the above mentioned feedback link to communicate your suggestions to Apple -
I tried to create filter which automatically copies sent to different recipients messages to other folder than "sent". I tried many times with different setting but it doesn't work. With inbox messages it works fine.
Thank youIf you want to 'reply' to an email, but you want the sent reply to auto appear in the same folder of the message you are replying to.
Tools > Account Settings > Copies & folders for the mail account
There is a checkbox to select: 'Place replies on the folder of the message being replied to'
then click on OK to save changes.
If you want all sent emails not just replies to got to different fodlers based on who you sent the email to, then you would need to create a filter which when manually run moves selected emails to specific folders.
So let the sent emails get auto stored in Sent folder.
Tools > Message Filter
click on New
give filter suitable name
Apply filter when: manually run
select 'match all of the following'
To is email address
Perform these actions
Move message to and select the folder.
Do not enable.
When you need to run this filter,
open Message filter.
enable only the filters you require
Run selected filters on: Sent folder on the mail account
click on 'run now'
Best used when you have several sent emails which you need moving.
Not exactly what you are looking for, but works if organising loads of sent emails. -
I have a 1-D array of waveform with size = 4 that contain "raw" potentiometer voltage data. I need to manipulate waveform data from index 0 & 1 using the formula shown below to derive a single waveform of angle data. I need to do the same for index 2 & 3 as this is a redundant circuit. I was hoping that the formula node can work on entire arrays and although it can take an array as input, it requires me to index the array in the formula so it becomes a scalar value.
Since the formula is relatively complex, I'd like to keep it in text form but have it automatically work on each point of the two input arrays. This math is done inline with pulling data out of a DAQ and so I need it to be as efficient as possible so that I don't spend too much time on it and potentially overflow the DAQ buffer.
The naive solution would be to wrap the formula nodes with for loops, but I don't know if this is this is an efficient way to do this. I would appreciate any suggestions on how best to tackle this.
Thanks!
Solved!
Go to Solution.Here's how I would do it with no formula nodes or loops requied:
If you want to use the formula node, then you could run a loop inside each formula node while you index through the arrays. The performance difference between formula nodes and the graphical approach should be insignificant. Note that my approach assumes that the array sizes are the same. You could also create a sub VI to contain the math so you don't have to maintain two copies of the same piece of code.
Chris M -
Create a window that will always ontop
pls am having a problem creating a window that will always on top such that it cannot be minimized that cannot go to the background ,will always be on top like the task manager in windows
help meeeeeeee!!!!!!
my email:[email protected]http://forum.java.sun.com/thread.jsp?forum=57&thread=121761
Try searching the forums, this has been asked many times before. -
How to create a view for all Service Requests that are not approved by reviewer
Hallo,
I want to create a view in the Service Requests library that shows all SRs that are not approved. How to configure condition that says: if a SR has related Review Activity which is In Progress, show that SRs?
I couldn't find this when creating the view. Thank you.So here's the first problem with that: Which review activity? a SR can contain multiple RAs, so how do we decide if an arbitrary SR is approved or not?
As to the specific language you use (Any child RA is In Progress) you might want to look at the criteria from the default Change approval view, which does something similar:
<QueryCriteria Adapter="omsdk://Adapters/Criteria" xmlns="http://tempuri.org/Criteria.xsd">
<Criteria>
<FreeformCriteria>
<Freeform>
<Criteria xmlns="http://Microsoft.EnterpriseManagement.Core.Criteria/">
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpressionLeft>
<Property>$Context/Path[Relationship='CoreActivity!System.WorkItemContainsActivity' TypeConstraint='CoreActivity!System.WorkItem.Activity.ReviewActivity']/Property[Type='CoreActivity!System.WorkItem.Activity']/Status$</Property>
</ValueExpressionLeft>
<Operator>Equal</Operator>
<ValueExpressionRight>
<Value>$MPElement[Name="CoreActivity!ActivityStatusEnum.Active"]$</Value>
</ValueExpressionRight>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpressionLeft>
<Property>$Context/Property[Type='CoreChange!System.WorkItem.ChangeRequest']/Status$</Property>
</ValueExpressionLeft>
<Operator>Equal</Operator>
<ValueExpressionRight>
<Value>$MPElement[Name="CoreChange!ChangeStatusEnum.InProgress"]$</Value>
</ValueExpressionRight>
</SimpleExpression>
</Expression>
</And>
</Expression>
</Criteria>
</Freeform>
</FreeformCriteria>
</Criteria>
</QueryCriteria>
This is a simple AND criteria with two componets. one looking for a Review Activity (TypeConstraint='CoreActivity!System.WorkItem.Activity.ReviewActivity') which is related to the targetting CR by Contains Activity ($Context/Path[Relationship='CoreActivity!System.WorkItemContainsActivity';
Context in this... context means the CR targeted by the view) where it's status (/Property[Type='CoreActivity!System.WorkItem.Activity']/Status$) is In Progress ($MPElement[Name="CoreActivity!ActivityStatusEnum.Active"]$). The other is filtering
for the target change request's status ( $Context/Property[Type='CoreChange!System.WorkItem.ChangeRequest']/Status$) is In Progress ($MPElement[Name="CoreChange!ChangeStatusEnum.InProgress"]$).
You could convert the second criteria to point to SRs and SR status values, and then use the similar text for the first criteria. i'd recommend
Anton's Advanced View Editor (or
the free version) to do the criteria adjustment. -
Problem in creating a view and generating datasource
Hi Gurus,
I am trying to create a Generic Data Source (ZGG_TEST) on a View (ZV_TEST1)
View as Follows:
Table1 has the Following Fields
Field Type
MANDT CLNT
RECNO NUMC
STATUS CHAR
LMODF CHAR
Table2 has Fields
Fields Type
MANDT CLNT
RECNO NUMC
PHCOS QUAN
MATNR CHAR
EQSFS QUAN
MEINS UNIT
In Table2 under Currency and Quantity Field tab
For Field PHCOS The Reference table is MSEG and Reference Field is MEINS
For Field EQSFS the Reference Table is MSEG and reference field is MEINS
View Description
Tables:
Table1
Table2
MSEG
Join condition For the View is
TABLE2-MANDT=TABLE1-MANDT
TABLE2-RECNO=TABLE1-RECNO
TABLE2-MANDT=MSEG-MANDT
TABLE2-MATNR=MSEG-MATNR
The Problem is While saving the Data Source it is Giving an Error as Follows
Invalid extract structure template ZV_TEST1 of DataSource zgg_test
Message no. R8359
Diagnosis
You tried to generate an extract structure with the template structure zgg_test. This operation failed, because the template structure quantity fields or currency fields, for example, field PHCOS refer to a different table.
Procedure
Use the template structure to create a view or DDIC structure that does not contain the inadmissible fields.
Please help me In Solving this Issue
Thanks in advance
SantoshHi,
I think the problem here might be due to the fact that you are using MSEG table in your views.
I see that you have used MEINS in your Table2. So for Field PHCOS give your reference table as TABLE2 and field as MEINS as MEINS is already present in your table. Please leave out MSEG from your View.
Hope this helps. Please revert in case of any issues
Regards,
Pramod
Maybe you are looking for
-
Automatically move all windows to external primary display?
I'm using an external display as the primary display (the one with the menu bar) of my MacBook when in the office. With Tiger, when I would plug in the external display, all of the windows on the MacBook's internal display would jump to the external
-
I exported a photo album to my desktop and burned a CD (I did this so it could be opened on a Apple or PC). Now whem I try to import the photos back to my iphoto library, I can't. I go to - import to library Highlight the CD None of the pictures are
-
i cant install the new firefox 6 on my laptop because it keeps asking for the administrator password during the installation and i dont know what is it for this laptop
-
Cannot install pybliographer: python-bibtex not found [SOLVED]
I am trying to install an application 'pybliographer' https://aur.archlinux.org/packages.php?ID=3770 I downloaded the tarball and untared it. But on running the command 'makepkg -s' I am getting following error: [abcd@myhost pybliographer]$ makepkg -
-
How do you tell if the 8.0.1 update has really been applied to Premiere Elements? When I execute the update, it says the product is up-to-date. However, when I execute Premiere Elements and click on the Help/About, it reports version 8.0 (M192 - 09/2