Oracle Data Access Component (odac) Full name: Oracle Data Access Components
Advantage: because Microsoft is. in net framework4, system. data. oracleclient. DLL deprecated, and in terms of access efficiency and speed, system. data. oracleclient. DLL and Oracle. dataaccess. compared with DLL, Microsoft does not have the
background : Install the ODAC after installing the framework.The problem occurs: This can cause application problems such ascause analysis of the problem: After studying, we will register some information with the. NETFramework in the process of ODAC, which is written in the machine file as shown in After installing ODAC, some basic information about
, Command object, DataReader class, DataAdapter class, DataTable class, DataSet object. ODAC (Oracle Data Access components) : Oracle for Borland delphi,c++ Builder and Kylix provides a number of non-visual components. The Odac directly uses the Oracle call Interface (
simple:
Open VS2012, select view in the menu bar, and then select server resource manager. Right-click the data connection and select Add connection from the pop-up menu. The following page is displayed. After entering the account, password, and other elements, click the test connection button to get the connection feedback success or failure ).
650) this. width = 650; "src =" http://img.blog.csdn.net/20140117001724390? Watermark/2/text/character =/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA =/d
Recently, you need to access the database in Oracle. To use using system. Data. oracleclient, you still need to install the Oracle client, but do not want to install the complete client. An odac is installed, which is Oracle. and then you can reference using Oracle. dataacce
Name
Type
Description
Sequencemode
Tsequencemode
ODAC can directly use the sequence objects in Oracle to assign values to the table's primary key, thereby enabling the automatic growth of the primary key. This attribute determines the circumstances under which the sequence is used:Sminsert when new records are addedSmpost when the record is updatedNote: Fields updated accor
quickly import data into controls in an Oracle databasetoratransaction database Transaction management controls, which can be used to manage distributed transactionstoraqueue Oracle Queue management ControlstoraqueuetableToraqueueadmintorachangenotification Oracle Database Change message notification controlToratrace A control that makes a SQL trace on a threadT
Toraprovider components
======================
If you use the Enterprise version of Delphi or C + + Builder, you can install the Toraprovider component separately. All you have to do is compile and install the ORAPROVXX.BPK package.
Oratools Plugin
===============
The design package ORATOOLSXX.BPL is no longer included since ODAC version 3.50. Oratools is now provided as a standalone plugin. It is installed once and can be used under Delphi and C
4. Database Information
Name
Type
Description
Getdatabasenames
Get a list of corresponding database object names
Getsequencenames
Getstoredprocnames
Gettablenames
5. Other
Name
Type
Description
Debug
Boolean
Whether to enter debug mode, default FalseWhen you enter debug mode in the IDE environment, the data type of the SQL statement
WIN7 after installing ODAC, the directory "C:\app\client\xushunyi\product\12.1.0\client_1\Network\Admin" Generates a Tnsnames.ora file that is used to configure Oracle DB instance information, which can typically be configured by referring to the Tnsname.ora file in the sample directory. The example contents are as follows: # Every line, begins with # are a comment line## Create
, where the parameters are given in the order of the parameters of the stored procedure
Execprocex
Executes the stored procedure or function specified in the package, where the parameters are given by the specified parameter name, rather than in order
Variablebyname
Gets the variable object (tvariable) in the package based on the variable name and makes the relevant operation
Toraalerter
Name
Type
Description
Torasqlis aSqlStatement execution control, includingPL/SQL blocks, etc., do not return data set results.
name
changecursor
boolean
whether to allow the cursor to change the screen in non-blocking mode
NBSP;
toratable
Name
Type
Description
TableName
String
Set the name of the table
The ODAC component supports the BLOB and CLOB data types of Oracle 8. You can use the Toraquery component to get the value of the LOB field, and you can also get a long or long ROW field using the same method. When you need to use SQL DML and PL/SQL statements to access these fields, you will find that the use of LOB data types is significantly different.
Blob and CLOB data types are stored in table column
The buffered mode of the data set (Cached mode) is to buffer the database server's data in client memory and no longer relies on the server. The change data is submitted to the database server one time only when the data needs to be committed to the database server for saving.The biggest advantage of the data set buffering mode is that it reduces the resource consumption on the database server, even when the network is disconnected, and then commits the database after the network connection. Com
Connectionlifetime
The time-to-live (in milliseconds) of a connection in the connection pool, which is freed and removed by the connection pool if it is not used, and the default is 0, which indicates an infinite length
Maxpoolsize
Pool buffer maximum number, default 100, in the actual application of small, can be appropriately increased
Minpoolsize
Pool Buffer Minimum number
Validate
When you get a connection from a po
at once, regardless of the master-slave relationship and transaction processing. However, if you use ODAC for processing, there are 2 aspects to the update of the master-slave relational dataset:1, local update, that is, the local data processing.In buffered mode, the Cachedupdates property from the table is valid only if the primary table's option Localmasterdetail is set to true. Whether buffered or traditional, local update support automatically f
dataset state remains in edit or new (DsEdit, Dsinsert), and calling the Cancel function does not cancel the modified content of the committed database. Use on the need to be cautious
revertrecord
" font-size:14px ">"
in buffered mode, undo data updates to the current record
onupdaterecord
NBSP;
triggers when a record is updated, and if it is in buffered mode, the event is triggered after applyupdates. The updateaction de
on the circumstances without having to re-set the condition content. unitable1.conditions.add (' 2 ', ' sal>2500 '); unitable1.conditions.enable; unitable1.open; select * from EMP where (job= "MANAGER") and (sal
SqldeleteSqlinsertSqlupdate
TStrings
Delete, insert, and update SQL, the parameter must be a field name plus a colon, such as::D Ep_noFor updates, deletions, you need to use the field's original data values as parameters, you need
Does anyone use odac to connect to the database? Question? Delphi/Windows SDK/API
Http://www.delphi2007.net/DelphiDB/html/delphi_20061216215514262.html
I used odac to connect to the database. In the formcreate time, when I open the SQL statement, the address error will be prompted as soon as the operation is started, but no other button events are correct !!
I don't know where the problem is?
Most of
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.