Part of Database drivers: the hub. 15 entries under this heading; every entry opens as its own topic.
- Oracle 7.3: every browse fails with ORA-00933 because Clarion 10 adds NULLS FIRST to ORDER BY - the ClaORA.dll build that fits, or PROP:SQLOrder per browse.
- Oracle: a PROP:SQL join across two tables shows NESTED LOOPS in the plan; is the ORDER BY or the join wrong? - nested loops are about the cheapest join kind in Oracle, so the statement should be fine; post the EXPLAIN PLAN; a scalar subquery failed with ORA-01427 until the filter returned one row.
- Moving from Oracle 9.2 to 10g: what Clarion Oracle driver users saw - two posters saw no difference; move every workstation to the 10g client, since 9i clients gave BLOB GPFs; custom join expressions generated wrong SQL for one poster.
- Oracle 11g: German umlauts are ignored in a SQL query (Reported, not reproduced) - the collation (NLS_SORT) and NLS_LANG were the leads, and a test insert kept the umlaut; the asker said he would test and posted no result.
- Oracle: LOGOUT fails ("unable to...") because the table never opened - check the error after OPEN - open the file with an explicit access mode and read the error; an invalid record declaration was the cause, and the LOGOUT worked once it was fixed.
- Oracle: getting the new identity value after an insert (RETURNING clause or sequence CURRVAL) - Oracle uses sequences: a trigger fills the key from nextval, then read
currvalon the same connection, or usereturning ... intoon the insert. - Oracle: PROP:SQL sends literal values, not bind variables, so Oracle parses each query again - the posters found no way to get bind variables from Clarion; stored procedures with parameters reused the plan; a server view or direct OCI calls were untested ideas.
- Oracle 8i/9i/10g on a Linux server: does a Clarion 5.5 application care which operating system the server runs? - no; the app talks to the Oracle client and the client to the server; only dump and trace file locations differ by OS.
- Moving DateTime data from Oracle to PostgreSQL: "Invalid byte sequence" on the first insert (Reported, not reproduced) - check the data types, assign the DATE and TIME fields rather than the STRING, turn on query and ODBC logging; the asker later suspected character encoding; no outcome.
- Oracle: a DSN-less ODBC connection string connects, but every table gives "File not Found" - DBQ must be the TNS service name, not a server or SID pair; the Driver value must match the installed ODBC driver; an Instant Client connection is the alternative.
- Oracle: copying TPS records with BLOBs into an Oracle table, a shorter BLOB is written with the size of the previous one (Reported, not reproduced) - setting PROP:Size to the saved source size after the handle copy was suggested; CLEAR does not compile on a BLOB; the poster did not report back.
- One database user for all clients, or one per person? Oracle and MSSQL, what the posters chose - one user per person, one user with security in the application plus PROP:Disconnect, or a few category users; the thread reached no single rule.
- Also under Connecting, Dates and Keys: the owner string, ORA-12899, the LONG column, On Delete Restrict.
- Oracle: the driver runs SELECT * FROM table WHERE 0 = 1 on every open - is it costly, and can it be replaced? - The driver runs SELECT WHERE 0 = 1 on open only to read column information and verify the structure; it returns no rows and cannot be replaced.
- Oracle: an UPDATE that takes its values from a second table fails with ORA-00933 (use a sub-select) - An UPDATE can name only one table; take the other table's value with a sub-select in the SET clause, with WHERE EXISTS to skip unmatched rows.
- Oracle: testing whether the first character of a column is a digit (there is no ISNUMERIC) - Oracle has no ISNUMERIC; compare the first character with BETWEEN '0' AND '9', or write a to_number function that traps the exception.