Parameters for substr and dbms_lob.substr
The syntax for substr in SQL functions and for the function in dbms_lob package is not matching and hence confusing for programmers. It will be less confusing if parameters for both functions are of the same order.
In Sql functions the the syntax for substr is substr(string, offset, amount)
In dbms_lob package the syntax for the substr function is dbms_lob.substr(lob_loc, amount, offset)
Mohan
I think he wants to send a suggestion to Oracle via this forum.
Similar Messages
-
Performance diff between substr() and dbms_lob.substr()?
I have a ton of existing views that use dbms_lob.substr(MyClobColumn).
A developer recently noticed he got the same results with substr(MyClobColumn) - 10.1.0.3. Must have been added functionality on a patch/upgrade somewhere.
Is there a performance gain by dropping the "dbms_lob."?
KenFrom the manual.
The SUBSTR functions return a portion of string, beginning at character position, substring_length characters long. SUBSTR calculates lengths using characters as defined by the input character set. SUBSTRB uses bytes instead of characters. SUBSTRC uses Unicode complete characters. SUBSTR2 uses UCS2 code points. SUBSTR4 uses UCS4 code points.
If position is 0, then it is treated as 1.
If position is positive, then Oracle Database counts from the beginning of string to find the first character.
If position is negative, then Oracle counts backward from the end of string.
If substring_length is omitted, then Oracle returns all characters to the end of string. If substring_length is less than 1, then Oracle returns null.
string can be any of the datatypes CHAR, VARCHAR2, NCHAR, NVARCHAR2, CLOB, or NCLOB. Both position and substring_length must be of datatype NUMBER, or any datatype that can be implicitly converted to NUMBER, and must resolve to an integer. The return value is the same datatype as string. Floating-point numbers passed as arguments to SUBSTR are automatically converted to integers. -
Time out parameters for ABAP and JAVA instance
Hello All,
We are looking for Time out parameters for our ABAP and JAVA instances.
As users are complaining that they are getting time out error
while they are trying to access Cprojects from Portal.
I was able to check/collect the ABAP instance parameters from SMICM Tcode.
Can anybody tell me which parameters we need to look for JAVA instance.
Thanks in advance.
Regards,
Amber Sjstart/shutdownTimeout
(jstartup/shutdown_timeout)
Specifies the shutdown timeout, i.e. the grace period for the AS Java instance to shut down before the Java process terminates itself. Unt is in Seconds. Default is 120
j2ee/ms/connectTimeout
(jstartup/wait_for_scs)
Specifies the timeout for the first connection to the message server. The AS Java instance fails to start if this timeout expires.Unt is in Seconds.Default is 60
j2ee/ms/reconnectTimeout
(jstartup/wait_for_reconnect)
Specifies the timeout for the reconnecting to the message server.The AS Java instance shuts down when this timeout expires.Unt is inSeconds.Default is 3600 (one hour)
Thanks -
Recommended JVM Parameters for Master and ClientManager (v 6.1.0)
What are the recommened JVM parameters for a master and client manager running on the same Linux machine?
Current VM Specs:
OS: Suse Linux
Processor Count: 4
Physical Memory: 8GB
Using Java: jdk1.6.0_13
Current Master Params: JVMARGS=-Xms2048m -Xmx2048m
Current Client Manager Params: JVMARGS=-Xms2048m -Xmx2048m -XX:PermSize=128m -XX:MaxPermSize=128m
Recommendations would be appreciated.
Thanks!
Grant AlexanderWhat are the recommened JVM parameters for a master and client manager running on the same Linux machine?
Current VM Specs:
OS: Suse Linux
Processor Count: 4
Physical Memory: 8GB
Using Java: jdk1.6.0_13
Current Master Params: JVMARGS=-Xms2048m -Xmx2048m
Current Client Manager Params: JVMARGS=-Xms2048m -Xmx2048m -XX:PermSize=128m -XX:MaxPermSize=128m
Recommendations would be appreciated.
Thanks!
Grant Alexander -
Silent Install Parameters For Reader And Flash Player
Does anyone know the silent install parameters for Adobe Reader and Flash Player? I actually need the download link for the offline installers and the parameters for those installers. Thanks!
You probably also need a distribution license, then.
http://www.adobe.com/products/flashplayer/distribution3.html -
Different Parameters for Walls and Logical views
Hi,
We have implemented Managment Cockpit in BI 7.0/SEM 6.0.
We have one Cockpit, with four walls ane two Loigcal view in each wall.
At present we have selection parameters (profit center hierarchy node) at the cockpit level.
Business requirment is to have further parameters at Wall and Logical view level.
Can you please suggest how this can be done?
Regards,
URClosing as no answer for longtime
-
Using wildcard parameters for MDX and RSQL queries
Hi,
Passing parameters to MDX and RSQL queries works,but is there a way we can pass wildcard(%) parameters to MDX and RSQL
Thanks,
Hari DevarapalliHari -- Try this Instr function -
http://publib.boulder.ibm.com/infocenter/dzichelp/v2r2/index.jsp?topic=/com.ibm.dwe.cubemdx.doc/mdx_instr.html
Thanks,
Venkat -
Parameters for Yield and Scrap quantities in BAPI MB_CREATE_GOODS_MOVEMENT
Hi All,
I am using BAPI MB_CREATE_GOODS_MOVEMENT and MB_POST_GOODS_MOVEMENT to carry out the confirmation and Unplanned Goods Reciept.
Which parameters in MB_CREATE_GOODS_MOVEMENT i have to use for passing Yield and Scrap quantities.
And from which table i can fetch the Material for the Order? Can i use AFKO for the material number.
Please give some inputs on how to use these Function Modules.
Can i use only MB_CREATE_GOODS_MOVEMENT for the confirmation.
Thanks,
Anil.Hi,
I presume you are referring to production order confirmation. Refer these:
BAPI_PRODORDCONF_CREATE_ACT Enter activity confirmation
BAPI_PRODORDCONF_CREATE_HDR Enter Order Confirmations
BAPI_PRODORDCONF_CREATE_TE Enter Time Event Confirmation
BAPI_PRODORDCONF_CREATE_TT Enter Time Ticket Confirmation
Regards -
FCC parameters for header and item
Dear All,
I am working on a File to RFC scenario. The file has the PO deatils from which Salesorder has to be created in R/3. Am using the BAPI BAPI_SALESORDER_CREATEFROMDAT1 to create salesorders. I have tested the scenario with XML message - it is working file .
The problem is with FCC.
The structure of the file is as follows
PO number,podate,deliv. date,cust. material,quantity,receiving point
message type:
-->MT_messagetype
>input
>header
po number
po date
deliv date
>item
>item
cust_material
quantity
receiving point
>partner
>partner
dummy field.
input is the recordset
i have to get the first 3 fields from the file inlto header and the rest into item.
i have created a dummy field in partner because I am mapping a constant value to sold to party in partner node .
what should be the FCC parameters ?After looking at your structure which is comma separated and doesn't have any keyfields it will be difficult to content convert it into different nodes like header and item.
I was looking at using fixed field lenght's along with field separator to split the structure, as the first 4-5 fields of u r row seem to be standard structures which will have fixed length, but then your last field "receiving point" is not a of fixed length.
so as long as my understanding goes you will have to content convert the input into a flat xml structure like this:
<input>
<header>
</po number>
</po date>
</deliv date>
</cust_material>
</quantity>
</receiving point>
</header>
<input>
Recordset name - input
Recordset structure --header,*
FCC
header.fieldNames -- po_number,1,po_date,1,deliv_date,1,cust_material,1,quantity,1,receivingpoint,1
header.fieldSeparator -- ','
header.endSeparator -- 'nl'
Since in your scenario looks like you are creating one sales order per row of file, the above structure should do the job for you.
Cheer's -
Parameters for ICM and Dispatcher
I understand that icm/min_threads can open minimum threads for active connections during startup.
However, it is possible that one particular user has opened multiple sessions for accessing an application (or if application has directed him to another link that opens new session); in this case, that user will occupy more than one threads.
Is it possible for us to limit the threads created by user to say around 2-3 threads in ICM / Dispatcher ?Hi Jay,
You will never need 3000 threads for 1000 simultaneous users.
Real life users spend most of their time in front of a web browser screen "sleeping".
Threads are used only when the user clicks on something.
I have currently an HR web dynpro application running on my ECC 6 system. This application must be used this month by all the company employees (9000 +). Currently we have more than 1000 users per day.
If I look at my SAP Web dispatcher, I get the following results :
Created Treads: current 11 peak 20 maximum 120
Connections used: current 15 peak 51 maximum 8000
Queue entries: current 0 peak 6 maximum 10000
On my 6 ECC6 app servers, I have 10 ICM threads on each and the number never increased.
Regards,
Olivier -
Why substring and not subString?
why is it that "substring" doesn't have a second capital S? every OTHER not-first word gets to be capitalized.
this is just a programming practice you however could write a class with SUBSTRING in all caps. no compil;ation or runtime errors/
-
Profile Parameters for Logon and Password (Login Parameters)
I've upgraded SM3.2 to SM4.0 and now users can create password with 40 characters. I want to return to max 8 letters in password and to big letters in password. I' haven't found appropriate parameter. Does parameter login/password_downwards_compatibility provide me compatybility to old login parameters?
Hi,
Also follow the following
/people/sap.user72/blog/2005/10/19/attention-security-administrators-new-password-rules-are-on-their-way
After SAP NetWeaver 6.40, the password hash algorithm is changed from MD5 to SHA-1. This means that more secure hash values, which are not backward-compatible, and which make reverse engineering attacks difficult, can be generated. By default, new systems generate two hash values: a backward-compatible value and a new value. However, you can configure the system so that only the new hash value, which is not backward-compatible, is generated. You can set the degree of backward compatibility with the profile parameter login/password_downwards_compatibility.
The system can determine the type (new or old) of the current user password at any time. During logon, the system calculates the password hash based on the entered data and in accordance with the information from the user master record (see the hash procedure used) and compares the hash values. The system decides itself which part of the entered password is evaluated.
· If the user master record shows that the users password was encrypted with the old password hash algorithm, the system only evaluates the first eight characters and converts these to upper-case
· If the user master record shows that the users password is encrypted with the new password hash algorithm, the system evaluates all characters as they were entered (up to 40 characters, with no conversion to upper-case).
The new functions do not initially have any consequences after the upgrade; the operation of the system and password queries continue to run as usual. The passwords of the new type gradually replace the passwords of the old type.
Do reward with points.
REgards. -
Substr and instr for long column
Plesae need support ,how can use instr and substr function for column with long datatype
select substr(rec,1,(instr(rec,'?',1))) from F_DE_O_HISTORY_QUEUE_PRE_TST2
rec column is long,When execute this select message displayed as ORA-00932: inconsistent datatypes: expected NUMBER got LONGTry to create a global temporary table and work on this table using DBMS_LOB.INSTR and DBMS_LOB.SUBSTR:
SQL> desc t;
Name Null? Type
X NUMBER(38)
Y LONG
SQL> create global temporary table tmp on commit preserve rows as select x, to_lob(y) as y from t ;
Table created.
SQL> desc tmp;
Name Null? Type
X NUMBER(38)
Y CLOBEdited by: P. Forstmann on 19 janv. 2010 12:42 -
How to Set NLS parameters in SqlDeveloper for current and future connection
Hi
I've downloaded sqldeveloper version 1.5.4(build main-5940)
when I try to set NLS parameters as following it is thrwoing following error
TOOLS->PREFERENCES->DATABASE-->NLS parameters
on right side pane
I've changed
SORT----->BINARY_CI
COMP----->LINGUISTIC
then it is generating following log file
SEVERE 43 0 oracle.dbtools.raptor.nls.OracleNLSProvider Error loading nls:ORA-00600: internal error code, arguments: [qctosop:like transform], [], [], [], [], [], [], []
SEVERE 44 114 oracle.dbtools.raptor.nls.OracleNLSProvider Error loading nls:Closed Connection
SEVERE 45 7 oracle.dbtools.db.DBUtil Closed Connection
SEVERE 46 9 oracle.dbtools.db.DBUtil
SEVERE 47 1 oracle.dbtools.raptor.nls.OracleNLSProvider Error loading nls:Closed Connection
SEVERE 48 0 oracle.dbtools.raptor.nls.OracleNLSProvider Error loading nls:Closed Connection
SEVERE 49 5 oracle.dbtools.db.DBUtil Closed Connection
SEVERE 50 0 oracle.dbtools.db.DBUtil
SEVERE 51 1 oracle.dbtools.raptor.nls.OracleNLSProvider Error loading nls:Closed Connection
SEVERE 52 0 oracle.dbtools.raptor.nls.OracleNLSProvider Error loading nls:Closed Connection
SEVERE 53 5 oracle.dbtools.db.DBUtil Closed Connection
SEVERE 54 0 oracle.dbtools.db.DBUtil
SEVERE 55 0 oracle.dbtools.raptor.nls.OracleNLSProvider Error loading nls:Closed Connection
SEVERE 56 1 oracle.dbtools.raptor.nls.OracleNLSProvider Error loading nls:Closed Connection
SEVERE 57 4 oracle.dbtools.db.DBUtil Closed Connection
SEVERE 58 0 oracle.dbtools.db.DBUtil
SEVERE 59 1 oracle.dbtools.raptor.nls.OracleNLSProvider Error loading nls:Closed Connection
SEVERE 60 0 oracle.dbtools.raptor.nls.OracleNLSProvider Error loading nls:Closed Connection
SEVERE 61 4 oracle.dbtools.db.DBUtil Closed Connection
SEVERE 62 1 oracle.dbtools.db.DBUtil
SEVERE 63 0 oracle.dbtools.raptor.nls.OracleNLSProvider Error loading nls:Closed Connection
SEVERE 64 0 oracle.dbtools.raptor.nls.OracleNLSProvider Error loading nls:Closed Connection
SEVERE 65 5 oracle.dbtools.db.DBUtil Closed Connection
SEVERE 66 0 oracle.dbtools.db.DBUtil
SEVERE 67 0 oracle.dbtools.raptor.nls.OracleNLSProvider Error loading nls:Closed Connection
SEVERE 68 0 oracle.dbtools.raptor.nls.OracleNLSProvider Error loading nls:Closed Connection
SEVERE 69 6 oracle.dbtools.db.DBUtil Closed Connection
SEVERE 70 0 oracle.dbtools.db.DBUtil
SEVERE 71 0 oracle.dbtools.raptor.nls.OracleNLSProvider Error loading nls:Closed Connection
SEVERE 72 0 oracle.dbtools.raptor.nls.OracleNLSProvider Error loading nls:Closed Connection
please help me to set NLS parameters for current and future connections.
thanks,
harryHi -K-
actually I want to make SqlDeveloper to make case insensitive search.
when I google, I've found to make oracle as case insensitive I need to set NLS_SORT to Binary_CI and NLS_COMP to LINGUISTIC
Default SQLDEVELOPER NLSParmeters values are as NLS_SORT---->Binary and NLS_COMP--->Binary
Now I want to make these as NLS_SORT---->Binary_CI and NLS_COMP--->LINGUISTICS.
thanks,
harry -
List of all service parameters for Integrated ITS
Hi,
I am looking for the complete list of service parameters for Integrated ITS, with explanation about each of them. Ex: ~command, ~sap-user etc. I have tried searching in help.sap.com and in this forum and SDN blogs. I could find only some of them. I am not looking for anything particular right now. If I have the complete list it would help me to refer the list if I need any one in particular.
I would really appreciate if anybody can help me in this search.
Thanks & Regards,
Sudhakar.Hello Sudhakar,
The best location for ITS Parameter documentation is the online SAP Library at http://help.sap.com/saphelp_nw2004s/helpdata/en/54/4d9993c6592941a407313a6763575c/frameset.htm
Here under "Configuration" you will find a list of parameters for developers and administrators.
Edgar
Maybe you are looking for
-
I accidentally deleted the "Information/Help/Gettting Started" section from my Pages app on ipad mini. How do I get this back. (I cannot believe it let me delete this important information).
-
Hyperion Financial Reporting - Studio V11.1.2
I have a report with a row and column template in it I am wanting the format for the row template for five lines to have one decimal point but I do not need the other data in the other row accounts to include decimals for the row or columns. I tried
-
Weird.. New IMac when downloading XLS files changes the file type to XLT
On my wife's IMac, when she downloads an excel file (attachment in an email) in the download folder the file name has been changed to XXX.xls.xlt. My desktop Mac does not do this. What's happening and what is the fix? Thanks for any direction. Joe
-
Hi all Please advice the procedure to upload the sapscript form from my desktop. The file is in text format. thanks Ravindra Suvarna
-
Why won't my iTunes download start?
I've been having a lot of trouble with my iTunes. Whenever I tried to update to the last version it said something about an invalid signature. Yesterday, I got further in the download process, but when I try to open iTunes it says "This copy of iTune