DDL generateor addes in table creates when I select views only
When I select Export -> DDL then select a sub-view (that only has views in the diagram) to generate the output it is automatically including all the underlying tables. I have already built the tables in the database so only want a script with the views. If I generate the views by selecting them manually from the overall design list, then I get just the views.
This seems to be new functionality that I need to turn off or a bug in the generator when it uses a subview as the base. How do I get just the Create View statements?
Hi Kent,
It's a bug. When generating from a Subview, the Tables referenced by the selected Views are also being generated.
I've logged a bug on this. Thanks for reporting the problem.
David
Similar Messages
-
What are the table filled when you select ABAP?
What are the table filled when you select ABAP?
Hi mate,
You need to make your question clearer. Tell us what your requirements are and we can help you more.
Some hints:
You can read data from InfoProviders (e.g. InfoCubes, DSOs etc) using function module RSDRI_INFOPROV_READ.
Hope this helps. -
Create user with select privilege only one schema
can someone tell me how i can create user with select priviliges only one schema.
i don't want the user to have any select privileges with other schema.
can someone advise me.
ThanskIn general, you would do something like
CREATE ROLE abc_read_only;
FOR x IN (SELECT * FROM dba_tables WHERE owner='ABC')
LOOP
EXECUTE IMMEDIATE 'GRANT SELECT ON abc.' || x.table_name || ' TO abc_read_only';
END LOOP;
CREATE USER your_user ...;
GRANT abc_read_only TO your_userYou create a role, grant the role SELECT access to all the tables in the ABC schema (you can extend this to grant access to views, functions, etc depending on the requirements), and then grant that role to your user.
Justin -
I have received 3 friend requests via email but I cannot accept them. When I select view request, it just gives me directions on downloading the app and there are no requests in my app. How do I accept the request?
Which "app" are you talking about?
-
Duplicate rows in Hierarchy Table created when running incremental load
I copied an out of the box dimension and hierarchy mapping to my custom folders (task hierarchy) this should create the same wids from dimension to hierarchy table and on full load does this using the sequence generator. The problem I am getting is whenever I run a incremental load instead of updating, a new record is created. What would be the best place to start looking at this and testing. A full load runs with no issues. I have also checked the DAC and run the SDE trunc always and SIL trunc for full load only.
Help appreciatedProvide the query used for populating the child records. Issue might be due to caching.
Thanks
Shree -
Problem with table-indexes when using select-options in select
Hello experts,
is it right that table-indexes will not be used if you take select-options to select data from the database?
in detail:
i have build up an table-index for one of our db-tables and test it via an test-programm. The first test with '=' comparisons worked fine. Every key of the index was used; checked via ST05!
e.g.: SELECT * FROM TABLEA INTO ITAB WHERE keya = '1' AND keyb = '2' AND keyc = '3'.
Now i startet the test with select-options
e.g.: SELECT * FROM TABLEA INTO ITAB WHERE keya IN seltabA AND keyb IN seltabB AND keyc IN seltabC.
First of all i just filled the seltabs with only 1 value: eg: seltabA= SIGN = 'I' OPTION = 'EQ' LOW = '1' etc.
Everything worked fine. Every key of the index was used.
But now, I putted more than one entries in the seltabs e.g.
seltabA: SIGN = 'I' OPTION = 'EQ' LOW = '1'
SIGN = 'I' OPTION = 'EQ' LOW = '2'
SIGN = 'I' OPTION = 'EQ' LOW = '3'
From now on, the indexed was not used completely (with all keys).
Isn't that strange? How can i use select-options or sel-ranges with using the complete table-indexes?
Thanks a lot,
MarcelHi Hermann,
i hope this helps:
this is the first one, which uses the complete index:
SELECT
"KOWID" , "LIFNR" , "KLPOS" , "ORGID" , "KOART" , "MATNR" , "GLTVON" ,
"GLTBIS" , "WERT" , "ABLIF" , "FAKIV" , "AENAM" , "AEDAT" , "AFORM" ,
"HERSTELLER" , "ARTGRP" , "OE_FREITXT" , "ARTFREITEXT" , "STATUS" ,
"TERDAT"
FROM
"/dbcon/01_con"
WHERE
"MANDT" = ? AND "LIFNR" = ? AND "ORGID" = ? AND "KOART_BASIS" = ? AND
"STATUS" = ? AND "GEWAEHR_KOWID" < ? AND ( "STATUS" = ? OR "STATUS" = ? OR
"STATUS" = ? ) WITH UR
RESULT: 5 IXSCAN /dbcon/01_con05 #key columns: 4
And the second one, which does not use the complete index! The 3 ranges are filled each with 2 values. Remember; when i fill them each with only one value, the result is the same as you can see above(/dbcon/01_con05 #key columns: 4):
SELECT
"KOWID" , "LIFNR" , "KLPOS" , "ORGID" , "KOART" , "MATNR" , "GLTVON" ,
"GLTBIS" , "WERT" , "ABLIF" , "FAKIV" , "AENAM" , "AEDAT" , "AFORM" ,
"HERSTELLER" , "ARTGRP" , "OE_FREITXT" , "ARTFREITEXT" , "STATUS" ,
"TERDAT"
FROM
"/dbcon/01_con"
WHERE
"MANDT" = ? AND "LIFNR" IN ( ? , ? ) AND "ORGID" IN ( ? , ? ) AND
"KOART_BASIS" IN ( ? , ? ) AND "GEWAEHR_KOWID" < ? AND ( "STATUS" = ? OR
"STATUS" = ? OR "STATUS" = ? ) WITH UR
and here the access-plan
0 SELECT STATEMENT ( Estimated Costs = 5,139E+01 [timerons] )
5 1 RETURN
5 2 NLJOIN
5 3 [O] TBSCAN
5 4 SORT
5 TBSCAN GENROW
5 6 <i> FETCH /dbcon/01_con
7 IXSCAN /dbcon/01_con05 #key columns: 2
As you can see, only 2 keys were taken for indexed selection!
Any idea?
Kind regards,
MArcel
Edited by: Marcel Ebert on Jul 28, 2009 5:25 PM -
ABOUT TABLE INDICATING WHEN IAM SELECTING PARTICULARLY
hi,
i got one problem about
table,
if i select table column in UI
THERE IS RED COLOUR INDICATING STARTING
I WANT TO CHAINGE THAT COLOUR OF SELECTING
COLUMN, BECAUSE RED INDICATES DANGEROUS
SO THAT I AM ASKING
THAT RED IS PREDIFINED CAN WE CHAINGE THAT COLOUR
BYEEEEHi,
Extremely sorry. I am not working in Hyderabad.
It will be available in the download area of SDN.(Category : Development tool)
https://www.sdn.sap.com/sdn/downloaditem.sdn?res=/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/business_packages/a1-8-4/nw04stack09themes.zip
Regards
Bharathwaj
Message was edited by: Armin Reichert
P.S: Hi Armin, What Happened ? We cant use [c] tag for a link ?
Message was edited by: Armin Reichert
(Link was broken because of line break, I corrected it) -
iPhone 5s photos/video,deleting duplicate photos and video transferred from other iPhone 5s & iPhone 4S
I have tried selecting photos and videos to throw them in trash bin, but the trash bin doesn't work when pressing and or clicking on it
I would like to know how to get rid of the unwanted and duplicate pictures that I've transferred from my other iPhones.
If someone could please help me, I would greatly appreciate it !!
Thank you so much,
GingerHow did you transfer the photos from your other iPhone? If you did it by importing them from the old phone to a computer and then used iTunes to sync them back to the new phone, then you would delete them by syncing again using iTunes but this time change the selection of which photos are to be synced. Each time you sync using iTunes, it sets the non-Camera Roll photos on the phone to match the current settings/selection in iTunes.
-
Installed 2.1.4 on an iMac with 3GB Ram using 10.6.8 OSX.
Experiencing two problems for now.
1. Attempts to customize toolbar has no response. The boxes appear but no screen with the tools to import.
2. I did the standard install over AP 1.5 and all library photos for 1.5 appear in 2.1.4 but
when opening a project/folder picture it will open and the "Loading" message appears but the wheel is not moving?
I'm using 2.1 over 3.0 because I have it and not ready to spend more until I get this working. I plan to go to LION OSX
once Aperture functons correctly.
Any help will be greatly appreciated.
GeorgeUpdated to snow leopard and had the same problem that when the thumbnails where placed on the bottom I could only scroll left or right when no picture was marked... so I placed the thumbnails to the left side and scrolling worked normally even with a a marked picture...I also had bad color sync problems and switching screens would cause my windows to become almost black and unreadable..... I reinstalled my Leopard clone drive shortly there after... oh well... it took a while before leopard was ready for professional use.... I didn't really expect Snow leopard to be different... I will check back in at 10.6.4 or so LOL
-
When I select view Apple ID the screen turns white
I'm trying to change my credit card info in my phone so I go to iTunes and app settings and then select Apple ID and view Apple ID then the screen turns white and it stays like that. How can I fix this?
Hey there Vicky,
It sounds like your account info screen is not loading correctly on your iPhone 5s when you try to edit your billing. I would start by signing out of the iTunes & App Stores in your settings first. Then quit all the running apps on the device with this:
iOS: Force an app to close
http://support.apple.com/kb/ht5137
Double-click the Home button.
Swipe left or right until you have located the app you wish to close.
Swipe the app up to close it.
When you have done that and restart the phone, sign back into your account and test the issue again:
iOS: Turning off and on (restarting) and resetting
http://support.apple.com/kb/ht1430
Thank you for using Apple Support Communities.
Take care,
Sterling -
see question
A good place to ask questions and advice about web development is at the mozillaZine Web Development/Standards Evangelism forum.<br />
The helpers at that forum are more knowledgeable about web development issues.<br />
You need to register at the mozillaZine forum site in order to post at that forum.<br />
See http://forums.mozillazine.org/viewforum.php?f=25 -
Unexpected table created after schema registration
I registered the following xsd. Even though I did not specify any tables to be created, I see a table in "user_xml_tables". Could someone explain what's going on? Thank you.
1. This is the xsd file.
<xsd:schema version="1.0" xdb:storeVarrayAsTable="false" xdb:mapUnboundedStringToLob="false" xmlns:xdb="http://xmlns.oracle.com/xdb" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:complexType name="val_type">
<xsd:sequence>
<xsd:element name="e1" type="xsd:integer" />
<xsd:element name="e2" type="xsd:integer" />
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="coll5_type" xdb:SQLType="coll5_sqltype">
<xsd:sequence >
<xsd:element name="val" type="val_type" maxOccurs="200"
xdb:SQLInline="false"/>
<xsd:element name="val2" type="xsd:integer" xdb:SQLType=
"INTEGER" />
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
2.Register the schema
BEGIN
DBMS_XMLSCHEMA.registerSchema(
SCHEMAURL => 'http://oracle.com/xdb/coll2.xsd',
SCHEMADOC => bfilename('TICKERDIR','coll2.xsd'),
LOCAL =>TRUE,
GENTYPES => TRUE,
GENTABLES => TRUE,
CSID => nls_charset_id('AL32UTF8'));
END;
3. ************ Why is this table created? ******************************************
SQL> select table_name from user_xml_tables;
TABLE_NAME
val777_TAB
SQL> desc "val777_TAB"
Name Null? Type
TABLE of SYS.XMLTYPE(XMLSchema "http://bloomberg.com/xdb/coll2.xsd" Element "val") STORAGE Object-relational TYPE "val_type776_T"
SQL> desc "val_type776_T"
"val_type776_T" is NOT FINAL
Name Null? Type
SYS_XDBPD$ XDB.XDB$RAW_LIST_T
e1 NUMBER(38)
e2 NUMBER(38)I do not think this is because GENTABLES=> TRUE is set.
1. Note that for the posted schema, a table is created only for coll5_type, but not val_type.
2. I modifed the schema as follows (see below): Its the same as the original except that we have two additional complex types, we still have ONE table that is generated. We should expect THREE tables to be generated if the expected behaviour of GENTABLES=> TRUE is to create tables for every complexType.
3. If you remove coll5_type from the modified schema, there are NO tables generated.
Conclusion: the table is generated only if the complexType has a collection with SQLInline="false" : i.e. we require a varray of REF storage.
What's the reason for this behaviour?
1. Here's the modified xsd:
This schema has:
a) has 3 complex types defined
b). no global elements (tables are supposed to be generated only for global elements)
3. no tables have been specified in the xsd.
<?xml version="1.0" encoding="windows-1252"?>
<xsd:schema version="1.0" xdb:storeVarrayAsTable="false" xdb:mapUnboundedStringT
oLob="false" xmlns:xdb="http://xmlns.oracle.com/xdb" xmlns:xsd="http://www.w3.or
g/2001/XMLSchema">
<xsd:complexType name="val_type">
<xsd:sequence>
<xsd:element name="e1" type="xsd:integer" />
<xsd:element name="e2" type="xsd:integer" />
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="coll3_type" xdb:SQLType="coll3_sqltype">
<xsd:sequence >
<xsd:element name="val" type="val_type" xdb:SQLCollType=
"coll3_sqlcolltype" maxOccurs="200"/>
<xsd:element name="val2" type="xsd:integer" xdb:SQLType=
"INTEGER" />
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="coll4_type" xdb:SQLType="coll4_sqltype">
<xsd:sequence >
<xsd:element name="val" type="val_type" maxOccurs="200"
xdb:SQLCollType="CLOB" />
<xsd:element name="val2" type="xsd:integer" xdb:SQLType=
"INTEGER" />
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="coll5_type" xdb:SQLType="coll5_sqltype">
<xsd:sequence >
<xsd:element name="val" type="val_type" maxOccurs="200"
xdb:SQLInline="false"/>
<xsd:element name="val2" type="xsd:integer" xdb:SQLType=
"INTEGER" />
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
2.
BEGIN
DBMS_XMLSCHEMA.registerSchema(
SCHEMAURL => 'http://bloomberg.com/xdb/coll2.xsd',
SCHEMADOC => bfilename('TICKERDIR','coll2.xsd'),
LOCAL =>TRUE,
GENTYPES => TRUE,
GENTABLES => TRUE,
CSID => nls_charset_id('AL32UTF8'));
END;
3.
SQL> select table_name from user_xml_tables;
TABLE_NAME
val779_TAB -
I'm using SQL Server 2008 R2 (10.50.4033) and I'm troubleshooting an issue that a select query against a specific view is taking more than 30 seconds consistently. The issue just starts happening this week and there is no mass changes in data.
The problem only occur if the query is issued from an IIS application but not from SSMS. One thing I noticed is that sys.dm_exec_cached_plans is returning 2 Parse Tree rows for the view - one created when the select query is issued
1st time from the IIS application and another one created when the same select query is issued 1st time from SSMS. The usecounts of the Parse Tree row for the view (the IIS one) is increasing whenever the select query is issued. The
usecounts of the Parse Tree row for the view (the SSMS one) does not increase when the select query is issued again.
There seems to be a correlation between the slowness of the query and the increasing of the usecounts of the Parse Tree row for the view.
I don't know why there is 2 Parse Tree rows for the view. There is also 2 Compiled Plan rows for the select query.
What does the Parse Tree row mean especially the usecounts column?>> The issue just starts happening this week and there is no mass changes in data.
There might be a mass changes in the execution plan for several reason without mass changes in data
If you have the old version and a way to check the old execution plan, and compare to the new one, that this should be your starting point. In most cases you don't have this option and we need to monitor from scratch.
>> The problem only occur if the query is issued from an IIS application but not from SSMS.
This mean that we know exactly what is the different and you can compare both execution plan. once you do it, you will find that they are no the same. But this is very common issue and we can know that it is a result of different SETting while connecting
from different application. SSMS is an external app like any app that you develop in Visual studio but the SSMS dose not use the Dot.Net default options.
Please check this link, to find the full explanation and solutions:
http://www.sommarskog.se/query-plan-mysteries.html
Take a look at sys.dm_exec_sessions for your ASP.Net application and for your SSMS session.
If you need more specific help, then we need more information and less stories :-)
We need to see the DDL+DML+Query and both execution plans
>> What does the Parse Tree row mean
I am not sure what you mean but the parse tree represents the logical steps necessary to execute the query that has been requested. you can check this tutorial about the execution plan: https://www.simple-talk.com/sql/performance/execution-plan-basics/ or
this one: http://www.developer.com/db/understanding-a-sql-server-query-execution-plan.html
>> regarding the usecount column or any other column check this link:
https://msdn.microsoft.com/en-us/library/ms187404.aspx?f=255&MSPPError=-2147217396.
Ronen Ariely
[Personal Site] [Blog] [Facebook] -
DBI Create report cant see View / MV
Apps - R12
I'm new to DBI and trying to create a new report with the following method
1. Daily Business Intelligence Designer -
2. Reporting -
3. Report Designer -
4. Create
when i select "Select Existing Data Source" only some of our custom views and MV's show up in the list. why is this, i asume they need to be registered or shared somehow. Apps can see the Scheema as it can see some of our custome views etc. but not the one i have recently created for this test.
i have read through the implimentation guide and user guide. i cant find what i need there, im sure this is basic stuff.
thanks for your time
- Sol
Edited by: SolHill on 25-Apr-2012 04:51Hi
this is in our custom Schema - xx.... the Apps Scheema can see this and there are other DB items in the same schema that are availabe, i e you can select when following the same process. i wouldnt have thought a public synonym would be required but i will double check just in case i am mistaken.
is there anything else which is requred for the views / MVs / Tables to be available for use?
Cheers
Update: I just created a public synonym to test this - still no Joy. any ideas?
Edited by: SolHill on 26-Apr-2012 08:23 -
Triggers are gone when updates the view they are on?
I found that when I updated a view, all the triggers on this view were dropped.
Is this supposed to be or I did something wrong?To answer the second part of your question, triggers on tables are not dropped if you modify the tables, unlike when you modify views. However, if you modify the table in such a way that it invalidates the trigger, the trigger becomes invalid, but not dropped. Please see the example below.
scott@ORA92> create table test_tab
2 (col1 number)
3 /
Table created.
scott@ORA92> create sequence test_seq
2 /
Sequence created.
scott@ORA92> create or replace trigger test_trig
2 before insert on test_tab
3 for each row
4 begin
5 select test_seq.nextval into :new.col1 from dual;
6 end test_trig;
7 /
Trigger created.
scott@ORA92> show errors
No errors.
scott@ORA92> insert into test_tab values (null)
2 /
1 row created.
scott@ORA92> select * from test_tab
2 /
COL1
1
scott@ORA92> commit
2 /
Commit complete.
scott@ORA92> alter table test_tab add col2 number
2 /
Table altered.
scott@ORA92> insert into test_tab (col2) values (10)
2 /
1 row created.
scott@ORA92> select * from test_tab
2 /
COL1 COL2
1
2 10
scott@ORA92> commit
2 /
Commit complete.
scott@ORA92> select status from user_triggers where trigger_name = 'TEST_TRIG'
2 /
STATUS
ENABLED
scott@ORA92> select status from user_objects where object_name = 'TEST_TRIG'
2 /
STATUS
VALID
scott@ORA92> alter table test_tab drop column col1
2 /
Table altered.
scott@ORA92> select status from user_triggers where trigger_name = 'TEST_TRIG'
2 /
STATUS
ENABLED
scott@ORA92> select status from user_objects where object_name = 'TEST_TRIG'
2 /
STATUS
INVALID
scott@ORA92> insert into test_tab (col2) values (20)
2 /
insert into test_tab (col2) values (20)
ERROR at line 1:
ORA-04098: trigger 'SCOTT.TEST_TRIG' is invalid and failed re-validation
scott@ORA92> select * from test_tab
2 /
COL2
10
Maybe you are looking for
-
I got the new iPhone5 back in Dec, I hooked it up to my computer for the 1st time this wk. It deleted all new data added since Dec (notes,contacts,texts,pics, info added to apps) and reverted back to all my old data (literally uploaded all of my old
-
XI 2.0 Inbound message to XI has XML Tags Stripped out
Hi We are developing an XI 2.0 application. A message is sent from a 3rd party company over a VPN and routed to our XI box. On receiving the message, XI tries to carry out the message mapping. However it fails because it does not like the content of
-
Embedding the .mac Web Gallery in another page?
Hi all, I love the way the .mac web gallery operates. It is a study in elegance and technology. However, it is NOT a good professional tool to show clients. The fact that I cannot place my own navigation in the page, and that there is no graceful way
-
Is ther no easy way to upload pictures from iphone to imac or pc?
Is there no easy way to upload pictures from iphone to Imac or PC without have to buy Iphoto? Im used to do that for the last 10 years with Nokia
-
Personal Hotspot Privacy (or How Does One Really Turn This Off?)
Hi: On my iPhone 6, under Settings>Personal Hotspot, this option is turned "Off" Yet on my iPad, under Settings>Wi-Fi, under the "Personal Hotspots" category, I see my iPhone 6 listed as an option. What gives? Even if no one else can connect to this