oracle instant client что это
FAQ по Oracle Client
За время работы с Oracle Database и Microsoft SQL Server Integration Services я собрал 2 FAQ-а. Первый — по Oracle Client — я публикую здесь, а второй — по коннекторам SSIS к Oracle, следующим постом.
Что такое Oracle Client?
Это промежуточное ПО, предназначенное для доступа к Oracle Database. Некоторые приложения имеют встроенного клиента. Встраиваемый клиент, предназначенный для разработчиков, называется Instant Client.
Откуда скачать Oracle Client?
Если Вы возьмете клиента от более старшей версии это будет плюсом, поскольку не придется его обновлять на работающей системе, когда потребуется соединяться со следующей СУБД Oracle.
Не перепутайте Oracle Client и Oracle Instant Client, предназначенный для разработчиков. Так же, не качайте Data Access Components, поскольку DAC, помимо Oracle Client, содержит много средств, нужных только для разработки приложений.
Установка клиента Oracle 12c 32-bit не проходит после установки Oracle 12c 64-bit клиента (или наоборот)
Если Вы только что установили одного из клиентов Oracle 12c и не перезагружались, перезагрузитесь.
Программа установки Oracle Client, называемая Oracle Universal Installer, создает службу OracleRemExecService, которая согласно неофициальному описанию нужна только для OUI и должна исчезнуть после перезагрузки. В реальности она не исчезает, но и не запускается при старте ПК. Является ли правильным остановить службу, я не знаю, но это тоже помогает.
Как настроить подключение к СУБД Oracle в приложении, использующем Oracle Client?
Со стороны прикладного программного обеспечения, работающего через Oracle Client, для указания БД может быть использовано имя сервиса TNS или строка конфигурации, содержащая часть объявления имени сервиса TNS.
В первом случае в папке Oracle Client в «\network\admin\tnsnames.ora» укажите:
При этом, в приложениях в поле TNS Service Name указывается имя подключения.
Следует иметь ввиду, что в приложении, запускаемом в 32-х битной среде, используется Oracle Client 32-bit, а в 64-х битной среде используется Oracle Client 64-bit, поэтому может потребоваться сделать «tnsnames.ora» в обоих клиентах.
Что такое SERVICE_NAME и SID?
Подключение к базе данных по сети со стороны сервера обслуживает промежуточное ПО, называемое Listener.
SID это уникальный идентификатор базы данных Oracle на машине, а SERVICE_NAME, это идентификатор базы данных, заданный в Listener. Таким образом, одна и та же база данных, может быть доступна под разными SERVICE_NAME, но только под одним SID. Вас, поскольку Вы находитесь снаружи Listener-а, волнует SERVICE_NAME.
Как адресовать таблицы в Oracle?
По-умолчанию пользователь Oracle обращается к таблицам в своей схеме. Для того, что бы запрос обращался к одним и тем же таблицам из под любого пользователя, нужно указывать имя схемы перед точкой. Например, BM9.BM_CUSTOMER_CONTACT адресует таблицу BM_CUSTOMER_CONTACT в схеме BM9.
Что такое схема и база данных в Oracle?
База данных в СУБД Oracle = отдельный набор процессов СУБД с общей памятью.
Схема содержится внутри базы данных и является контейнером для таблиц. Кроме того, схема = пользователь.
Таблицы с одинаковыми именами могут существовать одновременно в разных схемах.
Почему не удается определить OCI environment (например, в Attunity)?
Приложение использующее Oracle Client должно каким-то образом его найти. Путь установки Oracle Client добавляется в %PATH% Oracle Installer-ом при установке. Но следует иметь ввиду, что переменные окружения устанавливаются процессу при запуске и, к примеру, Visual Studio (BIDS, Data Tools) запущенная до установки клиента, требует перезапуска, что бы начать использовать новый %PATH%.
Эта ошибка может быть по разному сформулирована в других приложениях.
Как настроить символьную кодировку Oracle Client?
Неверно настроенная кодировка может влиять как на получаемые данные, так и на выполнение запросов. Это может проявляться в том, что REPLACE(table_column, ‘А’, ‘Б’) в одном инструменте работает, а в другом нет, потому, что литералы ‘А’ и ‘Б’, поступающие в БД, воспринимаются иначе в одном из инструментов.
Для 32-х разрядного клиента в реестре в [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ORACLE] установите параметр «NLS_LANG»=»RUSSIAN_CIS.CL8MSWIN1251» (типа REG_SZ).
Для 64-х разрядного клиента в реестре в [HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE], аналогично, установите параметр «NLS_LANG»=»RUSSIAN_CIS.CL8MSWIN1251» (типа REG_SZ).
После настройки кодировки необходимо перезагрузиться, поскольку, уже запущенный Oracle Client её не перечитает.
Oracle instant client что это
По Вашему запросу ничего не найдено.
Рекомендуем сделать следующее:
Frequently Asked Questions
What is Instant Client?
Instant Client is a repackaging of Oracle Database libraries, tools and header files usable to create and run applications that connect to a remote (or local) Oracle Database. Instant Client can be used to run OCI, OCCI, Pro*C, JDBC and ODBC applications, and can be used to run scripting language drivers including PHP’s OCI8, Python’s cx_Oracle, Node.js’s node-oracledb and Ruby’s ruby-oci8 APIs. An SDK package provides header files for compiling C and C++ programs that use the OCI and OCCI APIs. Some utilities such as SQL*Plus, Workload Replay Client, Data Pump and SQL*Loader are also available in Instant Client packages. The available Instant Client packages are described on the Instant Client home page.
Why use Instant Client?
Instant Client’s advantages are that installation is a quick unzip of a ZIP package, or the trivial install of Linux RPM packages. Instant Client’s footprint is much, much smaller than the full Oracle Client. Other advantages are that it is available under an OTN license that allows redistribution. Your Instant Client-based applications can take full advantage of Oracle Client features such as caching and connection pooling; they can take advantage of Oracle Net features such as network encryption; and of course they can use big and small Oracle Database features.
What is the interoperability of Instant Client with various database versions?
An Instant Client based application can interoperate with any database version that the full Oracle Client interoperates with. For example, Instant Client 12.2 allows connection to 11.2, 12.1 and 12.2 databases. Details are in the interoperability matrix in Support Doc ID 207303.1 Note that Instant Client includes a number of different Oracle tools and technologies, some of which may have more restrictive requirements.
Where is Instant Client available from?
You can install Instant Client packages from OTN. Oracle Linux users can install it from ULN. It is also an install option when installing a full Oracle Client. Instant Client is made available in parallel with each Oracle Database Release. Several platforms including Apple macOS also have Instant Client packages but do not have a Database or full Client.
What does Instant Client cost?
Instant Client is free from OTN for anyone to use in a development or production environment. However, customers can only call Oracle Support if they already have a standard support contract.
Can Instant Client be redistributed?
Subject to the license, Instant Client can be bundled and redistributed for free. Enterprises can redistribute Instant Client within their organizations. However, customers can only call Oracle Support for Instant Client if they have a standard support contract. Please refer to the Oracle Technology Network License Agreement.
How do I specify connection strings in Instant Client mode?
All Oracle Net naming methods that do not require using ORACLE_HOME (to locate configuration files such as tnsnames.ora or sqlnet.ora) work in the Instant Client mode.
An Easy Connect string of the form:
As an Oracle Net keyword-value pair. For example:
Naming methods that require TNS_ADMIN to locate configuration files continue to work if the TNS_ADMIN environment variable is set.
Please note that the ORACLE_HOME variable in this case is only used for locating Oracle Net configuration files, and no other component of Client Code Library (OCI, NLS, and so on) uses the value of ORACLE_HOME.
The bequeath adapter or the empty connect strings are not supported. However, an alternate way to use the empty connect string is to set the TWO_TASK environment variable on UNIX, or the LOCAL variable on Windows, to either a tnsnames.ora entry or an Oracle Net keyword-value pair. If TWO_TASK or LOCAL is set to a tnsnames.ora entry, then the tnsnames.ora file must be able to be loaded by TNS_ADMIN or ORACLE_HOME setting.
Does Instant Client work with Oracle Names?
No, Instant Client does not work with Oracle Names. While Instant Client is backwards compatible with older databases, it does not support now deprecated features, including Oracle Names. Please see the Metalink Note.
How does Instant Client interact with an ORACLE_HOME?
As long as the library loading path has the directory containing Instant Client files (e.g. the instantclient directory) ahead of library directory in ORACLE_HOME, the application will operate in the Instant Client mode, and the libraries in the ORACLE_HOME will not be used.
What behavior changes can I expect for Oracle environment variables?
Environment variables ORA_NLS33, ORA_NLS32, and ORA_NLS are ignored in the Instant Client mode. The ORA_TZFILE environment variable should be set to the name of the large timezone file as opposed to its full path. All other environment variables (such as NLS_LANG) have no change in behavior.
Why do I get an error with the message «message file not found»?
Some Oracle applications are currently certifying operation under Instant Client. Once certification is complete, the message will disappear.
Why do I see an increased virtual memory footprint when running my applications in conjunction with Instant Client?
The Instant Client libraries occupy a virtual address space that is equal to the size of the files. However, only frequently used error messages from the libraries occupy physical memory. Under most cases, the physical memory load is a few kilobytes despite the larger reserved virtual address space.
How can Instant Client on Windows use registry settings?
Special settings for Instant Client enabled applications can be set in the registry for all users or on a per-user basis.
How does Instant Client interact with an existing ORACLE_HOME-based client installation?
If you already have Oracle Client installed on your machine, then we recommend:
How do I ensure that my Oracle Net files like «tnsnames.ora» and «sqlnet.ora» are being used in Instant Client?
Files like «tnsnames.ora», «sqlnet.ora» and «oraaccess.xml» will be located by Instant Client by setting the TNS_ADMIN environment variable or registry entry to the directory containing the files. Use the full directory path; do not include a file name. Alternatively create a subdirectory «network/admin» under the Instant Client directory for the Oracle Net files. This is the default location and so no TNS_ADMIN variable is required.
Can LDAP be used with Instant Client?
Yes, LDAP can be used with Instant Client, as of 10.1.0.4.
Is Pro*C supported in Instant Client?
Yes, Pro*C is supported to run with Instant Client 10.2.0.x on Unix platforms. Pro*C is not supported with Instant Client on Windows currently.
Oracle instant client что это
По Вашему запросу ничего не найдено.
Рекомендуем сделать следующее:
Oracle Instant Client ODBC Installation Notes
Oracle’s Instant Client ODBC software is a standalone package that offers the full functionality of the Oracle ODBC driver (except the Oracle service for Microsoft Transaction Server) with a simple install.
The ODBC driver has Oracle’s standard client-server version interoperability, see Support Doc ID 207303.1. For example Instant Client ODBC 19c can connect to Oracle Database 11.2 or later.
Installing Oracle Instant Client Basic and Basic Lite
Instant Client ODBC requires the Oracle Instant Client Basic or Basic Light package (depending on your locale requirements) also be installed. Download the desired package from OTN for your operating system and follow the installation instructions on the download page. For example, unzip the package to C:\instantclient_19_3 on Windows, unzip to /opt/oracle/instantclient_19_3 on Linux or other platforms, or use yum to install the RPM packages on Linux.
More details on Oracle Instant Client is in the Oracle Call Interface Programmer’s Guide.
Installing Oracle Instant Client ODBC
On Linux and UNIX
1. Download Install the Instant Client Basic or Basic Light package as described above.
3. Install the unixODBC driver manager if it is not already available. Refer to the «Recommended unixODBC Driver Manager version» section in this document for more information.
4. Execute odbc_update_ini.sh from the Instant Client directory.
5. Set any Oracle Globalization variables required for your locale. See the Oracle Database Globalization Support Guide for more information. For example on Linux you could set export NLS_LANG=JAPANESE_JAPAN.JA16EUC to work in the JA16EUC character in Japanese.
On Windows
Environment setup for ODBC applications
An ODBC application has to load the Oracle Instant Client ODBC driver’s shared library file (see next section) to connect to Oracle Database. On Linux/Unix the directory path of the shared library should be set in the environment variable LD_LIBRARY_PATH, or platform equivalent. It can also be configured in /etc/ld.so.conf. On Windows it should be set in the PATH environment variable.
Refer to the topics Environment Variables for OCI Instant Client and Database Connection Strings in the Oracle Call Interface Programmer’s Guide for setting up the Database Connection string and related environment variables like TNS_ADMIN, TWO_TASK, LOCAL etc.
Contents of the Oracle Instant Client ODBC Package
Description | Linux and UNIX | Windows |
---|---|---|
Oracle ODBC driver shared library | libsqora.so.XX.Y. For example libsqora.so.19.1 | sqora32.dll |
Installation file | odbc_update_ini.sh | odbc_install.exe, odbc_uninstall.exe |
Oracle ODBC driver configuration dialog window (GUI) | Not available | sqoras32.dll, sqresus.dll, sqresja.dll |
Help System | help/ | help/ |
Patching Oracle Instant Client ODBC
Note: Backup the Oracle ODBC driver shared library and other files before patching them.
On Linux and UNIX Patching the Instant Client ODBC driver on Linux/UNIX can be done by generating the Instant Client ODBC package and Basic or Basic Light package in a patched ORACLE_HOME. The procedure for patching and generating Instant Client ODBC, Basic and Basic Light packages is given in the Oracle Call Interface Programmer’s Guide. These new packages should then be unzipped into the Instant Client directory that needs to be patched. This method of patching is recommended.
Alternatively the Oracle Instant Client ODBC driver can be patched by copying the files that are listed below from a patched ORACLE_HOME:
On Windows Patching the Instant Client ODBC driver on Windows can be done only by manually copying the ODBC driver shared library files and supporting library files from a patched ORACLE_HOME or from an unpacked Oracle Database Bundle patch. These should be copied into the Instant Client directory. Generating an Instant Client ODBC package is not available on Windows.
The files that must be copied to the Instant Client directory:
Note: While copying from the Oracle Database Bundle patch, some of the files above may be missing. This implies that those files are unchanged and do not need to be patched.
Uninstalling Oracle ODBC Instant Client
On Linux and UNIX
The procedure to uninstall Instant Client ODBC on Linux/UNIX is:
On Windows
The procedure to uninstall Instant Client ODBC on Windows is:
Recommended unixODBC Driver Manager versions for Linux/UNIX
For Instant Client 18 and 19:
Platform | unixODBC Driver Manager Version |
---|---|
Linux 32bit, 64bit | 2.3.4 |
Solaris SPARC64 32bit, 64bit | 2.3.4 |
Solaris 32bit, 64bit | 2.3.4 |
AIX 5L 32bit, 64bit | 2.3.4 |
HP IA64 32bit, 64bit | 2.3.4 |
z/Linux 31bit, 64bit | 2.3.4 |
For Instant Client 12.1 and 12.2:
Oracle instant client что это
По Вашему запросу ничего не найдено.
Рекомендуем сделать следующее:
Free, light-weight, and easily installed Oracle Database tools, libraries and SDKs
Oracle Instant Client enables development and deployment of applications that connect to Oracle Database, either on-premise or in the Cloud. The Instant Client libraries provide the necessary network connectivity and advanced data features to make full use of Oracle Database. The libraries are used by the Oracle APIs of popular languages and environments including Python, Node.js, Go, PHP and Ruby, as well as providing access for Oracle Call Interface (OCI), Oracle C++ Call Interface (OCCI), JDBC OCI, ODBC and Pro*C applications. Tools included in Instant Client, such as SQL*Plus, SQL*Loader and Oracle Data Pump, provide quick and convenient data access.
Oracle Instant Client
What’s New
Oracle Linux has Instant Client RPMs
Instant Client RPM packages for Oracle Linux can now be installed from yum.oracle.com for Oracle Linux 8 and Oracle Linux 7. Older releases are available for Oracle Linux 8, Oracle Linux 7 and Oracle Linux 6.
See Instant Client for Oracle Linux for installation instructions.
Instant Client is available for Docker
Dockerfiles are available on GitHub. Pre-built images are available from the GitHub Container Registry.
Instant Client Features
Instant Client applications are cloud ready
Deploy applications using Instant Client in the cloud, or connect to a cloud database.
Whether your applications are in the cloud or on-premise, you can install Instant Client and connect to cloud databases. Follow the normal installation process for your operating system. Some cloud-specific references are shown below.
Instant Client
Описанный в предыдущем разделе процесс установки ПО Oracle Client требует выполнения подготовительных действий, необходимых для установки регулярного программного обеспечения Oracle Database Server.
К счастью, инсталляция полного программного обеспечения Oracle Client для подключения к базе данных Oracle может требоваться не всегда. Новое программное обеспечение Oracle Instant Client позволяет запускать приложения без установки стандартного ПО Oracle Client или наличия каталога ORACLE_HOME. Программное обеспечение Oracle Client не обязательно инсталлировать на каждом компьютере, которому необходим доступ к базе данных Oracle. Все существующие приложения OCI, ODBC и JDBC будут работать с Instant Client (Мгновенный клиент). При желании с ним можно даже использовать интерфейс SQL*Plus.
Instant Client предоставляет следующие преимущества по сравнению с полномасштабным ПО Oracle Client.
Установка Instant Client
Чтобы установить новое программное обеспечение Instant Client и быстро подключиться к базе данных Oracle, выполните следующие действия.
Где скачать Oracle Instant Client
Как мы уже говорили, Instant Client является бесплатным и совершенно открыто распространяется корпорацией Oracle. Вы можете его скачать по этой ссылке. Как видите, клиент есть для различных операционных систем с различной битностью.