Note1 简单的oracle操作
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模式
posted on 2011-08-01 23:33 FengMichael 阅读(129) 评论(0) 收藏 举报
浙公网安备 33010602011771号