asking the viewdefinition statement works, asking the view do not
Hello
I have a problem with a query on a view. This application works well for three years with 11.2.0.2.0. After upgrading to V 11.2.0.4.0 n data were returned as well.
Problem is the Where Clause. I want data normally read for a month, but the WhereClause is shaped, it is also possible to read over several months
== > 1. Where t.fiscper > = '2015010' and t.fiscper, '2015011' == > data for October: no data
== > 2. Where t.fiscper = '2015010' == > data for October to approx. 90 s
If I run the SQL query that defines the view, the two WhereClauses offer resultdata, asking the view only version 2 WhereClause Gets the result data.
Is this a bug?
Thank you
Dirk
Here is the statement defining the view (unfortunately, no repetitive for you), to test demand it inludes the wherclause: AND AG.fiscper > '2015010' AND AG.fiscper = < '2015011'
-CREATE OR REPLACE VIEW VW_LISA_SGA_PRODUKTION AS
SELECT Alles.Datenart
Alles.fiscper
Alles.fiscper Einsatz_Buper
Alles.basis_kunde
lc.schrottart_guss AS schrottart
Alles.Leg_nr
Alles.Chargen_Band_ID
Alles.Ausbringung
Alles.Einsatz
Alles.Anz_Stcke_Produktion
Alles.Anz_Stcke_Einsatz
Of
(
Select 'Chargen SGA_Produktion' Datenart
AG.fiscper
EG.fiscper Einsatz_Buper
AG.basis_kunde
AG. Leg_nr
AG. Chargen_Band_ID
Sum (AG.) Weight) as Ausbringung
Sum (((EG. Weight / KS. Anz_Barren_Pro_Charge) * AG. (Sterile)) as employment
Sum (AG.) Sterile) as Anz_Stcke_Produktion
Sum (AG.) Sterile) as Anz_Stcke_Einsatz
Of
(
-Outputmaterial
Select t.fiscper
t.basis_kunde
t.Leg_nr
t.Chargen_Band_ID
Sum (t.menge) as weight
count (*) Barren
of vw_Lisa t
where t.Anlage in (1150, 1250, 1350, 1255)
and (t.Bewegungsart = 9310 or t.Bewegungsart = 9320) - Ausbringung
T.fiscper group,
t.basis_kunde,
t.Leg_nr,
t.Chargen_Band_ID
) AG,
(
-Inputmaterial
Select t.fiscper
t.Chargen_Band_ID
SUM (t.menge) as weight
count (*) Anzahl
of vw_Lisa t
where t.matnr like '% MN011 '.
and t.Referenz_Beleg_ID like '% P4 '.
and (t.Bewegungsart = 9330 or t.Bewegungsart = 9340) - Einsätze
T.fiscper group, t.Chargen_Band_ID
) FOR EXAMPLE,.
(
-Division
Select CB.fiscper, CB. Chargen_Band_ID, CB. Anz_Barren_Pro_Charge, KB.basis_kunde, Ko. Anz_Barren_Pro_Kunde
Of
(
Select t.fiscper
t.Chargen_Band_ID
, count (*) as Anz_Barren_Pro_Charge
of vw_Lisa t
where t.Anlage in (1150, 1250, 1350, 1255)
and (t.Bewegungsart = 9310 or t.Bewegungsart = 9320) - Ausbringung
T.fiscper group, t.Chargen_Band_ID
) CB, - ChargenBarren
(
Select t.fiscper
t.Chargen_Band_ID
t.basis_kunde
, count (*) as Anz_Barren_Pro_Kunde
of vw_Lisa t
where t.Anlage in (1150, 1250, 1350, 1255)
and (t.Bewegungsart = 9310 or t.Bewegungsart = 9320) - Ausbringung
T.fiscper group
t.Chargen_Band_ID
t.basis_kunde
) KB - Kundenbarren
where CB. Chargen_Band_ID = KB. Chargen_Band_ID
and CB.fiscper = KB.fiscper
order of CB.fiscper, CB. Chargen_Band_ID, KB.basis_kunde
) KS
where AG. Chargen_Band_ID = KS. Chargen_Band_ID
and AG.fiscper = KS.fiscper
and AG.basis_kunde = KS.basis_kunde
and AG. Chargen_Band_ID = EG. Chargen_Band_ID
AND AG.fiscper = EG.fiscper
AND AG.fiscper > = '2015010'
AND AG.fiscper < '2015011'
AG.fiscper group
EG.fiscper
AG.basis_kunde
AG. Leg_nr
AG. Chargen_Band_ID
) Alles,.
LC LISA_Config - contains a line! avoids a constant in the selection list
WHERE lc.aktiv = 'J '.
-> > results in 90 seconds
Select *.
of VW_LISA_SGA_PRODUKTION t
WHERE t.fiscper > = '2015010'
AND t.fiscper < '2015011'
-> > don't resultdata
Everything is OK now.
What has been done:
-reconstruction of all the clues, removing all the clues, recreate, no result, responsetimes had bad up to 1500 seconds, but any where clause worked
(Where t.fiscper > = '2015010' and t.fiscper)< '2015011' ="" up="" to="" 15500="" seconds, ="" where="" t.fiscper='2015010' ="" 2="" seconds=""> >
-leave off the table, fill it with the same data-online narrowed to max 500 seconds of response time
The solution: these two SYSTEM parameters setting to false:
the '_optimizer_squ_bottomup' value = FALSE;
the '_optimizer_use_feedback' value = FALSE;
Where t.fiscper > = '2015010' and t.fiscper < '2015011' ="=">data for October: no data is ==> 2. Where t.fiscper = '2015010'
Only the definition as session settings does not work!
>
Tags: Database
Similar Questions
-
Dashboard agent - "sorry. The view is not allowed. »
Hello
I get the message "Sorry. The view is not allowed. "instead of filtering options in the dashboard of the Agents (Management Server > Agents).
I am connected with the user "foglight" (with the role of 'Dashboard Designer' by default)
How is it and how can I get back to normal?
Concerning
The missing object is seen Services/Builder/managing groups. Make sure you have the role of operator assigned to your username, as this seems to be the only role on this object.
-
I have updated itunes to 12.4.0.119 and now impossible to find in the duplicate songs of column - the view
I had the same problem, but a solution was found in another forum:
Once more, Apple settled things. It is now at...
file/library/show-duplicate-items
These guys are worse with each update iTunes
-
used to be able to click on the view and window handle full screen
Hello
· Were there any changes made to your computer before this problem?
I suggest you to change the screen resolution.
http://Windows.Microsoft.com/en-us/Windows-Vista/change-screen-resolution
See also: http://windows.microsoft.com/en-US/windows-vista/Getting-the-best-display-on-your-monitor
-
How can I force an e-mail link to open the viewer and not the Mail App?
Hi all!
I have a problem on the email links in a digital publication. I have to force an e-mail link to open in the Viewer.
A spam link causes the release of the app and switch to the iPad App Mail... Is it possible force to open the "mail" link in the folio with the DPS?
I've seen other digital publication made outside the DPS to open the mail to the Mail App tab without leaving the application of departure...
Thank you in advance for your help!
Max
You can not with DPS, it will still launch the e-mail registered with the operating system application.
Neil
-
Embedded google maps but when done the view does not disappear
I do an app for android and I imported a location maps of google in the app, but the problem is that when I press the back button it takes back me to my home page as it should, but it does not remove the embedded google maps. Please could someone give me the action script code or some sort of method so that after using google maps I can turn back without it staying there. Thanks in advance for any help is very appreciated .
I used the action script is:
import flash.media.StageWebView;
button_back_maphome.addEventListener (MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_maphome);
function fl_ClickToGoToAndStopAtFrame_maphome(event:MouseEvent):void
{
webView.dispose ();
gotoAndStop (1);
}
var webView:StageWebView = new StageWebView();
webView.viewPort = new Rectangle (0, 300, this.stage.stageWidth, this.stage.stageHeight - 300);
webView.stage = this.stage;
webView.loadURL ("I inserted my google maps here tag");
Try:
webView.stage = null; webView.viewPort = null; webView.dispose();
-
Access the views Where the access to the underlying data, through a role
I have a user (say User1) who granted select access to motherlode via a role table
User1 has a bunch of useful views created I want User2 to have access to the. User2 should have access only to these points of view, not to the underlying table.
User1 can grant access to his point of view because it has no direct access granted to motherlode tables.
I managed, based on a technique that I have for the most part, but do not entirely understand, give User2 access to data through a function. The solution is below.
My general question is: y at - it an easier way (other than the grant direct access to the motherlode User1 tables)?
My question is: the definition is possible shorter somehow. I know I can automate the production of the code for some of the statements using metadata, but, for example, is it possible to base the declaration of type (t_p5) on the existing view? (I have about 15 views I need to provide access)
Solution is, where v_p5 is the original view:
User 1:
CREATE or replace type t_p5 as an object
(< columns and data types of v_p5 >
) ;
CREATE or REPLACE TYPE t_p5_tab AS TABLE OF THE t_p5;
FUNCTION to CREATE or REPLACE f_provide_p5 RETURN t_p5_tab
PIPELINED IS
l_cur SYS_REFCURSOR;
l_rec v_p5% rowtype;
BEGIN
L_cur OPEN FOR ' SELECT * FROM v_p5';
LOOP
EXTRACTION l_cur
IN l_rec;
EXIT WHEN l_cur % NOTFOUND;
GUIDELINE (t_p5 (area = > l_rec.region))
, district_name = > l_rec.district_name
, current_month = > l_rec.current_month
, p_current = > l_rec.p_current
, previous_month = > l_rec.previous_month
, p_prev = > l_rec.p_prev
, diffp = > l_rec.diffp
, diff_perc = > l_rec.diff_perc
, previous_year = > l_rec.previous_year
, p_year = > l_rec.p_year
, diffy = > l_rec.diffy
, perc_diffy = > l_rec.perc_diffy
));
END LOOP;
RETURN;
EXCEPTION
WHILE OTHERS THEN
raise_application_error (-20000, SQLERRM |) Chr (10) | l_sql);
END;
And user2:
VIEW to CREATE or REPLACE v_p5 AS
SELECT * FROM TABLE (User1.f_provide_p5);
I can then do a select * from v_p5 in User2 and return the view data.
Thank you.
Hello
Don't bother with the pipeline and PL/SQL functions. Everything will be easier, more effective and more reliable if you use only views.
Privileges through roles do not create a view on a table in another schema.
If user1 can create a view on motherlode.table_x, then user1 should have direct privileges already (or user1 must have a privilege of system as SELECT ANY TABLE).
User1 needs the same privileges WITH GRANT OPTION in order to grant privileges on his point of view to User2. To do this, have motherlode grant privileges to user1, like this:
GRANT SELECT ON table_x to User1 WITH GRANT OPTION;
GRANT SELECT ON table_y to User1 WITH GRANT OPTION;
Repeat for each table that user1 uses in the views.
Then user1 will be able to grant privileges on views to User2 like this:
GRANT SELECT ON my_view_01 TO user2.
This will NOT allow user2 directly see the motherlode.table_x. User1 will have the power to give privileges to User2, but simply grant privileges on the view does not give User2 these privileges.
If you don't want User1 to have this power, then create the views in the motherlode scheme, or create a new schema only for the putpose to own these views.
-
Interactive report based on the view
Hello!
I just started to rewrite my apps of forms at the Apex.
Based on an existing view, I want to create an interactive report, but there is only the choice between 'Table' and 'SQL statement'.
Is it possible to use the view directly (not in a SQL ' select * view)?
Concerning
PietjaHello Pietja,
In my APEX env (3.2) an IR cannot be based on a SQL query. You can use the Query Builder to select a table or view, but still he ends with an SQL statement.
Greetings,
Roel
http://roelhartman.blogspot.com/
You can reward this response in marking it as useful or Correct ;-) -
Windows asks for a password when you try to access to the "view work group computers."
We are on a network. Main computer, that we can access through the receptionist connect you and access shared files on this computer. Computer from the receptionist, windows asks for a password when you try to access to the "view work group computers." We tried to use its password. However, the shared files are still not accessible.
Hello
1. what happens when you enter the password?
2. how many computers are connected to this working group?
Refer to this link and check: You cannot access shared files and folders or browse computers in the workgroup with Windows XP
http://support.Microsoft.com/kb/318030
I hope this helps!
-
AAudition does not work on windows 10 ask you an activation code. No work is available. I have not been informed that the server should be stopped or that the telservice was not available. Now, I returned to windows 7 pro, but he asks still activationcode I get the err 24:24
HI Robertg77843012,
As you know, the activation for Audition 3 or earlier server is no longer available. Adobe has made a special version of CS2 provision affected customers, and he is hearing. The special version can be downloaded and activated by following the instructions contained in this help document: error: "Activation Server unavailable". CS2, Acrobat 7, pass a hearing 3. Please note that you must use the special version with the serial number supplied during installation. Your existing serial number will not work. There is also no guarantee, as the Bani, the old software will work in newer operating systems. However, it is worth a try.
Let us know how it goes or if you have any other questions.
Best,
Del
-
I can not the firefox window to ask me if I want to remember my password. I'm not in private browsing. The site is not on the list of exceptions in the security zone where all other sites of passwords are stored.
Hello, Web sites can specify whether browsers should be able to save the name of user and password (through the AutoComplete = "off" attribute in the login form in the html source code)-it is often the case when a high level of security is probably held by these sites.
You can either install an addon or use a bookmarklet to work around this restriction.
-
I installed the latest version of Firefox on my laptop (Windows 7 Professional 64-bit). The thing is that firefox prompt to save passwords of websites. I'll explain you a little more away with an example: suppose I load www.gmail.com. When I login, the password manager key is displayed on the left side of the address bar, but the corresponding window which would ask if I want to save the password or not, does not appear. I tried all the possible solutions. It is true that when I restart firefox with disabled modules (safe mode), password manager works fine. But I don't really use Add-ons that could prevent firefox to save passwords. I disabled all add-ons and ran firefox in normal mode, but the password manager does not work yet. Please keep in mind that I tried everything and that any post not published so far describes a similar problem to mine case. Consider that I have the same I have configured the entire system from the beginning. The problem appeared again from the first time I launched firefox. At that time, I had not installed any antivirus software and there is no add-on with firefox. Hope someone can give me a valid solution...
Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).
- Makes no changes on the start safe mode window.
- https://support.Mozilla.com/kb/safe+mode
It is possible that there is a problem with key3db and signons.sqlite files that store the encrypted names and passwords in Firefox.
Rename signons3.txt and signons.sqlite files in the Firefox profile folder.
You can add .old files (key3.db.old and signons.sqlite.old) names or move them to another folder to make it possible to cancel the action.
You must define a new master password after renaming or removing the signons3.txt and all the currently saved passwords are lost.
If that worked, then you can delete the renamed files that are no longer needed.See:
- "Troubleshooting" in http://kb.mozillazine.org/Password_Manager
-
My iPAD asks me to update to OS 9.3, but the update fails because it says that the iPAD is not connected to the internet and when I connect to my computer iTunes it say my OS is up to date. Help, please.
I'm surprised to hear that for an iPad 2 that the issue had apparently been set for 2 s. Please see this for more details as I know them. Maybe the servers at your site have not been updated yet for the new version of the iPad 2. ???
Apple released the update iOS 9.3 for older devices (air of iPad and previous iPhone, 5 s and previous) due to problems with Activation. See the following for details and possible solutions.
http://www.IMore.com/Apple-working-iOS-93-fix-older-iPhone-iPad
https://support.Apple.com/en-us/HT206203
A new version for the iPad 2 is now available which does not require the activation step. A new version for other devices is not yet available.
-
I run the program "TuneUp utilities" and I recently received a notification of the statement that "the BHDrvx64device does not work correctly" program proposed to update the driver, but there is no provision in any of the dialog boxes. Windows Help and support says: help for this program was created in Windows Help format, which depends on a feature that is not included in this version of Windows. However, you can download a program that will allow you to view help created in the Windows Help format. All this brought me here, please, how to fix this?
The last thing you want to do is install and run any third tuneup/Optimizer program.
In the worst cases of such utilities can cause system failure or program, uninstall it, having restored firstly of the changes he could do.
-
I tried every way I know to create a button States in Adobe Muse CC 2015. It works perfectly in preview mode, but it does not work effectively when published on a web site using the Business Catalyst (filename.businesscatalyst.com) process. The problem, in my view, is that the text used in the button does not accept state changes. I tried every workaround that I think might work, but nothing seems to work. I even deleted the Business Catalyst site and then he came again, but it does not work. Any information on how to fix this problem would be appreciated.
I think I found my problem. My original links have been on the "master" page When I placed a link on a page of content object, Business Catalyst was able to translate the code correctly. It is a disappointment because I need to duplicate objects on the pages, but at least it works.
Maybe you are looking for
-
How Sierra Desktop and sync Documents?
Hello Before moving to Sierra, I would like to be shure that this novelty won't make me lose important documents. I have two macs with different files on my documents and desktop folders. How Sierra will synchronize all this?
-
It's already happened and I closed the browser to get rid of him. I'm worried about security
-
Satellite R630 - 12G: Chipset and Bios support hardware virtualization
No one has tested hardware virtualization with Toshiba Satellite R630 - 12G? It work? Thank youTom
-
Unable to get windows update to install the important updates. get the error code 80070013 when you try the automatic and install it manually. It keeps failing one episode a week.
-
Pavilion 15-g004AU: processor upgrade
Hello everyone, I would like to know if it is possible to upgrade my computer 15-g004AU Pavilion laptop at least 2 Ghz processor? My processor is 1 GHz, but it is not enough to manage my work, so I would like to know if it is possible to upgrade this