Skip to content

Commit 61de803

Browse files
author
msbbigdata
committed
upload
1 parent 2bd002a commit 61de803

16 files changed

+1455
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ ppt //存放上课使用的ppt文件,已转换成对应的pdf,避免不同
7070
27 jdk新特性-lambda表达式 2019/10/19 15:00-17:00
7171
28 jdk新特性-stream api及自定义注解 2019/10/19 20:00-22:00
7272
29 javase复习 2019/10/20 15:00-17:00
73+
30 oracle安装介绍 2019/10/26 15:30-17:30
7374
......持续更新
7475
```
7576

database/code/01.sql

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
--给表添加注释
2+
comment on table emp is '雇员表';
3+
--给列添加注释
4+
comment on column emp.ename is '雇员姓名';
5+
6+
/*sql语句学习
7+
8+
SELECT [DISTINCT] {*,column alias,..}
9+
FROM table alias
10+
Where 条件表达式
11+
12+
*/
13+
14+
--查询雇员表中部门编号是10的员工
15+
select empno,ename,job from emp where deptno = 10;
16+
--dinstinct 去除重复数据
17+
select distinct deptno from emp;
18+
--去重也可以针对多个字段,多个字段值只要有一个不匹配就算是不同的记录
19+
select distinct deptno,sal from emp;
20+
21+
22+
--在查询的过程中可以给列添加别名,同时也可以给表添加别名
23+
select e.empno 雇员编号,e.ename 雇员名称,e.job 雇员工作 from emp e where e.deptno = 10;
24+
--给列起别名可以加as,也可以不加,看你心情
25+
select e.empno as 雇员编号,e.ename as 雇员名称,e.job as 雇员工作 from emp e where e.deptno = 10;
26+
--给列起别名,如果别名中包含空格,那么需要将别名整体用“”包含起来
27+
select e.empno as "雇员 编号",e.ename as "雇员 名称",e.job as "雇员 工作" from emp e where e.deptno = 10;
28+
--查询表中的所有字段,可以使用*,但是在项目中千万不要随便使用*,容易被打死
29+
select * from emp;
263 KB
Binary file not shown.

database/note/oracle的安装.docx

656 KB
Binary file not shown.
930 KB
Binary file not shown.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
@echo off
2+
@ECHO Í£Ö¹ Oracle 11g ·þÎñ
3+
net stop "OracleOraDb11g_home1TNSListener"
4+
net stop "OracleServiceORCL"
5+
@ECHO Í£Ö¹Íê±Ï °´ÈÎÒâ¼ü¼ÌÐø
6+
pause
7+
exit
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
@echo off
2+
@ECHO 启动 Oracle 11g 服务
3+
net start "OracleOraDb11g_home1TNSListener"
4+
net start "OracleServiceORCL"
5+
@ECHO 启动完毕 按任意键继续
6+
pause
7+
exit
Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
# copyright (c) 1997 by the Oracle Corporation
2+
#
3+
# NAME
4+
# listener.ora
5+
# FUNCTION
6+
# Network Listener startup parameter file example
7+
# NOTES
8+
# This file contains all the parameters for listener.ora,
9+
# and could be used to configure the listener by uncommenting
10+
# and changing values. Multiple listeners can be configured
11+
# in one listener.ora, so listener.ora parameters take the form
12+
# of SID_LIST_<lsnr>, where <lsnr> is the name of the listener
13+
# this parameter refers to. All parameters and values are
14+
# case-insensitive.
15+
16+
# <lsnr>
17+
# This parameter specifies both the name of the listener, and
18+
# it listening address(es). Other parameters for this listener
19+
# us this name in place of <lsnr>. When not specified,
20+
# the name for <lsnr> defaults to "LISTENER", with the default
21+
# address value as shown below.
22+
#
23+
# LISTENER =
24+
# (ADDRESS_LIST=
25+
# (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))
26+
# (ADDRESS=(PROTOCOL=ipc)(KEY=PNPKEY)))
27+
28+
# SID_LIST_<lsnr>
29+
# List of services the listener knows about and can connect
30+
# clients to. There is no default. See the Net8 Administrator's
31+
# Guide for more information.
32+
#
33+
# SID_LIST_LISTENER=
34+
# (SID_LIST=
35+
# (SID_DESC=
36+
# #BEQUEATH CONFIG
37+
# (GLOBAL_DBNAME=salesdb.mycompany)
38+
# (SID_NAME=sid1)
39+
# (ORACLE_HOME=/private/app/oracle/product/8.0.3)
40+
# #PRESPAWN CONFIG
41+
# (PRESPAWN_MAX=20)
42+
# (PRESPAWN_LIST=
43+
# (PRESPAWN_DESC=(PROTOCOL=tcp)(POOL_SIZE=2)(TIMEOUT=1))
44+
# )
45+
# )
46+
# )
47+
48+
# PASSWORDS_<lsnr>
49+
# Specifies a password to authenticate stopping the listener.
50+
# Both encrypted and plain-text values can be set. Encrypted passwords
51+
# can be set and stored using lsnrctl.
52+
# LSNRCTL> change_password
53+
# Will prompt for old and new passwords, and use encryption both
54+
# to match the old password and to set the new one.
55+
# LSNRCTL> set password
56+
# Will prompt for the new password, for authentication with
57+
# the listener. The password must be set before running the next
58+
# command.
59+
# LSNRCTL> save_config
60+
# Will save the changed password to listener.ora. These last two
61+
# steps are not necessary if SAVE_CONFIG_ON_STOP_<lsnr> is ON.
62+
# See below.
63+
#
64+
# Default: NONE
65+
#
66+
# PASSWORDS_LISTENER = 20A22647832FB454 # "foobar"
67+
68+
# SAVE_CONFIG_ON_STOP_<lsnr>
69+
# Tells the listener to save configuration changes to listener.ora when
70+
# it shuts down. Changed parameter values will be written to the file,
71+
# while preserving formatting and comments.
72+
# Default: OFF
73+
# Values: ON/OFF
74+
#
75+
# SAVE_CONFIG_ON_STOP_LISTENER = ON
76+
77+
# USE_PLUG_AND_PLAY_<lsnr>
78+
# Tells the listener to contact an Onames server and register itself
79+
# and its services with Onames.
80+
# Values: ON/OFF
81+
# Default: OFF
82+
#
83+
# USE_PLUG_AND_PLAY_LISTENER = ON
84+
85+
# LOG_FILE_<lsnr>
86+
# Sets the name of the listener's log file. The .log extension
87+
# is added automatically.
88+
# Default=<lsnr>
89+
#
90+
# LOG_FILE_LISTENER = lsnr
91+
92+
# LOG_DIRECTORY_<lsnr>
93+
# Sets the directory for the listener's log file.
94+
# Default: <oracle_home>/network/log
95+
#
96+
# LOG_DIRECTORY_LISTENER = /private/app/oracle/product/8.0.3/network/log
97+
98+
# TRACE_LEVEL_<lsnr>
99+
# Specifies desired tracing level.
100+
# Default: OFF
101+
# Values: OFF/USER/ADMIN/SUPPORT/0-16
102+
#
103+
# TRACE_LEVEL_LISTENER = SUPPORT
104+
105+
# TRACE_FILE_<lsnr>
106+
# Sets the name of the listener's trace file. The .trc extension
107+
# is added automatically.
108+
# Default: <lsnr>
109+
#
110+
# TRACE_FILE_LISTENER = lsnr
111+
112+
# TRACE_DIRECTORY_<lsnr>
113+
# Sets the directory for the listener's trace file.
114+
# Default: <oracle_home>/network/trace
115+
#
116+
# TRACE_DIRECTORY_LISTENER=/private/app/oracle/product/8.0.3/network/trace
117+
# CONNECT_TIMEOUT_<lsnr>
118+
# Sets the number of seconds that the listener waits to get a
119+
# valid database query after it has been started.
120+
# Default: 10
121+
#
122+
# CONNECT_TIMEOUT_LISTENER=10
123+

0 commit comments

Comments
 (0)