An API call has been prohibited. Contact your administrator. Details about this incident are available via debug id "108075"
Muhammad Abdul Qaium is a Database Engineer/Oracle Apex Developer/BI Developer (in Connecticut, USA) who is an Oracle Certified Cloud Architect Professional, OCI Autonomous DB specialist as well as Oracle Business Intelligence Foundation Suite 11g Certified Implementation Specialist with extensive expertise in Database design , PL/SQL, Oracle Apex, Microsoft SSIS, ETL, Power BI, Qlik Sense, BI Publisher, Jasper Report, OBIEE. Contact: qaiuminfo@gmail.com
STEP-1 Creating Collection and Taking Excel File Value into Collection Table
Begin
IF APEX_COLLECTION.COLLECTION_EXISTS('COLLECTION_TABLE_NAME') THEN
APEX_COLLECTION.TRUNCATE_COLLECTION('COLLECTION_TABLE_NAME');
END IF;
IF NOT APEX_COLLECTION.COLLECTION_EXISTS('COLLECTION_TABLE_NAME') THEN
APEX_COLLECTION.CREATE_COLLECTION('COLLECTION_TABLE_NAME');
END IF;
Here we are freezing the first 5 columns from an interactive report in Oracle Apex.
Step-1. Copy the below code and pest into Page -> Execute when Page Loads
$('.a-IRR-table tr th:nth-child(2), .a-IRR-table tr td:nth-child(2)').css("left",$(".a-IRR-table tr th:nth-child(1)").width());
$('.a-IRR-table tr th:nth-child(3), .a-IRR-table tr td:nth-child(3)').css("left",$(".a-IRR-table tr th:nth-child(1)").width()+$(".a-IRR-table tr th:nth-child(2)").width());
$('.a-IRR-table tr th:nth-child(4), .a-IRR-table tr td:nth-child(4)').css("left",$(".a-IRR-table tr th:nth-child(1)").width()+$(".a-IRR-table tr th:nth-child(2)").width()+$(".a-IRR-table tr th:nth-child(3)").width());
$('.a-IRR-table tr th:nth-child(5), .a-IRR-table tr td:nth-child(5)').css("left",$(".a-IRR-table tr th:nth-child(1)").width()+$(".a-IRR-table tr th:nth-child(2)").width()+$(".a-IRR-table tr th:nth-child(4)").width());
Standard Password Validation SQL Block
Standard Password Format Like
* One uppercase letter
* One lowercase letter
* One digit
* One special character
DECLARE
V_USERNAME VARCHAR2(100);
V_OLD_PASSWORD VARCHAR2(60);
PASSWORD VARCHAR2(60);
chars integer := 8;
letter integer := 1;
lower integer := 0;
upper integer := 1;
digit integer := 1;
special integer := 1;
digit_array varchar2(10) := '0123456789';
alpha_array varchar2(26) := 'abcdefghijklmnopqrstuvwxyz';
cnt_letter integer := 0;
cnt_upper integer := 0;
cnt_lower integer := 0;
cnt_digit integer := 0;
cnt_special integer := 0;
len integer := 0;
delimiter boolean := FALSE;
ch varchar2(100);
pw_lower varchar2(256);
BEGIN
V_USERNAME := :P9991_USER_NAME;
V_OLD_PASSWORD := :P9991_OLD_PASSWORD;
PASSWORD := :P9991_NEW_PASSWORD;
len := NVL (length(password), 0);
pw_lower := NLS_LOWER(password);
FOR i in 1..len LOOP
ch := substr(password, i, 1);
IF ch = '"' THEN
delimiter := TRUE;
ELSIF instr(digit_array, ch) > 0 THEN
cnt_digit := cnt_digit + 1;
ELSIF instr(alpha_array, NLS_LOWER(ch)) > 0 THEN
cnt_letter := cnt_letter + 1;
IF ch = NLS_LOWER(ch) THEN
cnt_lower := cnt_lower + 1;
ELSE
cnt_upper := cnt_upper + 1;
END IF;
ELSE
cnt_special := cnt_special + 1;
END IF;
END LOOP;
IF len>20 THEN
RETURN 'Password Must be less than 20 Characters';
ELSE
IF V_OLD_PASSWORD = PASSWORD THEN
RETURN 'New password cannot be same as old Password' ;
ELSE
IF delimiter = TRUE THEN
RETURN ('password must NOT contain a '|| 'double-quote character, which is '|| 'reserved as a password delimiter');
ELSE
IF chars IS NOT NULL AND len < chars THEN
RETURN( 'Password length less than ' ||chars);
ELSE
IF letter IS NOT NULL AND cnt_letter < letter THEN
RETURN( 'Password must contain at least ' ||letter || ' letter(s)');
ELSE
IF upper IS NOT NULL AND cnt_upper < upper THEN
RETURN('Password must contain at least ' ||upper || ' uppercase character(s)');
ELSE
IF lower IS NOT NULL AND cnt_lower < lower THEN
RETURN('Password must contain at least ' ||lower || ' lowercase character(s)');
ELSE
IF digit IS NOT NULL AND cnt_digit < digit THEN
RETURN('Password must contain at least ' ||digit || ' digit(s)');
ELSE
IF special IS NOT NULL AND cnt_special < special THEN
RETURN('Password must contain at least ' ||special || ' special character(s)');
ELSE
IF instr(pw_lower, NLS_LOWER(V_USERNAME)) > 0 THEN
RETURN('Password contains the username');
ELSE
RETURN NULL;
END IF;
END IF;
END IF;
END IF;
END IF;
END IF;
END IF;
END IF;
END IF;
END IF;
END;
We Can Export Application Components individually from Oracle Apex.
Application > Shared Components > Export Application Components >
Under Component Select Type of Component > Selected/Check Component Name
like as 'Desktop Navigation Menu' > Add to Export > Next > Export Components.
Current version of data in database has changed since user initiated update process.
Error occurred in Oracle Apex
This error can occur for many reasons, but one of the most common reasons is when the same row is updated by multiple parties at the same time.
In my case, I get the error when updating a flag in my table. Then I realized that when I update a flag a trigger gets fired and at the same row inside the trigger gets updated again. So I faced the problem.
Read a BLOB File the message and display the message into a variable.
Error - ORA-22835: Buffer too small for CLOB to CHAR or BLOB to RAW conversion (actual: 9923, maximum: 2000)
You can get around the buffer issue by reading the BLOB value in chunks. In order to do that, you can define a user defined function (UDF). The following UDF reads the BLOB field one chunk at a time, converts that to VARCHAR2 and appends the results consecutively to return the result as a CLOB:
#Download Pyhton from here https://www.python.org/downloads/ #Download Python: #Click the “Download Python 3.x.x” button (the latest versio...