crt怎么连oracle crt怎么连接服务器

oracle数据库怎么创建新用户?在CRT中进入oracle --连接sqlplus
按照下面写完代码直接复制进去回车就行crt怎么连oracle了
---建立用户代码为crt怎么连oracle:CREATE USER "用户名字" PROFILE "DEFAULT" IDENTIFIED BY "密码" DEFAULT TABLESPACE "指定表空间名字"TEMPORARY TABLESPACE "临时表空间" ACCOUNTUNLOCK;
---赋权
begin
EXECUTE IMMEDIATE 'GRANT SELECT ANY DICTIONARY TO 用户名';
EXECUTE IMMEDIATE 'GRANT ALTER ANY TABLE TO 用户名';
【crt怎么连oracle crt怎么连接服务器】EXECUTE IMMEDIATE 'GRANT ALTER SYSTEM TO 用户名';
EXECUTE IMMEDIATE 'GRANT ALTER ANY PROCEDURE TO 用户名';
EXECUTE IMMEDIATE 'GRANT CONNECT TO 用户名';
EXECUTE IMMEDIATE 'GRANT CREATE ANY PROCEDURE TO 用户名';
EXECUTE IMMEDIATE 'GRANT CREATE ANY TABLE TO 用户名';
EXECUTE IMMEDIATE 'GRANT CREATE ANY INDEX TO 用户名';
EXECUTE IMMEDIATE 'GRANT CREATE DATABASE LINK TO 用户名';
EXECUTE IMMEDIATE 'GRANT CREATE PUBLIC DATABASE LINK TO 用户名';
EXECUTE IMMEDIATE 'GRANT CREATE ANY VIEW TO 用户名';
EXECUTE IMMEDIATE 'GRANT CREATE PUBLIC SYNONYM TO 用户名';
EXECUTE IMMEDIATE 'GRANT CREATE TABLE TO 用户名';
EXECUTE IMMEDIATE 'GRANT DELETE ANY TABLE TO 用户名';
EXECUTE IMMEDIATE 'GRANT DROP PUBLIC DATABASE LINK TO 用户名';
EXECUTE IMMEDIATE 'GRANT DROP ANY TRIGGER TO 用户名';
EXECUTE IMMEDIATE 'GRANT DROP ANY INDEX TO 用户名';
EXECUTE IMMEDIATE 'GRANT DROP ANY PROCEDURE TO 用户名';
EXECUTE IMMEDIATE 'GRANT DROP ANY TABLE TO 用户名';
EXECUTE IMMEDIATE 'GRANT DROP ANY VIEW TO 用户名';
EXECUTE IMMEDIATE 'GRANT CREATE PUBLIC SYNONYM TO 用户名';
EXECUTE IMMEDIATE 'GRANT DROP PUBLIC SYNONYM TO 用户名';
EXECUTE IMMEDIATE 'GRANT CREATE ANY SEQUENCE TO 用户名';
EXECUTE IMMEDIATE 'GRANT EXECUTE ANY PROCEDURE TO 用户名';
EXECUTE IMMEDIATE 'GRANT GRANT ANY PRIVILEGE TO 用户名';
EXECUTE IMMEDIATE 'GRANT GRANT ANY ROLE TO 用户名';
EXECUTE IMMEDIATE 'GRANT CREATE ANY TRIGGER TO 用户名';
EXECUTE IMMEDIATE 'GRANT INSERT ANY TABLE TO 用户名';
EXECUTE IMMEDIATE 'GRANT SELECT ANY DICTIONARY TO 用户名';
EXECUTE IMMEDIATE 'GRANT SELECT ANY SEQUENCE TO 用户名';
EXECUTE IMMEDIATE 'GRANT DROP ANY SEQUENCE TO 用户名';
EXECUTE IMMEDIATE 'GRANT SELECT ANY TABLE TO 用户名';
EXECUTE IMMEDIATE 'GRANT UNLIMITED TABLESPACE TO 用户名';
EXECUTE IMMEDIATE 'GRANT UPDATE ANY TABLE TO 用户名';
EXECUTE IMMEDIATE 'GRANT COMMENT ANY TABLE TO 用户名';
EXECUTE IMMEDIATE 'GRANT CREATE ANY TYPE TO 用户名';
EXECUTE IMMEDIATE 'GRANT CREATE TABLESPACE TO 用户名';
EXECUTE IMMEDIATE 'GRANT CREATE USER TO 用户名';
EXECUTE IMMEDIATE 'GRANT EXP_FULL_DATABASE TO 用户名';
EXECUTE IMMEDIATE 'GRANT IMP_FULL_DATABASE TO 用户名';
End;
---或者直接给DBA权限希望有所提示crt怎么连oracle,有空到CSDN,IT实验室,365testing进一步交流!
怎么从另一台电脑连接到oracle需要一些前提条件crt怎么连oracle:
1、对方的主机能被连接(如在同一局域网内)
2、需要知道对方数据库IP、端口号、服务名
3、需要知道对方提供的管理数据库的用户名及密码
连接方法crt怎么连oracle:
1、在本地的oracle安装目录crt怎么连oracle,找到tnsnames.ora文件
如何建立多节点链接 oracle1.在你的本机里面的tnsnames.ora里面加入链接数据库的实例名属性 。
2.在你的本机的你的要链接的用户下输入下列命令即完成连接:
CREATE DATABASE LINK 你要取的名字
CONNECT TO 你需要访问的用户名 IDENTIFIED BY 密码
USING '你加入tnsnames.ora的实例名';
3.这时你就可以直接访问远程服务器的数据crt怎么连oracle了:
select * from tab@你要取的名字;
select a.col1,b.col1 from table1@你要取的名字1 a, table1@你要取的名字2 b where......;
如果你要建Oracle RAC的话,就不是链接概念了,不是上面所说crt怎么连oracle!
关于crt怎么连oracle和crt怎么连接服务器的介绍到此就结束了,不知道你从中找到你需要的信息了吗 ?如果你还想了解更多这方面的信息,记得收藏关注本站 。

    推荐阅读