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

KADB支持arm架构Pro*c

Arm环境pro*c编译

下载oracle的arm客户端

Oracle Database 19c for LINUX ARM (aarch64)

客户端静默安装

创建用户

groupadd oinstall
useradd oracle -g oinstall
passwd oracle

创建目录

mkdir -p /u01/app/oracle
chown -R oracle:oinstall /u01/app/
chmod -R 775 /u01/app/
#创建客户端的安装目录

mkdir -R /u01/app/oracle/19.3.0/client

编辑应答文件

应答文件模板在客户端介质的response目录下,修改下面几个参数:

###############################################################################

## Copyright(c) Oracle Corporation 1998,2023. All rights reserved.           ##

##                                                                           ##

## Specify values for the variables listed below to customize                ##

## your installation.                                                        ##

##                                                                           ##

## Each variable is associated with a comment. The comment                   ##

## can help to populate the variables with the appropriate                   ##

## values.                                                                          ##

##                                                                           ##

###############################################################################

#-------------------------------------------------------------------------------

# Do not change the following system generated value.

#-------------------------------------------------------------------------------

oracle.install.responseFileVersion=/oracle/install/rspfmt_clientinstall_response_schema_v19.0.0

#-------------------------------------------------------------------------------

# Unix group to be set for the inventory directory.

#-------------------------------------------------------------------------------

UNIX_GROUP_NAME=oinstall

#-------------------------------------------------------------------------------

# Inventory location.

#-------------------------------------------------------------------------------

INVENTORY_LOCATION=/u01/app/oralnventory

#-------------------------------------------------------------------------------

# Complete path of the Oracle Home

#------------------------------------------------------------------------------- 

ORACLE_HOME=/u01/app/oracle/19.3.0/client

#-------------------------------------------------------------------------------

# Complete path of the Oracle Base.

#-------------------------------------------------------------------------------

ORACLE_BASE=/u01/app/oracle

#------------------------------------------------------------------------------

#Name       : INSTALL_TYPE

#Datatype   : String

#Description: Installation type of the component.

#

#             The following choices are available. The value should contain

#             only one of these choices.

#               - Administrator

#               - Runtime

#               - InstantClient

#               - Custom

#

#Example    : INSTALL_TYPE = Administrator

#------------------------------------------------------------------------------

oracle.install.client.installType=Administrator

#-------------------------------------------------------------------------------

# Name       : oracle.install.client.customComponents

# Datatype   : StringList

#

# This property is considered only if INSTALL_TYPE is set to "Custom"

#

# Description: List of Client Components you would like to install

#

#   The following choices are available. You may specify any

#   combination of these choices.  The components you choose should

#   be specified in the form "internal-component-name:version"

#   Below is a list of components you may specify to install.

#

# oracle.sqlj:19.0.0.0.0 -- "Oracle SQLJ"

# oracle.rdbms.util:19.0.0.0.0 -- "Oracle Database Utilities"

# oracle.javavm.client:19.0.0.0.0 -- "Oracle Java Client"

# oracle.sqlplus:19.0.0.0.0 -- "SQL*Plus"

# oracle.dbjava.jdbc:19.0.0.0.0 -- "Oracle JDBC/THIN Interfaces"

# oracle.ldap.client:19.0.0.0.0 -- "Oracle Internet Directory Client"

# oracle.rdbms.oci:19.0.0.0.0 -- "Oracle Call Interface (OCI)"

# oracle.precomp:19.0.0.0.0 -- "Oracle Programmer"

# oracle.xdk:19.0.0.0.0 -- "Oracle XML Development Kit"

# oracle.network.aso:19.0.0.0.0 -- "Oracle Advanced Security"

# oracle.oraolap.mgmt:19.0.0.0.0 -- "OLAP Analytic Workspace Manager and Worksheet"

# oracle.network.client:19.0.0.0.0 -- "Oracle Net"

# oracle.network.cman:19.0.0.0.0 -- "Oracle Connection Manager"

# oracle.network.listener:19.0.0.0.0 -- "Oracle Net Listener"

# oracle.ordim.client:19.0.0.0.0 -- "Oracle Multimedia Client Option"

# oracle.odbc:19.0.0.0.0 -- "Oracle ODBC Driver"

# oracle.has.client:19.0.0.0.0 -- "Oracle Clusterware High Availability API"

# oracle.dbdev:19.0.0.0.0 -- "Oracle SQL Developer"

# oracle.rdbms.scheduler:19.0.0.0.0 -- "Oracle Scheduler Agent"

#

# Example    : oracle.install.client.customComponents="oracle.precomp:19.0.0.0.0","oracle.oraolap.mgmt:19.0.0.0.0","oracle.rdbms.scheduler:19.0.0.0.0"

#-------------------------------------------------------------------------------

oracle.install.client.customComponents=

#-------------------------------------------------------------------------------

# Host name to be used for by the Oracle Scheduler Agent.

# This needs to be entered in case oracle.rdbms.scheduler is selected in the

# list of custom components during custom install

#

# Example    : oracle.install.client.schedulerAgentHostName = acme.domain.com

#------------------------------------------------------------------------------

oracle.install.client.schedulerAgentHostName=

#------------------------------------------------------------------------------

# Port number to be used for by the Oracle Scheduler Agent.

# This needs to be entered in case oracle.rdbms.scheduler is selected in the

# list of custom components during custom install

#

# Example: oracle.install.client.schedulerAgentPortNumber = 1500

#------------------------------------------------------------------------------

oracle.install.client.schedulerAgentPortNumber=

执行命令,安装:

./runInstaller -silent -responseFile /home/oracle/client/client_install.rsp -ignoreSysPrereqs -noconfig

注意,应答文件必须为绝对路径

安装时报错:

[oracle@node11 client]$ ./runInstaller -silent -responseFile /home/oracle/client/client_install.rsp -ignoreSysPrereqs -noconfig

Starting Oracle Universal Installer...

Checking Temp space: must be greater than 415 MB.   Actual 259467 MB    Passed

Checking swap space: must be greater than 150 MB.   Actual 4095 MB    Passed

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2024-11-25_03-57-43PM. Please wait ...[oracle@node11 client]$

[oracle@node11 client]$

[oracle@node11 client]$

[oracle@node11 client]$

[oracle@node11 client]$

[oracle@node11 client]$ [FATAL] An internal error occurred within cluster verification framework

An error occurred in creating a TaskFactory object or in generating a task list

PRVG-0282 : failed to retrieve the operating system distribution ID

A log of this session is currently saved as: /tmp/OraInstall2024-11-25_03-57-43PM/installActions2024-11-25_03-57-43PM.log. Oracle recommends that if you want to keep this log, you should move it from the temporary location.

解决方法:

export CV_ASSUME_DISTID=RHEL7.6
export LANG=en_US

设置环境变量

vi .bash_profile

#在文件末尾添加如下配置

export ORACLE_HOME=/home/u01/app/oracle/19.3.0/client

export NLS_DATE_FORMAT=“YYYY-MM-DD HH24:Mi:SS”

export LD_LIBRARY_PATH=$ORACLE_HOME/lib

export PATH = $ORACLE_HOME/lib

export PATH=ORACLE_HOME/lib

export PATH=ORACLE_HOME/bin:$PATH

export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK

编译

g++ -o oci oci.cpp -I ./include/oci/linux -L ./lib –lclntsh


http://www.kler.cn/a/410124.html

相关文章:

  • 【Redis_Day6】Hash类型
  • 电脑开启虚拟化的方法
  • 数据库的联合查询
  • 优雅的不等式——Hard
  • 网络爬虫——分布式爬虫架构
  • C语言蓝桥杯组题目
  • 开源客户关系管理平台EspoCRM
  • 001 MATLAB介绍
  • 【Spring Cloud】 Gateway配置说明示例
  • GitHub 和 GitLab
  • SD-WAN在构建混合云架构中的作用
  • shell练习
  • 【数据分享】2001-2023年我国30米分辨率冬小麦种植分布栅格数据(免费获取)
  • 1. Klipper从安装到运行
  • 单片机结合OpenCV
  • 发布订阅模式(TS)
  • [less] Operation on an invalid type
  • 数据治理:在企业数据管理中的关键角色与实现路径——《DAMA 数据管理知识体系指南》读书笔记- 第 3 章
  • 从入门到精通:解析如何使用亚马逊云服务器(AWS EC2)
  • 证明面积不超过1/8的一组凸形状可以平移填充进面积为1的凸形状内而不重叠
  • 非root用户安装CUDA
  • [M最短路] lc743. 网络延迟时间(spfa最短路+单源最短路)
  • 【Redis_Day6】Hash类型
  • leetcode hot100【LeetCode 238.除自身以外数组的乘积】java实现
  • Flink Standalone集群模式安装部署全攻略
  • leetcode day12 贪心 605+44