Character semantics when setting the length of NVARCHAR2 field (Oracle 10g)
SQL> CREATE TABLE viv_naseleni_mesta (
2 naseleno_mjasto_id INTEGER NOT NULL PRIMARY KEY,
3 ime NVARCHAR2(15 CHAR) NOT NULL,
4 oblast_id INTEGER NOT NULL REFERENCES viv_oblasti(oblast_id),
5 grad CHAR NOT NULL CHECK (grad IN (0,1)),
6 de_timestamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
7 de_update_time TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
8 de_operator INTEGER DEFAULT NULL,
9 de_versija NUMBER(5,2) DEFAULT NULL
10 );
ime NVARCHAR2(15 CHAR) NOT NULL,
ERROR at line 3:
ORA-00907: missing right parenthesis
It seems that the DB does not accept the length of a field to be given in character
semantics. I have several sources that say it is possible, but is that
only possible in 11g?
According to the docs, NCHAR and NVARCHAR2 types are always character-based. So specifying in CHAR doesn't make sense explicitly.
http://download.oracle.com/docs/cd/B19306_01/server.102/b14225/ch3globenv.htm#sthref385
Cheers
Sarma.
Similar Messages
-
How do I set the length of a podcast?
How do I set the length of a podcast? I am using Garageband 3.0.2
Drag the little purple left facing triangle at the top of the timeline to where you want the export to end.
(Note, GB does impose a minimum length, but I dont' recall what that is at the moment) -
Can anyone tell me how to remove the owner when setting the location
Hello,
Can anyone tell me how to remove the owner when setting the location?
Properties
Table Name: (Table Name)
Table Type: Tables
Owner: Public
Overridden Qualified Table Name: (Table Name - same as above)
Any help would be appreciated.
Thanks
AnnHi Ann,
please check this document to determine the correct space for your question:
Find Topic Spaces on SCN (Forums)
If you need help moving it, let me know!
Thanks,
Kristen -
Setting the value of a field based on a dropdown list
I am using the latest production release of JHeadstart 10.1.3.0.91. I am trying to set the value of a field based on selecting the value of another field (drop down list). The drop down list field has the following attributes set autoSubmit="true" immediate="true" valueChangeListener="#{jhsPageLifecycle.updateModelValue}".
The other field has the partialtrigger set to the first field. ie "depends on" selection from JHeadStart file. The value of the second field is set in the setter of the VO RowImpl java file.
The value of that field is only populated on the screen if it is set to disabled="true". This seems a bit bizzare behaviour. Can you explain why it cannot set the value of the field when it is not disabled.Worked out that if i set the "Clear/Refresh value" attribute on the field that i want updated then it will work ok
Alan -
BC4J UIX How To set the cursor in a field
Hi,
when i display an bc4j uix edit form, i would like to set the cursor in a field and highlight the entry.
how con i do that
Thanks
AchimHi Adam,
sorry but ist is not working. i get an errormessage "Object doesn't support this property or method".
What is wrong?
here my sourcecode
<HTML>
<HEAD>
<TITLE>MBO Signon Page</TITLE>
<uix:styleSheet/>
</HEAD>
<BODY onload="form1.username.focus(); form1.username.select()">
<uix:pageLayout>
<%-- some code here --%>
<%-- Main page contents go here --%>
<uix:contents>
<uix:header text="Login to Mentoring Back Office" >
<uix:styledText text="Enter your user name and your password to login." />
</uix:header>
<uix:spacer width="20" height="10" ></uix:spacer>
<uix:form name="form1" method="POST" destination="login.jsp">
<uix:image source="/webapp/blaf/requiredicon_status.gif" />
<uix:styledText text="Indicates Required Field" />
<uix:spacer width="1" height="20" ></uix:spacer>
<uix:tableLayout cellSpacing="5" cellPadding="5" >
<uix:rowLayout hAlign="left" >
<uix:spacer width="40" height="1" ></uix:spacer>
<uix:styledText text="User Name:" />
<uix:textInput
id="username"
name="username"
text="jonte"
required="yes" >
</uix:textInput>
<uix:formValue name="username" valueBinding="username" />
<uix:image source="/webapp/blaf/requiredicon_status.gif" />
</uix:rowLayout>
<uix:rowLayout hAlign="left" width="25">
<uix:spacer width="40" height="1" ></uix:spacer>
<uix:styledText text="Password:" />
<uix:textInput
name="password"
text="jonte"
required="yes"
columns="20"
secret="true" >
</uix:textInput>
<uix:formValue name="password" valueBinding="password" />
<uix:image source="/webapp/blaf/requiredicon_status.gif" />
</uix:rowLayout>
<uix:rowLayout hAlign="center">
<uix:spacer width="40" height="1" ></uix:spacer>
<uix:submitButton name="Login" text="Login" formName="form1" />
<uix:resetButton text="Cancel" formName="from1" />
</uix:rowLayout>
</uix:tableLayout>
</uix:form>
</uix:contents>
</uix:pageLayout>
</BODY>
</HTML>
<jbo:ReleasePageResources releasemode="Stateful" />
Thanks
Achim -
How to get the length of a field.
Hi all,
I m working on dynamic internal table.There is a need to get the length of a field, filled dynamically.How can we get it.
Thanks in advance.
Regards,
Swati gargSwati,
DATA: text(8) TYPE c,
len TYPE i.
DESCRIBE FIELD text LENGTH len IN CHARACTER MODE.
Field LEN contains the value 8.
================================
For ouput length :
DATA: float TYPE f,
out TYPE i,
len TYPE i.
DESCRIBE FIELD float LENGTH len OUTPUT-LENGTH out.
This example results in the field LEN containing the value 8, while the field OUT contains the value 22.
Don't forget to reward if useful..... -
How to restrict the length of input field
Hi,
How to restrict the length of input field. That is we should not be able to enter more thatn 10 charecters.
Regards,
H.V.SwathiHi swathi,
For this you have to create a simple data type. No need of writing a code.
Go to Dictionaries -> Local Dictionary -> Data Type - > Simple Type - > Right click and "Create Simple Type".
Here you should create a Simple type with String as built-in Type. Here you will also see the Length Constraints option.
Set the value of maximum length and minimum length. In your case set the value of maximum length to 10. At runtime this will not allow the user to enter more than 10 characters.
Now create an attribute and bind it to this newly created simple type. Bind the value of the input field with this particular attribute.
Regards
Manohar -
How to Set the Visibility of a field in ESS Address view through portal
Hi experts,
I want to set the visibility of a field in ESS Address view through portal.How to edit a field through portal? Please help me with procedures to be followed..
Thanks&Regards,
Karthik.Hi,
Login to portal with a user having content administration role.
Navigate to your iview which must be under content provide by SAP(if its a standard iview).
Open the iview and click on preview button.
Then press ctr on keyboard and rightmouseclick on the field for which you want to change.
A popup will open. Change the visibility in the popup and save the changes. This is a way of personalization and it'll be applicable for all the users. -
Get the length of a field in smartform
How can i get the length of a field (text) in smartform
Hi,
use strlen to calculate the length.
for ex:
you need to declare a variable of type string:
data g_conv type string.
and convert the variable holding the text in ur code
g_conv = <var holding the txt>.
then perform STRLEN ( g_conv)
This will give the correct result.
hope this will help you -
How to increasethe throughput of the I/O subsystem in Oracle 10g?
How to increase the throughput of the I/O subsystem in oracle 10g.
OS : Windows 2003 ServerI think your ADDM report may well be wrong.
In another thread you've reported the ADDM for this 23 hours as showing::
This is my ADDM report:
Analysis Period: from 06-MAY-2008 09:30 to 07-MAY-2008 08:30
Database Version: 10.2.0.1.0
Snapshot Range: from 2656 to 2679
Database Time: 100249 seconds
Average Database Load: 1.2 active sessions
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
FINDING 1: 100% impact (100249 seconds)
Significant virtual memory paging was detected on the host operating system.
RECOMMENDATION 1: Host Configuration, 100% benefit (100249 seconds)
ACTION: Host operating system was experiencing significant paging but no
particular root cause could be detected
At the same time, your extract from the matching AWR report shows:
Event Waits Time(s) Avg Wait(ms) % Total Call Time Wait Class
db file scattered read 20,665,706 48,083 2 48.0 User I/O
CPU time 30,114 30.0
db file sequential read 3,661,225 14,740 4 14.7 User I/O
read by other session 454,471 2,933 6 2.9 User I/O
db file parallel write 485,625 1,426 3 1.4 System I/O
So the AWR in these 5 events shows 97,000 seconds of time, but 100% of the total DB time is supposed to be related to Host swap time. The two sets of numbers are not consistent.
Moreover, the wait times are showing "db file scattered reads" with an average time of slightly less than 2.4 milliseconds. It would be a little surprising if you have a swapping problem AND I/O times that were operating at cache speeds. (Your db file sequential reads also have a very good average wait time).
23 hours is not a helpful interval though - the average may be hiding shorter periods of nasty activity when reponse time is bad. So (as Charles Hooper indicated) - where, or when, do you perceive a performance issue; and what do you get from ADDM or AWR for a shorter time-range around that period.
My first thought, looking at the numbers you've supplied, is that if you think some critical SQL is running slowly is that you're probably working too hard because you are missing (or not using) some critical indexes. In your place, I'd run off a few one-hour AWR reports in that 23 hours, and look at 'SQL ordered by elapsed time' or 'SQL ordered by reads' for the top few statements, then pick up their execution plans by running the awrsqrpt.sq report.
Regards
Jonathan Lewis
http://jonathanlewis.wordpress.com
http://www.jlcomp.demon.co.uk
P.S. Please check the FAQ (see top right of page) for details on how to use the PRE tag to supply code and reports in a fixed font that makes them more readable. -
How to Find the Current Instance Id in Oracle 10g
Hi,
how to find the current instance id in oracle 10g studio,
I have the below code :
if (InstanceScreenFlow.processInstance.id.id.indexOf(text : ins.id) < 0) {
/// do something
it is saying that "'processInstance' is not a function"
Thanks,
Brijesh Kumar Singh.Why not just pass in the "id" predefined variable into your screenflow? Once you do that you'll be able to refer to it as "id.id" anywhere inside your screenflow.
Dan -
What is the best browser to run oracle 10g forms
SALAM TO ALL MUSLIM BRITHERS
what is the best browser to run oracle 10g forms_Hello Ady,
Hey not all of us have a religionok, I extend my statement to those with a different religion, atheists, agnostics and anybody who does not beliefe in a divine being of any kind ;-)
some of us are bright enough to be atheistsThe implicit statement of this is not better than greeting only users of a certain religion.
To the OP: I respect your belief, but we had the discussion about greetings in this forum before. To most users any relation to a religion is inapropriate and considered a violation of the Terms of Use, e.g. {message:id=9677530}.
Edited by: Marwim on 16.04.2012 07:56 -
Automatic tab when reaching the end of a field with limited character number
Hello!
Is there a way of activating an automatic tab behaviour when the user reaches the end of a field with limited character number?
I'd like the cursor to jump to the next field in tab order automatically.
Possible?
Thank you for any hints!
MarcosHi,
What if you tried something like the following example? This works using formCalc on the change event for the field the user is currently typing into:
var fullCount = 3
var currentString = xfa.event.newText
if(Len(currentString) >= fullCount)then
xfa.host.setFocus("TextField2")
endif
Or, if you prefer javaScript:
var fullCount = 3;
var currentString = xfa.event.newText;
if(currentString.length >= fullCount){
xfa.host.setFocus("TextField2");
These work very smoothly.
Hope this helps!
Stephen -
Open File dialog window when setting the value of a path type input argument in a VI call
Hi,
I am new to TestStand (running 4.0) and I want to create a sequence of VIs to turn on, setup and measure a device. One of my VIs sends a configuration file to my device. An input argument to this VI is the path of the config file. I would like to make it simple to modify this path when setting up the sequence by popping up the File Open dialog window and choose my file. Is this possible? I do not want to manually change the file during execution, just to have multiple calls of one VI, each call opening a different file according to the path given to it during the setup.
So far I have only succeeded in manually entering the absolute path each time I add this step. What makes it even more annoying is the fact that LabVIEW interprets the path with the escape codes, rendering the path unusable. Manually adding a 2nd backslash at each '\' occurence adds another step to the process. I tried both String and Path type of inputs, and the SearchandReplace() or ToUpper() (trying to bypass the escape codes) functions in TestStand don't seem to help m.
Your help is very much appreciated,
FredEudaemonic,
If you want to create a series of easy to configure step types so others can develop sequence files easily, you could use custom step types. When you create a custom step type you implement your own configuration dialog. Since you have control over what controls you expose in your configuration dialog, you can design it so the desired path is selected using a open file dialog. Refer to chapter 13 of the TestStand reference manual for more information about custom step types.
If you do not want to create a custom step type but you still want to give access to your sequence developers to pre-configured steps, you can use templates. A step template is a snapshot of a step that you can reuse later. Let's assume that instead of asking your users to edit the step to enter the desired path, you create several step templates with different pre-configured paths and based on their applications requirements they could use the appropriate template. Refer to the NI TestStand Help for more information about the Templates list on the Insertion Palette.
Hope it helps.
Antonio Lie. -
How to set the length of the reverb? (GarageBand)
Hey Guys,
im from germany and im just mixing and recording some songs in my free time with garage band 11.
When im recording my Voice and im using a reverb for it, i just can set the loudness of the reverb. but i want to set the lenght of it, i want to ask you guys how i can do that?
thanks a lotGern geschehen! Take good care of the old GarageBand '11 and make sure you back up your system as it is now, just in case!
i have another question, its almost the same content how is it about the echo? in the older version, i could easily change the type of the echo, for example in which tact it should be or how much it should be repeated and so on.. oh, I wish it wasstill as easy as before!!!
The Smart Controls will allow you to change some effects on a track, but the available effects will depend on the patch you selected. Get yourself HangTime's marvellous Effect Finder - this will help you to find out, which patches will have which effects: Download here: http://www.bulletsandbones.com/GB/File%20Pages/DownloadsGB.html
For the echo you can also use the automation curve on the track, just like for Reverb.
-- Léonie
Maybe you are looking for
-
Posting of multiple excise invoice with reference to single GR
HI all, please refer the below scenario. and provide your suggestions Here we are purchasing scrap from the traders, traders may purchase scrap from different vendors. from the plant user creating a PO line item for 10 Tons. while receiving the scrap
-
How can I return to the last selected item in a dialog box
In OS 9 using Dreamweaver (for example) when I was adding images to a document, each time I added one the dialog box would return to the last selected image and I could just arrow down to the next in the list, add it (exiting the dialog box) and then
-
Using a NAS hardrive system to store finished work
Hello, I've just purchased a NAS hardrive system to basically transfer and store my 'finished' work from Lightroom and Photoshop. In reading the manual for LIghrroom, am I correct in thinking that the NAS server cannot be a 'catalog' ?? I basically j
-
My wifi does not seem to work. It always appears the "unable to join the network ....." error message, as in the past it worked perfectly fine. I have tried all the "apple support" options. I have even restored my iphone fully. Sadly there is no appl
-
How to continue double sided scan if paper feed error.
I was scanning a double sided 100+ page document in a paper feed single side scanner. Upon completed scan of the first side, adobe acrobat prompted to turn over the stack and begin scan of the reverse side of the last page. After doing this the paper