Users and SELECT GRANT

Hello.

Thank you for reading my post.

Can take you a look at what I've done?

---------------------------------------------------------------------------------------------------------------
SQL > connect sys as sysdba
---------------------------------------------------------------------------------------------------------------
SQL > CREATE TABLESPACE tbp
DATAFILE 'c:\app\oracle\thepath\tbp.dbf '.
SIZE 1000M
DEFAULT STORAGE INITIAL (50M
NEXT 50 M
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0);
---------------------------------------------------------------------------------------------------------------
SQL > CREATE ROLE rol;
---------------------------------------------------------------------------------------------------------------
SQL > GRANT CREATE SESSION, CREATE TABLE TO rol;
---------------------------------------------------------------------------------------------------------------
SQL > CREATE USER IDENTIFIED BY usr usr
TABLESPACE default tbp
TEMPORARY TABLESPACE thetemp
QUOTA UNLIMITED ON tbp;
---------------------------------------------------------------------------------------------------------------
SQL > GRANT rol to usr;
---------------------------------------------------------------------------------------------------------------
SQL > CREATE USER IDENTIFIED BY usr2 usr2
TABLESPACE default tbp
TEMPORARY TABLESPACE thetemp
QUOTA UNLIMITED ON tbp;
---------------------------------------------------------------------------------------------------------------
SQL > connect usr
---------------------------------------------------------------------------------------------------------------
SQL > CREATE TABLE radios (name varchar2 (20) varchar2 (20)) frequency;
---------------------------------------------------------------------------------------------------------------
SQL > INSERT INTO radios that have VALUES ("radio1", ' 15515.55' ");
---------------------------------------------------------------------------------------------------------------
SQL > GRANT SELECT ON radios to usr2;
---------------------------------------------------------------------------------------------------------------
SQL > connect usr2
---------------------------------------------------------------------------------------------------------------
SQL > SELECT * FROM radios;
Select * radio
*
ERROR on line 1:
ORA-00942: table or view does not exist
---------------------------------------------------------------------------------------------------------------


And indeed:
---------------------------------------------------------------------------------------------------------------
SQL > select * from user_objects where type_objet = "TABLE";
no selected line
---------------------------------------------------------------------------------------------------------------


Don't you see what is my problem?
I wish "usr2" could have "SELECT" success on table "radio".
Can you explain to me what's wrong with my reasoning?

Thank you and best regards,
--
Lmhelp
[Database 11g Enterprise Edition Release 11.1.0.6.0 http://Oracle]

Select * from usr.radios;

You must use schema_name. to access the object object_name.

Concerning
Asif Kabir

3 (3 pending)
-Mark your answer as correct/useful.

Published by: asifkabirdba on December 8, 2009 17:17

Tags: Database

Similar Questions

  • Select grant to user only to some columns. Is this possible?.

    Good night:

    I learn about the roles and privileges.

    I tried to limit the right to select on a table for only some columns of it.
    Unfortunately, it does not work.

    GRANT select (employe_id, last_name, job_id)
    ON hr.employees
    To Usuario_2;

    It is an ORA-00969: falta the word clave market (ON the keyword is missing)

    Surprisingly, it does not work with updates.

    Update (employe_id, last_name, job_id) GRANT
    ON hr.employees
    To Usuario_2;

    "Treated phrase."

    Could someone tell me if it is possible access of the users with 'select' only some columns do not use views? If its possible. What I am doing wrong?

    Greetings

    You can't give Annie with specific column. You can do so only to updating, inserting, and references.
    Other ways is to use the DPV or views (but SPV is not the XE version)

    You can read this topic: GRANT SELECT on the selected columns

    Edited by: AndyPol 2010-02-01 23:48

  • Object grants to users and roles

    A question about the Oracle grants. Searched and found wires that are close, but not exactly what I'm looking for.
    I'm on an Oracle 10 g Enterprise Edition (64-bit) database running on Sun Solaris 5.10

    We have a test database (say TEST1) having 2 schema SCHEMA1 and SCHEMA2. These patterns have nearly 2000 items in each of them.
    Then we have a different database (say TEST2) with the same 2 schemas with the same name and containing as many objects.

    My goal is to export these two patterns of TEST1 and import them into TEST2. By doing this, I chose the path is, am I completely drop every single object from the 2 diagrams in TEST2. And then, do an import. I do import with grants = y option enabled.

    The dilemma I am, is that, although the DDLS objects are identical between SCHEMA1 and SCHEMA2 TEST1, SCHEMA1 and SCHEMA2 TEST2 respectively, users on the databases are different. Of course, I like to keep all subsidies of the object to other users in TEST2 after my import just the way which is prior to importation. So, looking for a way to pre-generate a script before the Tomb object so that I can just run the script and retrieve all my grants do lose I. as...
    GRANT SELECT ON TEST2.table10 to USER01;
    GRANT INSERT ON TEST2.table10 to USER02.
    GRANT INSERT ON TEST2.table20 to USER02;...

    (I really don't like if the TEST1 grants is imported when you import, thus introducing unnecessary grants... wanted to just make sure that TEST2 does not lose a thing)

    Another round here, is that we also have a good amount of roles that have received subsidies for SCHEMA1 and SCHEMA2 of TEST2 database objects. How to generate a script that has something like...

    GRANT SELECT ON TEST2.table1 to ROLE1.
    GRANT INSERT ON TEST2.table1 to ROLE2.
    GRANT INSERT ON TEST2.table2 to ROLE2;...

    Thank you

    You can start from these scripts:

    SQL> grant select on a.t13 to b;
    
    Grant succeeded.
    
    SQL> select 'grant ' || privilege || ' on ' || owner || '.' || table_name || ' to ' || grantee || ';'
      2  from dba_tab_privs
      3  where owner = 'A'
      4  /
    
    'GRANT'||PRIVILEGE||'ON'||OWNER||'.'||TABLE_NAME||'TO'||GRANTEE||';'
    ------------------------------------------------------------------------------------------------------------------------------
    grant SELECT on A.T13 to B;
    
    SQL> create role role1;
    
    Role created.
    
    SQL> grant insert, delete on a.t10 to role1;
    
    Grant succeeded.
    
    SQL>  select 'grant ' || privilege || ' on ' || owner || '.' || table_name || ' to ' || role || ';'
      2  from role_tab_privs
      3  where owner = 'A'
      4  /
    
    'GRANT'||PRIVILEGE||'ON'||OWNER||'.'||TABLE_NAME||'TO'||ROLE||';'
    ------------------------------------------------------------------------------------------------------------------------------
    grant INSERT on A.T10 to ROLE1;
    grant DELETE on A.T10 to ROLE1;
    

    With greetings
    Krystian Zieja

  • When I open the Task Manager and select "Show processes from all users" there are 2 files virus csrss.exe?

    original title: virus csrss.exe?

    I use Vista Home Premium.  When I open the Task Manager and select "Show processes from all users" there are 2 files csrss.exe.  I learned that this indicates that I was infected by a virus.  Is this the case?

    Hi Julie,.

    Did you the latest changes on the system?

    Csrss.exe is Client/Server Runtime Subsystem.  All the Microsoft system has file csrss.exe running in the Task Manager, but it is likely to be infected by others. If it uses a lot of time processor and extremely abnormal in activities in the Task Manager, you can run a scan of the system security.

    You can read the following article to download the Microsoft Safety Scanner and perform a full scan on your computer.

    Microsoft safety scanner

    Note: When you perform the analysis, there are chances of losing the data that you can take a backup of important data before performing analysis.

    Hope this information is useful.

  • When one of my users start CC and select applications, nothing is displayed, only the arrow circling. What is c?

    When one of my users start CC and select applications, nothing is displayed, only the arrow circling. What is c?

    It is resolved, they did not have local Admin rights.

  • creation of user and grant privileges

    I ask each of you to help me to solve my problem. I want to create a user in a form and to grant privileges when I am logged in as system.
    Please provide syntex
    Thanks in advance

    Published by: user4480557 on June 3, 2010 12:32 AM

    You can use the FORMS_DDL built-in to create the user.

    FORMS_DDL ('create user identified by bar foo');

  • 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.

  • No line selected even if SELECT granted.

    I have a vision I created OEM 12 c owned by SYSMAN.  The view is as follows:

    create or replace view chk_dbmango as

    Target_name SELECT LOWER (a_size.target_name),

    tphost. HOST_NAME,

    tpba.business_area,

    TPD.contact,

    tpapp.application,

    tpenv. Environment,

    ROUND (AVG (a_size.size_gb), 2) SIZE_GB.

    ROUND (AVG (a_size.used_gb), 2) USED_GB.

    ROUND (AVG (a_size.size_gb - a_size.used_gb), 2) FREE_GB.

    ROUND (AVG ((a_size.used_gb * 100) / DECODE (a_size.size_gb, 0, 1, a_size.size_gb))) USED_PCT

    FROM (SELECT t.target_name,

    t.target_guid,

    SUM (d.tablespace_size) / 1024 / 1024 / 1024 size_gb,.

    SUM (d.tablespace_used_size) / 1024 / 1024 / 1024 used_gb

    Sysman.Mgmt$ db_tablespaces d, sysman.mgmt$ target_type t

    WHERE (t.target_type = "rac_database"

    OR (t.target_type = "oracle_database"

    AND t.TYPE_QUALIFIER3 <>'RACINST'))

    AND d.target_name (+) = t.target_name

    AND t.metric_name = 'tbspAllocation. '

    AND (t.metric_column = "spaceAllocated")

    T.target_name, t.target_guid, t.metric_column) a_size,.

    (SELECT name AS host_name,

    target_guid

    OF sysman.mgmt$ target_properties

    Property_name WHERE = "ComputerName") tphost,.

    (SELECT name AS business_area,

    target_guid

    OF sysman.mgmt$ target_properties

    Property_name WHERE = "orcl_gtp_line_of_bus") tpba,.

    (SELECT name AS the contact,

    target_guid

    OF sysman.mgmt$ target_properties

    Property_name WHERE = "orcl_gtp_contact") TPD.

    (SELECT name as the application,

    target_guid

    OF sysman.mgmt$ target_properties

    Property_name WHERE = "orcl_gtp_comment") tpapp.

    (SELECT name AS the environment,

    target_guid

    OF sysman.mgmt$ target_properties

    Property_name WHERE = "orcl_gtp_deployment_type") tpenv

    WHERE a_size.target_guid = tphost.target_guid

    AND a_size.target_guid = tpba.target_guid (+)

    AND a_size.target_guid = tpd.target_guid (+)

    AND a_size.target_guid = tpapp.target_guid (+)

    AND a_size.target_guid = tpenv.target_guid (+)

    A_size.target_name GROUP,

    tphost. HOST_NAME,

    tpba.business_area,

    TPD.contact,

    tpapp.application,

    tpenv. Environment

    ORDER BY 1;

    I SELECT granted on this point of view of user svcmango.  When it is connected as the svcmango and mode query, I get no selected lines.  Connected as sysman I get 99 lines.  There must be something simple that I forgot.  Help, please.  Thank you.

    I realized that it is.  The Oracle Enterprise Manager Cloud control 12 c database has the active VPD.  Once I understood this point, it was easy to correct the situation.  I just added SVCDBMANGO to the CAE, and all is well.

    Thanks to all for your responses.

    Steve

  • Generate create user scripts (including grants) frm one DB to another

    Hello


    I want to create users, including similar grants on a new database of an older one.

    Say DB1 is the former base & DB2 is the new database.
    How to generate scripts user creation to create users in DB2 that are there DB1?



    See you soon,.
    Malika

    user9131570 wrote:
    Hello

    I want to create users, including similar grants on a new database of an older one.

    Say DB1 is the former base & DB2 is the new database.
    How to generate scripts user creation to create users in DB2 that are there DB1?

    See you soon,.
    Malika

    Hi.First generate all the privileges of the database DB1 as follows:

    select 'grant '||PRIVILEGE||' to '||'' from dba_sys_privs
    where GRANTEE='';
    
    select 'grant '||GRANTED_ROLE||' to '||'' from dba_role_privs
    where GRANTEE=''
    
    select 'grant '||PRIVILEGE||' on '||GRANTOR||'.'||TABLE_NAME||' to '||''
    from dba_tab_privs
    where GRANTEE=''
    

    then create user () in the (new) DB2 database and above privileges as well.

  • creating users and roles of WL server for an application that is secured by security ADF

    Greetings

    I have an application that uses the security of adf, pre-deployment I created the users and roles to grant access or permissions to certain pages in mid CA. the thing is that I need to know if its possible to create users and roles through my the weblogic Server console and that roles and users can have permissions in my app I try but the only thing that works is authentication... I can not pass authorization

    Thanks for your help

    It should work very easily.

    What you have to do is give the domain name as domain (default myrealm) weblogic, this step you already have you're abe to authenticate.

    Now in jazn-"Data.xml", there are 2 types of roles. Application role & business role. Select business roles when assigning permissions. These should also be the same roles myrealm.

    You can also use the application role and have a relationship between the application role & business role.

    Only the care you need to take are to deploy the application in the EAR file, deployed a flag there migrate suite security users and security groups object. Deselect it.
    When you use the user groups and migrate the Application roles.

    Vincent

  • It not install on Win7 Home - don't say no admin tho I'm only user and admin profile

    Running Acer laptop Win7 Home Edition, Avira Antivirus, Windows Firewall. Mozilla's Firefox downloaded installer stub. On running it, it reads "extract" and then displays a message saying "some facilities may not work Installationavecuneracine current user" and shows two options: run with the current user and administrator (to be completed only for the administrator password).

    Click the current user and the program disappears - nothing happens. There is only 1 profil_utilisateur on this system - user current, called 'a' with privileges and no password. Click on administrator insists on the password, will not accept the empty password field and disappears.

    I created an ID of administrator with the password and logged, but the same two options new pop up - and the disappearance even once program is selected.

    Tried with Avira and disabled Firewall. Makes no difference. Running Firefox earlier version with the active user profile and no problem. When the upgrade program itself, this problem started while I have to use IE or Chrome.

    I'm typing this from my desktop system where Firefox works fine.

    OK, your sub windows 7 when you downloaded the file to go to her and right up until it clicks. On this list, there is an option "Run as Administrator".
    Click it and proceed with the installation.
    This is what may be the problem as Windows 7 has problems with UAC.

  • How can I create a new admin user and transfer my old files?

    Hello

    I want to create a new account administrator user on my imac and transfer all my old files.

    Why? I have problems with adobe lightroom. I can't move the files from one folder to another; After a chat session of three hours with support from adobe, they discovered is not the lightroom catalog that causes the problem, the preferences file, nor permissions user/disc; so it's probably a problem with the user account is corrupted. They tried with a new test account and everything worked fine. So they suggested, I create a new user account and transfer my files.

    I read on this forum that move all the files from one user account to another, means you also move the files at the root of the problem. So before you do anything: what are the thoughts of the community here on the suggestion of the adobe support the people, and if this is the right way to go, how should I go about this?

    System: imac 2.7 Ghz intel Core i5, 16 Gb 1600 Mhz DDR3, Mavericks 10.9.5, Lightroom 6.4

    THX in advance

    Robin

    Open the preferences users and groups. Click on the padlock icon in the lower left corner. Enter your administrator password when prompted. Click on the [+] add at the bottom of the list of current users to create a new account. You can set the account to an admin account by selecting the new account administrator: drop-down menu. Set up as a result. However, you can't use the same user name, in order to transfer your data presents a problem with permissions. See the following article: transfer of files from one user to another account. Once you get set up in the new account, you can delete the old.

    You shouldn't have a problem to transfer files of key records in your file. Just do not transfer anything from the folder/Home/Library/because that's probably where the shoe pinches.

  • Satellite C50-B-13N - error "Reboot and select good boot device."

    Hi all

    My laptop recently bought C50-B-13N moving 39 updates yesterday, when it crashed.

    Get back with me stuck in a loop continuous. After what seemed like the logical approach to reset to factory settings, I have
    seem to have accidentally deleted the data on the disk.

    I have now repeatedly received the error message "Reboot and select proper boot device."

    I tried the F12 approach to , but my Start Menu does not have this option.

    I'm frustrated that the new laptop played if bad, given that I have had Toshiba devices for about 10 years.
    In addition, I am disappointed that potentially serious consequences to remove the drive were clearly deprecated for me, before you start.

    Please give us a solution.
    The laptop is 4 months old.

    In addition, how can I start the process of an application under my warranty?
    A dissatisfied customer of experience to date.

    Kind regards

    CGI

    I seem to have accidentally deleted the data on the disk.

    Obviously the HARD drive recovery procedure is not possible now because the HARD drive recovery files have been deleted.

    I guess you have not created such recovery media as recommended in the user's manual.

    Well, in this case, you have a chance to order a missing middle of recovery and recover the laptop to factory condition.

    Means of recovery can be ordered here:
    http://backupmedia.Toshiba.EU/landing.aspx

  • connection of users and configuration of MAX

    I searched the site for 3 days and finally found a post titled; "IAK login user and configuration MAX" on 04/21/2009 who has asked pretty much the same problem, I'm going to. I wonder if there is something new on this subject because I need a solution.

    I installed an application and the NI FP driver suite see 6.0.11. I run NI MAX and open my. File IAK, which is located in the folder/common directory as well as the executable file of my application. At the beginning I used to hit the 'Save' selection but have found since that it makes no difference, so now, I'm not hitting 'Save', but just close MAX. This process is to record the location of my. IAK file somewhere, because after that my application runs and communicates very well with my e/s.

    The problem comes when I have the new station operators connect to the computer that controls the operation of my test. the application that auto starts because it is in the startup folder "All Users" cannot communicate with inputs and outputs.

    MAXIMUM running and opening the. IAK file under each new user login then immediately closing MAX solves the problem and all is well, and this process must occur the first time that a new user connects to the computer. The post mentioned above indicates that it is a normal behavior.

    The problem is that some of my operators do well to find the power button and turn on all the morning. The application is no "Exit", "Task Manager" should be used to stop it. Login information is stored on a post-it in their portfolio, and ask them to open MAX and save the configuration is just too much for them to do - be unfamiliar with the operation at first.

    Can someone explain to me how to fix this or refer me to a validated solution?

    Thank you

    OK - here it is:

    It works for me under Windows 7 with FP1000 e/s on a serial Comm. port other configurations may or may be not the same in these respects.

    While logged in as a privileged user configure you application to work and communicate with the e/s using an IAK file. Create the IAK via NI MAX.

    Is the key to register of interest here: [HKEY_CURRENT_USER\Software\National Instruments\FieldPoint Explorer\Recent File List]

    The string value is: "File1"="C:\ApplicationPath\IOConfigurationFile.IAK."

    Start the REGEDT32 Registry Editor. EXE and navigate to the key just below SOFTWARE that tells of National Instruments.

    Select the key, and then right-click on it. Select EXPORT, select a path and name of the output file.

    There will be many other entries, but this recent file one is the only one that may be necessary.

    You will end up with one. REG file with the specified name that contains the following elements:

    Windows Registry Editor Version 5.00

    [HKEY_CURRENT_USER\Software\National tools]

    [HKEY_CURRENT_USER\Software\National Instruments\FieldPoint Explorer]

    [HKEY_CURRENT_USER\Software\National Instruments\FieldPoint Explorer\Recent File List]
    'File1"="C:\\ApplicationPath\\IOConfigurationFile.iak '.

    Create a BAT file under the name of your choice. Configure.BAT for example.

    This BAT file will reside in the directory of your application with your Important file and it will contain 1 line.

    This:

    REG IMPORT "C:\ApplicationPath\ConfigurationRegistryExportFile.REG" > rejconfig.log

    Place a shortcut to it. BAT file in the 'All Users' Start menu.

    Any user who connects will receive this update of the registry which will allow the driver to IO to know how to communicate with your IO.

    Replace your appropriate to the ApplicationPath, IOConfigurationFile, ConfigurationRegistryExportFile, rejconfig.log file names. The log file will be written only for in the case of an error.

    Good luck

    Dfhotz

  • HP TouchSmart 520 (1155) PC-random cursor jumps and selects after update of Windows 8

    Is it possible to turn off (or turn off) the function of sensitivity to touch on computer HP TouchSmart 520 (1155) ABC my wife?     Problem with cursor - jumping my wife has been an extremely frustrating experience for years, now.    We used the extended warranty several times because of it, and even he had sent to hp that finally agreed to replace the touch screen.  We re - install the original Windows 7, but as soon as we gave Microsoft upgrade to 8 to win a few months later, the problem came back.  Then upgrade to win 10 didn't change things at all.

    Hi there @ejohnf,

    Publish again which was accidentally sent a private message.

    .

    That the Forums are with you!  It's a good place to find the help you need, other users, HP experts and other support staff.  I understand that you are looking for help with disable sensitivity to touch.  I'm happy to give you a helping hand with this.

    If you do not need the touch feature you could disable, as follows:

    Press Windows + X logo.
    Select Device Manager from the list.
    Click on the small arrow next to Interface devices to expand the list.
    Click on the touch screen driver
    Right click and select Disable from the list.

    Please let me know if it works for you and if it does not solve your problem, please mark this message as a solution. Bravo would be appreciated as well.

Maybe you are looking for