Oracle

宿主主机如何访问虚拟机中的docker服务

我只是一个虾纸丫 提交于 2021-02-07 12:54:17
宿主主机如何访问虚拟机中的docker服务 网上的回答不一而足,然而都没有解决,最后上了Stack Overflow,找到了答案,国内的小伙伴还得加油呀. 环境 宿主机系统 : window 8, 虚拟机软件: Oracle VirtualBox (CentOS7) docker version: 19.03.7 问题描述 虚拟机内部 systemctl start docker 启动docker , docker run -d -p 80:80 nginx 启动nginx 服务, 虚拟机ip 192.168.56.200 ,docker 服务ip 172.17.0.16 宿主机浏览器 localhost:81 无法访问nginx . 解决方法: 打开virtualbox 选择docker服务所在的虚拟机 点击设置 -> 网络 选择 NAT 网卡 点击高级 -> 端口转发 6 添加规则 : tcp 协议 ,主机和子系统端口设置,如 host:80 guest:80 浏览器访问 localhost:80 ,可以查看到nginx 界面 原文: 1. Open Oracle VM VirtualBox Manager 2. Select the VM used by Docker 3. Click Settings -> Network 4. Adapter 1 should

Oracle Database-别无选择时的EXP导出数据手记

╄→尐↘猪︶ㄣ 提交于 2021-02-07 12:20:41
更多精彩内容,请登录: ke.sandata.com.cn 如今已经是Oracle Database 21c的时代了,你是否还考虑过使用EXP/IMIP这些9i中的工具呢? 其实在特殊的场景中,这些看似“老的工具”,也是可以帮助你解决棘手的问题。 比如:可以在数据库只读模式下,导出数据等。又或者将其应用在我下文中所描述的场景中。 进入正题,某客户找到我,描述了其数据库无法启动的故障,经过分析得出数据库软件被注入了恶意的代码,导致TAB$表数据被删除,从而无法启动数据库,告警日志里面的输出如下: Errors in file D:\APP\ADMINISTRATOR\diag\rdbms\xxxx\xxxx\trace\xxxx_ora_13308.trc (incident=26578): ORA-00600: 内部错误代码, 参数: [16703], [1403], [20], [], [], [], [], [], [], [], [], [] Incident details in: D:\APP\ADMINISTRATOR\diag\rdbms\xxxx\xxxx\incident\incdir_26578\xxxx_ora_13308_i26578.trc Use ADRCI or Support Workbench to package the incident.

Join elimination not working in Oracle with sub queries

自古美人都是妖i 提交于 2021-02-07 12:16:34
问题 I am able to get join elimination to work for simple cases such as one-to-one relations, but not for slightly more complicated scenarios. Ultimately I want to try anchor modelling, but first I need to find a way around this problem. I'm using Oracle 12c Enterprise Edition Release 12.1.0.2.0. DDL for my test case: drop view product_5nf; drop table product_color cascade constraints; drop table product_price cascade constraints; drop table product cascade constraints; create table product(

Join elimination not working in Oracle with sub queries

心不动则不痛 提交于 2021-02-07 12:15:29
问题 I am able to get join elimination to work for simple cases such as one-to-one relations, but not for slightly more complicated scenarios. Ultimately I want to try anchor modelling, but first I need to find a way around this problem. I'm using Oracle 12c Enterprise Edition Release 12.1.0.2.0. DDL for my test case: drop view product_5nf; drop table product_color cascade constraints; drop table product_price cascade constraints; drop table product cascade constraints; create table product(

Join elimination not working in Oracle with sub queries

China☆狼群 提交于 2021-02-07 12:15:29
问题 I am able to get join elimination to work for simple cases such as one-to-one relations, but not for slightly more complicated scenarios. Ultimately I want to try anchor modelling, but first I need to find a way around this problem. I'm using Oracle 12c Enterprise Edition Release 12.1.0.2.0. DDL for my test case: drop view product_5nf; drop table product_color cascade constraints; drop table product_price cascade constraints; drop table product cascade constraints; create table product(

ODP.net Oracle Decimal Number precision problem when filling a dataset. Exception: Arithmetic operation resulted in an overflow

故事扮演 提交于 2021-02-07 11:28:43
问题 I am working in c# .net 2 (Visual Studio 2005 SP1) attempting to fill a dataset with the results from a select * from table from an Oracle10g database. The .net framework, IDE and database cannot be changed at this client site. I'm connecting using the ODP.net provider the dll version is 2.102.2.20 When I run the fill command I get an Exception: Arithmetic operation resulted in an overflow Also if I attempt to view the offending column in the Visual Studio designer (Show Table Data) I get for

Flag individuals that share common features with Oracle SQL

﹥>﹥吖頭↗ 提交于 2021-02-07 11:13:41
问题 Consider the following table: ID Feature 1 1 1 2 1 3 2 3 2 4 2 6 3 5 3 10 3 12 4 12 4 18 5 10 5 30 I would like to group the individuals based on overlapping features. If two of these groups again have overlapping features, I would consider both as one group. This process should be repeated until there are no overlapping features between groups. The result of this procedure on the table above would be: ID Feature Flag 1 1 A 1 2 A 1 3 A 2 3 A 2 4 A 2 6 A 3 5 B 3 10 B 3 12 B 4 12 B 4 18 B 5 10

Connect to DB using LDAP with python cx_Oracle

北战南征 提交于 2021-02-07 10:52:52
问题 I have a set of python scripts that use cx_Oracle to connect to a remote DB. This is a large project, were this connections are used several times. Additionally, I produce an .exe file that is distributed and should be as self-contained as possible. In other words, if I send you the .exe, you should be able to run it without any extra tinkering (I use pyinstaller ) Right now, I get a connection using ip = 'myhost.example.pt' port = 1521 SID = 'MYDB_PRD.EXAMPLE.PT' dsn_tns = cx_Oracle.makedsn

Connect to DB using LDAP with python cx_Oracle

二次信任 提交于 2021-02-07 10:52:43
问题 I have a set of python scripts that use cx_Oracle to connect to a remote DB. This is a large project, were this connections are used several times. Additionally, I produce an .exe file that is distributed and should be as self-contained as possible. In other words, if I send you the .exe, you should be able to run it without any extra tinkering (I use pyinstaller ) Right now, I get a connection using ip = 'myhost.example.pt' port = 1521 SID = 'MYDB_PRD.EXAMPLE.PT' dsn_tns = cx_Oracle.makedsn

How to call a pl/sql anonymous block from an pl/sql anonymous block

荒凉一梦 提交于 2021-02-07 10:50:11
问题 I have the following PL/SQL block and it's working fine. I would like to call this function (TimeToFrame) but from another PL/SQL block. I cannot declare this function in a procedure or package that is stored in the DB. In other words how can I call a pl/sql from another pl/sql where both pl/sql are anonymous blocks?? What if I put that function in a separate .sql file. Can't I call that .sql file from my anonymous block and pass it some IN parameters and have that fct return OUT params?