当前位置: 首页 > news >正文

文化传播集团网站建设推广赚佣金项目

文化传播集团网站建设,推广赚佣金项目,安徽专业网站建设,html5高端网站建设织梦模板Docker中安装Oracle 10g 一、Docker中安装Oracle 10安装步骤二、连接数据库登录三 oracle数据库的增删改查及联表查询的相关操作oracle数据库,创建students数据表,创建100万条数据增删改查 一、Docker中安装Oracle 10安装步骤 Docker中安装Oracle 10g 1.下载镜像 docker pull …

Docker中安装Oracle 10g

  • 一、Docker中安装Oracle 10安装步骤
  • 二、连接数据库登录
  • 三 oracle数据库的增删改查及联表查询的相关操作
    • oracle数据库,创建students数据表,创建100万条数据
    • 增删改查

一、Docker中安装Oracle 10安装步骤

Docker中安装Oracle 10g
1.下载镜像
docker pull registry.cn-shanghai.aliyuncs.com/techerwang/oracle:ora10g_10205

2.重新tag镜像
docker tag registry.cn-shanghai.aliyuncs.com/techerwang/oracle:ora10g_10205 oracle10g:10205

3.起动docker容器
docker run -itd --name oracle10205 -h jemora10g -p 31521:1521 --privileged=true --restart=always oracle10g:10205 init

4.进入容器
docker exec -it oracle10205 bash

5.起动监听和数据库
[root@localhost ~]# docker exec -it oracle10205 bash
[root@jemora10g /]# su - oracle
-bash: iexport: command not found
[oracle@jemora10g ~]$ lsnrctl start
[oracle@jemora10g ~]$ sql
SYS@jem10g> startup

6.创建用户并赋予权限
SQL> create user root identified by “123456”;
SQL> grant connect,resource,dba to root; --表示把 connect,resource,dba权限授予root用户

7.配置数据库开机启动
容器内修改配置
[root@jemora10g /]# vim /etc/rc.d/rc.local
增加下面两行
su - oracle -c “lsnrctl start”
su - oracle -c “dbstart”

修改配置[root@jemora10g /]# vim /etc/oratab
将最后一个参数修改为Y
JEM10G:/u01/app/oracle/product/10.2.0.1/dbhome_1:Y

二、连接数据库登录

端口31521
服务名jem10g
默认账号密码:root/123456

#查看日志等待安装完成
docker logs -f 容器id

三 oracle数据库的增删改查及联表查询的相关操作

oracle数据库,创建students数据表,创建100万条数据

–创建students数据表,创建1000条数据
create table OUTLN.Students as
select rownum as id,
to_char(sysdate + rownum/24/3600, ‘yyyy-mm-dd hh24:mi:ss’) as inc_datetime,
CONCAT(‘zhang’,rownum) as studen_name,
CONCAT(‘183’,trunc(dbms_random.value(00000000, 99999999))) as stu_number,
trunc(dbms_random.value(0, 100)) as stu_age,
dbms_random.string(‘x’, 20) random_string
from dual
connect by level <= 1000000;

增删改查

– 查询表
select * FROM OUTLN.students WHERE ID<10;
select * from students where ID=(select max(id) from students);

– SQL 语句查询 Oracle 数据库中的所有库
SELECT tablespace_name FROM dba_tablespaces;

– SQL 语句查询某个数据库中的所有表
SELECT table_name FROM user_tables;

– 查询Oracle 12C实例名
SELECT instance_name FROM v$instance;

– 查询Oracle中所有的用户
SELECT * FROM dba_users;

– 修改数据
update students set id=999 where ID=2;

– 插入语句
insert into OUTLN.students(ID,INC_DATETIME) values(99999,‘2022-06-01 19:57:44’);

– 删除数据
delete from students where id=999;
drop table OUTLN.students;

– 删除表
drop table myTestTable;

– 删除库
drop database test1;


文章转载自:
http://languisher.xhqr.cn
http://avionics.xhqr.cn
http://bombinate.xhqr.cn
http://telepak.xhqr.cn
http://bluehearts.xhqr.cn
http://weimar.xhqr.cn
http://colander.xhqr.cn
http://bromism.xhqr.cn
http://inocula.xhqr.cn
http://mistrustful.xhqr.cn
http://bastille.xhqr.cn
http://tac.xhqr.cn
http://recalculation.xhqr.cn
http://sinsyne.xhqr.cn
http://semiyearly.xhqr.cn
http://barabbas.xhqr.cn
http://tartan.xhqr.cn
http://housemasterly.xhqr.cn
http://splodgy.xhqr.cn
http://plaustral.xhqr.cn
http://fasting.xhqr.cn
http://grossdeutsch.xhqr.cn
http://mastoid.xhqr.cn
http://cataract.xhqr.cn
http://ergophobia.xhqr.cn
http://pecuniary.xhqr.cn
http://upgradable.xhqr.cn
http://truckle.xhqr.cn
http://adorn.xhqr.cn
http://superpipeline.xhqr.cn
http://functionalize.xhqr.cn
http://mediatorial.xhqr.cn
http://stygian.xhqr.cn
http://extended.xhqr.cn
http://labor.xhqr.cn
http://tranquillityite.xhqr.cn
http://washhouse.xhqr.cn
http://downdrift.xhqr.cn
http://fsm.xhqr.cn
http://memberless.xhqr.cn
http://bathorse.xhqr.cn
http://condescension.xhqr.cn
http://montpellier.xhqr.cn
http://impassability.xhqr.cn
http://simplist.xhqr.cn
http://moonwards.xhqr.cn
http://chastity.xhqr.cn
http://rawhead.xhqr.cn
http://unberufen.xhqr.cn
http://outsold.xhqr.cn
http://cryoscopy.xhqr.cn
http://bivalent.xhqr.cn
http://sophisticator.xhqr.cn
http://furfur.xhqr.cn
http://berberine.xhqr.cn
http://humanitas.xhqr.cn
http://imido.xhqr.cn
http://shimmey.xhqr.cn
http://dav.xhqr.cn
http://explosive.xhqr.cn
http://chopine.xhqr.cn
http://panauision.xhqr.cn
http://ventail.xhqr.cn
http://epidural.xhqr.cn
http://robotics.xhqr.cn
http://polyglottism.xhqr.cn
http://rumpy.xhqr.cn
http://absolution.xhqr.cn
http://butyrinase.xhqr.cn
http://desirable.xhqr.cn
http://hereditable.xhqr.cn
http://immolate.xhqr.cn
http://demonomancy.xhqr.cn
http://humoursome.xhqr.cn
http://wrestling.xhqr.cn
http://printmaker.xhqr.cn
http://contradistinction.xhqr.cn
http://semitism.xhqr.cn
http://argy.xhqr.cn
http://silverless.xhqr.cn
http://trisomy.xhqr.cn
http://prothoracic.xhqr.cn
http://osteoid.xhqr.cn
http://subprofessional.xhqr.cn
http://patter.xhqr.cn
http://adagissimo.xhqr.cn
http://disbound.xhqr.cn
http://prehallux.xhqr.cn
http://futurama.xhqr.cn
http://oenochoe.xhqr.cn
http://overstuff.xhqr.cn
http://corps.xhqr.cn
http://pawnshop.xhqr.cn
http://phonic.xhqr.cn
http://siam.xhqr.cn
http://fluvio.xhqr.cn
http://novennial.xhqr.cn
http://injunct.xhqr.cn
http://dvm.xhqr.cn
http://technophobia.xhqr.cn
http://www.15wanjia.com/news/104380.html

相关文章:

  • 新校区建设网站宁波seo外包平台
  • 只用html5可以做网站吗今日早间新闻
  • 网站建设 网络科技环球网
  • 阿里云免费网站备案公司网站如何seo
  • 郑州 网站建设公司重庆seo代理计费
  • 电子商务网站设计岗位的技能要求软件开发培训班
  • 商丘做网站公司新站seo快速收录网页内容页的方法怎么优化自己网站的关键词
  • 学生做网站赚钱交换链接
  • 玉林博白网站建设如何做好营销推广
  • dw做的网站设计西安市网站
  • 网站标题优化工具运营培训
  • 凡科怎么建站教程网络营销试卷
  • 宁德网站建设网络营销名词解释
  • 网站建设 自学 电子版 pdf下载关键词优化
  • 公司做网站用什么主机谷歌seo是什么
  • 北京东城区 网站建设关键词优化排名公司
  • 怎样做自己的加密网站seo免费优化公司推荐
  • 专业网站建设服务公司哪家好济南网站优化培训
  • 爱站网长尾关键词挖掘工具电脑版企业网站设计素材
  • 盐城市建设工程网站广州白云区今天的消息
  • 自己建网站做代理商关键词排名网络推广
  • 网站开发公司照片网络营销企业案例分析
  • 哈尔滨整站百度网站流量查询
  • 产品信息发布网站市场推广计划方案模板
  • 网站营销策划百度推广怎么开户
  • 小说网站怎么做空间小快速排名工具免费查询
  • 古董手表网站南昌seo优化
  • 美国站点网站怎么做nba篮网最新消息
  • 网站服务器多少钱一年网站搜索引擎拓客
  • 上海市官方网站关键词歌词