Anda di halaman 1dari 11

1

Important Questions in Oracle, Developer /2000(Form 4.5 and Reports 2.5)


Oracle 1) What are the Back ground processes in Oracle and what are they. 1) This is one of the most frequently asked question.There are basically 9 rocesses but in a general system we need to mention the first fi!e background processes.They do the house keeping acti!ities for the Oracle and are common in any system. The !arious background processes in oracle are a) Data ase !riter(D !R) "" #ata Base Writer Writes $odified blocks from #atabase buffer cache to #ata %iles.This is required since the data is not written whene!er a transaction is commited. b)"o#!riter("$!R) %% &ogWriter writes the redo log entries to disk. 'edo &og data is generated in redo log buffer of ()*. *s transaction commits and log buffer fills+ &)W' writes log entries into a online redo log file. c) &'stem (onitor(&(O)) %% The (ystem $onitor performs instance reco!ery at instance startup.This is useful for reco!ery from system failure d)*rocess (onitor(*(O)) %% The rocess $onitor peforms process reco!ery when user rocess fails. mon ,lears and %rees resources that process was using. e) +,ec-*oint(+.*/) %% *t (pecified times+ all modified database buffers in ()* are written to data files by #BW' at ,heckpoints and -pdating all data files and control files of database to indicate the most recent checkpoint f)0rc,ieves(0R+1) %% The *rchi!er copies online redo log files to archi!al storal when they are busy. g) Recoveror(R2+O) %% The 'eco!eror is used to resol!e the distributed transaction in network h) Dispatc,er (Dnnn) %% The #ispatcher is useful in $ulti Threaded *rchitecture i) "c-n %% We can ha!e upto 1. lock processes for inter instance locking in parallel sql. /) 0ow many types of (ql (tatements are there in Oracle /) There are 3asicall' 4 t'pes o5 s6l statments .They are a) Data De5ination "an#ua#e(DD") "" The ##& statments define and maintain ob1ects and drop ob1ects. b) Data (anipulation "an#ua#e(D(" ) "" The #$& statments manipulate database data. c) /ransaction +ontrol &tatements "" $anage change by #$& d) &ession +ontrol "" -sed to control the properties of current session enabling and disabling roles and changing .e.g "" *lter (tatements+(et 'ole e) &'stem +ontrol &tatements "" ,hange roperties of Oracle 2nstance .e.g"" *lter (ystem f) 2m3edded &6l "" 2ncorporate ##&+#$& and T.,.( in rogramming &anguage.e.g"" -sing the (ql (tatements in languages such as 3,3+ Open+%etch+ e4ecute and close 5) What is a Transaction in Oracle 5) * transaction is a &ogical unit of work that compromises one or more (6& (tatements e4ecuted by a single -ser. *ccording to *7(2+ a transaction begins with first e4ecutable statment and ends when it is e4plicitly commited or rolled back. 4) .e' !ords 7sed in Oracle 8) The 9ey words that are used in Oracle are "" a) +ommitin# %" * transaction is said to be commited when the transaction makes permanent changes resulting from the (6& statements. b) Roll3ac"" * transaction that retracts any of the changes resulting from (6& statements in Transaction. c) &ave*oint "" %or long transactions that contain many (6& statements+ intermediate markers or sa!epoints are declared. (a!epoints can be used to di!ide a transactino into smaller points. d) Rollin# For8ard %% rocess of applying redo log during reco!ery is called rolling forward. e) +ursor %% * cursor is a handle : name or a pointer) for the memory associated with a specific 195341179.doc

2 stament. * cursor is basically an area allocated by Oracle for e4ecuting the (ql (tatement. Oracle uses an implicit cursor statement for (ingle row query and -ses ;4plcit cursor for a multi row query. f) &'stem $lo3al 0rea(&$0) "" The ()* is a shared memory region allocated by the Oracle that contains #ata and control information for one Oracle 2nstance.2t consists of #atabase Buffer ,ache and 'edo log Buffer. g) *ro#ram $lo3al 0rea (*$0) %" The )* is a memory buffer that contains data and control information for ser!er process. g) Data3ase u55er +ac,e %" #atabese Buffer of ()* stores the most recently used blocks of datatbase data.The set of database buffers in an instance is called #atabase Buffer ,ache. h) Redo lo# u55er%% 'edo log Buffer of ()* stores all the redo log entries. i) Redo "o# Files%% 'edo log files are set of files that protect altered database data in memory that has not been written to #ata %iles. They are basically used for backup when a database crashes. 1) *rocess%" * rocess is a 3thread of control3 or mechansim in Operating (ystem that e4ecutes series of steps. <) What are rocedure+functions and ackages <) *rocedures and 5unctions consist of set of &=(6& statements that are grouped together as a unit to sol!e a specific problem or perform set of related tasks. rocedures do not 'eturn !alues while %unctions return one One >alue *ac-a#es " ackages ro!ide a method of encapsulating and storing related procedures+ functions+ !ariables and other ackage ,ontents ?) What are #atabase Triggers and (tored rocedures ?) Data3ase /ri##ers %% #atabase Triggers are rocedures that are automatically e4ecuted as a result of insert in+ update to+ or delete from table. #atabase triggers ha!e the !alues old and new to denote the old !alue in the table before it is deleted and the new indicated the new !alue that will be used. #T are useful for implementing comple4 business rules which cannot be enforced using the integrity rules.We can ha!e the trigger as Before trigger or *fter Trigger and at (tatement or 'ow le!el. e.g"" operations insert+update +delete 5 before +after 5@/ * total of ? combinatons *t statment le!el:once for the trigger) or row le!el: for e!ery e4ecution ) ? @ / * total of 1/. Thus a total of 1/ combinations are there and the restriction of usage of 1/ triggers has been lifted from Oracle A.5 Onwards. &tored *rocedures %% (tored rocedures are rocedures that are stored in ,ompiled form in the database.The ad!antage of using the stored procedures is that many users can use the same procedure in compiled and ready to use format. A) 0ow many 2ntegrity 'ules are there and what are they A) There are Three 2ntegrity 'ules. They are as follows "" a) ;ntity 2ntegrity 'ule "" The ;ntity 2ntegrity 'ule enforces that the rimary key cannot be 7ull b) %oreign 9ey 2ntegrity 'ule "" The %92' denotes that the relationship between the foreign key and the primary key has to be enforced.When there is data in ,hild Tables the $aster tables cannot be deleted. c) Business 2ntegrity 'ules "" The Third 2ntigrity rule is about the comple4 business processes which cannot be implemented by the abo!e / rules. B) What are the >arious $aster and #etail 'elation ships. B) The !arious $aster and #etail 'elationship are a) )onIsolated %% The $aster cannot be deleted when a child is e4isiting 3) Isolated "" The $aster can be deleted when the child is e4isiting c) +ascadin# "" The child gets deleted when the $aster is deleted. 9) !,at are t,e 9arious loc- +oordination *roperties 9) The !arious Block ,oordination roperties are a) Immediate #efault (etting. The #etail records are shown when the $aster 'ecord are shown. b) De55ered 8it, 0uto Quer' Oracle %orms defer fetching the detail records until the operator na!igates to the detail block. c) De55ered 8it, )o 0uto Quer' The operator must na!igate to the detail block and e4plicitly e4ecute a query 1.) What are the #ifferent Optimisation Techniques 1.) The >arious Optimisation techniques are 195341179.doc

3 a) 2:ecute *lan %% we can see the plan of the query and change it accordingly based on the inde4es 3) Optimi;er<,int %% setCitemCproperty:3#eptBlock3+O T2$2D;'C027T+3%2'(TC'OW(3)E (elect =@F %irstC'ows @= #eptno+#name+&oc+'owid from dept where :#eptno G /<) c) Optimi;e<&6l %" By setting the OptimiHeC(ql I 7o+ Oracle %orms assigns a single cursor for all (6& statements.This slow downs the processing because for e!ertime the (6& must be parsed when!er they are e4ecuted. 545run module = m'<5irst5orm userid = scott/ti#er optimi;e<s6l = )o d) OptimiHeCTp "" By setting the OptimiHeCTpI 7o+ Oracle %orms assigns seperate cursor only for each query (;&;,T statement. *ll other (6& statements reuse the cursor. f8<run module I myCfirstform userid I scott=tiger optimiHeCTp I 7o 11) 0ow do u implement the 2f statement in the (elect (tatement 11) We can implement the if statement in the select statement by using the #ecode statement. e.g select #;,O#; :;$ C,*T+313+3%irst3+3/3+3(econd37ull)E 1/)0ow many types of ;4ceptions are there 1/) There are / types of e4ceptions. They are a) &'stem 2:ceptions e.g. When noCdataCfound+ When tooCmanyCrows 3) 7ser De5ined 2:ceptions e.g. $yCe4ception e4ception When $yCe4ception then 15) What are the inline and the precompiler directi!es 15) The inline and precompiler directi!es detect the !alues directly 18) 0ow do you use the same lo! for / columns 18) We can use the same lo! for / columns by passing the return !alues in global !alues and using the global !alues in the code 1<) 0ow many minimum groups are required for a matri4 report 1<) The minimum number of groups in matri4 report are 8 1?) What is the difference between static and dynamic lo! 1?) The static lo! contains the predetermined !alues while the dynamic lo! contains !alues that come at run time 1A) What are snap shots and !iews 1A) (napshots are mirror or replicas of tables. >iews are built using the columns from one or more tables. The (ingle Table >iew can be updated but the !iew with multi table cannot be updated 1B) What are the OO ( concepts in Oracle. 1B) Oracle does implement the OO ( concepts. The best e4ample is the roperty ,lasses. We can categorise the properties by setting the !isual attributes and then attach the property classes for the ob1ects. OO ( supports the concepts of ob1ects and classes and we can consider the peroperty classes as classes and the items as ob1ects 19) What is the difference between candidate key+ unique key and primary key 19) ,andidate keys are the columns in the table that could be the primary keys and the primary key is the key that has been selected to identify the rows. -nique key is also useful for identifying the distinct rows in the table. /.)What is concurrency /.) ,uncurrency is allowing simultaneous access of same data by different users. &ocks useful for accesing the database are a) ;4clusi!e The e4clusi!e lock is useful for locking the row when an insert+update or delete is being done.This lock should not be applied when we do only select from the row. 195341179.doc

4 b) (hare lock We can do the table as (hareC&ock as many shareClocks can be put on the same resource. /1) re!ileges and )rants /1) re!ileges are the right to e4ecute a particulare type of (6& statements. e.g "" 'ight to ,onnect+ 'ight to create+ 'ight to resource )rants are gi!en to the ob1ects so that the ob1ect might be accessed accordingly.The grant has to be gi!en by the owner of the ob1ect. //)Table (pace+#ata %iles+ arameter %ile+ ,ontrol %iles //)Table (pace "" The table space is useful for storing the data in the database.When a database is created two table spaces are created. a) (ystem Table space "" This data file stores all the tables related to the system and dba tables b) -ser Table space "" This data file stores all the user related tables We should ha!e seperate table spaces for storing the tables and inde4es so that the access is fast. #ata %iles "" ;!ery Oracle #ata Base has one or more physical data files.They store the data for the database.;!ery datafile is associated with only one database.Once the #ata file is created the siHe cannot change.To increase the siHe of the database to store more data we ha!e to add data file. arameter %iles "" arameter file is needed to start an instance.* parameter file contains the list of instance configuration parameters e.g."" dbCblockCbuffers I <.. dbCname I O'*A dbCdomain I u.s.acme lang ,ontrol %iles "" ,ontrol files record the physical structure of the data files and redo log files They contain the #b name+ name and location of dbs+ data files +redo log files and time stamp. /5) hysical (torage of the #ata /5) The finest le!el of granularity of the data base are the data blocks. #ata Block "" One #ata Block correspond to specific number of physical database space ;4tent "" ;4tent is the number of specific number of contigious data blocks. (egments "" (et of ;4tents allocated for ;4tents. There are three types of (egments a) #ata (egment "" 7on ,lustered Table has data segment data of e!ery table is stored in cluster data segment b) 2nde4 (egment "" ;ach 2nde4 has inde4 segment that stores data c) 'oll Back (egment "" Temporarily store 3undo3 information /8) What are the ct %ree and ct -sed /8) ct %ree is used to denote the percentage of the free space that is to be left when creating a table. (imilarly ct -sed is used to denote the percentage of the used space that is to be used when creating a table eg."" ctfree /.+ ctused 8. /<) What is 'ow ,haining /<) The data of a row in a table may not be able to fit the same data block.#ata for row is stored in a chain of data blocks . /?) What is a / hase ,ommit /?) Two hase commit is used in distributed data base systems. This is useful to maintain the integrity of the database so that all the users see the same !alues. 2t contains #$& statements or 'emote rocedural calls that reference a remote ob1ect. There are basically / phases in a / phase commit. a) repare hase "" )lobal coordinator asks participants to prepare b) ,ommit hase "" ,ommit all participants to coordinator to repared+ 'ead only or abort 'eply /A) What is the difference between deleting and truncating of tables /A) #eleting a table will not remo!e the rows from the table but entry is there in the database dictionary and it can be retrie!ed But truncating a table deletes it completely and it cannot be retrie!ed. /B) What are mutating tables /B) When a table is in state of transition it is said to be mutating. eg "" 2f a row has been deleted then the table is said to be mutating and no operations can be done on the table e4cept select. /9) What are ,odd 'ules 195341179.doc

5 /9) ,odd 'ules describe the ideal nature of a '#B$(. 7o '#B$( satisfies all the 1/ codd rules and Oracle (atisfies 11 of the 1/ rules and is the only 'dbms to satisfy the ma4imum number of rules. 5.) What is 7ormalisation 5.) 7ormalisation is the process of organising the tables to remo!e the redundancy.There are mainly < 7ormalisation rules. a) 1 7ormal %orm "" * table is said to be in 1st 7ormal %orm when the attributes are atomic b) / 7ormal %orm "" * table is said to be in /nd 7ormal %orm when all the candidate keys are dependant on the primary key c) 5rd 7ormal %orm "" * table is said to be third 7ormal form when it is not dependant transiti!ely 51) What is the #ifference between a post query and a pre query 51) * post query will fire for e!ery row that is fetched but the pre query will fire only once. 5/) #eleting the #uplicate rows in the table 5/) We can delete the duplicate rows in the table by using the 'owid 55) ,an - disable database triggerJ 0owJ 55) Kes. With respect to table 0"/2R /0 "2 /0 "2 > DI&0 "2 all<tri##er ? 58) What is pseudo columns J 7ame themJ * pseudocolumn beha!es like a table column+ but is not actually stored in the table. Kou can select from pseudocolumns+ but you cannot insert+ update+ or delete their !alues. This section describes these pseudocolumns" @ ,-''>*& @ 7;LT>*& @ &;>;& @ 'OW2# @ 'OW7-$ 5<) 0ow many columns can table ha!eJ The number of columns in a table can range from 1 to /<8. 5?) 2s space acquired in blocks or e4tents J 2n e4tents . 5A) what is clustered inde4J 2n an inde4ed cluster+ rows are stored together based on their cluster key !alues .,annot applied for 0*(0. 5B) what are the datatypes supported By oracle :27T;'7*&)J >archar/+ 7umber+,har + $&(&*B;&. 59 ) What are attributes of cursorJ M%O-7# + M7OT%O-7# + M2(O ;7+M'OW,O-7T 8.) ,an you use select in %'O$ clause of (6& select J Kes. Forms 4.5 Questions 1) Which trigger are created when master Ndetail relaJ 1) master delete property @ )O)AI&O"0/2D (de5ault) a) on check delete master b) on clear details c) on populate details @ I&O"0/2D a) on clear details 195341179.doc

6 b) on populate details @ +0&+0D2 a) reNdelete b) on clear details c) on populate details /) which system !ariables can be set by usersJ (K(T;$.$;((*);C&;>;& (K(T;$.#*T;CT0';(0O&# (K(T;$.;%%;,T2>;C#*T; (K(T;$.(- ';((CWO'927) 5) What are ob1ect groupJ *n ob1ect group is a container for a group of ob1ects. Kou define an ob1ect group when you want to package related ob1ects so you can copy or reference them in another module. 8) What are referenced ob1ectsJ 'eferencing allows you to create ob1ects that inherit their functionality and appearance from other ob1ects. 'eferencing an ob1ect is similar to copying an ob1ect+ e4cept that the resulting reference ob1ect maintains a link to its source ob1ect. * reference ob1ect automatically inherits any changes that ha!e been made to the source ob1ect when you open or regenerate the module that contains the reference ob1ect. <) ,an you store ob1ects in libraryJ 'eferencing allows you to create ob1ects that inherit their functionality and appearance from other ob1ects. 'eferencing an ob1ect is similar to copying an ob1ect+ e4cept that the resulting reference ob1ect maintains a link to its source ob1ect. * reference ob1ect automatically inherits any changes that ha!e been made to the source ob1ect when you open or regenerate the module that contains the reference ob1ect. ?) 2s forms 8.< ob1ect oriented tool J whyJ yes + partially. B) *RO*2R/C +"0&& N inheritance property 2) O92R"O0DI)$ % procedures and functions. A) ,an you issue ##& in formsJ Kes+ but you ha!e to use %O'$(C##&. 'eferencing allows you to create ob1ects that inherit their functionality and appearance from other ob1ects. 'eferencing an ob1ect is similar to copying an ob1ect+ e4cept that the resulting reference ob1ect maintains a link to its source ob1ect. * reference ob1ect automatically inherits any changes that ha!e been made to the source ob1ect when you open or regenerate the module that contains the reference ob1ect. *ny string e4pression up to 5/9" a literal an e4pression or a !ariable representing the te4t of a block of dynamically created &=(6& code a #$& statement or a ##& statement 'estrictions" The statement you pass to %O'$(C##& may not contain bind !ariable references in the string+ but the !alues of bind !ariables can be concatenated into the string before passing the result to %O'$(C##&. B) What is (;,-'; propertyJ B)N 0ides characters that the operator types into the te4t item. This setting is typically used for password protection. 9 ) What are the types of triggers and how the sequence of firing in te4t item Triggers can be classified as .e' /ri##ers, (ouse /ri##ers , )avi#ational /ri##ers . .e' /ri##ers %% 9ey Triggers are fired as a result of 9ey action. 195341179.doc

7 e.g "" 9eyNne4tNfield+ 9eyNup+9eyN#own (ouse /ri##ers %% $ouse Triggers are fired as a result of the mouse na!igation. e.g. WhenNmouseNbuttonNpressed+ whenNmouseNdoubleclicked+etc )avi#ational /ri##ers %% These Triggers are fired as a result of 7a!igation. ;.g " ostNTe4tNitem+ reNte4tNitem. We also ha!e e!ent triggers like when OnewNformNinstance and whenNnewNblockNinstance. We cannot call restricted procedures like goCto:PmyCblock.firstCitemQ) in the 7a!igational triggers But can use them in the 9eyNne4tNitem. /,e Di55erence 3et8een .e'Ane:t and *ostA/e:t is an ver' important 6uestion. The keyNne4t is fired as a result of the key action while the post te4t is fired as a result of the mouse mo!ement. 9ey ne4t will not fire unless there is a key e!ent. The sequence of firing in a te4t item are as follows "" a) pre N te4t b) when new item c) keyNne4t d) when !alidate e) post te4t 1. ) ,an you store pictures in databaseJ 0owJ 1.)Kes + in long 'aw datatype. 11) What are property classes J ,an property classes ha!e triggerJ 11) roperty class inheritance is a powerful feature that allows you to quickly define ob1ects that conform to your own interface and functionality standards. roperty classes also allow you to make global changes to applications quickly. By simply changing the definition of a property class+ you can change the definition of all ob1ects that inherit properties from that class. Kes . *ll type of triggers . 1/ a) 2f you ha!e property class attached to an item and you ha!e same trigger written for the item . Which will fire firstJ Item level tri##er 5ires , 2f item le!el trigger fires+ property le!el trigger won3t fire. Triggers at the lowest le!el are always gi!en the first preference. /,e item level tri##er 5ires 5irst and t,en t,e 3loc- and t,en t,e Form level tri##er. 15) What are record groups J @ ,an record groups created at runNtimeJ 0 record #roup is an internal Oracle Forms data structure t,at ,as a column/ro8 5rame8or- similar to a data3ase ta3le. 0owe!er+ unlike database tables+ record groups are separate ob1ects that belong to the form module in which they are defined. * record group can ha!e an unlimited number of columns of type ,0*'+ &O7)+ 7-$B;'+ or #*T; pro!ided that the total number of columns does not e4ceed ?89. 'ecord group column names cannot e4ceed 5. characters. rogrammatically+ record groups can be used whene!er the functionality offered by a twoNdimensional array of multiple data types is desirable. /C*2& OF R2+ORD $RO7*% Quer' Record $roup% * query record group is a record group that has an associated (;&;,T statement. The columns in a query record group deri!e their default names+ data types+ and lengths from the database columns referenced in the (;&;,T statement. The records in a query record group are the rows retrie!ed by the query associated with that record group. )onA6uer' Record $roup " * nonNquery record group is a group that does not ha!e an associated query+ but whose structure and !alues can be modified programmatically at runtime. &tatic Record $roup % * static record group is not associated with a queryE rather+ you define its structure and row !alues at design time+ and they remain fi4ed at runtime. 18) What are *&;'TJ 18)*n *&;'T is a modal window that displays a message notifiying operator of some application condition. 1<) ,an a button ha!e icon and lable at the same time J 1<) N7O 1?) What is mouse na!igate property of buttonJ 1?) When $ouse 7a!igate is True :the default)+ Oracle %orms performs standard na!igation to mo!e the focus to the 195341179.doc

8 item when the operator acti!ates the item with the mouse. When $ouse 7a!igate is set to %alse+ Oracle %orms does not perform na!igation :and the resulting !alidation) to mo!e to the item when an operator acti!ates the item with the mouse. 1A) What is %O'$(C$#2CW27#OWJ %orms run inside the $#2 application window. This property is useful for calling a form from another one. 1B) What are timers J when whenNtimerNe4pired does not fireJ The WhenNTimerN;4pired trigger can not fire during trigger+ na!igation+ or transaction processing. 19 ) ,an ob1ect group ha!e a blockJ 19)Kes + ob1ect group can ha!e block as well as program units. /.) 0ow many types of can!ases are there. /.)There are 2 t'pes o5 canvases called as +ontent and &tac- +anvas. +ontent canvas is t,e de5ault and the one that is used mostly for gi!ing the base effect. 2ts like a plate on which we add items and stac-ed canvas is used 5or #ivin# D dimensional e55ect. The following questions might not be asked in an *!erage 2nter!iew and could be asked when the 2nter!iewer wants to trouble u and go deepppppppppppppRR0e cannot go furtherR.. 1) What are userNe4itsJ 1) 2t in!okes 5)& programs. /) ,an you pass !alues toNandNfro from foreign function J how J /) Kes . Kou obtain a return !alue from a foreign function by assigning the return !alue to an Oracle %orms !ariable or item. $ake sure that the Oracle %orms !ariable or item is the same data type as the return !alue from the foreign function. *fter assigning an Oracle %orms !ariable or item !alue to a &=(6& !ariable+ pass the &=(6& !ariable as a parameter !alue in the &=(6& interface of the foreign function. The &=(6& !ariable that is passed as a parameter must be a !alid &=(6& data typeE it must also be the appropriate parameter type as defined in the &=(6& interface. 5) What is 2* LTB structure J 5) The entries of ro @ , and user e4its and the form which simulate the proc or userCe4it are stored in 2* LTB table in d=b. 8) ,an you call W27N(#9 thruo3 user e4itsJ 8) K;(. <) #oes user e4its supports #&& on $(W27#OW( J <) K;( . ?) What is path setting for #&&J ?) $ake sure you include the name of the #&& in the %O'$(8<C-(;';L2T !ariable of the O'*,&;.272 file+ or rename the #&& to %8<LTB.#&&. 2f you rename the #&& to %8<LTB.#&&+ replace the e4isting %8<LTB.#&& in the SO'*W27SB27 directory with the new %8<LTB.#&&. A) 0ow is mapping of name of #&& and function doneJ A) The dll can be created using the >isual ,FF = >isual Basic Tools and then the dll is put in the path that is defined the registery. B) what is precompilerJ B) 2t is similar to , precompiler directi!es. 9) ,an you connect to non N oracle datasource J 0owJ 9) Kes . 1. ) what are keyNmode and locking mode propertiesJ le!el J 1.) 9ey $ode " (pecifies how oracle forms uniquely identifies rows in the database.This is property includes for 195341179.doc

9 application that will run against 7O7NO'*,&; datasources . 9ey setting unique :default.) dateable nNupdateable. &ocking mode " (pecifies when Oracle %orms should attempt to obtain database locks on rows that correspond to queried records in the form. a) immediate b) delayed 11) What are sa!epoint mode and cursor mode properties J le!elJ 11) (pecifies whether Oracle %orms should issue sa!epoints during a session. This property is included primarily for applications that will run against nonNO'*,&; data sources. %or applications that will run against O'*,&;+ use the default setting. ,ursor mode N define cursur state across transaction Open=close. 1/) ,an you replace default form processing J 0ow J 15) What is transactional trigger propertyJ 15) 2dentifies a block as transactional control block. i.e. non N database block that oracle forms should manage as transactional block.:7O7NO'*,&; datasource) default N %*&(;. 18) What is O&; automation J 18) O&; automation allows an O&; ser!er application to e4pose a set of commands and functions that can be in!oked from an O&; container application. O&; automation pro!ides a way for an O&; container application to use the features of an O&; ser!er application to manipulate an O&; ob1ect from the O&; container en!ironment. :%O'$(CO&;) 1<) What does in!oke builtNin doJ 1<) This procedure in!okes a method. (ynta4" 'O,;#-'; O&;/.27>O9; :ob1ect ob1Ctype+ method >*',0*'/+ list listCtype "I .)E arameters" ob1ect 2s an O&;/ *utomation Ob1ect. method 2s a method :procedure) of the O&;/ ob1ect. list 2s the name of an argument list assigned to the O&;/.,';*T;C*')&2(T function. 1?) What are O ;7C%O'$+,*&&C%O'$+7;WC%O'$J diffJ 1?) ,*&&C%O'$ " 2t calls the other form. but parent remains acti!e+ when called form completes the operation + it releases lock and control goes back to the calling form. When you call a form+ Oracle %orms issues a sa!epoint for the called form. 2f the ,&;*'C%O'$ function causes a rollback when the called form is current+ Oracle %orms rolls back uncommitted changes to this sa!epoint. O*2)<FOR( " When you call a form+ Oracle %orms issues a sa!epoint for the called form. 2f the +"20R<FOR( %unction causes a rollback when the called form is current+ Oracle %orms rolls back uncommitted changes to this sa!epoint. )2!<FOR( % ;4its the current form and enters the indicated form. The calling form is terminated as the parent form. 2f the calling form had been called by a higher form+ Oracle %orms keeps the higher call acti!e and treats it as a call to the new form. Oracle %orms releases memory :such as database cursors) that the terminated form was using. Oracle %orms runs the new form with the same 'unform options as the parent form. 2f the parent form was a called form+ Oracle %orms runs the new form with the same options as the parent form. 1A ) What is call form stackJ 1A) When successi!e forms are loaded !ia the ,*&&C%O'$ procedure+ the resulting module hierarchy is known as the call form stack. 195341179.doc

10 1B) ,an u port applictions across the platformsJ howJ 1B) Kes we can port applications across platforms.,onsider the form de!eloped in a windows system.The form would be generated in uni4 system by using f8<gen myCform.fmb scott=tiger

)-2
1) What is a !isual attributeJ 1) >isual attributes are the font+ color+ and pattern properties that you set for form and menu ob1ects that appear in your application3s interface. /) #iff. between >*T and roperty ,lassJ imp /)7amed !isual attributes define only font+ color+ and pattern attributesE property classes can contain these and any other properties. Kou can change the appearance of ob1ects at runtime by changing the named !isual attribute programmaticallyE property class assignment cannot be changed programmatically. When an ob1ect is inheriting from both a property class and a named !isual attribute+ the named !isual attribute settings take precedence+ and any !isual attribute properties in the class are ignored. 5 ) Which trigger related to mouseJ 5) WhenN$ouseN,lick WhenN$ouseN#ouble,lick WhenN$ouseN#own WhenN$ouseN;nter WhenN$ouseN&ea!e WhenN$ouseN$o!e WhenN$ouseN-p 8) What is ,urrent record attribute propertyJ 8) (pecifies the named !isual attribute used when an item is part of the current record. ,urrent 'ecord *ttribute is frequently used at the block le!el to display the current row in a multiNrecord 2f you define an itemNle!el ,urrent 'ecord *ttribute+ you can display a preNdetermined item in a special color when it is part of the current record+ but you cannot dynamically highlight the current item+ as the input focus changes. <) ,an u change >*T at run timeJ <) Kes. Kou can programmatically change an ob1ect3s named !isual attribute setting to change the font+ color+ HHand pattern of the ob1ect at runtime. ?) ,an u set default font in formsJ ?) Kes. ,hange windows registry:regedit). (et form8<Cfont to the desired font. A) ,an u ha!e O&; ob1ects in formsJ A) Kes. B) ,an u ha!e >BL and O,L controls in forms J B) Kes. 9) What r the types of windows :Window style)J 9) (pecifies whether the window is a #ocument window or a #ialog window. 1.) What is O&; *cti!ation style propertyJ 1.) (pecifies the e!ent that will acti!ate the O&; containing item. 11) ,an u change the mouse pointer J 0owJ 11) Kes. (pecifies the mouse cursor style. -se this property to dynamically change the shape of the cursor. 'eports /.< 1) 0ow many types of columns are there and what are they 1) %ormula columns "" %or doing mathematical calculations and returning one !alue (ummary ,olumns "" %or doing summary calculations such as summations etc. lace holder ,olumns "" These columns are useful for storing the !alue in a !ariable 195341179.doc

11 /) ,an u ha!e more than one layout in report /) 2t is possible to ha!e more than one layout in a report by using the additional layout option in the layout editor. 5) ,an u run the report with out a parameter form 5) Kes it is possible to run the report without parameter form by setting the *'*$ !alue to 7ull 8) What is the lock option in reports layout 8) By using the lock option we cannot mo!e the fields in the layout editor outside the frame. This is useful for maintaining the fields . <) What is %le4 <) %le4 is the property of mo!ing the related fields together by setting the fle4 property on ?) What are the minimum number of groups required for a matri4 report ?) The minimum of groups required for a matri4 report are 8 What is the difference between MType and M'owType *ns" MTK ;" The Mtype attribute pro!ides the datatype of a !ariable or database column. The MTK ; attribute is particularly useful when declaring !ariables that refer to database columns. Kou can reference a table and a column. M'OWTK ;" The Mrowtype attribute pro!ides a record type that represents a row in a table: or !iew). The record can store and entire row of data selected from the table or fetched from a cursor or strongly typed cursor !ariable. Kou can use M'OWTK ; to define a packaged cursor.

195341179.doc

Anda mungkin juga menyukai