oracle-sqldeveloper

Passing parameters to stored procedure in OBIEE 12c rpd from OBIEE 12c dashboard

大憨熊 提交于 2020-05-30 04:24:21
问题 I am trying to create an OBIEE report using stored procedures. I have created a function in SQL Developer which takes a parameter and returns refCursor as output. I, then, set the following query as default initialization string in physical layer of rpd: Select * from table(pipelined_emp(HR_DATA.GETCURSORS(parameter))) GETCURSORS(parameter) is my function. For now, in place of parameter , I am passing a constant value. While, I wish to pass a value from the OBIEE dashboard, similar to a

Data Integrity issue query fix to rewrite the merge statement logic oracle sql

女生的网名这么多〃 提交于 2020-05-17 07:04:38
问题 I have a table and in this table i have data which has data integrity issue ,since this is a dimension table we need to maintain the effective_dt_from and effective_dt_to and version correctly ,below is the table and sample data create table TEST ( LOC_SID NUMBER(38,0), POSTAL_CD VARCHAR2(15 BYTE), COUNTRY_CD_2CHAR VARCHAR2(2 BYTE), CITY VARCHAR2(180 BYTE), DISTRICT_CD VARCHAR2(120 BYTE), POPULATION_APPROX VARCHAR2(15 BYTE), EFFECTIVE_DT_FROM DATE, EFFECTIVE_DT_TO DATE, VERSION NUMBER(38,0) )

Data Integrity bug query fix to rewrite the sql

人盡茶涼 提交于 2020-05-16 22:34:30
问题 I have a table and in this table i have data which has data integrity issue, since this is a dimension table we need to maintain the effective_dt_from and effective_dt_to and version correctly. This is the table and sample data: create table TEST ( LOC_SID NUMBER(38,0), POSTAL_CD VARCHAR2(15 BYTE), COUNTRY_CD_2CHAR VARCHAR2(2 BYTE), CITY VARCHAR2(180 BYTE), DISTRICT_CD VARCHAR2(120 BYTE), POPULATION_APPROX VARCHAR2(15 BYTE), EFFECTIVE_DT_FROM DATE, EFFECTIVE_DT_TO DATE, VERSION NUMBER(38,0) )

Find a column and a value from a schema scan all the table in oracle

筅森魡賤 提交于 2020-05-14 02:29:28
问题 I am trying to find a column ( ABC ) and it's value 1234 from a schema , basically i need to to check if ABC and a value from this column 1234 is present in any other table that is mapped to ABC , i tried to do a search the most efficient way but it is taking lot of time and not retrieving the desired result i have tried https://lalitkumarb.wordpress.com/2015/01/06/sql-to-search-for-a-value-in-all-columns-of-all-atbles-in-an-entire-schema/ but the query is not results at all it is running

Unable to hit oracle stored proc using .Net EF(2.2) Core repository pattern

送分小仙女□ 提交于 2020-04-18 00:50:47
问题 ORA-00900: invalid SQL statement This is the error i get when i am trying to hit a stored procedure(in Oracle) from my API. I am using Repository pattern with Entity framework.(EF Core 2.2) This is my call, return FetchWithStoredProcedure("PROC_GETMYPROC", new OracleParameter("PARAM1", OracleDbType.Int32, ParameterDirection.Input) { Value = PageNo }, new OracleParameter("PARAM2", OracleDbType.Int32,ParameterDirection.Input) { Value = PageSize }, new OracleParameter("PARAM3", OracleDbType

How to display the results of a ref cursor using SQL Developer

被刻印的时光 ゝ 提交于 2020-03-05 05:55:25
问题 I have a stored procedure with several cursors. They are defined as IN OUT parameters. I would like to display the result of the cursors using SQL Developer. This is an example of the stored procedure: SET serveroutput on; DECLARE p_input_stream VARCHAR2(200); p_msg_code NUMBER; p_msg_parms VARCHAR2(200); p_return_code NUMBER; p_trailer_cur sl_globals.curtype_weak; BEGIN /* Assign values to IN parameters */ p_input_stream := '24954286Mnull|5155035|2|436|SCAN|47720|XTRA|0105||5155035||||N|~|\r

Error while connecting DBaaS from SQl developer. Able to connect from putty

半世苍凉 提交于 2020-03-04 20:04:59
问题 Hi I created one database in Oracle cloud . I am able to connect on the same via putty . But I am not able to connect from sqldeveloper . Below error is coming when I am trying the same. Can you please help me on the same 来源: https://stackoverflow.com/questions/60341154/error-while-connecting-dbaas-from-sql-developer-able-to-connect-from-putty

Error while connecting DBaaS from SQl developer. Able to connect from putty

跟風遠走 提交于 2020-03-04 20:02:22
问题 Hi I created one database in Oracle cloud . I am able to connect on the same via putty . But I am not able to connect from sqldeveloper . Below error is coming when I am trying the same. Can you please help me on the same 来源: https://stackoverflow.com/questions/60341154/error-while-connecting-dbaas-from-sql-developer-able-to-connect-from-putty

How to get Sqldeveloper 19.1 64-bit working with instantclient_12_2 on Windows enterprise PC without admin privileges?

徘徊边缘 提交于 2020-01-21 10:25:27
问题 I've installed Sqldeveloper Version 19.1 64-bit Version on an enterprise PC with Win7-64bit. It works fine with embedded jdbc-client, but I need to get it working using the Oracle OCI-client. Using an OCI-client (thick-driver) requires for sure a client like instantclient_12_2. I have no admin privileges on my workstation and so copied the full instantclient_12_2 to the enterprise PC. Since I'm not allowed to change the %PATH% myself, I created a start.bat file with required settings, because

SQL Developer script output truncates sys_refcursor width

醉酒当歌 提交于 2020-01-20 08:41:18
问题 I have a function defined that returns a sys_refcursor containing 5 text columns. Sorry, I cannot post the contents of it here for business reasons. The columns are casted to varchar2 with specific widths (9,4,10,10,10). The casting allows me to ensure column widths are constant. In SQL Developer 1.5, printing script output (using F5 from SQL worksheet) displays the contents of the cursor nicely as: MY_FUNCTION(input1,input2,input3) --------------------------------- COLUMN1 COLU COLUMN3