Note1 简单的oracle操作

来源:互联网 发布:jquery.media.js使用 编辑:程序博客网 时间:2024/05/21 15:25

ps -ef | more ##在linux查看系统进程,用more命令来分页(按space键来翻页)

ps -ef | grep oracle ##查看linux系统进程下,oracle用户的进程

sqlplus /nolog  ##登陆sqlplus

conn / as sysdba ##以dba权限登陆

startup  ##启动oracle的服务

alter user scott account lock  ##锁定用户账号scott

alter user scott account unlock ##解锁用户账号scott

alter user scott identified by tiger ##修改scott账户的密码为tiger

conn scott/tiger ##连接scott账户,密码为tiger

select * from tab ##查询该用户下的所有表

在sqlplus下输入 ! 切换回shell命令操作

在shell命令下输入exit切换回sqlplus模式

原创粉丝点击