Java, SpringBoot, React, Angular, Oracle, PL/SQL, Ellucian Banner, Puppet, Docker, Terraform technical notes
Friday, October 26, 2018
Ellucian Banner 9 : Default load value for form
Ellucian Banner 9 : Default load value for form
<item name="FTVVEND_COLLECT_TAX" logicalName="ftvvendCollectTax" type="String" physicalName="FTVVEND_COLLECT_TAX" >
<value>
<constant>A</constant>
</value>
</item>
<item name="FTVVEND_TAX_FORM_STATUS" logicalName="ftvvendTaxFormStatus" type="String" physicalName="FTVVEND_TAX_FORM_STATUS">
<value>
<constant>A</constant>
</value>
</item>
<item name="FTVVEND_TAX_FORM_DATE" logicalName="ftvvendTaxFormDate" type="java.util.Date" physicalName="FTVVEND_TAX_FORM_DATE" >
<value>
<systemVariable name="DBDATE"/>
</value>
</item>
Banner 9: can not open task in some eclipse
Ellucian Banner 9: can not open task in some eclipse env
some env is ok but some env can not open it
- move out ,
- refresh,
- maven update ...
then copy back
- refresh
- maven update ...
some env is ok but some env can not open it
- move out ,
- refresh,
- maven update ...
then copy back
- refresh
- maven update ...
Monday, October 8, 2018
PL/SQL Exception handling
PL/SQL Exception handling
ex
ex
BEGIN
-- first insert
BEGIN
Insert into myTab(ID,NAME) values (1,'name1');
EXCEPTION
when DUP_VAL_ON_INDEX then
null; -- do something or ignore the error
END;
-- second insert
BEGIN
Insert into myTab(ID,NAME) values (2,'name2');
EXCEPTION
when DUP_VAL_ON_INDEX then
null; -- do something or ignore the error
END;
END;
There are two types of exceptions defined in PL/SQL
- User defined exception.
- System defined exceptions.
System defined exceptions:
System-defined exceptions are further divided into two categories:
- Named system exceptions.
- Unnamed system exceptions.
- Named system exceptions: They have a predefined name by the system like ACCESS_INTO_NULL, DUP_VAL_ON_INDEX, LOGIN_DENIED etc.....
- NO_DATA_FOUND: It is raised WHEN a SELECT INTO statement returns no rows
TOO_MANY_ROWS:It is raised WHEN a SELECT INTO statement returns more than one row
ZERO_DIVIDE = raises exception WHEN dividing with zero
Unnamed system exceptions:Oracle doesn’t provide name for some system exceptions called unnamed system exceptions.These exceptions don’t occur frequently.These exceptions have two parts code and an associated message.
The way to handle to these exceptions is to assign name to them using Pragma EXCEPTION_INIT
Syntax:
The way to handle to these exceptions is to assign name to them using Pragma EXCEPTION_INIT
Syntax:
PRAGMA EXCEPTION_INIT(exception_name, -error_number);
error_number are pre-defined and have negative integer range from -20000 to -20999.
Example:
DECLARE
exp exception;
pragma exception_init (exp, -20015);
n int:=10;
BEGIN
.......
RAISE exp;
........
EXCEPTION
WHEN exp THEN
dbms_output.put_line('aaaa');
END;
Scope rules in exception handling:
We can’t DECLARE an exception twice but we can DECLARE the same exception in two dIFferent blocks.
Exceptions DECLAREd inside a block are local to that block and globalto all its sub-blocks.
As a block can reference only local or global exceptions, enclosing blocks cannot reference exceptions DECLAREd in a sub-block.
If we reDECLARE a global exception in a sub-block, the local declaration prevails i.e. the scope of local is more.
Example:
DECLARE
AAAAA EXCEPTION;
age NUMBER:=16;
BEGIN
-- sub-block BEGINs
DECLARE
-- this declaration prevails
AAAAA EXCEPTION;
age NUMBER:=22;
BEGIN
IF age > 16 THEN
RAISE AAAAA ; /* this is not handled*/
END IF;
END;
-- sub-block ends
EXCEPTION
-- Does not handle raised exception
WHEN AAAAA THEN
DBMS_OUTPUT.PUT_LINE
('Handling AAAAA exception.');
WHEN OTHERS THEN
DBMS_OUTPUT.PUT_LINE
('Could not recognize exception AAAAA in this scope.');
END;
------------------------
LIST of Ex
LIST of Ex
Brief descriptions of the predefined exceptions follow:
Subscribe to:
Posts (Atom)
AWS how to delete VPC when it has error with Network interface , Gateway decencies
how to delete VPC when it has error with Network interface , Gateway decencies in AWS 1. Check if it is running on EC2 instance then Sto...
-
ORA-29273: HTTP request failed ORA-06512: at "SYS.UTL_HTTP", line 1525 ORA-29261: bad argument ORA-29273: HTTP request failed ...
-
Banner 9 Admin: Invalid Object Name fix do steps: A record in GUBOBJS with a UI Version of D. • Records in GURAOBJ to define the defau...
-
chown root $ORACLE_HOME/bin/extjob chmod 4750 $ORACLE_HOME/bin/extjob chown root $ORACLE_HOME/rdbms/admin/externaljob.ora chmod 640 $ORA...