How to create composite indexes for Table Type
HelloI have a file type my_rec
Type my_rec is RECORD)
Field1 varchar2 (100),
VARCHAR2 (100) Field2.
field3 varchar2 (100));
I declare a table type
Type my_tt is table of my_rec INDEX OF VARCHAR (200);
Here, instead of using varchar (200) can I said anyway that the values of Field1 and Field2 is a composite index?
Thank you
Paddy
Still not able to solve my problem.
No need to simplify.
It's just not possible.
1 index-by must be PLS_INTEGER, directory or VARCHAR2.
2 anchor statements cannot be used (I know this isn't what you're doing here).
3. you can not make a kind of self-reference on one of the fields in the index.
An alternative is to make the big collect in a collection indexed by pls_integer, then go fill another collection with varchar2 key.
Tags: Database
Similar Questions
-
How to create an index for a PK
Hello
Trying to name and create features for an index for a primary key must be created. I can't find this information in the documentation. Can someone explain how to do this?
Thank you
Bob LarsenHi Bob,
In the Data Modeler, you can first create an Index by opening the Table Properties dialog box in the relational model and select "Index" in the left panel.
You can then use the button '+' to create a new Index and set its name and its columns (or his expression if you select the Expression of Index box).You can then ask to use this Index for the primary key as follows:-
Navigate in the tree view of the browser to the node Table in the relevant physical model. If you expand that, it must contain an entry for the primary key.
Open the properties of the primary key for this entry dialog box. On the general tab, set its property "with the help of the index" BY INDEX name, click its tab "with the help of the index' and set its property to"Existing Index"to refer to the relevant index.Moreover, in the primary key of physical model properties dialog box, you can set the property 'with the help of the index' to BY CREATE INDEX STATEMENT, and then on the 'Index to help' tab, you can enter the Index definition in the field 'Create Index Statement.
David
-
How to create faster index in the table of 500 GB
Dear Experts,
I have to create 20 index on table data-ware house. This table is of size 500 GB.
freshen up this weekly chart using the external table.
creating 20 indexes on this table consumes a lot of time.
I have 40 GB of ram on 2012 box windows with 8 processors.
I installed 11 GR 2.
I have 4 drives C D E F
for AN index, it takes 4 hours
I added enough space to the tablespace
I put the tablespace in a drive D:\
I'm under control to create indexes below
create index X_3_INVEN_ITEM_ID_IDX on X_3_PV_TD_2 (INVENTORY_ITEM_ID) parallel 32 nologging;
output long ops
SID, SERIAL # CONTEXT SOFAR TOTALWORK LESS TARGET % _COMPLETE TIME_REMAINING
---------- ---------- ---------- ---------- ---------- ---------------------------------------------------------------- ---------------------------------------------------------------- ---------- --------------
108 10 0 3758 140973 Rowid Scan AD range. X_3_PV_TD_2 2.67 256
173 23 0 5279 141470 Rowid Scan AD range. X_3_PV_TD_2 3.73 258
114 6 0 10092 141786 Rowid Scan AD range. X_3_PV_TD_2 7.12 261
99 59 0 46283 325908 Sort Output 14.2 15207
68 214 0 46763 323623 Sort Output 14.45 14973
35 93 0 47531 318364 Sort Output 14.93 14570
164 70 0 45058 288506 Sort Output 15.62 12886
227 31 0 44130 282285 Sort Output 15.63 13011
13 3 0 51890 309515 Sort Output 16.76 12874
222 67 0 28837 141380 Rowid Scan AD range. X_3_PV_TD_2 20.4 343
73 37 0 32472 141488 Rowid Scan AD range. X_3_PV_TD_2 22.95 212
47 8 0 34332 141154 Rowid Scan AD range. X_3_PV_TD_2 24,32 202
176 20 0 35197 141161 Rowid Scan AD range. X_3_PV_TD_2 24.93 205
19 7 0 35239 141325 Rowid Scan AD range. X_3_PV_TD_2 24.93 205
80 4 0 40399 141611 Rowid Scan AD range. X_3_PV_TD_2 28,53 193
144 20 0 44960 141481 Rowid Scan AD range. X_3_PV_TD_2 31,78 182
233 101 0 74086 169228 Rowid Scan AD range. X_3_PV_TD_2 43,78 176
128 165 0 78765 141436 Rowid Scan AD range. X_3_PV_TD_2 55.69 173
235 1 0 41199796 70035728 table Scan AD. X_3_PV_TD_2 58,83 19804
199 6 0 52748651 70035728 table Scan AD. X_3_PV_TD_2 75,32-9709
44 2 0 53686039 70035728 table Scan AD. X_3_PV_TD_2 76,66 9022
204 26 0 119969 141464 Rowid Scan AD range. X_3_PV_TD_2 84.81 40
202 48 0 138880 162276 Rowid Scan AD range. X_3_PV_TD_2 85.58 43
17 33 0 126506 141778 Rowid Scan AD range. X_3_PV_TD_2 89.23 28
48 7 0 137772 141360 Rowid Scan AD range. X_3_PV_TD_2 97.46 15
Temp tablespace
USED_MB USED TOT_MB % NOM_TABLESPACE
------------------------------ ---------- ---------- ----------
TEMP 11533 286719 4.02temporary tables
OWNER SEGMENT_NAME SEGMENT_TY TABLESPACE_NAME EXTENTS BYTES_
---------- ------------------------------ ---------- -------------------- ---------- ---------------
AD 156.1601650 TEMPORARY USERS 96 209,715,200Question:
How to fix this?
(a) run several parallel create sqlplus statement index different sessions
(b) create a tablespace to put data files in different hard drives like D: E: F: C:
(c) create the separate tablespace for each hard drive and map it to a single disk IO benefit
(d) I have 8 processors but parallel 32 is not speed
(e) how these clues I can run in parallel. Is it OK to run 20 parallel index 32 sqlplus sessions
All that I have to create 20 index on the table of 500 GB
target memory = 30GB
index of names to create 20, each index is 10 GB
his is of 80 hours (4 hours per index)
This machine is waiting, I just used all the resources of the machine to accelerate.
Thanks for reading this
Thanks for the help in advance
I was talking about your end of issue speed up construction of index, where I proposed
orclz >
orclz > alter session set workarea_size_policy = manual;
Modified session.
orclz > alter session set sort_area_size = 2147483647;
Modified session.
orclz > create index
Post edited by: JohnWatson
Sorry, I misread it: this question was not from you. My apologies. My solution should work for you, however: give yourself a big PGA, manually. Automatic PGA management using not will never give you enough.
-
How to create a 'category' for the brushes?
I've collected a ton of different types of paint brushes. To keep all in my active brush Panel seems to slow down Photoshop and my computer, and it is difficult to sort all the when you are looking for a particular brush.
Is there a way I can create a category for certain types of brushes, as the default categories that appear at the bottom of the context menu brush Panel (calligraphic, false finish brushes...)? An example would be a category for all my brushes of foliage (leaves, grass, Moss, trees, etc.).
Or is there a better way to keep similar brushes orgainized together and accessible in the PS brush Panel? Thank you
Hi rich,
Yes, you can get your brushes to show up in the menu of the Panel under all the built-in brushes. But it is a few steps, follow me.
Start by creating your predefined. Looks like you already know how to do this, but I'll repeat the steps for someone else.
Click the create predefined in the Panel forms.
The name of the brush.
Create as many other preset that you like.
When you have all your brushes. Choose the Preset Manager in the brushes Panel menu.
This opens the preset manager.
Shift + click or Cmd/Ctrl-click to select the brushes you want to have in their own game. Then click on the button Save the value. This opens the dialog box save the value.
This should open in the brushes folder that is located in the Presets for Photoshop. Don't go anywhere else. This is where you want to be.
Name your game (such as foliage), and then click Save.
You can now delete these brushes from the preset manager.
Restart Photoshop.
Your brushes custom if poster at the bottom of the Panel forms Preset.
At any time, you can choose the brushes. An alert will ask you if you want to replace (throw all your other brushes and insert those custom) or append (add brushes to those you already have). I usually add.
Let us know if that helps.
-
How to create unique variables for... in loop? (AS2)
Hello
I have a function onEnterFrame controlling all the movie clips in a table. The movement of each of these clips is controlled by a few variables - speed, acceleration, etc - that are changed on every enterFrame. I can't understand how to create unique variables for each element of the array. Now my variables are the same for all elements, and therefore the proposals of each video clip are the same.
I used this code to add my video clips in the table:
for (i = 0; i < starNumber; i ++) {}
duplicateMovieClip (star, "star" + I, i);
starArray.push (this ["star" + String (i)]);
}I do a similar thing to create unique variables for each? Or is there something I need to do my loop (myClip in myArray) which is contained in my onEnterFrame function?
I can post my code if that would help (65 lines).
Creating unique variables is easy way out. Here's the modified code using unique variables that should solve your problem:
var i: Number;
var starArray:Array = [];
var starArray_X:Array = [];
var starArray_Y:Array = [];
var mc:String;
var scale: number;
var speedXMod:Number;
var speedYMod:Number;
var starNumber:Number = 10;
var minSize:Number = 15;
var maxSize:Number = 80;
var speed: number = 0.2;
var minSpeed:Number = 0;
var maxSpeed:Number = 1;
for (i = 0; i< starnumber;="">
duplicateMovieClip (star, "star" + I, i);
starArray.push (this ["star" + String (i)]);
}
(MC starArray) {}
starArray [mc] ._x = (Math.Random () * Stage.width);
starArray [mc] ._y = (Math.Random () * Stage.height);
scale = (minSize + (Math.Random () * (maxSize - minSize)));
._xscale starArray [mc] = scale;
starArray [mc] ._yscale = scale;
var startSpeedX:Number = ((Math.pow (-1, (Math.round (Math.random ())) * (minSpeed + (Math.Random () * (maxSpeed - minSpeed)));)))
var startSpeedY:Number = ((Math.pow (-1, (Math.round (Math.random ())) * (minSpeed + (Math.Random () * (maxSpeed - minSpeed)));)))
[mc] starArray_X = startSpeedX;
[mc] starArray_Y = startSpeedY;
onEnterFrame = function() {}
(MC starArray) {}
speedXMod = ((Math.random () * acceleration)-(0,5 * accélération));
speedYMod = ((Math.random () * acceleration)-(0,5 * accélération));
If (((Math.abs (starArray_X [mc] + speedXMod)) < maxspeed)="" &&="" ((math.abs(stararray_x[mc]="" +="" speedxmod))=""> minSpeed)) {}
[mc] starArray_X += speedXMod;
} else {}
[mc] starArray_X = speedXMod;
}
If (((Math.abs (starArray_Y [mc] + speedYMod)) < maxspeed)="" &&="" ((math.abs(stararray_y[mc]+="" speedymod))=""> minSpeed)) {}
[mc] starArray_Y += speedYMod;
} else {}
[mc] starArray_Y = speedYMod;
}
If (((starArray [mc]._x + starArray_X[mc]) > 0) & ((starArray [mc]._x + starArray_X[mc])))<>
starArray [mc] ._x += starArray_X [mc];
} else {}
starArray_X [mc] * = - 1;
starArray [mc] ._x += starArray_X [mc];
}
If (((starArray [mc]._y + starArray_Y[mc]) > 0) & ((starArray [mc]._y + starArray_Y[mc])))<>
starArray [mc] ._y += starArray_Y [mc];
} else {}
starArray_Y [mc] * = - 1;
starArray [mc] ._y += starArray_Y [mc];
}
}
}
}
-
How to create a login for PHP users
How to create a login for users to access their data, currently, I don't see the first user each time I connect with a different user name. I know that I need session stuff but don't know how to use, add or where to put them.
Thanks in advance.Hello
Find this in your login page:
session_register ("MM_Username");
and then you add a session variable in MX called it:
MM_Username
then on any of your pages that calls the base to make sure that you use the = MM_Username and then you're all set; Make sure that the tables have a field to reference the session MM_Username variable.
See you soon
Let me know if you just come! -
How to create an ERD for the vista sp2 x 64?
How to create an ERD for the vista sp2 x 64?
How to create an ERD for the vista sp2 x 64?
If you do not have a Microsoft Vista DVD, make a repair disc to do a Startup Repair:
Download the ISO on the link provided and make a record of repair time it starts.
Go to your Bios/Setup, or the Boot Menu at startup and change the Boot order to make the DVD/CD drive 1st in the boot order, then reboot with the disk in the drive.
At the startup/power on you should see at the bottom of the screen either F2 or DELETE, go to Setup/Bios or F12 for the Boot Menu.
When you have changed that, insert the Bootable disk you did in the drive and reboot.
http://www.bleepingcomputer.com/tutorials/tutorial148.html
Link above shows what the process looks like and a manual, it load the repair options.
NeoSmart containing the content of the Windows Vista DVD 'Recovery Centre', as we refer to him. It cannot be used to install or reinstall Windows Vista, and is just a Windows PE interface to recovering your PC. Technically, we could re-create this installation with downloadable media media freely from Microsoft (namely the Microsoft WAIK, several gigabyte download); but it is pretty darn decent of Microsoft to present Windows users who might not be able to create such a thing on their own.
Read all the info on the website on how to create and use:
http://NeoSmart.net/blog/2008/Windows-Vista-recovery-disc-download/
ISO Burner: http://www.snapfiles.com/get/active-isoburner.html
It's a very good Vista startup repair disk.
You can do a system restart tool, system, etc it restore.
It is NOT a disc of resettlement.
Make sure you get the 64 bit version.
See you soon. Mick Murphy - Microsoft partner
-
How to create a password for the user account for my child?
How to create a password for the user account for my child?
You can create the user with the parental control account. This will act as a protection for the child's account.
You can take a look at the following links on setting up parental controls:
http://Windows.Microsoft.com/en-us/Windows/set-up-family-safety#set-up-family-safety=Windows-7
http://Windows.Microsoft.com/en-us/Windows/set-parental-controls#1TC=Windows-7
http://www.howtogeek.com/HOWTO/10524/how-to-use-parental-controls-in-Windows-7/
-
How to print an index for a directory?
original title: print the directory
How to print an index for a directory? At home I run Windows 7, but I really want to do this at work - OS is Vista Business
You mean "how to print a list of the directories?
http://www.Google.com/search?q=how+do+I+print+a+directory+listingHow to add the feature print directory for files in Windows XP, Windows Vista, in Windows 7
http://support.Microsoft.com/kb/321379HTH
-
How to create the ADC for first name
Hello
I have the situation here, I need display the default in the e-mail (Dear) when the value in the first name field is less than 2 characters long or it is empty. Otherwise, I need to insert the value of the field name (Dear John).
Please let me know how to create an ADC for this.
Thank you
Rama
Use wildcards for searching.
? = any 1 character
* = 0 or any number of characters
In order to find people with more than 2 characters in this area?: *
Then, build your default rule to merge the content in case they encounter more rule of character 2.
-
How to create a shortcut for all users during installation
Hi people,
We have a desktop application that is distributed with Java Webstart and works on Win7 machines. Initially, users all connected using a connection by default, so creating shortcuts was not a problem. Now, because of new networking strategies, each user has his own connection.
The problem is that the shortcut to the application is created in the user profile (for example "C:\Users\JohnDoe\", so that other users in the same machine can not run the application unless he or she installs the application again.)
Is there a way to create this shortcut for all users using JNLP API or configuration in the xml file?
If anyone has need of the solution: during installation I save the jnlp file in a directory accessible to all the world and then start the application using "javaws path\to\file.jnlp". More details in How to create a shortcut for java webstart available for all users on Windows 7?-stack overflow
-
How to create a password for the pdf file
The Adore Acrobat XI, how to create a password for the file? Aid says going to the Tools Menu and clicking on the Protection tab - but there is no option. In the security file - properties - screen, it shows the security details but doesn't allow for no change.
I think you can be mixing two different products: (free) Adobe Reader and Acrobat ($$).
-
How to create a card for After Effects?
How to create a card for After Effects?
-
How to create the presentation for the columns variable and use it in the story?
Hi all
Someone knows how to create variable presentation for a column (that is, I need to create it in edit section formula itself). And then, I should use it in the Narrative section to display the value of this column. Is this possible? Or do I need to use any other variable for this requirement? If Yes please let me know, how to create it? This is a very urgent requirement.
Thanks in advance
StephanieHello
You can have any number of columns in the narrative view, he will accept... Just mention the numbers of the columns in the view body narrative...check if useful/correct...
Thank you
prassu -
Hi all
How to create a jar for icons? Please help me thanks in advance.
SarahHi Sarah!
To do this, you use at best the jdk (java development kit) which is already
installed on your pc in forms is installed.Copy all your gif icons in a folder
Open the command prompt and in this folder.If we assume that you have installed forms in the default directory, call the jar.exe like this:
x:\DevSuiteHome_1\jdk\bin\jar -cfv your_icons.jar *.gif
This will create a jar file in the same directory.
Copy the jar file into your x:\DevSuiteHome_1\forms\java folder.Then open your formsweb.cfg x:\DevSuiteHome_1\forms\server and change your configuration entry under the
archive_jini=frmall_jinit.jar
TO
archive_jini=frmall_jinit.jar, your_icons.jar
Please check if in your formsweb.cfg so the imagebase is set to the code base.
If this isn't the case, create a parameter in your config entry:imagebase=codebase
Now the jar file is loaded when you start your application and the icons are
turns red from the jar file.Concerning
Maybe you are looking for
-
POODLES SSLv3 effect Mozilla Firefox?
This breach of poodle SLL effect Firefox v3? My Firefox must updated? Answer soon! Jacob
-
Firefox on Ubuntu Linux does not open the PFD files (blank tab opens)
Firefox running on Linux (Ubuntu 13.04).When I click on any file (or attachment) which is in PDF format, Firefox opens a blank tab and display content.I saw a similar question for Apple computers, but it does not work under Linux and neither does Win
-
BlackBerry smartphones does not connect to the Device Manager after upgrade [USB]
Hello I've updated de.141.151 and just after the update has been made, whenever I try to connect my BB via USB, I get the message says: "Unrecognized USB device".The USB devices for computer mark attaached has malufunctioned and windows does not reco
-
Cannot update win 8 language unique to 8.1
Why can't update to win 8.1 of the store, I have best windows licensed.
-
Creating and previewing mode do not match.
Hello, I am very new to Muse (Googling always do that some tools) and I'm running into a couple of questions.That's what I see in Design view, I saw the site on my tablet, but it looks like this...Any ideas?Thank you, dear.