我在 CentOS 7.3 环境下安装了 PostgreSQL 10.1。
服务已启动(postmaster.pid
文件存在于 下/var/lib/pgsql/10/data
),但我需要在pg_hba.conf
.
但是,尝试不同的命令,我得到以下信息:
pg_ctl reload -D /var/lib/pgsql/10/data
bash: pg_ctl: command not found
service postgresql reload
Redirecting to /bin/systemctl reload postgresql.service
Failed to reload postgresql.service: Unit not found.
Run Code Online (Sandbox Code Playgroud) 在CentOS v7上使用phpPgAdmin v5.6和PostgreSQL v11.2,当我尝试访问架构中的选项卡时,出现以下错误:Functions
public
ERROR: column p.proisagg does not exist
LINE 18: WHERE NOT p.proisagg
^
HINT: Perhaps you meant to reference the column "p.prolang".
Dans l'instruction :
SELECT
p.oid AS prooid,
p.proname,
p.proretset,
pg_catalog.format_type(p.prorettype, NULL) AS proresult,
pg_catalog.oidvectortypes(p.proargtypes) AS proarguments,
pl.lanname AS prolanguage,
pg_catalog.obj_description(p.oid, 'pg_proc') AS procomment,
p.proname || ' (' || pg_catalog.oidvectortypes(p.proargtypes) || ')' AS proproto,
CASE WHEN p.proretset THEN 'setof ' ELSE '' END || pg_catalog.format_type(p.prorettype, NULL) AS proreturns, …
Run Code Online (Sandbox Code Playgroud) 背景
我正在尝试在 CentOS 7(部署为 Hyper-V 虚拟机)上安装 Oracle 12c,如本安装指南所述。
问题
除了 Oracle 数据库配置助手之外,我的安装一切顺利。
安装为我提供了以下消息:
ACTION: Specify a free port
Action - Refer to the logs or contact Oracle Support Services.
调试信息和尝试的操作
当我在错误日志上运行 tail 时,我收到以下与安装相关的消息:
INFO: ... GenericInternalPlugIn: getting configAssistantParmas.
INFO: ... GenericInternalPlugIn: checking secretArguments.
INFO: ... GenericInternalPlugIn: starting read loop.
INFO: Read: [FATAL] [DBT-06103] The port (5,500) is already in use.
INFO: [FATAL] [DBT-06103] The port (5,500) is already in use.
WARNING: Skipping line: [FATAL] [DBT-06103] The port (5,500) …
Run Code Online (Sandbox Code Playgroud) 使用 CentOS 7。
MongoDB 版本:3.2.15
主机名:node1
制作目录:
mkdir /mongo-metadata
Run Code Online (Sandbox Code Playgroud)
/etc/mongod.conf
# mongod.conf
# for documentation of all options, see:
# http://docs.mongodb.org/manual/reference/configuration-options/
# where to write logging data.
systemLog:
destination: file
logAppend: true
path: /var/log/mongodb/mongod.log
# Where and how to store data.
storage:
dbPath: /mongo-metadata
journal:
enabled: true
# engine:
# mmapv1:
# wiredTiger:
# how the process runs
processManagement:
fork: true # fork and run in background
pidFilePath: /var/run/mongodb/mongod.pid # location of pidfile
# network interfaces
net:
port: 27017
bindIp: …
Run Code Online (Sandbox Code Playgroud) 将数据加载到表中时,出现以下错误:
ERROR: row is too big: size 8680, maximum size 8160
Run Code Online (Sandbox Code Playgroud)
该表中有 1000 多列,这似乎是问题所在。一般的互联网建议是“重构!” 或“正常化!”。例如,这篇文章。不幸的是,我不相信这样的建议适用于我的情况。
该表用于存储从设备收集的数据。作为分析的一部分,设备会生成 PNG 图像。PNG 包含 1024 个像素。每个像素都有一个关联的数值。与像素数据一起的是与分析相关的各种其他领域。把桌子分成几部分真的没有意义。这些字段都与正在分析的特定对象在逻辑上相关联。
Postgres 似乎不喜欢每个像素都有自己的字段。该表具有以下形式的字段:pixel_1
, pixel_2
, ..., pixel_1024
。注意,这是从通常的例子有着根本的不同phone_number_1
,phone_number_2
等每个像素是由于其位置的一个唯一的对象。 pixel_1
具有不同的位置,pixel_123
并且每个像素都有一个相关联的值。它们之间的共同点是它们都用于描述相同的分析对象。它们是 PNG 中给出的视觉表示的定量模拟。
我希望我已经把上下文说清楚了。我试图将问题归结为它的本质,但我怀疑可能需要进行一些澄清。如果需要澄清,请告诉我。
编辑:作为一项实验,我尝试将像素分解为单独的表格。这似乎是唯一可能的重构方式。但是 1024 列会产生相同的错误。
centos-7 ×5
postgresql ×3
functions ×1
installation ×1
mongodb ×1
oracle ×1
oracle-12c ×1
pg-hba.conf ×1
replication ×1