`
xiangxm
  • 浏览: 64990 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
  • xiangxm: xurichusheng 写道一些涉及到密码保存的就需要加密/ ...
    3DES加密
  • xurichusheng: 一些涉及到密码保存的就需要加密/解密了。不需要解密的密码,如登 ...
    3DES加密

Oracle基础总结(一)

阅读更多
打开cmd 窗口
启动sqlplus几种方式:

1、输入sqlplus  出现如下,所示然后输入用户名和密码就可以了。
C:\Users\xm>sqlplus
SQL*Plus: Release 11.1.0.6.0 - Production on Thu Nov 8 22:12:29 2012
Copyright (c) 1982, 2007, Oracle.  All rights reserved.
Enter user-name: dbxmftp
Enter password:


2、sqlplus  username  然后直接输入密码就可以了。
C:\Users\xm>sqlplus
SQL*Plus: Release 11.1.0.6.0 - Production on Thu Nov 8 22:12:29 2012
Copyright (c) 1982, 2007, Oracle.  All rights reserved.
Enter user-name: dbxmftp
Enter password:


3、sqlplus username/password
C:\Users\xm>sqlplus
SQL*Plus: Release 11.1.0.6.0 - Production on Thu Nov 8 22:12:29 2012
Copyright (c) 1982, 2007, Oracle.  All rights reserved.
Enter user-name: dbxmftp
Enter password:

......

SQL>


退出:
SQL>exit 断开并且退出
或者
SQL>disc 断开但不退出

sqlplus登录不上,提示invalid ...
1、登录名错误或者密码错误
先以超级管理员的身份等录
conn as/sysdba
然后修改用户密码:
alter user username identified by newpassword 

2、先查询用户是否存在:
select * from all_users ;
如果没有该用户,那就创建
先创建表空间,然后创建用户并指定表空间,最后分配权限。
列如:
--创建表空间
create tablespace dbxmftp
logging
datafile 'D:\oracle\product\10.2.0\oradata\tansun\DBXM.DBF'
size 32m
autoextend on
next 32m maxsize 1024m
extent management local;
--创建用户并指定表空间
create user dbxmftp identified by dbxmftp
default tablespace dbxmftp
temporary tablespace temp;
--给用户授予权限
grant connect,resource,dba to dbxmftp;
删除用户:
drop tablespace_name username ;


2012-11-8 10:32  睡觉喽。。。。
后续。。。。。。
[/size]
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics