oracle11g

Is length of rowid in Oracle 11g fixed?

狂风中的少年 提交于 2019-12-11 12:49:29
问题 Is it possible to configure Oracle 11g installation so that it has more than 18 characters length? Investigating possible cause of locally un-producible bug that might have been caused if customer configured rowid to have more than 18 characters. The table doesn't have an index. Using rowid to delete given records shortly after, but it's possible that other records are inserted in between. 回答1: If you're really looking at a logical ROWID (UROWID) or a ROWID from a non-Oracle database, sure.

Why Oracle is complaining about a looping chain of synonyms (ORA01775) in package compilation?

陌路散爱 提交于 2019-12-11 12:44:57
问题 I really need to understand why the behavior below is happening. First, I just create a synonym: CREATE SYNONYM SYN_NAME FOR MY_TABE@MY_DBLINK; Second, when I try to select the rows from the table, the following error appears: ORA-00942: table or view does not exist Great, the table really does not exist. However when I try to compile a Package that is using the synonym above, the compilation error is: ORA-01775: looping chain of synonyms There are no synonyms with the same name, cycling

How can public_dependency contain references to objects not in all_objects?

本秂侑毒 提交于 2019-12-11 12:39:12
问题 I have the query below: select * from public_dependency pd where REFERENCED_OBJECT_ID = 305318 The strange thing is that this returns 26 rows. When I join in the referenced objects, I get three null rows, but a count of 26. And if I use 'join' I get back 23 rows. So there are objects seemingly not in all_objects but in public_dependency . select * from public_dependency pd left join all_objects o on o.OBJECT_ID = pd.OBJECT_ID where REFERENCED_OBJECT_ID = 305318 How is it possible that there

Trigger not firing for one particular CLOB column

半腔热情 提交于 2019-12-11 12:17:53
问题 We have a C++ legacy application that connects to an Oracle 11g database. The application uses Microsoft Data Access Objects (DAO) library to allow record browsing and modification. We also have some triggers on tables to track row updates and insertions. The problem is that the triggers don't fire for the CLOB columns that we have in our tables. It gets fired for other columns but for this one CLOB column, it neither fires during update nor during delete. I've added the trigger for all three

Procedure error ORA-06512

馋奶兔 提交于 2019-12-11 12:16:26
问题 Hello i have an oracle database and i am trying to add a procedure to select driver based on the input however i get this error message ORA-06502 numeric or value error ORA-06512: at line 9 create or replace PROCEDURE "SELECTDRIVE" (LicenseNumber in number, FirstNamee out VARCHAR2, LastNamee out VARCHAR2, ContactNumberr out NUMBER) as begin select d.firstname, d.lastname, d.contactnumber into FirstNamee , LastNamee , ContactNumberr from Driver d where d.license = LicenseNumber; end; and here

Oracle ERROR: ORA-00900: invalid SQL statement

荒凉一梦 提交于 2019-12-11 12:16:21
问题 I am trying to create the following datatype with 2 functions: -- Employee CREATE OR REPLACE TYPE EmployeeType AS OBJECT ( EmployeeNumber NUMBER, EmployeeName VARCHAR2(150), EmployeeAddress VARCHAR2(255), MAP MEMBER FUNCTION getEmployeeNumber RETURN NUMBER, MEMBER FUNCTION CalculateSalary RETURN FLOAT(2) ) NOT FINAL; CREATE OR REPLACE TYPE BODY EmployeeType AS MAP MEMBER FUNCTION getEmployeeNumber RETURN NUMBER IS BEGIN RETURN EmployeeNumber; END; -- function that can be overriden by subtypes

How do I get an older version of OracleClient to work locally with .NET?

喜夏-厌秋 提交于 2019-12-11 12:09:33
问题 When I create a new .NET app with Oracle.DataAccess.dll, it works fine. However, I need to edit an existing web application with an older version of Oracle.DataAccess.dll installed, and when I try to run it locally, it throws our old friend, the "The provider is not compatible with the version of Oracle client" exception. The existing version on the app is 2.112.1.2. I have two versions available; 4.112.4.0 and 2.112.4.0. (The apps I create that work use 4.112.4.0.) The "obvious" answer would

Get counts of UNIQUE records OVERALL per value

风流意气都作罢 提交于 2019-12-11 11:59:59
问题 This is related to the question below: split records into buckets based on a sum of counts The new problem is that one person can have many faxes, and since I'm trying to get a certain number of people: I usually end up with less than I need, because the same people land in more than one faxbucket Is there a way to get a count of UNIQUE people in the attached example? here's my table, it's called NR_PVO_120 OtherID Fax 12365092 2762364204 12005656 2762364204 12484936 2762364204 39003042

Creating custom primary keys in Rails application

跟風遠走 提交于 2019-12-11 11:47:14
问题 In my Rails application which works with Oracle database (version 11g) I need primary keys to be String s, not Integer s. For example, in my Product model I need primary keys like "p001" , "p002" etc. 回答1: class AddProductWithDifferentPrimaryKey < ActiveRecord:Migration def change create_table :table, id: false do |t| t.string :id, null: false # other columns t.timestamps end execute "ALTER TABLE table ADD PRIMARY KEY (id);" end end Don't forget to also add this line to your table model so

Oracle SQL INNER Join based on non-matching values

戏子无情 提交于 2019-12-11 11:46:53
问题 ColA(Table1) ColB(Table2) AB3 AB_MNO_3 AB3 AB_PQR_3 AB4 AB_MNO_4 AB4 AB_PQR_4 I want to do Inner Join based on columns in two table with some of the non-equal values shown above. So, Table1 can have AB3 which should be matched against AB_MNO_3, AB_PQR_3 while AB4 should be matched against AB_MNO_4, AB_PQR_4 Rest of the values in these columns in two tables do match. Would highly appreciate if anyone provides recommendations around the same. 回答1: SELECT * FROM Table1 tl INNER JOIN Table2 t2 ON