oracle9i

Hibernate > CLOB > Oracle :(

随声附和 提交于 2019-11-26 23:25:03
问题 I am trying to write to an Oracle clob field a value over 4000 characters. This seams to be a common issue but non of the solutions seem to work. So I pray for help from here. Down and dirty info: Using Oracle 9.2.0.8.0 Hibernate3 implementing pojo's with annotations Tomcat 6.0.16 Oracle 10.2.x drivers C3P0 connction pool provider In my persistence.xml I have: <persistence-unit name="DWEB" transaction-type="RESOURCE_LOCAL"> <provider>org.hibernate.ejb.HibernatePersistence</provider>

ORA-01008: not all variables bound. They are bound

不羁岁月 提交于 2019-11-26 22:17:42
问题 I have come across an Oracle problem for which I have so far been unable to find the cause. The query below works in Oracle SQL developer, but when running in .NET it throws: ORA-01008: not all variables bound I've tried: Changing the Oracle data type for lot_priority (Varchar2 or int32). Changing the .NET data type for lot_priority (string or int). One bind variable name is used twice in the query. This is not a problem in my other queries that use the same bound variable in more than one

UTL_FILE.FOPEN() procedure not accepting path for directory?

倖福魔咒の 提交于 2019-11-26 15:28:23
I am trying to write in a file stored in c:\ drive named vin1.txt and getting this error .Please suggest! > ERROR at line 1: ORA-29280: invalid > directory path ORA-06512: at > "SYS.UTL_FILE", line 18 ORA-06512: at > "SYS.UTL_FILE", line 424 ORA-06512: at > "SCOTT.SAL_STATUS", line 12 ORA-06512: > at line 1 HERE is the code create or replace procedure sal_status ( p_file_dir IN varchar2, p_filename IN varchar2) IS v_filehandle utl_file.file_type; cursor emp Is select * from employees order by department_id; v_dep_no departments.department_id%TYPE; begin v_filehandle :=utl_file.fopen(p_file_dir

Oracle PL/SQL - How to create a simple array variable?

让人想犯罪 __ 提交于 2019-11-26 10:07:41
问题 I\'d like to create an in-memory array variable that can be used in my PL/SQL code. I can\'t find any collections in Oracle PL/SQL that uses pure memory, they all seem to be associated with tables. I\'m looking to do something like this in my PL/SQL (C# syntax): string[] arrayvalues = new string[3] {\"Matt\", \"Joanne\", \"Robert\"}; Edit: Oracle: 9i 回答1: You can use VARRAY for a fixed-size array: declare type array_t is varray(3) of varchar2(10); array array_t := array_t('Matt', 'Joanne',

ORA-01017 Invalid Username/Password when connecting to 11g database from 9i client

梦想的初衷 提交于 2019-11-26 09:34:29
问题 I\'m trying to connect to a schema on 11g (v11.2.0.1.0) from a PC with 9i (v9.2.0.1) client. It seems to connect fine to some schemas, but not this one - it comes back with a ORA-01017 Invalid Username/Password error every time. The username and password are DEFINITELY correct - can anyone think of a reason why this wouldn\'t work? Are there any fundamental incompatibilities between 9i and 11g? 回答1: The user and password are DEFINITELY incorrect. Oracle 11g credentials are case sensitive. Try

UTL_FILE.FOPEN() procedure not accepting path for directory?

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-26 04:27:33
问题 I am trying to write in a file stored in c:\\ drive named vin1.txt and getting this error .Please suggest! > ERROR at line 1: ORA-29280: invalid > directory path ORA-06512: at > \"SYS.UTL_FILE\", line 18 ORA-06512: at > \"SYS.UTL_FILE\", line 424 ORA-06512: at > \"SCOTT.SAL_STATUS\", line 12 ORA-06512: > at line 1 HERE is the code create or replace procedure sal_status ( p_file_dir IN varchar2, p_filename IN varchar2) IS v_filehandle utl_file.file_type; cursor emp Is select * from employees

ORA-12560: TNS:protocol adaptor error

ぃ、小莉子 提交于 2019-11-26 02:07:59
问题 I Google[d] for this error ORA-12560: TNS:protocol adaptor error but not able to find the actual reason and how to solve this error ? Can anyone tell me a perfect solution to solve login problem. 回答1: Go to the windows machine that hosts the Oracle database server Go to Start -> Run -> Services.msc in Windows. Locate OracleService < SID > (here OracleServiceORCL ) and click on Start to start the oracle database service (if not already running) Once it is up and running, from the command

Best way to do multi-row insert in Oracle?

坚强是说给别人听的谎言 提交于 2019-11-25 22:34:12
问题 I\'m looking for a good way to perform multi-row inserts into an Oracle 9 database. The following works in MySQL but doesn\'t seem to be supported in Oracle. INSERT INTO TMP_DIM_EXCH_RT (EXCH_WH_KEY, EXCH_NAT_KEY, EXCH_DATE, EXCH_RATE, FROM_CURCY_CD, TO_CURCY_CD, EXCH_EFF_DATE, EXCH_EFF_END_DATE, EXCH_LAST_UPDATED_DATE) VALUES (1, 1, \'28-AUG-2008\', 109.49, \'USD\', \'JPY\', \'28-AUG-2008\', \'28-AUG-2008\', \'28-AUG-2008\'), (2, 1, \'28-AUG-2008\', .54, \'USD\', \'GBP\', \'28-AUG-2008\', \