当前位置:首页 » 操作系统 » linuxoracle用户

linuxoracle用户

发布时间: 2022-07-18 15:49:49

‘壹’ linux怎么给oracle中用户权限

--//给用户授予权限
grant connect,resource to test;
--//删除表空间
drop tablespace test_temp including CONTENTS and datafiles;
--//修改用户密码
alter user test identified by new_password;
--//删除用户
drop user 用户名 cascade; --//执行该语句请小心,会级联删除该用户下所有对象。
--//给用户分配权限
sql> grant connect to test_user;
SQL> grant resource to test_user;
SQL> grant create view to test_user;
SQL> GRANT DEBUG CONNECT SESSION TO test_user;
SQL> GRANT DEBUG ANY PROCEDURE TO test_user;

实例如下:
数据库用户的创建、权限的分配
数据库安装完成后,有两个系统级的用户:
1、system 默认密码为:manager
2、sys 默认密码为:change_on_install
在安装的数据库目录中找到\oracle\proct\9.2\bin 中的sqlplus程序,运行:./sqlplussystem/manager@ora9i
用system用户创建自己的用户、权限;sql语句如下:
1、创建用户:
create user username identified by pwd default tablespace users Temporary TABLESPACE Temp;
2、用户授权
grant connect,resource,dba to business;
3、提交
commit;

‘贰’ 怎样在linux中的oracle创建用户名和密码

在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
用户名';

‘叁’ linux下oracle 用户名和密码是什么

一定有设置用户名和密码的地方,只是你没注意;
如果没设置,就是默认的用户名和密码,如下:
sys/change_on_install
system/manager

‘肆’ linux 上安装oracle用户怎样设置

不太理解你的问题你的机器,只要启动,不进行登陆的话,Oracle服务也是被启动的,只要在client端连接Oralce就可以了吧,不需要用户登录另外IP的问题,如果是在你虚拟机上安装的Oracle那么就没有影响,默认那个使用桥接的网络,和本地系统的网络设定关系不大

‘伍’ linux 下如何创建oracle 新用户

在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
用户名';
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权限

热点内容
炸图脚本 发布:2025-01-15 19:56:07 浏览:427
八字源码 发布:2025-01-15 19:54:47 浏览:370
服务器可以变电脑使用吗 发布:2025-01-15 19:40:29 浏览:200
传奇手游免费脚本 发布:2025-01-15 19:30:21 浏览:300
我国当前资源配置存在哪些问题 发布:2025-01-15 19:25:03 浏览:514
存储在哪里呀 发布:2025-01-15 19:11:39 浏览:450
pythonuniquelist 发布:2025-01-15 19:10:41 浏览:477
怎么升安卓系统下载 发布:2025-01-15 19:04:27 浏览:894
mcrypt扩展php 发布:2025-01-15 19:01:12 浏览:436
html源码解析 发布:2025-01-15 19:01:10 浏览:223