Need to enable Oracle Role

Post Author: GaryI
CA Forum: Data Connectivity and SQL
I am using Crystal Reports for Visual Studio 2005 and an Oracle database. From my C# application, I am dynamically setting the location of the database to use in the report with the code fragment seen at the end of this post.
My problem is..... The user I am instructing Crystal to connect with needs to enable an Oracle role before the tables needed to generate the report can be seen. For security reasons, the database administrators do not wish to have this role enabled by default when the user logs on. Crystal is creating a new connection to the database using the server/userid/password information I supply, but the required role is not enabled and therefore the tables for the report are not visible and the report fails.
So.... how do get Crystal reports to see the tables? I can think of two ways.
1) Somehow convince Crystal reports to enable the role when it connects to the database. I have not discovered a way to accomplish this. Is there a way to do this?
2) My application already has a connection to the database with the required role enabled. Now if I could just get Crystal reports to use this database connection instead of creating its own, my problem is solved. But..... I cannot find a way to tell Crystal to use an existing database connection that I pass in. Is there a way to do this?
Or does anybody have more ideas?
The code fragment mentioned above................
            ReportDocument rd = new ReportDocument();
            rd.Load(filename);            foreach (Table t in rd.Database.Tables)            {                TableLogOnInfo inf = t.LogOnInfo;                ConnectionInfo connect = inf.ConnectionInfo;                connect.ServerName = serverName;                connect.DatabaseName = database;                connect.UserID = userID;                connect.Password = pwd;
                t.ApplyLogOnInfo(inf);            }            crystalReportViewer1.ReportSource = rd;

Post Author: Jagan
CA Forum: Data Connectivity and SQL
I think that security/DBAs need to provide a solution but I usually find guidance is required too. e.g. would security allow a new role that only has select access to the tables (or even only to necessary tables) that could be granted to a user by default? Are you using an existing user? Could you use a 'reporting only' user? If a role (even a new, read-only role) can't be defaulted, would the DBAs be prepared to write code that only grants it to the reporting user when it logs on from a recognised production machine and/or from a recognised client? etc. etc.
I think you need to discuss possible solutions with them and see what they will allow/support.

Similar Messages

  • How to not display nodes in a tree if Oracle roles are NOT used?

    How to not display nodes in a tree if Oracle roles are NOT used?
    We don't use Oracle DB roles to grant users access to Forms from the menu. We use a template and role system of our own. Basically a few tables with templates and roles.
    We want to convert our normal Forms menu to a tree menu and one of our key requirements is that when the tree is populated ONLY nodes with programs (i.e. forms) he has been granted to execute is shown.
    Since we don't use Oracle Roles how to do this in a tree?
    I created a function to show/hide LEAF nodes, BUT problem is that there are sub-menu nodes showing even if the leaf-nodes under it has not being displayed. My function has suppressed it.
    My tree query is like this:
    SELECT
         t.status, LEVEL, t.label, t.icon, t.node VALUE
    FROM
         tma_tree_menu t
    WHERE
    tma_authenticate_sys_chk_role(USER, t.node) = 1
    CONNECT BY
         PRIOR t.node = t.master
    START WITH
         t.MASTER IS NULL
    ORDER SIBLINGS BY
    t.position
    The tma_authenticate_sys_chk_role will return 1 only if the user has access to the form under that node.
    I tried the FTree functions in Forms but even that has nothing.
    Any help would be greatly appreciated.
    Edited by: Channa on Mar 17, 2010 6:49 AM

    Would you share the source code? I guess what I need is how exactly you retreive the user credentials from the DB table and set that boolean variable.
    and then how to condition it in UIX?

  • Need to enable html snippet insertion in CS4

    The insert html snippet option is disabled on my insert menu and I need to enable it. Please help. Thanks.

    Hi,
         The website administrator has to enable the permission for inserting HTML snippet, for your role, for the Insert HTML Snippet menu to be enabled. If you are the website administrator, you can follow these steps to enable the Insert HTML snippet menu item:-
    Launch Contribute and select Edit -> Administer Websites, and select your website.
    The Administration dialog for your website will be shown.
    Select a role (for ex, Administrator), and click Edit Role Settings button.
    The Edit Role Settings dialog will be shown.
    In this dialog, select Editing from the left panel, and check the check box for 'Allow HTML Snippet Insertion'.
    For more information, click the following link http://blogs.adobe.com/contribute/2009/06/are_you_a_power_user_try_using.html
    Hope this helps. Cheers.

  • Need to enable HTML snippet in CS5

    I need help enabling the HTML snippet in with my CS5 version of contribute.  Our website was created by a firm that used CS3.  They no longer use this tool or have access to contribute. I am set up as a administrator, but it appears I don't have full administrator rights.  How can I gain these if the orginial administrator no longer has access?   Please HELP!

    1) FTP to your site in the server.
    2) Navigate to the cthub****.csi file under _mm folder
    3) Edit the file and make the value <allow_html_snippet_insertion value='true' />
    This will enable the html snippet option for your site for that particular role.

  • Urgent : Can BPEL humantask link up with Oracle roles & responsibilities?

    Hi,
    We are designing a bpel human task workflow for an approval process for an Oracke application. The requirement is such that the approval responsibility in the current system is available to only certain users and the list of these approvers keeps changing. Is there a way to link up the bpel humantask workflow with the oracle roles & responsibilities so that the bpel processwoul send email notifications only to those people who have the aaproval responsibility?? I havent been able to find any documentation on this.All documents just mention that the approvers list is picked up from LDAP or OID. We do have OID as well as Oracle HR installed but Im not sure how to sync the data between the fnd_user having a specific role & responsibility to the OID data.
    I think this would be the most common scenario for most people and Im sure there should be a way to link the fnd_user in Oracle apps to the OID --does anyone have any information on this? We need to finalize the design asap and any pointers will be very helpful for me.
    Thanks!

    Theoretically you should be able to delete the default partition... The errors in the log don't look related to that anyway...
    It seems like you have soa and bpm on the same server... You may try to untarget bpm* from soa_server...
    Other than that... You probably have to start thinking in recreate your domain (or restore from backup)...
    Cheers,
    Vlad

  • Enable Oracle XA Transaction Support

    Hi everybody. First of all, sorry for my terrible English.
    I've been some problems using COM+ with Personal Oracle 8i (8.1.7.0.0) and SQL Server 2000 and Windows 2000 for development only.
    I have one method that inserts the same data both SQL Server and Oracle (the tables and procedures definitions are identical) and I'm utilizing GetObjectContext method to commit or abort the transactions (the COM component were made in VB). Out of COM+ environment the method works 5x5. The error message is: "-2147168229 - Cannot connect to the transaction manager or the transaction manager is unavailable."
    Checking Microsoft documentation I found an article (http://support.microsoft.com/support/complus/mtsandoracle.asp) telling me to "Enable Oracle XA Transaction Support" so I could have transactional work with Oracle and COM+. OK, just fine.
    Does anyone knows how could I manage it? I am not a DBA nor I know one (an Oracle DBA), but I shall explain to my team how program 2 phase commit between Oracle and SQL Server.
    Thanks in advance, and forgive me the size of this "book". I should be shorter next time...
    null

    Vivek, thanks for the help.
    I am utilizing these versions of Oracle Products:
    Personal Oracle8i Release 8.1.7.0.0 - Production
    With the Partitioning option
    JServer Release 8.1.7.0.0 - Production
    Net8 Client 8.1.7.0.0
    Oracle Services for MTS 8.1.7.0.0
    Oracle Provider for OLE DB 8.1.7.2.0
    The provider I first tried was MSDAORA with no success and then ORAOLEDB with no success too.
    But those entries in registry that you sent me were all with Microsoft dll`s. I will try again tomorrow and send you the results
    Thank you again
    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Vivek Raja:
    Renato, firstly what is the interface you use to access Oracle from your COM+ components? If it is OLEDB which provider is in use - MSDAORA or ORAOLEDB? What are the versions in use 8.1.6 or 8.1.7? If you are using MSDAORA as the provider then you will need to add the following key to your registry:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSDTC\MTxOCI.
    Under this key add the following registry string values:
    OracleOCILib - oraclient8.dll
    OracleXALib - oraclient8.dll
    OracleSQLLib - orasql8.dll
    If you are using ORAOLEDB as the provider install Oracle Services For MTS 8.1.7. The error you receive seems to point to the fact that the "Distributed Transaction Coordinator" Windows2000 Service is not running.<HR></BLOCKQUOTE>
    null

  • Need info regarding Oracle UCM Accounts and Security Groups behaviour

    Need information regarding Oracle UCM Accounts and Security Groups behaviour.
    Oracle UCM version: 11.1.1.5.0
    Steps:
    1. Log in with "weblogic" user and created a content with id "content1"
    2. Applied "@acc1(R)" and "TestGroup1" to the cotent created in step 1
    3. Log out
    4. Log in as "acc1user1", the user is not able to see the "content1"
    5. Log out
    6. Log in as "role1user1", the user is not able to see the "content1"
    Account and Group information:
    1. User "acc1user1" is part of "@acc1(R)"
    2. User "role1user1" is part of "role1(R)" and is mapped to "TestGroup1" in UCM
    Expected:
    Both "acc1user1" and "role1user1" should be able to see "content1" as they have at least Read permission.
    Please help me understand why the users are not able to see the content.

    ACLs, like Accounts, are optional security setting which may add on some extra functionality to mandatory security groups. Likewise, the resulting permission is taken as an intersection of SG and ACLs.
    But in the second part the number of set of users is huge (approx say 600)I don't get this completely. Does this mean that those "sets of users" (users who see the same data) are distinct and that there is 600 of such groups?
    If you read thoroughly the manual I sent earlier, there is a recommendation that there should be maximum 50 security groups, and you should use accounts, should this number be exceeded. This means you could have all the documents in one security group (and have one common role with Read permission), but combine it with accounts. ACLs are not a good choice here - their performance and manageability is much worse than of accounts. ACLs are primarily used if you expect security settings to change during the lifetime (e.g. a project manager adds temporarily rights to access an item to another user, and revokes it when the user finishes his or her work).
    Note that accounts as well as permissions of users within accounts can also be mapped externally (from LDAP/AD) and it usually follows some kind of org chart.
    I'd feel more comfortable not to speak about users, security groups, roles, etc., but about some real-life objects and scenarios.

  • Enable Oracle dbms scheduled jobs

    Hi Gurus,
    I need to enable a set of dbms jobs which got transferred as a result of exporting a 9i database and importing to 11g database.
    They were running as scheduled jobs in old legacy database.
    I can see them in SQL Developer under DBMS jobs but don't know how to enable them
    Please help. My current Oracle version is 11g.
    Thanks
    Amitava.

    amitavachatterjee1975 wrote:
    Hi Gurus,
    I need to enable a set of dbms jobs which got transferred as a result of exporting a 9i database and importing to 11g database.
    They were running as scheduled jobs in old legacy database.
    I can see them in SQL Developer under DBMS jobs but don't know how to enable them
    Please help. My current Oracle version is 11g.
    Thanks
    Amitava.
    post SQL & results which show any of the jobs actually got transferred.
    post SQL & results that show they are not scheduled or running now.

  • RE:Oracle Role manager

    HI
    can any one explain me in brief about Oracle Role Manager and where Service Oriented Architecture comes in to picture.
    Thanks

    All I know abt ORM is,
    1)for a typical ORM engagment you need to first need to do a top dpwn analysis to identify commonly used roles and privileges and translate them into Business Roles and IT Roles respectively.
    2) Load Hierarchy data, clean the data through ORM reporting
    3) Use Role Discoverer to mine the roles fed to it.
    4) this will then translate into a role catalogue which you need the business to agree upon and sign off on.

  • Maximum enabled 148 roles exceeded

    Dear Experts
    Hi
    please help me out from the error "Maximum enabled 148 roles exceeded"
    i am using Oracle 9i Database
    regards
    pakistan

    Hi,
    unix>oerr ora 28031
    28031, 00000, "maximum of %s enabled roles exceeded"
    // *Cause:  The user attempted to enable too many roles.
    // *Action: Enable fewer roles.This is not the total roles in the databases but the roles enabled for a particular user.
    Regards
    Anurag Tibrewal.

  • I have a Mac OS 10.6.7 running Firefox 4.0.1. What happened to the enable cookies in Preference/Privacy. It's gone I need to enable. Thanks.

    Question
    I have a Mac OS 10.6.7 running Firefox 4.0.1. What happened to the enable cookies in Preference/Privacy. It's gone and I think I need to enable. I can't log on to Citibank to pay my bills using Firefox or Safari for that matter. Citibank says cookies must be enabled to access their on-line bank. I wonder if this is the problem...cookies that is?

    Yes, I found the cookies, and thanks for taking the time to help out. I called Citibank. They told me that they will not support Firefox or Safari for Mac because our user group is too small for them and the expense too high. The person that I spoke to said in the past, Firefox has worked with Citi, but that was just by accident. At the moment they have no plans to help Mac people using the latest OS log onto their website or enable programs like my Quicken or Mint.com to access. They don't work anymore either. I think all the problems happened after the last OS update.

  • Need help in oracle data recovery

    Friends ,i need help in oracle data recovery.
    I had an oracle 8i database running on windows.
    For some reason Windows operating system crashed.
    It is not booting up.
    I dont have current backups.But my database physical files are in the disk.
    Controlfile,datafiles and redo log files are there.
    Is there any way I can recover my database?
    Please help in this issue.
    regards
    Ajith

    HI citrus,
    thanks for the reply.
    I have installed database 9i on the same PC after O/S reinstallation.
    You are saying that ,I need to keep oracle root folder same as that of my old installation ,and copy control files,redo log and data files in exactly same folders as that of old database,and then start the database?
    thank you for your patience and support.
    regards.,
    Ajith

  • I have a plug in called unity player 3.4 do I need it enabled, same thing with google update 1.3.21.69 on laptop running windows 7

    I just bought my laptop & was checking add-on for updates all of the other plug ins updated, & I've installed all up to date, but not sure, I have no knowledge about if I even need to enable the- Unity Player 3.4.0.27242, ( I'm not a gamer) nor do I know what the Google update 1.3.21.69 is use for. Or can it be disabled as well?

    For unity player you can see there:
    http://en.wikipedia.org/wiki/Unity_%28game_engine%29
    http://unity3d.com/webplayer/
    i think you can disabled if you are not a gamer
    For Google update look here:
    http://forums.mozillazine.org/viewtopic.php?f=7&t=841905
    thank you
    Please mark "Solved" the answer that really solve the problem, to help others with a similar problem.

  • Need to enable admin acct with user permission..

    I have change the acct type and made ID that is disable an admin.. is the only admin acct in my desktop... when ever i tried anything with admin permission. the AUC will pop up but no where to enter my admin Password... run as does not work either.. because
    the only admin acct is disabled..... please help... and I have the computer to login automatic on start...

    Hi,
    Since all administrator account was disabled in your system, there is no way to run a program that need admin rights.
    You do need to enable administrator account in Computer Management.
    Roger Lu
    TechNet Community Support

  • I used to be able to copy and paste images from the internet into keynote slides and pages. Now when I copy and paste all I get is an empty  box. My iskysoft iTube studio has also stopped downloading videos. Is there an extension I need to enable?

    I used to be able to copy and paste images from the internet into keynote slides and pages. Now when I copy and paste all I get is an empty  box. My iskysoft iTube studio has also stopped downloading videos. Is there an extension I need to enable? Any ideas

    Try dragging the image to the desktop, then drag the image to the slide you want it on

Maybe you are looking for

  • IRecruitment Vacancy Approval is not found in Approval Process Setup

    hi my ebs is 12.1.1 After Setting up AME for iRecruitment, i get problems as follows: 1: Approvals Management Business Analyst -->Business Analyst Dashboard i find 'iRecruitment Vacancy Approval' is not found in Approval Process Setup. 2:when i click

  • Steps to perform MT 605 with delivery number

    Hello all we have some stocks hanging in "stock in transit" for material. these where getting moved from plant to plant. i see a 603 Movement type done and from UNR of plant 1 to stock in transit of plant 2 has happened. i guess to complete the steps

  • My location bar has dissappeared, what do i do?

    i cant enter email addresses or pressthe "back" button.

  • Subfolders under inbox - Good or Bad?

    mrbostn wrote: In my case, we have some users with 15K items plus. Those with no subfolders, sorting is slow. Those with subfolders, sorting is fast (less items to sort) They also claim searching is quicker with subfolders. Subfolders have no effect

  • RFBIBL00 File issue

    Hi Forums! I am not sure what the issue is here but, when I run the RFBIBL00 program to consume the file I created I am getting this error? funny thing is I have not changed my code since this has happened? I am running this for tcode FBS1. FB145