Can do explict join for database view?
Hi all,
I would like to ask whether there is a way to specify the join condition to be outer join for database view. It is because I need to map 2 tables in the view and I want to be able to find the record in the view table if the record exists in Table A but not Table B.
Hi Jaya,
A Maintenance View helps you to maintain data that is distributed across different or multiple database tables. So, it becomes an easy way to update data and without any programing effort. You can create a Maintenance View across multiple tables with one Table as Primary Table and others as Secondary Tables. But the tables must be related with each other with a Foreign Key Relationship.
Have a look at the following link which tell you about the procedure of creating the Maintenance Views :
http://help.sap.com/saphelp_nw04s/helpdata/en/cf/21ed2d446011d189700000e8322d00/frameset.htm
Hope this helps.
Thanks,
Samantak.
Similar Messages
-
Can we poll for database view using Datbase Adapter?
Thanks
Vivek.It is recommended NOT to use triggers, without going into too much detail this link provides a very good examples of why not to use triggers
http://www.oracle.com/technology/oramag/oracle/08-sep/o58asktom.html
The reason the adapter provides functionality for polling is for the very reason of no dependency in the source system.
cheers
James -
DBCA can not use ASM for database storage due to following reason: Could no
Hi
I've a recently installed RAC11gR2(11.2.0.3) on HP-UX
I installed Grid Infrastructure with grid user:
Node1: # id grid
uid=1100(grid) gid=1000(oinstall) groups=1031(dba),1021(asmdba)
Node2: # id grid
uid=1100(grid) gid=1000(oinstall) groups=1031(dba),1021(asmdba)
I installed the Oracle Server with oracle user:
Node1: # id oracle
uid=1101(oracle) gid=1000(oinstall) groups=1031(dba),1021(asmdba),1033(oper)
Node2: # id oracle
uid=1101(oracle) gid=1000(oinstall) groups=1031(dba),1021(asmdba),1033(oper)
All related Grid Infrastructure is functioning well in both nodes:
$ crs_stat -t
Name Type Target State Host
ora.DATA.dg ora....up.type ONLINE ONLINE node03
ora.FRA.dg ora....up.type ONLINE ONLINE node03
ora....ER.lsnr ora....er.type ONLINE ONLINE node03
ora....N1.lsnr ora....er.type ONLINE ONLINE node04
ora.asm ora.asm.type ONLINE ONLINE node03
ora.cvu ora.cvu.type ONLINE ONLINE node04
ora.gsd ora.gsd.type OFFLINE OFFLINE
ora....network ora....rk.type ONLINE ONLINE node03
ora.oc4j ora.oc4j.type OFFLINE OFFLINE
ora.ons ora.ons.type ONLINE ONLINE node03
ora.scan1.vip ora....ip.type ONLINE ONLINE node04
ora....SM1.asm application ONLINE ONLINE node03
ora....03.lsnr application ONLINE ONLINE node03
ora....d03.gsd application OFFLINE OFFLINE
ora....d03.ons application ONLINE ONLINE node03
ora....d03.vip ora....t1.type ONLINE ONLINE node03
ora....SM2.asm application ONLINE ONLINE node04
ora....04.lsnr application ONLINE ONLINE node04
ora....d04.gsd application OFFLINE OFFLINE
ora....d04.ons application ONLINE ONLINE node04
ora....d04.vip ora....t1.type ONLINE ONLINE node04
$
The ASM instance are running well in both nodes
Connected with oracle user, the listener has registered perfectly the ASM instance in each node:
$
$ lsnrctl status
LSNRCTL for HPUX: Version 11.2.0.3.0 - Production on 16-MAY-2012 15:41:06
Copyright (c) 1991, 2011, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for HPUX: Version 11.2.0.3.0 - Production
Start Date 16-MAY-2012 15:24:19
Uptime 0 days 0 hr. 16 min. 47 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/11.2.0/grid/network/admin/listener.ora
Listener Log File /u01/app/grid/diag/tnslsnr/node03/listener/alert/log .xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=16.0.0.133)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=16.0.0.136)(PORT=1521)))
Services Summary...
Service "+ASM" has 1 instance(s).
Instance "+ASM1", status READY, has 1 handler(s) for this service...
The command completed successfully
$
$
DATA & FRA disk group are created:
$
$ echo $ORACLE_SID
+ASM1
$
$ asmcmd
ASMCMD>
ASMCMD> ls -lt
State Type Rebal Name
MOUNTED EXTERN N DATA/
MOUNTED EXTERN N FRA/
ASMCMD>
ASMCMD>
The big issue is... that the DBCA can not see the diskgroups. When I choose ASM Storage it can not see them. It shows the chart in blank and if i try to write the disk group, so the following message appears: can not use ASM for database storage due to following reason: Could not connect to ASM due to following error: ORA-01034 ORACLE not available
What can be passing in this case... ?
Thanks in advanceThanks both
Really the problem initially was because of this:
[INS-06006] Passwordless SSH connectivity not set up between the following node(s): [node1, node2]. CVU may reports "PRVF-4007 : User equivalence check failed for user "user"" for same error
and I had to install node1 first and after node2 manually and perhaps for this the product was not well linked.
I resolved the problem establishing the keys with the wizard and after copying the following files from node1 to node2
/home/grid/.ssh -------> /home/grid/.ssh
authorized_keys
known_hosts
This is the procedure if you run the wizard at the node1.
The problem is that the wizard creates the keys incompletely...
Thanks -
How to change the Access for Database views
Hello Experts,
My requirement is to copy the records of a standard database view BDCPV (which is a combination of BDCP & BDCPS) to a custom view and then compare the records with a new table BDCP2.
I copied the BDCPV view to a table and used the custom view in the program. While executing the program, I'm getting an error message like "The database view <View Name> is write protected, so it cannot be changed".
I'm unable to change the Access under Maintenance Status Tab from Read only to "Read and Change". Could anyone help me how to resolve this issue".
Also please share teh sample code if you have any for the above requirement. We are using it in a SP upgrade to one of the systems.
Regards,
Rajesh.Hi,
Change the status in the given way.
Choose Extras ® Maintenance status. A dialog box appears, in which you can select the maintenance status for the view. If more than one table is involved in the view, the maintenance status read only cannot be altered.
Regards,
Srinivas. -
Dear Guru's,
M_MCH1M = Generated view for matchcode ID MCH1 -M
Actually I want to add some fields in this database view .
So I applied in key values for SSCR.
PgmID Type Object name:
Basis release * : 700 R3TR
PgmID * : R3TR
Type * : VIEW
Object name * : M_MCH1M
But I am not getting the Access key for this object.
Please advice me is there any missing from my end?
Thanks and B/R
Bishnu
04/11Dear Krishnendu,
Thanks for your advice.
From you first quote:
Help me to find the access key. is there any mistake in my SSCR request fields.
Second:
I need to change in this help view because I am using MIGO.
Please advice me.
Thanks and B/R
Bishnu
06/11 -
It appears that Revel can't be used for offline viewing
If I have my iPad airplane mode on, I am unable to view photos or if the photo is displayed it is very very blurry. I concluded that Revel must have an internet connection, which also means that it will eat into my data plan and since it appears the photos are not stored on my iPad, viewing photos is slower and will also be slower if there is an internet connection but is a slow internet connection.
Am I correct on all counts?Hello,
You do need an wifi connection to download thumbnails for previewing your images in Revel on your Ipad. When you view your photos with out a wifi connection, Revel will show you a cached thumbnail of the image but its not the full resolution. To see the full resolution of the image, you do need to be connected to the wifi as Revel downloads and caches the full resolution of the image from the cloud service.
I tested this as I viewed an album of photos, clicked on a 5 out of 7 images and viewed them in loupe view(single image). These images showed the full resolution, then turned off the wifi on the ipad. The remaining 2 images still did show but did show a bit blurry. This is because I did not view the image in loupe view to download the thumbnail. I then turned back on the wifi and viewed the image again as Revel was able to view the image in the full resolution. I hope that didn't sound to confusing. If you view your images in single loupe view this will cache the image for offline viewing. Granted its best to be connected to wifi as it does not take too long to download the images.
let me know if you have any other questions
Thanks
Scott -
MetaData For Database View Columns How ??
SELECT * FROM user_tabs_columns WHERE table_name = 'EMPLOYEES';
The above query will return column information like data_type, lenght etc for the columns in the EMPLOYEE table, how can one retrieve such information on the columns / fields in a view instead of a table. I have views built from several tables, and I use the data returned from quering the views as records displayed to the user in an AJAX application, using the data-grid widget in the said AJAX library. If the user has rights to edit the records, I need to use specific ajax widgets (like a date widget) to edit a field if the datatype information provided by the database is DATE or DATETIME, if the field is nullable, I can permit the user to enter nothing, and I can restrict input length to the lenght of the column. But since the record is spread across several tables and pulled out from a view, I therfore need a way to get the column information on the said view.
How can this be achieved.
Thanks.
Charles Odili.You should still be able to use the USER_TAB_COLUMNS view to obtain this information. I did a quick test below:
SQL> create view test as select * from all_objects;
View created.
SQL> select table_name,column_name from user_tab_columns where table_name='TEST';
TABLE_NAME COLUMN_NAME
TEST OWNER
TEST OBJECT_NAME
TEST SUBOBJECT_NAME
TEST OBJECT_ID
TEST DATA_OBJECT_ID
TEST OBJECT_TYPE
TEST CREATED
TEST LAST_DDL_TIME
TEST TIMESTAMP
TEST STATUS
TEST TEMPORARY
TEST GENERATED
TEST SECONDARY
13 rows selected.
SQL> spool off; -
Where can I find metadata for Power View reports created in sharepoint 2013.
I am looking for what I would assume is the sql server tables that would hold the MDX (DAX) Queries for the power view reports. Example my customers may create say 30 reports and I need to know quickly if an attribute I am changing is in those reports.
How can I find out what report(s) are using that attribute/measure? Not sure that it matters but using sharepoint 2013 on premise and connecting to Analysis Services (molap).
Ken CraigP.S. if this is still not making sense create a power view report in SharePoint from a SSAS cube. Save that power view report in SharePoint. The power view report should
have a couple of measures and 1 or 2 dimension. Open the report just to confirm it is saved correctly. Now go to SSAS and rename 1 of the measures or dimensions that you used, Save and rebuild your olap . If it’s a calculated measure
you just need to save olap. Now open your power view report and notice that that measure/dimension you changed is no longer in the report.
IN one hand it is great that reports do not error and break; however, on the other hand the users might not know what measure/dimension changed and then be lost/mad because the report no longer
works like they want. In my opinion it would have been better if the power view broke with an error message that it cannot load because measure x does not exist than to just load fine.
In any case I need a method to know when a dimension/measure is modified what reports are using it. Another example is this could even be a case where the dimension values are getting
modified and we need to potentially make a update to any power view/pivot using this dimension as a filter?
Ken Craig -
Can I create handouts for digital viewing during my presentation?
Does anyone know of an app or website where I can post handouts for my audience to view during my classroom presentation?
The common way to do this is to create PDF files of the handouts and use Preview or Adobe Reader to display.
-
How can I avoid polling for database alerts?
I am implementing a Java package that makes processing alerts from Oracle (the dbms_alert pl/sql package) easier than raw JDBC. This happens inside a servlet. My first problem is that when the servlet container such as tomcat asks the servlet to shutdown, choosing to stop listening for Oracle alerts appears to be impossible without polling Oracle for the alert events.
Specifically, I have a thread that is blocked on a call to dbms_alert.waitany. How can I wake this thread up and have it cleanly shut down? I've tried closing the JDBCConnection in the hopes it would receive a connection-closed exception which my thread could simply ignore if being asked to shut down. But the call to JDBCConnection.close() simply hangs. I've tried a few other tricks to no avail. Documentation I've studied does not discuss the problem at all.
The only "solution" I've found is to pass the dbms_alert.waitany a one-second timeout parameter when waiting for alerts. This makes the thread wake up every second, at which time it will usually just find that the timeout occurred and start waiting again. But this creates an opportunity for it to check an exit flag and terminated itself.
Aside from wasting some CPU cycles this has the serious downside that it results in a remote call to Oracle across the network every second! That will no-doubt aggravate various people in IT as a serious load and I'm not sure how to articulate a good defense.
I'm really hoping that there's some way to wake up my thread without having it wait for a timeout. Otherwise is this not a serious defect?
There are other use cases for my package that are stumped by the same root problem. If I want to register for a new alert, I'd like to wake up my blocked thread, have it make the registration call, then call dbms_alert.waitany again. But this too requires waiting for the thread to wake up based on the timeout and the resulting trade-off between wasting resources and delaying the registration - a trade-off that has no good answer.
Is there any way I can get the call to dbms_alert.waitany to unblock with an error code or exception so this impossible decision becomes irrelevant?
Thanks>
Specifically, I have a thread that is blocked on a call to dbms_alert.waitany. How can I wake this thread up and have it cleanly shut down?
>
You wake it up the way it is designed to be woken up: signal an alert from another thread.
That thread will 'wake up' when an alert is signaled. So when you want to shutdown set a 'shutdown' variable that the thread checks wheneve it wakes up.
Then use another thread to signal an alert. That alert will wake up your blocked thread, the thread will check the 'shutdown' variable and will take action based on the setting of that variable.
See the examples in the DBMS_ALERT section of the Oracle docs:
http://docs.oracle.com/cd/B28359_01/appdev.111/b28419/d_alert.htm
>
WAITANY Procedure
Call this procedure to wait for an alert to occur for any of the alerts for which the current session is registered.
>
You can register for your own 'JAVA SHUTDOWN' alert in addition to the alert your thread is now registered for. Then use the method I outline above to use the SIGNAL method to generate that 'JAVA SHUTDOWN' alert. That will wake your thread up so it can shut itself down. -
3 way table join for a view?
Hi,
I need to create a view comprising several complex queries (at least to me...). Below is an example where I have to do a three way table join, based on multiple columns from each table.
This is the data I need to get at:
table1."DISTRICT TYPE",
table1. "DISTRICT CODE",
table1."EO_NAME"
With the following constraints:
table1 joined with table2 via DISTRICT_TYPE and DISTRICT CODE
table2 joined with table3 via PRECINCT and PRECSUB
What is the best query to use in this situation? Or, is there a better alternative, considering I do have to create a view?
Thanks very much.This one really is a basic join question, and a quick perusal of the SQL Reference Manual, or any basic SQL book would provide an answer. However ...
Assuming your tables look like:
TABLE1
district_type
district_code
eo_name
TABLE2
district_type
district_code
precinct
precsub
TABLE3
precinct
precsub
other_stuff
then
SELECT a.district_type, a.district_code, a.eo_name,
b.precinct, b.precsub,
c.other_stuff
FROM table1 a, table2 b, table3 c
WHERE a.district_type = b.district_type and
a.district_code = b.district_code and
b.precinct = c.precinct and
b.precsub = c.precsub -
Can't find setting for IE10 Compatibility View in Group Policy Management Console.
Hoping this is easy.
I'm trying to use the Group Policy setting for Compatibility View under Computer Configuration/Administrative Templates/Windows Components/Internet Explorer and it is not there.
The domain controllers are 2008 Standard SP2, so not R2. We are using ADMX files from a central store.
If I open the local GPEdit on my Windows 7 workstation I can see the setting for Compatibility View but cannot see it using RSAT or on the domain controllers themselves.
How do I get this setting to appear so I can use it?
Thank you.
Kenny> If I open the local GPEdit on my Windows 7 workstation I can see the
> setting for Compatibility View but cannot see it using RSAT or on the
> domain controllers themselves.
Copy %windir%\policydefinitions from your win7 WS to the central store:
robocopy "%windir%\policydefinitions"
"\\%userdnsdomain%\sysvol\%userdnsdomain%\policies\policydefinitions" /s
Martin
Mal ein
GUTES Buch über GPOs lesen?
NO THEY ARE NOT EVIL, if you know what you are doing:
Good or bad GPOs?
And if IT bothers me - coke bottle design refreshment :)) -
Z Database view is not showing all the entries?
Hello
Last year I have created a Z table, say, its name is Z_TABL_1, its working fine, say, there is around 1000 entries in PRD, well
Last week I have created another 2nd Z table, its name is Z_TABLE_2, now it has 50 entries in PRD
In both tables the key field os the same (VISITOR_NUMBER) and there is only one key field in both tables, its the same
When creating the 2nd table I forgot to specify the CHECK table relationship in 2nd table refering 1st table, I mean, dependent table is 2nd whereas reference is 1st table
Now, I created a database view, say, my_db_view on these 2 tables.
When I opened this my_db_view in SE16, I expected 1000 (this 1st table count) entries, but am seeing just 50 (the 2nd table has only 50 entries) entries!!
Pls. let me know how can I view all the 1000 entries in SE16 for my_db_view?
Thank youHi,
in your DB view tables are joined and database views implement an inner join (you can check here: http://help.sap.com/saphelp_nw04s/helpdata/en/cf/21ecab446011d189700000e8322d00/content.htm), that's why the system extracts only 50 records.
It's not possible to have all the 1000 records using a database view.
Marco -
Creation of Database View , Projection View
Hi ABAP EXPERTS,
Can anyone plz send me the step by step creation of DATABASE and PROJECT VIEWS. Just steps by step explanation will do , screen shots will be more than appreciated.
Kind Regards,
Sunil Ranal.Database View (SE11)
Database views are implement an inner join, that is, only records of the primary table (selected via the join operation) for which the corresponding records of the secondary tables also exist are fetched. Inconsistencies between primary and secondary table could, therefore, lead to a reduced selection set. In database views, the join conditions can be formulated using equality relationships between any base fields. In the other types of view, they must be taken from existing foreign keys. That is, tables can only be collected in a maintenance or help view if they are linked to one another via foreign keys.
Check this link for database view creation.
http://help.sap.com/saphelp_40b/helpdata/en/cf/21ed06446011d189700000e8322d00/content.htm
Projection View
Projection views are used to suppress or mask certain fields in a table (projection), thus minimizing the number of interfaces. This means that only the data that is actually required is exchanged when the database is accessed. A projection view can draw upon only one table. Selection conditions cannot be specified for projection views.
Check this link for Projection view creation.
http://help.sap.com/saphelp_nw70/helpdata/en/cf/21ed20446011d189700000e8322d00/content.htm
Regards,
Maha -
Diff between maintence and database views
pls answer now,its urgent
Hi
Database Views
Data about an application object is often distributed on several database tables. A database view provides an application-specific view on such distributed data.
Database views are defined in the ABAP Dictionary. A database view is automatically created in the underlying database when it is activated.
Application programs can access the data of a database view using the database interface. You can access the data in ABAP programs with both OPEN SQL and NATIVE SQL. However, the data is actually selected in the database. Since the join operation is executed in the database in this case, you can minimize the number of database accesses in this way. Database views implement an inner join (see Inner and Outer Join).
If the database view only contains a single table, the maintenance status can be used to determine if data records can also be inserted with the view. If the database view contains more than one table, you can only read the data.
Database views should be created if want to select logically connected data from different tables simultaneously. Selection with a database view is generally faster than access to individual tables. When selecting with views, you should also ensure that there are suitable indexes on the tables contained in the view.
Maintenance View:
Maintenance views offer easy ways to maintain complex application objects.
Data distributed on several tables often forms a logical unit, for example an application object, for the user. You want to be able to display, modify and create the data of such an application object together. Normally the user is not interested in the technical implementation of the application object, that is in the distribution of the data on several tables.
A maintenance view permits you to maintain the data of an application object together. The data is automatically distributed in the underlying database tables. The maintenance status determines which accesses to the data of the underlying tables are possible with the maintenance view.
All the tables in a maintenance view must be linked with foreign keys, that is the join conditions for maintenance views are always derived from the foreign key You cannot directly enter the join conditions as for database views.
There are some restrictions for the attributes of the foreign keys with which the tables in a maintenance view can be linked
A standardized table maintenance transaction is provided (SM30), permitting you to maintain the data from the base tables of a maintenance view together.
Maintenance mechanisms, like screens and processing programs, must be created from the view definition with the transaction Generate Table View (SE54). This makes it possible to create easy-to-use maintenance interfaces in a simple manner.
If it is helpful rewards points
Reagards
Pratap.M
Maybe you are looking for
-
Multi devices- use one iTunes account
I have a macbook, ipad and 2 iphones, can I use the same itunes account or all devices?
-
Mac Osx 10.5.2 sudden crash
Recently changed to 10.5.2 from Panther (Needed to upgrade to use Quark 7).I was using the mac and suddenly this black mist descends from the top covering the screen with a message in 4 languages saying I had to restart. This time it restarted but I
-
Can't get my iPhone5S to show up in My Computer (Windows 7)
Can't seem to get my iPhone5S (OS 7.1.1, left 120MB storage) to show up in My Computer (Windows 7) for file transfer. Whereas another iPhone5S can show up in my PC's My Computer; and my own iPhone can show up on another PC's My Computer. My iPhone
-
How do I create bookmarks? Did I buy the wrong software?
How do I create bookmarks?
-
MSCOBJCL.sql runs for long while applying patch 6678700 for 12.1.1 upgrade
DB:11.2.0.3.0 OS: IBM AIX Power system 64 bits 6.1 Hi All, MSCOBJCL.sql runs for long while applying patch 6678700 for 12.1.1 upgrade. We are upgrading from 11.5.10.2.0 to 12.1.1 Could anyone please share why the script takes so much of time to run?