网站首页
JSP空间
动态资讯
开源项目
技术文档
资源下载
J2EE资源
客户论坛
在线支付
 
  技术文档>>数据库技术>>Oracle技术>>Oracle开发>查看文档  
  oracle用户密码含有特殊字符应当如何处理 (1)     
  文章作者:未知  文章来源:赛迪网技术社区  
  查看:113次  录入:管理员--2008-04-03  
 

【赛迪网-it技术报道】在设置oracle密码时,我们经常会将密码设置的特别复杂(一般由字母、数字和特殊符号组成),值得注意的是,在有特殊符号时,修改密码或着导入导出数据时会遇到很多不必要的麻烦,本文中将会对此情况进行详细的解释和说明:

注:本文中,将以特殊符号“/”为例。

linux环境下,使用oracle数据库10g

修改密码

[oracle@olivenan oracle]$ sqlplus '/as sysdba'

sql*plus: release 10.2.0.1.0 - production on wed may 17 14:33:32 2006

copyright (c) 1982, 2005, oracle. all rights reserved.

connected to:

oracle database 10g enterprise edition release 10.2.0.1.0 - production

with the partitioning, olap and data mining options

sql> alter user test identified by aa/aa;

alter user test identified by aa/aa

*

error at line 1:

ora-00922: missing or invalid option

在此使用""

sql> alter user test identified by "aa/aa";

user altered.

sql>

[oracle@olivenan oracle]$ exp test/aa/aa file=test.dmp buffer=65536

export: release 10.2.0.1.0 - production on wed may 17 14:32:10 2006

copyright (c) 1982, 2005, oracle. all rights reserved.

exp-00004: invalid username or password

username:

此处应该进行转义使用 " "处理密码,使用 ' '处理用户名和密码

[oracle@olivenan oracle]$ exp 'test/"aa/aa"' file=test.dmp buffer=65536

export: release 10.2.0.1.0 - production on wed may 17 14:32:52 2006

copyright (c) 1982, 2005, oracle. all rights reserved.

connected to: oracle database 10g enterprise edition release 10.2.0.1.0 - production

with the partitioning, olap and data mining options

export done in we8iso8859p1 character set and al16utf16 nchar character set

about to export specified users ...

. exporting pre-schema procedural objects and actions

...............

导出成功。

windows xp下,数据库为oracle9i

c:\documents and settings\w>sqlplus /nolog

sql*plus: release 9.2.0.1.0 - production on wed may 17 14:56:34 2006

copyright (c) 1982, 2002, oracle corporation. all rights reserved.

sql> connect sys/olivenan as sysdba

connected.

sql> alter user test identified by aa/aa;

alter user test identified by aa/aa

*

error at line 1:

ora-00922: missing or invalid option

此处使用""

sql> alter user test identified by "aa/aa";

user altered.

sql>

microsoft windows xp [版本 5.1.2600]

(c) 版权所有 1985-2001 microsoft corp.

c:\documents and settings\w>exp test/aa/aa file=aa.dmp buffer=65536

export: release 9.2.0.1.0 - production on wed may 17 14:58:50 2006

copyright (c) 1982, 2002, oracle corporation. all rights reserved.

exp-00004: invalid username or password

username:

password:

exp-00056: oracle error 1017 encountered

ora-01017: invalid username/password; logon denied

username: ^z^z

exp-00030: unexpected end-of-file encountered while reading input

exp-00000: export terminated unsuccessfully

在此处将使用""" """来处理用户密码

c:\documents and settings\w>exp test/"""aa/aa""" file=aa.dmp buffer=65536

export: release 9.2.0.1.0 - production on wed may 17 14:59:10 2006

copyright (c) 1982, 2002, oracle corporation. all rights reserved.

connected to: oracle9i enterprise edition release 9.2.0.1.0 - production

with the partitioning, olap and oracle data mining options

jserver release 9.2.0.1.0 - production

export done in we8iso8859p1 character set and al16utf16 nchar character set

server uses zhs16gbk character set (possible charset conversion)

about to export specified users ...

. exporting pre-schema procedural objects and actions

. exporting foreign function library names for user test

. exporting public type synonyms

. exporting private type synonyms

. exporting object type definitions for user test

about to export test's objects ...

. exporting database links

. exporting sequence numbers

........

至此,导出成功。

 
 
上一篇: 指定一个where条件来有条件地导出记录    下一篇: 实例讲解如何更改字段至兼容的不同类型 (1)
  相关文档
使用_disable_logging即可禁止日志的生成 (1) 05-16
使用oracle功能特性提高应用执行效率 (1) 04-15
用events 跟踪解决不能创建物化试图一例 06-17
怎样将"oracle"的外部表汉字转换为拼音 03-07
关于Oracle的虚拟专有数据库特性探讨 04-11
如何获取或记录Oracle语句执行时间 09-29
oracle数据库9i和10g环境下使用*.ora 04-29
细化解析:Oracle数据库后台进程的功能 09-01
八个学习点帮助你全面认识Oracle数据库TableSpace 06-03
temp表空间肆意扩大无法继续扩展的现象 02-20
Oracle-Decode()函数和CASE语句的比较 06-03
详细讲解oracle数据库管理员认证方法 04-17
数据库Oracle 11g Alert Log 的新变化 09-01
关于Oracle数据库各种存储形式的概述 04-11
怎样在oracle里用存储过程定期分割表 (1) 01-25
where子句在编写过程中需要注意的问题 (1) 03-28
解析:索引跳跃式扫描 (index skip scan) 11-15
如何处理oracle中temp表空间满的问题 03-03
Oracle 9i充分利用自动撤销管理的优点 06-10
如何将oracle数据库的普通表转换成分区表 (1) 05-05
返回首页 | 关于我们 | J网章程 | JSP空间合租 | 客服中心 | 免责声明 | 常见问题 | 参观机房
本站主机空间代理至厦门市华众网络科技有限公司
《中华人民共和国增值电信业务经营许可证》
编号:闽B2-20050079
@2005-2008福建JSP技术网 版权所有 闽ICP备05000928号
厦门(总部):13616026886 福州:0591-87655121
邮箱:admin@fjjsp.com 站长QQ,点击这里给我发消息