Sdo_relate in alternate user with views.

Hello,
I am using Oracle 8.1.7.2 and creating a view as follows.
CREATE OR REPLACE VIEW REPORT_STREETINFO AS
SELECT DT.ID, MKT.CODE MKT_CODE, PRIM_NAME,
NVL(MIN(DECODE(ST.FROMNRLE, 0, NULL, ST.FROMNRLE)),0)
MIN_FROMNRLE,
MAX(ST.TONRLE) MAX_TONRLE,
NVL(MIN(DECODE(ST.FROMNRRI, 0, NULL, ST.FROMNRRI)),0)
MIN_FROMNRRI,
MAX(ST.TONRRI) MAX_TONRRI,
MKT.NAME MKT_NAME, MKT.NAME2 MKT_NAME2, MKT.STREET MKT_STREET,
MKT.CITY MKT_CITY,
MKT.ZIP MKT_ZIP,
MKT.PO_BOX MKT_POBOX
FROM STREETINFO ST, DISTAREA DT, MARKET MKT, DISTAREA_WA
DTWA,WALKERAREA WA
WHERE PRIM_NAME IS NOT NULL AND
(ST.FROMNRLE != 0 AND ST.TONRLE != 0 OR
ST.FROMNRRI != 0 AND ST.TONRRI != 0) AND
DTWA.DISTAREA_ID = DT.ID AND
WA.WASID = DTWA.WASID AND
MKT.SRNO = DT.MARKET_ID AND
MDSYS.SDO_RELATE(ST.GEOLOC, WA.GEOLOC, 'mask=
(inside+coveredby+on)
querytype=window') = 'TRUE'
GROUP BY PRIM_NAME, MKT.CODE, DT.ID,
MKT.NAME, MKT.NAME2, MKT.STREET, MKT.CITY, MKT.ZIP, MKT.PO_BOX
ORDER BY PRIM_NAME
I grant the rights to this above view to an alternate user. When
I fire a query like
SELECT PRIM_NAME FROM REPORT_STREETINFO WHERE ID = 22;
from the owner of the view I have no problems but when I fire
this query from alternate user I get error
ORA-03113 end-of-file on communication channel.
I checked out the documentation which states from physical
failure but this is definately not the case.
Any help on this problem will be appretiated.
Amol.

Hello Ravi,
I am posting a spool file which shows the steps I have followed
and error that I get. I have taken care with the grants from
mdsys for the SDO_RELATE and all the other operators.
DEV>SHO USER
USER ist "GEODIS"
DEV>CREATE OR REPLACE VIEW REPORT_STREETINFO AS
2 SELECT DT.ID, MKT.CODE MKT_CODE, PRIM_NAME,
3 NVL(MIN(DECODE(ST.FROMNRLE, 0, NULL, ST.FROMNRLE)),0)
MIN_FROMNRLE,
4 MAX(ST.TONRLE) MAX_TONRLE,
5 NVL(MIN(DECODE(ST.FROMNRRI, 0, NULL, ST.FROMNRRI)),0)
MIN_FROMNRRI,
6 MAX(ST.TONRRI) MAX_TONRRI,
7 MKT.NAME MKT_NAME, MKT.NAME2 MKT_NAME2, MKT.STREET
MKT_STREET, MKT.CITY MKT_CITY,
8 MKT.ZIP MKT_ZIP,
9 MKT.PO_BOX MKT_POBOX
10 FROM STREETINFO ST, DISTAREA DT, MARKET MKT, DISTAREA_WA
DTWA,WALKERAREA WA
11 WHERE PRIM_NAME IS NOT NULL AND
12 (ST.FROMNRLE != 0 AND ST.TONRLE != 0 OR
13 ST.FROMNRRI != 0 AND ST.TONRRI != 0) AND
14 DTWA.DISTAREA_ID = DT.ID AND
15 WA.WASID = DTWA.WASID AND
16 MKT.SRNO = DT.MARKET_ID AND
17 MDSYS.SDO_RELATE(ST.GEOLOC, WA.GEOLOC, 'mask=
(inside+coveredby+on)
18 querytype=window') = 'TRUE'
19 GROUP BY PRIM_NAME, MKT.CODE, DT.ID,
20 MKT.NAME, MKT.NAME2, MKT.STREET, MKT.CITY, MKT.ZIP,
MKT.PO_BOX
21 ORDER BY PRIM_NAME
22 /
View wurde angelegt.
DEV>SELECT PRIM_NAME FROM REPORT_STREETINFO WHERE ID = 108;
PRIM_NAME
Altenhagener
Weg
Alter
Zollweg
Am
Knill
Am
Kroog
Am
Lehmberg
Babenstieg
Bargteheider
Strasse
Bekassinenau
Blomeweg
Boltenhagener
Strasse
Bublitzer
Strasse
Carlssonweg
Farmsener
Zoll
Finkenfurth
Grvmitzer
Weg
Grundherrenstrasse
Herwardistrasse
Hohenkamp
Hoher
Berg
Im
Wiesengrund
Jacobshagener
Weg
Kohvvedstrasse
Kvsliner
Strasse
Krohnsheide
K|hlungsborner
Strasse
Nienhagener
Strasse
Pfefferstrasse
Rahlstedter
Stieg
Rahlstedter
Weg
Raschweg
R|genwalder
Strasse
Rummelsburger
Strasse
Sandkule
Scharbeutzer
Strasse
Sierksdorfer
Strasse
Stargarder
Strasse
Thiessenweg
Timmendorfer
Stieg
Timmendorfer
Strasse
Treptower
Strasse
Wolliner
Strasse
41 Zeilen ausgewdhlt.
DEV>GRANT SELECT ON REPORT_STREETINFO TO PWEIH;
Benutzerzugriff (Grant) wurde erteilt.
DEV>CREATE SYNONYM PWEIH.REPORT_STREETINFO FOR
GEODIS.REPORT_STREETINFO;
Synonym wurde angelegt.
DEV>CONN PWEIH/PWEIH@DEVELOP
Connect durchgef|hrt.
DEV>DESC REPORT_STREETINFO;
Name Null? Typ
ID NOT NULL NUMBER(10)
MKT_CODE VARCHAR2(10)
PRIM_NAME VARCHAR2(40)
MIN_FROMNRLE VARCHAR2(40)
MAX_TONRLE NUMBER
MIN_FROMNRRI VARCHAR2(40)
MAX_TONRRI NUMBER
MKT_NAME VARCHAR2(40)
MKT_NAME2 VARCHAR2(40)
MKT_STREET VARCHAR2(40)
MKT_CITY VARCHAR2(40)
MKT_ZIP VARCHAR2(9)
MKT_POBOX VARCHAR2(40)
DEV>SELECT PRIM_NAME FROM REPORT_STREETINFO WHERE ID = 108;
SELECT PRIM_NAME FROM REPORT_STREETINFO WHERE ID = 108
FEHLER in Zeile 1:
ORA-03113: Unerwartetes \bertragungsende in Kommunikation
DEV>SPOOL OFF;
Regards,
Amol.

Similar Messages

  • With SSMS Can a user with VIEW DEFINITION permissions on a procedure, see its source?

    Is there a way directly within the GUI itself to see the definition of a procedure if a user has VIEW DEFINITION permissions (as well as EXECUTE), or will they need to use sp_helptext?

    Yes, there is a way. Right-click procedure from Object Explorer and select Script from the context menu.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • SharePoint 2013 allows downloaded even for users with "view only" permissions

    I have a new on premises SharePoint 2013 server and assigned a single user "view only" rights to a document library. In the "permission levels" window, this permission is described as "Can view pages, list items,
    and documents. Document types with server-side file handlers can be viewed in the browser but not downloaded."
    Once I gave the user that permission, I noticed he was able to view documents in the library but the "but not downloaded" part does not seem to be working. The user can still download documents to his local desktop and SharePoint does not prevent
    it. The "download a copy" option appears and the user can use it.
    My goal is to make all documents in this library such that users can only view them in the browser and not download a local copy. How I do that?
    Thanks for your help.

    Not entirely positive :-) 
    However, you have no server-side handlers in place today without WAC installed, so that portion of the View Only permission wouldn't be applicable.
    Note that WAC must be installed on its own server and if your SharePoint server is extranet or public facing, it needs to have a valid, public SSL certificate. Also, WAC should always be run over SSL regardless if it is public facing or not as the token
    sent between the SharePoint server and WAC is the same as having a username and password for the user making the request.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • How to associate users with views

    Hi,
    We are working on SRM 5.0 and CCM 2.0, and we have created views for the procurement catalog and have published the catalog.
    Problem: When we click on the procurement catalog in SRM we want the view associated to the logged in user to show up.
    Kindly suggest how to achieve the same.
    Thanks,
    Swetha

    Hi Swetha,
    In the user master (SU01) under the Personalisation tab, there's a task called "Assign Catalog Views to Roles". Click on the "/CCM/VIEW_ASSIGNMENTS" and you will see the views you created in CCM2.0. There you can select the appropriate view for your user.
    Regards,
    Paula.

  • Users with View Only Privilege

    Hi,
    I currently have an application for a team of 20 people to create, update and delete records in multiple tabs, pages, etc. There is a request from the team to grant 5 outside users a "Read-only" version of the application in order for them to browse and research what type of data the team has gathered.
    Is there an easy way to do this in the 'Manage Application Express Users"? I see there is a pre-existing Group called "Viewers". When I created a new user in the Viewers User Group and I log in, I can still create, edit and delete.
    Thanks in advance,
    Romi

    As far as I know there are no pre-created user groups in Apex. That aside, there are no privileges assigned to an Apex group. The developer still has to make objects (buttons in your case) conditional on the user belonging to the group.
    Sima

  • HT2688 Working on a single computer with multiple users, I have set things up to allow each user to view and listen to the others' music libraries under the "Shared Library" function.  Can you then connect an iPod touch and copy music from a shared librar

    Working on a single computer with multiple users, I have set things up to allow each user to view and listen to the others' music libraries under the "Shared Library" function.  Can you then connect an iPod touch and copy music from a shared library?

    Was your wife logged into the libray at the time you tried to log in? I have had a similar problem and it was because another user was logged into the library when I attempted to. I got the permission denied banner.

  • Users with read access to the site unable to view Managed Metadata Navigation

    Hi everyone,
    I created a Managed Metadata service and created group, term-set and terms
    I gave read access to users
    I set up navigation to use Managed Navigation
    I am logged in as farm admin and able to view the navigation when i browse site. But user are not seeing navigation.
    One thing i noticed is when i give users full access or designer access to site they will be able to see the navigation. but i don't want to give users full access or designer access to the site.
    How can users with read only access to site can view Managed Metadata Navigation...Please help?

    Hi Sunil,
    Have you given your users permissions to actually read the MMS data from the service application?
    http://technet.microsoft.com/en-us/library/ff625176.aspx covers permissions on the MMS.
    Regards
    Paul.
    <<edit>> On reflection you might be hitting the issue in this Stackexchange post..
    http://sharepoint.stackexchange.com/questions/75636/permissions-and-managed-metadata-in-navigation Is yours behaving the same way?
    Please ensure that you mark a question as Answered once you receive a satisfactory response. This helps people in future when searching and helps prevent the same questions being asked multiple times.

  • Why users with rights defined as View cannots see the data of the form ?

    Hi,
    I have a nice form page. My application has an authorization scheme with an authentification function : return acl_custom_auth. It is working well. I have defined users with Edit, View and Admin rights. Unfortunately on a form, if the user is defined as "View" he cannot see the data, he only sees the item but their content is not diplayed. I don't understand why. I would like him to see the data.
    The authorization scheme of the page is "Access control -view" as well as the items of the page.
    Do you have any idea of what is going wrong here ?
    Thank you for your kind help !
    Regards,
    Christian

    Another thing that can be done though mon tech-savy people may not know about it.
    Locate a group of PDF's and select at least 5-6 of them as a Group.
    hold down Option key while click on file menu
    Click on Get info.
    One window will open for the group.  in Mountain Lion (OSX.8.2) the term will change to Show Inspector.
    click on the  button next to Open With.
    choose either Reader or Acrobat.
    just bellow is a question Use Acrobat (or Reader) to open all files of this type, Click on it and choose yes.
    Make sure you have a mix of Adobe PDF's and Preview PDF/s for  this to work. If it wasn't good for opening other Type Files I'd compress Preview and throw the original away. It’s a nusiance.

  • Have conflicting views from Apple Specialists; I'm ready to buy my 1st Mac, however work with a PC user with MS Publisher files a lot.  Can Pages open, edit and resave them?  Or, do I have to buy Publisher software for Macs?

    Have conflicting views from apple Specialits; I'm ready to buy my 1st Mac. However, I work with a PC user with MS Publisher files a lot. Can Apple PAGES open .pub files, edit and resave them?  OR, do I have to buy Publisher software for Macs?  if yes to buy, any recommendations?

    If you want to switch from PC to Apple I recommend a programm like Parallels.
    It has a tool (believe its called transporter) which runs on your current PC and creates a file (big) which is a "virual machine". It is a 1:1 copy of your PC which will run under parallels on your iMac.
    You will be running your "old" PC as it was under MAC OS X while you run MAC applikations etc at the same time.
    This is how I made the transition to Apple.

  • How could it be possible to completely restrict other users to view any sites through firefox browser with the help of password ?

    I want complete control of firefox browser for my computer.
    For example:
    There is a similar feature in Internet Explorer which is called 'Content Adviser'.
    To restrict others for viewing sites through Internet Explorer here is what has to be done:
    1. Click to open Internet Explorer.
    2. Click the Tools button, and then click Internet Options.
    3. Click the Content tab, and then, under Content Advisor, do one of the following:
    *Click Enable. If you are prompted for an administrator password or confirmation, type the password or provide confirmation.
    *If you've previously enabled Content Advisor, click Settings, and then type the supervisor password. If you are prompted for an administrator password or confirmation, type the password or provide confirmation.
    4. To allow others to view restricted content, click the General tab, and then select the Supervisor can type a password to allow users to view restricted content check box.
    5. To allow others to view unrated content, select the Users can see websites that have no rating check box, and click OK.
    6. If a supervisor password has not previously been set up for Content Advisor, you will be prompted to create one.

    Looks like verdana is selected to 'off' in font book. Not sure if this could be the reason as to why i'm experiencing problems.

  • ALV view : Problem with user defined views

    Dear Experts,
    We are facing a problem pertaining to user defined views for a ALV table that we have in SAP eRecruiting application in webdynpro ABAP. The problem is as follows.
    There is a candidate application ABC & only ONE person can edit this at a time.In this application ABC there is a ALV table.
    If the user clicks on this application & navigates to the ALV,this ABC application is in normal/edit mode(no one else has opened this ). So, the user can make changes in ABC. In the ALV, he can click on the 'settings 'button and save the STANDARD view as his own user defined view(by adding or removing columns).
    If the user opens the application ABC in display mode(implying that someone else has alraedy opened ABC for editing), when i navigate to the same ALV,the user CANNOT see the views which were saved in the edit mode.Only the standard view is displayed. The user however has the option to again freshly save a view.
    The views created by a user for this ALV should be seen irrespective of the application being opened in normal or display mode.
    To add to the confusion, this problem is occuring only in some systems & not in others. There is atleast one system where the views are displayed correctly to the user.
    On debugging, the table wdy_conf_user has config ids as different where the user views are stored separately for display & edit mode.
    In systems where the user views are displayed correctly, the config id is one & the same ensuring that the user can see all his views irrespective of the mode of the application.
    Any thoughts on how we can rectify this?
    sorry for the long & tedious explanation
    Thanks in advance,
    Sowmya

    See
    michaels>  select xmlquery('declare function local:test_function($namecmp as xs:string?, $inputtype as xs:string?) as xs:string?      
                        return {$inputtype}
                     local:test_function("1","2")' returning content) o from dual
    Error at line 5
    ORA-19114: error during parsing the XQuery expression:
    LPX-00801: XQuery syntax error at '{'
    3                       return {$inputtype}
    -                              ^
    michaels>  select xmlquery('declare function local:test_function($namecmp as xs:string?, $inputtype as xs:string?) as xs:string?      
                        $inputtype
                     local:test_function("1","2")' returning content) o from dual
    O   
    2   
    1 row selected.

  • There are multiple users with the same display name

    Hi,
    We have a user and when she get an item assigned to her she sees the following alert:
    "There are multiple users with the same display name USERNAME and at least one of them does not have read permissions to some of the files"
    Now I looked in the database and when I run the following query with the username:
     SELECT     
         [ProviderDisplayName]  
        ,[DisplayName]  
        ,[HasDisplayName]  
        ,[Domain]  
        ,[AccountName]  
        ,[UniqueUserId]  
        ,[LastSync]  
      FROM [Tfs_Configuration].[dbo].[tbl_Identity] where displayname like '%USERNAME%'  
    Then I get 2 same usernames back, How can I get rid of one of them ? When I access TFS trough the portal I only find 1 occurence of this user.
    We use VS2013 and TFS2013 update 4
    Best regards

    Hi DSW,  
    Thanks for your post.
    In your query result, please check if these two users have the same Account Name. if they are two different Account Name in result, it indicate there’s two users have the same display name in your AD, please check that two users’ information in
    your AD. We suggest change one user’s display name in AD.  
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to allow normal/regular users to view a report

    I have been compiling reports in MS SQL 2012 Reporting Services.  the URLs is
    http://test_report:80/reports. I have no problem with viewing the reports because I am an admin but normal users are getting access denied.  this is how I assign permission to user.  Open Reporting Services
    Config Mnger --> Connect --> Click on Report Mnger URL --> click on
    http://test_report:80/reports --> Open a another folder called Reports.  In this "Reports" it has many reports.  --> Click on Folder Settings --> Click on Security --> Click on "New Role Assignment"  -->
    In "Group or user name" text box, I entered user network computer login name, such as: domain_name\bambi --> Ensure "Browser" is checked --> Ok.  I send this weblink to users but they cannot open it because of either access denied
    or not have permission. 
    http://myservername/Reports/Pages/Report.aspx?ItemPath=%2fCorp_Reports%2fReportOfTimeInLieu.  I am unsure why users cannot view my reports.  Please let me know if I had missed any step(s).  I use the Report Builders in Reporting Services
    Config Mnger to compile reports.  Regards,

    so this web link will lead me to Home page:
    http://myservername/Reports/Pages/Folder.aspx.
    at the home page I have folder called Reports: 
    http://myservername/Reports/Pages/Folder.aspx?ItemPath=%2fReports&ViewMode=List
    inside  Reports folder, I have multiple reports, ie: 
    http://myservername/Reports/Pages/Report.aspx?ItemPath=%2fReports%2fReportOfTimeInLieu,
    http://myservername/Reports/Pages/Report.aspx?ItemPath=%2fReports%2fReportOfVacationTime,
    http://myservername/Reports/Pages/Report.aspx?ItemPath=%2fReports%2fReportOfSickDays,
    http://myservername/Reports/Pages/Report.aspx?ItemPath=%2fReports%2fReportOfConferenceDays
    On Home page I click on Folder Settings --> Security --> New Role Assignment --> Group or User name: domainname\bambi --> Role = Browser
    On Home page I click on Site Settings --> Security --> New Role Assignment -> Group or User name: domainname\bambi --> Role = System User
    On Home page I open Reports folder --> Site Settings --> Security --> new Role Assignment --> Group or User name: domainname\bambi --> Role = System User
    Is this how I enable user bambi to 1) enable to open Reports folder and also browse for reports in Reports folder  2) enable user bambi to execute all reports in Reports folder.
    Problem:  user bambi was able to open Reports folder and see all reports saved in it; however, bambi gets a blank page upon selecting a report and open/run it.  bambi should see company logo and report name.  It was a blank white page.
    What did I do incorrectly?
    Thanks,

  • PDF addresses not longer load and display PDF in Firefox and solutions suggest to other users with problem DON'T WORK (work fine in Chrome and Safari)

    This is an ongoing problem with other users. When putting a PDF in address window of Firefox and clicking go to address FIREFOX WILL NOT LOAD AND DISPLAY THE PDF. This problem has come up in questions from other users on your site. NONE OF THE SUGGESTED SOLUTIONS WORK! (trying either the Firefox PDF viewer or the Acrobat viewer as default viewer)
    I am using Firefox 23.0.1 (as some of the other users with the same problem). This was not a problem in the past with Firefox. Safari and Chrome continue load and display PDFs just fine from their addresses. This is a big problem as I now have to inform people who want to view my PDFs NOT TO USE FIREFOX BUT TO USE SAFARI OR CHROME.

    It appears that a link to a PDF on an internet page will not download in Firefox either!
    I went to this page:
    http://www.nasa.gov/connect/ebooks/earth_art_detail.html#.UjYEzrwsU08
    and tried to download the PDF link at the bottom of the page (Download: PDF 11.3 MB) It didn't work! Nothing happens. Tried it in Safari and it worked flawlessly.
    I have a PDF file of my work in the public_html folder on my URL. I give the address generated by that file to people who want to view my work---this works perfectly in Safari and Chrome. As to your other question, can't bookmark it if I can't get to it in Firefox.

  • Automate the creation of Active Directory users with organization/address information

    On one of our Domain Controllers we regularly have to create new users with fully populated organisation/address information, as they use a server-side application which appends email signatures at the end of all of their emails created from this information.
    At the moment we have to fill this information out manually and it can sometimes cause inconsistencies if the information is not uniform or is typed incorrectly.
    Is there any way to automate this/do it in bulk?

    This is another Powershell script that can be used:
    http://www.wictorwilen.se/how-to-use-powershell-to-populate-active-directory-with-plenty-enough-users-for-sharepoint
    Note that you have two ways to do that:
    Create a new User account Provisioning script and include the Street update as part of it
    Have a daily scheduled script that will run against your users OUs and update the Street address for user accounts having it wrong or missing
    From my point of view, option 2 would be the best as it will make a Bulk update and Bulk correction if required.
    This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

Maybe you are looking for

  • I am gifting my macbook air to a family member....

    As I do not want him using my apple ID, if I add a new admin user can i link that to a new apple ID and then delete my old user account? I would re-install OS X so everything of mine is wiped but I will not have access to an internet connection to do

  • How to change a massive amount of foreign keys?

    Hi to all! I'm a newbie here, and I hope I'll find a solution to my problem... Well, I have to create a copy of row within the same table, with same values except of primary key. That part is ok. Then, I have to change values of that primary key (fro

  • Photoshop CS2 and "Invalid Serial Code" Problem

    Well, I recently upgraded from Windows XP to Windows 7. Tonight I tried to install my Adobe Creative Suite CS2 (just the Reader and PS CS2)... I got the error "The serial code is missing or invalid and Photoshop must exit." And it did. So, I removed

  • Album's hide feature must be password protected

    Hide feature of album must be password protected.. As currently via navigating to the hidden folder its very easy to retrieve & view the hidden images.. or either the hidden folder be password protected.. To view the content the user must enter the p

  • MSS: Eventing with Employee Profile/Search

    Hi All, I've followed this blog to event with employee profile iview. In the end, the application does pick the employee selected from Employee Search table, but the issue is, on selecting another employee, the application doesnt pickup the right per