oracle11g

Dapper - call Oracle schema.package.function

若如初见. 提交于 2019-12-23 05:01:40
问题 I can call Oracle stored procedure and function with Dapper, but I have problems with calling a function inside of package. My error is: ORA-06550: line 1, column 39: PLS-00302: component 'funct' must be declared ORA-06550: line 1, column 7: PL/SQL: Statement ignored My code is : using (IDbConnection cn = Connection) { var a = cn.ExecuteReader(oracleFunctionName, fnParameters, commandType: CommandType.StoredProcedure); } My parameters are ok, but it seems that Dapper can't resolve ORacle

Dapper - call Oracle schema.package.function

自古美人都是妖i 提交于 2019-12-23 05:01:01
问题 I can call Oracle stored procedure and function with Dapper, but I have problems with calling a function inside of package. My error is: ORA-06550: line 1, column 39: PLS-00302: component 'funct' must be declared ORA-06550: line 1, column 7: PL/SQL: Statement ignored My code is : using (IDbConnection cn = Connection) { var a = cn.ExecuteReader(oracleFunctionName, fnParameters, commandType: CommandType.StoredProcedure); } My parameters are ok, but it seems that Dapper can't resolve ORacle

Is there anyway to encrypt oracle stored procedures?( Oracle 11g)

左心房为你撑大大i 提交于 2019-12-23 05:00:13
问题 I don't want clients see my stored procedures,Is there anyway to encrypt oracle stored procedures?? 回答1: You can "wrap" a pl/sql package body. It is obfuscated - see Here 来源: https://stackoverflow.com/questions/20888234/is-there-anyway-to-encrypt-oracle-stored-procedures-oracle-11g

TRIGGER AUTO_NUM_GEN compiled Warning: execution completed with warning

我们两清 提交于 2019-12-23 04:48:35
问题 I run the following statements in oracle sql developer using oracle 11g express as my database. I only run into problems when i try to create the trigger. I get the message - TRIGGER AUTO_NUM_GEN compiled Warning: execution completed with warning The SQL- CREATE TABLE myschema.mytable (mynums NUMBER PRIMARY KEY); CREATE SEQUENCE myschema.seq_of_nums MINVALUE 1 START WITH 1 INCREMENT BY 1 CACHE 10; CREATE OR REPLACE TRIGGER myschema.auto_num_gen BEFORE INSERT ON myschema.mytable FOR EACH ROW

Get ResultSet from Stored Procedure in Oracle from Java

╄→尐↘猪︶ㄣ 提交于 2019-12-23 04:45:38
问题 I've been looking through many posts in the forum related to my problem but I nothing helped me, so I'm posting my problem. I have a SP in Oracle (11g) that is suppossed to return a Result Set. The SP looks like follows: CREATE OR REPLACE PROCEDURE testProc ( tableName IN VARCHAR2, INFORMATION OUT SYS_REFCURSOR ) AS sqlQuery varchar2(1000); BEGIN sqlQuery := 'SELECT ID||''|''||Name||''|''||Surname FROM '||tableName; OPEN INFORMATION FOR sqlQuery; END GETVALIDATIONPECLOG; And the way I'm

I want capture and keep record those affected rows another table

痞子三分冷 提交于 2019-12-23 04:44:01
问题 I am getting an error PL/SQL: ORA-00913: too many values. What I am trying to do here, My update statement effect more than one rows. And I want capture and keep record those affected rows another table. Please help. For bellow code. DECLARE TYPE cusRec IS TABLE OF customer%ROWTYPE INDEX BY PLS_INTEGER; v_cusRec cusRec; BEGIN UPDATE customer SET l_optionalmail = 1 WHERE c_customer_id IN ( SELECT c_customer_id FROM customer cus, agent age WHERE cus.c_customer_id = age.c_customer_id AND cus.l

How to call a Procedure which uses the same table in after trigger

吃可爱长大的小学妹 提交于 2019-12-23 04:43:18
问题 I want to use the same table data after deleting the data which fails in following method. The issue I faced is the latest change is not getting committed before the after trigger is completed. create table test_tbl(id_ number, type_ varchar2(100) , count_ number); create table test_count_tbl(type varchar2(100), count_ number) ; begin insert into test_tbl(id_ , type_ , count_ ) values (1,'type1', 10 ); insert into test_tbl(id_ , type_ , count_ ) values (2,'type1', 20 ); insert into test_tbl

Oracle SQL MIN and MAX combination from same table

坚强是说给别人听的谎言 提交于 2019-12-23 04:37:30
问题 I have below mentioned data. I am looking to get max of Start message and corresponding min or success message. Start Message Table ID1 Timestamp_start_msg_recieved date jobid message time in seconds 1234 5/14/2014 10:02:29 5/14/2014 abc start 262 1234 5/14/2014 10:02:31 5/14/2014 abc start 264 1234 5/14/2014 10:02:45 5/14/2014 abc start 278 1234 5/14/2014 10:02:50 5/14/2014 abc start 285 1234 5/14/2014 10:09:04 5/14/2014 abc start 165 1234 5/14/2014 10:09:06 5/14/2014 abc start 2167 1234 5

Changing this query to group rows and filter out all rows apart from the one with smallest value

丶灬走出姿态 提交于 2019-12-23 04:34:42
问题 I have the following results set: 275 72.87368055555555555555555555555555555556 foo 275 72.87390046296296296296296296296296296296 foo 113 77.06431712962962962962962962962962962963 foo 113 77.07185185185185185185185185185185185185 foo that I got from this query: SELECT id, (tbl2.date_modified - tbl1.date_submitted)/86400, some_value FROM tbl1, tbl2, tbl3 WHERE tbl1.id = tbl2.fid AND tbl1.id = tbl3.fid How can I change it to get this: 275 72.87368055555555555555555555555555555556 foo 113 77

ORA-29024: Certificate validation failure

只谈情不闲聊 提交于 2019-12-23 04:02:41
问题 I've followed the following tutorials : Create wallet,Create ACL And I am still getting ORA-29024: Certificate validation failure error. I'm trying this query : UTL_HTTP.set_wallet('file:/home/oracle/wallet', 'password'); l_http_request := UTL_HTTP.begin_request('https://somedomain.co.il'); l_http_response := UTL_HTTP.get_response(l_http_request); Now i've added to the ACL : *.somedomain.co.il,somedomain.co.il And I've downloaded the certificate as DER encoded, as I've read somewhere that