Skip to content

Commit 7978475

Browse files
committed
update
1 parent 33cd534 commit 7978475

File tree

2 files changed

+3
-67
lines changed

2 files changed

+3
-67
lines changed

DB学习之路.md

Lines changed: 2 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,8 @@
231231
* 修改oracle实例名(sid)和数据库名(db_name): <http://blog.51cto.com/liujia/539294>
232232
* Oracle安装错误ora-00922(缺少或无效选项): <http://blog.sina.com.cn/s/blog_5674f6d401012ekw.html>
233233
* Oracle中session和processes的设置: <http://www.cnblogs.com/jiangxinnju/p/7900870.html>
234+
* 忘记oracle的sys用户密码怎么修改以及Oracle 11g 默认用户名和密码: <http://www.cnblogs.com/jiangxinnju/p/7928029.html>
235+
* navicat 连接Oracle 报错:Cannot load OCI DLL, 126: <https://my.oschina.net/xqx/blog/340743>
234236

235237
## oracle疑难问题排查集:
236238

@@ -245,37 +247,6 @@
245247
* http://www.allroundautomations.com/registered/plsqldev.html
246248
* 配置:localhost:1521/orcl
247249

248-
## navicat 连接Oracle 报错:Cannot load OCI DLL, 126
249-
250-
windows Server 2008 服务器上安装了Oracle 11g R2,在用Navicat去连接Oracle时,提示以下错误:
251-
252-
Cannot load OCI DLL, 126: Instant Client package is required for Baic and TNS connection ,For more information: http://wiki.navicat.com/wiki/index.php/Instant_client_required
253-
254-
查看上述链接页面提示,Navicat only support 32-bit instant client, 因此,尽管我们安装了64位的Oracle,但由于Navicat仅支持32位的,因此我们还需下载一个32位的客户端, 下载地址:
255-
256-
http://www.oracle.com/technetwork/topics/winsoft-085727.html。
257-
258-
以下为完整的解决方法:
259-
260-
* 在上述地址中下载文件:instantclient-basic-nt-12.1.0.2.0.zip,
261-
* 解压此安装包至:D:/app/administrator/product/instantclient_2_2_x32
262-
* 打开Navicat,选择工具→选项→其他→OCI,然后设置OCI library为:D:app/administrator/product/instantclient_12_2_x32/oci.dll,设置SQL plus为:D:/app/administrator/product/11.2.0/dbhome_1/BIN/sqlplus.exe。确定。
263-
* 测试成功。
264-
265-
## Oracle 11g 默认用户名和密码
266-
267-
安装ORACLE时,若没有为下列用户重设密码,则其默认密码如下:
268-
269-
用户名/密码 登录身份 说明
270-
sys/change_on_install SYSDBA 或 SYSOPER 不能以 NORMAL 登录,可作为默认的系统管理员
271-
system/manager SYSDBA 或 NORMAL 不能以 SYSOPER 登录,可作为默认的系统管理员
272-
sysman/oem_temp sysman 为 oms 的用户名
273-
scott/tiger NORMAL 普通用户
274-
aqadm/aqadm SYSDBA 或 NORMAL 高级队列管理员
275-
Dbsnmp/dbsnmp SYSDBA 或 NORMAL 复制管理员
276-
277-
登录身份:指登录时的Role指定,oracle11g中分SYSDBA和default两种。在安装Oracle 10g的时候,提示创建数据库,在创建的同时提示你输入口令,若此时你输入了密码,在登录数据库的时候用户名sys 对应的密码就应该是你创建数据库时候输入的口令。而非默认的change_on_install.
278-
279250
## Oracle 11g服务详细介绍及哪些服务是必须开启的?
280251

281252
成功安装Oracle 11g后,共有7个服务,这七个服务的含义分别为:
@@ -313,41 +284,6 @@ ORACLE_SID 实例ID
313284
2.ESCAPE 'escape_character' 允许在字符串中搜索通配符而不是将其作为通配符使用。escape_character 是放在通配符前表示此特殊用途的字符。
314285

315286

316-
## 忘记oracle的sys用户密码怎么修改
317-
318-
### 忘记除SYS、SYSTEM用户之外的用户的登录密码
319-
320-
CONN SYS/PASS_WORD AS SYSDBA; --用SYS (或SYSTEM)用户登录
321-
ALTER USER user_name IDENTIFIED BY "newpassword"; --修改用户的密码,密码不能是数字开头,否则会出现:ORA-00988: 口令缺失或无效
322-
323-
### 忘记SYS用户,或者是SYSTEM用户的密码
324-
325-
CONN SYS/PASS_WORD AS SYSDBA; --如果是忘记SYSTEM用户的密码,可以用SYS用户登录。
326-
ALTER USER SYSTEM IDENTIFIED BY "newpassword";
327-
328-
CONN SYSTEM/PASS_WORD AS SYSDBA; --如果是忘记SYS用户的密码,可以用SYSTEM用户登录。
329-
ALTER USER SYS IDENTIFIED BY "newpassword";
330-
331-
### SYS,SYSTEM用户的密码都忘记
332-
333-
Oracle提供了两种验证方式,一种是OS验证,另一种密码文件验证方式,如果是第一种方式用以下方法修改密码:
334-
335-
```sql
336-
  sqlplus /nolog;
337-
  connect / as sysdba
338-
  alter user sys identified by newpassword;
339-
  alter user system identified by newpassword;
340-
```
341-
342-
如果是第二种方法可以使用ORAPWD.EXE 工具修改密码。打开命令提示符窗口,输入如下命令:
343-
344-
orapwd file=D:\oracle10g\database\pwdctcsys.ora password=newpassword
345-
346-
这个命令重新生成了数据库的密码文件。密码文件的位置在ORACLE_HOME目录下的\database目录下。这个密码是修改sys用户的密码。除sys其他用户的密码不会改变。也可以下方法修改密码,设定完后,重新启动服务,再次登陆就可以了。
347-
348-
orapwd file=pwdxxx.ora password=newpassword entries=10
349-
350-
351287
# DB2
352288

353289
* 官网:http://www-01.ibm.com/software/data/db2/

J2EE学习之路.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@
136136
* CMD5(MD5反向查询): <http://www.cmd5.com/default.aspx>
137137
* 数字证书原理: <https://www.cnblogs.com/JeffreySun/archive/2010/06/24/1627247.html>
138138
* 彩虹表(Rainbow Tables)原理详解: <http://www.ha97.com/4009.html>
139+
* 使用浏览器的计算力,对抗密码破解:<https://www.cnblogs.com/index-html/p/frontend_kdf.html>
139140
* GetPropertyAction vs System.getProperty in obtaining system variables: http://stackoverflow.com/questions/4954924/getpropertyaction-vs-system-getproperty-in-obtaining-system-variables
140141
* File.separator vs FileSystem.getSeparator() vs System.getProperty(“file.separator”)?: http://stackoverflow.com/questions/8075373/file-separator-vs-filesystem-getseparator-vs-system-getpropertyfile-separato
141142
* 三个实例演示 Java Thread Dump 日志分析:http://www.cnblogs.com/zhengyun_ustc/archive/2013/01/06/dumpanalysis.html
@@ -158,7 +159,6 @@
158159
* HTTPS 升级指南: http://www.ruanyifeng.com/blog/2016/08/migrate-from-http-to-https.html
159160
* 软件项目“免坑”指南: http://www.cnblogs.com/MeteorSeed/archive/2012/04/08/2427966.html
160161
* 如何重构“箭头型”代码: http://coolshell.cn/articles/17757.html
161-
* 使用浏览器的计算力,对抗密码破解:https://www.cnblogs.com/index-html/p/frontend_kdf.html
162162
* Atom Authentication: http://www.xml.com/pub/a/2003/12/17/dive.html
163163
* 在AI寻路决策中运用势力图(Influence Map): http://www.aisharing.com/archives/80?replytocom=219
164164
* 关于 Token,你应该知道的十件事: http://ju.outofmemory.cn/entry/134189

0 commit comments

Comments
 (0)