[ The imperialist Japanese military must officially acknowledge and apologize for the coercion of young women into sexual slaves. / êꪤҳàõªòàõªÎÒ¿Ö˪˪·ª¿ð¨ÏÐñ«ëùìíÜâÏÚªÎ?ð¤àõªòÍëãÒªËìãªá¡¢Þóñªª·ªÊª±ªìªÐªÊªéªÊª¤. ]

»ç¿ëÀÚ

ID:
PW:

INDEX
01.°Ô½ÃÆÇ
°Ô½ÃÆÇ [72]
02.File Book
File ÀÚ·á½Ç [96]
Site Link [14]
°³ÀÎÆú´õ [201]
03.Field Book
Altibase [19]
Tibero [31]
MS-SQL [32]
MySQL [47]
DB2 [79]
ORACLE [3206]
PSQL [143]
CUBRID [5]
±âŸÁ¤º¸ [194]
¿î¿µÃ¼Á¦ [634]
04.Q/A Book
Q/A [53]
05.¹æ¸í·Ï
¹æ¸í·Ï [54]
·¹º§¾÷ [37]
±¸ÀÎ/±¸Á÷ [2]

±â³äÀÏ
Search
LINK
+ °¡Á· Hompy
+ DNSEver
IOTN :: Field Book :: ¿î¿µÃ¼Á¦

 È¸¿ø°¡ÀÔ

docker search / rename / commit (container to image) / oracle linux 7 OL7 / oracle linux 8 OL8 / Oracle Database 19C Install
ÃÖ±æÈ£ [LIST]   2020-07-16 02:08:19, Á¶È¸ : 795



Ãß°¡ °ü·Ã pkg º¸°ü
docker run -dit --restart unless-stopped --name ol8 --hostname ol8 --cpus=2 --memory=10g --memory-swap=20g \
--shm-size=10g -v /docker/ol8:/oracle -p 1521:1521 oraclelinux:8 bash
docker exec -it ol8 bash
yum install yum-utils
yum install -y oracle-database-preinstall-19c
yumdownloader --resolve oracle-database-preinstall-19c


Ãß°¡ Å×½ºÆ®: ¼³Ä¡ ¿Ï·áÈÄ/Á¦°Å/´Ù½Ã ¼³Ä¡Çؼ­ ±âÁ¸ DB ÀߵǴÂÁö È®ÀÎ ( ¿ä¾à )

docker run -dit --restart unless-stopped --name ol7 --hostname ol7 --cpus=2 --memory=10g --memory-swap=20g \
--shm-size=10g -v /docker/ol7:/oracle -p 1521:1521 oraclelinux:7 bash


dbca -silent \
         -createDatabase \
                 -sid orcl \
                 -gdbName orcl \
                 -totalMemory 8192 \
                 -templateName General_Purpose.dbc \
                 -characterSet KO16MSWIN949 \
                 -datafileDestination /oracle/oradata/ \
                 -emConfiguration NONE \
                 -sysPassword oracle \
                 -systemPassword oracle \
-J-Doracle.assistants.dbca.validate.ConfigurationParams=false

docker stop ol7
docker commit ol7 ol7:0
docker rm ol7

docker run -d -it --name ol7 --hostname ol7 --cpus=2 --memory=10g --memory-swap=20g \
--shm-size=10g -v /docker/ol7:/oracle -p 1521:1521 oraclelinux:7 bash



docker search oracle
# ¸¸µé¶§ port, mount Á¤ÀÇ / ³ªÁß¿¡ ÇÏ·Á¸é ±ÍÂú´Ù.
docker run --name ol7 -d -p 1511:1521 -v /docker/ol7:/oradata oraclelinux:7 bash
docker ps -a


# -p -v option Ãß°¡/º¯°æ
# ÄÁÅ×ÀÌ³Ê À̸§ º¯°æ
docker rename ol7 ol7old

docker ps -a
CONTAINER ID
21ab1311c5c8 <<===  

# option º¯°æÀ» À§ÇØ commit [ container -> image ]
docker commit 21ab1311c5c8 ol7  ## ol7 image
docker commit ol7 ol7:0         ## container name ol7 to image ol7:0 ÀúÀå

# optionÀ» Ãß°¡/º¯°æ ÇØ¼­ container ½ÇÇà
docker run -it --name ol7 -d -p 1511:1521 -v /docker/ol7:/oradata ol7 bash

# --name ¾ÈÁذæ¿ì
# CONTAINER ID¸¦ ÁÖ°í ÄÁÅ×ÀÌ³Ê À̸§À» ¸¸µé°Å³ª º¯°æÇÑ´Ù.
docker rename ec170e6f292d ol7

docker exec -it ol7 bash


# container <-> main os ÆÄÀÏ Ã³¸®
# df ¾Æ·¡¿Í °°ÀÌ mount µÇ¾î ÀÖ´Ù.
# .../merged/ Ãß°¡,º¯°æµÈ µ¥ÀÌÅÍ
Filesystem               1K-blocks       Used Available Use% Mounted on
overlay                  124715524  117219904   7495620  94% /var/lib/docker/overlay2/f9cfb138fcc38ac4e7126ff9647a48ba0ff05c973e92f057d7ae5b69065dc651/merged
cp -R /var/lib/docker/overlay2/f9cfb138fcc38ac4e7126ff9647a48ba0ff05c973e92f057d7ae5b69065dc651/merged/oradata/ORA9 \
      /docker/ol7/



## ol7 ¼³Ä¡ / oracle 19c ¼³Ä¡ µû¶ó Çϱâ
https://oracle-base.com/articles/19c/oracle-db-19c-installation-on-oracle-linux-7
https://oracle-base.com/articles/19c/oracle-db-19c-rpm-installation-on-oracle-linux-7

# À̰Š¿ÏÀü ÆíÇØ
yum install -y oracle-database-preinstall-19c
yum update -y

# su - oracle
su: cannot open session: Permission denied
°ü·Ã Á¶Ä¡ : http://iotn.co.kr/power/zboard.php?id=9_3_os&no=563

                     https://www.oracle.com/database/technologies/oracle19c-linux-downloads.html
[root@node1 merged]# scp /mnt/LINUX.X64_oracle-database-ee-19c-1.0-1.x86_64.rpm .
[root@node1 merged]# pwd
/var/lib/docker/overlay2/827377572aed03b8cd6309558258ab24b066903cedae3dfeb29d90fc6a93789a/merged
[root@node1 merged]#


[root@21ab1311c5c8 /]# rpm -Uvh LINUX.X64_oracle-database-ee-19c-1.0-1.x86_64.rpm
Preparing...                          ################################# [100%]
su: cannot open session: Permission denied
[SEVERE] The su command is not configured properly or the oracle user does not have the required privileges to install the Oracle database. If you are running in a Docker environment, ensure to set the environment variable ORACLE_DOCKER_INSTALL=true and try again.
error: %pre(oracle-database-ee-19c-1.0-1.x86_64) scriptlet failed, exit status 1
error: oracle-database-ee-19c-1.0-1.x86_64: install failed
[root@21ab1311c5c8 /]#
[root@21ab1311c5c8 /]# export ORACLE_DOCKER_INSTALL=true
[root@21ab1311c5c8 /]# rpm -Uvh LINUX.X64_oracle-database-ee-19c-1.0-1.x86_64.rpm
Preparing...                          ################################# [100%]
Updating / installing...
   1:oracle-database-ee-19c-1.0-1     ################################# [100%]
[INFO] Executing post installation scripts...
[INFO] Oracle home installed successfully and ready to be configured.
To configure a sample Oracle Database you can execute the following service configuration script as root: /etc/init.d/oracledb_ORCLCDB-19c configure

[root@21ab1311c5c8 /]#
mkdir /oradata
chown oracle:dba /oradata

[root@21ab1311c5c8 /]# vi /etc/init.d/oracledb_ORCLCDB-19c

# Setting the required environment variables
export ORACLE_HOME=/opt/oracle/product/19c/dbhome_1

export ORACLE_VERSION=19c
export ORACLE_SID=ORCLCDB
export TEMPLATE_NAME=General_Purpose.dbc
export CHARSET=AL32UTF8
export PDB_NAME=ORCLPDB1
export LISTENER_NAME=LISTENER
export NUMBER_OF_PDBS=1
export CREATE_AS_CDB=true

[root@21ab1311c5c8 /]# su - oracle
[oracle@21ab1311c5c8 ~]$
cat >> .bash_profile
export ORACLE_HOME=/opt/oracle/product/19c/dbhome_1
export ORACLE_SID=ora19
export PATH=$PATH:$ORACLE_HOME/bin:.
alias sql='sqlplus "/as sysdba"'
alias oh='cd $ORACLE_HOME'

[oracle@21ab1311c5c8 ~]$ . .bash_profile
[oracle@21ab1311c5c8 ~]$
cat > /opt/oracle/product/19c/dbhome_1/network/admin/listener.ora
# listener.ora Network Configuration File: /opt/oracle/product/19c/dbhome_1/network/admin/listener.ora
# Generated by Oracle configuration tools.

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 21ab1311c5c8)(PORT = 1521))
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    )
  )
LOGGING_LISTENER = OFF


[oracle@21ab1311c5c8 ~]$
dbca -silent \
         -createDatabase \
                 -sid ora19 \
                 -gdbName ora19 \
                 -totalMemory 8192 \
                 -templateName General_Purpose.dbc \
                 -characterSet AL32UTF8 \
                 -datafileDestination /oradata \
                 -emConfiguration NONE \
                 -sysPassword orapwd \
                 -systemPassword orapwd \
-J-Doracle.assistants.dbca.validate.ConfigurationParams=false


C:\Users\Administrator>sqlplus system/orapwd@192.168.101.111:1511/ora19

SQL*Plus: Release 11.2.0.4.0 Production on Wed Jul 15 23:52:03 2020

Copyright (c) 1982, 2013, Oracle.  All rights reserved.


Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production

SQL> exit
Disconnected from Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production

C:\Users\Administrator>


docker stop ol7
docker start ol7
docker exec -it ol7 bash
su - oracle / lsnrctl start / db start /

216.73.216.200


  LIST

Á¦¸ñ ÀÛ¼ºÀÚ ÀÛ¼ºÀÏ Á¶È¸
Linux  No package ssmtp available. / Error: Nothing to do    ÃÖ±æÈ£ 2022/05/26 217
Windows  Windows 10 ÇÑ±Û »ç¿ëÀÚ¸í º¯°æ    ÃÖ±æÈ£ 2022/04/06 219
AIX (IBM)  ftp backup delete script / ftp ¹é¾÷, »èÁ¦ script    ÃÖ±æÈ£ 2022/03/30 1768
Windows  .bat .cmd file error keep running / .bat .cmd ¿¡·¯ ´ÙÀ½ °è¼Ó ½ÇÇà / call Ãß°¡    ÃÖ±æÈ£ 2022/03/16 228
Windows  forfiles 200M ÀÌ»ó ÆÄÀÏ È®ÀΠ   ÃÖ±æÈ£ 2022/02/16 188
Windows  [ regedit ] reg add    ÃÖ±æÈ£ 2022/02/15 202
Windows  windows tail    ÃÖ±æÈ£ 2022/02/10 242
Solaris  solaris dns ping: unknown host    ÃÖ±æÈ£ 2022/02/08 308
Linux  /dev/mapper/mpathf: read failed after 0 of 4096 at 0: Input/output error    ÃÖ±æÈ£ 2021/12/14 274
Linux  wget --no-check-certificate    ÃÖ±æÈ£ 2021/11/11 1507
Windows  Windows VPN ÁöÁ¤ÇÑ Æ÷Æ®°¡ ÀÌ¹Ì ¿­·Á ÀÖ½À´Ï´Ù. [ ipTIME vpn ]    ÃÖ±æÈ£ 2021/10/20 416
Solaris  solaris 11.4 crontab    ÃÖ±æÈ£ 2021/10/03 1652
Linux  lsblk [ disk mount view ]    ÃÖ±æÈ£ 2021/06/02 404
AIX (IBM)  AIX ssh very slow    ÃÖ±æÈ£ 2021/04/15 568
AIX (IBM)  aix 7.2 /etc/resolv.conf    ÃÖ±æÈ£ 2021/04/15 400
Linux  yum install tigervnc-server / noVNC     ÃÖ±æÈ£ 2021/03/08 437
Windows  I/O ÀåÄ¡ ¿À·ù·Î ÀÎÇØ ¿äûÀÌ ¼öÇàµÉ ¼ö ¾ø½À´Ï´Ù.    ÃÖ±æÈ£ 2021/01/18 673
Linux  ssmtp install / mail script    ÃÖ±æÈ£ 2020/11/25 4308
Linux  SEGIO sasl auth fail [ smtpd_tls_auth_only = yes ]    ÃÖ±æÈ£ 2020/11/16 684

    ¸ñ·Ïº¸±â   ÀÌÀüÆäÀÌÁö   ´ÙÀ½ÆäÀÌÁö [1][2][3] 4 [5][6][7][8][9][10]..[32]   [´ÙÀ½ 10°³]
       

Copyright 1999-2025 Zeroboard / skin by ÃÖ±æÈ£(gilho.kr@gmail.com)
ÃÖ±Ù ´ñ±Û
2016/06/09
201606 Ãß°¡ grid/runcluvfy.sh...
by ÃÖ±æÈ£
2016/05/09
lg tab full screen VNCSERVE...
by ÃÖ±æÈ£
2013/10/17
rsync -avH /data/*

by ÃÖ±æÈ£
ÃÖ±Ù °Ô½Ã¹°
07/03
[ORACLE]
create type ORA-39083 ORA-0230....
by ÃÖ±æÈ£
07/03
[ORACLE]
sms recovery check ORA-00278 ....
by ÃÖ±æÈ£
07/02
[¿î¿µÃ¼Á¦]
rsync -auv.
by ÃÖ±æÈ£