动态网站制作指南 [  QQ表情  ]
[ 投票调查 ]
[ 企业邮箱 ]
[ 网站空间 ]
网络编程 | 站长之家 | 网页制作 | 图形图象 | 操作系统 | 冲浪宝典 | 软件教学 | 网络办公 | 邮件系统 | 网络安全 | 认证考试 | 系统进程
ASP源码 | .Net源码 | PHP源码 | JSP源码 | JAVA源码 | CGI源码 | VB源码 | C++源码 | Delphi源码 | PB源码 | VF源码 | 汇编 | 服务器
Firefox | IE | Maxthon | 迅雷 | 电驴 | BitComet | FlashGet | QQ | QQ空间 | Vista | 输入法 | Ghost | Word | Excel | wps | Powerpoint
asp | .net | php | jsp | Sql | c# | Ajax | xml | Dreamweaver | FrontPages | Javascript | css | photoshop | fireworks | Flash | Cad | Discuz!
当前位置 > 网站建设学院 > 网络编程 > 数据库 > Oracle教程
Tag:注入,存储过程,分页,安全,优化,xmlhttp,fso,jmail,application,session,防盗链,stream,无组件,组件,md5,乱码,缓存,加密,验证码,算法,cookies,ubb,正则表达式,水印,索引,日志,压缩,base64,url重写,上传,控件,Web.config,JDBC,函数,内存,PDF,迁移,结构,破解,编译,配置,进程,分词,IIS,Apache,Tomcat,phpmyadmin,Gzip,触发器,socket
数据库:数据库教程,数据库技巧,Oracle教程,MySQL教程,Sybase教程,Access教程,DB2教程,数据库安全,数据库文摘
文章搜索服务
邮件订阅
输入你的邮件地址,
你将不会错过任何关于:
[ Oracle教程 ]的信息

本月文章推荐
.Win98+Win2K+Linux 装配方案.
.Oracle中三种上载文件技术.
.常用的查看数据库的SQL.
.关于ORACLE性能优化的好例子.
.在Oracle中列出指定数据表的全部.
.Linux 网管 123 --- 组态 X Win.
.如何处理Oracle中TEMP表空间满的.
.Oracle新手最经常碰到的6个错误及.
.Oracle客户端与数据库应用程序集.
.sendmail的log里面may be forged.
.chapter3:Oracle Enterprise Man.
.10gR2使用RMAN恢复临时表空间的增.
.将oracle的查询结果输出为文件.
.access在结合或绑定的组合框中添.
.ORACLE锁的管理.
.如何查到oracle dml lock和如何解.
.ORACLE常用傻瓜問題1000問(之三).
.如何在Oracle10g中启动和关闭OEM .
.Oracle的数据分片技术的详细解答.
.常用的档案, 与它们的延伸名称, .

Oracle用户密码含有特殊字符应当如何处理

发表日期:2008-4-3 |


在设置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条件来有条件地导出记录 人气:681
下一篇:实例讲解如何更改字段至兼容的不同类型 人气:855
浏览全部ORACLE的内容 Dreamweaver插件下载 常用网页广告代码全集
  最新网站源码 最新软件下载
2008-9-7 站长中国企业(公司)网站系统 v4.2
2008-9-7 PBDigg v2.0 Build 20080821
2008-9-7 玩玩小游戏FLASH系统 v2.1
2008-9-7 522QQ在线电视直播程序 v1.1
2008-9-7 Pcook cms 文章管理系统 (老Y CM
2008-9-7 仿代码小说小偷系统 v1.0
2008-9-7 百度一搜集成搜索管理系统
2008-9-7 小贤统计器 v1.0
2008-9-7 UCenter Home-中秋搏饼插件 v1.2
2008-9-7 iBlacklist通话黑名单汉化破解补
2008-9-7 EndlessWalls无尽壁纸 v1.0.4破解
2008-9-7 Dynolicious车载测量仪v1.1破解版
2008-9-7 iVoodoo巫毒娃娃1.0.1破解版
2008-9-7 iWallpape精品墙纸1.2破解版
2008-9-7 iChillout自然音效工具1.1破解版
2008-9-7 Todo计划提醒1.2破解版
2008-9-7 allRadio电台集合1.01破解版
2008-9-7 My Money个人理财1.0破解版
  发表评论
姓 名: 验证码:
内 容:
站长工具:网站收录查询 | Google PR查询 | ALEXA排名查询 | CSS在线编辑器 | 广告代码 | Html转换js | js/vbs加密 | md5加密 | 进制转换
实用工具:汉字翻译拼音 | 符号对照表 | 个税计算 | 经典小工具 | 汉字简繁转换 | 普通单位换算 | 公制单位换算 | 生辰老黄历 | 国内电话区号 国家代码与域名缩写 | 文字加密解密 | 健康查询 | 万年历 | 汉字横竖排版 | 手机号码查询 | 计算器 | ip搜索
业务联系 | 广告刊登 | 频道合作 | 投稿荐稿 | 联系方式 | 加入收藏 | RSS订阅
Copyright © 2000-2008 www.knowsky.com All rights reserved | 网络实名:动态网站制作指南 | 沪ICP备05001343号
ホームページ制作 不動産検索システム 求人情報
防水工事·改修工事 フットサル大会 探偵