oracle10g

What is the limit for varchar2 in a Table of Type in Oracle?

邮差的信 提交于 2020-01-16 18:54:05
问题 I am looking for the limit of the varchar2 type as far as a Table of type is concerned in oracle. Note that I am not talking about a physical table (for which the limit for varchar2 is 4000) but the table of a type. Thanks 回答1: It depends on the context. A table of VARCHAR2(32767) can be created anywhere. But 32767 can only be used in PL/SQL. The limit in SQL is still 4000. SQL> --#1: SQL, 4000. SQL> create or replace type varchar2_limit is table of varchar2(4000); 2 / Type created. SQL>

Oracle 10g forms not opening in form developer on Windows7 Professional

给你一囗甜甜゛ 提交于 2020-01-16 16:35:24
问题 Following are the error details produced just before oracle form developer closes itself when tried to open an Oracle form (.fmb) file. Problem signature: Problem Event Name: APPCRASH Application Name: frmbld.exe Application Version: 10.1.2.0 Application Timestamp: 42d63632 Fault Module Name: KERNELBASE.dll Fault Module Version: 6.1.7601.18229 Fault Module Timestamp: 51fb10c6 Exception Code: ebad198c Exception Offset: 0000812f OS Version: 6.1.7601.2.1.0.256.48 Locale ID: 16393 Additional

Retrieving rows based on a certain criteria regarding a many-to-many mapping in Hibernate

这一生的挚爱 提交于 2020-01-16 08:11:10
问题 I'm just copy & pasting some of the introductory text from one of my questions, since the same table relationship is involved in this question also. I have three of many tables in Oracle (10g) database as listed below. I'm using Hibernate Tools 3.2.1.GA with Spring version 3.0.2. Product - parent table Colour - parent table ProductColour - join table - references colourId and prodId of Colour and Product tables respectively Where the table ProductColour is a join table between Product and

Invalid identifier error on field created with select statement

孤街醉人 提交于 2020-01-15 11:11:24
问题 Why sql bellow don't work? select a.field1, a.field2, a.field3, (select count(*) from table2 b where b.field1 = a.field1 ) as field4, (select count(*) from table3 b where b.field1 = a.field1 ) as field5, (select count(*) from table4 b where b.field1 = a.field1 ) as field6, from table1 a order by field4 Oracle says: ORA-00904: "field4": invalid identifier 回答1: try to wrap it up select * from ( select a.field1, a.field2, a.field3, (select count(*) from table2 b where b.field1 = a.field1 ) as

OracleCommand execution blocks if has OracleDependency

我的未来我决定 提交于 2020-01-15 09:51:28
问题 I have the following code: OracleConnection conn = new OracleConnection(connString); OracleCommand command = new OracleCommand("select * from testtable", conn); conn.Open(); OracleDependency.Port = 2010; OracleDependency dependency = new OracleDependency(command); command.AddRowid = true; command.Notification.IsNotifiedOnce = false; dependency.OnChange += new OnChangeEventHandler(dependency_OnChange); command.CommandTimeout = 1000; DataTable t = new DataTable(); OracleDataAdapter adapter =

How can I create a directory on the file system?

房东的猫 提交于 2020-01-15 09:46:23
问题 How do you create a physical directory on the OS from within PL/SQL? I looked at the CREATE OR REPLACE DIRECTORY command but that doesn't do it. Neither does UTL_FILE appear to be capable. 回答1: UTL_FILE still lacks this capability - probably a holdover from the pre- DIRECTORY object days where you had to explicitly define the OS file directories you could access in a startup parameter, so there was no need to create directories dynamically anyway. I think the easiest way to do this is with an

How can I create a directory on the file system?

我们两清 提交于 2020-01-15 09:46:13
问题 How do you create a physical directory on the OS from within PL/SQL? I looked at the CREATE OR REPLACE DIRECTORY command but that doesn't do it. Neither does UTL_FILE appear to be capable. 回答1: UTL_FILE still lacks this capability - probably a holdover from the pre- DIRECTORY object days where you had to explicitly define the OS file directories you could access in a startup parameter, so there was no need to create directories dynamically anyway. I think the easiest way to do this is with an

Swap two columns values between two tables

安稳与你 提交于 2020-01-15 09:19:08
问题 I have two tables NAVEEN_T1 and NAVEEN_T2 having columns like Id and Name. How to swap name column values of both the tables on the basis of Id? SQL> SELECT * FROM NAVEEN_T1; ID NAME ---------- ---------- 1 GOLDI 2 NAVEEN 3 AMIT SQL> SELECT * FROM NAVEEN_T2; ID NAME ---------- ---------- 1 RANJAN 2 SOM 3 ABHAY I want output like: SQL> SELECT * FROM NAVEEN_T1; ID NAME ---------- ---------- 1 RANJAN 2 SOM 3 ABHAY SELECT * FROM NAVEEN_T2; ID NAME ---------- ---------- 1 GOLDI 2 NAVEEN 3 AMIT

ORA-00907 when trying to create a CHECK constraint

拥有回忆 提交于 2020-01-15 05:54:07
问题 I need your help with this error: ORA-00907 on Check CONSTRAINT Query: CREATE TABLE S_NEWS.T_UTILISATEUR_USR ( USR_ID INTEGER NOT NULL PRIMARY KEY, USR_MAIL VARCHAR(256) NOT NULL, USR_TITRE CHAR(6) NULL DEFAULT 'M.'CHECK (USR_TITRE IN ('M.' , 'Mlle.','Mme.' )), USR_NOM CHAR(32) NOT NULL, USR_PRENOM VARCHAR(32) NULL, USR_ORGANISATION VARCHAR(128) NULL ); 回答1: The error message is ORA-00907: missing right parenthesis It almost always points to a syntax error rather than a missing bracket. In

What are the differences between 'shrink space compact' and 'coalesce'?

眉间皱痕 提交于 2020-01-14 09:43:10
问题 The oracle documentation says that during altering an index clauses shrink space compact and coalesce are quite similar and could be replaced by each other, but Tom found some differences in the behavior. Since coalesce is not available in standart edition of Oracle Database, I suppose there're some benefits in using it. So, what are the differences? Can I perform shrink space compact on a dynamically changing index? 回答1: The above answer is false. There are basically 4 options. 1 - ALTER