oracle11g

cx_oracle is installed still python gives an import error

陌路散爱 提交于 2020-01-16 16:52:00
问题 I have been having a hard time with this. I have the cx_oracle file installed:cx_Oracle-5.3-12c.win-amd64-py3.6-2 Earlier I had Python 3.6.4 and this cx_oracle file was not getting installed,Then I removed that version of python installed python 3.6 and then the cx_oracle file got installed successfully. But now that I am trying to import cx_oracle from python it is not working. Why? I am using Windows 10. All my python executables and cx_oracle and oracle11g files are on the disk partition E

cx_oracle is installed still python gives an import error

二次信任 提交于 2020-01-16 16:50:58
问题 I have been having a hard time with this. I have the cx_oracle file installed:cx_Oracle-5.3-12c.win-amd64-py3.6-2 Earlier I had Python 3.6.4 and this cx_oracle file was not getting installed,Then I removed that version of python installed python 3.6 and then the cx_oracle file got installed successfully. But now that I am trying to import cx_oracle from python it is not working. Why? I am using Windows 10. All my python executables and cx_oracle and oracle11g files are on the disk partition E

How to Return a Custom Set in PL/SQL Stored Procedure

ⅰ亾dé卋堺 提交于 2020-01-16 07:31:29
问题 How can I return a set of data from PL/SQL? I have a stored procedure that needs to run a select statement and returns the result back to the calling (Java) program. The select statement comprises of a few joins from multiple tables, so I am not sure how to define this type in the stored procedure definition or body. I was thinking maybe this can be done as following, but SQL Developer is giving me errors: CREATE OR REPLACE PACKAGE my_package AS TYPE a_collection_records IS RECORD ( NUMBER

Oracle MERGE statement error (ORA-30926)

我与影子孤独终老i 提交于 2020-01-16 00:51:19
问题 I inherited an Oracle script running on Oracle 11g that contains the following MERGE statement: MERGE INTO MainTable PR USING IncrementalTable PRA ON (PR.contract = PRA.contract and PRA.memberType = 'Parent' ) WHEN MATCHED THEN UPDATE SET PR.address1 = PRA.address1, PR.city = PRA.city, PR.state = PRA.sate, PR.zipCode = PRA.zipCode, PR.countryCode = PRA.countryCode WHERE address1 IS NULL AND PR.memberType <> 'Parent' ; As far as I can see, this is simply updating the child's address in

Entity Framework 6 + Code First + Oracle 11g

▼魔方 西西 提交于 2020-01-16 00:49:12
问题 Is there any way to create 100% the Oracle11g database using EF Code First? And how to trace the Oracle query in SaveChanges? 回答1: You can use third party to have a code first solution with oracle and ef 6 one of this providers is DevArt you can read more about the support here Ef6 in devart And about the log you can enable log in ef6 as is explained here http://msdn.microsoft.com/pt-br/data/dn469464 回答2: Try oracle odac 12c release 3, but only support EF6 code first. 回答3: I know its 2015 and

ODP.Net - Calling stored procedure with custom type parameter throws ORA-06550/PLS-00306

我的梦境 提交于 2020-01-15 11:46:05
问题 I'm trying to call a stored procedure that takes a SYS_REFCURSOR output parameter and an input parameter with a custom type. Right now when I try to call the procedure from my application I get this error: ORA-06550: line 1, column 7: PLS-00306: wrong number or types of arguments in call to 'SP_TEST_01' ORA-06550: line 1, column 7: PL/SQL: Statement ignored This is the PL/SQL script that creates the custom type and the stored procedure I'm trying to call: CREATE OR REPLACE TYPE t_string_list

how to update a LOB with PHP in oracle? (OCI_INVALID_HANDLE)

浪尽此生 提交于 2020-01-15 10:10:54
问题 i'm trying to do an update a (C)LOB in the same way i do an insert. (insert is already working). $queryHandle = oci_parse($dbHandle, "update MYTABLE set "MYCLOB" = EMPTY_CLOB() , "OTHERCOL" = :col0 where "PKIDCOL" = :wherecol0 returning "OTHERCOL" , "MYCLOB", into :retcol0 , :retcol1"); if(!is_resource($queryHandle)) { $error=oci_error($dbHandle); die($error['message'], $error['code']); } oci_bind_by_name($queryHandle, ":col0", $othercolvalue); oci_bind_by_name($queryHandle, ":wherecol0",

result of string concatenation is too long after using to_clob

萝らか妹 提交于 2020-01-15 08:58:27
问题 I am trying to create a table view by running the sql below SELECT IACM1.CMNT_REAS_TYP, TO_CLOB(LPAD ( LISTAGG (IACM1.CMNT_TXT, ' ') WITHIN GROUP (ORDER BY IACM1.LN_NUM), 4000, LISTAGG (IACM1.CMNT_TXT, ' ') WITHIN GROUP (ORDER BY IACM1.LN_NUM) )) FROM FT_T_IACM IACM1, FT_T_IACM IACM2 WHERE IACM1.ISSACT_ID = IACM2.ISSACT_ID AND IACM1.CMNT_REAS_TYP = IACM2.CMNT_REAS_TYP GROUP BY IACM1.cmnt_reas_typ; But I am getting the error below ORA-01489: result of string concatenation is too long 01489.

Have unpivot automatically grab column list (oracle 11g)

。_饼干妹妹 提交于 2020-01-15 08:02:10
问题 This is a follow up question to Transpose one row into many rows Oracle I want to be able to unpivot an arbitrary query result. To unpivot a table manually, I would do: select value_type, value from ( ( -- query to be unpivoted -- EG: select col1, col2, col3, col4, col5 from table ) unpivot ( -- Line I would like to change value for value_type in (col1, col2, col3, col4, col5) ) ); This works for all queries that return 5 columns, called col1, col2 , etc. Is there something I put in instead

Oracle query is not working in C#

会有一股神秘感。 提交于 2020-01-15 07:15:53
问题 When I run this code it always returning zero while when i run this query in oracle sql client it returns 1. var strSQL = string.Format("SELECT COUNT(*) FROM GANTNER.GAT_REASONS WHERE CODE ='{0}'", StatusCode); objCmd = new OracleCommand(strSQL, objConn); objCmd.CommandType = CommandType.Text; int val = int.Parse(objCmd.ExecuteScalar().ToString()); For try I remove condition on column name CODE and it works but when I put column name CODE it does not then I tried to put "CODE" 'CODE' all not