plsqldeveloper

How can i call a function that return a BOOLEAN using MyBatis?

混江龙づ霸主 提交于 2021-02-11 13:02:04
问题 i'm using MyBatis to call a function in a PL SQL database. The function have one of the OUT parameter as BOOLEAN like this: FUNCTION f_foo_function(foo IN VARCHAR, foo_output OUT BOOLEAN, error OUT VARCHAR2) My problem is when i try to call the function from my xml mapper, every try i do mybatis don't recognize the boolean output and throw me and error like incompatible types. Also when i try to test the function from PLSQL Developer it make a convertion like this :pout_boolean_result := sys

Error(8,1): PLS-00103: Encountered the symbol “SET”

て烟熏妆下的殇ゞ 提交于 2021-02-11 12:30:14
问题 I'm trying to create a function using oracle, it should be working fine but i keep getting the following error: Error(8,1): PLS-00103: Encountered the symbol "SET" here is my Function: CREATE OR REPLACE FUNCTION CountViewers(nameofPlay plays.play%TYPE) RETURN NUMBER AS NUM NUMBER; BEGIN SELECT SUM(registerd) INTO num1 FROM plays WHERE play=nameofPlay; return num; END; SET SERVEROUT ON; DECLARE inc integer; res NUMBER; invalid_status EXCEPTION; CURSOR clients2 IS SELECT * FROM plays; name_of

Difference between IAM , IDCS and OCI in Oracle cloud

烈酒焚心 提交于 2020-07-09 14:51:26
问题 I am getting confused on these 3 terms. What I know OCI is infrastructure provided by Oracle, IAM is user and IDCS is Identity cloud service. But I dont understand differences and terms. Is IAM user and normal user are same? is OCI and IDCS are same? What exactly IDCS is? 回答1: First of all OCI refer to Oracle Cloud infrastructure and it's cloud computing solutions same as MS azure or amazon AWS, but offered by Oracle and it's providing various services such as servers, storage, network,

If statement within Where clause

让人想犯罪 __ 提交于 2020-01-29 03:40:47
问题 I am working with a query which contains "IF" statements within a "WHERE" clause. But PL\SQL Developer is giving some errors while executing it. Can anyone please help me with the correct query? Here is the query: SELECT t.first_name, t.last_name, t.employid, t.status FROM employeetable t WHERE IF status_flag = STATUS_ACTIVE then t.status = 'A' IF status_flag = STATUS_INACTIVE then t.status = 'T' IF source_flag = SOURCE_FUNCTION then t.business_unit = 'production' IF source_flag = SOURCE_USER

How to write a large xml data field into a csv file

不想你离开。 提交于 2020-01-23 17:52:07
问题 I am writing data from a table into csv file. Among other fields, clob column is there which has XML data. I am using util_file functionality to write it to csv file and no issues. But when it comes to clob column which holds XML data of size more than 50000 bytes, I am facing issue. 1. It throws error " ORA-29285: file write error " 2. To overcome the above error, through loop I was trying to write the data as chunk bu closing the file and re oppen in append mode. But it starts in a new line