简单的Oracle操作 |
| 发布时间: 2012/8/26 15:36:16 |
|
ps -ef | more ##在linux查看系统进程,用more命令来分页(按space键来翻页) ps -ef | grep Oracle ##查看Linux系统进程下,Oracle用户的进程 sqlplus /nolog ##登陆sqlplus conn / as sysdba ##以dba权限登陆 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模式 本文出自:亿恩科技【www.enkj.com】 |
京公网安备41019702002023号