oracle10g

OracleDataReader Exception when Select a Blob type Column

吃可爱长大的小学妹 提交于 2020-04-17 22:51:57
问题 I'm attempting to retrieve an EmptyBLOB from an Oracle database to next write a byte array on that column but I keep getting an Exception Message "ORA-03135: Connection lost contact" in the oracle Data Reader when ExecuteReader. If I select any other column of the table in the statement it works fine. The oracle database is 10g 10.2.0.4.0 - 64bit and I'm using the Oracle.ManagedDataAccess as ODP for .NET oracleConnection.Open(); OracleCommand nameFile = oracleConnection.CreateCommand();

Oracle Reports A READ-ONLY bind variable used in OUT or IN-OUT context

血红的双手。 提交于 2020-03-04 20:05:20
问题 I have a formula column in my report as you can see in the image. When I compile it, I have an error: "A READ-ONLY bind variable used in OUT or IN-OUT context" My query gets 1 line result. Properties like in the image. Why I got this error and what is the solution? 回答1: Function code is wrong (obviously; Oracle told you so). Should be something like this: function CF_1Formula return char is begin return case when :kart_geldimi = 'E' then 'sss' else null end; end; Basically, you created

Oracle Reports A READ-ONLY bind variable used in OUT or IN-OUT context

£可爱£侵袭症+ 提交于 2020-03-04 20:04:33
问题 I have a formula column in my report as you can see in the image. When I compile it, I have an error: "A READ-ONLY bind variable used in OUT or IN-OUT context" My query gets 1 line result. Properties like in the image. Why I got this error and what is the solution? 回答1: Function code is wrong (obviously; Oracle told you so). Should be something like this: function CF_1Formula return char is begin return case when :kart_geldimi = 'E' then 'sss' else null end; end; Basically, you created

Updating board in oracle form

偶尔善良 提交于 2020-02-06 09:13:04
问题 Is there anything like thread in Oracle forms for updating one part? I want to create a message box and update that part with the new events, so I need to have something like thread or Timer in my oracle form. Any examples or ideas? I am working with Oracle forms 6i, but I can convert to 10g also. My oracle server version is 9. 回答1: The help file/ online documentation in Oracle Forms features sample code on creating timers. Create a timer, perhaps under WHEN-NEW-FORM-INSTANCE trigger DECLARE

Use a declared variable in a SELECT statement

…衆ロ難τιáo~ 提交于 2020-02-03 05:00:07
问题 I'm using Oracle 10g and need to use a variable in a where clause of a SELECT ; eg. DECLARE v_blah NUMBER; BEGIN v_blah := 13; SELECT * FROM PEOPLE p WHERE p.LuckyNumber = v_blah; END; but am getting an error saying PLS-00428: an INTO clause is expected in this SELECT statement It seems to work fine in a DELETE or INSERT statement, so I'm not sure why it wouldn't work here. 回答1: The correct syntax is: DECLARE v_blah NUMBER := 13; v_people_rec PEOPLE%ROWTYPE; BEGIN SELECT * INTO v_people_rec

What means square brackets in Oracle SQL query?

一世执手 提交于 2020-02-02 02:26:08
问题 I find select statement with square brackets in it. Can anybody explain what does this brackets means? e.g. select a,b,[c] from table1; Thanks. 回答1: According to oracle's documentation: http://docs.oracle.com/cd/B10500_01/text.920/a96518/cqspcl.htm The bracket characters serve to group terms and operators found between the characters; however, they prevent penetrations for the expansion operators (fuzzy, soundex, stem). Its a grouping character in the query. 回答2: This is not a valid Oracle

Oracle PL/SQL: How to find unused variables in a long package?

回眸只為那壹抹淺笑 提交于 2020-01-31 18:28:05
问题 Please suppose you have an Oracle PL/SQL package of about 200,000 rows of code. Is there any fast way to detect variables declared, but not used in the package? Thank you in advance for your kind help. EDIT (April 7th, 2014): I am using Oracle 10G. EDIT: I am looking for a pure PL/SQL solution. 回答1: The following only applies to 11g R2. It looks like PL/Scope has become available in 11g R1. You won't get information about unused variables with PLSQL_WARNINGS='ENABLE:ALL' : SQL> !cat test.sql

Oracle PL/SQL: How to find unused variables in a long package?

▼魔方 西西 提交于 2020-01-31 18:28:05
问题 Please suppose you have an Oracle PL/SQL package of about 200,000 rows of code. Is there any fast way to detect variables declared, but not used in the package? Thank you in advance for your kind help. EDIT (April 7th, 2014): I am using Oracle 10G. EDIT: I am looking for a pure PL/SQL solution. 回答1: The following only applies to 11g R2. It looks like PL/Scope has become available in 11g R1. You won't get information about unused variables with PLSQL_WARNINGS='ENABLE:ALL' : SQL> !cat test.sql

Checking oracle sid and database name

 ̄綄美尐妖づ 提交于 2020-01-27 08:51:29
问题 I want to check SID and current database name. I am using following query for checking oracle SID select instance from v$thread; but table or view does not exist error is coming. I am using following query for checking current database name select name from v$database; but table or view does not exist error is coming. Any idea for above two problems? 回答1: I presume select user from dual; should give you the current user and select sys_context('userenv','instance_name') from dual; the name of

invalid path while trying to write the file in pl sql

霸气de小男生 提交于 2020-01-24 19:54:06
问题 i am trying to write to a text file in oracle pl sql(10 g). i have created the directory it is existing but still getting invalid path. below is the code. CREATE DIRECTORY test_dir AS 'c:\'; -- CREATE DIRECTORY test_dir AS '/tmp'; DECLARE fileHandler UTL_FILE.FILE_TYPE; BEGIN fileHandler := UTL_FILE.FOPEN('test_dir', 'test_file.txt', 'W'); UTL_FILE.PUTF(fileHandler, 'Writing TO a file\n'); UTL_FILE.FCLOSE(fileHandler); EXCEPTION WHEN utl_file.invalid_path THEN raise_application_error(-20000,