How to create a concatenated index with a long column (Urgent!!)
We have a situation where we need to create a concatenated unique
index with one of the columns as a "long" datatype. Oracle does
not allow a lot of things with long columns.
Does anyone know if this is possible or if there is a way to get
around it.
All help is appreciated!!!!
From the Oracle SQL Reference ...
"You cannot create an index on columns or attributes whose
type is user-defined, LONG, LONG RAW, LOB, or REF,
except that Oracle supports an index on REF type columns
or attributes that have been defined with a SCOPE clause."
Doesn't mention CLOB or BLOB types, so perhaps you
should consider using one of those types instead. I have a
feeling that the LONG type is now deprecated.
Similar Messages
-
How to Create Custom Content Type with 100 site columns ?
Hi EveryOne,
i have one requirement to create custom conten types in sharepoint 2013 as follows.
1. Create a content type with 100 site columns ( in this 100 site columns includes 10 mms feilds and 10 lookup fields).
2.when we deploy the content type in other server if already the same content type existing in the server it should be upgrade the existing content type.
Please advise how do develop the solution ( using power shell script or visual studio with event receiver or xml file)
Regards,
SrinivasTry below:
http://www.mindfiresolutions.com/Add-Columns--Fields-Programmatically-to-a-SharePoint-List-282.php
using(SPSite
oSPsite = new SPSite("http://Web-URL"))
oSPsite.AllowUnsafeUpdates =
true;
using (SPWeb oSPWeb = oSPsite.OpenWeb())
oSPWeb.AllowUnsafeUpdates =
true;
/* get the SPList object by list name*/
SPList lst = oSPWeb.Lists["EmpList"];
/* create a Numeric field for EmpID */
SPFieldNumber fldEmpID = (SPFieldNumber)lst.Fields.CreateNewField(
SPFieldType.Number.ToString(),
"EmpID");
fldEmpID.Required =
true;
fldEmpID.DisplayFormat =
SPNumberFormatTypes.NoDecimal;
/* create a Text field for Name */
SPFieldText fldName = (SPFieldText)lst.Fields.CreateNewField(
SPFieldType.Text.ToString(),
"Name");
fldName.Required =
true;
fldName.MaxLength = 50;
/* create a Date field for Dob*/
SPFieldDateTime fldDob = (SPFieldDateTime)lst.Fields.CreateNewField(
SPFieldType.DateTime.ToString(),
"Dob");
fldDob.DisplayFormat =
SPDateTimeFieldFormatType.DateOnly;
/* create a Currency field for Salary */
SPFieldCurrency fldSal = (SPFieldCurrency)lst.Fields.CreateNewField(
SPFieldType.Currency.ToString(),
"Salary");
fldSal.Currency =
SPCurrencyFieldFormats.UnitedStates;
fldSal.DisplayFormat =
SPNumberFormatTypes.TwoDecimals;
/* add the new fields to the list */
lst.Fields.Add(fldEmpID);
lst.Fields.Add(fldName);
lst.Fields.Add(fldDob);
lst.Fields.Add(fldSal);
/* finally update list */
lst.Update();
oSPWeb.AllowUnsafeUpdates =
false;
oSPsite.AllowUnsafeUpdates =
false;
If this helped you resolve your issue, please mark it Answered -
How to create a new index with already indexed folder
Hi
I have a requirement to create a new index.
I can able to create index. But,When i am specifying the data source, i am trying to include a data source which was already indexed in another index.
The system giving error that "The folder is already indexed and its available in another index".
How should i specify same folder in different indexes?Hi Patricio,
Thanks for your reply.
Our requirement is
From your example, lets take
index1 containts a data sources \folder1.
and i have a requirement to create another index called index2 with data sources
1) \folder1
2) \testfolder\testfolder1.
From help.sap.com i understand that there is no way to specify the same folder in different indexes.
I am looking for, Is there any solution to meet my requirement
Thanks -
How to create Report Writer Form with page longer than 255
As i need to create report writer form with many columns which exceed than 1 acceptable page, how can I create since in writer there is no Horizontal Page as in report painter.
Thank you very much.
Sirirakcheck it out.
pretty simple example
http://www.baigzeeshan.com/2010/04/creating-simple-search-form-in-oracle.html
here is the example what you 're looking instead of af:table have your form. -
How to Create primary key index with duplicate rows.
Hi All,
While rebuilding an index on a table , I am getting error that there are duplicate rows in a table.
Searching out the reason led me to an interesting observation.
Please follow.
SELECT * FROM user_ind_columns WHERE table_name='SERVICE_STATUS';
INDEX_NAME TABLE_NAME COLUMN_NAME COLUMN_POSITION COLUMN_LENGTH CHAR_LENGTH DESCEND
SERVICE_STATUS_PK SERVICE_STATUS SUBSCR_NO_RESETS 2 22 0 ASC
SERVICE_STATUS_PK SERVICE_STATUS STATUS_TYPE_ID 3 22 0 ASC
SERVICE_STATUS_PK SERVICE_STATUS ACTIVE_DT 4 7 0 ASC
SERVICE_STATUS_PK SERVICE_STATUS SUBSCR_NO 1 22 0 ASC
SELECT index_name,index_type,table_name,table_type,uniqueness, status,partitioned FROM user_indexes WHERE index_name='SERVICE_STATUS_PK';
INDEX_NAME INDEX_TYPE TABLE_NAME TABLE_TYPE UNIQUENESS STATUS PARTITIONED
SERVICE_STATUS_PK NORMAL SERVICE_STATUS TABLE UNIQUE VALID NO
SELECT constraint_name ,constraint_type,table_name,status,DEFERRABLE,DEFERRED,validated,index_name
FROM user_constraints WHERE constraint_name='SERVICE_STATUS_PK';
CONSTRAINT_NAME CONSTRAINT_TYPE TABLE_NAME STATUS DEFERRABLE DEFERRED VALIDATED INDEX_NAME
SERVICE_STATUS_PK P SERVICE_STATUS ENABLED NOT DEFERRABLE IMMEDIATE VALIDATED SERVICE_STATUS_PK
1. Using index scan:
SELECT COUNT (*)
FROM (SELECT subscr_no, active_dt, status_type_id, subscr_no_resets
FROM service_status
GROUP BY subscr_no, active_dt, status_type_id, subscr_no_resets
HAVING COUNT (*) > 1) ;
no rows returned
Explain plan:
Operation OBJECT Name ROWS Bytes Cost OBJECT Node IN/OUT PStart PStop
SELECT STATEMENT Optimizer MODE=CHOOSE 519 K 14756
FILTER
SORT GROUP BY NOSORT 519 K 7 M 14756
INDEX FULL SCAN ARBOR.SERVICE_STATUS_PK 10 M 158 M 49184
2. Using Full scan:
SELECT COUNT (*)
FROM (SELECT /*+ full(s) */ subscr_no, active_dt, status_type_id, subscr_no_resets
FROM service_status s
GROUP BY subscr_no, active_dt, status_type_id, subscr_no_resets
HAVING COUNT (*) > 1) ;
71054 rows returned.
Explain Plan:
Operation Object Name Rows Bytes Cost Object Node In/Out PStart PStop
SELECT STATEMENT Optimizer Mode=CHOOSE 1 24123
SORT AGGREGATE 1
VIEW 519 K 24123
FILTER
SORT GROUP BY 519 K 7 M 24123
TABLE ACCESS FULL ARBOR.SERVICE_STATUS 10 M 158 M 4234
Index SERVICE_STATUS_PK is a unique and composite primary key VALID index. And the constraint is ENABLED and VALIDATED still having duplicate rows in table.
How it is possible?
Is it an Oracle soft Bug??
Regards,
Saket Bansalsaket bansal wrote:
Values are inserted as single rows inserts through an GUI interface.And you still claim to have over 71K duplicate records, without the GUI getting any kind of errors?
That does not add up and can only be explained by a "bug".
I tried inserting a duplicate record but failed.
SQL> insert into service_status (select * from service_status where rownum <2);
insert into service_status (select * from service_status where rownum <2)
ERROR at line 1:
ORA-00001: unique constraint (ARBOR.SERVICE_STATUS_PK) violatedAre you really sure there is no other way data in this table is populated/manipulated in bulk? -
How to create a Context index on a Substitutable Column ?
Hi all,
I have a type t1 and a subtype t2 which defines a new
sys.XMLType column d and a table t_tab of t1.
If I issue the following :
create index t_idx on t_tab t(treat(value(t) as t2).d) indextype
is ctxsys.context;
I get the following message:
ERROR at line 1:
ORA-29855: error occurred in the execution of ODCIINDEXCREATE
routine
ORA-20000: Oracle Text error:
DRG-50857: oracle error in drsxsopen
ORA-00904: invalid column name
ORA-06512: at "CTXSYS.DRUE", line 157
ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 176
Any suggestion ?
Thanks
AlexAlex,
Please file an iTAR report at http://metalink.oracle.com. This
could be a known bug.
Regards,
Geoff
Hi all,
I have a type t1 and a subtype t2 which defines a new
sys.XMLType column d and a table t_tab of t1.
If I issue the following :
create index t_idx on t_tab t(treat(value(t) as t2).d) indextype
is ctxsys.context;
I get the following message:
ERROR at line 1:
ORA-29855: error occurred in the execution of ODCIINDEXCREATE
routine
ORA-20000: Oracle Text error:
DRG-50857: oracle error in drsxsopen
ORA-00904: invalid column name
ORA-06512: at "CTXSYS.DRUE", line 157
ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 176
Any suggestion ?
Thanks
Alex -
How to create a procedure function with a return value of ref cursor?
Can anybody provide a sample about how to create a procedure function with a return value of REF CURSOR?
I heard if I can create a function to return a ref cursor, I can use VB to read its recordset.
Thanks a lot.http://osi.oracle.com/~tkyte/ResultSets/index.html
-
How to create a domain index on NCLOB Column
hi all,
My database version is 10.2.0.1.
Any body know how to create a domain index on nclob column.
SQL> alter table test add (nclob1 nclob);
Table altered.
SQL> CREATE INDEX test_nclob ON test (nclob1) indextype is ctxsys.context
2 /
CREATE INDEX test_nclob ON test (nclob1) indextype is ctxsys.context
ERROR at line 1:
ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
ORA-20000: Oracle Text error:
DRG-10509: invalid text column: NCLOB1
ORA-06512: at "CTXSYS.DRUE", line 160
ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 364Regards
SinghAny body know how to create a domain index on nclob columnNot possible per design/documentation:
The column that you specify must be one of the following types: CHAR, VARCHAR, VARCHAR2, BLOB, CLOB, BFILE, XMLType, or URIType.
« -
How to create an unsolved cube with awm???
hi all,
I readed the "Oracle Olap developer's guide to the Oalp api" and I found there's 2 type of Cube: Solved and Unsolved Cubes. And this document says: "... if all the data for a cube is specified by the DBA, then the cube is considered to be Solved. If some or all of the aggregate data must be calculated by Oracle OLap, then the cube is unsolved ..."
I tried with awm 10.2.0.3.0A to create an unsolvedCube but I can't. All cubes I created are solvedCube. To know if a cube is solved or unsolved, I wrotte an program in Java to read informations of package mtm.
Some one can tell me how to create an unsolved cube with AWM ou other soft please!SH is not a relational OLAP data model which is quite different from the GLOBAL schema which is based on an Analytic Workspace.
If you change the aggregation method you will need to re-compute the whole cube which can be a very big job! You might be able to force the unsolved status be de-selecting all the levels on the Rules tab in AWM. However, I think by default analytic workspace OLAP models always provide a fully solved cube to the outside world. This is the nature of the multi-dimensional model.
Relationally, as keys are located in separate columns a cube can be unsolved in that the key column only contains values for a single level from the corresponding dimension tables. If more than keys for different levels within the same dimension appear within the fact key column then the cube is deemed as being solved.
Therefore, I am not sure you are going to get the information you require from the API. To changes the aggregation method you will have to switch off all pre-compute options and also disable the session cache to prevent previously calculated data being returned when you change the aggregation method.
Hope this helps
Keith Laker
Oracle EMEA Consulting
BI Blog: http://oraclebi.blogspot.com/
DM Blog: http://oracledmt.blogspot.com/
BI on Oracle: http://www.oracle.com/bi/
BI on OTN: http://www.oracle.com/technology/products/bi/
BI Samples: http://www.oracle.com/technology/products/bi/samples/ -
1. How to create an explain plan with rowsource statistics for a complex query that include multiple table joins ?
When multiple tables are involved , and the actual number of rows returned is more than what the explain plan tells. How can I find out what change is needed in the stat plan ?
2. Does rowsource statistics gives some kind of understanding of Extended stats ?You can get Row Source Statistics only *after* the SQL has been executed. An Explain Plan midway cannot give you row source statistics.
To get row source statistics either set STATISTICS_LEVEL='ALL' in the session that executes theSQL OR use the Hint "gather_plan_statistics" in the SQL being executed.
Then use dbms_xplan.display_cursor
Hemant K Chitale -
How to create a Sales order with ref to Contract using Function Module
How to create a Sales order with ref to Contract using Function Module BAPI_SALESDOCU_CREATEFROMDATA ?
We have a unique situation where we like change the sold-to customer of the sales order
once order has been created. These orders have been created using either by function module
BAPI_SALESDOCUMENT_COPY or using BDC (VA01, Copy with reference).
These two processes work abosolutely fine except someone might have change the sold-to
customer of the ship-to customer of the original sales order. If this the case then the new
sales order will be created with the old sold-to and with not the new sold-to.
We tried using BAPI_SALESDOCUMENT_CHANGE and commit afterwards. We checked
the returned parameteres of the BAPIs and they are all successful but sold-to remains the
same old one.
Any help would be much more appreciated. -
How to create a pdf file with CS5
Hello, I'm new to PhotoShop CS5 and haven't figured out yet (despite two hours of trying) how to create a pdf file with pictures and texts. Can someone please help me with this ? The "help" button in CS5 doesn't seem to cover this question. Nor do the FAQs.
Thank you very much.Save As... Photoshop PDF.
-
How to create a test plan with specific transactions (or program)
Hello,
I'm a new user in Sol Man !
How to create a test plan with specific transactions (or program).
In my Business Blueprint (SOLAR01) I've created in 'transaction tab' the name of my specific transactions and linked it.
In my test plan (STWB_2) those specific doesn't appear to be selected !
Thanks in advance.
Georges HUYNENHi
In solar01 you have defined but you have to assign the test case in solar02 for this test case in the test cases tab.
When you do so expand the business sceanario node in test plan generation of STWB_2 transaction and now that will appear.
Also visit my weblog
/people/community.user/blog/2006/12/07/organize-and-perform-testing-using-solution-manager
please reward points. -
How to create a web template with company logo
how to create a web template with company logo . can any one help me with the steps. or any notes. thnaks in advance .
2. i have 25000 articles and client want to have a selection feild to see top article ex:50,10,20, 100, 1000 etc . same for bottom articles . plz let me know how to do it . thanks for replay . i am new bw so plz .
thanks to you allHi
1) Please read
http://help.sap.com/saphelp_nw04/helpdata/en/4a/c8353c51aab32be10000000a114084/frameset.htm
2) Create a condition in the Query Designer: Use a formula variable
See http://help.sap.com/saphelp_nw04/helpdata/en/73/702e39074dc93de10000000a114084/frameset.htm
Heike -
How to create a transport request with query and only with its structure.
HI guru,
how to create a transport request with query and only with its structure.transport request should not include any other query items like ( variables, conditions...etc)
thanks in advance.
venkataHi,
Goto RSA1 and then Transport Connection -> In SAP Transports select Object Types-> Query Elements -> Then select Query->Give Technical name of the query and then select for transfer. In the right side you can choose the components which you wanted to transport.
Regards,
anil
Maybe you are looking for
-
Quiz slide not advance when using question pools and advance answer options?
Hi, I am using CP 5.5. I created a small test where I have just 2 question in a question pool. The questions are using the advanced answer options to show some specific feedback. When I insert the questions in to the project using a random question
-
Change of ConfigOPtions but Database does still link old options
Change of ConfigOPtions but Database does still link old options When we change options for a configuration in the configurator Screen, it allows to do this. However the database for this configuration still links to the unclicked old option and trie
-
Select list filter in a tabular form problem
Hello everyone: I need to filter a list in a tabular form, depend on another column value in the same row of the Tabular Form Try using the syntax *#COLUMN#* in the query of select list but did not work. This is my query SELECT nombre_respuesta, co
-
Can Photoshop CS3 Metadata Be Configured To Identify Camera?
My metadata panel gives Camera Data (EXIF) details but does not identify the make and model of the camera. A few years ago I am sure I was able to see the identity of the camera. At the time I was using Photoshop Elements 2 and iPhoto 4, together wit
-
Can't print when in secure network mode
I have a WRT 300N router. I can print when I am not in security mode, but cannot when the router is secured. Using a HP Deskjet 3050A printer