码迷,mamicode.com
首页 > 数据库 > 详细

Oracle 10g学习系列(1)

时间:2014-12-22 19:43:54      阅读:163      评论:0      收藏:0      [点我收藏+]

标签:oracle

    最近有时间学习oracle了,把学习的过程整理出来,漫漫学习路,现在才刚刚起步。


1.#su - oracle

2.启动监听

$ lsnrctl start 

3.启动em

$ emctl start dbconsole

http://192.168.88.139:1158/em/

4.启动iSQL*Plus

$ isqlplusctl start

http://192.168.88.139:5560/isqlplus/


5.连接数据库

[oracle@localhost ~]$ sqlplus / as sysdba


SQL*Plus: Release 10.2.0.1.0 - Production on Mon Dec 22 07:01:37 2014


Copyright (c) 1982, 2005, Oracle.  All rights reserved.


Connected to an idle instance.


SQL> 

6.启动数据库

SQL> startup;

7.创建用户bob,密码admin

SQL>create user bob identified by admin;

8.把dba权限给bob

SQL>grant dba to bob;

9.取消授权

SQL>revoke dba from bob;

10.删除用户

SQL>drop user bob;

本文出自 “卡卡西” 博客,请务必保留此出处http://whnba.blog.51cto.com/1215711/1592757

Oracle 10g学习系列(1)

标签:oracle

原文地址:http://whnba.blog.51cto.com/1215711/1592757

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!