String : lacks of ltrim and rtrim
Hi there
- why the String class is not provided with functions like ltrim() and rtrim(), just like basic ?
- how to implement an efficient ltrim() or rtrim() function ?
java.lang.String has a trim method that removes leading and trailing whitespace at the same time. I'll bet the guys who wrote it were smart enough to optimize it so it was relatively efficient. Use that.
Besides, if your code is running so poorly that you're worried about the efficiency of the trim operation, I'd be willing to bet that you've got bigger problems somewhere else. Don't optimize prematurely, and don't guess. Use a profiler to find out where the real trouble spots are.
I'd say that if the lack of an ltrim/rtrim functionality in the String class is such a big deal, then write one for yourself and be done with it. I wouldn't urge Sun to be wasting time on it. Java's been around for years now and it hasn't been an impediment to its adoption.
Or just go back to writing Basic.
This thread has that Swiftian "big endian/little endian" feel to it now.
Similar Messages
-
Urgent:LTRIM and RTRIM Function
How do I use the LTRIM and RTRIM function?
For Example:
Name: Isis Cheung Hui Mei
i have the name in a text field and I need to extract out 3 initial.how do i use the RTRIM and LTRIM function?So sorry have to trouble u all again.
what i mean is the NAME is already in the database and i need to display the name and the initial in the form based on the employee id.from there, i must take out 3 initial of name and display and making sure there is no duplicate in the database as it will be treat as the UserID.
the name is not input by the user but is retireve from the database
thank you -
LTRIM and RTRIM syntax to identify string between commas
My [Locations] field is a character field that contains <addresses> separated by commas
ie: (1 University Avenue, 3 Maple Street, 575 Commonwealth Avenue,,,,,,,)
I want to select the <address> between the 2nd and the 3rd comma ......575 Commonwealth Avenue
Can someone please help me with the syntax for writing this select statement.
I've tried some due diligence, but am having problems.
In another scenario, I'm also going to need to update the address by specifying its location in the textstring.
Thanks in advance for your help.
-GaryLet me explain ->
Since, you didn't provide any table structure - so i need to prepare one virtual table.
-----My Dummy Table With Data Part ------
satyaki>with pp
2 as
3 (
4 select '1 University Avenue, 3 Maple Street, 575 Commonwealth Avenue,,,,,,,' cola from dual
5 )
------End Of My Dummy Table With Data Part--------
6 select trim(substr(cola,instr(cola,',',1,2)+1,instr(cola,',',1,3) - instr(cola,',',1,2)-1)) res
7 from pp;In your case,
You can only use the select statement. cola - will be your data column name.
Now, talking about INSTR function ->
instr(cola,',',1,2)As you can see the digit in bold part, it will find the ',' with 2nd occurrence inside your string.
Similarly, instr(cola,',',1,3) - this will find the third occurrence of ',' inside you string.
Now,
You have to see the substr function.
In substr, you have to pass the column name on which you want to extract the required data, then you have to pass the starting position of the character from where you want extract the data, then you have to pass the number of character you want to cut from the start position.
So, i've used ->
substr(cola,instr(cola,',',1,2)+1,instr(cola,',',1,3) - instr(cola,',',1,2)-1)cola -> Source String
instr(cola,',',1,2) -> Start position of the String
instr(cola,',',1,3) - instr(cola,',',1,2)-1 -> Total number character you want extract from your string.
Regards.
Satyaki De. -
NAME
THE ADAMS
ETH BILLA
EXP RAJA
I want to remove the THE From the name but when i use ltrim it removing
as below.
select ltrim(name,'the') from xy;
ADAMS
BILLA
XP RAJA
how can we remove the particular word "THE" from the string in the first occurence(left side).Pls suggest any methodthe following will only work if the first occurrence is at the begining of the string
CASE
WHEN name LIKE 'THE %'
THEN SUBSTR (name, 5)
ELSE name
ENDthe following works for the first occurrence in the string, note the comment if you want to keep the extra space after the first THE
col txt format a30
with t as
(select column_value txt
from table(sqlstringsequence('THE ADAMS', 'ETH BILLA', 'EXP RAJA', 'ETH BILLE THE ADAMS THE SMITHS')))
select case
when instr(txt, 'THE') > 0
then trim(substr(txt, 1, instr(txt, 'THE')-1)||substr(txt, instr(txt, 'THE')+4))--3 to keep space after THE
else txt
end txt,
case
when txt like 'THE %'
then substr(txt, 5)
else txt
end txt2
from t
/Edited by: mwooldridge on Jul 9, 2009 11:20 AM
Edited by: mwooldridge on Jul 9, 2009 11:23 AM -
Using LTRIM and RTRIM in field
Hi,
The table has no of row. want to remove the space before and after in the name field and update the name field without space in the same table.
EXAMPLE;
name
m
c
dBetter would be fixing it in the source itself..
Else try this.
update your_tbl set name=replace(name,' ');
commit;
Cheers,
Manik. -
Help with a query using ISNULL and RTRIM in the same select statement
What I'm trying to accomplish is to blend the following two statements together:
ISNULL (EMail_Address, '') As Matrix_Member_Email
AND
RTRIM (EMail_Address) as Matrix_Member_EMail
So that if the email address is NULL, it gets changed to blank and I still need to RTRIM the other entries and use the column header of Matrix_Member_Email.
I've tried:
ISNULL ((EMail_Address, '') (RTRIM (EMail_Address)) as Matrix_Member_EMail
Any help would be greatly appreciated.
Thank you,I'm sorry. Here is the query:
--Declare @EMail_Address nvarchar(100) = null
Select SVAssociationID.R_ShortValue as MATRIX_AssociationID, Matrix_Modified_DT as Matrix_LastModified
,RTRIM (MLS_ID) As Matrix_MLS_ID
, ISNULL(EMail_Address, '') AS MATRIX_member_Email
,RTRIM (EMail_Address) as Matrix_Member_EMail
--,RTRIM( LTRIM( ISNULL (@EMail_Address, '') ) ) as Matrix_Member_EMail
,Last_Name AS MATRIX_LastName, Nickname AS MATRIX_NickName
FROM dbo.Agent_Roster_VIEW a
LEFT JOIN dbo.select_values_VIEW SV ON a.Status_SEARCH = SV.ID
LEFT JOIN dbo.select_values_VIEW BillType ON a.Bill_Type_Code_SEARCH = BillType.ID
LEFT JOIN dbo.select_values_VIEW SVAssociationID ON A.Primary_Association_SEARCH = SVAssociationID.ID
WHERE Status_SEARCH IN (66,68)
Order by MLS_ID
Results:
MATRIX_AssociationID
Matrix_LastModified
Matrix_MLS_ID
MATRIX_member_Email
Matrix_Member_EMail
MATRIX_LastName
MATRIX_NickName
STC
09/02/14
CCWILLI
[email protected]
[email protected]
Williams
Christine
STC
09/12/14
CCWORSL
[email protected]
[email protected]
Worsley
Charlie
STC
09/02/14
CCYROBIN
NULL
Robinson
ECBR
09/02/14
CDABLACK
[email protected]
[email protected]
Black
Dale
STC
09/02/14
CDABRADY
[email protected]
[email protected]
Brady
David
Thank you, -
[Oracle to PostgreSQL]connction string lacks some options
Hi guys,
I want to connect from oracle 11g to PostgreSQL 9.3 . l get this error message:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[unixODBC]connction string lacks some options {08001,NativeErr = 202}
ORA-02063: preceding 2 lines from k
but I can connected to PostgreSQL using isql.
Oracle CharacterSet :AL32UTF8
PostgreSQL server_encoding:UTF8
PostgreSQL client_encoding:UTF8
Here are my configuration files:
odbc.ini:
[PostgreSQL]
Driver = /usr/local/pgsqlodbc/lib/psqlodbcw.so
Description = Test2PG
Servername = 192.168.0.1
PORT = 5432
Protocol = 9.3
UserName = postgres
Password = postgres
Database = testdb
TRACE =Yes
TaceFile = /tmp/sql.log
tnsnames.ora:
PostgreSQL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.10)(PORT = 1521))
(CONNECT_DATA =(SID = PostgreSQL)
(HS =OK)
listener.ora:
SID_LIST_LISTENER=
(SID_LIST=
(SID_DESC=
(SID_NAME=PostgreSQL)
(ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1)
(EVNS=LD_LIBRARY_PATH=/usr/local/unixodbc/lib:/usr/local/pgsqlodbc/lib:/u01/app/oracle/product/11.2.0/dbhome_1/bin)
(PROGRAM=dg4odbc)
initiPostgreSQL.ora:
HS_FDS_CONNECT_INFO = PostgreSQL
HS_FDS_TRACE_LEVEL = 255
HS_FDS_SHAREABLE_NAME = /usr/local/unixodbc/lib/libodbc.so
HS_LANGUAGE=AMERICAN_AMERICA.WE8ISO8859P1
set ODBCINI=/etc/odbc.ini
Trace:
Oracle Corporation --- THURSDAY MAY 15 2014 15:59:19.875
Heterogeneous Agent Release
11.2.0.3.0
Oracle Corporation --- THURSDAY MAY 15 2014 15:59:19.874
Version 11.2.0.3.0
Entered hgogprd
HOSGIP for "HS_FDS_TRACE_LEVEL" returned "255"
Entered hgosdip
setting HS_OPEN_CURSORS to default of 50
setting HS_FDS_RECOVERY_ACCOUNT to default of "RECOVER"
setting HS_FDS_RECOVERY_PWD to default value
setting HS_FDS_TRANSACTION_LOG to default of HS_TRANSACTION_LOG
setting HS_IDLE_TIMEOUT to default of 0
setting HS_FDS_TRANSACTION_ISOLATION to default of "READ_COMMITTED"
setting HS_NLS_NCHAR to default of "AL32UTF8"
setting HS_FDS_TIMESTAMP_MAPPING to default of "DATE"
setting HS_FDS_DATE_MAPPING to default of "DATE"
setting HS_RPC_FETCH_REBLOCKING to default of "ON"
setting HS_FDS_FETCH_ROWS to default of "100"
setting HS_FDS_RESULTSET_SUPPORT to default of "FALSE"
setting HS_FDS_RSET_RETURN_ROWCOUNT to default of "FALSE"
setting HS_FDS_PROC_IS_FUNC to default of "FALSE"
setting HS_FDS_MAP_NCHAR to default of "TRUE"
setting HS_NLS_DATE_FORMAT to default of "YYYY-MM-DD HH24:MI:SS"
setting HS_FDS_REPORT_REAL_AS_DOUBLE to default of "FALSE"
setting HS_LONG_PIECE_TRANSFER_SIZE to default of "65536"
setting HS_SQL_HANDLE_STMT_REUSE to default of "FALSE"
setting HS_FDS_QUERY_DRIVER to default of "TRUE"
setting HS_FDS_SUPPORT_STATISTICS to default of "FALSE"
setting HS_FDS_QUOTE_IDENTIFIER to default of "TRUE"
setting HS_KEEP_REMOTE_COLUMN_SIZE to default of "OFF"
setting HS_FDS_GRAPHIC_TO_MBCS to default of "FALSE"
setting HS_FDS_MBCS_TO_GRAPHIC to default of "FALSE"
Default value of 32 assumed for HS_FDS_SQLLEN_INTERPRETATION
setting HS_CALL_NAME_ISP to "gtw$:SQLTables;gtw$:SQLColumns;gtw$:SQLPrimaryKeys;gtw$:SQLForeignKeys;gtw$:SQLProcedures;gtw$:SQLStatistics;gtw$:SQLGetInfo"
setting HS_FDS_DELAYED_OPEN to default of "TRUE"
setting HS_FDS_WORKAROUNDS to default of "0"
Exiting hgosdip, rc=0
ORACLE_SID is "PostgreSQL"
Product-Info:
Port Rls/Upd:3/0 PrdStat:0
Agent:Oracle Database Gateway for ODBC
Facility:hsa
Class:ODBC, ClassVsn:11.2.0.3.0_0011, Instance:PostgreSQL
Exiting hgogprd, rc=0
hostmstr: 0: HOA After hoagprd
hostmstr: 0: HOA Before hoainit
Entered hgoinit
HOCXU_COMP_CSET=1
HOCXU_DRV_CSET=31
HOCXU_DRV_NCHAR=873
HOCXU_DB_CSET=873
HS_LANGUAGE is AMERICAN_AMERICA.WE8ISO8859P1
LANG=en_US.UTF-8
HOCXU_SEM_VER=112000
Entered hgolofn at 2014/05/15-15:59:19
HOSGIP for "HS_FDS_SHAREABLE_NAME" returned "/usr/local/unixodbc/lib/libodbc.so"
Entered hgolofns at 2014/05/15-15:59:19
libname=/usr/local/unixodbc/lib/libodbc.so, funcname=SQLAllocHandle
symbol_peflctx=0x522520
hoaerr:0
Exiting hgolofns at 2014/05/15-15:59:19
Entered hgolofns at 2014/05/15-15:59:19
libname=/usr/local/unixodbc/lib/libodbc.so, funcname=SQLBindCol
symbol_peflctx=0x5226c0
hoaerr:0
Exiting hgolofns at 2014/05/15-15:59:19
Entered hgolofns at 2014/05/15-15:59:19
libname=/usr/local/unixodbc/lib/libodbc.so, funcname=SQLBindParameter
symbol_peflctx=0x523110
hoaerr:0
Exiting hgolofns at 2014/05/15-15:59:19
Entered hgolofns at 2014/05/15-15:59:19
libname=/usr/local/unixodbc/lib/libodbc.so, funcname=SQLCancel
symbol_peflctx=0x524930
hoaerr:0
Exiting hgolofns at 2014/05/15-15:59:19
Entered hgolofns at 2014/05/15-15:59:19
libname=/usr/local/unixodbc/lib/libodbc.so, funcname=SQLDescribeParam
symbol_peflctx=0x52e120
hoaerr:0
Exiting hgolofns at 2014/05/15-15:59:19
Entered hgolofns at 2014/05/15-15:59:19
libname=/usr/local/unixodbc/lib/libodbc.so, funcname=SQLDisconnect
symbol_peflctx=0x52e670
hoaerr:0
Exiting hgolofns at 2014/05/15-15:59:19
Entered hgolofns at 2014/05/15-15:59:19
libname=/usr/local/unixodbc/lib/libodbc.so, funcname=SQLEndTran
symbol_peflctx=0x531b50
hoaerr:0
Exiting hgolofns at 2014/05/15-15:59:19
Entered hgolofns at 2014/05/15-15:59:19
libname=/usr/local/unixodbc/lib/libodbc.so, funcname=SQLExecute
symbol_peflctx=0x5336b0
hoaerr:0
Exiting hgolofns at 2014/05/15-15:59:19
Entered hgolofns at 2014/05/15-15:59:19
libname=/usr/local/unixodbc/lib/libodbc.so, funcname=SQLFetch
symbol_peflctx=0x534070
hoaerr:0
Exiting hgolofns at 2014/05/15-15:59:19
Entered hgolofns at 2014/05/15-15:59:19
libname=/usr/local/unixodbc/lib/libodbc.so, funcname=SQLFreeHandle
symbol_peflctx=0x5361e0
hoaerr:0
Exiting hgolofns at 2014/05/15-15:59:19
Entered hgolofns at 2014/05/15-15:59:19
libname=/usr/local/unixodbc/lib/libodbc.so, funcname=SQLFreeStmt
symbol_peflctx=0x536210
hoaerr:0
Exiting hgolofns at 2014/05/15-15:59:19
Entered hgolofns at 2014/05/15-15:59:19
libname=/usr/local/unixodbc/lib/libodbc.so, funcname=SQLGetData
symbol_peflctx=0x537fd0
hoaerr:0
Exiting hgolofns at 2014/05/15-15:59:19
Entered hgolofns at 2014/05/15-15:59:19
libname=/usr/local/unixodbc/lib/libodbc.so, funcname=SQLGetEnvAttr
symbol_peflctx=0x53bc40
hoaerr:0
Exiting hgolofns at 2014/05/15-15:59:19
Entered hgolofns at 2014/05/15-15:59:19
libname=/usr/local/unixodbc/lib/libodbc.so, funcname=SQLGetFunctions
symbol_peflctx=0x53c040
hoaerr:0
Exiting hgolofns at 2014/05/15-15:59:19
Entered hgolofns at 2014/05/15-15:59:19
libname=/usr/local/unixodbc/lib/libodbc.so, funcname=SQLMoreResults
symbol_peflctx=0x53e0d0
hoaerr:0
Exiting hgolofns at 2014/05/15-15:59:19
Entered hgolofns at 2014/05/15-15:59:19
libname=/usr/local/unixodbc/lib/libodbc.so, funcname=SQLNumResultCols
symbol_peflctx=0x53f030
hoaerr:0
Exiting hgolofns at 2014/05/15-15:59:19
Entered hgolofns at 2014/05/15-15:59:19
libname=/usr/local/unixodbc/lib/libodbc.so, funcname=SQLParamData
symbol_peflctx=0x53f3f0
hoaerr:0
Exiting hgolofns at 2014/05/15-15:59:19
Entered hgolofns at 2014/05/15-15:59:19
libname=/usr/local/unixodbc/lib/libodbc.so, funcname=SQLPutData
symbol_peflctx=0x541a40
hoaerr:0
Exiting hgolofns at 2014/05/15-15:59:19
Entered hgolofns at 2014/05/15-15:59:19
libname=/usr/local/unixodbc/lib/libodbc.so, funcname=SQLRowCount
symbol_peflctx=0x541f30
hoaerr:0
Exiting hgolofns at 2014/05/15-15:59:19
Entered hgolofns at 2014/05/15-15:59:19
libname=/usr/local/unixodbc/lib/libodbc.so, funcname=SQLSetEnvAttr
symbol_peflctx=0x5447f0
hoaerr:0
Exiting hgolofns at 2014/05/15-15:59:19
Entered hgolofns at 2014/05/15-15:59:19
libname=/usr/local/unixodbc/lib/libodbc.so, funcname=SQLSetDescRec
symbol_peflctx=0x544570
hoaerr:0
Exiting hgolofns at 2014/05/15-15:59:19
Entered hgolofns at 2014/05/15-15:59:19
libname=/usr/local/unixodbc/lib/libodbc.so, funcname=SQLColAttribute
symbol_peflctx=0x5254a0
hoaerr:0
Exiting hgolofns at 2014/05/15-15:59:19
Entered hgolofns at 2014/05/15-15:59:19
libname=/usr/local/unixodbc/lib/libodbc.so, funcname=SQLColumns
symbol_peflctx=0x527280
hoaerr:0
Exiting hgolofns at 2014/05/15-15:59:19
Entered hgolofns at 2014/05/15-15:59:19
libname=/usr/local/unixodbc/lib/libodbc.so, funcname=SQLConnect
symbol_peflctx=0x52b600
hoaerr:0
Exiting hgolofns at 2014/05/15-15:59:19
Entered hgolofns at 2014/05/15-15:59:19
libname=/usr/local/unixodbc/lib/libodbc.so, funcname=SQLDescribeCol
symbol_peflctx=0x52d8c0
hoaerr:0
Exiting hgolofns at 2014/05/15-15:59:19
Entered hgolofns at 2014/05/15-15:59:19
libname=/usr/local/unixodbc/lib/libodbc.so, funcname=SQLDriverConnect
symbol_peflctx=0x52f420
hoaerr:0
Exiting hgolofns at 2014/05/15-15:59:19
Entered hgolofns at 2014/05/15-15:59:19
libname=/usr/local/unixodbc/lib/libodbc.so, funcname=SQLExecDirect
symbol_peflctx=0x532ff0
hoaerr:0
Exiting hgolofns at 2014/05/15-15:59:19
Entered hgolofns at 2014/05/15-15:59:19
libname=/usr/local/unixodbc/lib/libodbc.so, funcname=SQLForeignKeys
symbol_peflctx=0x534bc0
hoaerr:0
Exiting hgolofns at 2014/05/15-15:59:19
Entered hgolofns at 2014/05/15-15:59:19
libname=/usr/local/unixodbc/lib/libodbc.so, funcname=SQLGetConnectAttr
symbol_peflctx=0x536670
hoaerr:0
Exiting hgolofns at 2014/05/15-15:59:19
Entered hgolofns at 2014/05/15-15:59:19
libname=/usr/local/unixodbc/lib/libodbc.so, funcname=SQLGetDescField
symbol_peflctx=0x538800
hoaerr:0
Exiting hgolofns at 2014/05/15-15:59:19
Entered hgolofns at 2014/05/15-15:59:19
libname=/usr/local/unixodbc/lib/libodbc.so, funcname=SQLGetDescRec
symbol_peflctx=0x538ea0
hoaerr:0
Exiting hgolofns at 2014/05/15-15:59:19
Entered hgolofns at 2014/05/15-15:59:19
libname=/usr/local/unixodbc/lib/libodbc.so, funcname=SQLGetDiagField
symbol_peflctx=0x53a350
hoaerr:0
Exiting hgolofns at 2014/05/15-15:59:19
Entered hgolofns at 2014/05/15-15:59:19
libname=/usr/local/unixodbc/lib/libodbc.so, funcname=SQLGetDiagRec
symbol_peflctx=0x53b220
hoaerr:0
Exiting hgolofns at 2014/05/15-15:59:19
Entered hgolofns at 2014/05/15-15:59:19
libname=/usr/local/unixodbc/lib/libodbc.so, funcname=SQLGetInfo
symbol_peflctx=0x53cbd0
hoaerr:0
Exiting hgolofns at 2014/05/15-15:59:19
Entered hgolofns at 2014/05/15-15:59:19
libname=/usr/local/unixodbc/lib/libodbc.so, funcname=SQLGetStmtAttr
symbol_peflctx=0x53cf60
hoaerr:0
Exiting hgolofns at 2014/05/15-15:59:19
Entered hgolofns at 2014/05/15-15:59:19
libname=/usr/local/unixodbc/lib/libodbc.so, funcname=SQLGetTypeInfo
symbol_peflctx=0x53dc40
hoaerr:0
Exiting hgolofns at 2014/05/15-15:59:19
Entered hgolofns at 2014/05/15-15:59:19
libname=/usr/local/unixodbc/lib/libodbc.so, funcname=SQLPrepare
symbol_peflctx=0x53fce0
hoaerr:0
Exiting hgolofns at 2014/05/15-15:59:19
Entered hgolofns at 2014/05/15-15:59:19
libname=/usr/local/unixodbc/lib/libodbc.so, funcname=SQLPrimaryKeys
symbol_peflctx=0x540340
hoaerr:0
Exiting hgolofns at 2014/05/15-15:59:19
Entered hgolofns at 2014/05/15-15:59:19
libname=/usr/local/unixodbc/lib/libodbc.so, funcname=SQLProcedureColumns
symbol_peflctx=0x540ae0
hoaerr:0
Exiting hgolofns at 2014/05/15-15:59:19
Entered hgolofns at 2014/05/15-15:59:19
libname=/usr/local/unixodbc/lib/libodbc.so, funcname=SQLProcedures
symbol_peflctx=0x541300
hoaerr:0
Exiting hgolofns at 2014/05/15-15:59:19
Entered hgolofns at 2014/05/15-15:59:19
libname=/usr/local/unixodbc/lib/libodbc.so, funcname=SQLSetConnectAttr
symbol_peflctx=0x542270
hoaerr:0
Exiting hgolofns at 2014/05/15-15:59:19
Entered hgolofns at 2014/05/15-15:59:19
libname=/usr/local/unixodbc/lib/libodbc.so, funcname=SQLSetStmtAttr
symbol_peflctx=0x546050
hoaerr:0
Exiting hgolofns at 2014/05/15-15:59:19
Entered hgolofns at 2014/05/15-15:59:19
libname=/usr/local/unixodbc/lib/libodbc.so, funcname=SQLSetDescField
symbol_peflctx=0x5440d0
hoaerr:0
Exiting hgolofns at 2014/05/15-15:59:19
Entered hgolofns at 2014/05/15-15:59:19
libname=/usr/local/unixodbc/lib/libodbc.so, funcname=SQLStatistics
symbol_peflctx=0x548140
hoaerr:0
Exiting hgolofns at 2014/05/15-15:59:19
Entered hgolofns at 2014/05/15-15:59:19
libname=/usr/local/unixodbc/lib/libodbc.so, funcname=SQLTables
symbol_peflctx=0x5491b0
hoaerr:0
Exiting hgolofns at 2014/05/15-15:59:19
Exiting hgolofn, rc=0 at 2014/05/15-15:59:19
HOSGIP for "HS_OPEN_CURSORS" returned "50"
HOSGIP for "HS_FDS_FETCH_ROWS" returned "100"
HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536"
HOSGIP for "HS_NLS_NUMERIC_CHARACTER" returned ".,"
HOSGIP for "HS_KEEP_REMOTE_COLUMN_SIZE" returned "OFF"
HOSGIP for "HS_FDS_DELAYED_OPEN" returned "TRUE"
HOSGIP for "HS_FDS_WORKAROUNDS" returned "0"
HOSGIP for "HS_FDS_MBCS_TO_GRAPHIC" returned "FALSE"
HOSGIP for "HS_FDS_GRAPHIC_TO_MBCS" returned "FALSE"
Invalid value of 32 given for HS_FDS_SQLLEN_INTERPRETATION
treat_SQLLEN_as_compiled = 1
Exiting hgoinit, rc=0 at 2014/05/15-15:59:19
hostmstr: 0: HOA After hoainit
hostmstr: 0: HOA Before hoalgon
Entered hgolgon at 2014/05/15-15:59:19
reco:0, name:postgres, tflag:0
Entered hgosuec at 2014/05/15-15:59:19
Exiting hgosuec, rc=0 at 2014/05/15-15:59:19
HOSGIP for "HS_FDS_RECOVERY_ACCOUNT" returned "RECOVER"
HOSGIP for "HS_FDS_TRANSACTION_LOG" returned "HS_TRANSACTION_LOG"
HOSGIP for "HS_FDS_TIMESTAMP_MAPPING" returned "DATE"
HOSGIP for "HS_FDS_DATE_MAPPING" returned "DATE"
HOSGIP for "HS_FDS_MAP_NCHAR" returned "TRUE"
HOSGIP for "HS_FDS_RESULTSET_SUPPORT" returned "FALSE"
HOSGIP for "HS_FDS_RSET_RETURN_ROWCOUNT" returned "FALSE"
HOSGIP for "HS_FDS_PROC_IS_FUNC" returned "FALSE"
HOSGIP for "HS_FDS_REPORT_REAL_AS_DOUBLE" returned "FALSE"
using postgres as default value for "HS_FDS_DEFAULT_OWNER"
HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
Entered hgocont at 2014/05/15-15:59:19
HS_FDS_CONNECT_INFO = "PostgreSQL"
RC=-1 from HOSGIP for "HS_FDS_CONNECT_STRING"
Entered hgogenconstr at 2014/05/15-15:59:19
dsn:PostgreSQL, name:postgres
optn:
Entered hgocip at 2014/05/15-15:59:19
dsn:PostgreSQL
Exiting hgocip, rc=0 at 2014/05/15-15:59:19
##>Connect Parameters (len=40)<##
## DSN=PostgreSQL;
#! UID=postgres;
#! PWD=*
Exiting hgogenconstr, rc=0 at 2014/05/15-15:59:19
Entered hgopoer at 2014/05/15-15:59:19
hgopoer, line 231: got native error 202 and sqlstate 08001; message follows...
[unixODBC]connction string lacks some options {08001,NativeErr = 202}
Exiting hgopoer, rc=0 at 2014/05/15-15:59:19
hgocont, line 2754: calling SqlDriverConnect got sqlstate 08001
Exiting hgocont, rc=28500 at 2014/05/15-15:59:19 with error ptr FILE:hgocont.c LINE:2774 FUNCTION:hgocont() ID:Something other than invalid authorization
Exiting hgolgon, rc=28500 at 2014/05/15-15:59:19 with error ptr FILE:hgolgon.c LINE:801 FUNCTION:hgolgon() ID:Calling hgocont
hostmstr: 0: HOA After hoalgon
RPC Calling nscontrol(0), rc=0
hostmstr: 0: RPC Before Exit Agent
hostmstr: 0: HOA Before hoaexit
Entered hgoexit at 2014/05/15-15:59:19
Exiting hgoexit, rc=0
hostmstr: 0: HOA After hoaexit
hostmstr: 0: RPC After Exit Agent
ODBC Trace:
[ODBC][6580][1400140759.882270][SQLSetConnectAttr.c][396]
Entry:
Connection = 0x90bd960
Attribute = SQL_ATTR_AUTOCOMMIT
Value = (nil)
StrLen = -5
[ODBC][6580][1400140759.882326][SQLSetConnectAttr.c][671]
Exit:[SQL_SUCCESS]
[ODBC][6580][1400140759.882642][SQLDriverConnect.c][728]
Entry:
Connection = 0x90bd960
Window Hdl = (nil)
Str In = [DSN=PostgreSQL;UID=postgres;PWD=********][length = 40]
Str Out = 0x90bd200
Str Out Max = 1024
Str Out Ptr = 0xbfd1e25c
Completion = 0
UNICODE Using encoding ASCII 'ANSI_X3.4-1968' and UNICODE 'UCS-2LE'
DIAG [08001] connction string lacks some options
[ODBC][6580][1400140759.887954][SQLDriverConnect.c][1454]
Exit:[SQL_ERROR]
[ODBC][6580][1400140759.888032][SQLGetDiagRec.c][680]
Entry:
Connection = 0x90bd960
Rec Number = 1
SQLState = 0xbfd1df58
Native = 0xbfd1df7c
Message Text = 0xbfd1dd20
Buffer Length = 510
Text Len Ptr = 0xbfd1df94
[ODBC][6580][1400140759.888065][SQLGetDiagRec.c][717]
Exit:[SQL_SUCCESS]
SQLState = 08001
Native = 0xbfd1df7c -> 202
Message Text = [[unixODBC]connction string lacks some options]
[ODBC][6580][1400140759.888108][SQLGetDiagRec.c][680]
Entry:
Connection = 0x90bd960
Rec Number = 2
SQLState = 0xbfd1df58
Native = 0xbfd1df7c
Message Text = 0xbfd1dd20
Buffer Length = 510
Text Len Ptr = 0xbfd1df94
[ODBC][6580][1400140759.888136][SQLGetDiagRec.c][717]
Exit:[SQL_NO_DATA]
[ODBC][6580][1400140759.888222][SQLDisconnect.c][208]
Entry:
Connection = 0x90bd960
[ODBC][6580][1400140759.888250][SQLDisconnect.c][237]Error: 08003
[ODBC][6580][1400140759.888319][SQLFreeHandle.c][284]
Entry:
Handle Type = 2
Input Handle = 0x90bd960
[ODBC][6580][1400140759.888352][SQLFreeHandle.c][333]
Exit:[SQL_SUCCESS]
[ODBC][6580][1400140759.889499][SQLFreeHandle.c][219]
Entry:
Handle Type = 1
Input Handle = 0x90abf70
Thank you.When looking at the strace file the Driver Manager tries to load the odbc.ini you specified in your gateway init file: set ODBCINI=/etc/odbc.ini
but that fails as the oracle user can not access it - instead it tries to load a different file:
17811 open("/etc/odbc.ini", O_WRONLY|O_CREAT|O_APPEND, 0666) = -1 EACCES (Permission denied)
17811 open("/usr/local/unixodbc/etc/odbc.ini", O_RDONLY) = 8
Could you please make sure that the oracle user can access that file?
You also mentioned at the beginning that you could connect to the Postgres database using isql - did you do the test as "oracle" user and what ENV parameters have you set before opening isql?
Just a minor issue which has no impact as your LD_LIBRARY_PATH in the environment is set correctly - the listener.ora file contains the line
(EVNS=LD_LIBRARY_PATH=/usr/local/unixodbc/lib:/usr/local/pgsqlodbc/lib:/u01/app/oracle/product/11.2.0/dbhome_1/bin)
but EVNS should be ENVS or even better ENV. So please correct:
(EVNS=LD_LIBRARY_PATH=/usr/local/unixodbc/lib:/usr/local/pgsqlodbc/lib:/u01/app/oracle/product/11.2.0/dbhome_1/bin)
to
(ENV="LD_LIBRARY_PATH=/usr/local/unixodbc/lib:/usr/local/pgsqlodbc/lib:/u01/app/oracle/product/11.2.0/dbhome_1/bin")
Then stop and start the listener.
- Klaus -
Not able to convert string attribute to number and date please help me out
not able to convert string attribute to number and date attribute. While using string to date conversion it shows result as failure.As I am reading from a text file. please help me out
Hi,
You need to provide an example value that's failing and the date formats in the reference data you're using. It's more than likely you don't have the correct format in your ref data.
regards,
Nick -
The lack of details and customer service.
After less than one month of ownership, my Ideapad K1 power button broke. After talking to a customer service rep (K). She informed me it will have to be returned to Lenovo for repair, which will take about 7 to 10 business days from time of delivery. I asked to speak to a supervisor at which point she puts me on hold and then comes back on the line to tell me the supervisor stated the same thing. At no point did I ask her to confirm this with the supervisor. I asked again to speak to her supervisor, to which she puts me on hold again. The supervisor (R) comes on the line to tell me that the Ideapad K1 will have to be returned for repair. He then transfers me back to K to finalize the return, to which she now informs me I will have to pay for shipping. This is very poor customer service in my view. I will never buy another Lenovo product as long as I live and would advise every one I meet not to buy one either. I was looking at their high end laptops for my corporate deployment, its a shame. Maybe I will be going with DELL as they will send a Tech to my house to perform repairs. I do hope that all customer calls are recorded as I believe someone needs to listen to the lack of professionalism and customer service that both K and R display.
Note from Moderator: Employee name/e-mail/phone removed to protect their privacy per the forum rules.Hi i had the excact same thing i got the k1 for christmas and now its january and the power button doesnt work ..i never dropped it always put it in its case and there is not a dam scratch on the thing least they could do is pay for shipping there defective product back to them so it can be fixed
-
How to use multiple VCI strings for lap 1300 and 1200 (option 60) in one pool?
Hi All,
Hope to you a very happy new year,
I have two differnt LAP 1300 and 1200 in my network and I need to add theme to the WLC,
I successed to add one of theme by the option 60 in the DHCP pool at the Core SW,
So my quetion is below:
How to use multiple VCI strings for lap 1300 and 1200 (option 60) in one pool?
Thanks in Advanced,
Ahmed,To add to Scott's post. Option 60 would be useful if you needed to put certain types of AP on specific controllers. Otherwise, no real need to use it for the most part.
Though, I do recall an issue a few years ago that some windows machines had issues getting DHCP if option 43 is being returned.
Now, on an IOS switch, you can only configure one option 60 per DHCP scope
HTH,
Steve
Please remember to rate useful posts, and mark questions as answered -
HT2513 iCal string of events repeat and end on a given date?
Is there a way to have any given string of events repeat and end on a given date?
Example, I have a different training regiment for each day leading up to an event/date and then will have the same training regiment again leading up to another event. I want each day's training regiment to show up as an event per day... but don't want to have to post each days repeat string of training prior to each event... and they don't nessecarily repeat monlthy or regularly... I want to set an end date and all the training fill in from that date backwards. Is this possible??Does this work any better? New-jobtrigger requires a datetime object.
$csv6=Import-Csv D:\Lzero\Coll_Schd\Dependent_List.csv
foreach($cs in $csv6)
{$sys=$cs.CI
[datetime] $schd=$cs.RebootSchedule
$user="Domain\username"
$paswd=ConvertTo-SecureString -String "P@ssWord" -AsPlainText -Force
$Credential=New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $user,$paswd
Register-ScheduledJob -Name System_Restart -ScriptBlock {
Restart-Computer -ComputerName $sys -Force -wait} -Trigger (New-JobTrigger -At $schd -Once) -ScheduledJobOption (New-ScheduledJobOption -RunElevated) -Credential $Credential -
How to search a special string in txt file and return it's position in txt file?
How to search a special string in txt file and return it's position in txt file?
I just posted a solution for a similar question here: http://forums.ni.com/ni/board/message?board.id=170&view=by_date_ascending&message.id=362699#M362699
The top portion can search for the location of a string, while the bottom portion is to locate the position of a character. Both can search for a character.
The position of the character within the file is displayed in the indicator(s).
R -
JDeveloper, ADF, lack of support and bleak future
Hi,
I'm a seasoned Java and .NET developer, used to many environments and frameworks. A happy user of Oracle databases.
For a very Oracle oriented client I started with a team of developer a project using JDeveloper (no choice). After 4 months of using JDeveloper, ADF to build web sites, here are some thoughts I would like to share. This remarks only focus on that products, because I have a lot of respect for the Oracle databases and had a lot of success with them.
I am starting to get depressed about the very few blogs (most from Oracle) talking about JDeveloper and ADF, the lack of books, and the Oracle forums.
Moreover, most of the time you never get an answer to your problems, sometimes untested not working 'solutions', and a very very few times a working solution. Help is sparse, the community is missing.
If Oracle wants to promote its framework, it has to boost the number of tutorials, examples and support.
Googling about ADF is most of the time a non sense since you always land on the same 3 blogs and the Oracle forums.
Proof of non use by the community ?
If you try on www.indeed.com to find statistics about JDeveloper or ADF jobs you get another frightening proof.
Sometimes you find a piece of code or a tutorial that may help, but you realize it works only on some specific release of JDeveloper.
What makes me angry is when you ask why your code works on the x.x.x.x version but not the newest version, and the only answer you get is stay with x.x.x.x version (I won't bother to fix your 10 lines or code or even give you a direction to do it (maybe coz I don't understand myself were the breaking changes are)).
JDeveloper is damn too slow ? You should have a dual-core and at least 2 Go of memory, you poor thing ! Is Java for rich people ?
Debuging is a nightmare. Compared to Eclipse or others it is not practical at all.
I'm happy when I can create a few pages drag and dropping controls. Business components are also a good thing. It speeds up my development. But since development is not just UI and generating business components, I lose a lot of time every time I want to write code, every time I do something "exotic" it becomes a pain in the ass.
My problem here is that the architecture and JDeveloper constraint the developer a lot. I don't even talk about the fact that everything is only Oracle database oriented (openess ?). Even changing your page layout is a pain. Positioning controls is non trivial. As a whole, I would say that this whole thing imposes you to adapt to it, it doesn't adapt to you and your way of working.
Most results I saw look like the Oracle websites.
I could go on about the various bugs and problems that plague JDeveloper. Like the refactoring (when usable) that leave old and annoying stuff in your model XML, like the bugs in the diagrams, like problems related to auto-binding on the page and manually changing controls ID, various synchronization problems between pages and backing beans, adding upload is a mess, OrdDomain types are buggy, regions doesn't work well in the designer, and so on...
My point is that I feel the whole thing is not mature. And Oracle seems to fix some issues with the release of JHeadStart. Sometimes you fix things by integrating JHeadStart stuff. JHeadStart is probably a great thing and a time saver if you don't do too much "exotic" screens and code, but does it means that JDeveloper+ADF and classic development becomes a second class citizen ?
This is sad, since the ADF framework and JDeveloper look good and are worth of a more widespread usage. But marketing and support are way way far behind other commercial and open-source solutions. When I see what is planned for JDeveloper 11 and I compare it to others (Java or not). When I look at the developers needs and expectations, I feel we are losing the race.
Maybe Oracle would like to hand over some of the framework to the community, but my feeling is that the community is already commited on other exciting and less constraining frameworks and tool, and this community may well work in a way that doesn't fit Oracle vision. Future will tell.
Cheers.Hi,
thanks for the detailed comment. I appreciate the time you spent writing this up as this helps to improve the product. Below is a first - quick and brief response to some of your statements.
... for documentation and tutorials
http://www.oracle.com/technology/products/adf/learnadf.html
Especially the ADF Developer Guide for 4 GL developers earns a lot of praise among J2EE developers.
http://download.oracle.com/docs/html/B25947_01/toc.htm
... for books
http://www.oracle.com/technology/tech/java/jsf.html
Sometimes you find a piece of code or a tutorial that may help, but you realize it works only on some specific release of JDeveloper. What makes me angry is when you ask why your code works on the x.x.x.x version but not the newest version, and the only answer you get is stay with x.x.x.x version
Of course samples need to be created to some point in time with a specific version. We have SRDemo as our main - maintained - reference demo I suggest you download this sample from OTN using help--> check for updates. Note that SRDemo contains code solutions for most developer cases and also is available in 10.1.3.1
I'm happy when I can create a few pages drag and dropping controls. Business components are also a good thing. It speeds up my development. But since development is not just UI and generating business components, I lose a lot of time every time I want to write code, every time I do something "exotic" it becomes a pain in the ***.
What is exotic, and what are the questions you didn't get an answer for ? I see that this is your first posting on OTN, so I am wondering under which account you posted the other questions that did not get an answer.
Googling about ADF is most of the time a non sense since you always land on the same 3 blogs and the Oracle forums. Proof of non use by the community ?
Isn't OTN a community ? I don't think that we need another discussion forum and looking at OTN it appears very active.
I don't even talk about the fact that everything is only Oracle database oriented (openess ?).
Not true. Please prove your claim.
Even changing your page layout is a pain. Positioning controls is non trivial. As a whole, I would say that this whole thing imposes you to adapt to it, it doesn't adapt to you and your way of working. Most results I saw look like the Oracle websites.
Now you are barking up the wrong tree, blaming ADF for what is JavaServer Faces layouting. You don't have to use JSF but can go for JSP /Struts and/or Swing development. What is the view layer technology of your choice that allows you to do better layouting ?
I could go on about the various bugs and problems that plague JDeveloper
Yes, please post them all
... regions doesn't work well in the designer, and so on...
Of course, because regions are not officially supported. JDeveloper 11 - I know you don't want to hear future - will have full templating (going far beyound of what facelets do) and region support
My point is that I feel the whole thing is not mature. And Oracle seems to fix some issues with the release of JHeadStart.
JHeadstart is a consulting offering and not meant to fix the product.
... but does it means that JDeveloper+ADF and classic development becomes a second class citizen ?
No comment for this statement as it is based on a wrong observation
This is sad, since the ADF framework and JDeveloper look good and are worth of a more widespread usage. But marketing and support are way way far behind other commercial and open-source solutions. When I see what is planned for JDeveloper 11 and I compare it to others (Java or not).
Note that only a fraction of new features in JDeveloper 11 leaked out so far or have been mentioned in the recent statement of direction. JDeveloper has many more features that we don't yet promote because the software isn't available.
Please note that we give ADF to the community. Its just we are not giving it to the open soutce community but the J2EE community (JSR-227)
Frank -
if u redeem a movie off of itunes on iphone and can't download it due to lack of space and when i go to computer to find it to download there it is not there what to do?
Clear space on your iPhone (go to Settings > General > Usage) and complete the download there.
If you rented the movie on your iPhone, it can only be viewed on your iPhone. -
Customer Service Miscommunication and a large lack of communication and follow through
I seem to be having a lot of difficulty with Verizon Wireless Customer Service the last few months and am becoming increasingly frustrated. Let me start by saying I have been with Verizon for years, my wife, kids, and in laws all have Verizon, and my Father and Step mother are soon making a decision to move their service over from AT&T. I may tell them to think again about that.
October to 2012 we bought my step daughter a basic phone. She has had a number of problems with it. It doesn't hold a charge, it restarts or shuts down randomly. They sent her a replacement, and that phone had the same issues. So we decided we would upgrade to an iPhone for her back in March. Customer service said her plan was grandfathered in for an early upgrade and she would be eligible in May. Great, so we waited a couple of months and when we looked into upgrading, the sales rep said she is not eligible until October, no early upgrades are available. We told him what the CSR said, he said thats not what his system said and he began walking away. I asked him to please call customer service. He did, and after 45 minutes on the phone between Customer service and him and then customer service and my wife, it was determined she could upgrade that day, but it would have to be through the phone. I wish she did it on the phone there so all of this time wouldn't had been wasted, but we had things to do so she said we would call back when in the car. The sales rep told us to ask about the free promotion Verizon is offering a free 32 GB iPhone 5C.
We got in the car, called the Customer Service number, talked to a rep who said that line was not eligible until October. We told him about the entire conversation we just had 5 minutes ago at the store, he just kept insisting we were not eligible. I asked to speak with a supervisor, he then put us on hold for 45 minutes and then we got disconnected.
We called back, spoke with another rep, told her about the upgrade, were told once again we were not eligible until October. Once again we went through the entire conversation from the store, told her about being on the phone an hour and getting disconnected, she said she would look into everything, put us on hold for 15 minutes, came back and said we would be eligible June 30th....not today. I asked about the Free 32GB 5C, she said that was for "select" customers and she could not offer that to us. This was now disappointing on a few levels, between the last 2 hours of getting nowhere and now we are not eligible for something others can get, this left a bad taste in my mouth. She put us on hold for a supervisor. After going back and forth on being told by multiple reps we could upgrade in May and now being told we can't and not being given any reasons as to why this changes from one person to another, the Supervisor said she would make us eligible to upgrade early that day, but that because it was before 6/30 we could not get the 5C promotion. We asked if we would be eligible for the promotion if we waited until June 30, she said yes, but we could not get it before then. We confirmed this 3 times and asked her to put a note in the system so we would not have to go through this again. She confirmed with me 3 times, we could upgrade that day and pay the discounted price for the 5C, but if we waited until 6/30 we would be eligible for the 32GB 5C at no charge. This was what we were looking for and were willing to wait.
The other day I called to confirm that when we walk into the store next Monday-6/30 the notes were in the system, and we would not have any problem getting the promotion. The rep said we would not be eligible to upgrade for any discounts until October....<sigh> Went through previous conversations once again, asked for her to please look through the notes, she saw the supervisors note showing we could upgrade at the discount but no mention of the 5C promotion and said Marketing had not "Flagged" us for that promo and we could not get it. I asked once again to speak to a supervisor, she looked through the account and repeated the same thing about not being flagged but she would send an email to the supervisor that added the notes and find out what was going on. I asked to be CC'ed so I can have this all in writing, she said yes, and to expect to hear back from someone by the end of the next business day.
It is now 4 days later, I have not heard from anybody, I figured today I would look at MY plan and see if I could at least use one of the lines on my account and see if I was eligible for the promotion. Mind you, last year when I upgraded to the 5S, I was talked into adding my Verizon iPad to it, and instead of going month to month on it, add it to a shared plan, and I would be able to use the line on my iPad to upgrade to a newer phone, he even showed me how to do it myself. So now when I was looking to do what I was promised I could do, I am not able to do it, it only showed I can upgrade to another tablet only. I did the online chat and the rep told me that policies can change from day to day without notice. This does not sit well with me at all. I get sold to do something based on what the rules are one day, and tomorrow the rules change, this to me is equivalent to Bait & Switch and I now have to question the ethics here. This also tells me Verizon at this point takes retained customers for granted where my past experience was so much better than it is now.
Due to the complete lack of communication and simply keeping notes of previous conversations in their system so you don't have to keep explaining yourself over and over and being told different things by every rep I speak to down the line, I am not just back at square one with my step daughters phone, but a step back on what I signed up for on my plan.
AT&T has a program now that pays the Early Termination Fee and gives full discounts and Promos for new customers. I may be forced to look into this as it will cost me much less down the line in time and money, and I can use talk and data at the same time.
All I ask from Verizon is to listen, communicate, follow up and follow through.Feel free to sink this, I rang and sorted it.
Maybe you are looking for
-
Home Sharing no longer recognized
Home sharing no longer working on ATV since I swithed to a new iMac. Never had issues with the previous iMac. I've done everything mentioned on sites, including power cycling all devices, checking firewalls, updating software, etc. I have repeatedly
-
Conditions type of category "Delivery Costs"(B) donu00B4t allow negative values
Hello, I would like to know if it is possible to munipulate a condition type with category "B" Delivery costs in such a way that it allows a negative entry in the Purchase Order. Estandard SAP does not allow it. Message: 06259 "Negative Delivery cost
-
MDM_WS_Generator not coming in Assigned actions list
Hi, I have recently deployed MDM WEB SERVICES 7.1 7.11 on my Netweaver CE 7.2. But when I try to assign the action MDM_WS_Generator it is not showing it in the Assigned action list of Netweaver CE. Please help. Regards, Anand V
-
Hi, is there any way to use CSS with flash TextField and action script rather than import css file ? a way to include the CSS parameters/properties in the action script code ? i was also tried to use the CSS property "direction" and it does not work
-
Concate 3 column data in to one column.
I would like to concate 3 columns in to one column. all three column has datatype as LONG. Is any one knows how to concate long datatype column into one column? Thanks in Advance