Skip to content

Commit af4b0e7

Browse files
committed
update
1 parent f584a93 commit af4b0e7

File tree

2 files changed

+11
-75
lines changed

2 files changed

+11
-75
lines changed

DB学习之路.md

Lines changed: 8 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -135,15 +135,19 @@
135135

136136
* Oracle SQL Developer: http://www.oracle.com/technetwork/developer-tools/sql-developer/overview/index.html
137137
* Instant Client Downloads for Microsoft Windows (32-bit): http://www.oracle.com/technetwork/topics/winsoft-085727.html
138+
* Database Virtual Box Appliance / Virtual Machine: http://www.oracle.com/technetwork/database/enterprise-edition/databaseappdev-vm-161299.html
139+
140+
* https://support.oracle.com/
141+
* https://asktom.oracle.com
138142

139143
* Oracle SQL Handler:http://www.heartblue.cn/
140144
* SI Object Browser:http://www.presoft.com.cn/ob/
141145

142146
* ToadWorld: http://www.toadworld.com/
143147

144-
* https://asktom.oracle.com
145-
146-
* 诗檀软件: http://www.askmaclean.com/
148+
* http://www.itpub.net/
149+
* http://www.askmaclean.com/
150+
* http://f.dataguru.cn/
147151

148152
* Oracle 11g安装图文攻略: http://jingyan.baidu.com/article/9f7e7ec04c14c76f29155465.html
149153
* oracle 11g如何完全卸载: http://jingyan.baidu.com/article/922554468d4e6b851648f4e3.html
@@ -186,6 +190,7 @@
186190
* Oracle中如何插入特殊字符: & 和 ' (多种解决方案): http://blog.csdn.net/ye1992/article/details/37509915
187191
* LogMiner配置使用手册: http://www.cnblogs.com/shishanyuan/p/3140440.html
188192
* Oracle未开启审计情况下追踪表变更记录: http://hbxztc.blog.51cto.com/1587495/1918407
193+
* Unix/Linux操作系统中如何在sqlplus/rman中使用方向键: http://www.cnblogs.com/jiangxinnju/p/7469325.html
189194

190195

191196

@@ -253,44 +258,6 @@ Dbsnmp/dbsnmp SYSDBA 或 NORMAL 复制管理员
253258
注:ORCL是数据库实例名,默认的数据库是ORCL,你可以创建其他的,即OracleService+数据库名。
254259

255260

256-
## 使sqlplus中方向键可用
257-
258-
使Unix下的sqlplus/rman也像windows下sqlplus/rman命令一样,可以通过左右箭头修改命令,通过上下箭头查看命令历史。The rlwrap (readline wrapper) utility provides a command history and editing of keyboard input for any other command. This is a really handy addition to SQL*Plus and RMAN on Linux. 而rlwrap会用到readline包,首先要安装readline,然后安装rlwrap。
259-
260-
### 下载
261-
262-
* readline下载:http://directory.fsf.org/project/readline/
263-
* rlwrap下载:http://utopia.knoware.nl/~hlub/uck/rlwrap/
264-
265-
### 安装(使用root登陆,平台是Solaris,其它类似)
266-
```
267-
# install readline:
268-
gunzip readline-5.0.tar.gz
269-
tar xvf readline-5.0.tar
270-
cd readline-5.0
271-
./configure
272-
make
273-
make install
274-
275-
# install rlwrap:
276-
gunzip rlwrap-0.30.tar.gz
277-
tar xvf rlwrap-0.30.tar
278-
cd rlwrap-0.30
279-
./configure
280-
make
281-
make check
282-
make install
283-
```
284-
285-
### 使用
286-
287-
# rlwrap sqlplus user/pwd@testdb
288-
289-
可以设别名放到.bash_porfile里,然后直接使用别名即可。
290-
291-
alias rlsqlplus='rlwrap sqlplus'
292-
source ~/.bash_porfile
293-
294261
## Oracle安装错误ora-00922(缺少或无效选项)
295262

296263
安装Oracle 11g R2的过程中,在新建数据库实例时出现了该错误,如果选择"忽略"就会出现ora-28000错误。经网络查询验证,这是属于在前面配置管理员密码的时候,采用了数字开头的密码,Oracle貌似对此不支持,但当时不提示出错,晕倒!据说包含其他非法特殊字符也可能产生此问题。
@@ -317,40 +284,6 @@ ORA-28000: 账户锁定
317284
* 重新登录就可以通过验证了
318285

319286

320-
## linux/unix平台Oracle sqlplus 中Backspace无法删除字符
321-
322-
Oracle sqlplus在打错字符时我们可以使用ctrl+backspace组合键实现删除功能。但是你一定要使用Backspace键删除的话,会出现^H,无法删除。这是因为linux中对tty设备的字符转换没有配置好,可通过stty命令修改终端配置来实现Backspace删除功能。具体修改办法如下:
323-
324-
```shell
325-
[oracle@www.yeserver.com ~]$ id
326-
uid=800(oracle) gid=803(oinstall) groups=800(dba),801(oper),803(oinstall)
327-
[oracle@www.yeserver.com ~]$ stty erase ^h
328-
```
329-
330-
若要恢复Ctrl+Backspace组合键删除功能,可执行以下命令:
331-
332-
```shell
333-
[oracle@www.yeserver.com ~]$ id
334-
uid=800(oracle) gid=803(oinstall) groups=800(dba),801(oper),803(oinstall)
335-
[oracle@www.yeserver.com ~]$ stty erase ^?
336-
```
337-
338-
同时可通过stty -a查看所有的终端设置
339-
340-
```shell
341-
[oracle@www.yeserver.com ~]$ id
342-
uid=800(oracle) gid=803(oinstall) groups=800(dba),801(oper),803(oinstall)
343-
[oracle@www.yeserver.com ~]$ stty -a
344-
speed 38400 baud; rows 37; columns 122; line = 0;
345-
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = ; eol2 = ; swtch = ; start = ^Q;
346-
stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
347-
-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts -cdtrdsr
348-
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff -iuclc -ixany -imaxbel -iutf8
349-
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
350-
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke
351-
```
352-
353-
354287
## ORACLE_HOME/ORACLE_SID
355288

356289
ORACLE_HOME 安装目录

Linux学习之路.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* GNU Operating System: http://www.gnu.org/
77
* https://zh.wikipedia.org/wiki/Linux
88
* http://distrowatch.com/index.php
9+
* https://pkgs.org/ -- very userful
910

1011
* Ubuntu: http://www.ubuntu.org.cn/
1112
* Ubuntu Wiki: https://wiki.ubuntu.com/
@@ -137,6 +138,8 @@
137138
* 记录终端下的操作(tee):http://os.chinaunix.net/a2008/0810/986/000000986568.shtml
138139
* Shell脚本交互之:自动输入密码: http://blog.csdn.net/zhangjikuan/article/details/51105166
139140
* Shell中重定向<<EOF注意事项: http://blog.csdn.net/iamlaosong/article/details/40509399
141+
* linux 终端backspace不能删除字符: http://blog.163.com/chen_cong_520/blog/static/841151912010829240926/
142+
140143
* 音乐播放软件:clementine
141144
* rhythmbox歌词显示工具:osd-lyrics
142145
* 桌面美化工具:compiz

0 commit comments

Comments
 (0)