`
Intrepid2012
  • 浏览: 70911 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

grant all object to another user

 
阅读更多

If you really want to grant all objects to another user, you can get out of the 'grant' ,you can use database link.

The following example grants all objects belong to scott privileges to eagle


SQL> create user eagle identified by eagle;

User created.

SQL> grant create session to eagle;

Grant succeeded.

SQL> grant create database link to eagle;

Grant succeeded.

SQL> grant select any table to eagle;

Grant succeeded.

SQL> connect eagle/eagle@test
Connected.

SQL> create database link scott_test connect to scott identified by tiger using
'test';

Database link created.

SQL> select * from emp@scott_test;

       SAL        MGR      EMPNO
---------- ---------- ----------
        10       1342       1000
        10       1342       2000
        50       1342       2000
        60       1342       2000

SQL>

分享到:
评论

相关推荐

    mysql 赋给用户权限 grant all privileges on.docx

    mysql 赋给用户权限 grant all privileges on.docx

    Recover4all Professional

    in the event You determine that any particular Registered End User will no longer be permitted to use the Registered Software, You may register a different individual by sending email requesting a ...

    浅谈MySQL中授权(grant)和撤销授权(revoke)用法详解

    grant select on testdb.* to common_user@'%' grant insert on testdb.* to common_user@'%' grant update on testdb.* to common_user@'%' grant delete on testdb.* to common_user@'%' 或者,用一条 MySQL 命令...

    Oracle备份还原.doc

    GRANT SELECT ON "SYS"."ALL_TABLES" TO "MAPGISDBA" WITH GRANT OPTION; GRANT SELECT ON "SYS"."V_$SESSION" TO "MAPGISDBA" WITH GRANT OPTION; GRANT SELECT ON "SYS"."DBA_USERS" TO "MAPGISDBA" WITH ...

    MySQL的Grant命令详解

    代码如下:grant select on testdb.* to common_user@’%’grant insert on testdb.* to common_user@’%’grant update on testdb.* to common_user@’%’grant delete on testdb.* to common_user@’%’ ...

    grant_Grant_windowsshell_

    CMD Script to grant Everyone acces to a folder or more.

    MySQL的Grant命令

    MySQL的Grant命令详解

    mysql的安装

    UPDATE user SET Password=PASSWORD('newpassword') WHERE user='root'; mysql>; FLUSH PRIVILEGES; 允许远程登录 mysql -u root -p Enter Password: <your new password> mysql>GRANT ALL PRIVILEGES ON *.*...

    MySQL如何使用授权命令grant

    grant select on testdb.* to common_user@'%' grant insert on testdb.* to common_user@'%' grant update on testdb.* to common_user@'%' grant delete on testdb.* to common_user@'%' 或者,用一条

    Oracle 创建用户和给予权限

    grant connect,resource to tcy; --把connect(这种是临时用户),resource(这种是可以创建视图存储过程...)权限给tcy用户 revoke resource from tcy;--撤消对tcy用户的resource权限 crant select on vote_user to ...

    APMXN集成环境一键安装包、绿色免安解压包

    grant all on test.* to root@'%' identified by '123321'; grant all on test.* to root@localhost identified by '123321'; grant all on 数据库名.* to 数据库用户名@'%' identified by '访问密码'; grant all ...

    oracle新建用户详细步骤

    cmd输入 sqlplus; 回车,然后输入 system as sysdba; 登录依次执行 创建表空间 ... 创建用户执行: ... 为用户赋权限执行: ... GRANT CONNECT TO 用户名; GRANT RESOURCE TO 用户名; GRANT DBA TO 用户名;

    Android代码-Grant

    It can request all your declared permissions in a single method and give you a callback when they have been granted. It can perform a task at some point in the future that requires a specific ...

    给Mysql添加远程访问权限的方法

    GRANT ALL PRIVILEGES ON *.* TO ‘myuser’@’%’ IDENTIFIED BY ‘mypassword’ WITH GRANT OPTION; user:myuser pwd:mypassword 从192.168.1.3连接到mysql服务器 GRANT ALL PRIVILEGES ON *.* TO ‘myuser’@’...

    JIRA+MYSQL配置

    grant all privileges on *.* to ‘jirauser’@'%’ identified by ‘jira’ with grant option; grant all privileges on *.* to ‘jirauser’@'localhost’ identified by ‘jira’with grant option; flush ...

    BOS 技术整理

    -- Grant/Revoke system privileges grant unlimited tablespace to BOS; Spring 环境搭建 IOC 导入 context 依赖 beans、core、expression AOP 导入 测试集成 Web 集成 配置监听器 整合持久层框架 ...

    MySQL数据库中用GRANT语句增添新用户

    有两个不同的方法增加用户:通过使用GRANT语句或通过直接操作MySQL授权表。比较好的方法是使用GRANT语句,因为他们是更简明并且好像错误少些。本文将为大家介绍MySQL数据库中如何用GRANT语句增添新用户。

    ocp题库 047

    ocp 题库 1Z0-047题库.pdf,想考过ocp的同志们,参考一下

Global site tag (gtag.js) - Google Analytics