Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. slicendice

    Inserting data into a different Access database using IN with variable path...?

    I have a database that I'm using to extract/generate data that includes a whole bunch of tables, queries, VBA, etc and the output of this is a set of data that will be used by a customer. The data that is extracted has to be in a separate database so that it only contains the data and nothing...
  2. slicendice

    Best type of index to use...?

    Hi everyone I have a situation where I'm processing the data in a large table using a PL/SQL routine. The processing has to happen in batches and when a record has been processed, a field in the table is updated to indicate this. The field in question (called PROCESSED) is a simple NUMBER(1)...
  3. slicendice

    How handle null/empty fields in XML?

    Hi I have a bunch of XML files that need reading/processing and I've constructed something that uses xmltype, dbms_xmlschema, etc. I've loaded the associated XSD schema into the database using the following: -- Read the XSD file and load it into an xmltype -- xtXSD is declared as...
  4. slicendice

    Oracle errors (ORA-06508 and ORA-04061) when attempting to run job...

    Well, just in case anyone's interested, a restart of the database made this issue go away! I have no idea why and it's a little disconcerting, as I really don't want this to just start happening again - because once it's installed at a customer site, it won't be possible to just shut the...
  5. slicendice

    Oracle errors (ORA-06508 and ORA-04061) when attempting to run job...

    I have a package that compiles and works fine - no issues or errors and the package status is VALID. There is a main function in the package and this in turn calls various other functions within the package as part of the processing. All functions are fully internal to the package and no...
  6. slicendice

    How to restrict results where duplicate in one column but not another

    Sorry if the subject doesn't explain things too well, but it's difficult to get across in one line! Anyway, we have a query which returns a data set that contains two columns - an ID and optionally a date. The query used to generate the data is as follows: WITH evt AS (SELECT aceu_cnh_id...
  7. slicendice

    Using REPLACE on CLOB causes increase in CACHE_LOBS...

    I have a requirement to use the built in REPLACE function on a CLOB variable as part of a larger PL/SQL process. I'm using Oracle 11g R2 and the function works OK, in that it does the replace as required, but as the procedure runs (there are around 2.5 millions records to process), it slows down...
  8. slicendice

    Using negative number in WHEN clause using SQL*Loader...?

    I have been looking at external tables but I use an Oracle function on one of the data items as it is imported, i.e. in SQL*Loader control file: LOAD DATA INFILE 'udf_data2.txt' BADFILE 'udf_data2.bad' APPEND INTO TABLE udf_test FIELDS TERMINATED by ',' (ptau_id "seq_udf_test.nextval"...
  9. slicendice

    Using negative number in WHEN clause using SQL*Loader...?

    As far as I'm aware the WHEN clause only deals with strings...though I stand to be corrected on that one. I tried it anyway, just in case, but it simply caused another error: SQL*Loader-350: Syntax error at line 5. Expecting quoted string or hex identifier, found "-". WHEN (ptau_per_id <>...
  10. slicendice

    Using negative number in WHEN clause using SQL*Loader...?

    Hi Does anyone know if it's possible to check for a negative number using the WHEN clause in SQL*Loader? The column being checked is defined in the database table as NUMBER(8). I can use the following OK: WHEN (col1 <> '1') The above works fine, but if I change it to: WHEN (col1 <> '-1')...
  11. slicendice

    How to handle string array returned from Java function in PL/SQL...?

    OK, I just realised that I forgot to include a return type for the Java function....doh! Altered to: CREATE OR REPLACE FUNCTION get_dir_list_array(p_directory IN VARCHAR2) RETURN typDirList AS LANGUAGE JAVA NAME 'GetDirListArray.GetList( java.lang.String ) return String[]'; Compiles OK...
  12. slicendice

    How to handle string array returned from Java function in PL/SQL...?

    Hi I've got a function in Java that returns a string array but I'm not sure how to reference this in PL/SQL (I am a total beginner when it comes to Java!). The Java function is as follows: CREATE OR REPLACE AND COMPILE JAVA SOURCE NAMED "GetDirListArray" AS import java.io.*; import...
  13. slicendice

    How to add two time values...?

    Yep, I think that's the best/easiest way to do it. Thanks Dagon
  14. slicendice

    How to add two time values...?

    Hi I have two variables that are involved in processing some appointment data - one is the start time of the appointment and the other is the duration (in minutes). I need to calculate the end time of the appointment using those two items - which in itself is not a complex concept! I know I can...
  15. slicendice

    Returning cursor from dynamic SQL

    OK I've done it slightly differently and instead of returning a cursor, it's returning a TABLE data structure. It's working up to a point - but I can't execute it using dynamic SQL and successfully retrieve the data returned by the function. CREATE OR REPLACE PACKAGE qi_test IS TYPE...
  16. slicendice

    Returning cursor from dynamic SQL

    Dagon, thanks for the code - sadly, it causes my Oracle connection to crash, i.e. I get "ORA-03113: end-of-file on communication channel" every time I try and run it. Any idea why that might be...?
  17. slicendice

    Returning cursor from dynamic SQL

    Sorry, my bad...didn't make it clear. It was a function I was thinking of... Thanks for your help
  18. slicendice

    Returning cursor from dynamic SQL

    Hi If I have a function that returns a cursor, is it possible to call that function using dynamic SQL? I know it's possible to call a function using something like: DECLARE vSQL VARCHAR2(100); iParam INTEGER; BEGIN vSQL := 'BEGIN some_function(:1) END;'; iParam := 5; EXECUTE...
  19. slicendice

    Strange behaviour when reading user input in command file

    Hi I have a simple batch/command file that I'm using as the mechanism to run some Oracle SQL scripts on Win XP. The script starts off by requesting the user to input the password of an authorised Oracle account. Entering this password is not mandatory - it simply means that a user can run...
  20. slicendice

    Why is all text grey in Firefox?

    Sorry, ignore me...just found that text colour was set to Grey in Tools => Options => Content => Colours. Now fixed!!!

Part and Inventory Search

Back
Top