ORA 01745 (invalid host/bind variable name) and CURSOR_SHARING
For the past couple of weeks, a user has had an issue with an application in the production environment only. I've had the vendor looking at it but they were limited since it could not be reproduced in our DEV environment. I finally had some time to look into it myself and I found the problem SQL statement. The issue boils down to this, "SELECT 'N' INDICATOR FROM DUAL;" returns an ORA-01745 error. If I rename "INDICATOR" to "INDICATO" or if I add an "AS" before the alias, the query works fine. However, it would require the vendor to change the code in the application which is not likely (not for free at least). However, I also found if I change the CURSOR_SHARING from SIMILAR to EXACT, then it works. This was the reason for the difference between DEV & PRD. PRD is set to SIMILAR while DEV is set to EXACT. The prospect of setting PRD to EXACT to appealing as I'm afraid it may affect performance in other areas. But, in the end, that may be the only solution. However, I was hoping there might be some other parameter that I am not aware of that may also fix this issue. I am running 10.2.0.4. Any help would be appreciated.
I'm not sure.
To what extent can you reproduce the problem? Can you isolate it to the db only via sql*plus? Or does this other software need to be involved?
You may to do some end-to-end tracing including client/driver side.
If you raise with Oracle Support, you may find out more.
I take it that the software doesn't really issue this statement:
SELECT 'N' INDICATOR FROM DUAL;" and it's part of a bigger statement?
Similar Messages
-
Report failed to parse SQL query:ORA-01745: invalid host/bind variable name
Hi,
We are currently upgrading from v2.2.0.00.32 to v4.0.0.00.46.
I have copied the applications onto our test server along with the various database objects and data etc.
When I am running a report in v4, it is failing with the following error: "failed to parse SQL query: ORA-01745: invalid host/bind variable name".
When I copy the SQL that builds the report into TOAD (on out test server) it runs OK so really cant see why it would fail in APEX. It works fine when I run the query in our APEX v2 and in TOAD in our live server.
The query is as follows:
SELECT
aea.ALTERATION_ID
,aea.ALTERATION_ID "ALTERATION_ID_DISPLAY"
,aea.assembly_name "Revised BOM"
,assembly.description "Revised BOM Description"
,assembly.INVENTORY_ITEM_STATUS_CODE "Revised BOM Status"
,aea.BEFORE_CHANGE_QTY
,flv.MEANING "Alteration Type"
,aea.component_name "Part No"
,component.description "Part No Description"
,component.INVENTORY_ITEM_STATUS_CODE "Part No Status"
,aea.AFTER_CHANGE_QTY
,TO_CHAR(aea.last_update_date,'DD-MM-YYYY HH24:MI:SS')"Last Update Date"
,aea.LAST_UPDATE_BY
,aea.COMMENTS
,aea.ORACLE_CHANGE_NOTICE
,AEA.SELECTION_CRITERIA
FROM XXMEL_APEX_ECO_ALTERATIONS aea
, fnd_lookup_values flv
, (SELECT INVENTORY_ITEM_STATUS_CODE
,segment1
,description
FROM mtl_system_items_b
WHERE 1=1
AND organization_id = 26) component
, (SELECT INVENTORY_ITEM_STATUS_CODE
,segment1
,description
FROM mtl_system_items_b
WHERE 1=1
AND organization_id = 26) assembly
WHERE 1=1
AND aea.COMPONENT_NAME = component.segment1 (+)
AND aea.assembly_NAME = assembly.segment1 (+)
AND flv.lookup_code = aea.acd_type
AND aea.eco = :P13_ECO
AND flv.lookup_type = 'ECG_ACTION'
AND modify_flag = 'Y'
ANy help would be great,
Thanks
Chris
Edited by: Cashy on 22-Nov-2010 04:13
Edited by: Cashy on 22-Nov-2010 04:14For some reason, the updatable fields (this is a updateable report) where not connecting to the database properly. Whn I changed them to a report columns and removed the database field reference, the report rendered
-
Creating on the fly dynamic named bind variable names.
I have an application process which gets called by a Dynamic action and Javascript.
Everything is working great however I'm using it to drive dynamic charts.
I could use IF statements at the end of the application process to decide what BIND vairable to fill with the information the process has collected however I'd prefer just to create the BIND variable from the
name of the submitted information.
So I have an application level variable called WHICHCHART. this gets populated with text upon calling the application process...so let's say 'chart1' is what it gets filled with.
What I"d like to have at the end of the application process is just a bind variable waiting called :chart_1.
So no matter what the value of WHICHCHART it will create an on the fly a bind variable with the same name.Ok. I guess this question was more how do you do this..then OH NO there are not other ways to do this.
So I have a page with a chart region. this chart will have 3 Y Axes which prohibits the use of the default XML.
So..
I have the following Javscript:
function getdata(whichchart) {
var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=VM_XML_GENERATION',0);
get.add('WHICHCHART',whichchart);
gReturn = get.get('XML');
get = null;
Which is called when the page loads by a dynamic action:
getdata('production');
When the javascript is called as you can see it fires off:
declare
chart_series_data VARCHAR(32767);
type array_cols is varray(7) of varchar2(100);
array array_cols := array_cols('VM_HOSTS_NUM','VM_NUMBER','VM_PHYS_MEM','VM_VIRT_MEM','VM_CPU_COUNT', 'VM_TOTAL_DISK','VM_PROVISIONED_DISK');
BEGIN
--IF :WHICHCHART IS NULL THEN
--RAISE_APPLICATION_ERROR(-20001,'Chart variable not set');
--END IF;
chart_series_data := null;
chart_series_data := ' <data>'||chr(10);
chart_series_data := chart_series_data|| ' <series name="Hosts Number" type="Line" color="0x1D8BD1" >'||chr(10);
for c1 in (SELECT VM_REPORT_DATE LABEL,VM_HOSTS_NUM from TABLE where VM_REPORT_DATE between add_months(SYSDATE,-24) and SYSDATE and lower(VM_DCNAME)=lower(:WHICHCHART) )
loop
chart_series_data := chart_series_data || '<point name="'||c1.LABEL||'" ';
chart_series_data := chart_series_data || 'y="'||c1.VM_HOSTS_NUM||'"></point> '||chr(10);
end loop;
chart_series_data := chart_series_data|| ' </series>'||chr(10)||'</data>';
:PROD_DATA := chart_series_data;
END;
The : production variable at the end of this I want to change the name of based on the value I'm sending of WHICHCHART from the javascript. I hope this is clearer now.
AGAIN this is not really a need. It is a want to be able to create dynamic bind variable names going forward.
Thanks -
ORA-15100: invalid or missing diskgroup name in 11g ASM
We have 11g R2 DB and 11g ASM installed on linux server, it was working till morning,due to some maintenance we rebooted server, then i am trying to bring up asm instance, its falling with below error.
[oracle@adg dbs]$ sqlplus / as sysasm
SQL*Plus: Release 11.2.0.1.0 Production on Tue Aug 16 16:15:57 2011
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Automatic Storage Management option
SQL> startup force pfile='/u01/app/11.2.0/grid/dbs/init+ASM.ora';
ASM instance started
Total System Global Area 284565504 bytes
Fixed Size 1336036 bytes
Variable Size 258063644 bytes
ASM Cache 25165824 bytes
ORA-15110: no diskgroups mounted
SQL> show parameter string
NAME TYPE VALUE
asm_diskstring string DATA, DATA1
SQL> shut immediate
ORA-15100: invalid or missing diskgroup name
ASM instance shutdown
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Automatic Storage Management option
[oracle@adg dbs]$ vi init+ASM.ora
[oracle@adg dbs]$ /etc/init.d/oracleasm listdisks
DISK1
DISK2
[[root@adg ~]# /etc/init.d/oracleasm scandisks
Scanning the system for Oracle ASMLib disks: [ OK ]
ERROR: diskgroup RECOVERY_AREA was not mounted
NOTE: cache deleting context for group RECOVERY_AREA 2/625504078
ORA-15032: not all alterations performed
ORA-15017: diskgroup "RECOVERY_AREA" cannot be mounted
ORA-15063: ASM discovered an insufficient number of disks for diskgroup "RECOVERY_AREA"
ERROR: ALTER DISKGROUP RECOVERY_AREA MOUNT /* asm agent */
Errors in file /u01/app/oracle/diag/asm/+asm/+ASM/trace/+ASM_rbal_6520.trc ; (incident=8105):
ORA-00600: internal error code, arguments: [kfrcGetNRB05], [1], [340], [], [], [], [], [], [], [], [], []
Incident details in: /u01/app/oracle/diag/asm/+asm/+ASM/incident/incdir_8105/+ASM_rbal_6520_i8105.trc
ERROR: ORA-600 in COD recovery for diskgroup 1/0xfe086f4c (DATA)
ERROR: ORA-600 thrown in RBAL for group number 1
Errors in file /u01/app/oracle/diag/asm/+asm/+ASM/trace/+ASM_rbal_6520.trc:
ORA-00600: internal error code, arguments: [kfrcGetNRB05], [1], [340], [], [], [], [], [], [], [], [], []
Errors in file /u01/app/oracle/diag/asm/+asm/+ASM/trace/+ASM_rbal_6520.trc:
ORA-00600: internal error code, arguments: [kfrcGetNRB05], [1], [340], [], [], [], [], [], [], [], [], []
RBAL (ospid: 6520): terminating the instance due to error 488
Tue Aug 16 15:47:03 2011
ORA-1092 : opitsk aborting process
Tue Aug 16 15:47:04 2011
Instance terminated by RBAL, pid = 6520
Tue Aug 16 15:51:08 2011
Starting ORACLE instance (normal)I tried already.
SQL> select disk_number, name, label, path, mount_status,HEADER_STATUS, state from v$asm_disk
2 ;
DISK_NUMBER NAME LABEL
PATH
MOUNT_S HEADER_STATU STATE
1 DISK2
ORCL:DISK2
CLOSED MEMBER NORMAL
0 DISK1
ORCL:DISK1
CLOSED MEMBER NORMAL
DISK_NUMBER NAME LABEL
PATH
MOUNT_S HEADER_STATU STATE
SQL> alter diskgroup recovery_area mount;
alter diskgroup recovery_area mount
ERROR at line 1:
ORA-15032: not all alterations performed
ORA-15017: diskgroup "RECOVERY_AREA" cannot be mounted
ORA-15063: ASM discovered an insufficient number of disks for diskgroup
"RECOVERY_AREA"
SQL>
here is alert log information
==================
Starting ORACLE instance (normal)
LICENSE_MAX_SESSION = 0
LICENSE_SESSIONS_WARNING = 0
Picked latch-free SCN scheme 2
Using LOG_ARCHIVE_DEST_1 parameter default value as /u01/app/11.2.0/grid/dbs/arch
Autotune of undo retention is turned on.
IMODE=BR
ILAT =0
LICENSE_MAX_USERS = 0
SYS auditing is disabled
Starting up:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Automatic Storage Management option.
Using parameter settings in client-side pfile /u01/app/11.2.0/grid/dbs/init+ASM.ora on machine adg.xxxx.com
System parameters with non-default values:
large_pool_size = 12M
instance_type = "asm"
remote_login_passwordfile= "EXCLUSIVE"
asm_diskstring = ""
asm_power_limit = 1
diagnostic_dest = "/u01/app/oracle"
Tue Aug 16 16:32:26 2011
PMON started with pid=2, OS id=11558
Tue Aug 16 16:32:26 2011
VKTM started with pid=3, OS id=11560 at elevated priority
VKTM running at (10)millisec precision with DBRM quantum (100)ms
Tue Aug 16 16:32:26 2011
GEN0 started with pid=4, OS id=11564
Tue Aug 16 16:32:26 2011
DIAG started with pid=5, OS id=11566
Tue Aug 16 16:32:26 2011
PSP0 started with pid=6, OS id=11568
Tue Aug 16 16:32:26 2011
DIA0 started with pid=7, OS id=11570
Tue Aug 16 16:32:27 2011
MMAN started with pid=8, OS id=11572
Tue Aug 16 16:32:27 2011
DBW0 started with pid=9, OS id=11574
Tue Aug 16 16:32:27 2011
LGWR started with pid=10, OS id=11576
Tue Aug 16 16:32:27 2011
CKPT started with pid=11, OS id=11578
Tue Aug 16 16:32:27 2011
SMON started with pid=12, OS id=11580
Tue Aug 16 16:32:27 2011
RBAL started with pid=13, OS id=11582
Tue Aug 16 16:32:27 2011
GMON started with pid=14, OS id=11584
Tue Aug 16 16:32:27 2011
MMON started with pid=15, OS id=11586
Tue Aug 16 16:32:27 2011
MMNL started with pid=16, OS id=11588
ORACLE_BASE from environment = /u01/app/oracle
Tue Aug 16 16:32:27 2011
SQL> ALTER DISKGROUP ALL MOUNT
Tue Aug 16 16:34:23 2011
SQL> alter diskgroup recovery_area mount
NOTE: cache registered group RECOVERY_AREA number=1 incarn=0x100b432b
NOTE: cache began mount (first) of group RECOVERY_AREA number=1 incarn=0x100b432b
Tue Aug 16 16:34:24 2011
NOTE: Loaded library: /opt/oracle/extapi/32/asm/orcl/1/libasm.so
Tue Aug 16 16:34:24 2011
ERROR: no PST quorum in group: required 2, found 0
NOTE: cache dismounting (clean) group 1/0x100B432B (RECOVERY_AREA)
NOTE: dbwr not being msg'd to dismount
NOTE: lgwr not being msg'd to dismount
NOTE: cache dismounted group 1/0x100B432B (RECOVERY_AREA)
NOTE: cache ending mount (fail) of group RECOVERY_AREA number=1 incarn=0x100b432b
kfdp_dismount(): 2
kfdp_dismountBg(): 2
ERROR: diskgroup RECOVERY_AREA was not mounted
NOTE: cache deleting context for group RECOVERY_AREA 1/269173547
ORA-15032: not all alterations performed
ORA-15017: diskgroup "RECOVERY_AREA" cannot be mounted
ORA-15063: ASM discovered an insufficient number of disks for diskgroup "RECOVERY_AREA"
ERROR: alter diskgroup recovery_area mount
Tue Aug 16 16:34:53 2011
SQL> alter diskgroup recovery_area mount
NOTE: cache registered group RECOVERY_AREA number=1 incarn=0xc86b4331
NOTE: cache began mount (first) of group RECOVERY_AREA number=1 incarn=0xc86b4331
Tue Aug 16 16:34:53 2011
ERROR: no PST quorum in group: required 2, found 0
NOTE: cache dismounting (clean) group 1/0xC86B4331 (RECOVERY_AREA)
NOTE: dbwr not being msg'd to dismount
NOTE: lgwr not being msg'd to dismount
NOTE: cache dismounted group 1/0xC86B4331 (RECOVERY_AREA)
NOTE: cache ending mount (fail) of group RECOVERY_AREA number=1 incarn=0xc86b4331
kfdp_dismount(): 4
kfdp_dismountBg(): 4
ERROR: diskgroup RECOVERY_AREA was not mounted
NOTE: cache deleting context for group RECOVERY_AREA 1/-932494543
ORA-15032: not all alterations performed
ORA-15017: diskgroup "RECOVERY_AREA" cannot be mounted
ORA-15063: ASM discovered an insufficient number of disks for diskgroup "RECOVERY_AREA"
ERROR: alter diskgroup recovery_area mount -
Same Oracle Bind Variable Name in 2 VOs not permitted?
Hi,
JDeveloper Studio Edition Version 10.1.3.3.0.4157
I have 2 different Entity based VOs, those VO's use similar Entities but their WHERE is clause is different, one VO doesn't extend the other one.
I have used Oracle (first time use for me) named bind type variables with identical names in both where clause.
When I try to define a bind variable ex. TariffIdParam in the second VO the wizard shows me an error:
Variable name is a reserved word or a variable or attribute of the given name already exists ...
Does that mean that an Oracle Bind Variable Name must me unique in the whole application?
Partial where clause:
VO1
DeliveryDetailGroup.DELIVERY_TARIFF_ID = :TariffIdParam
VO2
DeliveryDetailGroup.DELIVERY_TARIFF_ID = :TariffIdParam
Thanks
FredI created the second VO by using "File save as".
To resolve the problem in the new xml file I replaced the references to the other VO.
Regards
Fred -
Table name ? with query name , variable name and variant .
Hi All,
Is there any single table with fields as query name , variable name and variant ?
or any table which i can build a view to get these fields.
or any other way ?? to get this fields in single table
Thanks,
AkHi,
first use the proper heading for a question.
you want the query all details means technical name, variable and variable type use RSRTQ
it will give total information of query.
Bex related tables
RSZELTDIR ----
Directory of the reporting component elements
RSZELTTXT ----
Texts of reporting component elements
RSZELTXREF ---
Directory of query element references .
Thanks,
Phani. -
How to output variable names and units used in binary file
My colleague will be giving me binary files (*.dat) generated from within LabView. There are over 60 variables (columns) in the binary output file. I need to know the variable names and units, which I believe he already has set up in LabView. Is there a way for him to output a file containing the variable name and unit, so that I'll know what the binary file contains? He can create an equivalent ASCII file with a header listing the variable name, but it doesn't list the units of each variable.
As you can tell I am not a LabView user so I apologize if this question makes no sense.
Solved!
Go to Solution.Hi KE,
an ASCII file (probably csv formatted) is just text - and contains all data that is (intentially) written to. There is no special function to include units or whatever!
Your collegue has to save those information the same way he saves the names and the values...
(When writing text files he could use WriteTextFile, FormatIntoFile, WriteToSpreadsheetFile, even WriteBinaryFile could be used...)
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome -
Revision: 13663
Revision: 13663
Author: [email protected]
Date: 2010-01-20 09:58:41 -0800 (Wed, 20 Jan 2010)
Log Message:
Improved javadoc, variable names, and comments for calcCheckBits().
Also added an assertion to enforce a pre-condition on one input.
r=etierney+
tests: flex checkin tests
Modified Paths:
flex/sdk/sandbox/sherlock/modules/compiler/src/java/flex2/compiler/CompilerAPI.java -
Ora-01008 error with bind variable
Hi,
We have a test program which have one bind variable on a column which is varchar2(20), in the test program we've passed a 20 character string to the variable. The program returns error in one of the databases but all others are successful. We've checked the column is same in all of them.
Exception in thread "main" java.sql.SQLException: ORA-00604: error occurred at recursive SQL level 1
ORA-01008: not all variables bound
Could you please advise how to troubleshoot this issue?
RegardsWe aren't going to be able to help you if you won't post the database code that is giving the error.
And now we need the Java code that is constructing the query that you are using.
Your error is saying there is a second variable that you are not providing a value for.
And you said
>
We have a test program which have one bind variable on a column which is varchar2(20), in the test program we've passed a 20 character string to the variable.
>
But you are using a string that is 23 characters long
"a3g34-b13fd-efaie-f83fk"How does 23 go into 20? -
Bind Variables with AND in String causing Issues in XML & Report Outputs
Hi all,
I'm creating a BI Publisher report (10.1.3.2) and am experiencing an issue with the interprutation of Bind Variables in the Data Template.
Here is an example of some of the Data template
<dataTemplate name="BudgetDataBU" description="BudgetDataBU" dataSourceRef="DLXN">
<parameters>
<parameter name="p_Year" dataType="Integer" include_in_output="true"/>
<parameter name="p_Measure" dataType="character" include_in_output="true"/>
<parameter name="p_Currency" dataType="character" include_in_output="true"/>
<parameter name="p_Version" dataType="character" include_in_output="true"/>
</parameters>
<dataQuery>
<sqlStatement name="BusUnits">
<![CDATA[SELECT DISTINCT CC.BUSINESS_UNIT as BUSINESS_UNIT
FROM DLXN_FACT_DATA_DET FD,
DLXN.COST_CENTRE CC
WHERE FD.COST_CENTRE = CC.COST_CENTRE
AND FD.CAL_YEAR = :p_Year
AND FD.Currency = :p_Currency
AND FD.Measure = :p_Measure
AND FD.Version = :p_Version
AND CC.DLXN_VIEW = 'Delexian' ]]>
</sqlStatement>
<sqlStatement name="Details">
<![CDATA[SELECT DLXN_FACT_DATA_DET.VERSION,
DLXN_FACT_DATA_DET.CURRENCY,
DLXN_FACT_DATA_DET.CAL_YEAR as CAL_YEAR,
SUM(nvl(DLXN_FACT_DATA_DET.JAN_AMT,0)) as JAN_AMT,
</sqlStatement>
</dataQuery>The problem is with the :p_Measure Bind Variable but it could just as easily be any of the other character parameters.
The particular string value that is causing a problem is "Travel and Expenditure". I believe it is due to the "AND" in the string but this string value cannot be changed in the database to say "Travel & Expenditure".
I have thought about using a REPLACE function in the SELECT statement but see this as an ugly solution.
Any input greatly appreciated.
Kind Regards,
Gary.We remove this restriction ,fix included in BI Publisher July 2009 update for 10.1.3.4.x. The patch number is 8704846.
-
Host requires administrator name and password
I just updated a program on my Mac. It is giving me a message "this host requires an administrator name and password". The username and password I have always used are not working. It is telling me "invalid username or password". Any ideas on this? I have nevr had this issue before.
Hello,
dell Windows XP
Your situation isn't clear. If you are asking about an Apple product you should change your profile to reflect this, and then start your own thread, providing more details. If you are running Mac OS X 10.5 (Leopard) and have a question about a user account, go to this page:
http://discussions.apple.com/forum.jspa?forumID=1220
and click on "Post New Topic" -
Number of Bind variables passed AND Ref Cursor
hi all
well i have an interesting problem
i need to construct a query for a refcursor besade on conditions....
as:
input params: in_lname and in_fname
sql_stmt := 'Select first_name, ' || 'last_name, ' ||
'from table1';
IF in_lname is not null then
-- we are selecting guests by Lastname, Lastname & Firstname,
-- Lastname & Firstname & Zip, or Lastname & Zip
sql_stmt := sql_stmt || 'where gc_last_name = :1 ';
IF in_fname is not null then
sql_stmt := sql_stmt || ' and gc_first_name = :2 ';
END IF;
END IF;
open fm_lom_cv for sql_stmt using in_lname, in_fname;
Now here the in_lname is required BUT in_fname can be NULL
hence we dont excute or create the sql with sql_stmt || ' and gc_first_name = :2 ';
so :2 will not be used
hence it gives error IF in_fname is null ie ORA-01006: bind variable does not exist
Please suggest how to handle it....
thanksmay you have to set a some variable to check
not perfect but somthing like this
declare
ct number:=1;
sql_stmt varchar2(150);
BEGIN
sql_stmt := 'Select first_name, ' || 'last_name, ' ||
'from table1';
IF in_lname is not null then
-- we are selecting guests by Lastname, Lastname & Firstname,
-- Lastname & Firstname & Zip, or Lastname & Zip
sql_stmt := sql_stmt || 'where gc_last_name = :1 ';
ct:=1;
IF in_fname is not null then
sql_stmt := sql_stmt || ' and gc_first_name = :2 ';
ct:=2;
END IF;
END IF;
case when ct=1 then
Open fm_lom_cv for sql_stmt using in_lname;
when ct=2 then
Open fm_lom_cv for sql_stmt using in_lname,in_fname;
end case;
-
ORA-01458: invalid length inside variable character string
We encountered a serious problem in production system where we were getting this ORA error.
The common search on google results into the following explaination.
Cause: An attempt was made to bind or define a variable character string with a buffer length less than the minimum requirement.
Action: Increase the buffer size or use a different type.
However on analysis we found that the error was because, the value that was being bound to bind variable was NULL.
This was a new finding for me.
Please share your experiences/views on this.without any code and data examples this is impossible
-
Bind variables limit and overhead in single query
HI,
I've got query with 348 bind variables used in a way like :
select * from table
where
col1 = :1 and col2 = :2
AND apl_id in (:3, :4 ... , :348)
is there any overhead related to such high bv number ?
The session with that query is using about 160MB of PGA (mostly UGA about 150MB).
Is that somehow related ?
I'm on 9.2.0.8 EE , AIX .
Regards
GYou can use an array instead of bind variables, it will give you flexibility and scalabilty,
Example
Note : replace sys.ODCIVarchar2List with desc sys.dbms_debug_vc2coll for 9i
Select emp.* from emp,
table (sys.ODCIVarchar2List ('SCOTT','ALLEN','KING','KINGDOM'))
where column_value=ename
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7788 SCOTT ANALYST 7566 09-DEC-82 3000 20
7499 ALLEN SALESMAN 7698 20-FEB-81 1600 300 30
7839 KING PRESIDENT 17-NOV-81 5000 10
desc sys.ODCIVarchar2List
sys.ODCIVarchar2List VARRAY(32767) OF VARCHAR2(4000)
on 9.2.0.8 USE
desc sys.dbms_debug_vc2coll
sys.dbms_debug_vc2coll TABLE OF VARCHAR2(1000)HTH
SS -
JSP : create variable dynamic variable name and get his value.
//HI forums.sun.com !
//What I want to do is above :
//out.println("<td style=\"width: "+col_width_+h+" \">")
//Variable Declaration
String col_width_1 = "100px";
String col_width_2 = "150px";
//etc String col_width_N = "XXXpx";
//loop
for (int h = 0; h < hrecset.getRowCount(); h++)
//some code
//create the variable name (exemple : col_width_0 ) with the "loop counter name" to get the value
out.println("<td style=\"width: "+col_width_+h+" \">")//Do you understand what i mean?
//some code
//Variable Declaration
String col_width_1 = "100px";
String col_width_2 = "150px";
//etc String col_width_N = "XXXpx";
//loop
for (int h = 0; h < hrecset.getRowCount(); h++)
//some code
//create the variable name with a concat with the loop counter variable name to get the value of the concatened variable
out.println("<td style=\"width: "+col_width_+h+" \">")//Do you understand what i mean?
//some codeI apologize
1) Sure i understand it but i click on the "code" button after i inserted the text above but it doesn't worked now it do.
2) Because the table element need to have the total width in the HTML table TAG equal to the addition of every HTML td TAG to be W3 conform
because i have a lot of cell where i want to adjust the width.
so here my solution
<%
//Variable für Breite
String col_width_unit = "px"; // px, cm,
Integer total_table_width = 0;
String[] col_width=new String[3];
col_width[0] = "350";
col_width[1] = "75";
col_width[2] = "50";
%>
<table style="page-break-inside:avoid;width:<%=gesamt_table_width+col_width_unit%>;">
<%
for (int h = 0; h < hrecset.getRowCount(); h++)
out.println(" <td id =\"cell"+h+"\" class=\"tdall\" style=\"width:"+col_width[h]+col_width_unit+"\" >");
%>
</table>thank you very much
Maybe you are looking for
-
Error while creating PO -- Unit of measure not defined for lanuage ZH
Hi all, i have created the PR with EA as UOM. Then while creating PO, i am getting error like ' Unit of measure not defined for lanuage ZH' . Then I execute CUNI Then menu is GOTO > Translation > units of measure enter source language and target l
-
Crash Report from Illustrator CC
Hello. Hoping that someone can look over this crash report from Illustrator CC and give me an idea of what is going on? Thanks. Computer is : 2 x 2.66 Dual Core, with 4GB 667Mhz DDR2, on OS 10.6.8 Report: Process: Adobe Illustrator [56188] P
-
MIRO with LC2 amount in Expense line
Dear Friends, When we post an invoice through MIRO, the accounting document will be as follow: Dr. GR/IR account Cr. Vendor But here I found a weird case,when we post a MIRO, the accounting document created is: Dr. GR/IR account Cr. Vendor Dr. Expens
-
? mark showing in finder where plex app used to be. How do I remove this?!
See the question mark? Does anyone know how to remove that? I also want to remove the p90x folder from the top of the finder as well...
-
Why does Frequent Locations log places I've never been to?
I've gone in to check the history of the Frequent Locations and I noticed it has logged places that I have never been to or on days I know I have never been there. Why or how does it store these locations when I know for a fact I was just sitting on