even select (user name, profile, role, table_name, table privilege)

Hello everyone

1 - I don't know how to merge the two qys to refer to in the same setting (user name, profile, role, table_name, table privilege)

IM using the dba_users users and sight of paintings: see next qry

SELECT Nvl(US. IDUSUARIO, DELE DE.) USERNAME USER).
US. DESCRIPCIÓN NAME,
STATUS OF ACCOUNT_STATUS,
OF THE. PROFILE
CREATED FECHA_CREACION
USERS.
SYS. DBA_USERS OF
WHERE THE. USERNAME IS US. IDUSUARIO (+)
UNION
SELECT Nvl(US. IDUSUARIO, DELE DE.) USERNAME USER).
US. DESCRIPCIÓN NAME,
STATUS OF ACCOUNT_STATUS,
OF THE. PROFILE
CREATED FECHA_CREACION
USERS.
SYS. DBA_USERS OF
WHERE THE. USERNAME = UPPER (US IDUSUARIO)
BY NAME;

This snippet of me, USER, his TRUE NAME, STATUS, PROFILE, CREATION_DATE
JP01 Johan Pena OPEN DEFAULT 07/05/2010

-------------------------------------------------------
On the other hand:
------------------------------------------------------
Select * from role_tab_privs

This extract me, ROLE, TABLE_NAME, and PRIVILEGE
S/N SELECT TABLE1
INSERT TABLE 1 DBA
DELETE S/N TABLE2

1 - I don't know how to merge the two qys to refer to in the same setting (user name, profile, role, table_name, table privilege)

2 - I want something like that.

USER, ITS TRUE NAME, STATUS, PROFILE, ROLE OF CREATION_DATE, TABLE_NAME PRIVILEGE
JP01 Johan Pena DEFAULT OPEN 07/05/2010 DBA SELECT TABLE1
JP01 Johan Pena, 07/05/2010 OPEN by DEFAULT DBA TABLE1 REMOVE

ECT Ect. Ect.

who can HELP me

Hello

Welcome to the forum!

Whenever you have a question, please post CREATE TABLE and INSERT statements so people can recreate your example of table. (You don't have to post instructions CREATE TABLE to see themselves in the dictionary of data, such as ROLE_TAB_PRIVS, but do not post exactly what you see in these views).
Anyway, after the accurate results of your choice in the sample data that you give.
Without it, people will always try to help you as much as they can, but it probably won't be much.

I don't know what you want. You want a result set with the same number of lines of output that your second request (the one with ROLE_TAB_PRIVS), but with all the data from the first query added to each line? If so, just cross join of two results. It will probably be easier if you make the UNION in a subquery, first:

WITH     union_data     AS
(
     SELECT      Nvl (US.IDUSUARIO,DU.USERNAME)      AS USUARIO,
     US.DESCRIPCION NAME,
     ...
     UNION
     SELECT      Nvl (US.IDUSUARIO,DU.USERNAME)      AS USUARIO,
     US.DESCRIPCION NAME,
     ...
     WHERE DU.USERNAME      = UPPER (US.IDUSUARIO)
)
SELECT     *
FROM       union_data          u,
       role_tab_privs     r
ORDER BY  u.name
;

I suspect that you don't need really to a UNION, but it depends on your data and the exact results you want from these data.

The result set will have u * traits r, where u is the number of rows in union_data, and r is the number of rows in the query based on tole_tab_privs.
If you<=1, then="" order="" by="" clause="" will="" not="" actually="" do="">
If you > 1, the results will make any sense?

Tags: Database

Similar Questions

  • ORA-01921: role name 'MGMT_USER' is in conflict with another user name or role

    Hello
    10 g R2 on Win 2003 Server creating the DB control using the command line:

    EMCA - config dbcontrol db-rest create

    I have this error:

    CREATE THE ROLE MGMT_USER
    *
    ERROR on line 1:
    ORA-01921: role name 'MGMT_USER' is in conflict with another user name or role

    My questions are:
    1. how to know users who have this role?
    2. work near I can bring this role?

    Thank you very much.

    user522961 wrote:
    1. how to know users who have this role?

    SELECT username, granted_role
      FROM dba_role_privs
      WHERE role_name = 'MGMT_USER';
    
  • Display the names of users available and selected user name

    Hello world!

    I'm building a custom LabVIEW TestStand for operator interface. I decided to use LabView controls and indicators instead of those provided by TestStand himself.

    Now... There are several tabs in the application window. At startup, the only active tab is the 'Login' one. In this tab, there are: a list box (in which I want to display all available user names) and a control of the chain (in which I want to display the user name that was selected by clicking in the drop-down list).

    Is someone can help me this?

    OK, I solved it! See the attached vi.

  • Need your advice - the user name and roles

    We are the OEM deployment within our Organization.  There is a special requirement on business unit to have several names for the same person, with different roles.    Which means 'employee_1' will be 3 id for several roles such as employee_1_Administrator, employee_1_Operator, employee_1_Monitor!    Is - this recommended by Oracle? or it companies set up such a system? (I know it's technically feasible, but I'm confused as it is a best practice).

    Any suggestions or pointers are really appreciated.

    Vijay

    No, it sounds like a recipe for chaos for me I recommend several ROLES by user.  But if you have several users, they will constantly be logged in and out based on what targets that they manage and which kind of defeated the purpose of having a "Enterprise Manager" tool in my opinion.

    The way in which users EM are roles assigned, allows you to provide multiple roles functionality that can easily be revoked should change responsibilities.

    So create 3 roles:

    Administrator

    Operator

    Monitor

    Give the 3 roles employee_1

    I'd be interested to hear the conditions for this... but the only case that I heard in other companies is for a small number of people who have administrator-level privileges.  UserA was UserA account + userA_Admin.  Must not use their account "admin" for normal each daily tasks (management db, work planning, etc.) but only when necessary for higher level privileges.   Again, it is possible, but difficult.   Only 1 of about 40 clients that I worked with it.

  • Select user name password from dba_users shows WHITE for password?

    Hi all

    I'm a little stumped on this one. I'm on an instance of oracle 11G. I have
    would select username and password from dba_users table, then
    I could get the password and make the old trick where you save original
    password, change it... and restore it returns with the clause of"values."
    alter user.

    However, when I did select the dba_users table, instead of
    showing me the password string... I show a white!

    Is it something again to 11G or am I missing something here?

    A little more information.
    This instance was recently moved here. It was originally an instance of 10G, and a data pump export was carried out of the old machine. The 11G instance has been created, and the export of complete datapump, was imported to the new server. It was essentially an upgrade of 10G and 11G during the move.

    No known problems to access the scheme in question. All this came, however, with someone trying to run a script... and the password they had would not work. I tried the password I had on this schema in the file... it just wouldn't. I was going to do the trick dba_users to change passwords around to try things, and then all this happened.


    Thank you in advance,

    Cayenne

    Yes, that's correct. You can check sys.user$ for it in 11g

    Refer to the following to learn more:

    http://laurentschneider.com/wordpress/2007/08/the-password-is-not-longer-displayed-in-dba_userspassword.html

  • Get the user name in the select LOV

    Hello!

    I wonder if its possible to get the user name of the currently logged in user and pass it as a variable in a select statement used in a dynamic LOV in Oracle AS Portal?

    What I'm trying to do is pull all values in a table that corresponds to the current name of user to user on a portal report

    (as an approximate example)

    Select the color from mytable where username = 'whatever is the user name would be here. "

    And then the current user would get a list of values to select based on the values entered in this table.

    The issue I'm having is determine how to complete part "regardless of the user name is would be here" with the actual recorded in user name (or even if its possible). I know that on the portal, we can do #USER. FULLNAME # to display their username, is there a similar "variable", can be used to get the user name for a call to sql LOV?

    I can make it work if I statically resolve the user name to a particular value (ex: where username = "Joe.Hacker"), but I'm not sure if theres value a variable or a bind (for lack of better term) to enter the name of the user on the fly... dynamically.

    Portal.wwctx_api.get_User can be used in your report of Portal SQL query to get the user_name of the currently connected user portal. For more information about wwctx_api, see 10.1.2 portal API documentation or 10.1.4 at http://www.oracle.com/technology/products/ias/portal/html/plsqldoc/pldoc1012/index.html or http://www.oracle.com/technology/products/ias/portal/html/plsqldoc/pldoc1014/index.html

  • My opening of user account and profile my c: drive user names do not match. Multiple user profiles.

    RE: Vista Home Premium 32 bit W/sp2 installed. FYI - recently got a new hard drive and a new installation of the Vista operating system.

    I'll try to keep this as simple as I can, so bear with me. I have my c: drive under users 4 ads, which contain the normal operating system files. My guest account is disabled. I am the admin on the admin account, which is the only active account running at the moment. I deleted an administrator account and a user account standard and kept my 1 active admin account. I wish that were the only account on this computer as I'm the only one to use it in the future. Profiles are always on my c: drive and I would like to delete and rename my admin account to show as such. I changed my admin account name and thought I would just remove all from drive c: under users.except my account. My account name is easy to change but the profile on the disc is the former name of admin account and there is no option to change. When I open windows Explorer to my documents folder the name changed to the new name. When searching in each profile, I find that the folders and files I added are all in the old profile folder and partially in the new profile. Some are just empty and they appear in the other. Its a dam mess! How, or can I combine all my folders and files under just the profile of a user that will be used? I thought I would copy everything from the old to the new admin account, but windows will recognize even these files under a new account name? I'm also afraid to change my password to prevent implementing locked out my own computer. I read all kinds of horror stories on the web about it. How can something seemingly so simple be such a Pandora's box. I have not deleted anything yet but profiles of user accounts. Now my system is stable and works very well. No problem to speak of, but as time go on and Add / Remove programs and move things around I'll never know where to find anything. I would like to put something in its place and be there when I need it. I think that there may be problems with the standard accounts and admin / permissions or something but I do not have the ability to copy or to move things and losing important data, until I hear something concrete. I hope someone can help and thank you.

    As always - changing the user name does not change the name of the folder.  If you want to get the name of the folder and the user name corresponds to-creating a new user with the name that you want to name the user name and the folder and copy the data you want to keep the new user.  Then delete the old user and all files/folders via the user control panel.

    Really - * you * is the realization of a complicated.

    (1) create the * new * user account from scratch with the username you want.  This will make the user name and the corresponding folder.  (Of course - you may need to change the username on a current user if t ever get the one you want first.)

    (2) copy the Documents, photos, etc. you want from the old account to the new.

    (3) via the user control panel, remove whatever you do not want users.  Don't do this manually.  You have no reason to go in the C:\USERS\ yourself.  If you do, * you * are causing you pain.

    (4) you do really want two administrative level accounts in case you lose access to the other.  It's just the wise thing to do.

    Windows 7 is a multi-user system - even if you are the only physical user.

  • User name is not filled are in the table of user tracking.

    Hi all

    I use LMS 4.2 I activated the user tracking and I get the ip address, MAC address, host name in the table of user tracking. But enter username in the user tracking is not be filled. I even enabled get the username by guests in the areas of host NTS and ND in the acquisition of user tracking settings.

    Is there something else I have to configure in LMS in order to get the names of users in tracking user table?

    any comments will be appreciated,

    Thanks in advance,

    Rgds,

    Selva

    You must utility utility that integrates with LMS with AD to feed it with user names. Utility is a utility that allows to collect the usernames of PDCs Active Directory and Novell servers.

    To do this, you need to install utility in main domain controllers Windows and Novell servers. You can also install utility in an Active Directory server.

    For more details, see:

    http://www.Cisco.com/en/us/docs/net_mgmt/ciscoworks_lan_management_solution/4.2/user/guide/Admin/ut_du.html#wp1187865

    -Thank you

  • How to prevent a user not to access a table of perticular? This user has select any table privilege. Please help me solve this problem.

    Hello

    How to prevent a user not to access a table special (xxx)?

    This user has SELECT a TABLE ALL privilege. I need to restrict to only not for access xxx to the table, but this table is not existed in its own schema.

    But there is access able as select * from schema.table;

    How can I revoke this privilege.

    Please help me solve this problem.

    Thank you

    Lacombe

    1623609 wrote:

    How can I select privilege on specific tables at the same time?

    I want to create a new user and grants the right to select for tables, except a table (xxxx).

    It will be possible without the keystone of the database?

    One way, in several sql

    coil doit.sql

    Select ' grant select on ' | owner: '. ' || table_name |' to someuser. »

    from dba_tables

    where

    spool off

    Then sanity check "doit.sql" and execute it.

  • using the function - how to use the values of the input variables on the table select statement names

    Hello community, I have a problem when creating a function. The purpose of this function is to check the table of weather gave yesterday or not. We must check this on different tables on different sachems. We are creating a function with input variables.

    CREATE OR REPLACE FUNCTION IN_SCHEMA.IS_YDAYDATA_TO_TABLE

    (

    in_schema IN VARCHAR2,

    in_tablename IN VARCHAR2,

    in_datefield IN VARCHAR2,

    )

    RETURNS INTEGER

    AS

    -Declaring variables

    v_is_true INTEGER.

    BEGIN

    SELECT

    CASE

    WHEN MAX (in_datefield) = TRUNC(SYSDATE-1)

    THEN 1

    ON THE OTHER

    0

    END

    IN

    v_is_true

    Of

    in_schema.in_tablename

    ;

    RETURN v_is_true;

    END;

    /

    When creating, I got error: [error] ORA-00942 (44:19): PL/SQL: ORA-00942: table or view does not exist

    How to use the values of the input variables on the table select statement names?

    Hello

    Here's a way you can use dynamic SQL statements for this task:

    CREATE OR REPLACE FUNCTION IS_YDAYDATA_TO_TABLE

    (

    in_schema IN VARCHAR2,

    in_tablename IN VARCHAR2,

    in_datefield IN VARCHAR2,

    in_first_date DATE DEFAULT SYSDATE - 1,.

    in_last_date DATE by DEFAULT NULL

    )

    RETURNS INTEGER

    AS

    -IS_YDAYDATA_TO_TABLE returns 1 if in_schema.in_tablename.in_datefield

    -contains all the dates in the in_first_date of the range through included in_last_date

    - and it returns 0 if there is no such lines.

    -If in_last_date is omitted, the search only the data on in_first_date.

    -If in_first_date is omitted, it defaults to yesterday.

    -Time parts of the in_first_date and in_last_date are ignored.

    -Declaring variables

    sql_txt VARCHAR2 (1000);

    v_is_true INTEGER.

    BEGIN

    sql_txt: = 'SELECT COUNT (*).

    || 'FROM ' | in_schema | '.' || in_tablename

    || 'WHERE ' | in_datefield | ' > =: d1'

    || «AND» | in_datefield | '< >

    || 'AND ROWNUM = 1';

    dbms_output.put_line (sql_txt |) '= sql_txt in IS_YDAYDATA_TO_TABLE");  -For debugging

    Sql_txt EXECUTE IMMEDIATE

    IN v_is_true

    With the HELP of TRUNC (in_first_date) - d1

    TRUNC (NVL (in_last_date

    in_first_date

    )

    ) + 1                -- d2

    ;

    RETURN v_is_true;

    END is_ydaydata_to_table;

    /

    DISPLAY ERRORS

    If you must use dynamic SQL statements, put all the SQL statement in a single string variable, such as sql_txt in the example above.  In this way, you can easily see exactly what will be executed.  Comment out the call to dbms_output under test is completed.

    Try to write functions that will address not only the question that you have now, but similar questions that you may have in the future.  For example, now that interest you only to the verification of the data of yesterday, but later, you might want to check another day or range of days.  The above function combines the convenience of a function simple (looks like yesterday data if you don't tell him otherwise) with the power of a more complex function (you can use the same function to check any day or range of days).

  • How to extract the selected ESXi host user name and the password in the web client of vSphere?

    Hi all.

    I'm developing a plug-in for the web client to vsphere. I want to communicate with the selected host of ESXi in my Java Service Layer and who needs the host user name and password.

    I don't know how to search the Flex user interface layer.

    ESXi credentials are not stored in the user interface layer, you must use the vSphere SDK Web Service on the coast of java.  See vim.host.ConnectInfo.

  • ((Password of SQL DEVELOPER user name? -access TABLES APEX))

    How do you get tables APEX SQL DEVELOPER?

    What should I use as a name of USER and PASSWORD
    inside SQL DEVELOPER?
    ____________________________________________



    Hello

    I installed on my APEX machine.

    WINDOWS 7 PROFESSIONAL 64-BIT.


    I also installed:

    ORACLE XE

    and

    SQL DEVELOPER.


    I have applications that I created in the APEX
    with different paintings.

    ________________________________________

    Question:

    **********************************
    How can I access my APEX tables of
    within SQL DEVELOPER?

    Should what USER name and PASSWORD I use?
    **********************************


    I can do this with
    HUMAN RESOURCES

    SQL DEVELOPER USERNAME = HR
    PASSWORD = HR

    It works very well.
    ..................................................................

    But what of my own TABLES APEX
    I created inside my own workspace
    inside the APEX?

    For example:

    CONNECT TO APEX:

    http://127.0.0.1:8080 / apex /.

    If my

    APEX DAVID_WS = WORKSPACE

    SCHEMA = DAVID_SC

    APEX USERNAME = DAVIDAPEX_UN

    APEX PASSWORD = DAVIDAPEX_PW

    ..............................................................

    LOGIN TO THE ADMIN OF THE APEX:

    http://localhost: 8080/apex/apex_admin

    APEXADMIN USERNAME = DAVIDADMIN_UN

    APEXADMIN PASSWORD = DAVIDADMIN_PW

    ..............................................................


    So, given the 6 above
    NAMES and PASSWORDS above:


    SQL DEVELOPER USERNAME =?

    SQL DEVELOPER = PASSWORD?

    ..............................................................

    Thanks a lot for your help!

    David

    ________________________________________________

    .

    Published by: DAVID888 on February 3, 2011 23:53

    You tables apex are in the schema attached to the workspace of your applications.

  • When you connect, SQL Developer, you use the schema to username and password
  • When you connect using your developer account, you use the Apex workspace account details (but when change the DB using the workspace that it accesses the schema using the schema and password you had linked to the workspace)

    Hope that's clear.

  • Diagram of authentication with user name / password stored in the Table of the App

    Hi all

    So far, all of our applications have used sign-ON, but I have now spread to allow users from outside of our Organization (and so not in our system OID) to use a specific application.

    So, I have a table in my application that stores the user name and password. I have a function that compares the input of user name and password at this table and returns a Boolean result. This function is then entered in my scheme of authentication as the authentication function.

    This works well and is causing no problem. The problem is that the password is stored and verified to plain text - not very good lie.

    How can I do to change the password of my table column, pages which allow the password to be updated, and authentication which checks the user name / password to use a form of encryption?

    Also, do I need to worry about all the other fields (Page Sentry function to check the authentication session, prerequisite process etc.) that the authentication scheme can offer me - or can I just leave these virgins as they are now.

    If someone can give me a complete "out-of-the-box" solution that would be wonderful - otherwise a good hard pusj in the right direction would be much appreciated.

    Thank you very much
    Martin

    Hello Martin,

    If you discover here the application of Discussion Board, you should find the information you need. This application stores an encrypted version of the password of the user in the table.

    http://www.Oracle.com/technology/products/database/application_express/packaged_apps/packaged_apps.html#Forum

    Good luck
    Don.

    You can reward this answer by marking as being useful or correct :)

  • How can I change my user name for the profile of apple

    Hi mac tribe is anyway to have the username my apple changed something else?

    If you are referring to your user name of communities of Apple Support, I ask the moderators of Apple for help, but may take several days or more.

  • Schema authorization for users stored in a database table?

    Hello!

    I'm trying to find how to make a diagram of authorization for users of the database.

    I did one of my current application authentication scheme, I named it "Authentication for database accounts", and the type of plan is 'Database accounts'.

    A word of explanation:_
    I have a table in my database, named "USERS". Inside this table, I have the following columns:
    -USERNAME (NUMBER)
    -USERNAME (VARCHAR2 (50))
    -PASSWORD (VARCHAR2 (50))
    -E-MAIL (VARCHAR2 (200))

    For that matter, I'll take a user from the example. The user name is the USER and the USER password. Email and username don't matter here, but let's say that the user ID is 1.

    What I want:_
    When you go into the application and you are prompted to connect (page 101), then I want a user to be able to connect with the data that has been stored in the USERS table.
    So, on the login page, the user will enter USER as user name and USER password. The authorisation scheme must verify whether or not this user name and password match the data in the USERS table. If so, he must sign the user with the credentials entered by the user (who are the USERS and USER).
    I also want the username to be stored somewhere in the application (if possible, in a part of the application).

    How can I do this? I've never done a prior authorisation scheme... I'm not too good with PL/SQL either, but I'm working on this part.

    Any help is greatly appreciated.

    Hi Magali,.

    In your existing structure of the table, add a column more called ROLE as MANAGER, CLERK etc then you can create the authorization on the basis of the ROLE not not based on the individual user

    Select your application and then go into shared component
    under Security, select schema permission and create

    Step 1: create the authorization scheme
    (1) create the authorization scheme = zero
    name 2) = IS_MANAGER / / the name of
    schema type 3) = exists SQL Query
    (4) SQL Query is 1 select table_name from where upper (username) = upper(:APP_USER);.
    or if you have the role of your table then try this
    (4) SQL Query is 1 select table_name from where = 'MANAGER' ROLE and upper (username) = upper(:APP_USER);.
    (5) identify error message appears when the regime violated = your error message.

    your authorization scheme is now ready.

    Step 2: assign this regime to the components of the page

    modify any component of your page like region, button, article page etc...

    where you will find the guarantee under what you have permission regime selectlist, than choose any schema that you want to apply.

    Permission schema = IS_MANAGER / / that I had created in example above

    For tabs
    change your tab, then you have permission and do the same thing as above.

    In this way, you can create a permission scheme and assign to the components page etc...

    Hope this will give you an idea on the authorization scheme

    Thank you
    Jitendra

Maybe you are looking for