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:
Thursday, September 20, 2018
Oracle delete archive log
Oracle delete archive log
RMAN>DELETE ARCHIVELOG ALL COMPLETED BEFORE ‘sysdate-1’;
RMAN>DELETE ARCHIVELOG ALL BACKED UP 2 TIMES to disk;
RMAN>DELETE NOPROMPT ARCHIVELOG UNTIL SEQUENCE = 3790;
OR
Delete all after backup
RMAN> backup archivelog all delete input;
RMAN>DELETE ARCHIVELOG ALL COMPLETED BEFORE ‘sysdate-1’;
RMAN>DELETE ARCHIVELOG ALL BACKED UP 2 TIMES to disk;
RMAN>DELETE NOPROMPT ARCHIVELOG UNTIL SEQUENCE = 3790;
OR
Delete all after backup
RMAN> backup archivelog all delete input;
Wednesday, September 19, 2018
Oracle startup error ORA-03113: end-of-file on communication channel
Oracle startup error ORA-03113: end-of-file on communication channel
Solution 1:
SQLplus connect as sysdba;
Solution 1:
SQLplus connect as sysdba;
SQL> STARTUP MOUNT;
SQL> ALTER DATABASE RECOVER DATABASE UNTIL CANCEL;
SQL> ALTER DATABASE OPEN RESETLOGS;
Solution 2:
SQLplus connect as sysdba;
sql > startup nomount;
sql> alter database mount;
sql> alter database clear unarchived logfile group 1;
sql> alter database clear unarchived logfile group 2;
sql> alter database clear unarchived logfile group 3;
try #4 until you dont have any more group
sql> shutdown immediate;
sql> startup;
Wednesday, September 12, 2018
PLSQL Decode function
DECODE( expression , search , result [, search , result]... [, default] )
Example
The DECODE function can be used in Oracle/PLSQL.
You could use the DECODE function in a SQL statement as follows:
SELECT supplier_name, DECODE(supplier_id, 10000, 'IBM', 10001, 'Microsoft', 10002, 'Hewlett Packard', 'Gateway') result FROM suppliers;
The above DECODE statement is equivalent to the following IF-THEN-ELSE statement:
IF supplier_id = 10000 THEN result := 'IBM'; ELSIF supplier_id = 10001 THEN result := 'Microsoft'; ELSIF supplier_id = 10002 THEN result := 'Hewlett Packard'; ELSE result := 'Gateway'; END IF;
Monday, August 27, 2018
Ellucian Banner : Input text into 2 text boxes continuously when typing extra characters
Ellucian Banner : Input text into 2 text boxes continuously when typing extra characters
Ex
Struct
<Item AllowSearch="true" CanvasName="FABINVH_HEADER" Id="FABINVH_VEND_INV_CODE" MaxLength="15" Type="TextItem"/>
XVC
<textbox autoskip="true" block="FABINVH" case="upper" datatype="String" height="23px" keyactions="NEXT_ITEM" label="fabinvh.fabinvhVendInvCode.prompt" maxlength="15" member="FABINVH_VEND_INV_CODE" name="fabinvhVendInvCode" validation="server" width="120px" style="ui-hidelabel">
FORM
@ActionTrigger(action="HOLD_LAST_ITEM_LOC")
public void Fyainve_HoldLastItemLoc()
{
// DECLARE
// hold_last_text_item VARCHAR2(30);
// BEGIN
// DECLARE
// hold_last_text_item VARCHAR2(30);
// BEGIN
getFormModel().getFormHeader().setHoldLastTextItem(toStr(getCursorItem()));
CONTROLLER
@ActionTrigger(action="POST-TEXT-ITEM", item="FABINVH_VEND_INV_CODE", function=KeyFunction.ITEM_OUT)
public void fabinvhVendInvCode_itemOut()
{
System.out.println(" fabinvhVendInvCode_itemOut");
executeAction("HOLD_LAST_ITEM_LOC");
}
@ActionTrigger(action="KEY-NEXT-ITEM", item="FABINVH_VEND_INV_CODE", function=KeyFunction.NEXT_ITEM)
public void fabinvhVendInvCode_keyNexItem()
{
System.out.println(" fabinvhVendInvCode_keyNextItem ");
nextItem();
// GO_FIELD( 'FABINVH_ACH_OVERRIDE_IND' ) ;
getTask().getGoqrpls().gCheckFailure();
}
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...