发新话题
打印

[原创] oracle的常用命令

oracle的常用命令

1.       开启或者关闭监听

su – oracle

lsnrctl start/   lsnrctl  stop



2. 启动或者关闭oracle

A.       以su – oracle切换到oracle用户

B.       运行sqlplus / as sysdba

C.      startup  / shutdown

3.查看所有数据库

select name from v$database;

4.新建用户

create user 用户名 identified by 密码  default tablespace users temporary tablespace temp;

grant connect to 用户名

grant resource to 用户名

grant dba to 用户名

5.删除用户

drop user 用户名 cascade;
6.收会dba权限
revoke dba from user;

TOP

不错
开源易有
http://www.yiyou.org/

TOP

发新话题