欧美一区二区三区老妇人-欧美做爰猛烈大尺度电-99久久夜色精品国产亚洲a-亚洲福利视频一区二区

Oracle12.2簡易客戶端安裝配置

安裝Oracle客戶端挺費時間的,而且大部分功能都用不到,Oracle官方給出了簡易客戶端,直接解壓就可以使用,下載地址:http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html

創(chuàng)新互聯(lián)是一家集網(wǎng)站建設(shè),烏什企業(yè)網(wǎng)站建設(shè),烏什品牌網(wǎng)站建設(shè),網(wǎng)站定制,烏什網(wǎng)站建設(shè)報價,網(wǎng)絡(luò)營銷,網(wǎng)絡(luò)優(yōu)化,烏什網(wǎng)站推廣為一體的創(chuàng)新建站企業(yè),幫助傳統(tǒng)企業(yè)提升企業(yè)形象加強企業(yè)競爭力??沙浞譂M足這一群體相比中小企業(yè)更為豐富、高端、多元的互聯(lián)網(wǎng)需求。同時我們時刻保持專業(yè)、時尚、前沿,時刻以成就客戶成長自我,堅持不斷學(xué)習(xí)、思考、沉淀、凈化自己,讓我們?yōu)楦嗟钠髽I(yè)打造出實用型網(wǎng)站。

下面來看安裝步驟:

1、下載安裝包,我這里把所有的都下載下來了

instantclient-basic-linux.x64-12.2.0.1.0.zip

instantclient-basiclite-linux.x64-12.2.0.1.0.zip

instantclient-jdbc-linux.x64-12.2.0.1.0.zip

instantclient-odbc-linux.x64-12.2.0.1.0-2.zip

instantclient-sdk-linux.x64-12.2.0.1.0.zip

instantclient-sqlplus-linux.x64-12.2.0.1.0.zip

instantclient-tools-linux.x64-12.2.0.1.0.zip

2、unzip解壓

解壓出來一個目錄instantclient_12_2

3、配置環(huán)境變量

export ORACLE_HOME=/home/tst1/instantclient_12_2

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME

export PATH=$ORACLE_HOME:$PATH

4、配置tns

[tst1@rhel7 instantclient_12_2]$ mkdir -p network/admin
[tst1@rhel7 instantclient_12_2]$ cd network/admin/
[tst1@rhel7 admin]$ cat tnsnames.ora 
ora11g =
  (DESCRIPTION = 
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.56.22)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = ora11g)
    )
  )

5、測試sqlplus,成功

[tst1@rhel7 admin]$ sqlplus zx/zx@ora11g

SQL*Plus: Release 12.2.0.1.0 Production on Thu Nov 16 12:48:33 2017

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


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL>

6、安裝sqlldr,我安裝的這個版本的簡易客戶端中有sqlldr,如果沒有的話需要從其他客戶端或服務(wù)端中拷貝,但是我測試執(zhí)行sqlldr報錯:

[tst1@rhel7 instantclient_12_2]$ sqlldr
Message 2100 not found; No message file for product=RDBMS, facility=ULMessage 2100 not found; No message file for product=RDBMS, facility=UL[tst1@rhel7 instantclient_12_2]$

因為缺少mesg文件,從服務(wù)端把rdbms/mesg下的文件全部拷貝

[tst1@rhel7 instantclient_12_2]$ mkdir -p rdbms/mesg
[tst1@rhel7 instantclient_12_2]$ cp /u01/app/oracle/product/12.2/db_home1/rdbms/mesg/* rdbms/mesg/

再次執(zhí)行sqlldr成功

7、安裝oerr,簡易客戶端中沒有oerr命令,需要從服務(wù)端拷貝

[tst1@rhel7 instantclient_12_2]$ cp /u01/app/oracle/product/12.2/db_home1/bin/oerr ./
[tst1@rhel7 instantclient_12_2]$ oerr
/home/tst1/instantclient_12_2/oerr: line 29: /home/tst1/instantclient_12_2/perl/bin/perl: No such file or directory

執(zhí)行報錯,說明缺少文件,從服務(wù)端拷貝

[tst1@rhel7 instantclient_12_2]$ cp -r /u01/app/oracle/product/12.2/db_home1/perl/* ./
[tst1@rhel7 instantclient_12_2]$ cp -r /u01/app/oracle/product/12.2/db_home1/perl/* ./perl/
[tst1@rhel7 instantclient_12_2]$ oerr ora 1
Can't open perl script "/home/tst1/instantclient_12_2/bin/oerr.pl": (null)
[tst1@rhel7 instantclient_12_2]$ mkdir bin
[tst1@rhel7 instantclient_12_2]$ scp /u01/app/oracle/product/12.2/db_home1/bin/oerr.pl ./bin/
[tst1@rhel7 instantclient_12_2]$ oerr ora 1
Could not open facilities list file: /home/tst1/instantclient_12_2/lib/facility.lis
2
[tst1@rhel7 instantclient_12_2]$ mkdir lib
[tst1@rhel7 instantclient_12_2]$ cp /u01/app/oracle/product/12.2/db_home1/lib/facility.lis ./lib/
[tst1@rhel7 instantclient_12_2]$ oerr ora 1
00001, 00000, "unique constraint (%s.%s) violated"
// *Cause: An UPDATE or INSERT statement attempted to insert a duplicate key.
//         For Trusted Oracle configured in DBMS MAC mode, you may see
//         this message if a duplicate entry exists at a different level.
// *Action: Either remove the unique restriction or do not insert the key.

注意:oerr也使用到了rdbms/mesg目錄下的文件,只不過第6步把整個目錄都拷貝過來了,這里就省事了。

8、安裝tnsping,簡易安裝包里也沒有這個工具,需要從服務(wù)端拷貝

[tst1@rhel7 instantclient_12_2]$ cp /u01/app/oracle/product/12.2/db_home1/bin/tnsping ./
[tst1@rhel7 instantclient_12_2]$ tnsping

TNS Ping Utility for Linux: Version 12.2.0.1.0 - Production on 16-NOV-2017 13:09:12

Copyright (c) 1997, 2016, Oracle.  All rights reserved.

TNS-03502: Message 3502 not found; No message file for product=network, facility=TNS

執(zhí)行報錯,因為缺少mesg文件

[tst1@rhel7 instantclient_12_2]$ cp -r /u01/app/oracle/product/12.2/db_home1/network/mesg/ ./network/
[tst1@rhel7 instantclient_12_2]$ tnsping 192.168.56.22:1521/ora11g

TNS Ping Utility for Linux: Version 12.2.0.1.0 - Production on 16-NOV-2017 13:11:04

Copyright (c) 1997, 2016, Oracle.  All rights reserved.

Used parameter files:

Used HOSTNAME adapter to resolve the alias
Attempting to contact (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=ora11g))(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.56.22)(PORT=1521)))
OK (10 msec)

安裝成功。

9、安裝exp、imp、expdp、impdp,安裝包中沒有,直接從服務(wù)端拷貝

[tst1@rhel7 instantclient_12_2]$ cp /u01/app/oracle/product/12.2/db_home1/bin/imp ./
[tst1@rhel7 instantclient_12_2]$ cp /u01/app/oracle/product/12.2/db_home1/bin/exp ./
[tst1@rhel7 instantclient_12_2]$ cp /u01/app/oracle/product/12.2/db_home1/bin/impdp ./
[tst1@rhel7 instantclient_12_2]$ cp /u01/app/oracle/product/12.2/db_home1/bin/expdp ./

imp和exp測試沒有問題,但expdp和impdp報錯:

[tst1@rhel7 instantclient_12_2]$ expdp

Segmentation fault
[tst1@rhel7 instantclient_12_2]$ impdp

Segmentation fault

查詢MOS找到解決方法,在環(huán)境變量中添加export NLS_LANG=American_America.ZHS16GBK

問題解決。

至此,簡單客戶端安裝完成,可以把整個目錄打個包,給其他機器安裝時直接解壓,配置環(huán)境變量就可以使用了。比安裝客戶端方便的多。

備注:

如果在使用某個工具報缺少庫文件時可以使用ldd命令查看該命令缺少哪個庫文件,如下所示:

[root@host77 instantclient_11_2]# ldd sqlldr
	linux-vdso.so.1 =>  (0x00007fffe63fe000)
	libclntsh.so.11.1 => not found
	libnnz11.so => not found
	libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f014b85c000)
	libdl.so.2 => /lib64/libdl.so.2 (0x00007f014b658000)
	libm.so.6 => /lib64/libm.so.6 (0x00007f014b355000)
	libnsl.so.1 => /lib64/libnsl.so.1 (0x00007f014b13c000)
	libc.so.6 => /lib64/libc.so.6 (0x00007f014ad7b000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f014ba8b000)

從上面的輸出可以看出缺少libclntsh.so.11.1和libnnz11.so這兩個文件,從服務(wù)端拷貝即可。

參考:http://hanqunfeng.iteye.com/blog/1955277

本文題目:Oracle12.2簡易客戶端安裝配置
文章來源:http://chinadenli.net/article34/jggise.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供虛擬主機、用戶體驗營銷型網(wǎng)站建設(shè)、外貿(mào)網(wǎng)站建設(shè)、自適應(yīng)網(wǎng)站

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

成都網(wǎng)站建設(shè)
中文字幕人妻av不卡| 日韩特级黄片免费观看| 中文字幕日产乱码一区二区| 视频在线免费观看你懂的| 婷婷开心五月亚洲综合| 精品欧美国产一二三区| 国产又大又黄又粗又免费| 狠狠做五月深爱婷婷综合| 黑色丝袜脚足国产一区二区| 国产高清精品福利私拍| 五月婷婷综合缴情六月| 国产精品一区二区三区激情| 激情五月天免费在线观看| 精品人妻一区二区四区| 日韩精品福利在线观看| 丰满人妻少妇精品一区二区三区| 午夜视频成人在线免费| 91亚洲人人在字幕国产| 国产成人精品一区二区在线看| 偷自拍亚洲欧美一区二页| 日韩中文字幕欧美亚洲| 国产一级不卡视频在线观看| 国产二级一级内射视频播放 | 欧美三级不卡在线观线看| 国产在线一区二区免费| 色婷婷国产精品视频一区二区保健| 日本人妻精品中文字幕不卡乱码| 色婷婷中文字幕在线视频| 久热在线视频这里只有精品| 国产精品福利一级久久| 爽到高潮嗷嗷叫之在现观看| 人妻少妇久久中文字幕久久| 亚洲中文字幕日韩在线| 欧美91精品国产自产| 国产一区二区三区口爆在线| 国产精品99一区二区三区| 日韩在线中文字幕不卡| 国产精品亚洲综合色区韩国 | 不卡中文字幕在线免费看| 亚洲一二三四区免费视频| 国产欧美日韩一级小黄片|