Dynamic Programming with 2-D Arrays Possible in Oracle 10g or not?
Hi all,
Is there are 2-D arrays in Oracle? and when not, how can I implement any Dynamic Programming Algorithm (An [Knapsack Problem|http://en.wikipedia.org/wiki/Knapsack_problem] ) on data that I have
Thanks in advance
Edited by: ZiKaS on Dec 28, 2008 7:10 AM
Hello,
By combining single dimension collections you can build 2,3 or x dimension matrix:
Declare
type typ_int is table of integer index by binary_integer ;
type typ_tab_int is table of typ_int index by binary_integer ;
my_table typ_tab_int ;
Begin
for i in 1..10 loop
for j in 1..5 loop
my_table(i,j) := i * j ;
end loop;
end loop;
End;Francois
Similar Messages
-
Our Java application is built with java 1.4 version and oracle 10g
Our Java application is built with java 1.4 version and oracle 10g version database, is it possible to upgrade oracle database to 11g?
is it possible to upgrade
Yes. SE and the other editions have a migration/upgrade utility, not seeing any mention of that program in the XE license docs. To upgrade to 11gR2 from 10g, the 10g instance must be at patch 10.2.0.2 or higher.
So if you're a GUI dba, might be out of luck. But the the XE install has the catalog upgrade scripts that need to be run, there is a MOS note explaining the manual upgrade steps.
Or set up a brand new 11g database instance and datapump your user schema(s) from the 10g instance to the new 11g instance. The database doesn't care what java version you're using, it just does what its told with the data. DDL, DCL, DML ... its not much different. Quite a few new features in 11g.
But if you're after JVMs that piece is not supported with XE. -
Submitting a dynamic program with layout name
Hi,
I searched many blogs and the SDN forum but couldn't find a solution.
I need to know the layout fields of an ALV report for a later usage. Let me explain it with code:
I used below code to extract data of a dynamic program.
cl_salv_bs_runtime_info=>set(
EXPORTING display = abap_false
metadata = abap_true
data = abap_true ).
Submit (program) USING SELECTION-SET variant EXPORTING LIST TO MEMORY
AND RETURN.
TRY.
cl_salv_bs_runtime_info=>get_data_ref(
IMPORTING r_data = lf_ref ).
ASSIGN lf_ref->* TO <lt_data>.
CATCH cx_salv_bs_sc_runtime_info.
MESSAGE `Unable to retrieve ALV data` TYPE 'E'.
ENDTRY.
cl_salv_bs_runtime_info=>clear_all( ).
CREATE DATA lf_ref1 LIKE LINE OF <lt_data>.
ASSIGN lf_ref1->* TO <lt_line>.
What I need is to submit program with a (known) layout. If it is not possible, how can i modify the ALV report to fit a layout's display properties. (If I can manage to get -dynamic program- layout's visible fields, it will work too.)
Thank you.Hi ,
Check this LINK you can take help from this
create dynamic varient and pass to Submit program .
[how to create a variant dynamically and get it?;
OR :
you can use function module to get layout names and reprot
ranges: lr_report for ltdx-report,
lr_handle for ltdx-handle,
lr_log_group for ltdx-log_group,
lr_username for ltdx-username,
lr_variant for ltdx-variant,
lr_type for ltdx-type.
call function 'LT_VARIANTS_READ_FROM_LTDX'
exporting
i_tool = r_tool
i_text = r_text
tables
et_variants = rt_variants
it_ra_report = lr_report
it_ra_handle = lr_handle
it_ra_log_group = lr_log_group
it_ra_username = lr_username
it_ra_variant = lr_variant
it_ra_type = lr_type
exceptions
not_found = 1
others = 2.
regards
Deepak.
Edited by: Deepak Dhamat on Jan 23, 2012 8:18 AM -
MacBook Pro suddenly will not boot up. Blank screen with message File is possibly corrupt. Header checksum does not match, etc
Hi s.cheslik,
It seems your MacBook Pro will not boot properly and it displaying an error message. Based on the information you have provided, it appears your MacBook Pro needs to be serviced. The following link should help you get started with the process and has links with additional information on topics such as warranty and service pricing, battery replacement, and express replacement service.
Apple - Support - Service Answer Center
Thank you for contributing to Apple Support Communities.
Take care,
Bobby_D -
Compound layout in View selector possible in OBIEE 10g but not in OBIEE 11
Hi!
I am Claire. I have created 3 compound layout and I wanted it to be included in my view selector. I noticed that I is not possible in BI 11g but was previously possible in Bi 10G. Kindly help me on this matter. The compound layout is not appearing in the available views in the EDIT VIEW selector Page.
Your Prompt response on this matter is highly appreciated.
Thank you.
ClaireClaire,
This is no longer possible. And actually in OBIEE 10g it was only possible in the Original Compound layout. Meaning that if you created compound layout #2 you could not leverage "Compound Layout" (the original / default one) inside of a view selector or as a view inside "Compound Layout #2".
If you look at the OBI 10g documentation you will see that it states that a Compound Layout is a "view" which can contain other views.
In the OBI 11g documentation it states that the Compound Layout is a container.
http://download.oracle.com/docs/cd/E14571_01/bi.1111/e10544/appbuir.htm#BIEUG818
http://download.oracle.com/docs/cd/E14571_01/bi.1111/e10544/analyses.htm#CJABIHGC
http://download.oracle.com/docs/cd/E14571_01/bi.1111/e10544/appbuir.htm#BGBIDGDA
This new nomenclature and definition is the delineating factor and the reason you can no longer achieve that functionality in the same way you did in 10g
I hope that helps.
Cheers,
Christian
http://www.artofbi.com -
What I can do with the free download version of Oracle 10g?
I'm new to Oracle. What can/can't do with the free download of Oracle 10g Release 2? What is the difference between Oracle 10g Release 2 and Express edition?
Express Edition has limits on the number of CPUs it'll utilize (it essentially forces itself to run single-threaded), amount of RAM it'll utilize and amount of data it will store. It is missing many of the higher level security and maintenance features you would find if you wanted to be highly available.
The downloadable version of Enterprise Edition is missing none of these, however the license states that you can only use the that version for development purposes.
I suspect you can also use the downloadable version to educate yourself on how the various features work, but it doesn't specifically say that in the license and I'm not a license expert. -
Problem with do click on a field - Oracle 10g form - UNIX
Hello, friends.
I nedd a help. I have a problem with a Oracle 10g form when it was executed in UNIX environment.
The problem is that when I do click with the mouse in a different field, doesn't lead me to the other field. That is, don't let me to do click on a different field than the initial field of the form. Just work with TAB or ENTER.
Would you tell me what I can check?
Thanks.
Kisses.
AnnieHello
Another question about the problem that I posted yesterday:
Why the system.cursor_item isn't change when I do click in other field? Just the system.mouse_item changes. This problem occurss in Oracle 10g at UNIX environment (don't occurss in Windows environment).
Thanks.
Kisses.
Annie -
Returning 250 rows with 1000 Values in "IN" Clause Oracle 10g On IBM AIX !!
Hi,
Recently we have done the OS migration of Oracle 10g Server from Windows Server to IBM AIX. Everything is fine, But today we came across one crucial bug in the code, i.e In the Select Query, though we're expecting 1000 rows with 1000 values in "IN" Clause , It's returning Only 250 rows. Where as it's returning 1000 rows in Windows Environment with 1000 values in "IN" Clause. I have browsed throgh Google for the resolution but failed to get that.
This is something like,
In Oracle 10g On windows :-
select * from emp
where dept_id in (1,2,3,...................1000);
Assuming there are the dept_id values in Emp table from 1 ... 1000, It's returning 1000 rows.
In Oracle 10g On IBM AIX ,
select * from emp
where dept_id in (1,2,3,...................1000);
Assuming there are the dept_id values in Emp table from 1 ... 1000, It's returning 250 rows. Pls help me, what could be the reason for this. and what needs to be checked to fix this.
Pls suggest !!!
Rajammmh. Did you compared the select count(*) from your_table; in the two cases.
If the result is not good and nobody has deleted rows between migration and your test, you migration need to be replayed.
Which migration did you select, Transportable database or exp/imp...?
Edited by: Dba Z on 16 août 2009 08:56 -
Dynamic table owner in apex 3.0 and Oracle 10g
I have an application that requires bulk deletes for all rows in a particular department. The application edits incoming data and then moves final approved data to the 'production' db. End users modify their data via bulk load until they are happy with validity checks. At certain times of the year this could be as many as a million rows in a single table with referential integrity deletes in up to 5 additional tables. This generates unnecessary redo and archive logs so I thought we might just create separate schemas for each department (11) and do DROP/CREATE table instead.
The problem is that I see no way to dynamically change the table owner in ApEx. Is there any way to do this short of export/import to a 11 different parsing schemas?...I thought we might just create separate
schemas for each department (11) and do DROP/CREATE
table instead.Instead of doing drop/create on your tables just do a truncate on the table.
>
The problem is that I see no way to dynamically
change the table owner in ApEx. Is there any way to
do this short of export/import to a 11 different
parsing schemas?You may try creating your tables as follows
CREATE TABLE dept1.table_a AS SELECT * FROM old_table WHERE dept=1;
CREATE TABLE dept2.table_a AS SELECT * FROM old_table WHERE dept=2;
Then investigate using UNION logic and possibly a flag to show/hide departments...
SELECT * FROM dept1.table_a WHERE dept=1 AND :P1_FLAG=???;
UNION
SELECT * FROM dept2.table_a WHERE dept=2 AND :P1_FLAG=???;
The above union logic may work for reporting needs but would likely not work for your maintenance pages where you need to insert/update/delete...
Message was edited by:
tfa -
Show tables with high I/O in database oracle 10g
I need to know which are the tables with high daily transactions
how to identify them?I need to know which are the tables with high daily transactions
how to identify them?.
How* is anyone supposed to help when we don't know
a) Oracle version?
and
b) Operating System?
Take a look at DBA_TAB_MODIFCATIONS
and DBA_HIST_SEG_STAT (all of the DBA_HIST stuff if you have it).
Try and post more detail in future.
Paul... -
When I buildserver,I got some error messages:
error C2065:'EXEC' :undeclared identifier
error C2146:syntax error:missing ';' before identifier 'SQL'
error C2065:'SQL' :undeclared identifier
error C2146:syntax error:missing ';' before identifier 'insert'
What's wrong?and how to resolve?
Can anybody help me?
The following is my source code,
#include <stdio.h> /*operation system*/
#include <Uunix.h> /*Tuxedo*/
#include <errno.h> /*operation system*/
#include <atmi.h> /*TPSVCINFO, TPFAIL, TPSUCCESS, etc.*/
#include <sqlcode.h> /*SQL related*/
#include <sqlca.h>
#include <userlog.h>
#if defined(__STDC__) || defined(__cplusplus)
tpsvrinit(int argc, char *argv[])
#else
tpsvrinit(argc, argv)
int argc;
char **argv;
#endif
userlog("Ins Server started");
argc = argc;
argv = argv;
return(0);
#ifdef __cplusplus
extern "C"
#endif
void
#if defined(__STDC__) || defined(__cplusplus)
INS(TPSVCINFO *msg)
#else
INS(msg)
TPSVCINFO *msg;
#endif
EXEC SQL insert into test values ('tuxedo app data');
EXEC SQL COMMIT WORK;
if (SQLCODE != SQL_OK){
printf("Failed to commit! SQLCODE2 = %d\n", SQLCODE);
tpreturn(TPFAIL, 0, msg->data, 0L, 0);
tpreturn(TPSUCCESS, 0, msg->data, 0L, 0);You have to precompile your program with the database's sql compiler.
TUXEDO does not know anything about SQL.
Oracle has 'proc'. TUXEDO's bankapp uses esqlc. -
How to Integrate Oracle 10g with TIBCO Enterprise for JMS
Will it be possible to provide a document that will instruct on how to integrate oracle10g with TIBCO Enterprise for JMS
I needed to Integrate oracle 10g with TIBCO Enterprise for JMS.
When i searched on internet about how to do it, i found a document on oracle's site which has instructions (in the HOW-TO section) related to integration with OC4J (and not Oracle 10g)
I have been successfully able to integrate OC4J developer preview edition 10.1.3 with TIBCO enterprise for JMS.
when i tried with the same instructions to integrate oracle 10g with TIBCO Enterprise for JMS, i could not succeed. The i understood that the standalone OC4J is different from the embedded OC4J in Oracle 10g
Will it be possible to provide a document that will instruct on how to integrate oracle10g with TIBCO Enterprise for JMS
Your help will be really appreciated
Thanks,There are how-to documents here: http://www.oracle.com/technology/tech/java/oc4j/1013/how_to/index.html#JMS
with separate instructions for:
IBM WebSphere MQ JMS
Tibco Enterprise for JMS
SonicMQ JMS -
Does Oracle 10G XE collide with other installed Oracle products?
I have IDS 9i (Forms and Reports 9i) installed on my laptop for use with our remote database. Does Oracle 10G XE do anything with my Oracle home settings?
I have Windows XP SP1 on my laptop.
MikeIf you have Instant Client (or something that bundles the Instant Client, such as ZendCore for Oracle), in your path on Windows, then you will get problems, such as
1) The install spinning
2) SQLPlus crashing when launched
The offending DLL is called oraociei10.dll
Check to see if you have this in your environment. Search will do this for you. If you do, check to make sure that the corresponding directory is not in your path. if it is, then the fix is to remove the offending directory from your path. -
Is it possible to build a stanalone program with supporting files embedded in the program?
Hi,
I have picture files need to be used by a LabVIEW program. When building a standalone program these picture fies can be includded in a support directory. I wonder is it possible for these files to be part of the labview standalone program so I only need to distribue one program instead of a program with support directories? Thanks!
Regards,
Tom
Solved!
Go to Solution.Technically the answer is no, BUT depending on the size of the image, it might be possible to fudge it.
If the file isn't huge, read the file in and store is as a binary array in a constant that is on the block diagram of a VI that can be loaded dynamically.
Now, when your program launches, have it first check to see if the image file exists. If it does not, the program loads the dynamic file, and writes the contents of the constant to a file with the correct name and extension.
Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps -
Is it possible to enhance the dynamic search with Option field with custom
Hi All,
is it possible to enhance dynamic search with OPTION parameter like Equals to , Between etc, instead of these are we able to add our own? If yes, then which are steps need to perform.
Thanking you.
Regards,
VjMHydJust to test is this possible i wrote a sample program
data: lr_dquery type REF TO cl_crm_bol_dquery_service.
data: lv_status TYPE CRMT_PROCESS_DESCRIPTION.
data: mv_bol_core type REF TO cl_crm_bol_core,
lr_result_obj type ref to if_bol_bo_col,
lv_opp_id type string,
lr_entity type ref to cl_crm_bol_entity.
MV_BOL_CORE = CL_CRM_BOL_CORE=>GET_INSTANCE( ).
MV_BOL_CORE->START_UP( 'BT' ).
*data: lv_opp_id type string.
lr_dquery = cl_crm_bol_dquery_service=>GET_INSTANCE( 'BTQOpp' ).
if lr_dquery is bound.
* prepare the selection paramters
lr_dquery->add_selection_param(
exporting
iv_attr_name = 'OBJECT_ID' " Component name
iv_sign = 'I' " Inclusion/exclusion criterion SIGN for range tables
iv_option = 'PI' " Selection operator OPTION for range tables
iv_low = lv_opp_id
* Get the dynamic result object and read the opportunity status from there
lr_result_obj ?= lr_dquery->get_query_result( ).
lr_entity ?= lr_result_obj->get_first( ).
if lr_entity is bound.
lr_entity->get_property_as_value( exporting iv_attr_name = 'STATUS'
importing ev_result = lv_status ).
endif.
endif.
BREAK-POINT.
No syntax error but junk values returned as I had not written the logic for retrieval based on this operator. This means that if you add the selection_param to the dynamic query and then handle that same thing in the GENIL class for the component then you would be able to retrieve the values based on this.
On the UI , you would be retrieving all the operators for the parameters. There for that particular field you have to add the new operator for your case. And this would be send to the Dquery class and added as a selection param. When the query is executed, if the genil class has been updated to handle this parameter, you should be able to retrieve the results.
Regards
Kavindra
Edited by: joshi_kavindra on Jan 19, 2012 2:45 PM
Edited by: joshi_kavindra on Jan 19, 2012 2:53 PM
Maybe you are looking for
-
ADF: How to find out if a button is clicked?
Hi, I want to check if a button is clicked/selected and specify that condition as something like: #{backingBeanScope.backing_SearchLog.cb1 eq true} in the refreshCondition of one of the viewIterator. Kindly let me know how to check if the button is
-
SQL*Loader-704: Internal error
Dear all, I have run this command in windows sqlplus a/b@c it is connected successfully, I can run sql and results returned. however, I run this sql loader command sqlldr a/b@c control=test.ctl data=test.txt but error is returned SQL*Loader-704: Inte
-
Prevent redetermine pricing after invoice.
Hi. We have Third-party Sales order. SO PR PO GR SO DO PGI Billing After Billing system change the Sales order pricing condition in VA02. The Sales order must not be change if the Sales order have already billed. For example : Condition
-
I have Oracle 11g and SQL Developer 3.2 installed on my machine. In Oracle Data Miner, I have created a Naive Bayes model. I want to export it in PMML format. I tried using PL/SQL package DBMS_DATA_MINING. But it exports only Decision Tree model in P
-
Itunes keeps on crashing after Activiating Itunes Match...
Installing and re-installing versions don't make a difference...Itunes is unusable this way. Any solution out there?