怎样在linux中的oracle创建用户名和密码
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了怎样在linux中的oracle创建用户名和密码相关的知识,希望对你有一定的参考价值。
参考技术A 在CRT中进入oracle--连接sqlplus
按照下面写完代码直接复制进去回车就行了
---建立用户代码为:CREATE
USER
"用户名字"
PROFILE
"DEFAULT"
IDENTIFIED
BY
"密码"
DEFAULT
TABLESPACE
"指定表空间名字"
TEMPORARY
TABLESPACE
"临时表空间"
ACCOUNT
UNLOCK;
---赋权
begin
EXECUTE
IMMEDIATE
'GRANT
SELECT
ANY
DICTIONARY
TO
用户名';
EXECUTE
IMMEDIATE
'GRANT
ALTER
ANY
TABLE
TO
用户名';
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
用户名';
oracle怎样导入sqlserver数据
参考技术A 使用sqlserver自带的DTS(导出)工具就可以实现,数据源选择sqlserver,目的选择ORACLE使用的驱动(我用的是9i,是oraclein
orahome92
),选择或创建一个DSN,输入用户名和密码就可以了,使用时需要注意表名和字段名上带的双引号需要去掉,否则的话你在查表的时候在表名上也需要加上双引号。
以上是关于怎样在linux中的oracle创建用户名和密码的主要内容,如果未能解决你的问题,请参考以下文章