1 概述
Dockerfile基于DSL(Domain Specific Language)语法的指令来构建镜像,利用Dockerfile构建镜像具备可重复性和幂等性,比利用docker commit的方式更具优势。
2 指令介绍
每个Dockerfile指令必须大写
(1)FROM:[......]
2017年10月21日 Docker No comments Docker
2017年10月19日 Python No comments Python
2017年10月19日 数据库 No comments
切换oracle帐号
1 |
[root@host-10-10-10-205 ~]# su - oracle |
执行启动操作,并查看数据库状态
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
[oracle@host-10-10-10-205 ~]$ sqlplus /nolog SQL*Plus: Release 10.2.0.1.0 - Production on Thu Oct 19 15:25:25 2017 Copyright (c) 1982, 2005, Oracle. All rights reserved. SQL> connect /as sysdba Connected to an idle instance. SQL> startup ORACLE instance started. Total System Global Area 2147483648 bytes Fixed Size 2022144 bytes Variable Size 436208896 bytes Database Buffers 1694498816 bytes Redo Buffers 14753792 bytes Database mounted. Database opened. # 查看数据库状态 SQL> select instance_name,status from v$instance; INSTANCE_NAME STATUS ---------------- ------------ ggbak10 OPEN # 查看数据库名称 SQL> select name from v$database; NAME --------- GGBAK10 # 查看数据库表名称 SQL> desc v$database; Name Null? Type ----------------------------------------- -------- ---------------------------- DBID NUMBER NAME VARCHAR2(9) CREATED DATE RESETLOGS_CHANGE# NUMBER |
启动监听器
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
[oracle@host-10-10-10-205 ~]$ lsnrctl start LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 19-OCT-2017 15:50:35 Copyright (c) 1991, 2005, Oracle. All rights reserved. Starting /opt/oracle/product/10.2.0.1/bin/tnslsnr: please wait... TNSLSNR for Linux: Version 10.2.0.1.0 - Production System parameter file is /opt/oracle/product/10.2.0.1/network/admin/listener.ora Log messages written to /opt/oracle/product/10.2.0.1/network/log/listener.log Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1))) Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=host-10-10-10-205)(PORT=1521))) Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1))) STATUS of the LISTENER ------------------------ Alias LISTENER Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production Start Date 19-OCT-2017 15:50:37 Uptime 0 days 0 hr. 0 min. 0 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Listener Parameter File /opt/oracle/product/10.2.0.1/network/admin/listener.ora Listener Log File /opt/oracle/product/10.2.0.1/network/log/listener.log Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=host-10-10-10-205)(PORT=1521))) Services Summary... Service "PLSExtProc" has 1 instance(s). Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service... The command completed successfully |
查看[……]