计算机知识oracle10gformbuilderandreportbuildertutorial第一期
- 格式:pdf
- 大小:4.16 MB
- 文档页数:35
ORACLE FORM 开发实战李正海2008/09/22目录1一个基础的FORM (3)2一个查询FORM (12)3多画布的操作方法 (13)4LOV使用 (15)5LIST的使用 (22)6FORM的参数调用 (23)7包含主从表的FORM (26)8加入自定义菜单 (29)9加入图像的方法 (31)10一个选择的范例 (32)11常用系统热键 (35)1一个基础的FORM1.在文件中选择新建,表格,从而新增出一个FORM。
2.建立数据块a)在导航器中点击该FORM,选择数据块向导b)输入表名,点刷新,显示出字段名c)使用,把字段全部选择到数据库项中。
d)点下一步,注意使用默认的:“请先创建数据库,然后调用布局向导”。
3.建立布局a)进入布局向导b)选择默认的布局向导c)选择显示项,把可用项全部变成显示项d)选择框架风格为默认的表格e)指定框架的名称及显示记录数f)完成布局向导4.运行FORMa)运行FORMb)点击查询中的执行,显示出所有数据c)点增加,新建立一条记录,输入数据,点保存,完成一条记录的输入d)在某条记录中,改变数据内容,点保存,完成一条记录的修改e)点删除,则删除该记录f)点退出,结束FORM运行2一个查询FORM1.新建一个块2.加入一个框架3.加入数据项4.加入按纽,输入如下代码:GO_BLOCK('LZHTEST001');SET_BLOCK_PROPERTY('LZHTEST001',DEFAULT_WHERE,'NAME LIKE :block15.text_item21||''%''');EXECUTE_QUERY;3多画布的操作方法1.加入一个画布,再加入一个堆叠式画布。
2.加入两个块3.设置块的关系4.加入向子画布切换的按纽其对应的WHEN_BUTTON_PRESSED语句为go_block('lzhtest0011'); --lzhtest0011为子块名5.加入子画布隐藏的按纽HIDE_VIEW('CANVAS39');-- CANVAS39为子块所在的画布名GO_BLOCK('LZHTEST001');-- LZHTEST001为主块名4LOV使用设置LOV的基本过程包括如下:b)增加LOV,点击在导航器中的LOVS,点后,进行LOV添加。
oracleformsbuilder详细学习步骤步骤:1、建表:头表:cux.cux_order_headers_z_all行表:cux.cux_order_lines_z_all2、建SEQUENCE:Sequence:头表:CREATE SEQUENCE cux.cux_order_headers_z_all_s行表:CREATE SEQUENCE cux.cux_order_lines_z_all_s ;3、建同义词:头表:CREATE SYNONYM apps.cux_order_headers_z_all FORcux.cux_order_headers_z_all ;CREATE SYNONYM apps.cux_order_headers_z_all_s FORcux.cux_order_headers_z_all_s ;行表:CREATE SYNONYM apps.cux_order_lines_z_all FORcux.cux_order_lines_z_all ;CREATE SYNONYM apps.cux_order_lines_z_all_s FORcux.cux_order_lines_z_all_s ;4、建立唯一索引:create unique index CUX.cux_order_headers_z_U1 onCUX.cux_order_headers_z_all (HEADER_ID)tablespace APPS_TS_CUX_IDX;create unique index CUX.cux_order_LINE_z_U1 on CUX.cux_order_lines_z_all (LINE_ID)tablespace APPS_TS_CUX_IDX;5、建立视图:cux_order_headers_z_vcux_order_lines_z_v6、进入formbuilder建立块7、创建程序包:(1)执行生成包语句:(2)DECLARE(3)BEGIN(4)HAND_PLSQL_AUTOCREATE.TABLE_HANDLE_PKG(P_TABLE_NAM E => 'CUX_ORDER_HEADERS_Z_ALL',(5) P_OWNER => 'CUX',(6) P_PRIMARY_KEY =>'HEADER_ID');(7)END;查看输出output,生成了创建包的语句8、创建存储过程:(1)执行生成存储过程语句:(2)DECLARE(3)BEGIN(4)HAND_PLSQL_AUTOCREATE.form_table_handle(p_block_name => 'HEADER',p_package_name => 'CUX_ORDER_HEADERS_Z_ALL_PKG'(5) ,p_table_name => 'CUX_ORDER_HEADERS_Z_ALL',p_primary_key =>'HEADER_ID');(6)END;输出output存储过程体语句;9、创建值列表:组织值列表编制人值列表10、创建参数:11、创建CUXORDER程序包12、头、行块中增加触发器13、建立主从块之间的关系14、注册程序。
Oracle 10g DBA 学习手册官方资料:Oracle 10g DBA 学习手册 1-安装 Oracle 和构建数据库目的本章让您了解如何使用Oracle Universal Installer (OUI) 安装您的Oracle 数据库软件并创建数据库。
您将学习如何使用Database Configuration Assistant (DBCA) 创建附加数据库。
主题本章讨论了如下内容:使用Oracle Universal Installer (OUI) 安装软件使用Database Configuration Assistant (DBCA) 创建数据库第 2 章:安装Oracle 软件并构建数据库使用Oracle Universal Installer (OUI) 安装软件您能够使用Oracle Universal Installer (OUI) 安装您的Oracle 软件。
OUI 是一个GUI 工具,可以使您查看安装在您的机器上的Oracle 软件,安装新的Oracle 软件,并删除您不再需要使用的Oracle 软件。
按照以下步骤安装Oracle 软件并创建数据库:1.作为管理组小组登录到您的计算机上,此小组有权限安装Oracle 软件并创建和运行数据库。
2.将提供给您的数据库CD 插入光驱。
Autorun 窗口将自动显示。
选择Install/Deinstall Products。
注意:如果您从Oracle 的站点下载软件,请遵循网站上发布的如下指示。
3.Oracle Universal Installer Welcome 窗口出现。
选择Next 开始安装您的软件4.在UNIX 和Linux 安装时,Specify Inventory directory and credentials 窗口出现。
输入安装Oracle 软件的完整目录或接受缺省值。
输入操作系统组名称,此组具有目录写权限。
ORACLE 10g 笔记第一部分概述一、数据库通用语言·SQL*PLUS:提供报表功能及操作系统的接口. 对SQL语言功能的扩充·PL/SQL:过程化语言用于程序设计数据库基础部分。
.Oracle数据库系统结构与产品组成。
Oracle 7.3.4Oracle 8.0.6Oracle8i 8.1.7Oracle9i 9.2.0 国税系统使用I internetOracle10g 10.2.0 G—>GridOracle 11i 不是数据库软件·SQL语言:对于数据库进行操作关系型·数据分区表技术·Oracle权限管理二、程序设计·PL/SQL程序设计·存储过程(Procedure)、包(Package)、函数(Function)、数据库触发器(Database triggers) 集中存储:一张表存放在一个数据中一张表中,同一物理磁盘中分区存储:把一张表的数据分散存放到不同表空间中,可能存放在不同物理磁盘·动态SQL程序NDS三、Oracle10g数据库系统管理(Database Administrator)DBA·ORACLE核心软件的安装与产品升级Unix:SUN Solaris(两种总线:SPARC,x86) 中油、石化系统HP-UX Super DOMIBM AIX (银行系统)Tru-64 UNIX(电力系统)SCO UNIXLinuxSUN Fire v880 速度很慢.小故事:Order by 临时表空间NT/2000/xp (重新安装要修改注册表)安装资源要求:Oracle8i: 128M/1000MOracle9i 9.0.1: 256M/3.5GOracle9i 9.2.0: 512M/3.5GOracle10g 10.2.0: 256M~512M/2G win2000必须打sp1·创建数据库主要存储结构·权限与角色管理·数据库备份与恢复·数据库性能优化与调整·监视与控制用户对数据库的存取四、Web应用开发及Web服务器Oracle 10g Application Server(PL/SQL,J2EE)Oracle10g的安装1.选择安装方法·基本安装·高级安装(选此项,下一步)2.选择安装类型·企业版主要用于构造分布式数据库(选此项,下一步)·标准版·个人版·定制3.指定主目录(下一步)4.选择配置选项·创建数据库(选此项,下一步)·配置自动存储管理·仅安装数据库软件5.选择数据库配置·一般用途(选此项,下一步)·事务处理·数据仓库·高级6.指定数据库配置选项·数据库命名一般是name.domain(域名可以不要)不能同名·系统标示符SID 数据库实例名数据库名和实例名一般相同,可不同·数据库字符集:National Language Support NLS 民族语言支持中文三种ZHS16cgh231280 支持版本Oracle 7.3 以上只支持简体ZHS16gbk 支持版本Oracle 8.0以上简体繁体日韩ZHS32gh18030 支持版本Oracle 9i以上简体繁体日韩维藏下方□创建带样本方案的数据库(选中此项,下一步)7.数据库管理选项默认下一步8.指定数据库存储选项·文件系统(指定路经,下一步)·自动存储管理·裸设备9.指定备份和恢复选项选择不启用自动备份下一步10.指定数据库方案的口令选择所有的账户都使用同一个口令下一步11.选择安装方法基本安装下一步默认选择直到安装结束Oracle10g的删除1、删除Oracle注册表regedit →HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\2、删除Oracle服务regedit →Local Machine→System→CurrentControlSet→Services→ORA*3、删除Oracle事件日志regedit →Local Machine→System→CurrentControlSet→Services→Eventlog→Application→ORA*4、删除Windows安装磁盘\Program Files\Oracle目录\Program Files\Oracle5、删除菜单6、Oracle删除环境变量。
abort_query;停止查询的执行add_group_column(record group id或name,group column添加一个列至U—个记录组,Record group idn ame,colu mn type,colu mn width;add_group_row(record group id或name,row number;添加一个行至U—个记录组,record group id是oracle赋予这个组的唯一的名称,row number指定了这个行在组中位置.add」ist_eleme nt(list n ame or list id,list index,list lable,list value;添加一项到下拉列表框,list name是list 的名字,list index 是添加到列表框的索引,list label指定了放入列表中的数值串,list value包含了列表标识所对应的数据库的数值.add_parameter(list或name,parameter,parameter type,valu添加一个参数至U—个参数列表,参数列表是一个变量列表,这些变量将被伟给其他对象,list或name指定了这个列表的标识,parameter type参数类型包含两种可用数值:text_type是一串字符;data_paramete是一个指定已在form中定义的记录组的串.value是传给被调模块的实际数值.application_parameter促使oracle 显示Enter parameter values对话框。
关联了当前菜单form的参数按其数值被显示。
backgrou nd_me nu (1...10从背景菜单中显示一个菜单项bell;促使终址产生一个鸣叫(要有音响或耳机才能听以哦!block_menu;显示一个数值的列表,它包括有效块的名字和它们的序列号break;停止form的执行,显示调试器.注:只能在调试模式时call」nput;接受并执行功能键输入;checkbox_checked( name返回一个真或假的值表示检查框的状态check_record_uniquenes被on_check_unique触发器调用时,为检查主关键字的唯一性而被始化form过程.clear_block人当前的块中清除记录.clear_eol;从光标开始到些行结束清除文本项的值。
Forms Builder配置注意事项及Suite 10g安装错误提示1、文档所写环境为WIN7下操作。
2、软件安装目录配置文件目录不能为中文,不包含空格。
3、安装Oracle Developer Suite 10g前如果已经配置有Oracle客户端再进行安装时可能会报出与Oracle客户端主目录冲突的错误,即需要先完全卸载Oracle客户端程序,环境变量等,Oracle Developer Suite 10g安装完成再重新配置Oracle即可。
环境错误:WINXP Pack3兼容模式,管理员身份运行.虚拟内存不足:计算机属性>高级系统设置>高级>性能,选择设置,选择高级选项,虚拟内存项选择更改,取消自动管理驱动分页文件的大小勾选状态,自定义大小,设置为1024 与2048,点击设置,确定保存即可。
1.1Oracle Developer Suite 10g安装Oracle Developer Suite 10g安装成功!!!修改tnsnames文件tnsnames文件路径为:OracleDeveloperSuite10g安装目录\ NETWORK\ADMIN\记事本编辑文件,替换段落为:CQBK_DEV =(DESCRIPTION =(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = )(PORT = 1521)))(CONNECT_DATA =(SERVICE_NAME = findev)(SID = findev)))建立FORM及Library文件夹Form文件与Library文件要存放在固定目录,方便于管理。
例如:在D:\目录下建立OracleDev文件夹.form存放在 D:\OracleDev\FromLibrary 存放在D:\OracleDev\From\Library;(Library文件见附件)修改注册表变量运行regedit命令打开注册表,在目录HKEY_LOCAL_MACHINE>SOFTWARE>Wow6432Node>ORACLE>KEY_DevSuiteHome1下找到FORMS_PATH 变量,加入存放 Form 及 Library文件的路径(如图)例如:d:\OracleDev\From\Library;d:\OrcaleDev\Form(建议加在最前面)1.2PLSQLDeveloper配置PLSQL 为安装文件PLSQL 汉化包PLSQL 破解文件PLSQL安装完成之后打开软件,登陆界面选择CancelTools>Preferences设置选项,在Connection设置OracleHome与OCILibrary目录,如下,保存重新打开PLSQL软件即可。
Oracle 10g各版本之间的区别!Oracle 10g标准版&企业版(10.2.0.5版本为10g最终版)Oracle10g分为4个版本,分别是:1。
Oracle Database Standard Edition One,最基本的商业版本,包括基本的数据库功能。
2。
Oracle Database Standard Edition ,标准版,包括上面那个版本的功能和RAC,只有在10g的标准版中才开始包含RAC。
3。
Oracle Database Enterprise Edition,企业版,虽说是最强劲的版本,但是并不是所有我们常用的功能都在这个版本中,很多东西仍然是要额外付费的,后面会说到。
4。
Oracle Database Personal Edition,个人版,除了不支持RAC之外包含企业版的所有功能,但是注意的是,只有Windows平台上才提供个人版。
下面来看一下,在Standard Edition One和Standard Edition中不支持的功能(只是选了一些大家比较常见或者常用的功能),注意,这些功能除了RAC之外仍然包含在个人版中。
1。
Oracle Data Guard,不支持。
(想要高可用性的客户,就不能选择标准版)2。
一些Online操作,比如Online index maintenance,Online table redefinition等不支持3。
备份和恢复的某些操作受限,比如不支持Block级别的恢复(Block-level media recovery),不支持并行备份和恢复(Parallel backup and recovery),多重备份(Duplexed backup sets)等等4。
Flashback功能,在标准版中Flashback Table,Flashback Database,Flashback Transaction Query都是不支持的5。
武汉软件工程职业学院教案(理论教学首页)1.1 数据库管理系统1.1 数据库管理系统常见的几种关系数据库系统有:♦ 1 Oracle♦ 2 DB2♦ 3 Sybase♦ 4 Ms SQL Server1.1 数据库管理系统1. OracleOracle是当今最大的数据库公司Oracle(甲骨文)的数据库产品。
它是世界上第一个商品化的关系数据库管理系统,也是第一个推出与数据库结合的第4代语言开发工具的数据库产品。
2. DB2DB2是IBM公司的一个基于SQL的数据库产品,它起源于早期的实验系统System R。
20世纪80年代初,DB2主要用在大型机上。
20世纪90年代初,DB2已经发展到中小型机,甚至微机上了。
现在DB2已经完全可以适用于各种硬件、软件平台了。
3. Sybase是Sybase公司的数据库产品。
Sybase公司是较早采用客户机/服务器工作模可以运行在UNIX, VXM,Windows NT/2000 ,OS/2,Netware等操作系统平台SQL语言,使用客户机/服务器工作模式,采用开放的体系结构,能够实现网络环境下各结点上的数据库的互访操作。
4. MS SQL ServerMS SQL Server是Microsoft公司从Sybase公司购买技术而开发的产品,它与Sybase 数据库完全兼容。
MS SQL Server支持客户机/服务器工作模式及Web工作模式,与Windows NT/2000的有机结合可以充分利用Windows NT/2000的优势,性能价格比较高。
1.2 Oracle 10g基础知识♦ 1.2.1 Oracle的发展历史♦ 1.2.2 Oracle 10g的产品构成♦ 1.2.3 Oracle的网络资源1.2.1 Oracle的发展历史1979年,Oracle公司推出了世界上第一个基于SQL标准的关系数据库管理系统Oracle 1。
1980年左右,Oracle公司推出Oracle 3。
oracle 10g新特性中文笔记(Oracle 10g新特性中文笔记)Chapter 1 installation targetComplete this lesson and you will be able to:* list new installation features*list mounting performance increasesInstall new features support*database storage options-file system-automatic storage management (ASM)-bare equipment*database management options-Enterprise Manager grid controller-enterprise manager database controller*database backup and recovery options * email notification options^cluster ready services * cloningOracle 10g reports on the following new installation features:Configure to use oracleasmInstall and configure the new enterprise manager (EM) frameworkIf you choose to use the Oracle Enterprise Manager database controller, you can have the option to configure the default backup policy recommended by OracleIf the Oracle Enterprise Manager database controller you use when installed, you can configure em to send a warning to you know the email address. These warnings include disk space to a non normal or close database boundaries serious.RAC's enhanced. 10g installation supports new features of RAC, especially the installation of Cluster ready servicesOracle's homes can be cloned using the enterprise configuration management tool that comes with grid controlInstallation performance enhancementMemory requirements-no database controller instance 256MDisk requirements-1G swap partition (or two times of Ram)-there's room for 400m in the /tmp directory-Oracle Software is about 0. 5g to 2. 5G-1.2g configurable database (optional)2.4G flashback area (optional)-reduce the total size of the installed database-removed the old optionFully installed, about 20minJust one CDSee the necessary conditions before installationCheck to see if there is enough temporary space -64 bit and 32 bit problems Check the correct OS -check PS's patchSystem packageSystem / kernel parameters -x server license-enough room for change -non empty oracle_home Miscellaneous mounting reinforcementThe sys and system passwords only need to be entered once Clean reverse installationNo documents leftAll files outside -oracle home are clearedRegistry records in -windows are clearedThere are specific 0C4J requirementsThe bidsableStartMenu variable is supported by ISVCD pack contentCompanion CDOracle 9iAS infrastructure CD Oracle Database 10g client Oracle Enterprise manger CD Oracle documentation 10g CD Oracle, database, 10g, demos, CD Companion CD yesHTML DBWorkflowOHSSqlj, jpublisherContext knowledgeLegato Storage Manager ExamplesManagement optionsIf you choose to create the boot database when you install, you can see many screens asking you to configure the following information for the boot databasenameDatabase character setSchema sampleDatabase managementFile storage optionsThe file system stores the files on the OS file system you configureThe ASm ASM file is automatically created and configured, and you can get additional benefits such as mirror orientation, striping, and so onBare device (partition), with no disk partitions on the filesystemBackup and restore optionsWhen installing, you will be prompted for automatic backupPasswordWhen you install, you can set the same password for all users, or you can set them for yourselfThe second chapter server configurationAfter completing this chapter, you will be able to:Describes the functional support of Oracle 10g after using DBCA to install the databaseA subset of initialization parameters is also used to simplify instance configurationInstall sample schema from DBCA (optional)View database usage statistics from OEMStrengthening of DBCADBCA provides fast, fully functional, and ready to use databases for Oracle standards:Automatically create sysaux helper table spacesThe application of flash back, and set the flash backup and recovery strategyOut-of-the-box management databaseAutomatic statistical collectionAutomatic LDAP registrationOracle 10g in order to simplify the future self management activities, the introduction of a number of properties improved. This improvement includes the common architecture of load information and to optimize the performance of the monitoring tools to store all auxiliary metadata and work. These improvements are completely DBCA support and application.The new system belongs to the sysaux table space for all there is no auxiliary database metadata system table space provides a centralized location. It reduces the number ofMoore create table space, both the seed database or user defined database. Dbca now automatically configure the default flashback area, which is the need to restore the files and database the unified storage location for the. Oem database operations, event subsystem is now automatic configuration, reducing the need for manual installation. A new embedding and completely self managing database capture workload information and statistical performance related, thus reducing the cost of the new directory management. Dbca configuration to reduce the need to use the network the API configuration of Idap. ora.Simplified seed databaseSimplified initialization parameters-reduce the sizeOptional installation of sample schemaManaging ASM for automatic storage of disk storage Now the Oracle database configuration easier. Dba only need to pay attention to a few parameters. The parameters are divided into two groups, the basic and advanced parameters. In most cases, in order to get reasonable performance, you need to set or modify the basic parameters, they probably have 20~25. You can configure the ASM DBCA now, the establishment of for Oracle database files and file system and volume instrument longitudinal integration, in order to conventional and Rac environment.Managing with a database controllerIn the DBCA on the screen, you can set up your database using the grid controller or database controller. When you run DBCA, it is to determine the Oracle management agency has been installed on this computer. If there is, you can select from the drop-down box Oracle management service and the grid control option to the central management when. When you complete the installation, the service as the management goal is to start automatically.If you are not the central management of your Oracle environment, you can still use em to manage your database. Em database control when you install the database, automatically install. You can use the DB provided by control based on the characteristics of web to monitor, manage your installed single instance or cluster database. You can also be equipped with EM SysMan users to receive email notifications, when metric to a serious or warning.When you choose DB control,You can also configure the daily backup to the recovery area.SYSAUX and DBCADBCA supports the creation of sysaux table space by forceOn the database storage page, sysaux is the original tablespace folder, and you can change the database file and storage parameters of sysaux by clicking the storage label or the corresponding sysaux entry in the datafile folderData file and storage parameters have default values. But when you click on the finish, DBCA and other seed database will create database events together to create the sysaux table space and its schema, all sysaux table space.Using the enterprise managerstart default console0s> emctl start dbconsoleAccess database controllerHttp://hostname:5500/emTo provide sys/passwd as sysdba;You need to access the EM database controller from a client browser, you must run the dbconsole process. After installation, the dbconsole process is automatically started. Then, if this integration does not start, you can ask the following command to start it manually:1.to $ORACLE HOME/bin directory2.execute the following command: emctl start dbconsoleThen you can open the web browser and enter the following URL - ortnumber/em "TARGET=_blank>http://hostnameortnumber/em”To access EM DB control.Host then your computer's name or address. Portnumber is the port number of EM DB control HTTP, which was specified at the time of installationThe default is 5500, and you can find this value in the$ORACLE_HOME/install/portlist. ini fileIf the instance is started, EM displays the DB control login page. You must log in to the database using the user who authorized access to the DB control. It started with sys users,Use the password of the sys user you identified at the time of installation. Select SYSDBA from the connect as drop-down box and log on. This will appear on the home page of the DB controlDatabase cloneAfter your successful configuration adjustment and testing of new examples, you might need to clone database to an existing Oracle home. EM clone database, you can use the wizard to complete the cloning. To clone a database, you can go to the cloning of the maintenance of the database page, and then click clone in the deployment database. The clone database tool has the following features:The clone database can come from 8.1.7 or later versionsYou can clone when the source database is openThe backup data file, put it to the specified copy Oracle home, and then through the backup of the database file archiving and restore the database to create a new database. The source database is a new database to start the backup as like as two peas.Create a new database instance, password file, set up network file, configure initialization parameter file and SPFILE according to the source instance configuration, then start new instance to open mode under the specified Oracle homeThe clone database tool uses RMAN to complete database cloningMetal ink integrationOEM 10G greatly simplifies installation of patches through built-in metalink integration, and. Em automatically warns you that critical updates and systems need to specify patch annotations. You can use EM patchThe wizard see which temporary patch can be installed. You can also use the patch wizard to select patches and view your system needs this patch. You can see the details of the patch has been readme, directly from the EM follow the steps below to access the patch WizardOneSelect the maintenance tag on the DB control home page2. in the lower deployments areaThe third chapter is loading and unloading datatargetComplete this lesson, and you will:*transmit table space on different platforms*understand the overall structure of the data pump*monitoring data pump operations*using data pumps for import and export*creating external tables for population of data * define surface attributesCross platform transportable table spaceSimplify data distribution between data warehouses and data martsAllows the database to be ported from one platform to anotherSupported platform (omitted)Transportable table spaces across platformsIn previous versions of Oracle, the characteristics of the transportable table space allowed table spaces to migrate between the same architecture and the operating systemThe characteristics of Oracle 10g further let you use transportable tablespaces, transmission platform. This simplified from the data warehouse to distribute data between the supermarket, the supermarket is usually run on the small platform. It also allows the database through the re establishment of the data dictionary and the transmission of the user table space from a platform transfer to another platform.In order to transfer data files from one platform to another, you need to ensure that the source and target systems are running on a supported platform, and that the number of supported platforms is not large...The same character set is requiredMinimum compatibilityBoth source and destination databases must set compatible to 10. 0. 0 or higherThe data file header is platform dependentBefore transmission, make sure that all read-only and offline files are platform - relatedThe two must be the 10g database: read-only and offline means file headers with no log and checkpoint numbersThe process of transmitting tablespaceFrom a platform transfer table space to another platform, the tablespace data file must be converted to the source and the target database can recognize the format. While in 10g, the disk structure meets the common format, but with different high and low in the source and target database is also possible. When you want to transfer to when high and low the different platforms, you need to use the RMAN convert command to convert the high low. This operation can be performed in the target database source can also do.If the high and low levels of the platform are the same, then there is no need to do the conversion. Basically, the process is more consistent than before, unless the platform uses different high and low levelsView the high and low platformsSelect tp.endian_formatFrom v$transportable_platform tp,V$database DWhere tp. platform_name = d. platform_name;Data file conversion: examples (omitted)CLOB exceptionWhen converting high and low places, the CLOB column is skippedChange when you selectYou can use the create table as select to do the conversionChange in dynamic performance viewV$database---------------> PLATFORM_IDPLATFORM_NAMEENDIAN_FORMATV$transportable_platformData pump overviewHigh speed data and metadata server tools modestlyStructure through dbms datapumb callsProvides new areas of export and import tools: expdb, impdb, and web page interfaces Contains the full functionality of the original exp/impData pump general architectureDIRECT PATH API (DPAPI): 10g supports the direct path API interface,This will reduce data conversion and parse time during transshipment and uninstallAppearance services: data pumps use new ORACLE DATAPUMP access drivers, allowing external reads and writes to include binary stream filesThe DBMS METADATA package is used by the worker process to load and unload all metadata. The definition of the database object is stored in XML rather than sql.The DBMSDATAPUMP package contains api. for batch data and metadata migration, high-speed import and export toolsThe Sql*loader client has been integrated into the exterior so that it provides automatic migration of loader control files for external access parametersThe expdp and impdp clients are thin clients that initialize and monitor data pump operations by calling the dbmsdatapump package. Today they introduced new features that are still compatible with the previous exp and impLike DB control, replication, transmission table space and user applications can benefit from the architecture of this. Sqlplus may be to simply query the status of the ongoing operation of the dbms_datapump client providesData pump export import overviewFailure to submit as a background job can continue. Each user has only one process, and data is written to the master tableThe data pump export import tool is a new tool for 10G, although they are similar to the previous exp/imp, but they are separate productsData pump export is a tool for uninstalling data and metadata into an operating system file called the dump file set. The data pump import is used to import metadata and data from the dump file set into the target systemThe data pump API accesses its files at the server side rather than at the clientThese tools can also be used to export data in remote databases, or directly from the source database into the target database. This is the network pattern, which is generally useful inimporting data to read-only databasesAt the core of each data pump operation is the master table (Master, table), the table created when the user runs the data pump job. The main table maintains all the convenience of the jobBased on the export documents, the main table is established, wrote dump file in the last step. On the contrary, the main table into the current user,s schema is the first step of the import operation based on the file, also used to create all of the object to be imported in order.The main table is deleted when the data pump operation is completed normallyThe benefits of data pump import and exportData access methodDirect pathappearanceSeparating and reconnecting to long-running jobsRestart the data pump jobFineness object selectionThe specified version of the displayParallel operations (Enterprise Edition)Estimating export job space consumptionNetwork model in a step by step environmentCalculate the tolerance when importingThe data pump automatically determines how the data is accessed. These can be either direct or externalDoes not affect the operation can be separated or re connected to the long running job can keep you from multiple places to monitor operation. All data can stop pump operation in case of missing data restart, although the original enough information isstill not affected. Whether this job is voluntary or not because of the affection of the stop error have Never mind.The exclude, include, and content parameters are used in fineness object screeningYou can create the dump file set for the object you want to move, knowing the version parameters, so that you will be more compatible with the previous version of Oracle to support the data pump. This parameter is reserved for later versionsYou can also use the parallel parameter to specify the maximum number of job server processes to represent the export in the specified activityYou can also use the estimateonly parameter to estimate how much space the export job will consumeThe network mode allows you to export directly from the remote database to the dump file set, which can be connected to the source database through the databaseIn import fit, you can change the names of target data files, schema, and tablespaceOverview of overall implementationThe client process calls the data pump API. Once the job is started, the client does not need it. Multiple clients can connect or disconnect this job for monitoring or princess workAs for the client login to the Oracle database, you create a shadow process. It is the data pump API request service. When is suitable for dbms_datapump. open requests, shadow create jobs, this work mainly includes the creation of master tables created for various communication process AQ objects, create the main control process. Once the operation, the main task shadow usually includes receiving getstatus requests forcustomers. If the client is disconnected, shadow will not.The master control process controls the execution and sequence of the data pump. It maintains the status of the job, the description of the job, the restart of the main table, and the information about the dump file. This process is called DMnn.After receiving the request to startjob, the main process is based on the value of the parallel parameter to create a lot of work process. Working process of the implementation of MCP is requested to work, home is the loading and unloading of metadata and data. The name is DWnn. processIf the appearance path is the access method for loading and unloading data, the worker process coordinates many parallel server processes based on loading and unloading jobs, making it possible to load and unload within partitionsThe data pump direct path needs to be consideredFineness access control tables are available in insert and select modesThe lob class has a domain indexNow there is a watch for clusteredThe global index of the partitioned table has a single partition for loadingColumns of BFILE or opacity typeReferential integrity constraintThere are varray columns embedded with transparent typesThe data pump supports two access accesses to row data on the tableDirect path using direct path API appearanceThe data pump automatically selects the most appropriate access method for each tableWhen a table structure permits it and expects the largest single flow performance, the data pump uses the direct path to load and unload dataThen, if the above condition appears, or the table contains encrypted columns, or the imported table partitions differently when loading and unloading, the data pump moves data using appearance instead of direct pathData pump file locationThere are three types of data pump filesDump filelog filesql filesAbsolute path is not supportedYou must use the Oracle path objectFile priorityPer-file pathDirectory parameterDatapump dir environment variablesThe dump file contains the data and metadata to be migratedThe log file records the information associated with this operationThe SQL file records the output of the sqlfile operationBecause the data pump is server based rather than client-side, the data pump file accesses the relative path of the oracle. For security reasons, the absolute path is not supportedThe per-file path object must be specified for each dump file, the log file, and the SQL file. They are separated by colonsThe data pump imports and exports the client to specify directory objects through the directory parameter. These path objects describe the location of the file to accessYou can define the environment variable data_pump_dir, specify the directory object name instead of the directory parameter。
第一部分:Administration I Study Guide 第一章:10g组成和体系结构目标:✓安装软件确认系统需求使用OFA安装数据库OUI(Oracle Universal Installer)配置用户变量✓创建数据库数据库物理架构数据库内存架构✓实用工具SQLPLUS和ISQLPLUSSQL语句事务关系型数据库中的最重要的概念:表oracle元数据(metadata)的两类视图:数据字典视图(data dictionary views),以DBA_,ALL_,USER_开头。
DBA_TABLES,DBA_USERS,DBA_VIEWS,DBA_TAB_COLUMNS动态性能视图(dynamic performance views),大都以V$开头。
V$DA TABASE,V$VERSION,V$OPTION,V$SQLDBA_CONSTRAINTSDBA_CONS_COLUMNS--主键SQL> alter table t1 add constraint id_pk primary key(id);--外键SQL> create table t2(id number constraint fk_t1_id references t1(id));参照完整性(referential integrity):对有主外键关系的两个表上执行insert/update/delete等操作时均会受到主外键约束的影响。
Segment types:数据库之内凡是消耗物理存储空间的实体,叫做segment。
例如:表、索引、回滚段、分区。
Extents:每类segment组成的大段存储空间,叫做extents。
每一个segment必定至少分配到一个extents上,最多可分配到20亿个extents。
Blocks:组成extent的最小物理空间单位,叫做block。
一个10g数据库可以同时使用多种大小的block作为最基本的存储单元,如2K,4K,8K,16K。
Form属性、内置子程序、触发器、系统变量一、属性1.1 通用属性名称(Name)子类信息(Subclass Information)备注(Comments)标题(Title)方向(Direction)字体名称(Font Name)字体大小(Font Size)字体粗细(Font Weight)字体风格(Font Style)字体间距(Font Spacing)前景色(Foreground)背景色(Background)填充图案(Fill Pattern)字符模式逻辑属性(Character Mode Logical Attribute)黑底白字(White on Black)视觉属性组(Visual Attribute Group)当前记录视觉属性组(Current Record Visual Attribute Group?/div> 宽度(Width)高度(Height)立体(Bevel)显示水平滚动条(Show Horizontal Scroll Bar)显示垂直滚动条(Show Vertical Scroll Bar)可见(Visible)X轴坐标(X Position)Y轴坐标(Y Position)启用(Enabled)标签文本(Label)允许查询(Query Allowed)允许插入(Insert Allowed)允许更新(Update Allowed)显示滚动条(Show Scroll Bar)带滚动条画布(Scroll Bar Canvas)滚动条标签页(Scroll Bar Tab Page)滚动条方向(Scroll Bar Orientation)滚动条的X轴坐标(Scroll Bar X Position)滚动条的Y轴坐标(Scroll Bar Y Position)滚动条的宽度(Scroll Bar Width)滚动条的高度(Scroll Bar Height)反转方向(Reverse Direction)显示的记录数(Number of Records Displayed)提取的最大记录数(Maximum Records Fetched)最大查询时间(Maximum Query Time)最大长度(Maximum Length)固定长度(Fixed Length)大小写限制(Case Restriction)列名(Column Name)自动跳离(Automatic Skip)折行风格(Wrap Style)数据类型(Data Type)记录间的距离(Distance Between Records)图标文件名(Icon Filename)需要(Required)帮助提示(Hint)1.2 表格模块对象属性控制台窗口(Console Window)菜单源(Menu Source)菜单模块(Menu Module)初始菜单(Initial Menu)菜单风格(Menu Style)推迟实行“需要”属性(Defer Required Enforcement)菜单角色(Menu Role)鼠标导航限制(Mouse Navigation Limit)第一导航数据块(First Navigation Data Block)验证单元(Validation Unit)交互模式(Interaction Mode)孤立模式(Isolation Mode)坐标系统(Coordinate System)字符单元宽度(Character Cell Width)字符单元高度(Character Cell Height)实体单位(Real Unit)使用3D控件(Use 3D Controls)表格水平工具条画布(Form Horizontal Toolbar Canvas)表格垂直工具条画布(Form Vertical Toolbar Canvas)保存点模式(Savepoint Mode)1.3 触发器对象属性触发器风格(Trigger Style)触发器文本(Trigger Text)在输入-查询模式中触发(Fire in Enter-Query Mode)执行层次(Execution Hierarchy)在“键盘帮助”中显示(Display in ‘Keyboard Help’)“键盘帮助”文本(‘Keyboard Help’Text)触发器类型(Trigger Type)1.4 警告对象属性信息(Message)警告风格(Alert Style)按钮1标签(Button1 Label)按钮2标签(Button2 Label)按钮3标签(Button3 Label)缺省警告按钮(Default Alert Button)1.5 数据块对象属性导航器风格(Navigation Style)前一个导航数据块(Previous Navigation Data Block)下一个导航数据块(Next Navigation Data Block)查询数组大小(Query Array Size)缓冲的记录数(Number of Records Buffered)查询所有记录(Query All Records)记录方向(Record Orientation)单记录(Single Record)数据库数据块(Database Block)使用主键(Enforce Primary Key)查询数据源类型(Query Data Source Type)查询数据源名称(Query Data Source Name)查询数据源列(Query Data Source Columns)查询数据源参数(Query Data Source Arguments)WHERE子句(WHERE Clause)ORDER BY子句(ORDER BY Clause)优化提示(Optimizer Hint)锁定模式(Locking Mode)允许删除(Delete Allowed)键模式(Key Mode)仅更新修改的列(Update Changed Columns Only)实行列安全控制(Enforce Column Security)DML数据目标类型(DML Data Target Type)DML数据目标名称(DML Data Target Name)插入过程名称(Insert Procedure Name)插入过程结果集列(Insert Procedure Result Set Columns)插入过程参数(Insert Procedure Arguments)更新过程名(Update Procedure Name)更新过程结果集列(Update Procedure Result Set Columns)更新过程参数(Update Procedure Arguments)删除过程名(Delete Procedure Name)删除过程结果集列(Delete Procedure Result Set Columns)删除过程参数(Delete Procedure Arguments)锁定过程名(Lock Procedure Name)锁定过程结果集列(Lock Procedure Result Set Columns)锁定过程参数(Lock Procedure Arguments)DML数组大小(DML Array Size)预计算汇总(Precompute Summaries)在数据块菜单中列出(Listed In Block Atribute)数据块描述(Data Block Description)1.6 项对象属性项类型(Item Type)对齐(Justification)多行(Multi-Line)隐藏数据(Conceal Data)保持光标位置(Keep Cursor Position)弹出式菜单(Popup Menu)文件名(Filename)执行模式(Execution Mode)通讯模式(Communication Mode)数据源数据块(Data Source Data Block)数据源X轴(Data Source X Axis)数据源Y轴(Data Source Y Axis)提交时更新(Update on Commit)复选时的值(Value when Checked)未复选时的值(Value when Unchecked)其它值的复选框映射(Check Box Mapping of Other Values)图象格式(Image Format)图象深度(Image Depth)压缩质量(Compression Quality)显示质量(Display Quality)显示面板(Show Palette)大小风格(Sizing Style)列表中的元素(Elements in List)列表风格(List Style)访问键(Access Key)图标化(Iconic)缺省按钮(Default Button)声音格式(Sound Format)音频通道(Audio Channels)压缩(Compress)声音质量(Sound Quality)可用键盘导航(Keyboard Navigable)前一个导航项(Previous Navigation Item)下一个导航项(Next Navigation Item)鼠标导航(Mouse Navigate)初始值(Initial Value)格式掩码(Format Mask)最高允许值(Highest Allowed Value)最低允许值(Lowest Allowed Value)从项中复制值(Copy Value from Item)用项同步化(Synchronize with item)计算模式(Calculation Mode)公式(Formula)汇总函数(Summary Function)汇总块(Summarized Block)汇总项(Summarized Item)显示的项数(Number of Item Displayed)主键(Primary Key)仅查询(Query Only)查询长度(Query Length)不区分大小写的查询(Case Insensitive Query)仅为NULL则更新(Update Only if NULL)锁定记录(Lock Record)值列表(List of Values)列表X轴位置(List X Position)列表Y轴位置(List Y Position)编辑器(Editor)编辑器的X轴位置(Editor X Position)编辑器的Y轴位置(Editor Y Position)画布(Canvas)标签页(Tab Page)释放(Rendered)显示播放按钮(Show Play Button)显示录制按钮(Show Record Button)显示倒回按钮(Show Rewind Button)显示快进按钮(Show Fast Forward Button)显示音量控制(Show Volume Control)显示时间显示器(Show Time Indicator)显示滑杆(Show Slider)提示(Prompt)提示显示风格(Prompt Display Style)提示文本对齐(Prompt Justification)提示附件边缘(Prompt Attachment Edge)提示对象对齐(Prompt Alignment)提示附件偏移(Prompt Attachment Offset)提示对象对齐偏移(Prompt Alignment Offset)提示阅读顺序(Prompt Reading Order)提示视觉属性组(Prompt Visual Attribute Group)提示字体名(Prompt Font Name)提示字体大小(Prompt Font Size)提示字体粗细(Prompt Font Weight)提示字体风格(Prompt Font Style)提示字体间距(Prompt Font Spacing)提示前景色(Prompt Foreground Color)提示背景色(Prompt Background Color)提示填充图案(Prompt Fill Pattern)提示(Hint)自动显示提示(Display Hint Automatically)工具提示(Tooltip)工具提示视觉属性组(Tooltip Visual Attribute Group)初始键盘状态(Initial Keyboard State)读取顺序(Reading Order)键盘状态(Keyboard State)1.7 关系对象属性从数据块(Detail Data Block)关联条件(Join Condition)删除记录行为(Delete Record Behavior)防止无主记录操作(Prevent Masterless Operations)协调(Coordination)协调状态(Coordination States)1.8 画布对象属性画布类型(Canvas Type)输入时置前(Raise On Entry)弹出式菜单(Popup Menu)窗口(Window)画布上的视图端口X轴位置(Viewport X Position Canvas)画布上的视图端口Y轴位置(Viewport Y Position Canvas)视图端口的X轴位置(Viewport X Position)视图端口的Y轴位置(Viewport Y Position)视图端口高度(Viewport Height)视图端口宽度(Viewport Width)标签风格(Tab Style)标签附件边缘(Tab Attachment Edge)1.9 框架对象属性布局数据块(Layout Data Block)更新布局(Update Layout)布局风格(Layout Style)框架对齐(Frame Alignment)单对象对齐(Single Object Alignment)水平边距(Horizontal Margin)垂直边距(Vertical Margin)水平对象偏移(Horizontal Object Offset)垂直对象偏移(Vertical Object Offset)允许扩展(Allow Expansion)收缩包容(Shrink wrap)垂直填充(Vertical Fill)每行最多对象数(Maximum Objects Per Line)起始提示对齐(Start Prompt Alignment)起始提示偏移(Start Prompt Offset)顶部提示对齐(Top Prompt Alignment)顶部提示偏移(Top Prompt Offset)允许多行提示(Allow Multi-Line)允许顶部-附加提示(Allow Top-Attached)允许起始-附加提示(Allow Start-Attached)框架标题(Frame Title)框架标题对齐(Frame Title Alignment)框架标题偏移(Frame Title Offset)框架标题间隔(Frame Title Spacing)框架标题阅读顺序(Frame Title Reading Order)滚动条对齐(Scroll Bar Alignment)框架标题视觉属性组(Frame Title Visual Attribute Group)1.10 标签页对象属性1.11 编辑器对象属性底部标题(Bottom Title)1.12 值表(Lovs)对象属性列表类型(List Type)记录组(Record Group)列映射属性(Column Mapping Properties)显示之前过滤(Filter Before Display)自动显示(Automatic Display)自动刷新(Automatic Refresh)自动选择(Automatic Select)自动位置(Automatic Position)自动列宽(Automatic Column Width)自动跳离(Automatic Skip)1.13 表格对象组对象属性1.14 表格参数对象属性参数数据类型(Parameter Data Type)参数初始值(Parameter Initial Value)1.15 表格属性类对象属性1.16 记录组对象属性记录组类型(Record Group Type)记录组查询(Record Group Query)列规格(Column Specifications)1.17 表格视觉对象属性1.18 窗口对象属性主画布(Primary Canvas)水平工具条画布(Horizontal Toolbar Canvas)垂直工具条画布(Vertical Toolbar Canvas)窗口风格(Window Style)模式(Modal)退出时隐藏(Hide on Exit)允许关闭(Close Allowed)允许移动(Move Allowed)允许重新调整大小(Resize Allowed)允许最大化(Maximize Allowed)允许最小化(Minimize Allowed)最小化标题(Minimized Title)继承菜单(Inherit Menu)1.19 菜单模块对象属性主菜单(Main Menu)菜单目录(Menu Directory)菜单文件名(Menu Filename)启动代码(Startup Code)使用安全性(Use Security)模块角色(Module Roles)1.20 菜单对象属性子标题(Subtitle)底部标题(Bottom Title)分离式菜单(Tear-Off Menu)1.21 菜单项对象属性菜单项类型(Menu Item Type)魔术项(Magic Item)菜单项单选组(Menu Item Radio Group)命令类型(Command Type)命令文本(Command Text)键盘加速键(Keyboard Accelerator)在菜单中可见(Visible in Menu)在水平菜单工具条中可见(Visible in Horizontal Menu Toolbar)在垂直菜单工具条中可见(Visible in Vertical Menu Toolbar)菜单中的图标(Icon in Menu)菜单项代码(Menu Item Code)项角色(Item Roles)无权限显示(Display without Privilege)帮助描述(Help)1.22 菜单对象组对象属性1.23 菜单参数对象属性隐藏数据(Secure)关联菜单(Associated Menus)菜单参数初始值(Menu Parameter Initial Value)1.24 菜单视觉属性对象属性二、内置子程序2.1 公共内置子程序GENERATE_SEQUENCE_NUMBERID_NULLRUN_PRODUCTVALIDATE2.2 应用内置子程序DO_KEYGET_APPLICATION_PROPERTY HOSTPAUSESET_APPLICATION_PROPERTY USER_EXIT2.3 表格内置子程序BELLBREAKCALL_FORMCALL_INPUTCLEAR_FORMCLOSE_FORMCOMMIT_FORMDEBUG_MODEENTERERASEEXECUTE_TRIGGEREXIT_FORMFIND_FORMFORM_FAILUREFORM_FATALFORM_SUCCESSGET_FORM_PROPERTYGO_FORMHELPNEW_FORMNEXT_FORMOPEN_FORMPOSTPREVIOUS_FORM REDISPLAYREPLACE_MENUSET_FORM_PROPERTY SHOW_KEYSSHOW_MENU SYNCHRONIZE2.4 块内置子程序BLOCK_MENUCLEAR_BLOCKFIND_BLOCKGET_BLOCK_PROPERTYGO_BLOCKNEXT_BLOCKPREVIOUS_BLOCKSET_BLOCK_PROPERTY2.5 记录内置子程序CHECK_RECORD_UNIQUENESS CLEAR_RECORDCREATE_QUERIED_RECORD CREATE_RECORDDELETE_RECORDDOWNDUPLICATE_RECORDFIRST_RECORDGET_RECORD_PROPERTYGO_RECORDINSERT_RECORDLAST_RECORDLOCK_RECORDNEXT_RECORDNEXT_SETPREVIOUS_RECORD SCROLL_DOWNSCROLL_UPSELECT_RECORDSSET_RECORD_PROPERTYUPUPDATE_RECORD2.6 项内置子程序CHECKBOX_CHECKEDCLEAR_EOLCLEAR_ITEMCONVERT_OTHER_VALUECOPYCOPY_REGIONCUT_REGIONDEFAULT_VALUEDISPLAY_ITEMDUMMY_REFERENCE DUPLICATE_ITEMEDIT_TEXTITEMFIND_ITEMGET_FILE_NAMEGET_ITEM_INSTANCE_PROPERTY GET_ITEM_PROPERTYGET_RADIO_BUTTON_PROPERTY GO_ITEMIMAGE_ZOOMNAME_INNEXT_ITEMNEXT_KEYPASTE_REGIONPLAY_SOUNDPREVIOUS_ITEMREAD_IMAGE_FILEREAD_SOUND_FILE RECALCULATESELECT_ALLSET_ITEM_INSTANCE_PROPERTY SET_ITEM_PROPERTYSET_RADIO_BUTTON_PROPERTYWRITE_IMAGE_FILE WRITE_SOUND_FILE2.7 窗口内置子程序FIND_WINDOWGET_WINDOW_PROPERTY HIDE_WINDOWMOVE_WINDOWREPLACE_CONTENT_VIEW RESIZE_WINDOWSET_WINDOW_PROPERTY SHOW_WINDOW2.8 画布内置子程序FIND_CANVASFIND_VIEWGET_CANVAS_PROPERTY GET_VIEW_PROPERTYHIDE_VIEWPRINTSCROLL_VIEWSET_CANVAS_PROPERTY SET_VIEW_PROPERTY SHOW_VIEW2.9 标签页内置子程序FIND_TAB_PAGEGET_TAB_PAGE_PROPERTY SET_TAB_PAGE_PROPERTY 2.10 事务处理内置子程序ENFORCE_COLUMN_SECURITY FETCH_RECORDSFORMS_DDLISSUE_ROLLBACKISSUE_SAVEPOINT LOGONLOGON_SCREENLOGOUT2.11 查询内置子程序ABORT_QUERYCOUNT_QUERYENTER_QUERYEXECUTE_QUERY2.12 关系内置子程序FIND_RELATIONGET_RELATION_PROPERTY SET_RELATION_PROPERTY2.13 记录组内置子程序ADD_GROUP_COLUMNADD_GROUP_ROWCREATE_GROUPCREATE_GROUP_FROM_QUERY DELETE_GROUPDELETE_GROUP_ROWFIND_COLUMNFIND_GROUPGET_GROUP_CHAR_CELLGET_GROUP_DATE_CELLGET_GROUP_NUMBER_CELL GET_GROUP_ROW_COUNTGET_GROUP_SELECTIONGET_GROUP_SELECTION_COUNT POPULATE_GROUP POPULATE_GROUP_WITH_QUERY RESET_GROUP_SELECTION SET_GROUP_CHAR_CELLSET_GROUP_DATE_CELLSET_GROUP_NUMBER_CELL SET_GROUP_SELECTIONUNSET_GROUP_SELECTION 2.14 列表项内置子程序ADD_LIST_ELEMENT CLEAR_LISTDELETE_LIST_ELEMENT GET_LIST_ELEMENT_COUNT GET_LIST_ELEMENT_LABEL GET_LIST_ELEMENT_VALUE POPULATE_LIST RETRIEVE_LIST2.15 参数列表内置子程序ADD_PARAMETER CREATE_PARAMETER_LIST DELETE_PARAMETER DESTROY_PARAMETER_LIST GET_PARAMETER_ATTR GET_PARAMETER_LIST SET_PARAMETER_ATTR2.16 菜单内置子程序APPLICATION_PARAMETER BACKGROUND_MENUFIND_MENU_ITEMGET_MENU_ITEM_PROPERTY HIDE_MENUITEM_ENABLEDMENU_CLEAR_FIELD MENU_NEXT_FIELDMENU_PARAMETERMENU_PREVIOUS_FIELD MENU_REDISPLAYMENU_SHOW_KEYSNEXT_MENU_ITEM PREVIOUS_MENUPREVIOUS_MENU_ITEM QUERY_PARAMETERSET_INPUT_FOCUSSET_MENU_ITEM_PROPERTY SHOW_BACKGROUND_MENU SHOW_MENUTERMINATEWHERE_DISPLAY2.17 警告内置子程序FIND_ALERTSET_ALERT_BUTTON_PROPERTY SET_ALERT_PROPERTY SHOW_ALERT2.18 消息内置子程序CLEAR_MESSAGEDBMS_ERROR_CODEDBMS_ERROR_TEXTDISPLAY_ERRORERROR_CODE.ERROR_TEXTERROR_TYPEGET_MESSAGEMESSAGE.MESSAGE_CODEMESSAGE_TEXTMESSAGE_TYPE三、触发器3.1 键触发器Key-FnKey-Others3.2 On触发器On-Check-Delete-Master On-Check-UniqueOn-Clear-DetailsOn-CloseOn-Column-SecurityOn-CommitOn-CountOn-DeleteOn-ErrorOn-FetchOn-InsertOn-LockOn-LogonOn-LogoutOn-MessageOn-Populate-Details On-RollbackOn-SavepointOn-SelectOn-Sequence-NumberOn-Update3.3 Post触发器Post-BlockPost-ChangePost-Database-Commit Post-DeletePost-FormPost-Forms-CommitPost-InsertPost-LogonPost-LogoutPost-QueryPost-RecordPost-SelectPost-Text-ItemPost-Update3.4 Pre触发器Pre-BlockPre-CommitPre-DeletePre-FormPre-InsertPre-LogonPre-LogoutPre-QueryPre-RecordPre-SelectPre-Text-ItemPre-Update3.5 When触发器When-Button-Pressed When-Checkbox-Changed When-Clear-BlockWhen-Create-Record When-Custom-Item-Event When-Database-Record When-Form-Navigate When-Image-Activated When-Image-Pressed When-List-Activated When-List-Changed When-Mouse-ClickWhen-Mouse-DoubleClick When-Mouse-DownWhen-Mouse-EnterWhen-Mouse-LeaveWhen-Mouse-MoveWhen-Mouse-UpWhen-New-Block-InstanceWhen-New-Form-InstanceWhen-New-Item-InstanceWhen-New-Record-Instance When-Radio-ChangedWhen-Remove-RecordWhen-Tab-Page-ChangedWhen-Timer-ExpiredWhen-Validate-ItemWhen-Validate-RecordWhen-Window-ActivatedWhen-Window-ClosedWhen-Window-DeactivatedWhen-Window-Resized四、系统变量$$DATE$$$$DATETIME$$$$DBDATE$$$$DBDATETIME$$$$DBTIME$$$$TIME$$SYSTEM.BLOCK_STATUS SYSTEM.COORDINATION_OPERATION SYSTEM.CURRENT_BLOCK SYSTEM.CURRENT_DATETIME SYSTEM.CURRENT_FORM SYSTEM.CURRENT_ITEM SYSTEM.CURRENT_VALUE SYSTEM.CURSOR_BLOCK SYSTEM.CURSOR_ITEM SYSTEM.CURSOR_RECORDSYSTEM.CURSOR_VALUESYSTEM.CUSTOM_ITEM_EVENTSYSTEM.CUSTOM_ITEM_EVENT_PAR-AMETERSSYSTEM.DATE_THRESHOLDSYSTEM.EFFECTIVE_DATESYSTEM.EVENT_WINDOWSYSTEM.FORM_STATUSST_FORMST_QUERYST_RECORDSYSTEM.MASTER_BLOCKSYSTEM.MESSAGE_LEVELSYSTEM.MODESYSTEM.MOUSE_BUTTON_PRESSEDSYSTEM.MOUSE_BUTTON_SHIFT_STATESYSTEM.MOUSE_CANVASSYSTEM.MOUSE_FORMSYSTEM.MOUSE_ITEMSYSTEM.MOUSE_RECORDSYSTEM.MOUSE_RECORD_OFFSETSYSTEM.MOUSE_X_POSSYSTEM.MOUSE_Y_POSSYSTEM.RECORD_STATUSSYSTEM.SUPPRESS_WORKINGSYSTEM.TAB_NEW_PAGESYSTEM.TAB_PREVIOUS_PAGESYSTEM.TRIGGER_BLOCK.SYSTEM.TRIGGER_ITEMSYSTEM.TRIGGER_RECORDForm 中trigger 执行的顺序我总结了FORM的一些操作中TRIGGER的执行顺序。